@clickview/lite 0.0.24 → 0.0.25-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (535) hide show
  1. package/dist/css/0.chunk.css +0 -2
  2. package/dist/css/lite-app.css +1 -1
  3. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +1 -1
  4. package/dist/libs/common/src/react/utils/TextHelper.d.ts +1 -1
  5. package/dist/scripts/0-6bc17823fd.chunk.js +1 -0
  6. package/dist/scripts/{1-4f19a5caea.chunk.js → 1-b20a2dd250.chunk.js} +3 -3
  7. package/dist/scripts/11-f67b6c11a7.chunk.js +1 -0
  8. package/dist/scripts/{12-72a5373486.chunk.js → 12-c3f4ba1831.chunk.js} +1 -1
  9. package/dist/scripts/{13-1cd85ad3ee.chunk.js → 13-d44a1e6204.chunk.js} +1 -1
  10. package/dist/scripts/{14-3d60b8ee85.chunk.js → 14-bbf4ab8ab9.chunk.js} +1 -1
  11. package/dist/scripts/{15-90226fb996.chunk.js → 15-bdef10f60a.chunk.js} +1 -1
  12. package/dist/scripts/{16-913b2535ea.chunk.js → 16-691b35dc8c.chunk.js} +1 -1
  13. package/dist/scripts/{17-d6c19ccb60.chunk.js → 17-4e3899d62b.chunk.js} +1 -1
  14. package/dist/scripts/{18-33efcac0c6.chunk.js → 18-6afc6b44f3.chunk.js} +1 -1
  15. package/dist/scripts/{19-2380200cfb.chunk.js → 19-7f2d561cf2.chunk.js} +1 -1
  16. package/dist/scripts/{2-53e37c2047.chunk.js → 2-a578d78153.chunk.js} +1 -1
  17. package/dist/scripts/{20-ca85f0514e.chunk.js → 20-fe4b732b3b.chunk.js} +1 -1
  18. package/dist/scripts/{21-ef4a226771.chunk.js → 21-850a6abb96.chunk.js} +1 -1
  19. package/dist/scripts/{22-99c04e164f.chunk.js → 22-be37ecc01d.chunk.js} +1 -1
  20. package/dist/scripts/{23-028eb81a43.chunk.js → 23-9ace914ea0.chunk.js} +1 -1
  21. package/dist/scripts/{24-68f8df3eca.chunk.js → 24-007409325f.chunk.js} +1 -1
  22. package/dist/scripts/{25-7ad07f87d4.chunk.js → 25-9d70dbe4ec.chunk.js} +1 -1
  23. package/dist/scripts/{26-f3dcacfe4f.chunk.js → 26-e280e72009.chunk.js} +1 -1
  24. package/dist/scripts/{27-e844268f38.chunk.js → 27-c8f5fd76cb.chunk.js} +1 -1
  25. package/dist/scripts/{28-853bc5de1f.chunk.js → 28-015dd3e4d4.chunk.js} +1 -1
  26. package/dist/scripts/{29-b164ecafe9.chunk.js → 29-91d67f4584.chunk.js} +1 -1
  27. package/dist/scripts/{3-a1bd8c9016.chunk.js → 3-aa01c4304a.chunk.js} +2 -2
  28. package/dist/scripts/{30-2cfcf52ea1.chunk.js → 30-f16ad621da.chunk.js} +1 -1
  29. package/dist/scripts/{31-e6a8291d2f.chunk.js → 31-3f405d0372.chunk.js} +1 -1
  30. package/dist/scripts/{32-7030dc98ed.chunk.js → 32-7a75602cc0.chunk.js} +1 -1
  31. package/dist/scripts/{33-47b0ac90bd.chunk.js → 33-8d70bde32b.chunk.js} +1 -1
  32. package/dist/scripts/{34-2de007b628.chunk.js → 34-3f095c24f3.chunk.js} +1 -1
  33. package/dist/scripts/{35-d2fb66920b.chunk.js → 35-58407394d5.chunk.js} +1 -1
  34. package/dist/scripts/{36-bc85df33de.chunk.js → 36-552740daf0.chunk.js} +1 -1
  35. package/dist/scripts/{37-e26652840b.chunk.js → 37-d79eda4acb.chunk.js} +1 -1
  36. package/dist/scripts/{38-0b6a6b9619.chunk.js → 38-a6c89ffb8f.chunk.js} +1 -1
  37. package/dist/scripts/{39-6549f483c6.chunk.js → 39-4a615de1ce.chunk.js} +1 -1
  38. package/dist/scripts/{4-9e83a22d7a.chunk.js → 4-d296a64d17.chunk.js} +1 -1
  39. package/dist/scripts/{40-8e6e9d285f.chunk.js → 40-5330a64b5d.chunk.js} +1 -1
  40. package/dist/scripts/{41-2b44a2e66f.chunk.js → 41-c268bfb400.chunk.js} +1 -1
  41. package/dist/scripts/{42-9e75f420d8.chunk.js → 42-0e2ebfa151.chunk.js} +1 -1
  42. package/dist/scripts/{43-1141245420.chunk.js → 43-e1d3a1f0e5.chunk.js} +1 -1
  43. package/dist/scripts/{44-9bc4201e0f.chunk.js → 44-8a44b614a8.chunk.js} +1 -1
  44. package/dist/scripts/{45-5ded8ca3db.chunk.js → 45-9418f81185.chunk.js} +1 -1
  45. package/dist/scripts/{46-2afd7ee1fb.chunk.js → 46-4ab8038e30.chunk.js} +1 -1
  46. package/dist/scripts/{48-d9cd99d55e.chunk.js → 48-e4150407ee.chunk.js} +1 -1
  47. package/dist/scripts/{49-f43a08f90b.chunk.js → 49-8fd6a45338.chunk.js} +1 -1
  48. package/dist/scripts/{5-974660e17b.chunk.js → 5-3842bd1f2d.chunk.js} +1 -1
  49. package/dist/scripts/{50-af699c531e.chunk.js → 50-ab1c16848b.chunk.js} +1 -1
  50. package/dist/scripts/{51-907ccc689c.chunk.js → 51-7ce29a119d.chunk.js} +1 -1
  51. package/dist/scripts/{52-dd5dd9f7f7.chunk.js → 52-12e0feca43.chunk.js} +1 -1
  52. package/dist/scripts/{53-d75ca53045.chunk.js → 53-a5250a2064.chunk.js} +1 -1
  53. package/dist/scripts/{55-eea39b3205.chunk.js → 55-cd780b71b1.chunk.js} +1 -1
  54. package/dist/scripts/{56-2ed3b5764b.chunk.js → 56-687e915081.chunk.js} +1 -1
  55. package/dist/scripts/{57-e51101c8a1.chunk.js → 57-5c9b7a7950.chunk.js} +1 -1
  56. package/dist/scripts/{58-9a32a6fb2d.chunk.js → 58-636a388c0c.chunk.js} +1 -1
  57. package/dist/scripts/{59-da8a8c97a9.chunk.js → 59-cc88e95d77.chunk.js} +1 -1
  58. package/dist/scripts/{6-6ac39034e0.chunk.js → 6-7bee1cd6c9.chunk.js} +1 -1
  59. package/dist/scripts/{60-5713de53e2.chunk.js → 60-1672f666ce.chunk.js} +1 -1
  60. package/dist/scripts/{61-7d2ad17963.chunk.js → 61-b2bdee9283.chunk.js} +1 -1
  61. package/dist/scripts/{63-d423dd59f5.chunk.js → 63-2126404b54.chunk.js} +1 -1
  62. package/dist/scripts/{65-2322082836.chunk.js → 65-c3472b12c9.chunk.js} +1 -1
  63. package/dist/scripts/{66-faeadaa25e.chunk.js → 66-c6406c845f.chunk.js} +1 -1
  64. package/dist/scripts/{7-5ac5be64dd.chunk.js → 7-e39bfefa23.chunk.js} +1 -1
  65. package/dist/scripts/{8-95563e3d36.chunk.js → 8-244738cbaf.chunk.js} +1 -1
  66. package/dist/scripts/{bundle-9ed1e126dd.min.js → bundle-09bb583faa.min.js} +2 -2
  67. package/dist/scripts/bundles.json +2 -2
  68. package/package.json +2 -2
  69. package/dist/css/0.chunk.css.map +0 -1
  70. package/dist/css/1.chunk.css +0 -223
  71. package/dist/css/1.chunk.css.map +0 -1
  72. package/dist/css/10.chunk.css +0 -106
  73. package/dist/css/10.chunk.css.map +0 -1
  74. package/dist/css/11.chunk.css.map +0 -1
  75. package/dist/css/12.chunk.css.map +0 -1
  76. package/dist/css/13.chunk.css.map +0 -1
  77. package/dist/css/14.chunk.css.map +0 -1
  78. package/dist/css/15.chunk.css.map +0 -1
  79. package/dist/css/16.chunk.css.map +0 -1
  80. package/dist/css/17.chunk.css.map +0 -1
  81. package/dist/css/18.chunk.css.map +0 -1
  82. package/dist/css/19.chunk.css.map +0 -1
  83. package/dist/css/2.chunk.css.map +0 -1
  84. package/dist/css/20.chunk.css.map +0 -1
  85. package/dist/css/21.chunk.css.map +0 -1
  86. package/dist/css/22.chunk.css.map +0 -1
  87. package/dist/css/23.chunk.css.map +0 -1
  88. package/dist/css/24.chunk.css.map +0 -1
  89. package/dist/css/25.chunk.css.map +0 -1
  90. package/dist/css/26.chunk.css.map +0 -1
  91. package/dist/css/27.chunk.css.map +0 -1
  92. package/dist/css/28.chunk.css.map +0 -1
  93. package/dist/css/29.chunk.css.map +0 -1
  94. package/dist/css/3.chunk.css.map +0 -1
  95. package/dist/css/30.chunk.css.map +0 -1
  96. package/dist/css/31.chunk.css.map +0 -1
  97. package/dist/css/32.chunk.css.map +0 -1
  98. package/dist/css/33.chunk.css.map +0 -1
  99. package/dist/css/34.chunk.css.map +0 -1
  100. package/dist/css/35.chunk.css.map +0 -1
  101. package/dist/css/36.chunk.css.map +0 -1
  102. package/dist/css/37.chunk.css.map +0 -1
  103. package/dist/css/38.chunk.css +0 -17
  104. package/dist/css/38.chunk.css.map +0 -1
  105. package/dist/css/39.chunk.css +0 -6
  106. package/dist/css/39.chunk.css.map +0 -1
  107. package/dist/css/4.chunk.css.map +0 -1
  108. package/dist/css/40.chunk.css +0 -6
  109. package/dist/css/40.chunk.css.map +0 -1
  110. package/dist/css/41.chunk.css +0 -40
  111. package/dist/css/41.chunk.css.map +0 -1
  112. package/dist/css/42.chunk.css +0 -14
  113. package/dist/css/42.chunk.css.map +0 -1
  114. package/dist/css/43.chunk.css +0 -38
  115. package/dist/css/43.chunk.css.map +0 -1
  116. package/dist/css/44.chunk.css +0 -14
  117. package/dist/css/44.chunk.css.map +0 -1
  118. package/dist/css/45.chunk.css +0 -38
  119. package/dist/css/45.chunk.css.map +0 -1
  120. package/dist/css/46.chunk.css +0 -52
  121. package/dist/css/46.chunk.css.map +0 -1
  122. package/dist/css/5.chunk.css.map +0 -1
  123. package/dist/css/50.chunk.css +0 -52
  124. package/dist/css/50.chunk.css.map +0 -1
  125. package/dist/css/52.chunk.css +0 -52
  126. package/dist/css/52.chunk.css.map +0 -1
  127. package/dist/css/53.chunk.css.map +0 -1
  128. package/dist/css/54.chunk.css.map +0 -1
  129. package/dist/css/55.chunk.css.map +0 -1
  130. package/dist/css/56.chunk.css +0 -14
  131. package/dist/css/56.chunk.css.map +0 -1
  132. package/dist/css/57.chunk.css +0 -14
  133. package/dist/css/57.chunk.css.map +0 -1
  134. package/dist/css/58.chunk.css +0 -43
  135. package/dist/css/58.chunk.css.map +0 -1
  136. package/dist/css/59.chunk.css +0 -14
  137. package/dist/css/59.chunk.css.map +0 -1
  138. package/dist/css/6.chunk.css.map +0 -1
  139. package/dist/css/60.chunk.css +0 -43
  140. package/dist/css/60.chunk.css.map +0 -1
  141. package/dist/css/7.chunk.css +0 -94
  142. package/dist/css/7.chunk.css.map +0 -1
  143. package/dist/css/79.chunk.css +0 -58
  144. package/dist/css/79.chunk.css.map +0 -1
  145. package/dist/css/8.chunk.css +0 -54
  146. package/dist/css/8.chunk.css.map +0 -1
  147. package/dist/css/82.chunk.css +0 -28
  148. package/dist/css/82.chunk.css.map +0 -1
  149. package/dist/css/83.chunk.css +0 -11
  150. package/dist/css/83.chunk.css.map +0 -1
  151. package/dist/css/84.chunk.css +0 -152
  152. package/dist/css/84.chunk.css.map +0 -1
  153. package/dist/css/85.chunk.css +0 -21
  154. package/dist/css/85.chunk.css.map +0 -1
  155. package/dist/css/86.chunk.css +0 -17
  156. package/dist/css/86.chunk.css.map +0 -1
  157. package/dist/css/87.chunk.css +0 -21
  158. package/dist/css/87.chunk.css.map +0 -1
  159. package/dist/css/88.chunk.css +0 -5
  160. package/dist/css/88.chunk.css.map +0 -1
  161. package/dist/css/90.chunk.css +0 -38
  162. package/dist/css/90.chunk.css.map +0 -1
  163. package/dist/css/lite-app.css.map +0 -1
  164. package/dist/libs/shared/src/components/file-select-button/FileSelectButton.d.ts +0 -15
  165. package/dist/libs/shared/src/components/thumbnails/video/VideoThumbnailWatchProgressBar.d.ts +0 -8
  166. package/dist/libs/shared/src/components/video-list/components/video-item-badges/VideoItemBadges.d.ts +0 -7
  167. package/dist/libs/shared/src/components/video-list/components/video-item-description/UseTruncateText.d.ts +0 -9
  168. package/dist/libs/shared/src/components/widgets/items/resource-widget-item/ResourceWidgetItem.d.ts +0 -12
  169. package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +0 -8
  170. package/dist/libs/shared/src/flight-requests/ResourceRequests.d.ts +0 -11
  171. package/dist/libs/shared/src/hooks/useGetCollectionItems.d.ts +0 -7
  172. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +0 -3
  173. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +0 -20
  174. package/dist/libs/shared/src/interfaces/models/Language.d.ts +0 -4
  175. package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +0 -4
  176. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +0 -7
  177. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +0 -3
  178. package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +0 -3
  179. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +0 -3
  180. package/dist/projects/lite/src/apps/upload/views/my-uploads/DismissibleAlert.d.ts +0 -2
  181. package/dist/projects/lite/src/apps/upload/views/my-uploads/MyUploadsView.d.ts +0 -6
  182. package/dist/projects/lite/src/shared/components/clips/ClipItem.d.ts +0 -8
  183. package/dist/projects/lite/src/shared/components/clips/Clips.d.ts +0 -7
  184. package/dist/projects/lite/src/shared/components/interactives/InteractiveItem.d.ts +0 -7
  185. package/dist/projects/lite/src/shared/components/interactives/Interactives.d.ts +0 -7
  186. package/dist/projects/lite/src/shared/components/play-page/Buttons.d.ts +0 -7
  187. package/dist/projects/lite/src/shared/views/preview-pdf/PreviewPdfView.d.ts +0 -7
  188. package/dist/scripts/0-702db3d74c.chunk.js +0 -1
  189. package/dist/scripts/0-b02efe11fb.chunk.js +0 -1
  190. package/dist/scripts/0-bf0af5f75c.chunk.js +0 -1
  191. package/dist/scripts/0.chunk.js +0 -355
  192. package/dist/scripts/0.chunk.js.map +0 -1
  193. package/dist/scripts/1-d1ce3fe6e8.chunk.js +0 -17
  194. package/dist/scripts/1-fcddc988fa.chunk.js +0 -17
  195. package/dist/scripts/1.chunk.js +0 -1031
  196. package/dist/scripts/1.chunk.js.map +0 -1
  197. package/dist/scripts/10.chunk.js +0 -619
  198. package/dist/scripts/10.chunk.js.map +0 -1
  199. package/dist/scripts/11-32e30d10ce.chunk.js +0 -1
  200. package/dist/scripts/11-6e7f935551.chunk.js +0 -1
  201. package/dist/scripts/11.chunk.js +0 -445
  202. package/dist/scripts/11.chunk.js.map +0 -1
  203. package/dist/scripts/12-7e1380d9fa.chunk.js +0 -1
  204. package/dist/scripts/12-fa7004b555.chunk.js +0 -1
  205. package/dist/scripts/12.chunk.js +0 -1533
  206. package/dist/scripts/12.chunk.js.map +0 -1
  207. package/dist/scripts/13-4245983c0a.chunk.js +0 -1
  208. package/dist/scripts/13-95937e4149.chunk.js +0 -1
  209. package/dist/scripts/13.chunk.js +0 -469
  210. package/dist/scripts/13.chunk.js.map +0 -1
  211. package/dist/scripts/14-62608fc1de.chunk.js +0 -1
  212. package/dist/scripts/14-eba60049a5.chunk.js +0 -1
  213. package/dist/scripts/14.chunk.js +0 -930
  214. package/dist/scripts/14.chunk.js.map +0 -1
  215. package/dist/scripts/15-379cb5f586.chunk.js +0 -1
  216. package/dist/scripts/15-d811a90e8d.chunk.js +0 -1
  217. package/dist/scripts/15.chunk.js +0 -437
  218. package/dist/scripts/15.chunk.js.map +0 -1
  219. package/dist/scripts/16-00e83a6d12.chunk.js +0 -1
  220. package/dist/scripts/16-885363ce46.chunk.js +0 -1
  221. package/dist/scripts/16.chunk.js +0 -633
  222. package/dist/scripts/16.chunk.js.map +0 -1
  223. package/dist/scripts/17-6d597b8323.chunk.js +0 -1
  224. package/dist/scripts/17-c62d5aa7f2.chunk.js +0 -1
  225. package/dist/scripts/17.chunk.js +0 -356
  226. package/dist/scripts/17.chunk.js.map +0 -1
  227. package/dist/scripts/18-5affadddcc.chunk.js +0 -1
  228. package/dist/scripts/18-69049350eb.chunk.js +0 -1
  229. package/dist/scripts/18.chunk.js +0 -339
  230. package/dist/scripts/18.chunk.js.map +0 -1
  231. package/dist/scripts/19-d394ae9543.chunk.js +0 -1
  232. package/dist/scripts/19-f0550464de.chunk.js +0 -1
  233. package/dist/scripts/19.chunk.js +0 -506
  234. package/dist/scripts/19.chunk.js.map +0 -1
  235. package/dist/scripts/2-6aad743aee.chunk.js +0 -1
  236. package/dist/scripts/2-c47e1da13a.chunk.js +0 -1
  237. package/dist/scripts/2.chunk.js +0 -18851
  238. package/dist/scripts/2.chunk.js.map +0 -1
  239. package/dist/scripts/20-81a48ca4fa.chunk.js +0 -1
  240. package/dist/scripts/20-e20c4c0645.chunk.js +0 -1
  241. package/dist/scripts/20.chunk.js +0 -1942
  242. package/dist/scripts/20.chunk.js.map +0 -1
  243. package/dist/scripts/21-8b195ab041.chunk.js +0 -1
  244. package/dist/scripts/21-f6ff589cb4.chunk.js +0 -1
  245. package/dist/scripts/21.chunk.js +0 -1544
  246. package/dist/scripts/21.chunk.js.map +0 -1
  247. package/dist/scripts/22-8a60335dfb.chunk.js +0 -1
  248. package/dist/scripts/22-f458cb647a.chunk.js +0 -1
  249. package/dist/scripts/22.chunk.js +0 -1338
  250. package/dist/scripts/22.chunk.js.map +0 -1
  251. package/dist/scripts/23-633a2d5b09.chunk.js +0 -1
  252. package/dist/scripts/23-bb1e2bfb90.chunk.js +0 -1
  253. package/dist/scripts/23.chunk.js +0 -749
  254. package/dist/scripts/23.chunk.js.map +0 -1
  255. package/dist/scripts/24-7924828128.chunk.js +0 -1
  256. package/dist/scripts/24-a254eb1f32.chunk.js +0 -1
  257. package/dist/scripts/24.chunk.js +0 -1207
  258. package/dist/scripts/24.chunk.js.map +0 -1
  259. package/dist/scripts/25-93218e513e.chunk.js +0 -1
  260. package/dist/scripts/25-db170bd5e3.chunk.js +0 -1
  261. package/dist/scripts/25.chunk.js +0 -750
  262. package/dist/scripts/25.chunk.js.map +0 -1
  263. package/dist/scripts/26-93c9661292.chunk.js +0 -1
  264. package/dist/scripts/26-a4a0b97207.chunk.js +0 -1
  265. package/dist/scripts/26.chunk.js +0 -826
  266. package/dist/scripts/26.chunk.js.map +0 -1
  267. package/dist/scripts/27-35820f00f1.chunk.js +0 -1
  268. package/dist/scripts/27-8a4d69f288.chunk.js +0 -1
  269. package/dist/scripts/27.chunk.js +0 -658
  270. package/dist/scripts/27.chunk.js.map +0 -1
  271. package/dist/scripts/28-0730152b25.chunk.js +0 -1
  272. package/dist/scripts/28-22cbd36128.chunk.js +0 -1
  273. package/dist/scripts/28.chunk.js +0 -692
  274. package/dist/scripts/28.chunk.js.map +0 -1
  275. package/dist/scripts/29-965aa23b96.chunk.js +0 -1
  276. package/dist/scripts/29-d6f6b32986.chunk.js +0 -1
  277. package/dist/scripts/29.chunk.js +0 -562
  278. package/dist/scripts/29.chunk.js.map +0 -1
  279. package/dist/scripts/3-02219d10d4.chunk.js +0 -7
  280. package/dist/scripts/3-0ce5d8bff2.chunk.js +0 -7
  281. package/dist/scripts/3.chunk.js +0 -800
  282. package/dist/scripts/3.chunk.js.map +0 -1
  283. package/dist/scripts/30-13106255a1.chunk.js +0 -1
  284. package/dist/scripts/30-77202cb6be.chunk.js +0 -1
  285. package/dist/scripts/30.chunk.js +0 -767
  286. package/dist/scripts/30.chunk.js.map +0 -1
  287. package/dist/scripts/31-1307509953.chunk.js +0 -1
  288. package/dist/scripts/31-e3ee095203.chunk.js +0 -1
  289. package/dist/scripts/31.chunk.js +0 -468
  290. package/dist/scripts/31.chunk.js.map +0 -1
  291. package/dist/scripts/32-40ed1dd894.chunk.js +0 -1
  292. package/dist/scripts/32-8ec5bb19f5.chunk.js +0 -1
  293. package/dist/scripts/32.chunk.js +0 -441
  294. package/dist/scripts/32.chunk.js.map +0 -1
  295. package/dist/scripts/33-8740c874b3.chunk.js +0 -1
  296. package/dist/scripts/33-93b8d74603.chunk.js +0 -1
  297. package/dist/scripts/33.chunk.js +0 -829
  298. package/dist/scripts/33.chunk.js.map +0 -1
  299. package/dist/scripts/34-81e4464339.chunk.js +0 -1
  300. package/dist/scripts/34-ada5bfd254.chunk.js +0 -1
  301. package/dist/scripts/34.chunk.js +0 -622
  302. package/dist/scripts/34.chunk.js.map +0 -1
  303. package/dist/scripts/35-0ff2658139.chunk.js +0 -1
  304. package/dist/scripts/35-3eb6fe74fc.chunk.js +0 -1
  305. package/dist/scripts/35.chunk.js +0 -962
  306. package/dist/scripts/35.chunk.js.map +0 -1
  307. package/dist/scripts/36-0532d93a26.chunk.js +0 -1
  308. package/dist/scripts/36-3bfbb52684.chunk.js +0 -1
  309. package/dist/scripts/36.chunk.js +0 -545
  310. package/dist/scripts/36.chunk.js.map +0 -1
  311. package/dist/scripts/37-10fe5a06a5.chunk.js +0 -1
  312. package/dist/scripts/37-3e5e429c93.chunk.js +0 -1
  313. package/dist/scripts/37.chunk.js +0 -627
  314. package/dist/scripts/37.chunk.js.map +0 -1
  315. package/dist/scripts/38-31744f9ae7.chunk.js +0 -1
  316. package/dist/scripts/38-76dc0e356d.chunk.js +0 -1
  317. package/dist/scripts/38.chunk.js +0 -943
  318. package/dist/scripts/38.chunk.js.map +0 -1
  319. package/dist/scripts/39-4b26fafe13.chunk.js +0 -1
  320. package/dist/scripts/39-5df3077ac3.chunk.js +0 -1
  321. package/dist/scripts/39.chunk.js +0 -585
  322. package/dist/scripts/39.chunk.js.map +0 -1
  323. package/dist/scripts/4-3b38074599.chunk.js +0 -1
  324. package/dist/scripts/4-d5bec07430.chunk.js +0 -1
  325. package/dist/scripts/4.chunk.js +0 -403
  326. package/dist/scripts/4.chunk.js.map +0 -1
  327. package/dist/scripts/40-6e3500fafc.chunk.js +0 -1
  328. package/dist/scripts/40-fa1b51a3e0.chunk.js +0 -1
  329. package/dist/scripts/40.chunk.js +0 -273
  330. package/dist/scripts/40.chunk.js.map +0 -1
  331. package/dist/scripts/41-2e358dbf59.chunk.js +0 -1
  332. package/dist/scripts/41-cde309348b.chunk.js +0 -1
  333. package/dist/scripts/41.chunk.js +0 -252
  334. package/dist/scripts/41.chunk.js.map +0 -1
  335. package/dist/scripts/42-4f9c639481.chunk.js +0 -1
  336. package/dist/scripts/42-680fb45a87.chunk.js +0 -1
  337. package/dist/scripts/42.chunk.js +0 -464
  338. package/dist/scripts/42.chunk.js.map +0 -1
  339. package/dist/scripts/43-3818cf7ed2.chunk.js +0 -1
  340. package/dist/scripts/43-cb8bdb3d8f.chunk.js +0 -1
  341. package/dist/scripts/43.chunk.js +0 -345
  342. package/dist/scripts/43.chunk.js.map +0 -1
  343. package/dist/scripts/44-0648e8e28f.chunk.js +0 -1
  344. package/dist/scripts/44-f4e93786c0.chunk.js +0 -1
  345. package/dist/scripts/44.chunk.js +0 -537
  346. package/dist/scripts/44.chunk.js.map +0 -1
  347. package/dist/scripts/45-23e64d06ed.chunk.js +0 -1
  348. package/dist/scripts/45-586cefa5b3.chunk.js +0 -1
  349. package/dist/scripts/45.chunk.js +0 -221
  350. package/dist/scripts/45.chunk.js.map +0 -1
  351. package/dist/scripts/46-273127f163.chunk.js +0 -1
  352. package/dist/scripts/46-8b4730ff48.chunk.js +0 -1
  353. package/dist/scripts/46.chunk.js +0 -230
  354. package/dist/scripts/46.chunk.js.map +0 -1
  355. package/dist/scripts/47-86e38a1468.chunk.js +0 -1
  356. package/dist/scripts/47-ab30686138.chunk.js +0 -1
  357. package/dist/scripts/47.chunk.js +0 -408
  358. package/dist/scripts/47.chunk.js.map +0 -1
  359. package/dist/scripts/48-54817c0e78.chunk.js +0 -1
  360. package/dist/scripts/48-54db253a8c.chunk.js +0 -1
  361. package/dist/scripts/48.chunk.js +0 -241
  362. package/dist/scripts/48.chunk.js.map +0 -1
  363. package/dist/scripts/49-0826d62735.chunk.js +0 -1
  364. package/dist/scripts/49-702676e587.chunk.js +0 -1
  365. package/dist/scripts/49.chunk.js +0 -249
  366. package/dist/scripts/49.chunk.js.map +0 -1
  367. package/dist/scripts/5-202373c80b.chunk.js +0 -1
  368. package/dist/scripts/5-52c2070b12.chunk.js +0 -1
  369. package/dist/scripts/5.chunk.js +0 -1161
  370. package/dist/scripts/5.chunk.js.map +0 -1
  371. package/dist/scripts/50-8069668f8a.chunk.js +0 -1
  372. package/dist/scripts/50-e94493066c.chunk.js +0 -1
  373. package/dist/scripts/50.chunk.js +0 -132
  374. package/dist/scripts/50.chunk.js.map +0 -1
  375. package/dist/scripts/51-6177cd4126.chunk.js +0 -1
  376. package/dist/scripts/51-aa7b835007.chunk.js +0 -1
  377. package/dist/scripts/51.chunk.js +0 -230
  378. package/dist/scripts/51.chunk.js.map +0 -1
  379. package/dist/scripts/52-805f7fe04d.chunk.js +0 -1
  380. package/dist/scripts/52-96d9beee16.chunk.js +0 -1
  381. package/dist/scripts/52.chunk.js +0 -318
  382. package/dist/scripts/52.chunk.js.map +0 -1
  383. package/dist/scripts/53-b24c780288.chunk.js +0 -1
  384. package/dist/scripts/53-be20bb20c9.chunk.js +0 -1
  385. package/dist/scripts/53.chunk.js +0 -212
  386. package/dist/scripts/53.chunk.js.map +0 -1
  387. package/dist/scripts/54-2e75bad46f.chunk.js +0 -1
  388. package/dist/scripts/54-fdfdb33705.chunk.js +0 -1
  389. package/dist/scripts/54.chunk.js +0 -108
  390. package/dist/scripts/54.chunk.js.map +0 -1
  391. package/dist/scripts/55-306c5a0e4d.chunk.js +0 -1
  392. package/dist/scripts/55-ed637c4847.chunk.js +0 -1
  393. package/dist/scripts/55.chunk.js +0 -69
  394. package/dist/scripts/55.chunk.js.map +0 -1
  395. package/dist/scripts/56-20237748ba.chunk.js +0 -1
  396. package/dist/scripts/56-db73243d04.chunk.js +0 -1
  397. package/dist/scripts/56.chunk.js +0 -209
  398. package/dist/scripts/56.chunk.js.map +0 -1
  399. package/dist/scripts/57-d5c787b4e3.chunk.js +0 -1
  400. package/dist/scripts/57-dfacc1ad90.chunk.js +0 -1
  401. package/dist/scripts/57.chunk.js +0 -211
  402. package/dist/scripts/57.chunk.js.map +0 -1
  403. package/dist/scripts/58-4d5ed35434.chunk.js +0 -1
  404. package/dist/scripts/58-bb756b517d.chunk.js +0 -1
  405. package/dist/scripts/58.chunk.js +0 -113
  406. package/dist/scripts/58.chunk.js.map +0 -1
  407. package/dist/scripts/59-18ef4c5afb.chunk.js +0 -1
  408. package/dist/scripts/59-ad37f90eca.chunk.js +0 -1
  409. package/dist/scripts/59.chunk.js +0 -108
  410. package/dist/scripts/59.chunk.js.map +0 -1
  411. package/dist/scripts/6-0a53c42432.chunk.js +0 -1
  412. package/dist/scripts/6-8ada925fb7.chunk.js +0 -1
  413. package/dist/scripts/6.chunk.js +0 -423
  414. package/dist/scripts/6.chunk.js.map +0 -1
  415. package/dist/scripts/60-81ac7ce262.chunk.js +0 -1
  416. package/dist/scripts/60-f95d0a0a90.chunk.js +0 -1
  417. package/dist/scripts/60.chunk.js +0 -110
  418. package/dist/scripts/60.chunk.js.map +0 -1
  419. package/dist/scripts/61-41c8cb7e0f.chunk.js +0 -1
  420. package/dist/scripts/61-8ce5227508.chunk.js +0 -1
  421. package/dist/scripts/61.chunk.js +0 -161
  422. package/dist/scripts/61.chunk.js.map +0 -1
  423. package/dist/scripts/62-62d450716a.chunk.js +0 -1
  424. package/dist/scripts/62-a0a69501ac.chunk.js +0 -1
  425. package/dist/scripts/62.chunk.js +0 -145
  426. package/dist/scripts/62.chunk.js.map +0 -1
  427. package/dist/scripts/63-91623df29f.chunk.js +0 -1
  428. package/dist/scripts/63-c921b87f3f.chunk.js +0 -1
  429. package/dist/scripts/63.chunk.js +0 -139
  430. package/dist/scripts/63.chunk.js.map +0 -1
  431. package/dist/scripts/64-87c1cf6985.chunk.js +0 -1
  432. package/dist/scripts/64-c0e959f4bb.chunk.js +0 -1
  433. package/dist/scripts/64.chunk.js +0 -142
  434. package/dist/scripts/64.chunk.js.map +0 -1
  435. package/dist/scripts/65-37ba4bad15.chunk.js +0 -1
  436. package/dist/scripts/65-f94e7ab2ef.chunk.js +0 -1
  437. package/dist/scripts/65.chunk.js +0 -170
  438. package/dist/scripts/65.chunk.js.map +0 -1
  439. package/dist/scripts/66-6d5356f6ce.chunk.js +0 -1
  440. package/dist/scripts/66-dc4b036321.chunk.js +0 -1
  441. package/dist/scripts/66.chunk.js +0 -172
  442. package/dist/scripts/66.chunk.js.map +0 -1
  443. package/dist/scripts/67-edfc0ba1e9.chunk.js +0 -1
  444. package/dist/scripts/67.chunk.js +0 -173
  445. package/dist/scripts/67.chunk.js.map +0 -1
  446. package/dist/scripts/68.chunk.js +0 -165
  447. package/dist/scripts/68.chunk.js.map +0 -1
  448. package/dist/scripts/69.chunk.js +0 -102
  449. package/dist/scripts/69.chunk.js.map +0 -1
  450. package/dist/scripts/7-096f5703bd.chunk.js +0 -1
  451. package/dist/scripts/7-81162e12a2.chunk.js +0 -1
  452. package/dist/scripts/7.chunk.js +0 -2629
  453. package/dist/scripts/7.chunk.js.map +0 -1
  454. package/dist/scripts/70.chunk.js +0 -60
  455. package/dist/scripts/70.chunk.js.map +0 -1
  456. package/dist/scripts/71.chunk.js +0 -65
  457. package/dist/scripts/71.chunk.js.map +0 -1
  458. package/dist/scripts/72.chunk.js +0 -37
  459. package/dist/scripts/72.chunk.js.map +0 -1
  460. package/dist/scripts/73.chunk.js +0 -65
  461. package/dist/scripts/73.chunk.js.map +0 -1
  462. package/dist/scripts/74.chunk.js +0 -67
  463. package/dist/scripts/74.chunk.js.map +0 -1
  464. package/dist/scripts/75.chunk.js +0 -104
  465. package/dist/scripts/75.chunk.js.map +0 -1
  466. package/dist/scripts/76.chunk.js +0 -123
  467. package/dist/scripts/76.chunk.js.map +0 -1
  468. package/dist/scripts/77.chunk.js +0 -1001
  469. package/dist/scripts/77.chunk.js.map +0 -1
  470. package/dist/scripts/78.chunk.js +0 -36
  471. package/dist/scripts/78.chunk.js.map +0 -1
  472. package/dist/scripts/79.chunk.js +0 -1001
  473. package/dist/scripts/79.chunk.js.map +0 -1
  474. package/dist/scripts/8-7dc2d39ce2.chunk.js +0 -1
  475. package/dist/scripts/8-a89310bd50.chunk.js +0 -1
  476. package/dist/scripts/8.chunk.js +0 -24
  477. package/dist/scripts/8.chunk.js.map +0 -1
  478. package/dist/scripts/80.chunk.js +0 -36
  479. package/dist/scripts/80.chunk.js.map +0 -1
  480. package/dist/scripts/81.chunk.js +0 -619
  481. package/dist/scripts/81.chunk.js.map +0 -1
  482. package/dist/scripts/82.chunk.js +0 -437
  483. package/dist/scripts/82.chunk.js.map +0 -1
  484. package/dist/scripts/83.chunk.js +0 -633
  485. package/dist/scripts/83.chunk.js.map +0 -1
  486. package/dist/scripts/84.chunk.js +0 -1938
  487. package/dist/scripts/84.chunk.js.map +0 -1
  488. package/dist/scripts/85.chunk.js +0 -692
  489. package/dist/scripts/85.chunk.js.map +0 -1
  490. package/dist/scripts/86.chunk.js +0 -829
  491. package/dist/scripts/86.chunk.js.map +0 -1
  492. package/dist/scripts/87.chunk.js +0 -622
  493. package/dist/scripts/87.chunk.js.map +0 -1
  494. package/dist/scripts/88.chunk.js +0 -962
  495. package/dist/scripts/88.chunk.js.map +0 -1
  496. package/dist/scripts/89.chunk.js +0 -943
  497. package/dist/scripts/89.chunk.js.map +0 -1
  498. package/dist/scripts/9-9865a75c99.chunk.js +0 -1
  499. package/dist/scripts/9.chunk.js +0 -327
  500. package/dist/scripts/9.chunk.js.map +0 -1
  501. package/dist/scripts/90.chunk.js +0 -345
  502. package/dist/scripts/90.chunk.js.map +0 -1
  503. package/dist/scripts/91.chunk.js +0 -108
  504. package/dist/scripts/91.chunk.js.map +0 -1
  505. package/dist/scripts/92.chunk.js +0 -110
  506. package/dist/scripts/92.chunk.js.map +0 -1
  507. package/dist/scripts/93.chunk.js +0 -165
  508. package/dist/scripts/93.chunk.js.map +0 -1
  509. package/dist/scripts/94.chunk.js +0 -102
  510. package/dist/scripts/94.chunk.js.map +0 -1
  511. package/dist/scripts/95.chunk.js +0 -65
  512. package/dist/scripts/95.chunk.js.map +0 -1
  513. package/dist/scripts/96.chunk.js +0 -65
  514. package/dist/scripts/96.chunk.js.map +0 -1
  515. package/dist/scripts/97.chunk.js +0 -67
  516. package/dist/scripts/97.chunk.js.map +0 -1
  517. package/dist/scripts/98.chunk.js +0 -104
  518. package/dist/scripts/98.chunk.js.map +0 -1
  519. package/dist/scripts/99.chunk.js +0 -123
  520. package/dist/scripts/99.chunk.js.map +0 -1
  521. package/dist/scripts/bundle-0958accd59.min.js +0 -15
  522. package/dist/scripts/bundle-fef50e5bb9.min.js +0 -15
  523. package/dist/scripts/bundle.js +0 -47069
  524. package/dist/scripts/bundle.js.map +0 -1
  525. package/dist/scripts/pdf.worker.entry.worker.js +0 -46239
  526. package/dist/scripts/pdf.worker.entry.worker.js.map +0 -1
  527. package/dist/scripts/polyfills-1f23e4a487.min.js +0 -1
  528. package/dist/scripts/polyfills-8a0101e5f1.min.js +0 -1
  529. package/dist/scripts/polyfills.js +0 -15254
  530. package/dist/scripts/polyfills.js.map +0 -1
  531. /package/dist/scripts/{47-c4c6264df4.chunk.js → 47-b6a95ef8b0.chunk.js} +0 -0
  532. /package/dist/scripts/{54-603f252394.chunk.js → 54-ff24fa0c07.chunk.js} +0 -0
  533. /package/dist/scripts/{62-94874205ae.chunk.js → 62-d7cbe9da67.chunk.js} +0 -0
  534. /package/dist/scripts/{64-d280e018c4.chunk.js → 64-1f651e86b3.chunk.js} +0 -0
  535. /package/dist/scripts/{polyfills-2723daf478.min.js → polyfills-46d3c7a509.min.js} +0 -0
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("ReactBootstrap"),require("Marionette"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("SortableHOC"),require("ReactIntersectionObserver"),require("Autosuggest"),require("ImmersiveReader"),require("marked")):"function"==typeof define&&define.amd?define(["React","_","Backbone","Handlebars","ReactBootstrap","Marionette","ReactRedux","moment","ReactDOM","FontAwesome","ReactCustomScrollbars","DOMPurify","Redux","ReactTransitionGroup","Bloodhound","Polyglot","reactDropzone","SortableHOC","ReactIntersectionObserver","Autosuggest","ImmersiveReader","marked"],t):"object"==typeof exports?exports["@clickview/lite"]=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("ReactBootstrap"),require("Marionette"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("SortableHOC"),require("ReactIntersectionObserver"),require("Autosuggest"),require("ImmersiveReader"),require("marked")):e["@clickview/lite"]=t(e.React,e._,e.Backbone,e.Handlebars,e.ReactBootstrap,e.Marionette,e.ReactRedux,e.moment,e.ReactDOM,e.FontAwesome,e.ReactCustomScrollbars,e.DOMPurify,e.Redux,e.ReactTransitionGroup,e.Bloodhound,e.Polyglot,e.reactDropzone,e.SortableHOC,e.ReactIntersectionObserver,e.Autosuggest,e.ImmersiveReader,e.marked)}(window,(function(e,t,n,r,o,i,a,c,u,s,l,f,p,h,d,y,v,g,m,b,w,S){return function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);u.length;)u.shift()()}var n={},r={9:0},o={9:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,2:1,3:1,4:1,5:1,6:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,30:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,47:1,51:1,53:1,54:1,55:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="css/"+e+".chunk.css",a=i.p+o,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=(f=c[u]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(s===o||s===a))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){var f;if((s=(f=l[u]).getAttribute("data-href"))===o||s===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var o=t&&t.target&&t.target.src||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete r[e],p.parentNode.removeChild(p),n(i)},p.href=a,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=a);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"scripts/"+e+"-"+{0:"b02efe11fb",1:"4f19a5caea",2:"53e37c2047",3:"a1bd8c9016",4:"9e83a22d7a",5:"974660e17b",6:"6ac39034e0",7:"5ac5be64dd",8:"95563e3d36",11:"32e30d10ce",12:"72a5373486",13:"1cd85ad3ee",14:"3d60b8ee85",15:"90226fb996",16:"913b2535ea",17:"d6c19ccb60",18:"33efcac0c6",19:"2380200cfb",20:"ca85f0514e",21:"ef4a226771",22:"99c04e164f",23:"028eb81a43",24:"68f8df3eca",25:"7ad07f87d4",26:"f3dcacfe4f",27:"e844268f38",28:"853bc5de1f",29:"b164ecafe9",30:"2cfcf52ea1",31:"e6a8291d2f",32:"7030dc98ed",33:"47b0ac90bd",34:"2de007b628",35:"d2fb66920b",36:"bc85df33de",37:"e26652840b",38:"0b6a6b9619",39:"6549f483c6",40:"8e6e9d285f",41:"2b44a2e66f",42:"9e75f420d8",43:"1141245420",44:"9bc4201e0f",45:"5ded8ca3db",46:"2afd7ee1fb",47:"ab30686138",48:"d9cd99d55e",49:"f43a08f90b",50:"af699c531e",51:"aa7b835007",52:"805f7fe04d",53:"d75ca53045",54:"2e75bad46f",55:"ed637c4847",56:"2ed3b5764b",57:"e51101c8a1",58:"9a32a6fb2d",59:"da8a8c97a9",60:"5713de53e2",61:"7d2ad17963",62:"a0a69501ac",63:"c921b87f3f",64:"87c1cf6985",65:"2322082836",66:"6d5356f6ce"}[e]+".chunk.js"}(e);var s=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,n[1](s)}o[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var u=0;u<a.length;u++)t(a[u]);var s=c;return i(i.s=817)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(187);n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(123);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"c",(function(){return r.c})),n.d(t,"d",(function(){return r.d})),n.d(t,"e",(function(){return r.e})),n.d(t,"f",(function(){return r.f})),n.d(t,"g",(function(){return r.g})),n.d(t,"h",(function(){return r.h})),n.d(t,"i",(function(){return r.i})),n.d(t,"j",(function(){return r.j})),n.d(t,"k",(function(){return r.k})),n.d(t,"l",(function(){return r.l})),n.d(t,"m",(function(){return r.m})),n.d(t,"n",(function(){return r.n})),n.d(t,"o",(function(){return r.o}));n(182)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={DEFAULT:"default:application",PLAYLISTS:"playlists:application",DASHBOARD:"dashboard:application",SUBJECT:"subject:application",EMBED:"embed:application",NOTIFICATIONS:"notifications:application",SEARCH:"search:application",CONTENT_UPDATES:"content:updates:application",USER_MANAGER:"user:manager:application",UPLOAD:"upload:application",CLASSROOMS:"classrooms:application",SETTINGS:"settings:application",WATCH_HISTORY:"watch:history:application"},o={COMBINE_UPLOADS:"combine:uploads:service"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(413),o=n(1),i=n(188),a=n(54),c=n(11),u=n(52),s=n(19),l=n(82);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(v,e);var t,n,a,f=y(v);function v(){return p(this,v),f.apply(this,arguments)}return t=v,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"setConfig",value:function(e){this.polyglot=new r({locale:e.locale,phrases:e.phrases.rootElement||e.phrases}),this.cache={}}},{key:"getPhrase",value:function(e,t,n){var r="".concat(e,".").concat(t);if(this.polyglot||c.c.throw(new s.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!l.a.isDevelopment){var a=window.trackJs;return a&&a.console.error("No phrase set for ".concat(r," in language config")),""}c.c.throw(new s.a("No phrase set for ".concat(r," in language config.")))}if(!n||o.isEmpty(n)){var u=this.cache[r];if(u)return u;var f=this.polyglot.t(r);return this.cache[r]=f,f}var p=o.omit(n,"smartCount"),h={};for(var d in p)h[d]=i.sanitize(p[d]);o.isNumber(n.smartCount)&&(h.smart_count=n.smartCount);var y="".concat(r,":").concat(o.values(Object.assign({},h)).join(":")),v=this.cache[y];if(v)return v;var g=this.polyglot.t(r,h);return this.cache[y]=g,g}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}},{key:"name",get:function(){return u.a.LANGUAGE}}])&&h(t.prototype,n),a&&h(t,a),v}(a.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(19),i=n(54),a=n(11);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,i,c=l(f);function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=c.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=f,i=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"registerDataService",value:function(e,t){var n=this;this.validateConstructor(e);var r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e({dataProvider:n.getInstance(t.dataProvider),cache:n.getInstance(t.cache),bootstrapData:t.bootstrapData,defaultErrorHandler:t.defaultErrorHandler,alertService:t.alertService})},this.destructors[r]=function(){n.instances[r]?n.instances[r].destroy():a.c.throw(new o.a("Trying to destroy a ".concat(r," instance that has already been destroyed"))),n.releaseInstance(t.dataProvider),n.releaseInstance(t.cache)},this}},{key:"registerInstance",value:function(e,t){var n=this;this.validateConstructor(e);var o=e.prototype.name;return this.referenceCounts[o]=0,this.constructors[o]=function(){return new e(t)},this.destructors[o]=function(){return r.isFunction(n.instances[o].destroy)&&n.instances[o].destroy()},this}},{key:"registerSingleton",value:function(e){var t=e.name;return this.singletonInstances[t]=e,this}},{key:"getInstance",value:function(e,t){var n=this;return this.singletonInstances[e]?this.singletonInstances[e]:(this.constructors[e]||a.c.throw(new o.a("".concat(e," was not registered with ").concat(this.name))),this.referenceCounts[e]++,t&&this.listenTo(t,"destroy",(function(){return n.releaseInstance(e)})),this.instances[e]||(this.instances[e]=this.constructors[e]()),this.instances[e])}},{key:"releaseInstance",value:function(e){var t=this;if(this.instances[e])return window.setTimeout((function(){t.referenceCounts[e]--,t.referenceCounts[e]<1&&(t.destructors[e](),delete t.instances[e])}),0),this}},{key:"validateConstructor",value:function(e){var t=e.prototype.name;t||a.c.throw(new o.a("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&a.c.throw(new o.a("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"name",get:function(){return"InstanceManager"}}])&&u(t.prototype,n),i&&u(t,i),f}(i.a).Instance},function(e,t){e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={Default:{ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error",DIALOG_ERROR:"dialog:error",SERIES:"series",PLAY_VIDEO:"play:video",FAVOURITE_VIDEOS:"favourite:videos",MY_VIDEOS:"my:videos",EDIT_VIDEO:"edit:video",EDIT_UPLOAD:"edit:upload",SHARE:"share",LOG_OUT:"log:out",LOG_IN:"log:in"},Playlists:{HOME:"index",PLAYLIST:"playlist",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",DELETE_PLAYLIST:"delete:playlist",ADD_TO_PLAYLIST:"add:to:playlist",REMOVE_VIDEO_FROM_PLAYLIST:"remove:video:from:playlist"},Dashboard:{HOME:"index",DASHBOARD:"dashboard"},Subjects:{CLASSIFICATION:"classification",PREFERENCES:"preferences"},Notifications:{HOME:"index"},Search:{HOME:"index"},ContentUpdates:{CONTENT_UPDATES:"content:updates",CLASSIFICATION_UPDATE:"classification:update"},UserManager:{STUDENTS:"student:manager",TEACHERS:"teacher:manager",REMOVE_USERS:"remove:users",NEW_STUDENT:"new:student",EDIT_STUDENT:"edit:student",NEW_TEACHER:"new:teacher",EDIT_TEACHER:"edit:teacher",STUDENT_UPLOAD_REVIEW:"student:upload:review",TEACHER_UPLOAD_REVIEW:"teacher:upload:review"},Upload:{EDIT_UPLOAD:"edit:upload",CANCEL_UPLOAD:"cancel:upload"},Classrooms:{HOME:"index",CLASSROOM:"classroom",NEW_CLASSROOM:"new:classroom",EDIT_CLASSROOM:"edit:classroom",DELETE_CLASSROOM:"delete:classroom",MANAGE_CLASSROOM:"manage:classroom",ADD_STUDENTS:"add:students",REMOVE_STUDENTS:"remove:students",NEW_GROUP:"new:group",EDIT_GROUP:"edit:group",DELETE_GROUP:"delete:group"},Settings:{HOME:"index"},WatchHistory:{HOME:"index"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return C}));var r=n(9),o=n(16),i=n(82),a=n(29);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}function p(e){var t=v();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return y(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g(r,e)})(e)}function y(e,t,n){return(y=v()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&g(o,n.prototype),o}).apply(null,arguments)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){f(n,e);var t=p(n);function n(e){return l(this,n),t.call(this,e)}return n}(d(Error)),w=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"SilentError"}}]),n}(b),S=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"CoreError"}}]),n}(d(Error)),C={throw:function(e){if(r.Radio.channel(o.a.SHELL).trigger(a.a.ERROR,e),!(e instanceof w||i.a.isDevelopment))throw e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService"},o={ImageUrl:"ImageUrlService",PendingItems:"PendingItemsService",Alerts:"AlertService",VideoUpload:"VideoUploadService",ResourceUpload:"ResourceUploadService",SubtitleUpload:"SubtitleUploadService",VideoMixin:"VideoMixinService",ContextualSearch:"ContextualSearchService",Context:"ContextService",Notification:"NotificationService",AppOptions:"AppOptionsService"}},function(e,t,n){"use strict";var r,o,i=n(125),a=n(1),c=n(258),u=n.n(c),s=n(259),l=n.n(s),f=n(260),p=n.n(f),h=n(261),d=n.n(h),y=(n(262),n(263),n(264)),v=n.n(y),g=n(265),m=n.n(g),b=n(266),w=n.n(b),S=n(267),C=n.n(S),O=n(268),k=n.n(O),E=n(269),P=n.n(E),R=n(270),_=n.n(R),T=n(271),x=n.n(T),A=n(272),L=n.n(A),j=n(273),N=n.n(j),I=n(274),D=n.n(I),U=n(275),M=n.n(U),F=n(276),V=n.n(F),H=n(277),z=n.n(H),B=n(278),q=n.n(B),W=n(279),J=n.n(W),G=n(280),Y=n.n(G),K=n(281),Q=n.n(K),Z=n(282),X=n.n(Z),$=n(283),ee=n.n($),te=n(284),ne=n.n(te),re=(n(285),n(286)),oe=n.n(re),ie=n(287),ae=n.n(ie),ce=n(288),ue=n.n(ce),se=(n(289),n(290),n(291)),le=n.n(se),fe=n(292),pe=n.n(fe),he=n(293),de=n.n(he),ye=n(294),ve=n.n(ye),ge=n(295),me=n.n(ge),be=n(296),we=n.n(be),Se=(n(297),n(298)),Ce=n.n(Se),Oe=n(299),ke=n.n(Oe),Ee=n(300),Pe=n.n(Ee),Re=n(301),_e=n.n(Re),Te=n(302),xe=n.n(Te),Ae=n(303),Le=n.n(Ae),je=n(304),Ne=n.n(je),Ie=(n(305),n(306)),De=n.n(Ie),Ue=n(307),Me=n.n(Ue),Fe=n(308),Ve=n.n(Fe),He=n(309),ze=n.n(He),Be=n(310),qe=n.n(Be),We=n(311),Je=n.n(We),Ge=n(312),Ye=n.n(Ge),Ke=n(313),Qe=n.n(Ke),Ze=n(314),Xe=n.n(Ze),$e=n(315),et=n.n($e),tt=n(316),nt=n.n(tt),rt=n(317),ot=n.n(rt),it=n(318),at=n.n(it),ct=n(319),ut=n.n(ct),st=n(320),lt=n.n(st),ft=n(321),pt=n.n(ft),ht=(n(322),n(323),n(324),n(325)),dt=n.n(ht),yt=(n(326),n(327),n(328),n(329),n(330)),vt=n.n(yt),gt=n(331),mt=n.n(gt),bt=(n(332),n(333),n(334),n(335)),wt=n.n(bt),St=n(336),Ct=n.n(St),Ot=n(337),kt=n.n(Ot),Et=n(338),Pt=n.n(Et),Rt=n(339),_t=n.n(Rt),Tt=n(340),xt=n.n(Tt),At=n(341),Lt=n.n(At),jt=(n(342),n(343),n(344),n(345)),Nt=n.n(jt),It=n(346),Dt=n.n(It),Ut=[u.a,p.a,d.a,v.a,C.a,k.a,P.a,_.a,w.a,l.a,x.a,L.a,N.a,D.a,M.a,m.a,V.a,z.a,q.a,J.a,ne.a,Y.a,Q.a,X.a,ee.a,oe.a,de.a,et.a,ot.a,nt.a,pt.a,at.a,ut.a,lt.a,_e.a,Le.a,xe.a,ae.a,ue.a,ke.a,Pe.a,Ce.a,le.a,ve.a,Me.a,Ve.a,me.a,we.a,ze.a,pe.a,De.a,qe.a,Je.a,Ne.a,Ye.a,Xe.a,Qe.a,vt.a,mt.a,dt.a,kt.a,Ct.a,wt.a,Pt.a,xt.a,_t.a,Lt.a,Dt.a,Nt.a];function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.AddToPlaylists="add-to-playlist",e.Caret="caret",e.Delete="delete",e.Edit="edit",e.NoEdit="no-edit",e.Close="close",e.Folder="folder",e.Resources="resources",e.More="more",e.Bell="bell",e.Plus="plus",e.Search="search",e.Share="share",e.Share2="share2",e.Upload="upload",e.Preview="preview",e.CircleCheck="circle-check",e.Down="down",e.Right="right",e.UpDown="up-down",e.ChevronUp="chevron-up",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.VisibleOff="visible-off",e.VisibleOn="visible-on",e.PublisherArchive="publisher-archive",e.Play="play",e.PlayCircle="play-circle",e.ArrowLeft="arrow-left",e.CheckCircleOutline="check-circle-o",e.CheckCircle="check-circle",e.Check="check",e.Lock="lock",e.Link="link",e.Info="info",e.Question="question",e.Star="star",e.StarOutline="star-o",e.Archive="archive",e.Warning="warning",e.WarningOutline="warning-o",e.NewWindow="new-window",e.File="file",e.FilePDF="file-pdf",e.FileExcel="file-excel",e.FilePowerpoint="file-ppt",e.FileWord="file-word",e.FileImg="file-img",e.FileZip="file-zip",e.Enter="enter",e.Calendar="calendar",e.CloseCaption="close-caption",e.CloseCaptionBadge="close-caption-badge",e.Playlist="playlist",e.Handle="handle",e.Subject="subject",e.Series="series",e.EditClickView="edit-clickview",e.Heart="heart",e.HeartOutline="heart-outline",e.WhiteWave="white-wave",e.Cog="cog",e.Video="video",e.Compass="compass",e.History="history",e.Tag="tag",e.Email="email",e.YearLevel="year-level",e.Subjects="subjects"}(r||(r={}));var Ft;function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}a.extend(i.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(o=i.library).add.apply(o,function(e){if(Array.isArray(e))return Mt(e)}(Ft=Ut)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(Ft)||function(e,t){if(e){if("string"==typeof e)return Mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mt(e,t):void 0}}(Ft)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n.d(t,"a",(function(){return Ht})),n.d(t,"b",(function(){return zt}));var Ht=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"getSvg",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.faIconLookup(e,t),r=this.getIcon(n,t);if(r&&(!r||r.html.length))return r.html.pop()}},{key:"getIcon",value:function(e,t){return i.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return i.findIconDefinition({prefix:r,iconName:e})}}])&&Vt(t.prototype,n),r&&Vt(t,r),e}().Instance,zt=r},function(e,t,n){"use strict";var r=n(185);n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var r={CONFIG:"config:data:service",USER:"user:data:service",LANGUAGE:"language:data:service",LIBRARY:"library:data:service",SEARCH:"search:data:service",SERIES:"series:data:service",NOTIFICATIONS:"notifications:data:service",NOTIFICATIONS_SOCKET:"notifications:socket:service"},o={PENDING_ITEMS:"pending:items:service",VIDEO_UPLOAD:"video:upload:service",SUBTITLE_UPLOAD:"subtitle:upload:service",RESOURCE_UPLOAD:"resource:upload:service",CONTEXTUAL_SEARCH:"contextual:search:service"},i={NOTIFICATIONS:"notifications:application"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return d}));var r=n(6),o=n(100),i=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},a=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},c=function(){function e(){}return e.isRequired=function(e,t){if(null==e)throw new Error("The '"+t+"' argument is required.")},e.isIn=function(e,t,n){if(!(e in t))throw new Error("Unknown "+n+" value: "+e+".")},e}(),u=function(){function e(){}return Object.defineProperty(e,"isBrowser",{get:function(){return"object"==typeof window},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWebWorker",{get:function(){return"object"==typeof self&&"importScripts"in self},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isNode",{get:function(){return!this.isBrowser&&!this.isWebWorker},enumerable:!0,configurable:!0}),e}();function s(e,t){var n="";return l(e)?(n="Binary data of length "+e.byteLength,t&&(n+=". Content: '"+function(e){var t=new Uint8Array(e),n="";return t.forEach((function(e){n+="0x"+(e<16?"0":"")+e.toString(16)+" "})),n.substr(0,n.length-1)}(e)+"'")):"string"==typeof e&&(n="String data of length "+e.length,t&&(n+=". Content: '"+e+"'")),n}function l(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function f(e,t,n,o,c,u,f){return i(this,void 0,void 0,(function(){var i,p,h,d,y;return a(this,(function(a){switch(a.label){case 0:return c?[4,c()]:[3,2];case 1:(h=a.sent())&&((i={}).Authorization="Bearer "+h,p=i),a.label=2;case 2:return e.log(r.a.Trace,"("+t+" transport) sending data. "+s(u,f)+"."),d=l(u)?"arraybuffer":"text",[4,n.post(o,{content:u,headers:p,responseType:d})];case 3:return y=a.sent(),e.log(r.a.Trace,"("+t+" transport) request complete. Response status: "+y.statusCode+"."),[2]}}))}))}function p(e){return void 0===e?new d(r.a.Information):null===e?o.a.instance:e.log?e:new d(e)}var h=function(){function e(e,t){this.subject=e,this.observer=t}return e.prototype.dispose=function(){var e=this.subject.observers.indexOf(this.observer);e>-1&&this.subject.observers.splice(e,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch((function(e){}))},e}(),d=function(){function e(e){this.minimumLogLevel=e,this.outputConsole=console}return e.prototype.log=function(e,t){if(e>=this.minimumLogLevel)switch(e){case r.a.Critical:case r.a.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+r.a[e]+": "+t);break;case r.a.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+r.a[e]+": "+t);break;case r.a.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+r.a[e]+": "+t);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+r.a[e]+": "+t)}},e}()},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,n,r,u=c(s);function s(){return o(this,s),u.apply(this,arguments)}return t=s,(n=[{key:"name",get:function(){return"DevError"}}])&&i(t.prototype,n),r&&i(t,r),s}(n(11).a)},,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(r||(r={}))},,function(e,t,n){e.exports={leftNav:"_3jVyN",leftNavExpanded:"Q3CCb",leftNavAnchor:"_3A_-8",leftNavCollapsed:"_2idO9",bgGrey:"jefGP",leftNavText:"_3qbRh",leftNavBottom:"_1OHHF",partialLeftNavItem:"_131rM",iconGrey:"_2C2dq",leftNavIcon:"_13OIc",discover:"_2dE5b",active:"_3209B",playlists:"_2l2O2",myVideos:"_9xxGp",favouritedVideos:"mqsI_",classrooms:"Zgkg3",classroom:"_2K3g7",watchHistory:"ZMi6H",settings:"YTaso",highlightText:"_3uRuV"}},,function(e,t){e.exports=r},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(12),o=Object.assign(Object.assign({},r.b),{CombineUploads:"combine:uploads:service"}),i=Object.assign(Object.assign({},r.a),{Settings:"SettingsDataService",FlightUser:"FlightUserDataService"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHOW_POPUP:"show:popup",ROUTE:"route",LOCK_NAV:"lock:nav",UNLOCK_NAV:"unlock:nav",NAV_IS_LOCKED:"navigation:islocked",NAV_UNLOCKED_BY_USER:"navigation:unlocked:by:user",ROUTING_START:"routing:start",ROUTING_END:"routing:end",HAS_ACTIVE_ROUTE:"has:active:route",ROUTE_LOOKUP:"route:look:up",URL_CHANGE:"url:change",ERROR:"error",CURRENT_ROUTE:"route:current"}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SEARCH:"search:app:variables",NOTIFICATIONS:"notifications:app:variables",SUBJECTS:"subjects:app:variables"}},function(e,t){e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SUBJECT_PLAYLISTS:"subject:playlists",CURRENT_USER:"current:user",WORKSPACE:"workspace",CONFIG:"config",LOCALE:"locale",PHRASES:"phrases",SEARCH_FILTERS:"search:filters",SERIES:"series",NOTIFICATIONS:"notifications",SUGGEST_EDIT:"suggest:edit"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={debounce:function(e,t,n){return r.debounce(e,t,n)},throttle:function(e,t,n){return r.throttle(e,t,n)},isFunction:function(e){return r.isFunction(e)},useIdentity:function(){return r.identity},memoize:function(e,t){return r.memoize(e,t)}}},,,function(e,t){e.exports=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return c}));var r,o=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=function(e){function t(t,n){var r=this,o=this.constructor.prototype;return(r=e.call(this,t)||this).statusCode=n,r.__proto__=o,r}return o(t,e),t}(Error),a=function(e){function t(t){void 0===t&&(t="A timeout occurred.");var n=this,r=this.constructor.prototype;return(n=e.call(this,t)||this).__proto__=r,n}return o(t,e),t}(Error),c=function(e){function t(t){void 0===t&&(t="An abort occurred.");var n=this,r=this.constructor.prototype;return(n=e.call(this,t)||this).__proto__=r,n}return o(t,e),t}(Error)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(19),a=n(3),c=n(16),u=n(190);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,n,r,i=h(a);function a(){var e;return l(this,a),(e=i.apply(this,arguments)).contextHistory=[],e}return t=a,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"initialize",value:function(){this.listenTo(c.a.SHELL,o.a.EventNames.ROUTE,this.setContext)}},{key:"setContext",value:function(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}},{key:"getCurrentContext",value:function(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}},{key:"name",get:function(){return u.a.Context}}])&&f(t.prototype,n),r&&f(t,r),a}(o.a.Service)),g=n(126);function m(){var e=v.getCurrentContext().appLink;return r.isObject(e)||o.a.ErrorHelper.throw(new i.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.location,n=e.entity,r=e.workflowPhase,a=void 0===r?null:r,c=e.descriptor,u=void 0===c?null:c;return t||o.a.ErrorHelper.throw(new i.a("location must be set.")),n||o.a.ErrorHelper.throw(new i.a("entity must be set.")),{productArea:m(),location:t,entity:n,descriptor:u,workflowPhase:a}}function w(){return o.a.LocationUtils.GetCurrentPath()+o.a.LocationUtils.GetCurrentQueryString()}n.d(t,"a",(function(){return S}));var S={logUserAction:function(e,t){if(function(e){return!(!r.isArray(e)||!r.every(e,(function(e){return r.isObject(e)})))||!!r.isObject(e)}(e)&&r.isObject(t)){var n=S.buildUserActionEvent(t),o=n.userAction,i=n.action,a=n.eventVersion;g.a.log(o,e,i,a)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:w(),appLink:e},t);g.a.log(a.n.Navigate,n)},mergeOptions:function(e,t){return r.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,o=b(e);return{userAction:r,action:o,eventVersion:n}},buildCurrentLocation:function(){return w()},buildSearchEvent:function(e,t){return{data:{query:e},action:b({entity:a.d.Video,location:a.j.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===a.l.Series&&(r=a.d.Series),n===a.l.Folder&&(r=a.d.Folder),n===a.l.Tags&&(r=a.d.Tag),n===a.l.Video&&(r=a.d.Video);var o={instant:{},query:e};return t.id&&(o.instant.selectedId=t.id),t.name&&(o.instant.selectedName=t.name),{data:o,action:b({entity:r,location:a.j.SearchBar})}},mapInteractionType:function(e){switch(e){case a.h.DragDrop:return a.i.DragDrop;case a.h.FileSelect:return a.i.FileSelect;default:return}}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(9);function o(e,t,n,o){var i=e;return"string"==typeof e&&(i=r.Radio.channel(e)),o.call(this,i,t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return d}));var r=n(1),o=n(9),i=n(78),a=n(16),c=n(29),u=/((\(\?)?:\w+)|(\*\w+)/,s=/[\(\)]/g,l=/\(\/\)/g,f=/\/$/,p={routingStarted:function(){o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_START)},routingEnded:function(){p.hasActiveRoute()&&o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_END)},hasActiveRoute:function(){return o.Radio.channel(a.a.SHELL).request(c.a.HAS_ACTIVE_ROUTE)}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;o.Radio.channel(n).trigger(r,e,t)},d={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,i=e.params,u=o.Radio.channel(a.a.SHELL);return"/".concat(u.request(c.a.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,i))},buildRoute:function(e,t){if(!t)return e;var n=t.args,o=t.params;if(r.each(n,(function(t){e=e.replace(u,t||"")})),e=(e=(e=e.replace(l,"")).replace(s,"")).replace(f,""),!o)return e;var a=i.a.SerializeQueryParams(o);return a.length?"".concat(e,"?").concat(a):e},trigger:function(e,t){e&&(p.hasActiveRoute()?o.Radio.channel(a.a.SHELL).once("routing:end",(function(){h(e,t)})):h(e,t))},getCurrentAppLink:function(){return o.Radio.channel(a.a.SHELL).request(c.a.CURRENT_ROUTE)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UPLOAD_COMPLETE:"upload:complete",FILES_SELECTED:"files:selected",FILES_ADDED:"files:added",UPLOAD_CANCELLED:"upload:cancelled",PENDING_ITEM_READY_TO_WATCH:"pending:item:ready:to:watch",PENDING_ITEM_STATUS_CHANGE:"pending:item:status:change",PROCESSING_CANCELLED:"processing:cancelled",UNLOCK_NAV:"upload:unlock:nav"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(192),o="categories{libraries.typeid:".concat(r.a.CustomMediaObjectCollection,"}"),i={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(o,",libraries,tags,clips{limit:100},")+"interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",SHARED_PLAYLIST_VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(o,",libraries,tags,clips{limit:100},")+"interactives{limit:100},subtitles{limit:1},resources{limit:1},links{limit:1}",SERIES:"tallposter,rating",FOLDER:"banner,thumbnail",CLASSIFICATION:"banner,cover",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1},followers[count()]{limit:0}",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover,owner[avatar],subjectpresentationaudiences"},a={SubjectPresentationActiveAudienceFilter:function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},SubjectPresentationAudienceFilter:function(e){return"subjectpresentationaudiences{presentationId:".concat(e,"}")},ClassificationWithFollowersAndMemberCount:function(e){return i.CLASSIFICATION+",followers{id:".concat(e,"},videos[count()]{limit:0}")+",playlists[count()]{limit:0},series[count()]{limit:0}"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(414),i=n.n(o),a=/&/g,c=/[\W]+/g,u=/\s+/g,s={className:"info-link"},l={escapeExpression:function(e){return window.Handlebars.escapeExpression(e)},escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},slugify:function(e){if(e)return e.toLowerCase().replace(a,"and").replace(c," ").trim().replace(u,"-").substr(0,80)},linkifyText:function(e,t){if(e){var n=t?r.extend({},s,t):s;return i()(e,n)}},isEqual:function(e,t){return!!e&&!!t&&e.toString()===t.toString()},toTitleCase:function(e){return e.split(" ").map((function(e){return(e[0]?e[0].toUpperCase():"")+(e.substr(1)?e.substr(1).toLowerCase():"")})).join(" ")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return m}));var r,o,i=n(1),a=n(9),c=n(121),u=n(72),s=n(54),l=n(16),f=n(52);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Success="success",e.Warning="warning",e.Fail="danger",e.Info="info"}(r||(r={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(o||(o={}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,n,r,o=y(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.alertCollection=new c.a,this.listenTo(l.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"showAlerts",value:function(){var e=a.Radio.channel(l.a.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=i.extend({},t,{ctor:this.options.alertViewCtor})),e.trigger("show:alert",t)}},{key:"removeAlert",value:function(e){this.alertCollection.remove(e),this.showAlerts()}},{key:"createAlert",value:function(e){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),e.id||(e=i.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new u.a(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?i.bind((function(e,n){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?i.bind((function(e){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return i.uniqueId("alert_")}},{key:"name",get:function(){return f.a.ALERT}},{key:"defaults",get:function(){return{maxAlerts:3}}}])&&h(t.prototype,n),r&&h(t,r),s}(s.a)},,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.ExchangeVideoAvailable="exchange-video-available",e.WorkspaceVideoAvailable="workspace-video-available",e.Marketing="marketing",e.EditedVideoAvailable="edited-video-available",e.VideoRequestAvailable="pay-tv-video-available",e.VideoRequestDenied="pay-tv-video-denied",e.VideoReviewReminder="term-update-review-reminder",e.VideoReviewAddedToLibrary="term-update-review-videos-added-to-library",e.CustomLibraryVideoAvailable="custom-library-video-available",e.VideoProcessingFailed="video-processing-failed",e.StaffRequest="new-staff-request",e.StaffRequestFulfilled="staff-request-fulfilment",e.ChapterMergeSuccess="media-concatenate-success",e.SuggestEdit="suggest-an-edit"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(2),i=n(40);function a(e){var t=e.appLink,n=e.className,a=e.children,c=e.tag,u=void 0===c?"a":c;if(!t)return r.createElement("span",{className:n||""},a);var s=o.a.AppLinkHelper.getHref(t),l=e.onClick;l||(l=function(n){n.preventDefault(),e.analyticsData&&e.analyticsOptions&&i.a.logUserAction(Object.assign({href:s},e.analyticsData),e.analyticsOptions),o.a.AppLinkHelper.trigger(t)});var f={onClick:l,href:s,className:n};return r.createElement(u,Object.assign({},f),a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(38),o=n(42),i=n(11);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,r,a=l(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=a.call(this,e)).name||i.c.throw(new i.b("Your service must be named.")),t}return t=f,(n=[{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Object)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return u}));var r,o=n(0),i=n(35),a=n(13),c=n(156);function u(e){var t=e.svgName,n=e.className,u=void 0===n?"d-inline-block svg-container":n,s=e.tagName,l=void 0===s?"span":s,f=e.size,p=void 0===f?r.Standard:f,h=e.onClick,d=e.title,y=e.tooltipPlacement,v=void 0===y?"right":y,g=l,m={dangerouslySetInnerHTML:{__html:a.a.getSvg(t)},className:"".concat(u," ").concat(p),onClick:i.a.isFunction(h)?h:null};return d?o.createElement(c.a,{title:d,placement:v},o.createElement(g,Object.assign({},m))):o.createElement(g,Object.assign({},m))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg",e.XXL="xxlg"}(r||(r={}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={isEmpty:function(e){return r.isEmpty(e)},values:function(e){return r.values(e)},keys:function(e){return r.keys(e)},deepClone:function(e){return(r.isArray(e)?r.map:r.mapObject)(e,(function(e){return r.isObject(e)||r.isArray(e)?o.deepClone(e):e}))},getEnumKeys:function(e){return Object.keys(e).filter((function(e){return!(parseInt(e)>=0)}))},isObject:function(e){return r.isObject(e)},isEqual:function(e,t){return r.isEqual(e,t)},omit:function(e,t){return r.omit(e,t)}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(9),i=n(54),a=n(11),c=n(19);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,n,i,u=h(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=u.call(this,e),r.result(y(t),"name")||a.c.throw(new c.a("Must provide a name when extending BaseDataService")),r.result(y(t),"channelName")||a.c.throw(new c.a("Must provide a channelName for ".concat(r.result(y(t),"name"))));var n=[].concat(s(t.defaultProps),s(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=l,(n=[{key:"getCursors",value:function(e){var t=this.cache.get(e);return t?t.cursors:{}}},{key:"clearCacheAndGet",value:function(e){var t=this,n=e.callback,o=e.errorCallback,i=e.eventPrefix,a=this.getEventNames(i),c=a.syncEvent,u=a.errorEvent,s=this.cache.get(i);if(s&&s.openRequest)return this.listenToOnce(this.getChannel(),c,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),u,o),r.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),u,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),c,n),r.isFunction(o)&&o()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,o=e.errorCallback,i=e.eventPrefix,a=e.resource,c=e.formatData,u=e.expiryTime,s=e.successHandler,l=e.errorHandler,f=e.bootstrapName,p=this.getEventNames(i),h=p.syncEvent,d=p.requestEvent,y=p.successEvent,v=p.errorEvent,g=this.getChannel(),m=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[f]&&(this.cacheData(i,this.bootstrapData[f],c,{openRequest:!1,timestamp:m}),delete this.bootstrapData[f]);var b,w=this.cache.get(i);w&&(b=w.data);var S=w&&w.openRequest,C=this.isExpired(i,u);if(S&&(this.listenToOnce(g,h,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),v,o),r.isFunction(n)&&n(e)})),this.listenToOnce(g,v,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),h,n),r.isFunction(o)&&o()}))),this.cache.has(i)&&!C||(g.trigger(d),this.listenToResponse({eventPrefix:i,formatData:c,cacheOptions:{timestamp:m},callback:n,errorCallback:o,successHandler:s,errorHandler:l}),this.cacheData(i,null,null,{openRequest:!0,timestamp:m}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:y,errorEvent:v})),b&&r.isFunction(n)&&!C&&n(b),b)return b}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.invalidationKeys,u=e.successHandler,s=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,d=this.getChannel(),y=this.getTransportChannel();d.trigger(f),this.listenToResponse({eventPrefix:t,formatData:o,invalidationKeys:c,callback:i,errorCallback:a,successHandler:u,errorHandler:s}),this.dataProvider.create(n,r,{channel:y,successEvent:p,errorEvent:h})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,o=e.resource,i=e.formatData,a=e.eventPrefix,c=e.invalidationKeys,u=e.errorHandler,s=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,d=this.getChannel(),y=this.getTransportChannel();d.trigger(f),this.listenToResponse({eventPrefix:a,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.dataProvider.update(o,t,{channel:y,successEvent:p,errorEvent:h})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,o=e.errorCallback,i=e.invalidationKeys,a=e.successHandler,c=e.errorHandler,u=this.getEventNames(t),s=u.successEvent,l=u.errorEvent,f=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:i,callback:r,errorCallback:o,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:c}),this.dataProvider.delete(n,{channel:f,successEvent:s,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.successHandler,u=e.errorHandler,s=e.invalidationKeys,l=e.cacheOptions,f=void 0===l?{}:l,p=this.getEventNames(n),h=p.syncEvent,d=(p.requestEvent,p.successEvent),y=p.errorEvent,v=p.successAlertEvent,g=p.errorAlertEvent,m=this.getChannel(),b=this.getTransportChannel(),w=this.getAlertChannel();r.isFunction(i)&&this.listenToOnce(m,h,i),r.isFunction(a)&&this.listenToOnce(m,y,a),this.stopListening(w,v),this.stopListening(w,g),r.isFunction(c)&&this.listenToOnce(w,v,c),r.isFunction(u)&&this.listenToOnce(w,g,u),!r.isFunction(u)&&!1!==u&&r.isFunction(this.defaultErrorHandler)&&this.listenToOnce(w,g,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(b,d,(function(e){t.stopListening(m,y,a);for(var r=arguments.length,i=new Array(r>1?r-1:0),c=1;c<r;c++)i[c-1]=arguments[c];w.trigger.apply(w,[v,e].concat(i));var u=f.noCache?t.formatData(e,o):t.cacheData(n,e,o);f.clearCacheKey&&t.cache.remove(n),m.trigger(h,u),s&&s.length&&t.cache.invalidate(s,(function(e){return m.trigger("".concat(e,":invalidate"))}))})),this.listenTo(b,y,(function(){var e;t.stopListening(m,h,i);var r=(e=t.dataProvider).parseError.apply(e,arguments);w.trigger(g,r),m.trigger(y,r),f.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.openRequest,i=void 0!==o&&o,a=r.timestamp;a||(a=this.currentTimestamp());var c=this.processPagination(t),u=this.formatData(t,n);return this.cache.set(e,{data:u,timestamp:a,cursors:c,openRequest:i}),u}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:r.isUndefined(t.offset)||r.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return r.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){r.isFunction(e)&&e(t)},o=function(r,o){return t.push((function(){var i=r.callback;r.callback=function(e){n(i,e),n(t.shift())},e[o](r)})),i},i={func:function(e){return t.push((function(){e(t.shift()||function(){})})),i},get:function(e){return o(e,"get")},create:function(e){return o(e,"create")},update:function(e){return o(e,"update")},delete:function(e){return o(e,"delete")},run:function(){n(t.shift())}};return i}},{key:"invalidateCache",value:function(e){e&&e.length&&this.cache.invalidate(e)}},{key:"currentTimestamp",value:function(){return(new Date).valueOf()}},{key:"isExpired",value:function(e,t){if(!t)return!1;var n=this.cache.get(e);if(!n||!n.timestamp)return!0;var r=1e3*t;return n.timestamp<this.currentTimestamp()-r}},{key:"getEventNames",value:function(e){return{syncEvent:"".concat(e,":sync"),requestEvent:"".concat(e,":request"),successEvent:"".concat(e,":success"),errorEvent:"".concat(e,":error"),successAlertEvent:"".concat(e,":success:alert"),errorAlertEvent:"".concat(e,":error:alert")}}},{key:"getTransportChannel",value:function(){return o.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return o.Radio.channel("".concat(this.channelName,":alert"))}},{key:"setRequestSignature",value:function(e){this.dataRequestSignatures[e]=e}},{key:"hasRequestSignature",value:function(e){return!!this.dataRequestSignatures[e]}},{key:"convertOffsetPaginationToCursors",value:function(e){var t=e.offset,n=e.pageSize,o=e.totalItems,i=o>0&&t<o&&t+n,a=o>0&&t>0&&Math.max(t-n,0),c={};if(i&&i<o&&(c.next=i.toString()),r.isNumber(a)&&(c.previous=a.toString()),!r.isEmpty(c))return c}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,o=r.isNumber(t)&&t>0&&t<n&&t+1,i=r.isNumber(t)&&t>1&&t-1,a={};if(o&&o<=n&&(a.next=o.toString()),i&&(a.previous=i.toString()),!r.isEmpty(a))return a}},{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}}])&&f(t.prototype,n),i&&f(t,i),l}(i.a)},function(e,t){e.exports=a},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(1),o=n(112),i=n(19),a=n(54),c=n(72),u=n(145),s=n(11);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(d,e);var t,n,a,l=h(d);function d(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(e=l.call(this)).viewObjects={},e}return t=d,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"updateViewModel",value:function(e,t){var n=this.mergeData(t,e.toJSON());return e instanceof u.a&&e.set(n,{silent:!0}),e instanceof c.a&&!(e instanceof u.a)&&e.set(n,{silent:!0}),e}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.update,o=void 0!==r&&r,i=this.viewObjects[e];if(i&&o)return this.updateViewModel(i,t);if(i)return i;var a=this.getLocalData(e,n);return this.set(e,t,a,n)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=r.ctor,i=r.storage,a=this.mergeData(t,n),u=o?new o(a):new c.a(a);return this.viewObjects[e]=u,i&&!n?(this.setLocalData(e,u,null,r),this.setupChangeListeners(e,u,r)):i&&n&&this.setupChangeListeners(e,u,r),u}},{key:"clear",value:function(e){var t=this.viewObjects[e];return!!t&&(this.stopListening(t),t.trigger("destroy"),delete this.viewObjects[e],!0)}},{key:"getLocalData",value:function(e,t){var n=t.storage;if(n)return this.getStorageHelper(n.type).get(e)}},{key:"setLocalData",value:function(e,t,n,r){var o,i=r.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),t instanceof c.a&&(o=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,o))}},{key:"setupChangeListeners",value:function(e,t,n){var o=this,i=n.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),r.each(i.persistProps,(function(i){o.listenTo(t,"change:".concat(i),r.partial(o.setLocalData,e,r,r,n))})))}},{key:"mergeData",value:function(e,t){return t?r.isObject(e)&&r.isObject(t)?r.extend(e,t):void s.c.throw(new i.a("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case o.c.LocalStorage:return o.a;case o.c.SessionStorage:return o.b}}},{key:"name",get:function(){return"ViewModelService"}}])&&f(t.prototype,n),a&&f(t,a),d}(a.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHORT:120,STANDARD:600}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(5),o=n(10);function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={getDiscoverAppLinks:function(){var e=r.a.DASHBOARD;return Object.keys(o.a.Dashboard).map((function(t){return{application:e,action:o.a.Dashboard[t]}}))},getPlaylistAppLinks:function(){var e=r.a.PLAYLISTS;return Object.keys(o.a.Playlists).map((function(t){return{application:e,action:o.a.Playlists[t]}}))},getMyVideosAppLinks:function(){var e=r.a.UPLOAD,t=Object.keys(o.a.Upload).map((function(t){return{application:e,action:o.a.Upload[t]}}));return t.push({application:r.a.DEFAULT,action:o.a.Default.MY_VIDEOS}),t},getFavouritedVideosAppLinks:function(){return[{application:r.a.DEFAULT,action:o.a.Default.FAVOURITE_VIDEOS}]},getWatchHistoryAppLinks:function(){var e=r.a.WATCH_HISTORY;return Object.keys(o.a.WatchHistory).map((function(t){return{application:e,action:o.a.WatchHistory[t]}}))},getClassroomsAppLinks:function(){return[{application:r.a.CLASSROOMS,action:o.a.Classrooms.HOME}]},getClassroomAppLinks:function(){var e=r.a.CLASSROOMS;return Object.keys(o.a.Classrooms).filter((function(e){return e!==o.a.Classrooms.HOME})).map((function(t){return{application:e,action:o.a.Classrooms[t]}}))},getSettingsAppLinks:function(){var e=Object.keys(o.a.Settings).map((function(e){return{application:r.a.SETTINGS,action:o.a.Settings[e]}}));return[].concat(i(e),[{application:r.a.SUBJECT,action:o.a.Subjects.PREFERENCES}])}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(9),i=n(42);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,o,a=f(p);function p(){return c(this,p),a.apply(this,arguments)}return t=p,(n=[{key:"mixin",value:function(e){for(var t in e){if(this.hasOwnProperty(t)){var n=this[t];return void(this[t]=r.extend({},n,e[t]))}this[t]=e[t]}}},{key:"addValidation",value:function(e){this.mixin({validation:e})}},{key:"validate",value:function(e,t){s(h(p.prototype),"validate",this).call(this,e,t)}},{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(h(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),o&&u(t,o),p}(o.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(0),o=n(7),i=n(57),a=r.createContext(""),c=r.memo((function(e){var t=e.phrase,n=e.namespace,i=e.options,c=r.useContext(a),u=n||c,s=o.a.getPhrase(u,t,i);return r.createElement("span",{dangerouslySetInnerHTML:{__html:s}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&i.a.isEqual(e.options,t.options)}))},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o=function(e,t,n){this.statusCode=e,this.statusText=t,this.content=n},i=function(){function e(){}return e.prototype.get=function(e,t){return this.send(r({},t,{method:"GET",url:e}))},e.prototype.post=function(e,t){return this.send(r({},t,{method:"POST",url:e}))},e.prototype.delete=function(e,t){return this.send(r({},t,{method:"DELETE",url:e}))},e.prototype.getCookieString=function(e){return""},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),o=n(9),i=n(43),a=n(29),c=n(16),u={GetQuery:function(){return u.DeserializeQueryParams(window.location.search.substring(1))},UpdateQuery:function(e){if(e){var t=u.GetQuery(),n=u.SerializeQueryParams(r.extend(t,e));n&&(n="?".concat(n)),u.UpdateUrl("".concat(u.GetCurrentPath()).concat(n),null,{replace:!0,trigger:!1})}},UpdateUrl:function(e,t,n){var r=i.a.buildRoute(e,t);o.history.navigate(r,n),o.Radio.channel(c.a.SHELL).trigger(a.a.URL_CHANGE,t,n)},SerializeQueryParams:function(e){return e?"string"==typeof e?e:$.param(e,!0):""},DeserializeQueryParams:function(e){return e?r.reduce(e.split("&"),(function(e,t){var n=t.split("="),r=n[0],o=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(o),e):(e[r]=[e[r],o],e):(e[r]=o,e)}),{}):{}},StartHistory:function(){o.History.started&&o.history.stop(),o.history.start({pushState:!0})},PageLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?window.open(e,"_blank"):window.location.href=e},Redirect:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(){return t?window.location.replace(e):window.location.href=e};i.b.hasActiveRoute()?o.Radio.channel(c.a.SHELL).once("routing:end",n):n()},Reload:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.location.reload(e)},GetCurrentPath:function(){return window.location.pathname},GetCurrentQueryString:function(){return window.location.search},GetCurrentUrl:function(){return window.location.href},GetCurrentReferrer:function(){return document.referrer},SetPageTitle:function(e){document.title=e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=/\/$/,i={urlBuilder:function(e,t){var n=r.map(t,(function(e,t){return t&&Array.isArray(e)?e.map((function(e){return"".concat(t,"=").concat(encodeURIComponent(e))})).join("&"):t&&void 0!==e?"".concat(t,"=").concat(encodeURIComponent(e)):""})),o=r.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return o?"".concat(e,"?").concat(o):e},buildFilter:function(e){var t=[];if(e.limit&&t.push("limit:".concat(e.limit)),e.cursor&&t.push("page:".concat(e.cursor)),e.before&&t.push("dateCreated:...".concat(e.before)),t.length)return t.join(",")},makeHttps:function(e){return r.isString(e)?-1===e.indexOf("http://")?e:e=e.replace("http://","https://"):e},safeUrlConcat:function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):t:n}},removeTrailingSlash:function(e){if("string"==typeof e)return e.replace(o,"")}}},,,function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return o}));var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.variables={}}var t,n,o;return t=e,o=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}},{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}}])&&r(t.prototype,n),o&&r(t,o),e}().Instance},function(e,t,n){e.exports={alertItem:"_3ppPT",alertBox:"_2gPqV",alertList:"_1_wrK",icon:"_2gpnl",alertContent:"_1akpi",heading:"_3jnJY"}},function(e,t,n){e.exports={content:"_1SX2l",collapsedNavContent:"_3LJFz",openNavContent:"_34Pt4",hiddenNavContent:"_1gZ0J",mask:"mE2Dq",fixedBottomRightContainer:"Sgmex"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyUpdated="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa"}(r||(r={}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(61),o=n(193),i=function(e,t){var n=Object(r.useDispatch)(),i=Object(r.useSelector)((function(t){return t.viewModelData[e]}));function a(t,r){n({type:o.a.UPDATE,payload:{viewModelKey:e,dataOrKey:t,keyData:r}})}return void 0!==t&&void 0===i&&a(t),[i,a]}},function(e,t){e.exports=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(16),i=n(12);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(p,e);var t,n,a,f=l(p);function p(){var e;return c(this,p),(e=f.apply(this,arguments)).routeHistory=[],e.contextHistory=[],e}return t=p,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"initialize",value:function(){this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.setContext),this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.updateRouteHistory)}},{key:"setContext",value:function(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}},{key:"getCurrentContext",value:function(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}},{key:"getPreviousContext",value:function(){if(this.contextHistory.length&&!(this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}},{key:"updateRouteHistory",value:function(e){(r.a.AppLinkHelper.getHref(e)||"/"===r.a.LocationUtils.GetCurrentPath())&&(this.routeHistory.length>=3&&this.routeHistory.unshift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:e}))}},{key:"getCurrentRoute",value:function(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}},{key:"getPreviousRoute",value:function(){if(this.routeHistory.length&&!(this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}},{key:"name",get:function(){return i.b.Context}}])&&u(t.prototype,n),a&&u(t,a),p}(r.a.Service))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SEARCH_BAR_LOCATION:"search:bar:location",WEB_PLAYER_DATA:"web:player:data",BULK_TEACHER_UPLOAD:"bulk:teacher:upload",BULK_STUDENT_UPLOAD:"bulk:student:upload"}},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){}return e.prototype.log=function(e,t){},e.instance=new e,e}()},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Unknown=0]="Unknown",e[e.BadRequest=1]="BadRequest",e[e.Unauthorized=2]="Unauthorized",e[e.Forbidden=3]="Forbidden",e[e.NotFound=4]="NotFound",e[e.InternalServer=5]="InternalServer"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Received=1]="Received",e[e.Seen=2]="Seen",e[e.Read=3]="Read"}(r||(r={}))},function(e,t){e.exports=u},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Error=-1]="Error",e[e.Processing=1]="Processing",e[e.Completed=2]="Completed"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){}return e.write=function(t){return""+t+e.RecordSeparator},e.parse=function(t){if(t[t.length-1]!==e.RecordSeparator)throw new Error("Message is incomplete.");var n=t.split(e.RecordSeparator);return n.pop(),n},e.RecordSeparatorCode=30,e.RecordSeparator=String.fromCharCode(e.RecordSeparatorCode),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){var t=o(Object(r.useState)(window.matchMedia(e).matches),2),n=t[0],i=t[1];return Object(r.useEffect)((function(){var t=window.matchMedia(e);t.matches!==n&&i(t.matches);var r=function(){return i(t.matches)};return t.addListener(r),function(){return t.removeListener(r)}}),[e]),n}},,,,,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var p;n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return g})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sesstionStorage"}(p||(p={}));var h=function(){function e(t){s(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport&&(this.storage=window[this.type])}return f(e,[{key:"get",value:function(e){if(this.hasSupport){var t=this.storage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}}},{key:"set",value:function(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),"string"!=typeof t?(this.storage.setItem(e,JSON.stringify(t)),!0):(this.storage.setItem(e,t),!0)}catch(e){return!1}}},{key:"remove",value:function(e){if(this.hasSupport)return this.storage.removeItem(e)}},{key:"length",value:function(){if(this.hasSupport)return this.storage.length}},{key:"clear",value:function(){if(this.hasSupport)return this.storage.clear()}},{key:"cacheSet",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.expireTime;this.cacheClean();var r={time:this.getCurrentTime()+1e3*n,data:null!=t&&t};return this.set("".concat(this.cachePrefix).concat(e),r)}},{key:"cacheGet",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}},{key:"cacheExists",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return!!n&&(!this.isExpired(n)||(this.remove(t),!1))}},{key:"cacheRemove",value:function(e){return this.remove("".concat(this.cachePrefix).concat(e))}},{key:"cacheFlush",value:function(){this.cacheClean()}},{key:"cacheClean",value:function(){if(this.hasSupport)for(var e=0;e<this.storage.length;e++){var t=this.storage.key(e);if(0===t.indexOf(this.cachePrefix)){var n=this.get(t);n&&n.time&&this.isExpired(n)&&this.remove(t)}}}},{key:"isExpired",value:function(e){return e.time<this.getCurrentTime()}},{key:"getCurrentTime",value:function(){return(new Date).getTime()}},{key:"hasBrowserSupport",value:function(){try{return this.type in window&&null!==window[this.type]}catch(e){return!1}}}]),e}(),d=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.LocalStorage}))}}]),n}(h),y=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.SessionStorage}))}}]),n}(h),v=d.Instance,g=y.Instance},function(e,t,n){e.exports={svgContainer:"_1ZcbC",searchContextTag:"_1RLqh",tagFocus:"_179a5",searchContextContainer:"_3nPVB"}},function(e,t,n){e.exports={nav:"_3RLQ9",logoContainer:"UIlc9",searchBar:"_2E7RQ",actionButtons:"_2HygL",hamburger:"_2BRko",searchBarNavContainer:"_2bUnK"}},function(e,t,n){"use strict";var r,o,i,a;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),function(e){e.Small="small",e.Medium="medium",e.Large="large"}(r||(r={})),function(e){e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars",e[e.Logos=3]="Logos",e[e.Covers=4]="Covers",e[e.Posters=5]="Posters",e[e.TallPosters=6]="TallPosters",e[e.HeroBanners=7]="HeroBanners"}(o||(o={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(i||(i={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(7);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f="shared.notFoundError",p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,n,r,i=u(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,o.a.getPhrase(f,"title"))}return t=s,(n=[{key:"name",get:function(){return"NotFoundError"}},{key:"heading",get:function(){return o.a.getPhrase(f,"heading")}},{key:"description",get:function(){return o.a.getPhrase(f,"description")}}])&&a(t.prototype,n),r&&a(t,r),s}(r.a.SilentError)},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(9),o=n(42);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,r,i=l(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Collection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={type:n(102).a.Unknown,message:"",code:0}},function(e,t,n){"use strict";var r,o,i,a,c,u,s,l,f,p,h,d,y,v,g,m,b,w,S,C,O;n.d(t,"n",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"j",(function(){return i})),n.d(t,"o",(function(){return a})),n.d(t,"k",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"i",(function(){return v})),n.d(t,"a",(function(){return m})),n.d(t,"m",(function(){return b})),n.d(t,"e",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"l",(function(){return C})),n.d(t,"f",(function(){return O})),function(e){e.Stream="cv_product_stream",e.StreamRaw="cv_product_stream_raw",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(r||(r={})),function(e){e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Restriction="restriction",e.Interactive="interactive",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.Upload="upload",e.SearchResults="search_results",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url"}(o||(o={})),function(e){e.TopNav="top_nav",e.LeftNav="left_nav",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.VideoItemPreview="video_item_preview",e.VideoDetails="video_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.StaffRequestDetails="staff_request_details",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.TeacherManager="teacher_manager",e.TeacherManagerListItem="teacher_manager_list_item",e.StudentManager="student_manager",e.StudentManagerListItem="student_manager_list_item",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ClassroomOverview="classroom_overview",e.ClassroomOverviewStudentListItem="classroom_overview_student_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.PlayPage="play_page",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.Dashboard="dashboard"}(i||(i={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(a||(a={})),function(e){e.PageLoad="page_load"}(c||(c={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(u||(u={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(s||(s={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(l||(l={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(f||(f={})),function(e){e.Start="start",e.Finish="finish",e.Terminate="terminate",e.Play="play",e.Pause="pause",e.Playback="playback",e.NextChapter="next_chapter",e.PreviousChapter="previous_chapter",e.FullScreenEnter="full_screen_enter",e.FullScreenExit="full_screen_exit"}(p||(p={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Title="title",e.ToggleHideValidListings="toggle_hide_valid_listings",e.LaunchImmersiveReader="launch_immersive_reader",e.CopyEmbedHtml="copy_embed_html",e.Close="close",e.Open="open",e.Button="button",e.Link="link",e.Tile="tile",e.Thumbnail="thumbnail",e.Cover="cover",e.TallPoster="tall_poster",e.Slide="slide"}(h||(h={})),function(e){e.FeatureUserChannelVideo="feature_user_channel_video",e.RemoveFromUserChannelPlaylist="remove_from_user_channel_playlist",e.ShareClip="share_clip",e.ViewOriginalVideo="view_original_video",e.ShareInteractive="share_interactive",e.DeleteInteractiveVideo="delete_interactive_video",e.CopyInteractiveVideo="copy_interactive_video",e.EditInteractiveVideo="edit_interactive_video",e.PrintAsWorksheet="print_as_worksheet",e.PreviewInteractiveVideo="preview_interactive_video",e.ViewResults="view_results",e.MoveToAnotherFolder="move_to_another_folder",e.CreateInteractiveVideo="create_interactive_video",e.ShareVideo="share_video",e.EditVideo="edit_video",e.DownloadVideo="download_video",e.AddToExchange="add_to_exchange",e.AddToUserChannel="add_to_user_channel",e.CreateClip="create_clip",e.FlagVideo="flag_video",e.AddToLibrary="add_to_library",e.AddToWorkspace="add_to_workspace",e.AddToPlaylist="add_to_playlist",e.RemoveFromPlaylist="remove_from_playlist",e.AddCurriculumLink="add_curriculum_link",e.ViewCurriculumLinks="view_curriculum_links",e.OpenInCurator="open_in_curator",e.ManageVideoAccess="manage_video_access",e.Approve="approve",e.AddToLocalCache="add_to_local_cache",e.OpenInLibraryEditor="open_in_library_editor",e.PlayClip="play_clip",e.EditClip="edit_clip",e.DeleteClip="delete_clip"}(d||(d={})),function(e){e.LibraryReview="library_review"}(y||(y={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(v||(v={})),function(e){e.Edit="edit"}(g||(g={})),function(e){e.Image="image",e.User="user",e.Playlist="playlist"}(m||(m={})),function(e){e.On="on",e.Off="off"}(b||(b={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(w||(w={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(S||(S={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags"}(C||(C={})),function(e){e[e.V1=1]="V1"}(O||(O={}))},function(e,t,n){"use strict";var r=n(0),o=n(2),i=" - ClickView",a=function(e){e&&o.a.LocationUtils.SetPageTitle(function(e){return e.length+i.length<=60?e+i:e.substring(0,57)+"..."+i}(e))};function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var s=r.createContext({}),l=function(e){var t=e.children,n=e.defaultTitle,o=void 0===n?"":n,i=c(r.useState(o),2),u=i[0],l=i[1],f=c(r.useState(o),2),p=f[0],h=f[1];return r.useEffect((function(){return a(u)}),[u]),r.createElement(s.Provider,{value:{setPageTitle:function(e){e!==u&&(u!==p&&h(u),l(e))},revertPageTitle:function(){l(p)}}},t)}},function(e,t){e.exports=s},function(e,t,n){"use strict";var r=n(9),o=n(101),i=n(191),a=n(2),c=n(19);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=n(3).f.V1,l=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.data=n,this.actionContext=r,this.eventVersion=o||s}var t,n,r;return t=e,(n=[{key:"isType",value:function(e){return e===this.type}},{key:"enrich",value:function(e,t){this.validateKey(e),this[e]=t}},{key:"get",value:function(e){if(e&&this[e])return this[e]}},{key:"validateKey",value:function(e){"type"!==e&&"data"!==e||a.a.ErrorHelper.throw(new c.a("".concat(e," is not a valid key"))),this[e]&&a.a.ErrorHelper.throw(new c.a("Event already contains an enrichment named ".concat(e)))}}])&&u(t.prototype,n),r&&u(t,r),e}();n.d(t,"a",(function(){return f}));var f={log:function(e,t,n,a){r.Radio.channel(i.a.ANALYTICS).trigger(o.a.Inlet,new l(e,t,n,a))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(57);function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={first:function(e){return r.first(e)},firstFew:function(e,t){return r.first(e,t)},last:function(e){return r.last(e)},lastFew:function(e,t){return r.last(e,t)},max:function(e,t){return r.max(e,t)},cloneAndReplaceAtIdx:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=e&&e.length?e.slice():[];return t+1>o.length&&(o=[].concat(i(o),i(Array(t+1-o.length).fill(r)))),o.splice(t,1,n),o},moveItem:function(e,t,n){var r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty:function(e){return e&&!e.length},findIndex:function(e,t){return r.findIndex(e,t)},findWhere:function(e,t){return r.findWhere(e,t)},where:function(e,t){return r.where(e,t)},groupBy:function(e,t){return r.groupBy(e,t)},flatten:function(e,t){return r.flatten(e,t)},intersection:function(){return r.intersection.apply(r,arguments)},addOrRemove:function(e,t){var n=e.indexOf(t);return-1===n?e.push(t):e.splice(n,1),e},addOrRemoveImmutable:function(e,t){var n=e.indexOf(t),r=o.a.deepClone(e);return-1===n?[].concat(i(r),[t]):[].concat(i(r.slice(0,n)),i(r.slice(n+1)))},sortBy:function(e,t){return r.sortBy(e,t)},chunk:function(e,t){return r.chunk(e,t)},uniq:function(e){return r.uniq(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(7),o=n(13);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a,c="shared.videoActionsHelper";!function(e){e[e.AddToPlaylist=0]="AddToPlaylist",e[e.RemoveFromPlaylist=1]="RemoveFromPlaylist",e[e.Share=2]="Share",e[e.Edit=3]="Edit"}(a||(a={}));var u=function(){var e;return i(e={},a.AddToPlaylist,{label:r.a.getPhrase(c,"addToPlaylist"),svgName:o.b.AddToPlaylists}),i(e,a.RemoveFromPlaylist,{label:r.a.getPhrase(c,"removeFromPlaylist"),svgName:o.b.Delete}),i(e,a.Share,{label:r.a.getPhrase(c,"share"),svgName:o.b.Share2}),i(e,a.Edit,{label:r.a.getPhrase(c,"edit"),svgName:o.b.Edit}),e}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return R}));var r=n(1),o=n(9),i=n(38),a=n(42),c=n(19),u=n(16),s=n(82),l=n(11),f=n(43);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){b(n,e);var t=S(n);function n(e){var o;y(this,n),o=t.call(this,e);var i=[].concat(h(o.defaultProps),h(o.props||[]));return o.mergeOptions(e,i),r.result(O(o),"name")||l.c.throw(new l.b("Error: View with cid:".concat(o.cid," requires a name."))),o}return g(n,[{key:"_setOptions",value:function(e){this.options=r.extend({},r.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){var t,n,o;s.a.isDevelopment&&r.extend(e,(t={},n="cv-classname",o=this.name,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),this.$el.attr(e)}},{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"resetClassName",value:function(){this.$el.attr("class",r.result(this,"className"))}},{key:"serializeData",value:function(){var e=this,t=m(k(n.prototype),"serializeData",this).call(this),o=r.result(this,"viewOptions"),i=r.extend({},t,{options:o});return n.ViewDataExtensions.length?r.extend.apply(r,[i].concat(h(r.map(n.ViewDataExtensions,(function(t){return t instanceof Function?t(e):t}))))):i}},{key:"viewOptions",value:function(){return this.options}},{key:"undelegateAppLinks",value:function(){this.$el&&this.$el.off(".appLinks".concat(this.cid))}},{key:"renderAppLinks",value:function(){var e=this,t=this.appLinks;t&&(t=this.normalizeUIKeys(t),this.undelegateAppLinks(),r.each(r.keys(t),(function(n){var r=n,o=t[n],i=f.a.getHref(o);"[this]"===r&&(r=null);var a=r?e.$el.find(n):e.$el;(a.is("a")||a.is("button"))&&(i&&"/"!==i&&a.attr("href",i),e.delegate("click.appLinks".concat(e.cid),r,(function(e){e.preventDefault(),f.a.trigger(o)})))})))}},{key:"hasPartialLoadingRegions",value:function(){return void 0!==this._hasPartialLoadingRegions||(this._hasPartialLoadingRegions=r.some(this.regions,(function(e){return r.has(e,"partialLoading")}))),this._hasPartialLoadingRegions}},{key:"renderPartialLoading",value:function(e){o.Radio.channel(u.a.SHELL).trigger("render:partial:loading",this,e)}},{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],m(k(n.prototype),"listenTo",this))}},{key:"render",value:function(){if(this._isDestroyed)return this;var e=this.processRequriedResources(!0);return e&&(e=this.triggerMethod("before:render",this)),!1!==e&&(e=!0),!1===(e=e&&this.processRequriedResources(!1))?(this._partialLoadingRendered||!this.hasPartialLoadingRegions()||(this._partialLoadingRendered=!0,this._reInitRegions(),this._renderTemplate(),this.renderPartialLoading()),this):((this._isRendered||this._partialLoadingRendered)&&this._reInitRegions(),this.setTitle(),this._renderTemplate(),this.bindUIElements(),this.renderAppLinks(),this._partialLoadingRendered=!1,this._isRendered=!0,this.triggerMethod("render",this),this)}},{key:"processRequriedResources",value:function(e){return!0}},{key:"setTitle",value:function(){}},{key:"defaultProps",get:function(){return["shell","layoutService"]}},{key:"ui",get:function(){return this.uiStorage||(this.uiStorage=this.elements),this.uiStorage},set:function(e){this.uiStorage=e}},{key:"elements",get:function(){return null}}],[{key:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(i.View);E.ViewDataExtensions=[];var P=function(e){b(n,e);var t=S(n);function n(e){var r;return y(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return g(n,[{key:"processRequriedResources",value:function(e){var t=this,n=r.keys(this.requiredResources);if(!n.length)return!0;var o=this,i=!0;return r.each(n,(function(n){var r=t.requiredResources[n];if(r.beforeOnBeforeRender===e){var a=r.dataServiceName;t.resourceInstances[a]||(t.resourceInstances[a]=r.getInstance(t)),t.boundListeners["".concat(a,":").concat(r.eventName)]||(t.listenTo(t.resourceInstances[a].channelName,r.eventName,t.render),t.boundListeners["".concat(a,":").concat(r.eventName)]=!0),o[n]=r.getData(t.resourceInstances[a]),i=i&&!!o[n]}})),i}},{key:"setTitle",value:function(){r.isString(this.title)||!1===this.title||l.c.throw(new c.a("Must define a title for ".concat(this.name,"."))),o.Radio.channel(u.a.SHELL).trigger("set:page:title",this.title)}}]),n}(E),R=function(e){b(n,e);var t=S(n);function n(){return y(this,n),t.apply(this,arguments)}return n}(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(72),i=n(121);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(y,e);var t,n,p,d=f(y);function y(){return c(this,y),d.apply(this,arguments)}return t=y,(n=[{key:"set",value:function(e,t,n){var o,i;if(null===e)return this;for(o in"object"===a(e)?(i=e,n=t):(i={})[e]=t,n||(n={}),i)r.has(this.associations,o)&&(i[o]=this.setAssociation(o,i[o],n));return s(h(y.prototype),"set",this).call(this,i,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return s(h(y.prototype),"get",this).call(this,e);var n=e.substr(0,t),o=this.attributes[n];if(!o||!r.isFunction(o.get))return s(h(y.prototype),"get",this).call(this,e);var i=e.substr(t+1);return o.get(i)}},{key:"setAssociation",value:function(e,t,n){var a=this.associations[e],c=this.attributes[e];if(!r.isFunction(a))return t;if(n.unset)return c&&delete c.parent,delete this[e],c;if(c)return c instanceof o.a&&c.set(t,n),c instanceof i.a&&c.set(t,n),n.silent||this.trigger("change:".concat(e),this,t,n),c;var u=t instanceof o.a?t:new a(t,{parse:!0});return u.parent=this,this[e]=u,u}},{key:"toJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=s(h(y.prototype),"toJSON",this).apply(this,t);return r.each(this.associations,(function(e,t){r.has(o,t)&&r.isFunction(o[t].toJSON)?o[t]=o[t].toJSON():o[t]=(new e).toJSON()})),o}},{key:"toFlatJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.omit(s(h(y.prototype),"toJSON",this).apply(this,t),r.keys(this.associations))}}])&&u(t.prototype,n),p&&u(t,p),y}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={Success:"Success! 🙌",Warning:"Whoops...",Fail:"Oops...",Info:"FYI"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<r.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"}}},function(e,t,n){"use strict";var r=n(0),o=n(35);function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=n(237);function u(e){var t=e.view,n=e.options,a=void 0===n?{}:n,u=e.className,s=void 0===u?"":u,l=r.useMemo((function(){return new t(a)}),[a]);Object(c.a)(l.title);var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=r.useRef(null);return r.useEffect((function(){if(e){var t=n.current;return e.render(),t.hasChildNodes()?t.replaceChild(e.el,t.firstChild):t.appendChild(e.el),e.trigger("rendered"),function(){o.a.isFunction(e.close)?e.close():o.a.isFunction(e.destroy)&&e.destroy()}}}),i(t)),n}(l,[l]);return t?r.createElement("div",{ref:f,className:s}):r.createElement(r.Fragment,null)}n.d(t,"a",(function(){return u}))},function(e,t,n){e.exports={thumbnailContainer:"_1u9bn",thumbnail:"_1CQyt",svgContainer:"_2L1Hd",playSvgContainer:"_17LPb",durationOverlay:"_15X7K"}},function(e,t,n){e.exports={svg:"_3OUhC",iconButton:"_3t3VL",iconWithText:"_2KLHo",iconOnly:"_2rQWb"}},function(e,t,n){e.exports={fixed:"_3C4_W",inline:"_2voRI",closeSvg:"_2RiDj",buttons:"ZbN3s",flippedIcon:"_3nkTw"}},function(e,t,n){e.exports={dropMask:"_3bFev",dropContent:"_2_7SU",dropArea:"_3oOzB",border:"_1IoKS"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(353);function o(e){return Object(r.a)(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(21),o={currentUser:function(e,t){return{url:"/api/currentUser",key:"currentuser",success:e,error:t}},workspace:{url:"api/domain/v2/me/workspace",key:"workspace"},sendVerificationEmail:function(e,t,n,o){return{url:"api/account/email",key:"verify:email",type:r.a.POST,data:{emailAddress:e},success:t,error:n,always:o,invalidationKeys:["verify:email:status"]}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r,o,i=n(79),a=n(57),c=n(2),u=n(115);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Banner="banner",e.Thumbnail="thumbnail"}(o||(o={}));var l=(s(r={},u.b.Banners,o.Banner),s(r,u.b.Thumbnails,o.Thumbnail),r),f=function(e){return"/v1/category-map/".concat(e)},p={createUrl:function(e,t){return p._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?p._createUrl(e.url,n):p._createCategoryMappedUrl(t,n)},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,r=e.fallbackCategoryName,o=e.type,a=i.a.safeUrlConcat(n,"".concat(f(l[o]))),c=Object.assign({name:p.Rfc3986EncodeURIComponent(r)},t);return p._createUrl(a,c)},_createUrl:function(e,t){if(e){if(a.a.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&",o=e;return o.endsWith("/")&&(o=o.slice(0,-1)),o+"".concat(r).concat(n)}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof c.a.Model?e.get("url"):"string"==typeof e?e:e.url)){var r=Object.assign({size:u.a.Small,bgColor:"000"},t);return p._createUrl(n,r)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(33),i=n(240);function a(e){var t=e.title,n=e.placement,a=e.trigger,c=e.children;return r.createElement(o.OverlayTrigger,{placement:n,overlay:r.createElement(o.Tooltip,{id:"".concat(t,"-").concat(i.a.getRandomInt())},t),trigger:a},r.createElement("span",null,c))}a.defaultProps={trigger:["hover","click","focus"],placement:"top"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={config:{url:"/api/config",key:"config"}}},function(e,t,n){"use strict";var r;!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(r||(r={}));var o=n(32);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return o.a.SEARCH}}])&&i(t.prototype,n),r&&i(t,r),e}();function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return o.a.NOTIFICATIONS}}])&&c(t.prototype,n),r&&c(t,r),e}();n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}))},function(e,t,n){"use strict";var r,o;n.d(t,"a",(function(){return r})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Student=1]="Student",e[e.Staff=2]="Staff",e[e.Admin=3]="Admin",e[e.CVAdmin=4]="CVAdmin",e[e.FreeUser=6]="FreeUser",e[e.ReadOnly=8]="ReadOnly"}(r||(r={})),function(e){e[e.Guest=16]="Guest",e[e.User=32]="User",e[e.Admin=48]="Admin",e[e.SuperAdmin=64]="SuperAdmin"}(o||(o={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Ok=200]="Ok",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.Conflict=409]="Conflict",e[e.InternalServer=500]="InternalServer"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(46);var r=Object.assign(Object.assign({},{VIDEO:"series,season,rating,producers,glance,distributors,resources,tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,owner[customers[organisation]]],clips[owner[customers[organisation]]]",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1}"}),{VIDEO_COLLECTION:"thumbnail,tags,rating,series,season",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover,subjectpresentationaudiences"})},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var o in n)r[o]=n[o];return r.constructor=t,t.prototype=r,t}},function(e,t){e.exports=l},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(1),o=n(9),i=n(38),a=n(29),c=n(42),u=n(11);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(f,e);var t,n,i,s=y(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this,e)).mergeOptions(e,[].concat(l(t.defaultProps),l(t.props||[]))),r.result(g(t),"name")||u.c.throw(new u.b("BaseApplication must define a name")),r.result(g(t),"channelName")||u.c.throw(new u.b("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),a.a.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=f,(n=[{key:"getGlobalRadioChannel",value:function(e){var t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||u.c.throw(new u.b("Global channel ".concat(t," does not exist"))),o.Radio.channel(t)}},{key:"onLoadLayout",value:function(){if(this.layoutOptions&&this.layoutOptions.name){var e=r.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(r.extend(this.layoutOptions,{options:e})),this.layout||u.c.throw(new u.b("Layout: ".concat(this.layoutOptions.name," does not exist or was not registered"))),this.shell.showView(this.layout),this.triggerMethod("layout:loaded")}}},{key:"onShowPopup",value:function(e){this.layout.getRegion("popup")||u.c.throw(new u.b("Your application layout must define a popup region")),this.layout.showChildView("popup",e)}},{key:"onShowAlert",value:function(e){var t=e.ctor,n=e.collection,r=this.layout.getRegion("alert");r?r.hasView()||this.layout.showChildView("alert",new t({collection:n})):u.c.throw(new u.b("Your application layout must define an alert region"))}},{key:"setDefaultQueryParams",value:function(e){this.defaultQueryParams&&(e=r.extend(this.defaultQueryParams,e)),this.defaultQueryParams=e}},{key:"getAndClearDefaultQueryParams",value:function(){var e=this.defaultQueryParams;return delete this.defaultQueryParams,e||{}}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],h(m(f.prototype),"listenTo",this))}},{key:"defaultProps",get:function(){return["shell","layoutService"]}}])&&p(t.prototype,n),i&&p(t,i),f}(i.Application)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(144),o=n(19),i=n(11);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,a=s(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,r=[{key:"getCacheKey",value:function(e){i.c.throw(new o.a("Must define getCacheKey for ".concat(this.name,".")))}}],(n=[{key:"unmountRegion",value:function(e){this.trigger("unmount:".concat(e))}}])&&c(t.prototype,n),r&&c(t,r),l}(r.b)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Staff="staff",e.Learner="learner",e.Unknown="unknown"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Component=1]="Component",e[e.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},function(e,t,n){"use strict";n.r(t);var r,o=n(183);!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(r||(r={}));var i=n(21);function a(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var c=[i.a.POST,i.a.PUT];function u(e){var t=e.resource,n=e.type,r=e.success,o=e.error,i=e.always,u={url:t,method:n};c.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),$.ajax(u).done((function(e,t,n){r&&r(e,a(n))})).fail((function(e,t,n){o&&o(a(e))})).always((function(){i&&i()}))}var s=n(19),l=n(187);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.namespace,i=void 0===o?"":o;return e[r]||l.ErrorHelper.throw(new s.a("There was an issue during normalization. Object did not have an id attribute.")),"".concat(i,"__").concat(e[r])}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=[];return e.forEach((function(e){e[o]&&i.push(p(e,n)),y(e,t,n)})),i}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=Object.assign({},e);if(Object.keys(e).forEach((function(r){var a=e[r];if(a)if(Array.isArray(a)){var c=h(a,t,n);c.length&&(i[r]=c)}else if("object"===f(a)){var u=d(a,t,n);a[o]?i[r]=p(a,n):i[r]=u}})),e[o]){var a=p(e,n);return t[a]=i,a}return i}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?h(e,t,n):"object"===f(e)?d(e,t,n):e}function v(e,t){var n={};return{result:y(e,n,t),entities:n}}var g=n(57);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=b(t[e],t,n);return Object.assign(n[e],r),g.a.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return b(e,t,n)}));if("object"===m(e)){var r={};return Object.keys(e).forEach((function(o){r[o]=b(e[o],t,n)||e[o]})),r}}}function w(e,t){return b(e,t,{})}var S=n(61);function C(e,t){return e===t}function O(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C,n=null,r=null;return function(){return O(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function E(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function P(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),c=E(r),u=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),s=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return s.resultFunc=a,s.dependencies=c,s.recomputations=function(){return i},s.resetRecomputations=function(){return i=0},s}}var R=P(k);var _=n(147),T=n(0);function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var A=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode}var t,n,o;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===r.None||this.isExpired}},{key:"isExpired",get:function(){return _.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===r.Fetching}},{key:"hasError",get:function(){return this.status===r.Error}},{key:"isComplete",get:function(){return this.status===r.Success||this.status===r.Error}}])&&x(t.prototype,n),o&&x(t,o),e}();function L(e,t,n){if(!e||!t)return j();var r=t.response;return!1!==t.request.normalize&&(r=w(t.response,n)),new A({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function j(){return new A({status:r.None})}function N(e,t){return L(t,e.flightData.resources[t],e.flightData.entities)}function I(e,t){return function(){D(e,t)}}function D(e,t){e({type:o.a.API_REQUEST,request:t})}function U(e,t,n){var r,o,i,a,c,u,s,l,f,p=N(t,null===(r=n)||void 0===r?void 0:r.key);n&&p.shouldFetch?D(e,n):p.hasError?(null===(i=(o=n).error)||void 0===i||i.call(o,null),null===(c=(a=n).always)||void 0===c||c.call(a)):(null===(s=(u=n).success)||void 0===s||s.call(u,p.data),null===(f=(l=n).always)||void 0===f||f.call(l))}function M(e){return I(Object(S.useDispatch)(),e)}function F(e,t){var n=Object(T.useMemo)((function(){var n;return(null===(n=t)||void 0===n?void 0:n.optimize)?function(e){return P(k,(function(e,t){var n=["response","request"];return g.a.isEqual(g.a.omit(e,n),g.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n,r=t.flightData.resources[e];return(null===(n=r)||void 0===n?void 0:n.entityIds)?r.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return L(e,t,n)}))}(e):function(e){return R((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return L(e,t,n)}))}(e)}),[e]);return Object(S.useSelector)((function(e){return n(e)}))}function V(e,t){var n=Object(S.useDispatch)(),r=F(e&&e.key,t),o=I(n,e);return e&&r.shouldFetch&&o(),r}function H(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var B=function(e,t,n){var r=Array.isArray(t)?t:[t],o=[];return r.forEach((function(t){var n,r=new RegExp(t,"i"),i=Object.keys(e.resources).filter((function(e){return r.test(e)}));(n=o).push.apply(n,H(i))})),n&&(o=o.filter((function(e){return e!==n}))),o.reduce((function(e,t){return e[t]=!0,e}),{})},q=n(160);var W=function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},J=function(e,t){var n=e.success,r=e.error,o=e.always,i=t;window.setTimeout((function(){i.noResponse||(i.successResponse?n(i.successResponse(),{status:q.a.Ok,getResponseHeader:function(e){return""}}):i.errorResponse&&r(i.errorResponse()),o())}),function(e){var t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))},G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Y(e){var t=e.fetchData,n=e.bootstrappedData,a=e.defaultExpiryTime,c=Object.freeze({key:null,url:null,type:i.a.GET,normalize:!0,formatData:function(e){return e},expiryTime:a});return function(e){return function(i){return function(a){if(a.type===o.a.API_REQUEST){var u=e.getState(),s=Object.assign({},c,a.request),l=s.success,f=s.error,p=s.always,h=s.formatData,d=G(s,["success","error","always","formatData"]),y=u.flightData.resources[d.key];if(i(a),!y||y.status!==r.Fetching){if(d.bootstrapName&&n[a.request.bootstrapName])return m(n[a.request.bootstrapName]),b(),void delete n[a.request.bootstrapName];var g={resource:d.url,type:d.type,data:d.data,success:m,error:function(t){e.dispatch({type:o.a.API_ERROR,errorResponse:t.responseJSON,request:a.request,timestamp:_.a.currentTimestamp(),xhr:t}),d.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:d.invalidationKeys,request:d});f&&f(t)},always:b};return void(W(d)?J(g,d):t(g))}}else i(a);function m(t,n){var r=h(t),i={result:r,entities:{}};(d.normalize&&(i=v(r,d.normalizeOptions)),e.dispatch({type:o.a.API_REPONSE,result:i.result,entities:i.entities,request:d,timestamp:_.a.currentTimestamp(),xhr:n}),d.updateState)&&(Array.isArray(d.updateState)?d.updateState:[d.updateState]).forEach((function(t){var n,r,i,a;n=t,r=B(u.flightData,n.keys),i=Object.assign({},Object.keys(u.flightData.resources).filter((function(e){return r[e]})).reduce((function(e,t){var n=u.flightData.resources[t],r=n.response;return n.request.normalize&&(r=w(n.response,u.flightData.entities)),e[t]=r,e}),{})),a=n.updateData(i),Object.keys(a).forEach((function(t){var n=u.flightData.resources[t],r=a[t],i={result:r,entities:{}};n.request.normalize&&(i=v(r,n.request.normalizeOptions)),e.dispatch({type:o.a.UPDATE,result:i.result,entities:i.entities,request:n.request})}))}));if(d.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:d.invalidationKeys,request:d}),l){var a=i.result;d.normalize&&(a=w(i.result,Object.assign(Object.assign({},u.flightData.entities),i.entities))),l(a)}}function b(){p&&p()}}}}}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e,t){var n=Object.assign({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=Object.assign(Object.assign({},e[r]),t[r]):n[r]=t[r]})),n}function Z(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),K({},t.request.key,{request:t.request,status:r.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function X(e,t){var n,o=t.entities?Object.keys(t.entities):[];return{entities:Q(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),K({},t.request.key,{request:t.request,status:r.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:o}))}}function ee(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),K({},t.request.key,{request:t.request,status:r.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function te(e,t){var n,o=B(e,t.keys,null===(n=t.request)||void 0===n?void 0:n.key);return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Object.keys(e.resources).filter((function(e){return o[e]})).reduce((function(t,n){var o=e.resources[n];return t[n]=Object.assign({},o,{status:r.None}),t}),{}))}}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:Q(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),K({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var re={resources:{},entities:{}};function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.a.API_REQUEST:return Z(e,t);case o.a.API_REPONSE:return X(e,t);case o.a.API_ERROR:return ee(e,t);case o.a.INVALIDATE:return te(e,t);case o.a.UPDATE:return ne(e,t)}return e}var ie=n(127);var ae="id";function ce(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function ue(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var se={getAll:function(e,t){var n=ue(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return se.create(e,t)})),ue(e)):[]},get:function(e,t){var n=se.getAll(e);return n.length?n.find((function(e){return e[ae]===t})):null},create:function(e,t){var n,r,o,i=se.getAll(e),a=Object.assign(Object.assign({},t),(n={},r=ae,o=t[ae]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString(),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));return i.push(a),ce(e,i),a},update:function(e,t){var n=se.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[ae]===t[ae]}));return n[r]=t,ce(e,n),t},delete:function(e,t){var n=se.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[ae]===e}));n.splice(t,1)})),ce(e,n))},assoc:function(e,t,n,r,o){var i=Array.isArray(o),a=i?o:[o];"string"==typeof ie.a.first(a)&&(a=se.getAll(r).filter((function(e){return a.includes(e.id)})));var c=a.map((function(e){return e.id?e:se.create(r,e)})),u=se.getAll(e);if(u.length){var s=u.find((function(e){return e.id===t}));if(s)return c.forEach((function(e){if(s[n])if(Array.isArray(s[n])){if(s[n].find((function(t){return t.id===e.id})))return;s[n].push(e)}else s[n]=e;else s[n]=i?[e]:e})),ce(e,u=u.map((function(e){return e.id!==s.id?e:s}))),i?c:ie.a.first(c)}},dissoc:function(e,t,n,r){var o=se.getAll(e);if(o.length){var i=o.find((function(e){return e.id===t}));if(i){var a=i[n];if(a)return Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]),r.forEach((function(e){var t=a.findIndex((function(t){return t.id===e}));a.splice(t,1)})),i[n]=a,ce(e,o=o.map((function(e){return e.id!==i.id?e:i}))),o}}}};n.d(t,"Actions",(function(){return o.a})),n.d(t,"RequestStatus",(function(){return r})),n.d(t,"ajaxRequest",(function(){return u})),n.d(t,"normalize",(function(){return v})),n.d(t,"denormalize",(function(){return w})),n.d(t,"emptyResponse",(function(){return j})),n.d(t,"getResponse",(function(){return N})),n.d(t,"getFetch",(function(){return I})),n.d(t,"fetch",(function(){return D})),n.d(t,"dataServiceFetch",(function(){return U})),n.d(t,"useGetFetch",(function(){return M})),n.d(t,"useGetResponse",(function(){return F})),n.d(t,"useBasicFetch",(function(){return V})),n.d(t,"createMiddleware",(function(){return Y})),n.d(t,"FlightReducer",(function(){return oe})),n.d(t,"Simulator",(function(){return se}))},function(e,t,n){"use strict";var r=n(2),o=n(7),i=n(1),a=n(417),c=n.n(a);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(a,e);var t,n,r,o=f(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,(n=[{key:"getImageClass",value:function(){return this.options.customImageClass}},{key:"getHeading",value:function(){return i.isFunction(this.options.heading)?this.options.heading():this.options.heading}},{key:"getDescription",value:function(){return i.isFunction(this.options.description)?this.options.description():this.options.description}},{key:"viewOptions",value:function(){return{imageUrl:this.options.imageUrl,imageClass:this.getImageClass(),heading:this.getHeading(),description:this.getDescription()}}},{key:"name",get:function(){return"EmptyStateComponent"}},{key:"className",get:function(){var e="d-flex flex-column justify-content-center align-items-center text-center h-100";return this.options.customClass&&(e+=" ".concat(this.options.customClass)),e}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{imageSize:"lg",paddedContainer:!0}}},{key:"appLinks",get:function(){return this.options.appLink||{}}}])&&s(t.prototype,n),r&&s(t,r),a}(r.a.Component),y={isCollectionEmpty:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"collection";return e[t]&&!e[t].length}};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O,k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(a,e);var t,n,r,o=w(a);function a(){return g(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"shouldRender",value:function(){return!!i.isFunction(this.options.shouldRender)&&this.options.shouldRender()}},{key:"getComponent",value:function(){var e=this.options.emptyStateComponents[this.options.type](this);return new d(e)}},{key:"renderEmptyState",value:function(){if(this.shouldRender()){var e=this.getComponent();this.view.showChildView(this.options.region,e)}}},{key:"onRender",value:function(){this.renderEmptyState()}},{key:"defaults",get:function(){return{type:0,shouldRender:y.isCollectionEmpty.bind(null,this.view)}},set:function(e){}}])&&m(t.prototype,n),r&&m(t,r),a}(r.a.Behavior);!function(e){e[e.Notifications=0]="Notifications"}(O||(O={}));var E=n(8),P=n(32),R=n(197),_=n.n(R);var T,x,A,L,j=(T={},x=O.Notifications,A=function(e){var t={imageUrl:E.a.getInstance(P.a.NOTIFICATIONS).notificationsEmptyStateUrl,heading:e.options.componentOptions.noNotificationsText,customClass:"".concat(_.a.paddedContainer," ").concat(e.options.componentOptions.customClass),customImageClass:"sm"===e.options.componentOptions.imageSize?_.a.imageSmall:_.a.imageLarge};return E.a.releaseInstance(P.a.NOTIFICATIONS),t},x in T?Object.defineProperty(T,x,{value:A,enumerable:!0,configurable:!0,writable:!0}):T[x]=A,T),N=n(9),I=n(90),D=n(13),U=n(17),M=n(50);!function(e){e[e.Other=0]="Other",e[e.Alert=1]="Alert",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Success=4]="Success"}(L||(L={}));var F,V,H,z="notifications.utils",B=/^marketing-/,q=function(e){switch(e){case L.Success:return"success";case L.Alert:return"danger";case L.Warning:return"warning";case L.Info:case L.Other:default:return"dark"}},W=function(e){switch(e){case L.Success:return D.b.CheckCircle;case L.Alert:case L.Warning:return D.b.Warning;case L.Info:case L.Other:default:return D.b.Info}},J=function(e){return e===M.a.VideoProcessingFailed||e===M.a.VideoRequestDenied?"danger":e.match(B)?"warning":void 0},G=function(e){if(e.match(B))return D.b.Star},Y=function(e){switch(e){case M.a.VideoReviewAddedToLibrary:case M.a.WorkspaceVideoAvailable:case M.a.ExchangeVideoAvailable:case M.a.EditedVideoAvailable:return o.a.getPhrase(z,"viewVideo");case M.a.VideoReviewReminder:return o.a.getPhrase(z,"reviewVideos");case M.a.VideoReviewAddedToLibrary:return o.a.getPhrase(z,"viewNewContent");case M.a.CustomLibraryVideoAvailable:return o.a.getPhrase(z,"viewVideoDetails");case M.a.StaffRequest:return o.a.getPhrase(z,"reviewVideo");default:return o.a.getPhrase(z,"seeNow")}},K=n(103),Q=n(194);function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $(){return E.a.getInstance(P.a.NOTIFICATIONS,this)}function ee(e,t,n){return e===H.Module?function(e,t){var n=$();return t===V.ContentUpdates?n.appLinks.pastReleases:t===V.LibraryReview?n.appLinks.awaitingReview:void 0}(0,t):e===H.Video?function(e,t,n){return Object.assign(Object.assign({},$().appLinks.videoDetails),{args:[t,""]})}(0,t):e===H.StaffRequest?function(e,t,n){return Object.assign(Object.assign({},$().appLinks.editStaffRequest),{args:[t],params:{referrer:F.Notification}})}(0,t):void 0}!function(e){e.Notification="notification"}(F||(F={})),function(e){e.LibraryReview="libraryreview",e.ContentUpdates="newcontent"}(V||(V={})),function(e){e.Video="video",e.Url="url",e.Module="module",e.App="app",e.StaffRequest="staff_request"}(H||(H={}));var te=function(e){return i.contains($().notificationTypesWithAppLinks,e)},ne=function(e,t){if(e&&t){var n=Z(e.split(":"),2);return ee(n[0],n[1])}},re=n(230),oe=n.n(re),ie=n(418),ae=n.n(ie);function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(e,t){return!t||"object"!==ce(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he,de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(i,e);var t,n,r,o=le(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:notificationStatus",this.updateReadStatus)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){return N.Radio.channel(U.a.NOTIFICATIONS).trigger(Q.a.Read,this.model.get("id")),this.model.set("notificationStatus",K.a.Read),!0}},{key:"getAppLink",value:function(){var e=this.model.get("appLink");if(!e)return null;var t=this.model.get("notificationType");return te(t)?ne(e,t):null}},{key:"updateReadStatus",value:function(){this.$el.removeClass("unread read").addClass(this.getReadStatus())}},{key:"getReadStatus",value:function(){switch(this.model.get("notificationStatus")){case K.a.Read:return"read";default:case K.a.Received:return"unread"}}},{key:"viewOptions",value:function(){var e=J(this.model.get("notificationType"))||q(this.model.get("alertType")),t=G(this.model.get("notificationType"))||W(this.model.get("alertType"));return{content:this.model.get("body")||this.model.get("name"),notificationTime:I(this.model.get("dateCreated")).fromNow(),icon:D.a.getSvg(t),iconClass:"text-".concat(e),styles:oe.a,showActionText:this.options.showActionText&&this.model.get("alertType")!==L.Warning,actionText:Y(this.model.get("notificationType"))}}},{key:"name",get:function(){return"NotificationItemComponent"}},{key:"template",get:function(){return ae.a}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.getAppLink()?{}:{href:this.model.get("link"),target:"_blank"}}},{key:"className",get:function(){return"notification ".concat(oe.a.item," px-1 py-2 ").concat(this.getReadStatus())}},{key:"appLinks",get:function(){var e=this.getAppLink();return e?{"[this]":e}:{}}}])&&ue(t.prototype,n),r&&ue(t,r),i}(r.a.Component),ye=n(419),ve=n.n(ye);function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function we(e,t,n){return t&&be(e.prototype,t),n&&be(e,n),e}function Se(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ke(this,n)}}function ke(e,t){return!t||"object"!==ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return he})),n.d(t,"b",(function(){return Re})),function(e){e[e.Default=0]="Default",e[e.Popover=1]="Popover"}(he||(he={}));var Pe=function(e){Se(n,e);var t=Oe(n);function n(e){return me(this,n),t.call(this,e)}return we(n,[{key:"name",get:function(){return"NotificationComponentCollection"}},{key:"className",get:function(){return this.options.isPopover&&"popover-list-body-sm"}},{key:"childView",get:function(){return de}},{key:"childViewOptions",get:function(){return{showActionText:!this.options.isPopover}}}]),n}(r.a.ComponentCollection),Re=function(e){Se(n,e);var t=Oe(n);function n(e){return me(this,n),t.call(this,e)}return we(n,[{key:"regions",value:function(){return{notifications:{el:".notifications-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.isPopover?{customClass:"px-0 py-3",imageSize:"sm",noNotificationsText:o.a.getPhrase(this.lang,"noNotifications")}:{noNotificationsText:o.a.getPhrase(this.lang,"noNotifications")}}},{key:"onRender",value:function(){this.showChildView("notifications",new Pe(this.options))}},{key:"name",get:function(){return"NotificationListComponent"}},{key:"template",get:function(){return ve.a}},{key:"lang",get:function(){return"notifications.notificationList"}},{key:"behaviors",get:function(){return[{behaviorClass:k,region:"notifications",type:O.Notifications,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:j}]}}]),n}(r.a.Component)},function(e,t,n){"use strict";n.r(t);var r=n(43),o=n(180),i=n(1),a=n(9),c=n(38),u=n(42);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"use",value:function(e){var t;this.go=(t=this.go,function(n,r){return t(n,(function(){return e(n,r)}))})}},{key:"go",value:function(e,t){t(e)}}])&&s(t.prototype,n),r&&s(t,r),e}(),f=n(29),p=n(11),h=n(78),d=n(16);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=/([A-Z])/g,E=/(^|:)(\w)/gi,P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(s,e);var t,n,o,c=S(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=c.call(this,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=s,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(d.a.SHELL,f.a.ROUTE,(function(t){t.application!==e.channelName&&e.destroyApp()}))}},{key:"addRouteLookup",value:function(e,t){var n=this;this.options.shell.addRouteLookup("".concat(this.channelName,":").concat(e),(function(o,i){return r.a.buildRoute(t,{application:n.channelName,action:e,args:o,params:i})}))}},{key:"processInternalRoutes",value:function(){var e=this;i.each(i.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(n,r){r&&r.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var o=i.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=o,h.a.UpdateUrl(t,n,r)}))}))}))}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&i.each(i.keys(this.externalRoutes),(function(t){var n=e.externalRoutes[t],o=e.toEventName(n);e.addRouteLookup(o,t),e.listenTo(e.channelName,o,(function(e,t){t&&t.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),h.a.PageLoad(r.a.getHref(e))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&i.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var o=this;this.validateAppLink(e);var c=this.toMethodName(e.action);r.b.routingStarted();var u=a.Radio.channel(d.a.SHELL);if(this.options.shell.isNavLocked())return u.trigger(f.a.NAV_IS_LOCKED,e),void r.b.routingEnded();var s=new l;i.each(this.filters,(function(e){return s.use(e)})),s.go(e,(function(){u.trigger(f.a.ROUTE,e,t),o.createApp();var a=o.controller;if(i.isFunction(a[c])||(r.b.routingEnded(),p.c.throw(new p.b("".concat(c," does not exist on the ").concat(i.result(a,"name"),".")))),!1===a.triggerMethod("before:action"))return a.triggerMethod("action:cancelled"),void r.b.routingEnded();a.triggerMethod("load:layout"),a[c].apply(a,[].concat(v(e.args||[]),[e.params||{}])),i.isFunction(n)&&n(),r.b.routingEnded()}))}},{key:"createApp",value:function(){this.controller||(this.controller=new this.options.appConstructor(this.options.appOptions),this.controller.start())}},{key:"destroyApp",value:function(){this.controller&&(this.controller.destroy(),delete this.controller)}},{key:"_addAppRoute",value:function(e,t,n){var r=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a={application:r.channelName,action:r.toEventName(n),args:t.slice(0,t.length-1),params:h.a.DeserializeQueryParams(t[t.length-1])};r.executeRoute(a,{isAppRoute:!0},(function(){h.a.UpdateQuery(i.extend(r.controller.getAndClearDefaultQueryParams(),a.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(k,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(E,(function(e,t,n){return n.toUpperCase()}));return t[0].toLowerCase()+t.slice(1,t.length)}},{key:"validateAppLink",value:function(e){e.application&&e.action||(r.b.routingEnded(),p.c.throw(new p.b("Invalid AppLink")))}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],b(O(s.prototype),"listenTo",this))}}])&&m(t.prototype,n),o&&m(t,o),s}(c.AppRouter);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=N(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(i,e);var t,n,r,o=L(i);function i(){return _(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],x(N(i.prototype),"listenTo",this))}}])&&T(t.prototype,n),r&&T(t,r),i}(c.Behavior),D=n(121);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t,n){return(F="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=q(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?B(e):t}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(a,e);var t,n,r,o=H(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e),i.result(B(t),"name")||p.c.throw(new p.b("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=a,(n=[{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],F(q(a.prototype),"listenTo",this))}}])&&M(t.prototype,n),r&&M(t,r),a}(c.CollectionView),J=n(181),G=n(145),Y=n(54),K=n(72),Q=n(144);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t,n){return($="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=re(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(a,e);var t,n,r,o=te(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=a,(n=[{key:"clearLayout",value:function(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}},{key:"registerLayout",value:function(e,t){return this.checkRequiredRegions(t),this.layouts[e]=t,this}},{key:"getLayout",value:function(e){var t=e.name,n=e.options,r=void 0===n?{}:n;this.layouts[t]||p.c.throw(new p.b("".concat(t," was not registered as a template.")));var o=this.layouts[t].getCacheKey(r);return this.currentLayoutCacheKey===o&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",r),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=o,this.currentLayout=new this.layouts[t](r),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}},{key:"checkRequiredRegions",value:function(e){i.each(this.requiredRegions,(function(t){i.has(i.result(e.prototype,"regions"),t)||p.c.throw(new p.b("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],$(re(a.prototype),"listenTo",this))}}])&&X(t.prototype,n),r&&X(t,r),a}(c.Object);function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t,n){return(ae="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=le(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),e}var de=function(){function e(t,n){fe(this,e),this.application=t,this.options=n||{}}return he(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}(n,e);var t=ue(n);function n(){return fe(this,n),t.apply(this,arguments)}return he(n,[{key:"initialize",value:function(e){this.mergeOptions(e,["layoutService"]),this.applications=[],this.routeLookup={},this.shellState={navLock:!1,activeRoute:!1,currentAppLink:null},this.errorHandlers=[]}},{key:"bindListeners",value:function(){this.bindRouteLookup(),this.bindNavLockListeners(),this.bindAppLinkListeners(),this.bindErrorHandlers(),this.bindErrorListener()}},{key:"bindNavLockListeners",value:function(){var e=this;this.listenTo(d.a.SHELL,f.a.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(d.a.SHELL,f.a.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(d.a.SHELL,f.a.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(d.a.SHELL,f.a.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(d.a.SHELL,f.a.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=a.Radio.channel(d.a.SHELL);t.reply(f.a.HAS_ACTIVE_ROUTE,i.bind(this.hasActiveRoute,this)),t.reply(f.a.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){r.b.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=a.Radio.channel(d.a.SHELL);this.listenTo(e,f.a.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;a.Radio.channel(d.a.SHELL).reply(f.a.ROUTE_LOOKUP,(function(t,n,r){return e.routeLookup[t]?e.routeLookup[t](n,r):""}),this)}},{key:"addRouteLookup",value:function(e,t){this.routeLookup[e]=t}},{key:"registerApplication",value:function(e,t){return this.applications.push(new de(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return d.a}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(r,o){t.runStartUpSteps(t,e,(function(r,o,i){ae(le(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;i.each(this.applications,(function(t){var n={appConstructor:t.Application,shell:e,appOptions:Object.assign({region:"",shell:e,layoutService:e.layoutService},t.Options)};new t.Application.router(n)})),this.bindListeners(),h.a.StartHistory()}},{key:"addInitializationStep",value:function(e){var t;return this.runInitializationSteps=(t=this.runInitializationSteps,function(n,r){return t(n,(function(){return e(n,r)}))}),this}},{key:"runInitializationSteps",value:function(e,t){t(e)}},{key:"addStartUpStep",value:function(e){var t;return this.runStartUpSteps=(t=this.runStartUpSteps,function(n,r,o){return t(n,r,(function(){return e(n,r,o)}))}),this}},{key:"runStartUpSteps",value:function(e,t,n){n(e,t)}},{key:"registerLayout",value:function(e,t){return this.layoutService.registerLayout(e,t),this}},{key:"registerErrorHandler",value:function(e,t){return e||p.c.throw(new p.b("An error must have a name in order to register a handler for it.")),i.any(this.errorHandlers,(function(t){return t.errorType===e}))&&p.c.throw(new p.b("An error handler for ".concat(e.prototype.name," has already been defined."))),this.errorHandlers.push({errorType:e,handler:t}),this}},{key:"handleError",value:function(e){var t=i.find(this.errorHandlers,(function(t){return e instanceof t.errorType}));t&&t.handler&&t.handler(e)}},{key:"registerStore",value:function(e){this.store=e}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],ae(le(n.prototype),"listenTo",this))}}]),n}(c.Application);n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b})),n.d(t,"Application",(function(){return o.a})),n.d(t,"AppRouter",(function(){return P})),n.d(t,"Behavior",(function(){return I})),n.d(t,"Collection",(function(){return D.a})),n.d(t,"CollectionView",(function(){return W})),n.d(t,"ComponentCollection",(function(){return W})),n.d(t,"Error",(function(){return p.a})),n.d(t,"ErrorHelper",(function(){return p.c})),n.d(t,"SilentError",(function(){return p.d})),n.d(t,"LayoutView",(function(){return J.a})),n.d(t,"NestedModel",(function(){return G.a})),n.d(t,"Service",(function(){return Y.a})),n.d(t,"Model",(function(){return K.a})),n.d(t,"View",(function(){return Q.b})),n.d(t,"Component",(function(){return Q.a})),n.d(t,"EventNames",(function(){return f.a})),n.d(t,"LayoutService",(function(){return oe})),n.d(t,"Middleware",(function(){return l})),n.d(t,"LocationUtils",(function(){return h.a})),n.d(t,"Shell",(function(){return ye}))},function(e,t){e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return m}));var r=n(60),o=n(8),i=n(12),a=n(17),c=n(34),u=n(67);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(s,e);var t,n,r,o=h(s);function s(){return l(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",eventPrefix:c.a.CURRENT_USER,expiryTime:u.a.STANDARD,callback:e,errorCallback:t})}},{key:"getWorkspace",value:function(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:c.a.WORKSPACE,expiryTime:u.a.STANDARD,callback:e,errorCallback:t})}},{key:"name",get:function(){return i.a.User}},{key:"channelName",get:function(){return a.b.USER}}])&&f(t.prototype,n),r&&f(t,r),s}(r.a),g={dataServiceName:i.a.User,dataChannelName:a.b.USER},m={getCurrentUserFetchOptions:function(e,t){return Object.assign(Object.assign({},g),{eventPrefix:c.a.CURRENT_USER,fetchData:function(e){return e.getCurrentUser()},setData:e,onError:t})},currentUser:{dataServiceName:i.a.User,eventName:"".concat(c.a.CURRENT_USER,":sync"),getData:function(e){return e.getCurrentUser()},getInstance:function(e){return o.a.getInstance(i.a.User,e)},beforeOnBeforeRender:!0}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ANALYTICS:"global:analytics"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UPDATE:"UPDATE_VIEW_MODEL"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Read="notification:read"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={LAZY_LOAD:"lazy:load:behavior",POPUP:"popup:behavior",IMAGE_SELECT:"image:select:behavior"}},function(e,t,n){e.exports={notificationIcon:"_3SkbQ",light:"_2TvQg",dark:"_3taGb",unreadCount:"_1u6ig"}},function(e,t,n){e.exports={paddedContainer:"_1cCVc",imageLarge:"_3Wy1u",imageSmall:"_3t8Qq"}},function(e,t,n){e.exports={selectionContainer:"_3m62c",svgContainer:"_1XxEl"}},function(e,t,n){e.exports={svgContainer:"ecsrN",tip:"IwYkF",termContainer:"_1BqAi",term:"_1NEsr"}},function(e,t,n){e.exports={searchSvgContainer:"_1-crd",tipsContainer:"_15HAy",searchInput:"_1qca6",searchBar:"_3XQHi"}},function(e,t,n){e.exports={appLink:"_1SFgo",hoverUnderline:"_2iyL0"}},function(e,t){e.exports=p},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(0),o=n.n(r);function i(){return o.a.createElement("svg",{viewBox:"0 0 434 71"},o.a.createElement("g",null,o.a.createElement("path",{fill:"#000000",d:"M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"}),o.a.createElement("path",{fill:"#F8981D",d:"M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"})))}function a(){return o.a.createElement("svg",{viewBox:"0 0 41 70"},o.a.createElement("g",null,o.a.createElement("path",{fill:"#F8981D",d:"M 0 0 41 35 0 70z"})))}},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n(348),o=n(162),i=(0,r.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,o.inherits)(i,(0,r.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var c=a(),u=a("@"),s=a(":"),l=a("."),f=a(),p=a(),h=a("\n"),d=a(),y=a("+"),v=a("#"),g=a(),m=a("mailto:"),b=a("?"),w=a("/"),S=a("_"),C=a(),O=a(),k=a(),E=a("{"),P=a("["),R=a("<"),_=a("("),T=a("}"),x=a("]"),A=a(">"),L=a(")"),j=a("&");t.Base=i,t.DOMAIN=c,t.AT=u,t.COLON=s,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=h,t.NUM=d,t.PLUS=y,t.POUND=v,t.QUERY=b,t.PROTOCOL=g,t.MAILTO=m,t.SLASH=w,t.UNDERSCORE=S,t.SYM=C,t.TLD=O,t.WS=k,t.OPENBRACE=E,t.OPENBRACKET=P,t.OPENANGLEBRACKET=R,t.OPENPAREN=_,t.CLOSEBRACE=T,t.CLOSEBRACKET=x,t.CLOSEANGLEBRACKET=A,t.CLOSEPAREN=L,t.AMPERSAND=j},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r,o;
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("ReactBootstrap"),require("Marionette"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("SortableHOC"),require("ReactIntersectionObserver"),require("Autosuggest"),require("ImmersiveReader"),require("marked")):"function"==typeof define&&define.amd?define(["React","_","Backbone","Handlebars","ReactBootstrap","Marionette","ReactRedux","moment","ReactDOM","FontAwesome","ReactCustomScrollbars","DOMPurify","Redux","ReactTransitionGroup","Bloodhound","Polyglot","reactDropzone","SortableHOC","ReactIntersectionObserver","Autosuggest","ImmersiveReader","marked"],t):"object"==typeof exports?exports["@clickview/lite"]=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("ReactBootstrap"),require("Marionette"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("SortableHOC"),require("ReactIntersectionObserver"),require("Autosuggest"),require("ImmersiveReader"),require("marked")):e["@clickview/lite"]=t(e.React,e._,e.Backbone,e.Handlebars,e.ReactBootstrap,e.Marionette,e.ReactRedux,e.moment,e.ReactDOM,e.FontAwesome,e.ReactCustomScrollbars,e.DOMPurify,e.Redux,e.ReactTransitionGroup,e.Bloodhound,e.Polyglot,e.reactDropzone,e.SortableHOC,e.ReactIntersectionObserver,e.Autosuggest,e.ImmersiveReader,e.marked)}(window,(function(e,t,n,r,o,i,a,c,u,s,l,f,p,h,d,y,v,g,m,b,w,S){return function(e){function t(t){for(var n,r,i=t[0],a=t[1],c=0,u=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&u.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(s&&s(t);u.length;)u.shift()()}var n={},r={9:0},o={9:0};function i(t){if(n[t])return n[t].exports;var r=n[t]={i:t,l:!1,exports:{}};return e[t].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(e){var t=[];r[e]?t.push(r[e]):0!==r[e]&&{0:1,2:1,3:1,4:1,5:1,6:1,11:1,12:1,13:1,14:1,15:1,16:1,17:1,18:1,19:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,30:1,31:1,32:1,33:1,34:1,35:1,36:1,37:1,47:1,51:1,53:1,54:1,55:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var o="css/"+e+".chunk.css",a=i.p+o,c=document.getElementsByTagName("link"),u=0;u<c.length;u++){var s=(f=c[u]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(s===o||s===a))return t()}var l=document.getElementsByTagName("style");for(u=0;u<l.length;u++){var f;if((s=(f=l[u]).getAttribute("data-href"))===o||s===a)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var o=t&&t.target&&t.target.src||a,i=new Error("Loading CSS chunk "+e+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete r[e],p.parentNode.removeChild(p),n(i)},p.href=a,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[e]=0})));var n=o[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=o[e]=[t,r]}));t.push(n[2]=a);var c,u=document.createElement("script");u.charset="utf-8",u.timeout=120,i.nc&&u.setAttribute("nonce",i.nc),u.src=function(e){return i.p+"scripts/"+e+"-"+{0:"6bc17823fd",1:"b20a2dd250",2:"a578d78153",3:"aa01c4304a",4:"d296a64d17",5:"3842bd1f2d",6:"7bee1cd6c9",7:"e39bfefa23",8:"244738cbaf",11:"f67b6c11a7",12:"c3f4ba1831",13:"d44a1e6204",14:"bbf4ab8ab9",15:"bdef10f60a",16:"691b35dc8c",17:"4e3899d62b",18:"6afc6b44f3",19:"7f2d561cf2",20:"fe4b732b3b",21:"850a6abb96",22:"be37ecc01d",23:"9ace914ea0",24:"007409325f",25:"9d70dbe4ec",26:"e280e72009",27:"c8f5fd76cb",28:"015dd3e4d4",29:"91d67f4584",30:"f16ad621da",31:"3f405d0372",32:"7a75602cc0",33:"8d70bde32b",34:"3f095c24f3",35:"58407394d5",36:"552740daf0",37:"d79eda4acb",38:"a6c89ffb8f",39:"4a615de1ce",40:"5330a64b5d",41:"c268bfb400",42:"0e2ebfa151",43:"e1d3a1f0e5",44:"8a44b614a8",45:"9418f81185",46:"4ab8038e30",47:"b6a95ef8b0",48:"e4150407ee",49:"8fd6a45338",50:"ab1c16848b",51:"7ce29a119d",52:"12e0feca43",53:"a5250a2064",54:"ff24fa0c07",55:"cd780b71b1",56:"687e915081",57:"5c9b7a7950",58:"636a388c0c",59:"cc88e95d77",60:"1672f666ce",61:"b2bdee9283",62:"d7cbe9da67",63:"2126404b54",64:"1f651e86b3",65:"c3472b12c9",66:"c6406c845f"}[e]+".chunk.js"}(e);var s=new Error;c=function(t){u.onerror=u.onload=null,clearTimeout(l);var n=o[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),i=t&&t.target&&t.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+i+")",s.name="ChunkLoadError",s.type=r,s.request=i,n[1](s)}o[e]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:u})}),12e4);u.onerror=u.onload=c,document.head.appendChild(u)}return Promise.all(t)},i.m=e,i.c=n,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)i.d(n,r,function(t){return e[t]}.bind(null,r));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="/",i.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[],c=a.push.bind(a);a.push=t,a=a.slice();for(var u=0;u<a.length;u++)t(a[u]);var s=c;return i(i.s=817)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(187);n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r=n(123);n.d(t,"a",(function(){return r.a})),n.d(t,"b",(function(){return r.b})),n.d(t,"c",(function(){return r.c})),n.d(t,"d",(function(){return r.d})),n.d(t,"e",(function(){return r.e})),n.d(t,"f",(function(){return r.f})),n.d(t,"g",(function(){return r.g})),n.d(t,"h",(function(){return r.h})),n.d(t,"i",(function(){return r.i})),n.d(t,"j",(function(){return r.j})),n.d(t,"k",(function(){return r.k})),n.d(t,"l",(function(){return r.l})),n.d(t,"m",(function(){return r.m})),n.d(t,"n",(function(){return r.n})),n.d(t,"o",(function(){return r.o}));n(182)},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={DEFAULT:"default:application",PLAYLISTS:"playlists:application",DASHBOARD:"dashboard:application",SUBJECT:"subject:application",EMBED:"embed:application",NOTIFICATIONS:"notifications:application",SEARCH:"search:application",CONTENT_UPDATES:"content:updates:application",USER_MANAGER:"user:manager:application",UPLOAD:"upload:application",CLASSROOMS:"classrooms:application",SETTINGS:"settings:application",WATCH_HISTORY:"watch:history:application"},o={COMBINE_UPLOADS:"combine:uploads:service"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Information=2]="Information",e[e.Warning=3]="Warning",e[e.Error=4]="Error",e[e.Critical=5]="Critical",e[e.None=6]="None"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var r=n(413),o=n(1),i=n(188),a=n(54),c=n(11),u=n(52),s=n(19),l=n(82);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(v,e);var t,n,a,f=y(v);function v(){return p(this,v),f.apply(this,arguments)}return t=v,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"setConfig",value:function(e){this.polyglot=new r({locale:e.locale,phrases:e.phrases.rootElement||e.phrases}),this.cache={}}},{key:"getPhrase",value:function(e,t,n){var r="".concat(e,".").concat(t);if(this.polyglot||c.c.throw(new s.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!l.a.isDevelopment){var a=window.trackJs;return a&&a.console.error("No phrase set for ".concat(r," in language config")),""}c.c.throw(new s.a("No phrase set for ".concat(r," in language config.")))}if(!n||o.isEmpty(n)){var u=this.cache[r];if(u)return u;var f=this.polyglot.t(r);return this.cache[r]=f,f}var p=o.omit(n,"smartCount"),h={};for(var d in p)h[d]=i.sanitize(p[d]);o.isNumber(n.smartCount)&&(h.smart_count=n.smartCount);var y="".concat(r,":").concat(o.values(Object.assign({},h)).join(":")),v=this.cache[y];if(v)return v;var g=this.polyglot.t(r,h);return this.cache[y]=g,g}},{key:"encloseNamespace",value:function(e){var t=this;return function(n,r){return t.getPhrase(e,n,r)}}},{key:"name",get:function(){return u.a.LANGUAGE}}])&&h(t.prototype,n),a&&h(t,a),v}(a.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(19),i=n(54),a=n(11);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,i,c=l(f);function f(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(e=c.call(this)).constructors={},e.destructors={},e.instances={},e.singletonInstances={},e.referenceCounts={},e}return t=f,i=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"registerDataService",value:function(e,t){var n=this;this.validateConstructor(e);var r=e.prototype.name;return this.referenceCounts[r]=0,this.constructors[r]=function(){return new e({dataProvider:n.getInstance(t.dataProvider),cache:n.getInstance(t.cache),bootstrapData:t.bootstrapData,defaultErrorHandler:t.defaultErrorHandler,alertService:t.alertService})},this.destructors[r]=function(){n.instances[r]?n.instances[r].destroy():a.c.throw(new o.a("Trying to destroy a ".concat(r," instance that has already been destroyed"))),n.releaseInstance(t.dataProvider),n.releaseInstance(t.cache)},this}},{key:"registerInstance",value:function(e,t){var n=this;this.validateConstructor(e);var o=e.prototype.name;return this.referenceCounts[o]=0,this.constructors[o]=function(){return new e(t)},this.destructors[o]=function(){return r.isFunction(n.instances[o].destroy)&&n.instances[o].destroy()},this}},{key:"registerSingleton",value:function(e){var t=e.name;return this.singletonInstances[t]=e,this}},{key:"getInstance",value:function(e,t){var n=this;return this.singletonInstances[e]?this.singletonInstances[e]:(this.constructors[e]||a.c.throw(new o.a("".concat(e," was not registered with ").concat(this.name))),this.referenceCounts[e]++,t&&this.listenTo(t,"destroy",(function(){return n.releaseInstance(e)})),this.instances[e]||(this.instances[e]=this.constructors[e]()),this.instances[e])}},{key:"releaseInstance",value:function(e){var t=this;if(this.instances[e])return window.setTimeout((function(){t.referenceCounts[e]--,t.referenceCounts[e]<1&&(t.destructors[e](),delete t.instances[e])}),0),this}},{key:"validateConstructor",value:function(e){var t=e.prototype.name;t||a.c.throw(new o.a("Classes registered with ".concat(this.name," must have a unique name property."))),this.constructors[t]&&a.c.throw(new o.a("A class with the name: ".concat(t," has already been registered with ").concat(this.name)))}},{key:"name",get:function(){return"InstanceManager"}}])&&u(t.prototype,n),i&&u(t,i),f}(i.a).Instance},function(e,t){e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={Default:{ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error",DIALOG_ERROR:"dialog:error",SERIES:"series",PLAY_VIDEO:"play:video",FAVOURITE_VIDEOS:"favourite:videos",MY_VIDEOS:"my:videos",EDIT_VIDEO:"edit:video",EDIT_UPLOAD:"edit:upload",SHARE:"share",LOG_OUT:"log:out",LOG_IN:"log:in"},Playlists:{HOME:"index",PLAYLIST:"playlist",NEW_PLAYLIST:"new:playlist",EDIT_PLAYLIST:"edit:playlist",DELETE_PLAYLIST:"delete:playlist",ADD_TO_PLAYLIST:"add:to:playlist",REMOVE_VIDEO_FROM_PLAYLIST:"remove:video:from:playlist"},Dashboard:{HOME:"index",DASHBOARD:"dashboard"},Subjects:{CLASSIFICATION:"classification",PREFERENCES:"preferences"},Notifications:{HOME:"index"},Search:{HOME:"index"},ContentUpdates:{CONTENT_UPDATES:"content:updates",CLASSIFICATION_UPDATE:"classification:update"},UserManager:{STUDENTS:"student:manager",TEACHERS:"teacher:manager",REMOVE_USERS:"remove:users",NEW_STUDENT:"new:student",EDIT_STUDENT:"edit:student",NEW_TEACHER:"new:teacher",EDIT_TEACHER:"edit:teacher",STUDENT_UPLOAD_REVIEW:"student:upload:review",TEACHER_UPLOAD_REVIEW:"teacher:upload:review"},Upload:{EDIT_UPLOAD:"edit:upload",CANCEL_UPLOAD:"cancel:upload"},Classrooms:{HOME:"index",CLASSROOM:"classroom",NEW_CLASSROOM:"new:classroom",EDIT_CLASSROOM:"edit:classroom",DELETE_CLASSROOM:"delete:classroom",MANAGE_CLASSROOM:"manage:classroom",ADD_STUDENTS:"add:students",REMOVE_STUDENTS:"remove:students",NEW_GROUP:"new:group",EDIT_GROUP:"edit:group",DELETE_GROUP:"delete:group"},Settings:{HOME:"index"},WatchHistory:{HOME:"index"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"d",(function(){return w})),n.d(t,"b",(function(){return S})),n.d(t,"c",(function(){return C}));var r=n(9),o=n(16),i=n(82),a=n(29);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}function p(e){var t=v();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){var t="function"==typeof Map?new Map:void 0;return(d=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return y(e,arguments,m(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),g(r,e)})(e)}function y(e,t,n){return(y=v()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&g(o,n.prototype),o}).apply(null,arguments)}function v(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){f(n,e);var t=p(n);function n(e){return l(this,n),t.call(this,e)}return n}(d(Error)),w=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"SilentError"}}]),n}(b),S=function(e){f(n,e);var t=p(n);function n(){return l(this,n),t.apply(this,arguments)}return s(n,[{key:"name",get:function(){return"CoreError"}}]),n}(d(Error)),C={throw:function(e){if(r.Radio.channel(o.a.SHELL).trigger(a.a.ERROR,e),!(e instanceof w||i.a.isDevelopment))throw e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService"},o={ImageUrl:"ImageUrlService",PendingItems:"PendingItemsService",Alerts:"AlertService",VideoUpload:"VideoUploadService",ResourceUpload:"ResourceUploadService",SubtitleUpload:"SubtitleUploadService",VideoMixin:"VideoMixinService",ContextualSearch:"ContextualSearchService",Context:"ContextService",Notification:"NotificationService",AppOptions:"AppOptionsService"}},function(e,t,n){"use strict";var r,o,i=n(125),a=n(1),c=n(258),u=n.n(c),s=n(259),l=n.n(s),f=n(260),p=n.n(f),h=n(261),d=n.n(h),y=(n(262),n(263),n(264)),v=n.n(y),g=n(265),m=n.n(g),b=n(266),w=n.n(b),S=n(267),C=n.n(S),O=n(268),k=n.n(O),E=n(269),P=n.n(E),R=n(270),_=n.n(R),T=n(271),x=n.n(T),A=n(272),L=n.n(A),j=n(273),N=n.n(j),I=n(274),D=n.n(I),U=n(275),M=n.n(U),F=n(276),V=n.n(F),H=n(277),z=n.n(H),B=n(278),q=n.n(B),W=n(279),J=n.n(W),G=n(280),Y=n.n(G),K=n(281),Q=n.n(K),Z=n(282),X=n.n(Z),$=n(283),ee=n.n($),te=n(284),ne=n.n(te),re=(n(285),n(286)),oe=n.n(re),ie=n(287),ae=n.n(ie),ce=n(288),ue=n.n(ce),se=(n(289),n(290),n(291)),le=n.n(se),fe=n(292),pe=n.n(fe),he=n(293),de=n.n(he),ye=n(294),ve=n.n(ye),ge=n(295),me=n.n(ge),be=n(296),we=n.n(be),Se=(n(297),n(298)),Ce=n.n(Se),Oe=n(299),ke=n.n(Oe),Ee=n(300),Pe=n.n(Ee),Re=n(301),_e=n.n(Re),Te=n(302),xe=n.n(Te),Ae=n(303),Le=n.n(Ae),je=n(304),Ne=n.n(je),Ie=(n(305),n(306)),De=n.n(Ie),Ue=n(307),Me=n.n(Ue),Fe=n(308),Ve=n.n(Fe),He=n(309),ze=n.n(He),Be=n(310),qe=n.n(Be),We=n(311),Je=n.n(We),Ge=n(312),Ye=n.n(Ge),Ke=n(313),Qe=n.n(Ke),Ze=n(314),Xe=n.n(Ze),$e=n(315),et=n.n($e),tt=n(316),nt=n.n(tt),rt=n(317),ot=n.n(rt),it=n(318),at=n.n(it),ct=n(319),ut=n.n(ct),st=n(320),lt=n.n(st),ft=n(321),pt=n.n(ft),ht=(n(322),n(323),n(324),n(325)),dt=n.n(ht),yt=(n(326),n(327),n(328),n(329),n(330)),vt=n.n(yt),gt=n(331),mt=n.n(gt),bt=(n(332),n(333),n(334),n(335)),wt=n.n(bt),St=n(336),Ct=n.n(St),Ot=n(337),kt=n.n(Ot),Et=n(338),Pt=n.n(Et),Rt=n(339),_t=n.n(Rt),Tt=n(340),xt=n.n(Tt),At=n(341),Lt=n.n(At),jt=(n(342),n(343),n(344),n(345)),Nt=n.n(jt),It=n(346),Dt=n.n(It),Ut=[u.a,p.a,d.a,v.a,C.a,k.a,P.a,_.a,w.a,l.a,x.a,L.a,N.a,D.a,M.a,m.a,V.a,z.a,q.a,J.a,ne.a,Y.a,Q.a,X.a,ee.a,oe.a,de.a,et.a,ot.a,nt.a,pt.a,at.a,ut.a,lt.a,_e.a,Le.a,xe.a,ae.a,ue.a,ke.a,Pe.a,Ce.a,le.a,ve.a,Me.a,Ve.a,me.a,we.a,ze.a,pe.a,De.a,qe.a,Je.a,Ne.a,Ye.a,Xe.a,Qe.a,vt.a,mt.a,dt.a,kt.a,Ct.a,wt.a,Pt.a,xt.a,_t.a,Lt.a,Dt.a,Nt.a];function Mt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}!function(e){e.AddToPlaylists="add-to-playlist",e.Caret="caret",e.Delete="delete",e.Edit="edit",e.NoEdit="no-edit",e.Close="close",e.Folder="folder",e.Resources="resources",e.More="more",e.Bell="bell",e.Plus="plus",e.Search="search",e.Share="share",e.Share2="share2",e.Upload="upload",e.Preview="preview",e.CircleCheck="circle-check",e.Down="down",e.Right="right",e.UpDown="up-down",e.ChevronUp="chevron-up",e.ChevronDown="chevron-down",e.ChevronLeft="chevron-left",e.ChevronRight="chevron-right",e.VisibleOff="visible-off",e.VisibleOn="visible-on",e.PublisherArchive="publisher-archive",e.Play="play",e.PlayCircle="play-circle",e.ArrowLeft="arrow-left",e.CheckCircleOutline="check-circle-o",e.CheckCircle="check-circle",e.Check="check",e.Lock="lock",e.Link="link",e.Info="info",e.Question="question",e.Star="star",e.StarOutline="star-o",e.Archive="archive",e.Warning="warning",e.WarningOutline="warning-o",e.NewWindow="new-window",e.File="file",e.FilePDF="file-pdf",e.FileExcel="file-excel",e.FilePowerpoint="file-ppt",e.FileWord="file-word",e.FileImg="file-img",e.FileZip="file-zip",e.Enter="enter",e.Calendar="calendar",e.CloseCaption="close-caption",e.CloseCaptionBadge="close-caption-badge",e.Playlist="playlist",e.Handle="handle",e.Subject="subject",e.Series="series",e.EditClickView="edit-clickview",e.Heart="heart",e.HeartOutline="heart-outline",e.WhiteWave="white-wave",e.Cog="cog",e.Video="video",e.Compass="compass",e.History="history",e.Tag="tag",e.Email="email",e.YearLevel="year-level",e.Subjects="subjects"}(r||(r={}));var Ft;function Vt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}a.extend(i.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),(o=i.library).add.apply(o,function(e){if(Array.isArray(e))return Mt(e)}(Ft=Ut)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(Ft)||function(e,t){if(e){if("string"==typeof e)return Mt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Mt(e,t):void 0}}(Ft)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),n.d(t,"a",(function(){return Ht})),n.d(t,"b",(function(){return zt}));var Ht=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"getSvg",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.faIconLookup(e,t),r=this.getIcon(n,t);if(r&&(!r||r.html.length))return r.html.pop()}},{key:"getIcon",value:function(e,t){return i.icon(e,t.iconOptions||{})}},{key:"faIconLookup",value:function(e,t){var n=t.prefix,r=void 0===n?"cv":n;return i.findIconDefinition({prefix:r,iconName:e})}}])&&Vt(t.prototype,n),r&&Vt(t,r),e}().Instance,zt=r},function(e,t,n){"use strict";var r=n(185);n.d(t,"a",(function(){return r}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"a",(function(){return i}));var r={CONFIG:"config:data:service",USER:"user:data:service",LANGUAGE:"language:data:service",LIBRARY:"library:data:service",SEARCH:"search:data:service",SERIES:"series:data:service",NOTIFICATIONS:"notifications:data:service",NOTIFICATIONS_SOCKET:"notifications:socket:service"},o={PENDING_ITEMS:"pending:items:service",VIDEO_UPLOAD:"video:upload:service",SUBTITLE_UPLOAD:"subtitle:upload:service",RESOURCE_UPLOAD:"resource:upload:service",CONTEXTUAL_SEARCH:"contextual:search:service"},i={NOTIFICATIONS:"notifications:application"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return u})),n.d(t,"f",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"h",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"d",(function(){return h})),n.d(t,"b",(function(){return d}));var r=n(6),o=n(100),i=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},a=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},c=function(){function e(){}return e.isRequired=function(e,t){if(null==e)throw new Error("The '"+t+"' argument is required.")},e.isIn=function(e,t,n){if(!(e in t))throw new Error("Unknown "+n+" value: "+e+".")},e}(),u=function(){function e(){}return Object.defineProperty(e,"isBrowser",{get:function(){return"object"==typeof window},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isWebWorker",{get:function(){return"object"==typeof self&&"importScripts"in self},enumerable:!0,configurable:!0}),Object.defineProperty(e,"isNode",{get:function(){return!this.isBrowser&&!this.isWebWorker},enumerable:!0,configurable:!0}),e}();function s(e,t){var n="";return l(e)?(n="Binary data of length "+e.byteLength,t&&(n+=". Content: '"+function(e){var t=new Uint8Array(e),n="";return t.forEach((function(e){n+="0x"+(e<16?"0":"")+e.toString(16)+" "})),n.substr(0,n.length-1)}(e)+"'")):"string"==typeof e&&(n="String data of length "+e.length,t&&(n+=". Content: '"+e+"'")),n}function l(e){return e&&"undefined"!=typeof ArrayBuffer&&(e instanceof ArrayBuffer||e.constructor&&"ArrayBuffer"===e.constructor.name)}function f(e,t,n,o,c,u,f){return i(this,void 0,void 0,(function(){var i,p,h,d,y;return a(this,(function(a){switch(a.label){case 0:return c?[4,c()]:[3,2];case 1:(h=a.sent())&&((i={}).Authorization="Bearer "+h,p=i),a.label=2;case 2:return e.log(r.a.Trace,"("+t+" transport) sending data. "+s(u,f)+"."),d=l(u)?"arraybuffer":"text",[4,n.post(o,{content:u,headers:p,responseType:d})];case 3:return y=a.sent(),e.log(r.a.Trace,"("+t+" transport) request complete. Response status: "+y.statusCode+"."),[2]}}))}))}function p(e){return void 0===e?new d(r.a.Information):null===e?o.a.instance:e.log?e:new d(e)}var h=function(){function e(e,t){this.subject=e,this.observer=t}return e.prototype.dispose=function(){var e=this.subject.observers.indexOf(this.observer);e>-1&&this.subject.observers.splice(e,1),0===this.subject.observers.length&&this.subject.cancelCallback&&this.subject.cancelCallback().catch((function(e){}))},e}(),d=function(){function e(e){this.minimumLogLevel=e,this.outputConsole=console}return e.prototype.log=function(e,t){if(e>=this.minimumLogLevel)switch(e){case r.a.Critical:case r.a.Error:this.outputConsole.error("["+(new Date).toISOString()+"] "+r.a[e]+": "+t);break;case r.a.Warning:this.outputConsole.warn("["+(new Date).toISOString()+"] "+r.a[e]+": "+t);break;case r.a.Information:this.outputConsole.info("["+(new Date).toISOString()+"] "+r.a[e]+": "+t);break;default:this.outputConsole.log("["+(new Date).toISOString()+"] "+r.a[e]+": "+t)}},e}()},function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=s(e);if(t){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(s,e);var t,n,r,u=c(s);function s(){return o(this,s),u.apply(this,arguments)}return t=s,(n=[{key:"name",get:function(){return"DevError"}}])&&i(t.prototype,n),r&&i(t,r),s}(n(11).a)},,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.GET="GET",e.POST="POST",e.PUT="PUT",e.DELETE="DELETE"}(r||(r={}))},,function(e,t,n){e.exports={leftNav:"_3jVyN",leftNavExpanded:"Q3CCb",leftNavAnchor:"_3A_-8",leftNavCollapsed:"_2idO9",bgGrey:"jefGP",leftNavText:"_3qbRh",leftNavBottom:"_1OHHF",partialLeftNavItem:"_131rM",iconGrey:"_2C2dq",leftNavIcon:"_13OIc",discover:"_2dE5b",active:"_3209B",playlists:"_2l2O2",myVideos:"_9xxGp",favouritedVideos:"mqsI_",classrooms:"Zgkg3",classroom:"_2K3g7",watchHistory:"ZMi6H",settings:"YTaso",highlightText:"_3uRuV"}},,function(e,t){e.exports=r},,,function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=n(12),o=Object.assign(Object.assign({},r.b),{CombineUploads:"combine:uploads:service"}),i=Object.assign(Object.assign({},r.a),{Settings:"SettingsDataService",FlightUser:"FlightUserDataService"})},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHOW_POPUP:"show:popup",ROUTE:"route",LOCK_NAV:"lock:nav",UNLOCK_NAV:"unlock:nav",NAV_IS_LOCKED:"navigation:islocked",NAV_UNLOCKED_BY_USER:"navigation:unlocked:by:user",ROUTING_START:"routing:start",ROUTING_END:"routing:end",HAS_ACTIVE_ROUTE:"has:active:route",ROUTE_LOOKUP:"route:look:up",URL_CHANGE:"url:change",ERROR:"error",CURRENT_ROUTE:"route:current"}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SEARCH:"search:app:variables",NOTIFICATIONS:"notifications:app:variables",SUBJECTS:"subjects:app:variables"}},function(e,t){e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SUBJECT_PLAYLISTS:"subject:playlists",CURRENT_USER:"current:user",WORKSPACE:"workspace",CONFIG:"config",LOCALE:"locale",PHRASES:"phrases",SEARCH_FILTERS:"search:filters",SERIES:"series",NOTIFICATIONS:"notifications",SUGGEST_EDIT:"suggest:edit"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={debounce:function(e,t,n){return r.debounce(e,t,n)},throttle:function(e,t,n){return r.throttle(e,t,n)},isFunction:function(e){return r.isFunction(e)},useIdentity:function(){return r.identity},memoize:function(e,t){return r.memoize(e,t)}}},,,function(e,t){e.exports=i},function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"a",(function(){return c}));var r,o=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=function(e){function t(t,n){var r=this,o=this.constructor.prototype;return(r=e.call(this,t)||this).statusCode=n,r.__proto__=o,r}return o(t,e),t}(Error),a=function(e){function t(t){void 0===t&&(t="A timeout occurred.");var n=this,r=this.constructor.prototype;return(n=e.call(this,t)||this).__proto__=r,n}return o(t,e),t}(Error),c=function(e){function t(t){void 0===t&&(t="An abort occurred.");var n=this,r=this.constructor.prototype;return(n=e.call(this,t)||this).__proto__=r,n}return o(t,e),t}(Error)},function(e,t,n){"use strict";var r=n(1),o=n(2),i=n(19),a=n(3),c=n(16),u=n(190);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(a,e);var t,n,r,i=h(a);function a(){var e;return l(this,a),(e=i.apply(this,arguments)).contextHistory=[],e}return t=a,r=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"initialize",value:function(){this.listenTo(c.a.SHELL,o.a.EventNames.ROUTE,this.setContext)}},{key:"setContext",value:function(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}},{key:"getCurrentContext",value:function(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}},{key:"name",get:function(){return u.a.Context}}])&&f(t.prototype,n),r&&f(t,r),a}(o.a.Service)),g=n(126);function m(){var e=v.getCurrentContext().appLink;return r.isObject(e)||o.a.ErrorHelper.throw(new i.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function b(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.location,n=e.entity,r=e.workflowPhase,a=void 0===r?null:r,c=e.descriptor,u=void 0===c?null:c;return t||o.a.ErrorHelper.throw(new i.a("location must be set.")),n||o.a.ErrorHelper.throw(new i.a("entity must be set.")),{productArea:m(),location:t,entity:n,descriptor:u,workflowPhase:a}}function w(){return o.a.LocationUtils.GetCurrentPath()+o.a.LocationUtils.GetCurrentQueryString()}n.d(t,"a",(function(){return S}));var S={logUserAction:function(e,t){if(function(e){return!(!r.isArray(e)||!r.every(e,(function(e){return r.isObject(e)})))||!!r.isObject(e)}(e)&&r.isObject(t)){var n=S.buildUserActionEvent(t),o=n.userAction,i=n.action,a=n.eventVersion;g.a.log(o,e,i,a)}},logNavigate:function(e,t){var n=Object.assign({currentLocation:w(),appLink:e},t);g.a.log(a.n.Navigate,n)},mergeOptions:function(e,t){return r.extend({},e,t)},buildActionContext:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return b(e)},buildUserActionEvent:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.actionType,n=e.eventVersion,r=t,o=b(e);return{userAction:r,action:o,eventVersion:n}},buildCurrentLocation:function(){return w()},buildSearchEvent:function(e,t){return{data:{query:e},action:b({entity:a.d.Video,location:a.j.SearchBar,descriptor:t})}},buildInstantSearchEvent:function(e,t,n){var r;n===a.l.Series&&(r=a.d.Series),n===a.l.Folder&&(r=a.d.Folder),n===a.l.Tags&&(r=a.d.Tag),n===a.l.Video&&(r=a.d.Video);var o={instant:{},query:e};return t.id&&(o.instant.selectedId=t.id),t.name&&(o.instant.selectedName=t.name),{data:o,action:b({entity:r,location:a.j.SearchBar})}},mapInteractionType:function(e){switch(e){case a.h.DragDrop:return a.i.DragDrop;case a.h.FileSelect:return a.i.FileSelect;default:return}}}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(9);function o(e,t,n,o){var i=e;return"string"==typeof e&&(i=r.Radio.channel(e)),o.call(this,i,t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return p})),n.d(t,"a",(function(){return d}));var r=n(1),o=n(9),i=n(78),a=n(16),c=n(29),u=/((\(\?)?:\w+)|(\*\w+)/,s=/[\(\)]/g,l=/\(\/\)/g,f=/\/$/,p={routingStarted:function(){o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_START)},routingEnded:function(){p.hasActiveRoute()&&o.Radio.channel(a.a.SHELL).trigger(c.a.ROUTING_END)},hasActiveRoute:function(){return o.Radio.channel(a.a.SHELL).request(c.a.HAS_ACTIVE_ROUTE)}},h=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.usedHelper=!0;var n=e.application,r=e.action;o.Radio.channel(n).trigger(r,e,t)},d={getHref:function(e){if(!e)return"";var t=e.application,n=e.action,r=e.args,i=e.params,u=o.Radio.channel(a.a.SHELL);return"/".concat(u.request(c.a.ROUTE_LOOKUP,"".concat(t,":").concat(n),r,i))},buildRoute:function(e,t){if(!t)return e;var n=t.args,o=t.params;if(r.each(n,(function(t){e=e.replace(u,t||"")})),e=(e=(e=e.replace(l,"")).replace(s,"")).replace(f,""),!o)return e;var a=i.a.SerializeQueryParams(o);return a.length?"".concat(e,"?").concat(a):e},trigger:function(e,t){e&&(p.hasActiveRoute()?o.Radio.channel(a.a.SHELL).once("routing:end",(function(){h(e,t)})):h(e,t))},getCurrentAppLink:function(){return o.Radio.channel(a.a.SHELL).request(c.a.CURRENT_ROUTE)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UPLOAD_COMPLETE:"upload:complete",FILES_SELECTED:"files:selected",FILES_ADDED:"files:added",UPLOAD_CANCELLED:"upload:cancelled",PENDING_ITEM_READY_TO_WATCH:"pending:item:ready:to:watch",PENDING_ITEM_STATUS_CHANGE:"pending:item:status:change",PROCESSING_CANCELLED:"processing:cancelled",UNLOCK_NAV:"upload:unlock:nav"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(192),o="categories{libraries.typeid:".concat(r.a.CustomMediaObjectCollection,"}"),i={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(o,",libraries,tags,clips{limit:100},")+"interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",SHARED_PLAYLIST_VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(o,",libraries,tags,clips{limit:100},")+"interactives{limit:100},subtitles{limit:1},resources{limit:1},links{limit:1}",SERIES:"tallposter,rating",FOLDER:"banner,thumbnail",CLASSIFICATION:"banner,cover",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1},followers[count()]{limit:0}",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover,owner[avatar],subjectpresentationaudiences"},a={SubjectPresentationActiveAudienceFilter:function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},SubjectPresentationAudienceFilter:function(e){return"subjectpresentationaudiences{presentationId:".concat(e,"}")},ClassificationWithFollowersAndMemberCount:function(e){return i.CLASSIFICATION+",followers{id:".concat(e,"},videos[count()]{limit:0}")+",playlists[count()]{limit:0},series[count()]{limit:0}"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(414),i=n.n(o),a=/&/g,c=/[\W]+/g,u=/\s+/g,s={className:"info-link"},l={escapeExpression:function(e){return window.Handlebars.escapeExpression(e)},escapeRegExp:function(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},slugify:function(e){if(e)return e.toLowerCase().replace(a,"and").replace(c," ").trim().replace(u,"-").substr(0,80)},linkifyText:function(e,t){if(e){var n=t?r.extend({},s,t):s;return i()(e,n)}},isEqual:function(e,t){return!!e&&!!t&&e.toString()===t.toString()},toTitleCase:function(e){return e.split(" ").map((function(e){return(e[0]?e[0].toUpperCase():"")+(e.substr(1)?e.substr(1).toLowerCase():"")})).join(" ")}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return o})),n.d(t,"b",(function(){return m}));var r,o,i=n(1),a=n(9),c=n(121),u=n(72),s=n(54),l=n(16),f=n(52);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=g(e);if(t){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.Success="success",e.Warning="warning",e.Fail="danger",e.Info="info"}(r||(r={})),function(e){e.Success="Success! 🙌",e.Warning="Whoops...",e.Fail="Oops...",e.Info="FYI"}(o||(o={}));var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(s,e);var t,n,r,o=y(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.alertCollection=new c.a,this.listenTo(l.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}},{key:"showAlerts",value:function(){var e=a.Radio.channel(l.a.ALERT),t={collection:this.alertCollection};this.options.alertViewCtor&&(t=i.extend({},t,{ctor:this.options.alertViewCtor})),e.trigger("show:alert",t)}},{key:"removeAlert",value:function(e){this.alertCollection.remove(e),this.showAlerts()}},{key:"createAlert",value:function(e){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),e.id||(e=i.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new u.a(e)),this.showAlerts()}},{key:"clearAllAlerts",value:function(){this.alertCollection.reset(null)}},{key:"success",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:e}))}),this):e.useXHR?i.bind((function(e,n){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,{message:n}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultSuccessAlert,e))}),this)}},{key:"error",value:function(e){var t=this;return"string"==typeof e?i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e}))}),this):e.useXHR?i.bind((function(e){return t.createAlert(i.extend({},t.options.defaultErrorAlert,{message:e.message}))}),this):i.bind((function(){return t.createAlert(i.extend({},t.options.defaultErrorAlertIL_DEFAULT,e))}),this)}},{key:"generateUniqueAlertId",value:function(){return i.uniqueId("alert_")}},{key:"name",get:function(){return f.a.ALERT}},{key:"defaults",get:function(){return{maxAlerts:3}}}])&&h(t.prototype,n),r&&h(t,r),s}(s.a)},,function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.ExchangeVideoAvailable="exchange-video-available",e.WorkspaceVideoAvailable="workspace-video-available",e.Marketing="marketing",e.EditedVideoAvailable="edited-video-available",e.VideoRequestAvailable="pay-tv-video-available",e.VideoRequestDenied="pay-tv-video-denied",e.VideoReviewReminder="term-update-review-reminder",e.VideoReviewAddedToLibrary="term-update-review-videos-added-to-library",e.CustomLibraryVideoAvailable="custom-library-video-available",e.VideoProcessingFailed="video-processing-failed",e.StaffRequest="new-staff-request",e.StaffRequestFulfilled="staff-request-fulfilment",e.ChapterMergeSuccess="media-concatenate-success",e.SuggestEdit="suggest-an-edit"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(2),i=n(40);function a(e){var t=e.appLink,n=e.className,a=e.children,c=e.tag,u=void 0===c?"a":c;if(!t)return r.createElement("span",{className:n||""},a);var s=o.a.AppLinkHelper.getHref(t),l=e.onClick;l||(l=function(n){n.preventDefault(),e.analyticsData&&e.analyticsOptions&&i.a.logUserAction(Object.assign({href:s},e.analyticsData),e.analyticsOptions),o.a.AppLinkHelper.trigger(t)});var f={onClick:l,href:s,className:n};return r.createElement(u,Object.assign({},f),a)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"}},,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(38),o=n(42),i=n(11);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,r,a=l(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=a.call(this,e)).name||i.c.throw(new i.b("Your service must be named.")),t}return t=f,(n=[{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Object)},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"a",(function(){return u}));var r,o=n(0),i=n(35),a=n(13),c=n(156);function u(e){var t=e.svgName,n=e.className,u=void 0===n?"d-inline-block svg-container":n,s=e.tagName,l=void 0===s?"span":s,f=e.size,p=void 0===f?r.Standard:f,h=e.onClick,d=e.title,y=e.tooltipPlacement,v=void 0===y?"right":y,g=l,m={dangerouslySetInnerHTML:{__html:a.a.getSvg(t)},className:"".concat(u," ").concat(p),onClick:i.a.isFunction(h)?h:null};return d?o.createElement(c.a,{title:d,placement:v},o.createElement(g,Object.assign({},m))):o.createElement(g,Object.assign({},m))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg",e.XXL="xxlg"}(r||(r={}))},,function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),o={isEmpty:function(e){return r.isEmpty(e)},values:function(e){return r.values(e)},keys:function(e){return r.keys(e)},deepClone:function(e){return(r.isArray(e)?r.map:r.mapObject)(e,(function(e){return r.isObject(e)||r.isArray(e)?o.deepClone(e):e}))},getEnumKeys:function(e){return Object.keys(e).filter((function(e){return!(parseInt(e)>=0)}))},isObject:function(e){return r.isObject(e)},isEqual:function(e,t){return r.isEqual(e,t)},omit:function(e,t){return r.omit(e,t)}}},,,function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(9),i=n(54),a=n(11),c=n(19);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return l(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?y(e):t}function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,n,i,u=h(l);function l(e){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),t=u.call(this,e),r.result(y(t),"name")||a.c.throw(new c.a("Must provide a name when extending BaseDataService")),r.result(y(t),"channelName")||a.c.throw(new c.a("Must provide a channelName for ".concat(r.result(y(t),"name"))));var n=[].concat(s(t.defaultProps),s(t.props||[]));return t.dataRequestSignatures={},t.mergeOptions(e,n),t}return t=l,(n=[{key:"getCursors",value:function(e){var t=this.cache.get(e);return t?t.cursors:{}}},{key:"clearCacheAndGet",value:function(e){var t=this,n=e.callback,o=e.errorCallback,i=e.eventPrefix,a=this.getEventNames(i),c=a.syncEvent,u=a.errorEvent,s=this.cache.get(i);if(s&&s.openRequest)return this.listenToOnce(this.getChannel(),c,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),u,o),r.isFunction(n)&&n(e)})),void this.listenToOnce(this.getChannel(),u,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),c,n),r.isFunction(o)&&o()}));this.cache.remove(e.eventPrefix),this.get(e)}},{key:"get",value:function(e){var t=this,n=e.callback,o=e.errorCallback,i=e.eventPrefix,a=e.resource,c=e.formatData,u=e.expiryTime,s=e.successHandler,l=e.errorHandler,f=e.bootstrapName,p=this.getEventNames(i),h=p.syncEvent,d=p.requestEvent,y=p.successEvent,v=p.errorEvent,g=this.getChannel(),m=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[f]&&(this.cacheData(i,this.bootstrapData[f],c,{openRequest:!1,timestamp:m}),delete this.bootstrapData[f]);var b,w=this.cache.get(i);w&&(b=w.data);var S=w&&w.openRequest,C=this.isExpired(i,u);if(S&&(this.listenToOnce(g,h,(function(e){r.isFunction(o)&&t.stopListening(t.getChannel(),v,o),r.isFunction(n)&&n(e)})),this.listenToOnce(g,v,(function(){r.isFunction(n)&&t.stopListening(t.getChannel(),h,n),r.isFunction(o)&&o()}))),this.cache.has(i)&&!C||(g.trigger(d),this.listenToResponse({eventPrefix:i,formatData:c,cacheOptions:{timestamp:m},callback:n,errorCallback:o,successHandler:s,errorHandler:l}),this.cacheData(i,null,null,{openRequest:!0,timestamp:m}),this.dataProvider.read(a,{channel:this.getTransportChannel(),successEvent:y,errorEvent:v})),b&&r.isFunction(n)&&!C&&n(b),b)return b}},{key:"create",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.data,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.invalidationKeys,u=e.successHandler,s=e.errorHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,d=this.getChannel(),y=this.getTransportChannel();d.trigger(f),this.listenToResponse({eventPrefix:t,formatData:o,invalidationKeys:c,callback:i,errorCallback:a,successHandler:u,errorHandler:s}),this.dataProvider.create(n,r,{channel:y,successEvent:p,errorEvent:h})}},{key:"update",value:function(e){var t=e.data,n=e.callback,r=e.errorCallback,o=e.resource,i=e.formatData,a=e.eventPrefix,c=e.invalidationKeys,u=e.errorHandler,s=e.successHandler,l=this.getEventNames(e.eventPrefix),f=l.requestEvent,p=l.successEvent,h=l.errorEvent,d=this.getChannel(),y=this.getTransportChannel();d.trigger(f),this.listenToResponse({eventPrefix:a,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:s,errorHandler:u}),this.dataProvider.update(o,t,{channel:y,successEvent:p,errorEvent:h})}},{key:"delete",value:function(e){var t=e.eventPrefix,n=e.resource,r=e.callback,o=e.errorCallback,i=e.invalidationKeys,a=e.successHandler,c=e.errorHandler,u=this.getEventNames(t),s=u.successEvent,l=u.errorEvent,f=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:i,callback:r,errorCallback:o,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:c}),this.dataProvider.delete(n,{channel:f,successEvent:s,errorEvent:l})}},{key:"listenToResponse",value:function(e){var t=this,n=e.eventPrefix,o=e.formatData,i=e.callback,a=e.errorCallback,c=e.successHandler,u=e.errorHandler,s=e.invalidationKeys,l=e.cacheOptions,f=void 0===l?{}:l,p=this.getEventNames(n),h=p.syncEvent,d=(p.requestEvent,p.successEvent),y=p.errorEvent,v=p.successAlertEvent,g=p.errorAlertEvent,m=this.getChannel(),b=this.getTransportChannel(),w=this.getAlertChannel();r.isFunction(i)&&this.listenToOnce(m,h,i),r.isFunction(a)&&this.listenToOnce(m,y,a),this.stopListening(w,v),this.stopListening(w,g),r.isFunction(c)&&this.listenToOnce(w,v,c),r.isFunction(u)&&this.listenToOnce(w,g,u),!r.isFunction(u)&&!1!==u&&r.isFunction(this.defaultErrorHandler)&&this.listenToOnce(w,g,this.defaultErrorHandler),this.hasRequestSignature(n)||(this.setRequestSignature(n),this.listenTo(b,d,(function(e){t.stopListening(m,y,a);for(var r=arguments.length,i=new Array(r>1?r-1:0),c=1;c<r;c++)i[c-1]=arguments[c];w.trigger.apply(w,[v,e].concat(i));var u=f.noCache?t.formatData(e,o):t.cacheData(n,e,o);f.clearCacheKey&&t.cache.remove(n),m.trigger(h,u),s&&s.length&&t.cache.invalidate(s,(function(e){return m.trigger("".concat(e,":invalidate"))}))})),this.listenTo(b,y,(function(){var e;t.stopListening(m,h,i);var r=(e=t.dataProvider).parseError.apply(e,arguments);w.trigger(g,r),m.trigger(y,r),f.noCache||t.cacheData(n,null,null)})))}},{key:"cacheData",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.openRequest,i=void 0!==o&&o,a=r.timestamp;a||(a=this.currentTimestamp());var c=this.processPagination(t),u=this.formatData(t,n);return this.cache.set(e,{data:u,timestamp:a,cursors:c,openRequest:i}),u}},{key:"processPagination",value:function(e){if(e){var t=e.pagination;if(t)return t.cursors?t.cursors:r.isUndefined(t.offset)||r.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t)}}},{key:"formatData",value:function(e,t){return r.isFunction(t)?t(e):e}},{key:"chain",value:function(){var e=this,t=[],n=function(e,t){r.isFunction(e)&&e(t)},o=function(r,o){return t.push((function(){var i=r.callback;r.callback=function(e){n(i,e),n(t.shift())},e[o](r)})),i},i={func:function(e){return t.push((function(){e(t.shift()||function(){})})),i},get:function(e){return o(e,"get")},create:function(e){return o(e,"create")},update:function(e){return o(e,"update")},delete:function(e){return o(e,"delete")},run:function(){n(t.shift())}};return i}},{key:"invalidateCache",value:function(e){e&&e.length&&this.cache.invalidate(e)}},{key:"currentTimestamp",value:function(){return(new Date).valueOf()}},{key:"isExpired",value:function(e,t){if(!t)return!1;var n=this.cache.get(e);if(!n||!n.timestamp)return!0;var r=1e3*t;return n.timestamp<this.currentTimestamp()-r}},{key:"getEventNames",value:function(e){return{syncEvent:"".concat(e,":sync"),requestEvent:"".concat(e,":request"),successEvent:"".concat(e,":success"),errorEvent:"".concat(e,":error"),successAlertEvent:"".concat(e,":success:alert"),errorAlertEvent:"".concat(e,":error:alert")}}},{key:"getTransportChannel",value:function(){return o.Radio.channel("".concat(this.channelName,":transport"))}},{key:"getAlertChannel",value:function(){return o.Radio.channel("".concat(this.channelName,":alert"))}},{key:"setRequestSignature",value:function(e){this.dataRequestSignatures[e]=e}},{key:"hasRequestSignature",value:function(e){return!!this.dataRequestSignatures[e]}},{key:"convertOffsetPaginationToCursors",value:function(e){var t=e.offset,n=e.pageSize,o=e.totalItems,i=o>0&&t<o&&t+n,a=o>0&&t>0&&Math.max(t-n,0),c={};if(i&&i<o&&(c.next=i.toString()),r.isNumber(a)&&(c.previous=a.toString()),!r.isEmpty(c))return c}},{key:"convertLegacyPaginationToCursors",value:function(e){var t=e.page,n=e.totalPages,o=r.isNumber(t)&&t>0&&t<n&&t+1,i=r.isNumber(t)&&t>1&&t-1,a={};if(o&&o<=n&&(a.next=o.toString()),i&&(a.previous=i.toString()),!r.isEmpty(a))return a}},{key:"defaultProps",get:function(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}}])&&f(t.prototype,n),i&&f(t,i),l}(i.a)},function(e,t){e.exports=a},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(1),o=n(112),i=n(19),a=n(54),c=n(72),u=n(145),s=n(11);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(d,e);var t,n,a,l=h(d);function d(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(e=l.call(this)).viewObjects={},e}return t=d,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"updateViewModel",value:function(e,t){var n=this.mergeData(t,e.toJSON());return e instanceof u.a&&e.set(n,{silent:!0}),e instanceof c.a&&!(e instanceof u.a)&&e.set(n,{silent:!0}),e}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.update,o=void 0!==r&&r,i=this.viewObjects[e];if(i&&o)return this.updateViewModel(i,t);if(i)return i;var a=this.getLocalData(e,n);return this.set(e,t,a,n)}},{key:"set",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,o=r.ctor,i=r.storage,a=this.mergeData(t,n),u=o?new o(a):new c.a(a);return this.viewObjects[e]=u,i&&!n?(this.setLocalData(e,u,null,r),this.setupChangeListeners(e,u,r)):i&&n&&this.setupChangeListeners(e,u,r),u}},{key:"clear",value:function(e){var t=this.viewObjects[e];return!!t&&(this.stopListening(t),t.trigger("destroy"),delete this.viewObjects[e],!0)}},{key:"getLocalData",value:function(e,t){var n=t.storage;if(n)return this.getStorageHelper(n.type).get(e)}},{key:"setLocalData",value:function(e,t,n,r){var o,i=r.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),t instanceof c.a&&(o=t.pick(i.persistProps)),this.getStorageHelper(i.type).set(e,o))}},{key:"setupChangeListeners",value:function(e,t,n){var o=this,i=n.storage;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),r.each(i.persistProps,(function(i){o.listenTo(t,"change:".concat(i),r.partial(o.setLocalData,e,r,r,n))})))}},{key:"mergeData",value:function(e,t){return t?r.isObject(e)&&r.isObject(t)?r.extend(e,t):void s.c.throw(new i.a("defaultValues and existingData are not of the same datatype and cannot be merged")):e}},{key:"getStorageHelper",value:function(e){switch(e){case o.c.LocalStorage:return o.a;case o.c.SessionStorage:return o.b}}},{key:"name",get:function(){return"ViewModelService"}}])&&f(t.prototype,n),a&&f(t,a),d}(a.a).Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SHORT:120,STANDARD:600}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(5),o=n(10);function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={getDiscoverAppLinks:function(){var e=r.a.DASHBOARD;return Object.keys(o.a.Dashboard).map((function(t){return{application:e,action:o.a.Dashboard[t]}}))},getPlaylistAppLinks:function(){var e=r.a.PLAYLISTS;return Object.keys(o.a.Playlists).map((function(t){return{application:e,action:o.a.Playlists[t]}}))},getMyVideosAppLinks:function(){var e=r.a.UPLOAD,t=Object.keys(o.a.Upload).map((function(t){return{application:e,action:o.a.Upload[t]}}));return t.push({application:r.a.DEFAULT,action:o.a.Default.MY_VIDEOS}),t},getFavouritedVideosAppLinks:function(){return[{application:r.a.DEFAULT,action:o.a.Default.FAVOURITE_VIDEOS}]},getWatchHistoryAppLinks:function(){var e=r.a.WATCH_HISTORY;return Object.keys(o.a.WatchHistory).map((function(t){return{application:e,action:o.a.WatchHistory[t]}}))},getClassroomsAppLinks:function(){return[{application:r.a.CLASSROOMS,action:o.a.Classrooms.HOME}]},getClassroomAppLinks:function(){var e=r.a.CLASSROOMS;return Object.keys(o.a.Classrooms).filter((function(e){return e!==o.a.Classrooms.HOME})).map((function(t){return{application:e,action:o.a.Classrooms[t]}}))},getSettingsAppLinks:function(){var e=Object.keys(o.a.Settings).map((function(e){return{application:r.a.SETTINGS,action:o.a.Settings[e]}}));return[].concat(i(e),[{application:r.a.SUBJECT,action:o.a.Subjects.PREFERENCES}])}}},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(9),i=n(42);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(p,e);var t,n,o,a=f(p);function p(){return c(this,p),a.apply(this,arguments)}return t=p,(n=[{key:"mixin",value:function(e){for(var t in e){if(this.hasOwnProperty(t)){var n=this[t];return void(this[t]=r.extend({},n,e[t]))}this[t]=e[t]}}},{key:"addValidation",value:function(e){this.mixin({validation:e})}},{key:"validate",value:function(e,t){s(h(p.prototype),"validate",this).call(this,e,t)}},{key:"listenTo",value:function(){return i.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],s(h(p.prototype),"listenTo",this))}}])&&u(t.prototype,n),o&&u(t,o),p}(o.Model)},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return c}));var r=n(0),o=n(7),i=n(57),a=r.createContext(""),c=r.memo((function(e){var t=e.phrase,n=e.namespace,i=e.options,c=r.useContext(a),u=n||c,s=o.a.getPhrase(u,t,i);return r.createElement("span",{dangerouslySetInnerHTML:{__html:s}})}),(function(e,t){return e.namespace===t.namespace&&e.phrase===t.phrase&&i.a.isEqual(e.options,t.options)}))},,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i}));var r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},o=function(e,t,n){this.statusCode=e,this.statusText=t,this.content=n},i=function(){function e(){}return e.prototype.get=function(e,t){return this.send(r({},t,{method:"GET",url:e}))},e.prototype.post=function(e,t){return this.send(r({},t,{method:"POST",url:e}))},e.prototype.delete=function(e,t){return this.send(r({},t,{method:"DELETE",url:e}))},e.prototype.getCookieString=function(e){return""},e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),o=n(9),i=n(43),a=n(29),c=n(16),u={GetQuery:function(){return u.DeserializeQueryParams(window.location.search.substring(1))},UpdateQuery:function(e){if(e){var t=u.GetQuery(),n=u.SerializeQueryParams(r.extend(t,e));n&&(n="?".concat(n)),u.UpdateUrl("".concat(u.GetCurrentPath()).concat(n),null,{replace:!0,trigger:!1})}},UpdateUrl:function(e,t,n){var r=i.a.buildRoute(e,t);o.history.navigate(r,n),o.Radio.channel(c.a.SHELL).trigger(a.a.URL_CHANGE,t,n)},SerializeQueryParams:function(e){return e?"string"==typeof e?e:$.param(e,!0):""},DeserializeQueryParams:function(e){return e?r.reduce(e.split("&"),(function(e,t){var n=t.split("="),r=n[0],o=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(o),e):(e[r]=[e[r],o],e):(e[r]=o,e)}),{}):{}},StartHistory:function(){o.History.started&&o.history.stop(),o.history.start({pushState:!0})},PageLoad:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t?window.open(e,"_blank"):window.location.href=e},Redirect:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=function(){return t?window.location.replace(e):window.location.href=e};i.b.hasActiveRoute()?o.Radio.channel(c.a.SHELL).once("routing:end",n):n()},Reload:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];window.location.reload(e)},GetCurrentPath:function(){return window.location.pathname},GetCurrentQueryString:function(){return window.location.search},GetCurrentUrl:function(){return window.location.href},GetCurrentReferrer:function(){return document.referrer},SetPageTitle:function(e){document.title=e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1),o=/\/$/,i={urlBuilder:function(e,t){var n=r.map(t,(function(e,t){return t&&Array.isArray(e)?e.map((function(e){return"".concat(t,"=").concat(encodeURIComponent(e))})).join("&"):t&&void 0!==e?"".concat(t,"=").concat(encodeURIComponent(e)):""})),o=r.reduce(n,(function(e,t){return t?e?"".concat(e,"&").concat(t):t:e}));return o?"".concat(e,"?").concat(o):e},buildFilter:function(e){var t=[];if(e.limit&&t.push("limit:".concat(e.limit)),e.cursor&&t.push("page:".concat(e.cursor)),e.before&&t.push("dateCreated:...".concat(e.before)),t.length)return t.join(",")},makeHttps:function(e){return r.isString(e)?-1===e.indexOf("http://")?e:e=e.replace("http://","https://"):e},safeUrlConcat:function(e,t){if(e){var n=e;return e.endsWith("/")||(n+="/"),t?n+=t.startsWith("/")?t.slice(1):t:n}},removeTrailingSlash:function(e){if("string"==typeof e)return e.replace(o,"")}}},,,function(e,t,n){"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}n.d(t,"a",(function(){return o}));var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.variables={}}var t,n,o;return t=e,o=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"get",value:function(e){return this.variables[e]}},{key:"setUpVariables",value:function(e){this.variables=e}},{key:"name",get:function(){return"EnvironmentVariables"}},{key:"isDevelopment",get:function(){return this.variables.isDevelopment}}])&&r(t.prototype,n),o&&r(t,o),e}().Instance},function(e,t,n){e.exports={alertItem:"_3ppPT",alertBox:"_2gPqV",alertList:"_1_wrK",icon:"_2gpnl",alertContent:"_1akpi",heading:"_3jnJY"}},function(e,t,n){e.exports={content:"_1SX2l",collapsedNavContent:"_3LJFz",openNavContent:"_34Pt4",hiddenNavContent:"_1gZ0J",mask:"mE2Dq",fixedBottomRightContainer:"Sgmex"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyUpdated="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa"}(r||(r={}))},,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(61),o=n(193),i=function(e,t){var n=Object(r.useDispatch)(),i=Object(r.useSelector)((function(t){return t.viewModelData[e]}));function a(t,r){n({type:o.a.UPDATE,payload:{viewModelKey:e,dataOrKey:t,keyData:r}})}return void 0!==t&&void 0===i&&a(t),[i,a]}},function(e,t){e.exports=c},function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(16),i=n(12);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=new(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(p,e);var t,n,a,f=l(p);function p(){var e;return c(this,p),(e=f.apply(this,arguments)).routeHistory=[],e.contextHistory=[],e}return t=p,a=[{key:"Instance",get:function(){return this.instance||(this.instance=new this)}}],(n=[{key:"initialize",value:function(){this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.setContext),this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.updateRouteHistory)}},{key:"setContext",value:function(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}},{key:"getCurrentContext",value:function(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}},{key:"getPreviousContext",value:function(){if(this.contextHistory.length&&!(this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}},{key:"updateRouteHistory",value:function(e){(r.a.AppLinkHelper.getHref(e)||"/"===r.a.LocationUtils.GetCurrentPath())&&(this.routeHistory.length>=3&&this.routeHistory.unshift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:e}))}},{key:"getCurrentRoute",value:function(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}},{key:"getPreviousRoute",value:function(){if(this.routeHistory.length&&!(this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}},{key:"fromPageLoad",value:function(){return 1===this.contextHistory.length}},{key:"name",get:function(){return i.b.Context}}])&&u(t.prototype,n),a&&u(t,a),p}(r.a.Service))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={SEARCH_BAR_LOCATION:"search:bar:location",WEB_PLAYER_DATA:"web:player:data",BULK_TEACHER_UPLOAD:"bulk:teacher:upload",BULK_STUDENT_UPLOAD:"bulk:student:upload"}},,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){}return e.prototype.log=function(e,t){},e.instance=new e,e}()},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Inlet="event:inlet",e.Outlet="event:outlet"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Unknown=0]="Unknown",e[e.BadRequest=1]="BadRequest",e[e.Unauthorized=2]="Unauthorized",e[e.Forbidden=3]="Forbidden",e[e.NotFound=4]="NotFound",e[e.InternalServer=5]="InternalServer"}(r||(r={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Received=1]="Received",e[e.Seen=2]="Seen",e[e.Read=3]="Read"}(r||(r={}))},function(e,t){e.exports=u},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Error=-1]="Error",e[e.Processing=1]="Processing",e[e.Completed=2]="Completed"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r=function(){function e(){}return e.write=function(t){return""+t+e.RecordSeparator},e.parse=function(t){if(t[t.length-1]!==e.RecordSeparator)throw new Error("Message is incomplete.");var n=t.split(e.RecordSeparator);return n.pop(),n},e.RecordSeparatorCode=30,e.RecordSeparator=String.fromCharCode(e.RecordSeparatorCode),e}()},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e){var t=o(Object(r.useState)(window.matchMedia(e).matches),2),n=t[0],i=t[1];return Object(r.useEffect)((function(){var t=window.matchMedia(e);t.matches!==n&&i(t.matches);var r=function(){return i(t.matches)};return t.addListener(r),function(){return t.removeListener(r)}}),[e]),n}},,,,,function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=u(e);if(t){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function u(e){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),e}var p;n.d(t,"c",(function(){return p})),n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return g})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sesstionStorage"}(p||(p={}));var h=function(){function e(t){s(this,e),this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport&&(this.storage=window[this.type])}return f(e,[{key:"get",value:function(e){if(this.hasSupport){var t=this.storage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}}},{key:"set",value:function(e,t){if(this.hasSupport)try{return this.storage.removeItem(e),"string"!=typeof t?(this.storage.setItem(e,JSON.stringify(t)),!0):(this.storage.setItem(e,t),!0)}catch(e){return!1}}},{key:"remove",value:function(e){if(this.hasSupport)return this.storage.removeItem(e)}},{key:"length",value:function(){if(this.hasSupport)return this.storage.length}},{key:"clear",value:function(){if(this.hasSupport)return this.storage.clear()}},{key:"cacheSet",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this.expireTime;this.cacheClean();var r={time:this.getCurrentTime()+1e3*n,data:null!=t&&t};return this.set("".concat(this.cachePrefix).concat(e),r)}},{key:"cacheGet",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}},{key:"cacheExists",value:function(e){var t="".concat(this.cachePrefix).concat(e),n=this.get(t);return!!n&&(!this.isExpired(n)||(this.remove(t),!1))}},{key:"cacheRemove",value:function(e){return this.remove("".concat(this.cachePrefix).concat(e))}},{key:"cacheFlush",value:function(){this.cacheClean()}},{key:"cacheClean",value:function(){if(this.hasSupport)for(var e=0;e<this.storage.length;e++){var t=this.storage.key(e);if(0===t.indexOf(this.cachePrefix)){var n=this.get(t);n&&n.time&&this.isExpired(n)&&this.remove(t)}}}},{key:"isExpired",value:function(e){return e.time<this.getCurrentTime()}},{key:"getCurrentTime",value:function(){return(new Date).getTime()}},{key:"hasBrowserSupport",value:function(){try{return this.type in window&&null!==window[this.type]}catch(e){return!1}}}]),e}(),d=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.LocalStorage}))}}]),n}(h),y=function(e){o(n,e);var t=a(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,null,[{key:"Instance",get:function(){return this.instance||(this.instance=new this({type:p.SessionStorage}))}}]),n}(h),v=d.Instance,g=y.Instance},function(e,t,n){e.exports={svgContainer:"_1ZcbC",searchContextTag:"_1RLqh",tagFocus:"_179a5",searchContextContainer:"_3nPVB"}},function(e,t,n){e.exports={nav:"_3RLQ9",logoContainer:"UIlc9",searchBar:"_2E7RQ",actionButtons:"_2HygL",hamburger:"_2BRko",searchBarNavContainer:"_2bUnK"}},function(e,t,n){"use strict";var r,o,i,a;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return i})),function(e){e.Small="small",e.Medium="medium",e.Large="large"}(r||(r={})),function(e){e[e.Thumbnails=0]="Thumbnails",e[e.Banners=1]="Banners",e[e.Avatars=2]="Avatars",e[e.Logos=3]="Logos",e[e.Covers=4]="Covers",e[e.Posters=5]="Posters",e[e.TallPosters=6]="TallPosters",e[e.HeroBanners=7]="HeroBanners"}(o||(o={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(i||(i={})),function(e){e[e.None=0]="None",e[e.ImageAPIv1=1]="ImageAPIv1",e[e.FileAPIv1=2]="FileAPIv1",e[e.ImageAPIv2=3]="ImageAPIv2"}(a||(a={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(7);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=l(e);if(t){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function l(e){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f="shared.notFoundError",p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(s,e);var t,n,r,i=u(s);function s(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,o.a.getPhrase(f,"title"))}return t=s,(n=[{key:"name",get:function(){return"NotFoundError"}},{key:"heading",get:function(){return o.a.getPhrase(f,"heading")}},{key:"description",get:function(){return o.a.getPhrase(f,"description")}}])&&a(t.prototype,n),r&&a(t,r),s}(r.a.SilentError)},,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(9),o=n(42);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t,n){return(u="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=p(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(f,e);var t,n,r,i=l(f);function f(){return a(this,f),i.apply(this,arguments)}return t=f,(n=[{key:"listenTo",value:function(){return o.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],u(p(f.prototype),"listenTo",this))}}])&&c(t.prototype,n),r&&c(t,r),f}(r.Collection)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={type:n(102).a.Unknown,message:"",code:0}},function(e,t,n){"use strict";var r,o,i,a,c,u,s,l,f,p,h,d,y,v,g,m,b,w,S,C,O;n.d(t,"n",(function(){return r})),n.d(t,"d",(function(){return o})),n.d(t,"j",(function(){return i})),n.d(t,"o",(function(){return a})),n.d(t,"k",(function(){return u})),n.d(t,"g",(function(){return l})),n.d(t,"c",(function(){return f})),n.d(t,"b",(function(){return h})),n.d(t,"i",(function(){return v})),n.d(t,"a",(function(){return m})),n.d(t,"m",(function(){return b})),n.d(t,"e",(function(){return w})),n.d(t,"h",(function(){return S})),n.d(t,"l",(function(){return C})),n.d(t,"f",(function(){return O})),function(e){e.Stream="cv_product_stream",e.StreamRaw="cv_product_stream_raw",e.WebPlayerStream="cv_product_webplayer_stream",e.StreamProgress="cv_product_stream_progress",e.Login="cv_product_login",e.LoginSsoRedirect="cv_product_login_sso_redirect",e.LoginFailed="cv_product_login_failed",e.Search="cv_product_search",e.InstantSearch="cv_product_search",e.SearchEmptyResult="cv_product_search_empty_result",e.Filter="cv_product_search_filter",e.SearchLanding="cv_product_search_landing",e.Share="cv_product_share",e.WorkspaceAdd="cv_product_tv_add",e.Rename="cv_product_rename",e.Move="cv_product_move",e.Sort="cv_product_sort",e.Create="cv_product_create",e.Delete="cv_product_delete",e.Associate="cv_product_associate",e.Dissociate="cv_product_dissociate",e.Edit="cv_product_edit",e.Approve="cv_product_approve",e.Reject="cv_product_reject",e.Disable="cv_product_disable",e.Upload="cv_product_upload",e.Download="cv_product_download",e.Navigate="cv_product_navigate",e.Click="cv_product_click",e.Suggest="cv_product_suggest",e.EditAssoc="cv_product_edit_assoc",e.Play="cv_product_play",e.Favourite="cv_product_favourite",e.Follow="cv_product_follow",e.Prefer="cv_product_prefer",e.SetAccess="cv_product_set_access",e.AddToLocalCache="cv_product_add_to_lc",e.ResolveWarning="cv_product_resolve_warning",e.DismissWarning="cv_product_dismiss_warning"}(r||(r={})),function(e){e.Folder="folder",e.Video="video",e.Rating="rating",e.Series="series",e.Library="library",e.Resource="resource",e.Tag="tag",e.Subtitle="subtitle",e.Chapter="chapter",e.Restriction="restriction",e.Interactive="interactive",e.PDF="pdf",e.CustomerSetting="customer_setting",e.UserSetting="user_setting",e.StaffRequest="staff_request",e.Logo="logo",e.Pagination="pagination",e.Thumbnail="thumbnail",e.Banner="banner",e.Link="link",e.Playlist="playlist",e.Person="person",e.Company="company",e.Classroom="classroom",e.ClassroomGroup="classroom_group",e.Classification="classification",e.ShareLink="share_link",e.Upload="upload",e.SearchResults="search_results",e.Audience="audience",e.User="user",e.Clip="clip",e.UserChannel="user_channel",e.Widget="widget",e.Url="url"}(o||(o={})),function(e){e.TopNav="top_nav",e.LeftNav="left_nav",e.Popup="popup",e.Banner="banner",e.VideoList="video_list",e.VideoListItem="video_list_item",e.VideoListHeader="video_header",e.VideoThumbnail="video_thumbnail",e.VideoItemPreview="video_item_preview",e.VideoDetails="video_details",e.VideoDetailsHeader="video_details_header",e.EditVideoDetails="edit_video_details",e.EditVideoChapters="edit_video_chapters",e.EditVideoResources="edit_video_resources",e.VideoUpload="video_upload",e.VideoRequest="video_request",e.Pagination="pagination",e.SearchBar="search_bar",e.InstantSearch="instant_search",e.SearchFilters="search_filters",e.LibraryHeader="library_header",e.LibraryTiles="library_tiles",e.StaffRequestDetails="staff_request_details",e.SubFolderList="sub_folder_list",e.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",e.AwaitingReviewVideoItem="awaiting_review_video_item",e.PastReleasesHeader="past_releases_header",e.MigrationWarnings="migration_warnings",e.PlaylistListHeader="playlist_list_header",e.PlaylistListItem="playlist_list_item",e.TeacherManager="teacher_manager",e.TeacherManagerListItem="teacher_manager_list_item",e.StudentManager="student_manager",e.StudentManagerListItem="student_manager_list_item",e.ClassroomsList="classrooms_list",e.ClassroomsListItem="classrooms_list_item",e.ClassroomOverview="classroom_overview",e.ClassroomOverviewStudentListItem="classroom_overview_student_list_item",e.ManageClassroomStudents="manage_classroom_students",e.ManageClassroomStudentListItem="manage_classroom_student_list_item",e.ManageClassroomGroups="manage_classroom_groups",e.ManageClassroomGroupListItem="manage_classroom_group_list_item",e.PlayPage="play_page",e.FloatingPlayer="floating_player",e.InteractivePlayer="interactive_player",e.EmbeddedPlayer="embedded_player",e.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads",e.SlidingList="sliding_list",e.HeroBannerItem="hero_banner_item",e.SlidingListItem="sliding_list_item",e.ClassificationListItem="classification_list_item",e.ClassificationComingSoon="classification_coming_soon",e.Dashboard="dashboard"}(i||(i={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(a||(a={})),function(e){e.PageLoad="page_load"}(c||(c={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(u||(u={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(s||(s={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(l||(l={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(f||(f={})),function(e){e.Start="start",e.Finish="finish",e.Terminate="terminate",e.Play="play",e.Pause="pause",e.Playback="playback",e.NextChapter="next_chapter",e.PreviousChapter="previous_chapter",e.FullScreenEnter="full_screen_enter",e.FullScreenExit="full_screen_exit"}(p||(p={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Title="title",e.ToggleHideValidListings="toggle_hide_valid_listings",e.LaunchImmersiveReader="launch_immersive_reader",e.CopyEmbedHtml="copy_embed_html",e.Close="close",e.Open="open",e.Button="button",e.Link="link",e.Tile="tile",e.Thumbnail="thumbnail",e.Cover="cover",e.TallPoster="tall_poster",e.Slide="slide"}(h||(h={})),function(e){e.FeatureUserChannelVideo="feature_user_channel_video",e.RemoveFromUserChannelPlaylist="remove_from_user_channel_playlist",e.ShareClip="share_clip",e.ViewOriginalVideo="view_original_video",e.ShareInteractive="share_interactive",e.DeleteInteractiveVideo="delete_interactive_video",e.CopyInteractiveVideo="copy_interactive_video",e.EditInteractiveVideo="edit_interactive_video",e.PrintAsWorksheet="print_as_worksheet",e.PreviewInteractiveVideo="preview_interactive_video",e.ViewResults="view_results",e.MoveToAnotherFolder="move_to_another_folder",e.CreateInteractiveVideo="create_interactive_video",e.ShareVideo="share_video",e.EditVideo="edit_video",e.DownloadVideo="download_video",e.AddToExchange="add_to_exchange",e.AddToUserChannel="add_to_user_channel",e.CreateClip="create_clip",e.FlagVideo="flag_video",e.AddToLibrary="add_to_library",e.AddToWorkspace="add_to_workspace",e.AddToPlaylist="add_to_playlist",e.RemoveFromPlaylist="remove_from_playlist",e.AddCurriculumLink="add_curriculum_link",e.ViewCurriculumLinks="view_curriculum_links",e.OpenInCurator="open_in_curator",e.ManageVideoAccess="manage_video_access",e.Approve="approve",e.AddToLocalCache="add_to_local_cache",e.OpenInLibraryEditor="open_in_library_editor",e.PlayClip="play_clip",e.EditClip="edit_clip",e.DeleteClip="delete_clip"}(d||(d={})),function(e){e.LibraryReview="library_review"}(y||(y={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(v||(v={})),function(e){e.Edit="edit"}(g||(g={})),function(e){e.Image="image",e.User="user",e.Playlist="playlist"}(m||(m={})),function(e){e.On="on",e.Off="off"}(b||(b={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(w||(w={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(S||(S={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags"}(C||(C={})),function(e){e[e.V1=1]="V1"}(O||(O={}))},function(e,t,n){"use strict";var r=n(0),o=n(2),i=" - ClickView",a=function(e){e&&o.a.LocationUtils.SetPageTitle(function(e){return e.length+i.length<=60?e+i:e.substring(0,57)+"..."+i}(e))};function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return u(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return u(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function u(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,"a",(function(){return s})),n.d(t,"b",(function(){return l}));var s=r.createContext({}),l=function(e){var t=e.children,n=e.defaultTitle,o=void 0===n?"":n,i=c(r.useState(o),2),u=i[0],l=i[1],f=c(r.useState(o),2),p=f[0],h=f[1];return r.useEffect((function(){return a(u)}),[u]),r.createElement(s.Provider,{value:{setPageTitle:function(e){e!==u&&(u!==p&&h(u),l(e))},revertPageTitle:function(){l(p)}}},t)}},function(e,t){e.exports=s},function(e,t,n){"use strict";var r=n(9),o=n(101),i=n(191),a=n(2),c=n(19);function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=n(3).f.V1,l=function(){function e(t,n,r,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.data=n,this.actionContext=r,this.eventVersion=o||s}var t,n,r;return t=e,(n=[{key:"isType",value:function(e){return e===this.type}},{key:"enrich",value:function(e,t){this.validateKey(e),this[e]=t}},{key:"get",value:function(e){if(e&&this[e])return this[e]}},{key:"validateKey",value:function(e){"type"!==e&&"data"!==e||a.a.ErrorHelper.throw(new c.a("".concat(e," is not a valid key"))),this[e]&&a.a.ErrorHelper.throw(new c.a("Event already contains an enrichment named ".concat(e)))}}])&&u(t.prototype,n),r&&u(t,r),e}();n.d(t,"a",(function(){return f}));var f={log:function(e,t,n,a){r.Radio.channel(i.a.ANALYTICS).trigger(o.a.Inlet,new l(e,t,n,a))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(57);function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={first:function(e){return r.first(e)},firstFew:function(e,t){return r.first(e,t)},last:function(e){return r.last(e)},lastFew:function(e,t){return r.last(e,t)},max:function(e,t){return r.max(e,t)},cloneAndReplaceAtIdx:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=e&&e.length?e.slice():[];return t+1>o.length&&(o=[].concat(i(o),i(Array(t+1-o.length).fill(r)))),o.splice(t,1,n),o},moveItem:function(e,t,n){var r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty:function(e){return e&&!e.length},findIndex:function(e,t){return r.findIndex(e,t)},findWhere:function(e,t){return r.findWhere(e,t)},where:function(e,t){return r.where(e,t)},groupBy:function(e,t){return r.groupBy(e,t)},flatten:function(e,t){return r.flatten(e,t)},intersection:function(){return r.intersection.apply(r,arguments)},addOrRemove:function(e,t){var n=e.indexOf(t);return-1===n?e.push(t):e.splice(n,1),e},addOrRemoveImmutable:function(e,t){var n=e.indexOf(t),r=o.a.deepClone(e);return-1===n?[].concat(i(r),[t]):[].concat(i(r.slice(0,n)),i(r.slice(n+1)))},sortBy:function(e,t){return r.sortBy(e,t)},chunk:function(e,t){return r.chunk(e,t)},uniq:function(e){return r.uniq(e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return u}));var r=n(7),o=n(13);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var a,c="shared.videoActionsHelper";!function(e){e[e.AddToPlaylist=0]="AddToPlaylist",e[e.RemoveFromPlaylist=1]="RemoveFromPlaylist",e[e.Share=2]="Share",e[e.Edit=3]="Edit"}(a||(a={}));var u=function(){var e;return i(e={},a.AddToPlaylist,{label:r.a.getPhrase(c,"addToPlaylist"),svgName:o.b.AddToPlaylists}),i(e,a.RemoveFromPlaylist,{label:r.a.getPhrase(c,"removeFromPlaylist"),svgName:o.b.Delete}),i(e,a.Share,{label:r.a.getPhrase(c,"share"),svgName:o.b.Share2}),i(e,a.Edit,{label:r.a.getPhrase(c,"edit"),svgName:o.b.Edit}),e}},,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"b",(function(){return P})),n.d(t,"a",(function(){return R}));var r=n(1),o=n(9),i=n(38),a=n(42),c=n(19),u=n(16),s=n(82),l=n(11),f=n(43);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function h(e){return function(e){if(Array.isArray(e))return d(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t,n){return t&&v(e.prototype,t),n&&v(e,n),e}function m(e,t,n){return(m="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=k(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?O(e):t}function O(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){b(n,e);var t=S(n);function n(e){var o;y(this,n),o=t.call(this,e);var i=[].concat(h(o.defaultProps),h(o.props||[]));return o.mergeOptions(e,i),r.result(O(o),"name")||l.c.throw(new l.b("Error: View with cid:".concat(o.cid," requires a name."))),o}return g(n,[{key:"_setOptions",value:function(e){this.options=r.extend({},r.result(this,"defaults"),e)}},{key:"_setAttributes",value:function(e){var t,n,o;s.a.isDevelopment&&r.extend(e,(t={},n="cv-classname",o=this.name,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t)),this.$el.attr(e)}},{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"resetClassName",value:function(){this.$el.attr("class",r.result(this,"className"))}},{key:"serializeData",value:function(){var e=this,t=m(k(n.prototype),"serializeData",this).call(this),o=r.result(this,"viewOptions"),i=r.extend({},t,{options:o});return n.ViewDataExtensions.length?r.extend.apply(r,[i].concat(h(r.map(n.ViewDataExtensions,(function(t){return t instanceof Function?t(e):t}))))):i}},{key:"viewOptions",value:function(){return this.options}},{key:"undelegateAppLinks",value:function(){this.$el&&this.$el.off(".appLinks".concat(this.cid))}},{key:"renderAppLinks",value:function(){var e=this,t=this.appLinks;t&&(t=this.normalizeUIKeys(t),this.undelegateAppLinks(),r.each(r.keys(t),(function(n){var r=n,o=t[n],i=f.a.getHref(o);"[this]"===r&&(r=null);var a=r?e.$el.find(n):e.$el;(a.is("a")||a.is("button"))&&(i&&"/"!==i&&a.attr("href",i),e.delegate("click.appLinks".concat(e.cid),r,(function(e){e.preventDefault(),f.a.trigger(o)})))})))}},{key:"hasPartialLoadingRegions",value:function(){return void 0!==this._hasPartialLoadingRegions||(this._hasPartialLoadingRegions=r.some(this.regions,(function(e){return r.has(e,"partialLoading")}))),this._hasPartialLoadingRegions}},{key:"renderPartialLoading",value:function(e){o.Radio.channel(u.a.SHELL).trigger("render:partial:loading",this,e)}},{key:"listenTo",value:function(){return a.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],m(k(n.prototype),"listenTo",this))}},{key:"render",value:function(){if(this._isDestroyed)return this;var e=this.processRequriedResources(!0);return e&&(e=this.triggerMethod("before:render",this)),!1!==e&&(e=!0),!1===(e=e&&this.processRequriedResources(!1))?(this._partialLoadingRendered||!this.hasPartialLoadingRegions()||(this._partialLoadingRendered=!0,this._reInitRegions(),this._renderTemplate(),this.renderPartialLoading()),this):((this._isRendered||this._partialLoadingRendered)&&this._reInitRegions(),this.setTitle(),this._renderTemplate(),this.bindUIElements(),this.renderAppLinks(),this._partialLoadingRendered=!1,this._isRendered=!0,this.triggerMethod("render",this),this)}},{key:"processRequriedResources",value:function(e){return!0}},{key:"setTitle",value:function(){}},{key:"defaultProps",get:function(){return["shell","layoutService"]}},{key:"ui",get:function(){return this.uiStorage||(this.uiStorage=this.elements),this.uiStorage},set:function(e){this.uiStorage=e}},{key:"elements",get:function(){return null}}],[{key:"AddViewDataExtension",value:function(e){n.ViewDataExtensions.push(e)}}]),n}(i.View);E.ViewDataExtensions=[];var P=function(e){b(n,e);var t=S(n);function n(e){var r;return y(this,n),(r=t.call(this,e)).boundListeners={},r.resourceInstances={},r}return g(n,[{key:"processRequriedResources",value:function(e){var t=this,n=r.keys(this.requiredResources);if(!n.length)return!0;var o=this,i=!0;return r.each(n,(function(n){var r=t.requiredResources[n];if(r.beforeOnBeforeRender===e){var a=r.dataServiceName;t.resourceInstances[a]||(t.resourceInstances[a]=r.getInstance(t)),t.boundListeners["".concat(a,":").concat(r.eventName)]||(t.listenTo(t.resourceInstances[a].channelName,r.eventName,t.render),t.boundListeners["".concat(a,":").concat(r.eventName)]=!0),o[n]=r.getData(t.resourceInstances[a]),i=i&&!!o[n]}})),i}},{key:"setTitle",value:function(){r.isString(this.title)||!1===this.title||l.c.throw(new c.a("Must define a title for ".concat(this.name,"."))),o.Radio.channel(u.a.SHELL).trigger("set:page:title",this.title)}}]),n}(E),R=function(e){b(n,e);var t=S(n);function n(){return y(this,n),t.apply(this,arguments)}return n}(E)},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(1),o=n(72),i=n(121);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t,n){return(s="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=h(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(y,e);var t,n,p,d=f(y);function y(){return c(this,y),d.apply(this,arguments)}return t=y,(n=[{key:"set",value:function(e,t,n){var o,i;if(null===e)return this;for(o in"object"===a(e)?(i=e,n=t):(i={})[e]=t,n||(n={}),i)r.has(this.associations,o)&&(i[o]=this.setAssociation(o,i[o],n));return s(h(y.prototype),"set",this).call(this,i,n)}},{key:"get",value:function(e){var t=e.indexOf(".");if(-1===t)return s(h(y.prototype),"get",this).call(this,e);var n=e.substr(0,t),o=this.attributes[n];if(!o||!r.isFunction(o.get))return s(h(y.prototype),"get",this).call(this,e);var i=e.substr(t+1);return o.get(i)}},{key:"setAssociation",value:function(e,t,n){var a=this.associations[e],c=this.attributes[e];if(!r.isFunction(a))return t;if(n.unset)return c&&delete c.parent,delete this[e],c;if(c)return c instanceof o.a&&c.set(t,n),c instanceof i.a&&c.set(t,n),n.silent||this.trigger("change:".concat(e),this,t,n),c;var u=t instanceof o.a?t:new a(t,{parse:!0});return u.parent=this,this[e]=u,u}},{key:"toJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=s(h(y.prototype),"toJSON",this).apply(this,t);return r.each(this.associations,(function(e,t){r.has(o,t)&&r.isFunction(o[t].toJSON)?o[t]=o[t].toJSON():o[t]=(new e).toJSON()})),o}},{key:"toFlatJSON",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return r.omit(s(h(y.prototype),"toJSON",this).apply(this,t),r.keys(this.associations))}}])&&u(t.prototype,n),p&&u(t,p),y}(o.a)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={Success:"Success! 🙌",Warning:"Whoops...",Fail:"Oops...",Info:"FYI"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={currentTimestamp:function(){return(new Date).valueOf()},isExpired:function(e,t){if(!t)return!1;var n=1e3*t;return e<r.currentTimestamp()-n},currentTimeOfDay:function(e){e||(e=new Date);var t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"}}},function(e,t,n){"use strict";var r=n(0),o=n(35);function i(e){return function(e){if(Array.isArray(e))return a(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c=n(237);function u(e){var t=e.view,n=e.options,a=void 0===n?{}:n,u=e.className,s=void 0===u?"":u,l=r.useMemo((function(){return new t(a)}),[a]);Object(c.a)(l.title);var f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=r.useRef(null);return r.useEffect((function(){if(e){var t=n.current;return e.render(),t.hasChildNodes()?t.replaceChild(e.el,t.firstChild):t.appendChild(e.el),e.trigger("rendered"),function(){o.a.isFunction(e.close)?e.close():o.a.isFunction(e.destroy)&&e.destroy()}}}),i(t)),n}(l,[l]);return t?r.createElement("div",{ref:f,className:s}):r.createElement(r.Fragment,null)}n.d(t,"a",(function(){return u}))},function(e,t,n){e.exports={thumbnailContainer:"_1u9bn",thumbnail:"_1CQyt",svgContainer:"_2L1Hd",playSvgContainer:"_17LPb",durationOverlay:"_15X7K"}},function(e,t,n){e.exports={svg:"_3OUhC",iconButton:"_3t3VL",iconWithText:"_2KLHo",iconOnly:"_2rQWb"}},function(e,t,n){e.exports={fixed:"_3C4_W",inline:"_2voRI",closeSvg:"_2RiDj",buttons:"ZbN3s",flippedIcon:"_3nkTw"}},function(e,t,n){e.exports={dropMask:"_3bFev",dropContent:"_2_7SU",dropArea:"_3oOzB",border:"_1IoKS"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(353);function o(e){return Object(r.a)(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(21),o={currentUser:function(e,t){return{url:"/api/currentUser",key:"currentuser",success:e,error:t}},workspace:{url:"api/domain/v2/me/workspace",key:"workspace"},sendVerificationEmail:function(e,t,n,o){return{url:"api/account/email",key:"verify:email",type:r.a.POST,data:{emailAddress:e},success:t,error:n,always:o,invalidationKeys:["verify:email:status"]}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r,o,i=n(79),a=n(57),c=n(2),u=n(115);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Banner="banner",e.Thumbnail="thumbnail"}(o||(o={}));var l=(s(r={},u.b.Banners,o.Banner),s(r,u.b.Thumbnails,o.Thumbnail),r),f=function(e){return"/v1/category-map/".concat(e)},p={createUrl:function(e,t){return p._createUrl(e,t)},createBannerUrl:function(e,t,n){return e&&e.url?p._createUrl(e.url,n):p._createCategoryMappedUrl(t,n)},Rfc3986EncodeURIComponent:function(e){return encodeURIComponent(e).replace(/[!'()*]/g,escape)},_createCategoryMappedUrl:function(e,t){var n=e.fallbackBaseUrl,r=e.fallbackCategoryName,o=e.type,a=i.a.safeUrlConcat(n,"".concat(f(l[o]))),c=Object.assign({name:p.Rfc3986EncodeURIComponent(r)},t);return p._createUrl(a,c)},_createUrl:function(e,t){if(e){if(a.a.isEmpty(t))return e;var n=$.param(t),r=-1===e.indexOf("?")?"?":"&",o=e;return o.endsWith("/")&&(o=o.slice(0,-1)),o+"".concat(r).concat(n)}},legacyCreateThumbnailUrl:function(e,t){if(!e)return"";var n;if(e&&(n=e instanceof c.a.Model?e.get("url"):"string"==typeof e?e:e.url)){var r=Object.assign({size:u.a.Small,bgColor:"000"},t);return p._createUrl(n,r)}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),o=n(33),i=n(240);function a(e){var t=e.title,n=e.placement,a=e.trigger,c=e.children;return r.createElement(o.OverlayTrigger,{placement:n,overlay:r.createElement(o.Tooltip,{id:"".concat(t,"-").concat(i.a.getRandomInt())},t),trigger:a},r.createElement("span",null,c))}a.defaultProps={trigger:["hover","click","focus"],placement:"top"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={config:{url:"/api/config",key:"config"}}},function(e,t,n){"use strict";var r;!function(e){e[e.Row=0]="Row",e[e.LargeRow=1]="LargeRow",e[e.Hero=2]="Hero",e[e.ResourcesTile=3]="ResourcesTile"}(r||(r={}));var o=n(32);function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return o.a.SEARCH}}])&&i(t.prototype,n),r&&i(t,r),e}();function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return o.a.NOTIFICATIONS}}])&&c(t.prototype,n),r&&c(t,r),e}();n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return a})),n.d(t,"a",(function(){return u}))},function(e,t,n){"use strict";var r,o;n.d(t,"a",(function(){return r})),function(e){e[e.Unspecified=0]="Unspecified",e[e.Student=1]="Student",e[e.Staff=2]="Staff",e[e.Admin=3]="Admin",e[e.CVAdmin=4]="CVAdmin",e[e.FreeUser=6]="FreeUser",e[e.ReadOnly=8]="ReadOnly"}(r||(r={})),function(e){e[e.Guest=16]="Guest",e[e.User=32]="User",e[e.Admin=48]="Admin",e[e.SuperAdmin=64]="SuperAdmin"}(o||(o={}))},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Ok=200]="Ok",e[e.NoContent=204]="NoContent",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.Conflict=409]="Conflict",e[e.InternalServer=500]="InternalServer"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(46);var r=Object.assign(Object.assign({},{VIDEO:"series,season,rating,producers,glance,distributors,resources,tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,owner[customers[organisation]]],clips[owner[customers[organisation]]]",PLAYLIST:"cover,banner,owner,videos[thumbnail,count()]{orderby:orderindex,limit:1}"}),{VIDEO_COLLECTION:"thumbnail,tags,rating,series,season",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover,subjectpresentationaudiences"})},function(e,t,n){"use strict";t.__esModule=!0,t.inherits=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(e.prototype);for(var o in n)r[o]=n[o];return r.constructor=t,t.prototype=r,t}},function(e,t){e.exports=l},,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(1),o=n(9),i=n(38),a=n(29),c=n(42),u=n(11);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t,n){return(h="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=m(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?g(e):t}function g(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(f,e);var t,n,i,s=y(f);function f(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),(t=s.call(this,e)).mergeOptions(e,[].concat(l(t.defaultProps),l(t.props||[]))),r.result(g(t),"name")||u.c.throw(new u.b("BaseApplication must define a name")),r.result(g(t),"channelName")||u.c.throw(new u.b("BaseApplication must define a channelName")),t.listenTo(t.getGlobalRadioChannel("popup"),a.a.SHOW_POPUP,t.onShowPopup),t.listenTo(t.getGlobalRadioChannel("alert"),"show:alert",t.onShowAlert),t}return t=f,(n=[{key:"getGlobalRadioChannel",value:function(e){var t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||u.c.throw(new u.b("Global channel ".concat(t," does not exist"))),o.Radio.channel(t)}},{key:"onLoadLayout",value:function(){if(this.layoutOptions&&this.layoutOptions.name){var e=r.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(r.extend(this.layoutOptions,{options:e})),this.layout||u.c.throw(new u.b("Layout: ".concat(this.layoutOptions.name," does not exist or was not registered"))),this.shell.showView(this.layout),this.triggerMethod("layout:loaded")}}},{key:"onShowPopup",value:function(e){this.layout.getRegion("popup")||u.c.throw(new u.b("Your application layout must define a popup region")),this.layout.showChildView("popup",e)}},{key:"onShowAlert",value:function(e){var t=e.ctor,n=e.collection,r=this.layout.getRegion("alert");r?r.hasView()||this.layout.showChildView("alert",new t({collection:n})):u.c.throw(new u.b("Your application layout must define an alert region"))}},{key:"setDefaultQueryParams",value:function(e){this.defaultQueryParams&&(e=r.extend(this.defaultQueryParams,e)),this.defaultQueryParams=e}},{key:"getAndClearDefaultQueryParams",value:function(){var e=this.defaultQueryParams;return delete this.defaultQueryParams,e||{}}},{key:"listenTo",value:function(){return c.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],h(m(f.prototype),"listenTo",this))}},{key:"defaultProps",get:function(){return["shell","layoutService"]}}])&&p(t.prototype,n),i&&p(t,i),f}(i.Application)},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(144),o=n(19),i=n(11);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,r,a=s(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,r=[{key:"getCacheKey",value:function(e){i.c.throw(new o.a("Must define getCacheKey for ".concat(this.name,".")))}}],(n=[{key:"unmountRegion",value:function(e){this.trigger("unmount:".concat(e))}}])&&c(t.prototype,n),r&&c(t,r),l}(r.b)},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Staff="staff",e.Learner="learner",e.Unknown="unknown"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={API_REQUEST:"API_REQUEST",API_REPONSE:"API_RESPONSE",API_ERROR:"API_ERROR",INVALIDATE:"INVALIDATE",UPDATE:"UPDATE"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Component=1]="Component",e[e.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},function(e,t,n){"use strict";n.r(t);var r,o=n(183);!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(r||(r={}));var i=n(21);function a(e){return{getResponseHeader:e.getResponseHeader,responseJSON:e.responseJSON,status:e.status}}var c=[i.a.POST,i.a.PUT];function u(e){var t=e.resource,n=e.type,r=e.success,o=e.error,i=e.always,u={url:t,method:n};c.includes(n)&&e.data&&(u.data=JSON.stringify(e.data)),$.ajax(u).done((function(e,t,n){r&&r(e,a(n))})).fail((function(e,t,n){o&&o(a(e))})).always((function(){i&&i()}))}var s=n(19),l=n(187);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.idAttribute,r=void 0===n?"id":n,o=t.namespace,i=void 0===o?"":o;return e[r]||l.ErrorHelper.throw(new s.a("There was an issue during normalization. Object did not have an id attribute.")),"".concat(i,"__").concat(e[r])}function h(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=[];return e.forEach((function(e){e[o]&&i.push(p(e,n)),y(e,t,n)})),i}function d(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.idAttribute,o=void 0===r?"id":r,i=Object.assign({},e);if(Object.keys(e).forEach((function(r){var a=e[r];if(a)if(Array.isArray(a)){var c=h(a,t,n);c.length&&(i[r]=c)}else if("object"===f(a)){var u=d(a,t,n);a[o]?i[r]=p(a,n):i[r]=u}})),e[o]){var a=p(e,n);return t[a]=i,a}return i}function y(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e)return Array.isArray(e)?h(e,t,n):"object"===f(e)?d(e,t,n):e}function v(e,t){var n={};return{result:y(e,n,t),entities:n}}var g=n(57);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};var r=b(t[e],t,n);return Object.assign(n[e],r),g.a.isEmpty(n[e])&&delete n[e],n[e]}(e,t,n);if(Array.isArray(e))return e.map((function(e){return b(e,t,n)}));if("object"===m(e)){var r={};return Object.keys(e).forEach((function(o){r[o]=b(e[o],t,n)||e[o]})),r}}}function w(e,t){return b(e,t,{})}var S=n(61);function C(e,t){return e===t}function O(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,o=0;o<r;o++)if(!e(t[o],n[o]))return!1;return!0}function k(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C,n=null,r=null;return function(){return O(t,n,arguments)||(r=e.apply(null,arguments)),n=arguments,r}}function E(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every((function(e){return"function"==typeof e}))){var n=t.map((function(e){return typeof e})).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+n+"]")}return t}function P(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return function(){for(var t=arguments.length,r=Array(t),o=0;o<t;o++)r[o]=arguments[o];var i=0,a=r.pop(),c=E(r),u=e.apply(void 0,[function(){return i++,a.apply(null,arguments)}].concat(n)),s=e((function(){for(var e=[],t=c.length,n=0;n<t;n++)e.push(c[n].apply(null,arguments));return u.apply(null,e)}));return s.resultFunc=a,s.dependencies=c,s.recomputations=function(){return i},s.resetRecomputations=function(){return i=0},s}}var R=P(k);var _=n(147),T=n(0);function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var A=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.status=t.status,this.requestTime=t.requestTime,this.cacheDuration=t.cacheDuration,this.data=t.data,this.statusCode=t.statusCode}var t,n,o;return t=e,(n=[{key:"shouldFetch",get:function(){return this.status===r.None||this.isExpired}},{key:"isExpired",get:function(){return _.a.isExpired(this.requestTime,this.cacheDuration)}},{key:"isFetching",get:function(){return this.status===r.Fetching}},{key:"hasError",get:function(){return this.status===r.Error}},{key:"isComplete",get:function(){return this.status===r.Success||this.status===r.Error}}])&&x(t.prototype,n),o&&x(t,o),e}();function L(e,t,n){if(!e||!t)return j();var r=t.response;return!1!==t.request.normalize&&(r=w(t.response,n)),new A({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function j(){return new A({status:r.None})}function N(e,t){return L(t,e.flightData.resources[t],e.flightData.entities)}function I(e,t){return function(){D(e,t)}}function D(e,t){e({type:o.a.API_REQUEST,request:t})}function U(e,t,n){var r,o,i,a,c,u,s,l,f,p=N(t,null===(r=n)||void 0===r?void 0:r.key);n&&p.shouldFetch?D(e,n):p.hasError?(null===(i=(o=n).error)||void 0===i||i.call(o,null),null===(c=(a=n).always)||void 0===c||c.call(a)):(null===(s=(u=n).success)||void 0===s||s.call(u,p.data),null===(f=(l=n).always)||void 0===f||f.call(l))}function M(e){return I(Object(S.useDispatch)(),e)}function F(e,t){var n=Object(T.useMemo)((function(){var n;return(null===(n=t)||void 0===n?void 0:n.optimize)?function(e){return P(k,(function(e,t){var n=["response","request"];return g.a.isEqual(g.a.omit(e,n),g.a.omit(t,n))}))((function(t){return t.flightData.resources[e]}),(function(t){var n,r=t.flightData.resources[e];return(null===(n=r)||void 0===n?void 0:n.entityIds)?r.entityIds.reduce((function(e,n){return e[n]=t.flightData.entities[n],e}),{}):{}}),(function(t,n){return L(e,t,n)}))}(e):function(e){return R((function(t){return t.flightData.resources[e]}),(function(e){return e.flightData.entities}),(function(t,n){return L(e,t,n)}))}(e)}),[e]);return Object(S.useSelector)((function(e){return n(e)}))}function V(e,t){var n=Object(S.useDispatch)(),r=F(e&&e.key,t),o=I(n,e);return e&&r.shouldFetch&&o(),r}function H(e){return function(e){if(Array.isArray(e))return z(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return z(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return z(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function z(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var B=function(e,t,n){var r=Array.isArray(t)?t:[t],o=[];return r.forEach((function(t){var n,r=new RegExp(t,"i"),i=Object.keys(e.resources).filter((function(e){return r.test(e)}));(n=o).push.apply(n,H(i))})),n&&(o=o.filter((function(e){return e!==n}))),o.reduce((function(e,t){return e[t]=!0,e}),{})},q=n(160);var W=function(e){var t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},J=function(e,t){var n=e.success,r=e.error,o=e.always,i=t;window.setTimeout((function(){i.noResponse||(i.successResponse?n(i.successResponse(),{status:q.a.Ok,getResponseHeader:function(e){return""}}):i.errorResponse&&r(i.errorResponse()),o())}),function(e){var t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))},G=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function Y(e){var t=e.fetchData,n=e.bootstrappedData,a=e.defaultExpiryTime,c=Object.freeze({key:null,url:null,type:i.a.GET,normalize:!0,formatData:function(e){return e},expiryTime:a});return function(e){return function(i){return function(a){if(a.type===o.a.API_REQUEST){var u=e.getState(),s=Object.assign({},c,a.request),l=s.success,f=s.error,p=s.always,h=s.formatData,d=G(s,["success","error","always","formatData"]),y=u.flightData.resources[d.key];if(i(a),!y||y.status!==r.Fetching){if(d.bootstrapName&&n[a.request.bootstrapName])return m(n[a.request.bootstrapName]),b(),void delete n[a.request.bootstrapName];var g={resource:d.url,type:d.type,data:d.data,success:m,error:function(t){e.dispatch({type:o.a.API_ERROR,errorResponse:t.responseJSON,request:a.request,timestamp:_.a.currentTimestamp(),xhr:t}),d.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:d.invalidationKeys,request:d});f&&f(t)},always:b};return void(W(d)?J(g,d):t(g))}}else i(a);function m(t,n){var r=h(t),i={result:r,entities:{}};(d.normalize&&(i=v(r,d.normalizeOptions)),e.dispatch({type:o.a.API_REPONSE,result:i.result,entities:i.entities,request:d,timestamp:_.a.currentTimestamp(),xhr:n}),d.updateState)&&(Array.isArray(d.updateState)?d.updateState:[d.updateState]).forEach((function(t){var n,r,i,a;n=t,r=B(u.flightData,n.keys),i=Object.assign({},Object.keys(u.flightData.resources).filter((function(e){return r[e]})).reduce((function(e,t){var n=u.flightData.resources[t],r=n.response;return n.request.normalize&&(r=w(n.response,u.flightData.entities)),e[t]=r,e}),{})),a=n.updateData(i),Object.keys(a).forEach((function(t){var n=u.flightData.resources[t],r=a[t],i={result:r,entities:{}};n.request.normalize&&(i=v(r,n.request.normalizeOptions)),e.dispatch({type:o.a.UPDATE,result:i.result,entities:i.entities,request:n.request})}))}));if(d.invalidationKeys&&e.dispatch({type:o.a.INVALIDATE,keys:d.invalidationKeys,request:d}),l){var a=i.result;d.normalize&&(a=w(i.result,Object.assign(Object.assign({},u.flightData.entities),i.entities))),l(a)}}function b(){p&&p()}}}}}function K(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Q(e,t){var n=Object.assign({},e);return Object.keys(t).forEach((function(r){e[r]?n[r]=Object.assign(Object.assign({},e[r]),t[r]):n[r]=t[r]})),n}function Z(e,t){var n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),K({},t.request.key,{request:t.request,status:r.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}))}}function X(e,t){var n,o=t.entities?Object.keys(t.entities):[];return{entities:Q(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),K({},t.request.key,{request:t.request,status:r.Success,response:t.result,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status,entityIds:o}))}}function ee(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),K({},t.request.key,{request:t.request,status:r.Error,errorResponse:t.errorResponse,timestamp:t.timestamp,statusCode:null===(n=t.xhr)||void 0===n?void 0:n.status}))}}function te(e,t){var n,o=B(e,t.keys,null===(n=t.request)||void 0===n?void 0:n.key);return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),Object.keys(e.resources).filter((function(e){return o[e]})).reduce((function(t,n){var o=e.resources[n];return t[n]=Object.assign({},o,{status:r.None}),t}),{}))}}function ne(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,t=arguments.length>1?arguments[1]:void 0,n=t.entities?Object.keys(t.entities):[];return{entities:Q(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),K({},t.request.key,Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})))}}var re={resources:{},entities:{}};function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:re,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.a.API_REQUEST:return Z(e,t);case o.a.API_REPONSE:return X(e,t);case o.a.API_ERROR:return ee(e,t);case o.a.INVALIDATE:return te(e,t);case o.a.UPDATE:return ne(e,t)}return e}var ie=n(127);var ae="id";function ce(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function ue(e){var t=localStorage.getItem(e);return t?JSON.parse(t):null}var se={getAll:function(e,t){var n=ue(e);return n&&n.length?n:!n&&t?(t.forEach((function(t){return se.create(e,t)})),ue(e)):[]},get:function(e,t){var n=se.getAll(e);return n.length?n.find((function(e){return e[ae]===t})):null},create:function(e,t){var n,r,o,i=se.getAll(e),a=Object.assign(Object.assign({},t),(n={},r=ae,o=t[ae]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString(),r in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));return i.push(a),ce(e,i),a},update:function(e,t){var n=se.getAll(e);if(!n.length)return t;var r=n.findIndex((function(e){return e[ae]===t[ae]}));return n[r]=t,ce(e,n),t},delete:function(e,t){var n=se.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach((function(e){var t=n.findIndex((function(t){return t[ae]===e}));n.splice(t,1)})),ce(e,n))},assoc:function(e,t,n,r,o){var i=Array.isArray(o),a=i?o:[o];"string"==typeof ie.a.first(a)&&(a=se.getAll(r).filter((function(e){return a.includes(e.id)})));var c=a.map((function(e){return e.id?e:se.create(r,e)})),u=se.getAll(e);if(u.length){var s=u.find((function(e){return e.id===t}));if(s)return c.forEach((function(e){if(s[n])if(Array.isArray(s[n])){if(s[n].find((function(t){return t.id===e.id})))return;s[n].push(e)}else s[n]=e;else s[n]=i?[e]:e})),ce(e,u=u.map((function(e){return e.id!==s.id?e:s}))),i?c:ie.a.first(c)}},dissoc:function(e,t,n,r){var o=se.getAll(e);if(o.length){var i=o.find((function(e){return e.id===t}));if(i){var a=i[n];if(a)return Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]),r.forEach((function(e){var t=a.findIndex((function(t){return t.id===e}));a.splice(t,1)})),i[n]=a,ce(e,o=o.map((function(e){return e.id!==i.id?e:i}))),o}}}};n.d(t,"Actions",(function(){return o.a})),n.d(t,"RequestStatus",(function(){return r})),n.d(t,"ajaxRequest",(function(){return u})),n.d(t,"normalize",(function(){return v})),n.d(t,"denormalize",(function(){return w})),n.d(t,"emptyResponse",(function(){return j})),n.d(t,"getResponse",(function(){return N})),n.d(t,"getFetch",(function(){return I})),n.d(t,"fetch",(function(){return D})),n.d(t,"dataServiceFetch",(function(){return U})),n.d(t,"useGetFetch",(function(){return M})),n.d(t,"useGetResponse",(function(){return F})),n.d(t,"useBasicFetch",(function(){return V})),n.d(t,"createMiddleware",(function(){return Y})),n.d(t,"FlightReducer",(function(){return oe})),n.d(t,"Simulator",(function(){return se}))},function(e,t,n){"use strict";var r=n(2),o=n(7),i=n(1),a=n(417),c=n.n(a);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=h(e);if(t){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==u(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(a,e);var t,n,r,o=f(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,e)}return t=a,(n=[{key:"getImageClass",value:function(){return this.options.customImageClass}},{key:"getHeading",value:function(){return i.isFunction(this.options.heading)?this.options.heading():this.options.heading}},{key:"getDescription",value:function(){return i.isFunction(this.options.description)?this.options.description():this.options.description}},{key:"viewOptions",value:function(){return{imageUrl:this.options.imageUrl,imageClass:this.getImageClass(),heading:this.getHeading(),description:this.getDescription()}}},{key:"name",get:function(){return"EmptyStateComponent"}},{key:"className",get:function(){var e="d-flex flex-column justify-content-center align-items-center text-center h-100";return this.options.customClass&&(e+=" ".concat(this.options.customClass)),e}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{imageSize:"lg",paddedContainer:!0}}},{key:"appLinks",get:function(){return this.options.appLink||{}}}])&&s(t.prototype,n),r&&s(t,r),a}(r.a.Component),y={isCollectionEmpty:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"collection";return e[t]&&!e[t].length}};function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t){return(b=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O,k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&b(e,t)}(a,e);var t,n,r,o=w(a);function a(){return g(this,a),o.apply(this,arguments)}return t=a,(n=[{key:"shouldRender",value:function(){return!!i.isFunction(this.options.shouldRender)&&this.options.shouldRender()}},{key:"getComponent",value:function(){var e=this.options.emptyStateComponents[this.options.type](this);return new d(e)}},{key:"renderEmptyState",value:function(){if(this.shouldRender()){var e=this.getComponent();this.view.showChildView(this.options.region,e)}}},{key:"onRender",value:function(){this.renderEmptyState()}},{key:"defaults",get:function(){return{type:0,shouldRender:y.isCollectionEmpty.bind(null,this.view)}},set:function(e){}}])&&m(t.prototype,n),r&&m(t,r),a}(r.a.Behavior);!function(e){e[e.Notifications=0]="Notifications"}(O||(O={}));var E=n(8),P=n(32),R=n(197),_=n.n(R);var T,x,A,L,j=(T={},x=O.Notifications,A=function(e){var t={imageUrl:E.a.getInstance(P.a.NOTIFICATIONS).notificationsEmptyStateUrl,heading:e.options.componentOptions.noNotificationsText,customClass:"".concat(_.a.paddedContainer," ").concat(e.options.componentOptions.customClass),customImageClass:"sm"===e.options.componentOptions.imageSize?_.a.imageSmall:_.a.imageLarge};return E.a.releaseInstance(P.a.NOTIFICATIONS),t},x in T?Object.defineProperty(T,x,{value:A,enumerable:!0,configurable:!0,writable:!0}):T[x]=A,T),N=n(9),I=n(90),D=n(13),U=n(17),M=n(50);!function(e){e[e.Other=0]="Other",e[e.Alert=1]="Alert",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Success=4]="Success"}(L||(L={}));var F,V,H,z="notifications.utils",B=/^marketing-/,q=function(e){switch(e){case L.Success:return"success";case L.Alert:return"danger";case L.Warning:return"warning";case L.Info:case L.Other:default:return"dark"}},W=function(e){switch(e){case L.Success:return D.b.CheckCircle;case L.Alert:case L.Warning:return D.b.Warning;case L.Info:case L.Other:default:return D.b.Info}},J=function(e){return e===M.a.VideoProcessingFailed||e===M.a.VideoRequestDenied?"danger":e.match(B)?"warning":void 0},G=function(e){if(e.match(B))return D.b.Star},Y=function(e){switch(e){case M.a.VideoReviewAddedToLibrary:case M.a.WorkspaceVideoAvailable:case M.a.ExchangeVideoAvailable:case M.a.EditedVideoAvailable:return o.a.getPhrase(z,"viewVideo");case M.a.VideoReviewReminder:return o.a.getPhrase(z,"reviewVideos");case M.a.VideoReviewAddedToLibrary:return o.a.getPhrase(z,"viewNewContent");case M.a.CustomLibraryVideoAvailable:return o.a.getPhrase(z,"viewVideoDetails");case M.a.StaffRequest:return o.a.getPhrase(z,"reviewVideo");default:return o.a.getPhrase(z,"seeNow")}},K=n(103),Q=n(194);function Z(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return X(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function $(){return E.a.getInstance(P.a.NOTIFICATIONS,this)}function ee(e,t,n){return e===H.Module?function(e,t){var n=$();return t===V.ContentUpdates?n.appLinks.pastReleases:t===V.LibraryReview?n.appLinks.awaitingReview:void 0}(0,t):e===H.Video?function(e,t,n){return Object.assign(Object.assign({},$().appLinks.videoDetails),{args:[t,""]})}(0,t):e===H.StaffRequest?function(e,t,n){return Object.assign(Object.assign({},$().appLinks.editStaffRequest),{args:[t],params:{referrer:F.Notification}})}(0,t):void 0}!function(e){e.Notification="notification"}(F||(F={})),function(e){e.LibraryReview="libraryreview",e.ContentUpdates="newcontent"}(V||(V={})),function(e){e.Video="video",e.Url="url",e.Module="module",e.App="app",e.StaffRequest="staff_request"}(H||(H={}));var te=function(e){return i.contains($().notificationTypesWithAppLinks,e)},ne=function(e,t){if(e&&t){var n=Z(e.split(":"),2);return ee(n[0],n[1])}},re=n(230),oe=n.n(re),ie=n(418),ae=n.n(ie);function ce(e){return(ce="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ue(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pe(e);if(t){var o=pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fe(this,n)}}function fe(e,t){return!t||"object"!==ce(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he,de=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(i,e);var t,n,r,o=le(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:notificationStatus",this.updateReadStatus)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){return N.Radio.channel(U.a.NOTIFICATIONS).trigger(Q.a.Read,this.model.get("id")),this.model.set("notificationStatus",K.a.Read),!0}},{key:"getAppLink",value:function(){var e=this.model.get("appLink");if(!e)return null;var t=this.model.get("notificationType");return te(t)?ne(e,t):null}},{key:"updateReadStatus",value:function(){this.$el.removeClass("unread read").addClass(this.getReadStatus())}},{key:"getReadStatus",value:function(){switch(this.model.get("notificationStatus")){case K.a.Read:return"read";default:case K.a.Received:return"unread"}}},{key:"viewOptions",value:function(){var e=J(this.model.get("notificationType"))||q(this.model.get("alertType")),t=G(this.model.get("notificationType"))||W(this.model.get("alertType"));return{content:this.model.get("body")||this.model.get("name"),notificationTime:I(this.model.get("dateCreated")).fromNow(),icon:D.a.getSvg(t),iconClass:"text-".concat(e),styles:oe.a,showActionText:this.options.showActionText&&this.model.get("alertType")!==L.Warning,actionText:Y(this.model.get("notificationType"))}}},{key:"name",get:function(){return"NotificationItemComponent"}},{key:"template",get:function(){return ae.a}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.getAppLink()?{}:{href:this.model.get("link"),target:"_blank"}}},{key:"className",get:function(){return"notification ".concat(oe.a.item," px-1 py-2 ").concat(this.getReadStatus())}},{key:"appLinks",get:function(){var e=this.getAppLink();return e?{"[this]":e}:{}}}])&&ue(t.prototype,n),r&&ue(t,r),i}(r.a.Component),ye=n(419),ve=n.n(ye);function ge(e){return(ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function be(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function we(e,t,n){return t&&be(e.prototype,t),n&&be(e,n),e}function Se(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ce(e,t)}function Ce(e,t){return(Ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ee(e);if(t){var o=Ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ke(this,n)}}function ke(e,t){return!t||"object"!==ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return he})),n.d(t,"b",(function(){return Re})),function(e){e[e.Default=0]="Default",e[e.Popover=1]="Popover"}(he||(he={}));var Pe=function(e){Se(n,e);var t=Oe(n);function n(e){return me(this,n),t.call(this,e)}return we(n,[{key:"name",get:function(){return"NotificationComponentCollection"}},{key:"className",get:function(){return this.options.isPopover&&"popover-list-body-sm"}},{key:"childView",get:function(){return de}},{key:"childViewOptions",get:function(){return{showActionText:!this.options.isPopover}}}]),n}(r.a.ComponentCollection),Re=function(e){Se(n,e);var t=Oe(n);function n(e){return me(this,n),t.call(this,e)}return we(n,[{key:"regions",value:function(){return{notifications:{el:".notifications-region",replaceElement:!0}}}},{key:"getEmptyStateComponentOptions",value:function(){return this.options.isPopover?{customClass:"px-0 py-3",imageSize:"sm",noNotificationsText:o.a.getPhrase(this.lang,"noNotifications")}:{noNotificationsText:o.a.getPhrase(this.lang,"noNotifications")}}},{key:"onRender",value:function(){this.showChildView("notifications",new Pe(this.options))}},{key:"name",get:function(){return"NotificationListComponent"}},{key:"template",get:function(){return ve.a}},{key:"lang",get:function(){return"notifications.notificationList"}},{key:"behaviors",get:function(){return[{behaviorClass:k,region:"notifications",type:O.Notifications,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:j}]}}]),n}(r.a.Component)},function(e,t,n){"use strict";n.r(t);var r=n(43),o=n(180),i=n(1),a=n(9),c=n(38),u=n(42);function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var l=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"use",value:function(e){var t;this.go=(t=this.go,function(n,r){return t(n,(function(){return e(n,r)}))})}},{key:"go",value:function(e,t){t(e)}}])&&s(t.prototype,n),r&&s(t,r),e}(),f=n(29),p=n(11),h=n(78),d=n(16);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e){return function(e){if(Array.isArray(e))return g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return g(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function b(e,t,n){return(b="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=O(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=/([A-Z])/g,E=/(^|:)(\w)/gi,P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(s,e);var t,n,o,c=S(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=c.call(this,e)).bindDisposal(),t.processInternalRoutes(),t.processExternalRoutes(),t.processAppLinks(),t}return t=s,(n=[{key:"bindDisposal",value:function(){var e=this;this.listenTo(d.a.SHELL,f.a.ROUTE,(function(t){t.application!==e.channelName&&e.destroyApp()}))}},{key:"addRouteLookup",value:function(e,t){var n=this;this.options.shell.addRouteLookup("".concat(this.channelName,":").concat(e),(function(o,i){return r.a.buildRoute(t,{application:n.channelName,action:e,args:o,params:i})}))}},{key:"processInternalRoutes",value:function(){var e=this;i.each(i.keys(this.appRoutes),(function(t){var n=e.appRoutes[t],r=e.toEventName(n);e.addRouteLookup(r,t),e.listenTo(e.channelName,r,(function(n,r){r&&r.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(n,{isAppRoute:!0},(function(){var o=i.extend({},e.controller.getAndClearDefaultQueryParams(),n.params);n.params=o,h.a.UpdateUrl(t,n,r)}))}))}))}},{key:"processExternalRoutes",value:function(){var e=this;this.externalRoutes&&i.each(i.keys(this.externalRoutes),(function(t){var n=e.externalRoutes[t],o=e.toEventName(n);e.addRouteLookup(o,t),e.listenTo(e.channelName,o,(function(e,t){t&&t.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),h.a.PageLoad(r.a.getHref(e))}))}))}},{key:"processAppLinks",value:function(){var e=this;this.appLinks&&i.each(this.appLinks,(function(t){var n=e.toEventName(t);e.listenTo(e.channelName,n,(function(t,n){n&&n.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),e.executeRoute(t,{isAppRoute:!1})}))}))}},{key:"executeRoute",value:function(e,t,n){var o=this;this.validateAppLink(e);var c=this.toMethodName(e.action);r.b.routingStarted();var u=a.Radio.channel(d.a.SHELL);if(this.options.shell.isNavLocked())return u.trigger(f.a.NAV_IS_LOCKED,e),void r.b.routingEnded();var s=new l;i.each(this.filters,(function(e){return s.use(e)})),s.go(e,(function(){u.trigger(f.a.ROUTE,e,t),o.createApp();var a=o.controller;if(i.isFunction(a[c])||(r.b.routingEnded(),p.c.throw(new p.b("".concat(c," does not exist on the ").concat(i.result(a,"name"),".")))),!1===a.triggerMethod("before:action"))return a.triggerMethod("action:cancelled"),void r.b.routingEnded();a.triggerMethod("load:layout"),a[c].apply(a,[].concat(v(e.args||[]),[e.params||{}])),i.isFunction(n)&&n(),r.b.routingEnded()}))}},{key:"createApp",value:function(){this.controller||(this.controller=new this.options.appConstructor(this.options.appOptions),this.controller.start())}},{key:"destroyApp",value:function(){this.controller&&(this.controller.destroy(),delete this.controller)}},{key:"_addAppRoute",value:function(e,t,n){var r=this;this.route(t,n,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];var a={application:r.channelName,action:r.toEventName(n),args:t.slice(0,t.length-1),params:h.a.DeserializeQueryParams(t[t.length-1])};r.executeRoute(a,{isAppRoute:!0},(function(){h.a.UpdateQuery(i.extend(r.controller.getAndClearDefaultQueryParams(),a.params))}))}))}},{key:"toEventName",value:function(e){return e.replace(k,":$1").toLowerCase()}},{key:"toMethodName",value:function(e){var t=e.replace(E,(function(e,t,n){return n.toUpperCase()}));return t[0].toLowerCase()+t.slice(1,t.length)}},{key:"validateAppLink",value:function(e){e.application&&e.action||(r.b.routingEnded(),p.c.throw(new p.b("Invalid AppLink")))}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],b(O(s.prototype),"listenTo",this))}}])&&m(t.prototype,n),o&&m(t,o),s}(c.AppRouter);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function x(e,t,n){return(x="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=N(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(i,e);var t,n,r,o=L(i);function i(){return _(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],x(N(i.prototype),"listenTo",this))}}])&&T(t.prototype,n),r&&T(t,r),i}(c.Behavior),D=n(121);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t,n){return(F="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=q(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function V(e,t){return(V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?B(e):t}function B(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var W=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}(a,e);var t,n,r,o=H(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),t=o.call(this,e),i.result(B(t),"name")||p.c.throw(new p.b("Error: View with cid:".concat(t.cid," requires a name."))),t}return t=a,(n=[{key:"serializeModel",value:function(){return this.model?this.model.toJSON():{}}},{key:"serializeCollection",value:function(){return this.collection?this.collection.toJSON():[]}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],F(q(a.prototype),"listenTo",this))}}])&&M(t.prototype,n),r&&M(t,r),a}(c.CollectionView),J=n(181),G=n(145),Y=n(54),K=n(72),Q=n(144);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $(e,t,n){return($="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=re(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=re(e);if(t){var o=re(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(a,e);var t,n,r,o=te(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=o.call(this,e)).layouts={},t.requiredRegions=e.requiredRegions,t}return t=a,(n=[{key:"clearLayout",value:function(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}},{key:"registerLayout",value:function(e,t){return this.checkRequiredRegions(t),this.layouts[e]=t,this}},{key:"getLayout",value:function(e){var t=e.name,n=e.options,r=void 0===n?{}:n;this.layouts[t]||p.c.throw(new p.b("".concat(t," was not registered as a template.")));var o=this.layouts[t].getCacheKey(r);return this.currentLayoutCacheKey===o&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",r),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=o,this.currentLayout=new this.layouts[t](r),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}},{key:"checkRequiredRegions",value:function(e){i.each(this.requiredRegions,(function(t){i.has(i.result(e.prototype,"regions"),t)||p.c.throw(new p.b("Layout: ".concat(e.prototype.name," must define an ").concat(t," region.")))}))}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],$(re(a.prototype),"listenTo",this))}}])&&X(t.prototype,n),r&&X(t,r),a}(c.Object);function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t,n){return(ae="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=le(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function he(e,t,n){return t&&pe(e.prototype,t),n&&pe(e,n),e}var de=function(){function e(t,n){fe(this,e),this.application=t,this.options=n||{}}return he(e,[{key:"Application",get:function(){return this.application}},{key:"Options",get:function(){return this.options}}]),e}(),ye=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}(n,e);var t=ue(n);function n(){return fe(this,n),t.apply(this,arguments)}return he(n,[{key:"initialize",value:function(e){this.mergeOptions(e,["layoutService"]),this.applications=[],this.routeLookup={},this.shellState={navLock:!1,activeRoute:!1,currentAppLink:null},this.errorHandlers=[]}},{key:"bindListeners",value:function(){this.bindRouteLookup(),this.bindNavLockListeners(),this.bindAppLinkListeners(),this.bindErrorHandlers(),this.bindErrorListener()}},{key:"bindNavLockListeners",value:function(){var e=this;this.listenTo(d.a.SHELL,f.a.LOCK_NAV,(function(){return e.shellState.navLock=!0})),this.listenTo(d.a.SHELL,f.a.UNLOCK_NAV,(function(){return e.shellState.navLock=!1}))}},{key:"bindAppLinkListeners",value:function(){var e=this;this.listenTo(d.a.SHELL,f.a.ROUTING_START,(function(){return e.shellState.activeRoute=!0})),this.listenTo(d.a.SHELL,f.a.ROUTING_END,(function(){return e.shellState.activeRoute=!1})),this.listenTo(d.a.SHELL,f.a.ROUTE,(function(t){return e.shellState.currentAppLink=t}));var t=a.Radio.channel(d.a.SHELL);t.reply(f.a.HAS_ACTIVE_ROUTE,i.bind(this.hasActiveRoute,this)),t.reply(f.a.CURRENT_ROUTE,(function(){return e.shellState.currentAppLink}))}},{key:"bindErrorHandlers",value:function(){window.addEventListener("error",(function(){r.b.routingEnded()}))}},{key:"bindErrorListener",value:function(){var e=a.Radio.channel(d.a.SHELL);this.listenTo(e,f.a.ERROR,this.handleError)}},{key:"bindRouteLookup",value:function(){var e=this;a.Radio.channel(d.a.SHELL).reply(f.a.ROUTE_LOOKUP,(function(t,n,r){return e.routeLookup[t]?e.routeLookup[t](n,r):""}),this)}},{key:"addRouteLookup",value:function(e,t){this.routeLookup[e]=t}},{key:"registerApplication",value:function(e,t){return this.applications.push(new de(e,t)),this}},{key:"getGlobalRadioChannels",value:function(){return d.a}},{key:"isNavLocked",value:function(){return this.shellState.navLock}},{key:"start",value:function(e){var t=this;e||(e={}),this.runInitializationSteps(this,(function(r,o){t.runStartUpSteps(t,e,(function(r,o,i){ae(le(n.prototype),"start",t).call(t,e)}))}))}},{key:"hasActiveRoute",value:function(){return this.shellState.activeRoute}},{key:"onStart",value:function(){var e=this;i.each(this.applications,(function(t){var n={appConstructor:t.Application,shell:e,appOptions:Object.assign({region:"",shell:e,layoutService:e.layoutService},t.Options)};new t.Application.router(n)})),this.bindListeners(),h.a.StartHistory()}},{key:"addInitializationStep",value:function(e){var t;return this.runInitializationSteps=(t=this.runInitializationSteps,function(n,r){return t(n,(function(){return e(n,r)}))}),this}},{key:"runInitializationSteps",value:function(e,t){t(e)}},{key:"addStartUpStep",value:function(e){var t;return this.runStartUpSteps=(t=this.runStartUpSteps,function(n,r,o){return t(n,r,(function(){return e(n,r,o)}))}),this}},{key:"runStartUpSteps",value:function(e,t,n){n(e,t)}},{key:"registerLayout",value:function(e,t){return this.layoutService.registerLayout(e,t),this}},{key:"registerErrorHandler",value:function(e,t){return e||p.c.throw(new p.b("An error must have a name in order to register a handler for it.")),i.any(this.errorHandlers,(function(t){return t.errorType===e}))&&p.c.throw(new p.b("An error handler for ".concat(e.prototype.name," has already been defined."))),this.errorHandlers.push({errorType:e,handler:t}),this}},{key:"handleError",value:function(e){var t=i.find(this.errorHandlers,(function(t){return e instanceof t.errorType}));t&&t.handler&&t.handler(e)}},{key:"registerStore",value:function(e){this.store=e}},{key:"listenTo",value:function(){return u.a.call(this,arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],ae(le(n.prototype),"listenTo",this))}}]),n}(c.Application);n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b})),n.d(t,"Application",(function(){return o.a})),n.d(t,"AppRouter",(function(){return P})),n.d(t,"Behavior",(function(){return I})),n.d(t,"Collection",(function(){return D.a})),n.d(t,"CollectionView",(function(){return W})),n.d(t,"ComponentCollection",(function(){return W})),n.d(t,"Error",(function(){return p.a})),n.d(t,"ErrorHelper",(function(){return p.c})),n.d(t,"SilentError",(function(){return p.d})),n.d(t,"LayoutView",(function(){return J.a})),n.d(t,"NestedModel",(function(){return G.a})),n.d(t,"Service",(function(){return Y.a})),n.d(t,"Model",(function(){return K.a})),n.d(t,"View",(function(){return Q.b})),n.d(t,"Component",(function(){return Q.a})),n.d(t,"EventNames",(function(){return f.a})),n.d(t,"LayoutService",(function(){return oe})),n.d(t,"Middleware",(function(){return l})),n.d(t,"LocationUtils",(function(){return h.a})),n.d(t,"Shell",(function(){return ye}))},function(e,t){e.exports=f},function(e,t,n){"use strict";n.d(t,"a",(function(){return v})),n.d(t,"b",(function(){return m}));var r=n(60),o=n(8),i=n(12),a=n(17),c=n(34),u=n(67);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(s,e);var t,n,r,o=h(s);function s(){return l(this,s),o.apply(this,arguments)}return t=s,(n=[{key:"getCurrentUser",value:function(e,t){return this.get({resource:"/api/currentuser",eventPrefix:c.a.CURRENT_USER,expiryTime:u.a.STANDARD,callback:e,errorCallback:t})}},{key:"getWorkspace",value:function(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:c.a.WORKSPACE,expiryTime:u.a.STANDARD,callback:e,errorCallback:t})}},{key:"name",get:function(){return i.a.User}},{key:"channelName",get:function(){return a.b.USER}}])&&f(t.prototype,n),r&&f(t,r),s}(r.a),g={dataServiceName:i.a.User,dataChannelName:a.b.USER},m={getCurrentUserFetchOptions:function(e,t){return Object.assign(Object.assign({},g),{eventPrefix:c.a.CURRENT_USER,fetchData:function(e){return e.getCurrentUser()},setData:e,onError:t})},currentUser:{dataServiceName:i.a.User,eventName:"".concat(c.a.CURRENT_USER,":sync"),getData:function(e){return e.getCurrentUser()},getInstance:function(e){return o.a.getInstance(i.a.User,e)},beforeOnBeforeRender:!0}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Analytics="AnalyticsService",e.Context="ContextService"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={ANALYTICS:"global:analytics"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={UPDATE:"UPDATE_VIEW_MODEL"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Read="notification:read"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));var r={LAZY_LOAD:"lazy:load:behavior",POPUP:"popup:behavior",IMAGE_SELECT:"image:select:behavior"}},function(e,t,n){e.exports={notificationIcon:"_3SkbQ",light:"_2TvQg",dark:"_3taGb",unreadCount:"_1u6ig"}},function(e,t,n){e.exports={paddedContainer:"_1cCVc",imageLarge:"_3Wy1u",imageSmall:"_3t8Qq"}},function(e,t,n){e.exports={selectionContainer:"_3m62c",svgContainer:"_1XxEl"}},function(e,t,n){e.exports={svgContainer:"ecsrN",tip:"IwYkF",termContainer:"_1BqAi",term:"_1NEsr"}},function(e,t,n){e.exports={searchSvgContainer:"_1-crd",tipsContainer:"_15HAy",searchInput:"_1qca6",searchBar:"_3XQHi"}},function(e,t,n){e.exports={appLink:"_1SFgo",hoverUnderline:"_2iyL0"}},function(e,t){e.exports=p},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return a}));var r=n(0),o=n.n(r);function i(){return o.a.createElement("svg",{viewBox:"0 0 434 71"},o.a.createElement("g",null,o.a.createElement("path",{fill:"#000000",d:"M114.44 56.57l3.5 3.5a32.87 32.87 0 0 1-25.16 11.26c-19.63 0-33.62-15.54-33.62-35.16C59.16 16.55 73.16 1 92.78 1a32.31 32.31 0 0 1 24.19 10.4l-3.6 3.3a27.32 27.32 0 0 0-20.59-8.74c-16.91 0-28.39 13.5-28.39 30.21s11.48 30.21 28.39 30.21a28.08 28.08 0 0 0 21.66-9.81zM126.64 1h4.55v70.22h-4.73L126.64 1zm17.3 10.6a3.7 3.7 0 1 1 0 7.4 3.7 3.7 0 0 1 0-7.4zm-2.41 15.07h4.81v44.56h-4.81V26.67zm48 33.15l3.33 3.15a21.8 21.8 0 0 1-17.31 8.61c-12.59 0-21.76-10-21.76-22.22 0-12.22 9.17-22.22 21.76-22.22a21.84 21.84 0 0 1 16.85 8l-3.43 3.06a17.15 17.15 0 0 0-13.42-6.3c-10.09 0-16.76 8.15-16.76 17.5s6.67 17.5 16.76 17.5a17.38 17.38 0 0 0 13.98-7.08zm14.99-9.33v20.74h-4.73V1.01h4.73v47.75l20.74-19.02h6.64l-21.56 19.84L234 71.23h-7.01l-22.47-20.74z"}),o.a.createElement("path",{fill:"#F8981D",d:"M304.09 19.4a5.56 5.56 0 1 1 0-11.12 5.56 5.56 0 0 1 0 11.12zm-5.56 7.27h11.11v44.56h-11.11V26.67zm61.42 22.15c0 .81 0 2.42-.09 4h-31.75c.8 3.77 5.2 8.61 11.93 8.61a17.11 17.11 0 0 0 11.66-4.31l5.38 8.16a27.23 27.23 0 0 1-17 6.1c-12.92 0-22.88-9.87-22.88-22.34s9.06-22.33 21.35-22.33c11.62-.04 21.4 9.02 21.4 22.11zm-10.77-3.76c-.18-3.68-3.58-8.62-10.67-8.62-6.91 0-10.05 4.85-10.4 8.62h21.07zM385.92 71h-6.42l-19.64-44.37h13.97l9.16 23.98 9.72-23.98h8.31l9.63 23.98 9.16-23.98h13.97L414.24 71h-6.52l-10.85-23.7L385.92 71zm-120.22.35h-6L226.11 1.01h17.01l19.42 44.18 18.08-44.18h16.91L265.7 71.35zM0 1l41 35L0 71V1z"})))}function a(){return o.a.createElement("svg",{viewBox:"0 0 41 70"},o.a.createElement("g",null,o.a.createElement("path",{fill:"#F8981D",d:"M 0 0 41 35 0 70z"})))}},function(e,t,n){"use strict";t.__esModule=!0,t.AMPERSAND=t.CLOSEPAREN=t.CLOSEANGLEBRACKET=t.CLOSEBRACKET=t.CLOSEBRACE=t.OPENPAREN=t.OPENANGLEBRACKET=t.OPENBRACKET=t.OPENBRACE=t.WS=t.TLD=t.SYM=t.UNDERSCORE=t.SLASH=t.MAILTO=t.PROTOCOL=t.QUERY=t.POUND=t.PLUS=t.NUM=t.NL=t.LOCALHOST=t.PUNCTUATION=t.DOT=t.COLON=t.AT=t.DOMAIN=t.Base=void 0;var r=n(348),o=n(162),i=(0,r.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,o.inherits)(i,(0,r.createTokenClass)(),t)}i.prototype={toString:function(){return this.v+""}};var c=a(),u=a("@"),s=a(":"),l=a("."),f=a(),p=a(),h=a("\n"),d=a(),y=a("+"),v=a("#"),g=a(),m=a("mailto:"),b=a("?"),w=a("/"),S=a("_"),C=a(),O=a(),k=a(),E=a("{"),P=a("["),R=a("<"),_=a("("),T=a("}"),x=a("]"),A=a(">"),L=a(")"),j=a("&");t.Base=i,t.DOMAIN=c,t.AT=u,t.COLON=s,t.DOT=l,t.PUNCTUATION=f,t.LOCALHOST=p,t.NL=h,t.NUM=d,t.PLUS=y,t.POUND=v,t.QUERY=b,t.PROTOCOL=g,t.MAILTO=m,t.SLASH=w,t.UNDERSCORE=S,t.SYM=C,t.TLD=O,t.WS=k,t.OPENBRACE=E,t.OPENBRACKET=P,t.OPENANGLEBRACKET=R,t.OPENPAREN=_,t.CLOSEBRACE=T,t.CLOSEBRACKET=x,t.CLOSEANGLEBRACKET=A,t.CLOSEPAREN=L,t.AMPERSAND=j},,,,,,,,,,,,,,,,,,,,,,function(e,t,n){var r,o;
2
2
  /*!
3
3
  * JavaScript Cookie v2.2.1
4
4
  * https://github.com/js-cookie/js-cookie
@@ -12,4 +12,4 @@
12
12
  * @author Feross Aboukhadijeh <http://feross.org>
13
13
  * @license MIT
14
14
  */
15
- var r=n(596),o=n(597),i=n(598);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),o=(e=c(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return 0===(e=c(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?c(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=c(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,o){var i,a=1,c=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,c/=2,u/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<c;i++)if(s(e,i)===s(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>c&&(n=c-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(s(e,i+p)!==s(t,p)){f=!1;break}if(f)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(t.substr(2*a,2),16);if(isNaN(c))return a;e[n+a]=c}return a}function w(e,t,n,r){return z(V(t,e.length-n),e,n,r)}function S(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return S(e,t,n,r)}function O(e,t,n,r){return z(H(t),e,n,r)}function k(e,t,n,r){return z(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,c,u,s=e[o],l=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&s)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return s(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?c(e,t):void 0!==n?"string"==typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;f<c;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function _(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=F(e[i]);return o}function x(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===c&&0!==this[t+i-1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:V(new u(e,r).toString()),c=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%c]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(203))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r,o,i,a=n(1),c=n(9),u=n(3),s=n(40),l=n(126),f=n(2),p=n(112),h=n(7),d=n(8),y=n(47),v=n(17),g=n(32),m=n(12),b=n(189),w=n(184),S=n(13),C={showMask:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetSelector,n=e.additionalClasses,r=e.fade,o=void 0===r||r,i=$(".".concat("mask"));if(!i.length){var a=$("<div>",{class:"".concat("mask"," ").concat(n||"")});return o&&a.addClass("fade show"),$(a).appendTo(C.getTarget(t)),$(C.getTarget(t)).addClass("mask-lock"),a}},hideMask:function(e){var t=e||$(".".concat("mask"));t.length&&($(".".concat("mask-lock")).removeClass("mask-lock"),t.remove())},getTarget:function(e){var t=$(e||"#app");if(t.length)return t}},O={libraries:{dataServiceName:m.a.Library,eventName:"libraries:sync",getData:function(e){return e.getLibraries()},getInstance:function(e){return d.a.getInstance(m.a.Library,e)},beforeOnBeforeRender:!0}};!function(e){e.Direct="direct-search",e.Recent="recent-searches"}(r||(r={})),function(e){e[e.Remote=0]="Remote",e[e.Local=1]="Local"}(o||(o={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Channel="channels",e.Distributors="companies",e.Producers="people",e.Tags="tags",e.Language="languages",e.TagsRaw="tag",e.ChannelRaw="channel",e.Recent="recent",e.Direct="direct",e.ProductionCompanies="companies",e.Directors="people",e.Season="season",e.Classification="subjects"}(i||(i={}));var k=function(e){return e&&e.get("filterParam")?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.get("filterParam"),e.get("filterValue")):{}},E=n(356),P=1,R={Min:1,Default:3,Folder:3,Recent:3},_=R,T={prepareQuery:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.model,o=n.libraryIds,i=n.presentationId;r&&r.get("filterValue")&&(e+=" ".concat(r.get("filterParam"),':"').concat(r.get("filterValue"),'"'));var a="".concat(t.url,"?q=").concat(e);return o&&(a+="&ids=".concat(o)),i&&(a+="&presentationId=".concat(i)),a},bloodhoundConfig:function(e,t){return{datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:a.partial(T.prepareQuery,a,a,t),transform:a.partial(T.handleResult,a,e)}}},handleResult:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t===i.Classification?T.processSubjectResult(e[t],t,n):t===i.Video?T.processVideoResult(e[t],t,n):n.showFolder&&t===i.Folder?T.processFolderResult(e[t],t,n):t===i.Series?T.processSeriesResult(e[t],t,n):t===i.Tags?T.processTagsResult(e[t],t,n):[]},processSubjectResult:function(e,t,n){return e?(e=T.processCollection(e),a.map(e,(function(e){return e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e}))):[]},processVideoResult:function(e,t,n){return e?(e=T.processCollection(e),a.map(e,(function(e){return e.cached||(e.topics=a.map(e.topics,(function(e){return{name:e}})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e}))):[]},processTagsResult:function(e,t,n){if(!e)return[];var r=d.a.getInstance(g.a.SEARCH,this);return e=T.processCollection(e),a.map(e,(function(e){return e.cached||(e.url=f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},r.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e}))},processSeriesResult:function(e,t,n){return e?(e=T.processCollection(e),a.map(e,(function(e){var t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=a.first(e.folder)),a.extend({},e,{collectionType:void 0,collection:t})}))):[]},processFolderResult:function(e,t){return e?(e=T.processCollection(e,{limit:_.Folder}),a.map(e,(function(e){var t=e.library,n=void 0===t?{}:t;return n.type===E.a.Exchange&&(n.name="Exchange"),a.extend({},e,{libraryId:n.id,libraryName:n.name,libraryType:n.type})}))):[]},processCollection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?_.Default:n;return e.slice(0,r)}},x={getRecentSearches:function(e,t){var n=t.cacheGet(e);return a.isArray(n)||(n=[]),n},setRecentSearches:function(e,t,n){a.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches:function(e,t,n){var r=n.add,o=n.remove,i=n.query,c=n.limit,u=void 0===c?5:c,s=x.getRecentSearches(e,t),l=a.indexOf(s,i);return r&&-1===l&&s.unshift(i),o&&l>-1&&s.splice(l,1),s.length>u&&(s=s.slice(0,u)),x.setRecentSearches(e,s,t),s}},A=n(231),L=n(423),j=n.n(L),N=n(198),I=n.n(N);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var o=H(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(i,e);var t,n,r,o=F(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"viewOptions",value:function(){return{styles:I.a,confirmSelectionText:h.a.getPhrase("shared.utils","confirmSelection",{svg:'<kbd><span class="'.concat(I.a.svgContainer,'">').concat(S.a.getSvg(S.b.Enter),"</span></kbd>")})}}},{key:"name",get:function(){return"ConfirmSelectionComponent"}},{key:"template",get:function(){return j.a}},{key:"className",get:function(){return"suggestion-footer empty-suggestion px-2 ".concat(I.a.selectionContainer," clearfix")}}])&&U(t.prototype,n),r&&U(t,r),i}(f.a.Component);function B(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var W,J={handleQuery:function(e,t){return function(n,r,i){if(t||(t={}),n&&t.ignoreOnQuery)return r([]);var a=n&&n.length>=P;return t.fetchType!==o.Local||a?a?e instanceof A?e.search.call(e,n,r,i):r([{query:n}]):void 0:r(e.index.all())}},getTemplate:function(e){var t=arguments,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fallbackTemplate,o=n.templateText;return function(n){var i=n.query;if(!i)return r.apply(void 0,B(t));if(i.length&&i.length<P)return r.apply(void 0,B(t));var c=a.extend(n,{templateText:o});return e(c)}},getSearchSources:function(e){return a.map(e,(function(e,t){var n,r=e.typeaheadConfig,o=e.bloodhoundConfig,i=e.name,a=e.options;return o&&(n=J.buildBloodhound(o(i,a))),r({bloodhound:n,name:i},t,a)}))},buildBloodhound:function(e){return new A(e)},selectFirstResult:function(e,t,n,r){if(n&&!this.$el.find(".tt-cursor").length){var o=a.first(t);if(o&&!a.isEmpty(o)){var i=this.$el.find(".add-new");!i||o.id?(i&&i.hasClass("tt-cursor")&&i.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):i.addClass("tt-cursor")}else this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion")}},emitEventOnInput:function(e,t,n,r){if(e)return function(o,i){c.Radio.channel(e).trigger(t,o,n,a.extend({},r,i))}},resetAssociationOnBlur:function(e){return function(t,n){var r=this.model.get(n),o=a.isNumber(this.model.id);return e[n]||o?"string"==typeof r&&r.length?o?void(e.id===this.model.id&&(this.model.set(e),c.Radio.channel(t).trigger("typeahead:set:input",e[n]))):(c.Radio.channel(t).trigger("typeahead:clear:input"),void this.model.set(e)):void 0:(this.model.clear(),void c.Radio.channel(t).trigger("typeahead:clear:input"))}},getConfirmSelectionTemplate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){return new z(e).render().el}},clearInputOnBlur:function(e){c.Radio.channel(e).trigger("typeahead:clear:input")}};function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ee(e);if(t){var o=ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(W||(W={}));var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Q(e,t)}(i,e);var t,n,r,o=Z(i);function i(){return Y(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}},{key:"bindListeners",value:function(){this.options.toggleEventName&&this.listenTo(this.view.channelName,"".concat(this.options.toggleEventName),this.toggle)}},{key:"bindBodyClickListener",value:function(){$("body").one("click.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"bindDropdownListener",value:function(){$("body").one("show.bs.dropdown.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"onPopoverInserted",value:function(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}},{key:"onPopoverHidden",value:function(){$("body").off("click.popover".concat(this.view.cid)),$("body").off("show.bs.dropdown.popover".concat(this.view.cid))}},{key:"toggle",value:function(){this.view.$el.popover("toggle")}},{key:"hide",value:function(){this.view.$el.popover("hide")}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickOutside",value:function(e){this.hide()}},{key:"getTrigger",value:function(){return this.options.toggleEventName?"manual":"click"}},{key:"onAttach",value:function(){this.popoverInitialized||(this.bindListeners(),this.view.$el.popover({title:this.options.title,content:'<div class="popover-content"></div>',placement:this.options.placement,trigger:this.getTrigger(),html:!0,container:this.view.getUI("popoverContainer"),boundary:this.options.boundary||"scrollParent",delay:1}),this.options.size&&this.view.getUI("popoverContainer").addClass(this.options.size),this.options.customClasses&&this.view.getUI("popoverContainer").addClass(this.options.customClasses),this.popoverInitialized=!0)}},{key:"defaults",get:function(){return{title:"",placement:W.bottom,size:"popover-md"}},set:function(e){}},{key:"ui",get:function(){return{popoverContainer:this.options.containerSelector}},set:function(e){var t={};this.view.ui&&(t=a.result(this.view,"ui")),this.view._ui=a.extend({},t,e)}}])&&K(t.prototype,n),r&&K(t,r),i}(f.a.Behavior),ne=n(424),re=n.n(ne),oe=n(425),ie=n.n(oe),ae=n(199),ce=n.n(ae);function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fe(e,t,n){return t&&le(e.prototype,t),n&&le(e,n),e}function pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&he(e,t)}function he(e,t){return(he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ye(this,n)}}function ye(e,t){return!t||"object"!==ue(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ge=function(e){pe(n,e);var t=de(n);function n(){return se(this,n),t.apply(this,arguments)}return fe(n,[{key:"viewOptions",value:function(){return{styles:ce.a}}},{key:"name",get:function(){return"SearchTipComponentItem"}},{key:"template",get:function(){return ie.a}},{key:"className",get:function(){return"py-2 ".concat(ce.a.tip)}}]),n}(f.a.Component),me=function(e){pe(n,e);var t=de(n);function n(){return se(this,n),t.apply(this,arguments)}return fe(n,[{key:"name",get:function(){return"SearchTipComponentCollection"}},{key:"childView",get:function(){return ge}}]),n}(f.a.ComponentCollection),be=function(e){pe(n,e);var t=de(n);function n(){return se(this,n),t.apply(this,arguments)}return fe(n,[{key:"initialize",value:function(){this.collection=new f.a.Collection([{term:["".concat(h.a.getPhrase(this.lang,"firstTerm"))],description:"".concat(h.a.getPhrase(this.lang,"firstDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"secondTerm"))],description:"".concat(h.a.getPhrase(this.lang,"secondDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"thirdTerm"))],description:"".concat(h.a.getPhrase(this.lang,"thirdDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"fourthTerm1")),"".concat(h.a.getPhrase(this.lang,"fourthTerm2"))],description:"".concat(h.a.getPhrase(this.lang,"fourthDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"fifthTerm"))],description:"".concat(h.a.getPhrase(this.lang,"fifthDescription"))}])}},{key:"renderTips",value:function(e){this.showChildView(e,new me({collection:this.collection}))}},{key:"viewOptions",value:function(){return{styles:ce.a,searchInfoSvg:S.a.getSvg(S.b.Info)}}},{key:"name",get:function(){return"SearchTipsComponent"}},{key:"template",get:function(){return re.a}},{key:"lang",get:function(){return"search.searchTips"}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:te,containerSelector:".popover-container",title:h.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:function(t){return e.renderTips(t)}}]}}]),n}(f.a.Component);function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ee(this,n)}}function Ee(e,t){return!t||"object"!==we(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t)}(i,e);var t,n,r,o=ke(i);function i(){return Se(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getElement",value:function(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}},{key:"getOptions",value:function(){var e={placement:this.options.placement};return this.options.title&&(e.title=this.options.title),e}},{key:"onRender",value:function(){var e=this.getElement();e.length&&e.tooltip(this.getOptions())}},{key:"onBeforeDetach",value:function(){var e=this.getElement();e instanceof jQuery&&e.tooltip("dispose")}},{key:"defaults",get:function(){return{placement:"top"}},set:function(e){}},{key:"ui",get:function(){return this.options.selector?{tooltip:this.options.selector}:{}},set:function(e){var t={};this.view.ui&&(t=a.result(this.view,"ui")),this.view._ui=a.extend({},t,e)}}])&&Ce(t.prototype,n),r&&Ce(t,r),i}(f.a.Behavior),_e=n(426),Te=n.n(_e),xe=n(113),Ae=n.n(xe);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e,t){return(Ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Me(e);if(t){var o=Me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ue(this,n)}}function Ue(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ie(e,t)}(i,e);var t,n,r,o=De(i);function i(){return je(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(v.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}},{key:"events",value:function(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}},{key:"onClick",value:function(){c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}},{key:"onMouseEnter",value:function(){this.model.set("preventTypeaheadClose",!0)}},{key:"onMouseLeave",value:function(){this.model.set("preventTypeaheadClose",!1)}},{key:"toggleFocus",value:function(e){var t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(Ae.a.tagFocus):t.removeClass(Ae.a.tagFocus))}},{key:"viewOptions",value:function(){return{styles:Ae.a,closeSvg:S.a.getSvg(S.b.Close)}}},{key:"onBeforeRender",value:function(){return!!this.model.get("searchTag")}},{key:"name",get:function(){return"SearchContextComponent"}},{key:"template",get:function(){return Te.a}},{key:"tagName",get:function(){return"span"}},{key:"className",get:function(){return Ae.a.searchContextContainer}},{key:"behaviors",get:function(){return[{behaviorClass:Re,selector:".tool-tip",placement:"left"}]}},{key:"elements",get:function(){return{contextTag:".".concat(Ae.a.searchContextTag),clearSvg:".".concat(Ae.a.svgContainer)}}}])&&Ne(t.prototype,n),r&&Ne(t,r),i}(f.a.Component),Ve=n(427),He=n.n(Ve),ze=n(428),Be=n.n(ze);function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ke(e);if(t){var o=Ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ye(e,t){return!t||"object"!==qe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ke(e){return(Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}(i,e);var t,n,r,o=Ge(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"events",value:function(){return{"click .remove-recent":"onClick"}}},{key:"viewOptions",value:function(){return{styles:Be.a,closeSvg:S.a.getSvg(S.b.Close)}}},{key:"onClick",value:function(e){var t=this;return e.stopPropagation(),setTimeout((function(){c.Radio.channel(t.options.channelName).trigger("remove:recent",t.model.get("name"))}),0),this.destroy(),!1}},{key:"name",get:function(){return"RecentSearchResultComponent"}},{key:"template",get:function(){return He.a}},{key:"className",get:function(){return"text-capitalize p-2 container-fluid"}}])&&We(t.prototype,n),r&&We(t,r),i}(f.a.Component),Ze=n(429),Xe=n.n(Ze);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nt(e,t){return(nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=it(e);if(t){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var at=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nt(e,t)}(i,e);var t,n,r,o=rt(i);function i(){return et(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"name",get:function(){return"SeriesSearchResultComponent"}},{key:"template",get:function(){return Xe.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&tt(t.prototype,n),r&&tt(t,r),i}(f.a.Component),ct=n(430),ut=n.n(ct);function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pt(e,t){return(pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yt(e);if(t){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(e,t){return!t||"object"!==st(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pt(e,t)}(i,e);var t,n,r,o=ht(i);function i(){return lt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"name",get:function(){return"TagSearchResultComponent"}},{key:"template",get:function(){return ut.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&ft(t.prototype,n),r&&ft(t,r),i}(f.a.Component),gt=n(195),mt=n(155),bt=n(357),wt=n(431),St=n.n(wt),Ct=n(149),Ot=n.n(Ct);function kt(e){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rt(e,t){return(Rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xt(e);if(t){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt(this,n)}}function Tt(e,t){return!t||"object"!==kt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xt(e){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var At=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}(i,e);var t,n,r,o=_t(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"show:play:icon",this.showPlayIcon),this.listenTo(this.model,"change:thumbnail",this.render)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"showPlayIcon",value:function(){this.$el.find(".".concat(Ot.a.playSvgContainer)).show()}},{key:"onClick",value:function(e){if(!this.options.appLink&&a.isFunction(this.options.onClickHandler))return this.options.onClickHandler.apply(this,arguments)}},{key:"onImageLoad",value:function(){this.options.channelName&&c.Radio.channel(this.options.channelName).trigger("thumbnail:load")}},{key:"viewOptions",value:function(){var e=this.model.get("duration");return{styles:Ot.a,url:mt.a.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:e&&bt.a.ToDisplayDuration(e),playSvg:S.a.getSvg(S.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}},{key:"onRender",value:function(){if(c.Radio.channel(gt.a.LAZY_LOAD).trigger("update:loader"),this.options.lazyload&&this.options.channelName){var e=this.getUI("img");e.length&&(e[0].onload=a.bind(this.onImageLoad,this))}}},{key:"name",get:function(){return"ThumbnailComponent"}},{key:"template",get:function(){return St.a}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){if(this.options.classNameOverride)return this.options.classNameOverride;var e="".concat(Ot.a.thumbnailContainer," responsive-img");return this.options.onClickHandler&&(e+=" cursor-pointer"),e}},{key:"elements",get:function(){var e;return Et(e={},".".concat(Ot.a.playSvgContainer),"showPlayIcon"),Et(e,"img","img"),e}},{key:"appLinks",get:function(){return this.options.appLink?{"[this]":this.options.appLink}:{}}},{key:"attributes",get:function(){return this.options.appLink||!this.options.href?{}:{href:this.options.href,target:"_blank"}}}])&&Pt(t.prototype,n),r&&Pt(t,r),i}(f.a.Component),Lt=n(432),jt=n.n(Lt);function Nt(e){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ut(e,t){return(Ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vt(e);if(t){var o=Vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ft(this,n)}}function Ft(e,t){return!t||"object"!==Nt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vt(e){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ht=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ut(e,t)}(i,e);var t,n,r,o=Mt(i);function i(){return It(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=d.a.getInstance(g.a.SEARCH,this)}},{key:"regions",value:function(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getCollection",value:function(){var e=this.model,t=e.categories,n=e.series;return t&&t.length?{name:t.first().get("name"),type:"Folder"}:n&&n.get("name")?{name:n.get("name"),type:"Series"}:void 0}},{key:"getUrl",value:function(){return f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var e=new At({model:this.model});this.showChildView("thumbnail",e)}},{key:"viewOptions",value:function(){return{collection:this.getCollection(),url:this.getUrl()}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoSearchResultComponent"}},{key:"template",get:function(){return jt.a}},{key:"className",get:function(){return"video-result p-2 container-fluid"}}])&&Dt(t.prototype,n),r&&Dt(t,r),i}(f.a.Component),zt=n(232),Bt=n(433),qt=n.n(Bt);function Wt(e){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yt(e,t){return(Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zt(e);if(t){var o=Zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qt(this,n)}}function Qt(e,t){return!t||"object"!==Wt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zt(e){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yt(e,t)}(i,e);var t,n,r,o=Kt(i);function i(){return Jt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=d.a.getInstance(g.a.SEARCH,this)}},{key:"regions",value:function(){return{cover:{replaceElement:!0,el:".cover-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getUrl",value:function(){return f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var e=new At({model:this.model,classNameOverride:"".concat(zt.coverImage," responsive-img")});this.showChildView("cover",e)}},{key:"viewOptions",value:function(){return{url:this.getUrl(),styles:zt}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"ClassificationSearchResultComponent"}},{key:"template",get:function(){return qt.a}},{key:"className",get:function(){return"p-2 container-fluid"}}])&&Gt(t.prototype,n),r&&Gt(t,r),i}(f.a.Component),$t=n(358),en=n.n($t),tn=n(359),nn=n.n(tn),rn=n(360),on=n.n(rn),an=n(361),cn=n.n(an),un=n(362),sn=n.n(un),ln=n(363),fn=n.n(ln),pn=n(364),hn=n.n(pn),dn=n(365),yn=n.n(dn),vn=n(434),gn=n.n(vn),mn=n(200),bn=n.n(mn),wn=n(435),Sn=n.n(wn),Cn=n(436),On=n.n(Cn);function kn(e){return function(e){if(Array.isArray(e))return En(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return En(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return En(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tn(e,t){return(Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ln(e);if(t){var o=Ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return An(this,n)}}function An(e,t){return!t||"object"!==Pn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ln(e){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return Nn}));var jn=R,Nn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tn(e,t)}(_,e);var t,n,E,R=xn(_);function _(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),(t=R.call(this,e)).viewCache={},t}return t=_,(n=[{key:"initialize",value:function(){this.contextualSearchService=d.a.getInstance(m.b.ContextualSearch,this),this.appVariables=d.a.getInstance(g.a.SEARCH,this),this.storageHelper=p.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}},{key:"events",value:function(){var e;return Rn(e={submit:"onSubmit"},"click .".concat(bn.a.searchSvgContainer),"onClickSearch"),Rn(e,"click a","onTypeaheadSelect"),Rn(e,"keydown","onKeydown"),e}},{key:"regions",value:function(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:w.a.Component,options:{template:On.a,className:"w-100",viewOptions:{styles:Sn.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(v.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(v.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}},{key:"getOrCacheView",value:function(e,t){var n=t.ctor,r=t.viewOptions;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}},{key:"clearViewCache",value:function(){a.each(this.viewCache,(function(e){return e.destroy()})),this.viewCache={}}},{key:"getDynamicTemplate",value:function(e){var t=this;return e===r.Recent?function(e){return t.getOrCacheView("recent:".concat(e),{ctor:Qe,viewOptions:{model:new f.a.Model({name:e}),channelName:t.channelName}}).render().el}:e===i.Classification?function(e){return t.getOrCacheView(e.id,{ctor:Xt,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Video?function(e){return t.getOrCacheView(e.id,{ctor:Ht,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Folder?en.a:e===i.Series?function(e){return t.getOrCacheView(e.id,{ctor:at,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Tags?function(e){return t.getOrCacheView(e.id,{ctor:vt,viewOptions:{model:new f.a.Model(e)}}).render().el}:void 0}},{key:"getLimits",value:function(e){return i.Folder,jn.Folder}},{key:"updateSearchHistory",value:function(e){var t=e.add,n=e.remove,r=e.query;r=r.trim();var o=x.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:jn.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}},{key:"handleRecentSearch",value:function(){if(this.options.showRecentSearch){var e=this.getUI("input").typeahead("val");if(e)this.$el.find(".tt-menu").removeClass("hide-results");else{var t=x.getRecentSearches(this.recentSearchKey,this.storageHelper);if(t.length)return;this.$el.find(".tt-menu").addClass("hide-results")}}}},{key:"onDeleteRecentSearch",value:function(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}},{key:"getInstantSearchAppLink",value:function(e,t){if(t===i.Series)return Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:[e.id]});if(t===i.Video){var n=[e.id];return this.appVariables.addSlugs&&n.push(y.a.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:n})}return t===i.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===i.Classification?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id]}):void 0}},{key:"onTypeaheadSelect",value:function(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),"object"===Pn(t)&&t.id){var o=this.getInstantSearchAppLink(t,n);if(!o)return!1;var i=s.a.buildInstantSearchEvent(this.model.get("query"),t,n),a=i.data,p=i.action;return l.a.log(u.n.InstantSearch,a,p),this.model.clear(),this.getUI("input").typeahead("close"),c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),f.a.AppLinkHelper.trigger(o),!1}var h="string"==typeof t?t:t.query;this.model.set({query:h});var d=n===r.Recent?u.c.Recent:u.c.ShowAll;return this.submitQuery(d),!1}},{key:"onClickSearch",value:function(e){return e.stopPropagation(),this.submitQuery(u.c.SearchIcon),!1}},{key:"onSubmit",value:function(e){return e.preventDefault(),this.submitQuery(u.c.Submit),!1}},{key:"submitQuery",value:function(e){this.updateInitialQuery();var t=this.model.get("query");if(t){this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");var n=k(this.searchContext);c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),f.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}}},{key:"resetQuery",value:function(){this.model.set({query:this.model.get("initialQuery")})}},{key:"updateInitialQuery",value:function(){this.model.set({initialQuery:this.model.get("query")})}},{key:"logSearch",value:function(e,t){var n=s.a.buildSearchEvent(e,t),r=n.data,o=n.action;l.a.log(u.n.Search,r,o)}},{key:"onTypeaheadOpen",value:function(e){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});var t=this.model.get("query");t&&t.length>=P&&this.getUI("input").typeahead("val",t),this.alignTypeahead()}},{key:"onBeforeTypeaheadClose",value:function(e){this.searchContext.get("preventTypeaheadClose")&&(e.preventDefault(),this.getUI("input").focus())}},{key:"onTypeaheadClose",value:function(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}},{key:"showMask",value:function(){this.options.disableMask||(this.$el.addClass("active"),C.showMask())}},{key:"hideMask",value:function(){this.options.disableMask||C.hideMask()}},{key:"alignTypeahead",value:function(){var e=$(".tt-menu");this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}},{key:"onTypeaheadRender",value:function(e,t,n,o){o===r.Recent&&this.handleRecentSearch()}},{key:"initTypeaheadListeners",value:function(){var e=this.getUI("input");e.on("typeahead:select",a.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",a.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",a.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",a.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",a.bind(this.onTypeaheadOpen,this))}},{key:"initNoLibrariesTypeaheadListeners",value:function(){var e=this,t=this.getUI("input");t.on("typeahead:open",a.bind(this.showMask,this)),t.on("typeahead:close",a.bind(this.hideMask,this)),t.on("typeahead:select",a.bind((function(){f.a.AppLinkHelper.trigger(e.appVariables.appLinks.newLibrary)}),this))}},{key:"onKeydown",value:function(e){8!==e.keyCode||this.model.get("query")||c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"onResetSearchContext",value:function(e){e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}},{key:"getRecentSearchBloodhound",value:function(){var e=x.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}},{key:"getDynamicBloodhoundConfig",value:function(){return T.bloodhoundConfig}},{key:"getDynamicTypeaheadConfig",value:function(){var e=this,t=J.getTemplate(fn.a,{fallbackTemplate:cn.a}),n=J.getTemplate(on.a,{fallbackTemplate:cn.a,templateText:h.a.getPhrase(this.lang,"findingResults")});return function(r,i){return{name:e.getConfigName(r.name),source:J.handleQuery(r.bloodhound,{fetchType:o.Remote}),limit:e.getLimits(r.name),display:function(e){return e.name},async:!0,templates:{header:t,pending:0===i?n:cn.a,notFound:cn.a,suggestion:e.getDynamicTemplate(r.name),footer:sn.a}}}}},{key:"getConfigName",value:function(e){switch(e){case i.Classification:return h.a.getPhrase(this.lang,"classifications");case i.Video:return h.a.getPhrase(this.lang,"videos");case i.Tags:return h.a.getPhrase(this.lang,"tags");case i.Series:return h.a.getPhrase(this.lang,"series")}return e}},{key:"getDynamicOptions",value:function(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}},{key:"getRecentSearchSources",value:function(){var e=this;return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:r.Recent,source:J.handleQuery(this.recentSearchEngine,{fetchType:o.Local,ignoreOnQuery:!0}),limit:jn.Default,templates:{header:function(){return hn.a({templateText:h.a.getPhrase(e.lang,"recentSearches")})},suggestion:this.getDynamicTemplate(r.Recent)}}]}},{key:"getDirectSearchSources",value:function(){return[{name:r.Direct,source:J.handleQuery(),display:function(e){return e.query},templates:{suggestion:J.getTemplate(nn.a,{fallbackTemplate:cn.a,templateText:h.a.getPhrase(this.lang,"allResults")}),footer:sn.a}}]}},{key:"getDynamicSearchSources",value:function(){var e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return J.getSearchSources([{name:i.Classification,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}},{key:"getSources",value:function(){var e=[].concat(kn(this.getDirectSearchSources()),kn(this.getDynamicSearchSources()));return this.options.showRecentSearch&&e.push.apply(e,kn(this.getRecentSearchSources())),e}},{key:"getNoLibrariesSource",value:function(){return[{name:"NoLibrary",source:J.handleQuery(),display:function(e){return e.query},templates:{suggestion:J.getTemplate(yn.a,{fallbackTemplate:cn.a,templateText:h.a.getPhrase(this.lang,"noLibraries")})}}]}},{key:"initializeTypeahead",value:function(e){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},e)}},{key:"hasLibraries",value:function(){return!!this.libraryCollection.length}},{key:"getLibraryIds",value:function(){return this.libraryCollection.map((function(e){return e.id}))}},{key:"viewOptions",value:function(){return{styles:bn.a,svg:S.a.getSvg(S.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,libraryText:this.appVariables.searchBarPlaceholder||h.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}},{key:"renderSearchTips",value:function(){this.showChildView("searchTips",new be)}},{key:"renderSearch",value:function(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),c.Validation.bind(this)}},{key:"renderPartialSearch",value:function(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}},{key:"renderSearchContext",value:function(){this.isRendered()&&this.showChildView("searchContext",new Fe({model:this.searchContext}))}},{key:"onRender",value:function(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),c.Validation.unbind(this)}},{key:"name",get:function(){return"SearchBarView"}},{key:"title",get:function(){return!1}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return gn.a}},{key:"lang",get:function(){return"search.searchBar"}},{key:"channelName",get:function(){return"searchbar:".concat(this.cid)}},{key:"className",get:function(){return"search-query-container position-relative m-0 w-100 form-control p-0 ".concat(bn.a.searchBar)}},{key:"defaults",get:function(){return{showRecentSearch:!0}}},{key:"elements",get:function(){return{input:"#search",searchBarContainer:".search-bar-container"}}},{key:"bindings",get:function(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}},{key:"recentSearchKey",get:function(){return"recent:search:".concat(this.currentUser.id)}},{key:"requiredResources",get:function(){return{currentUser:b.b.currentUser,libraryCollection:O.libraries}}}])&&_n(t.prototype,n),E&&_n(t,E),_}(f.a.View)},function(e,t,n){"use strict";var r,o=n(244);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.MostRecent=1]="MostRecent",e[e.AtoZ=2]="AtoZ",e[e.ProductionYear=3]="ProductionYear",e[e.Newest=4]="Newest",e[e.SeriesSort=5]="SeriesSort"}(r||(r={}));var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,o,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"getSortTypeParam",value:function(){return r[this.sort]}}])&&c(t.prototype,n),o&&c(t,o),l}(o.a);n.d(t,"a",(function(){return p}))},function(e,t){e.exports=y},function(e,t,n){e.exports=n(590).default},function(e,t){e.exports=v},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.unreadCount:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.unreadCount:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.unreadCount:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"<p>"+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<img src="'+c(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+c(a(null!=(i=null!=t?t.options:t)?i.imageClass:i,t))+'"/>\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.heading:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.description:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <span class="text-right pl-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionText:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.actionText:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+" "+c(a(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.icon:i,t))?i:"")+'</div><div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.content:i,t))+"</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showActionText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.notificationTime:i,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasNotifications:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div id="notificationsDropdown" class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div aria-labelledby="notificationsDropdown" class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.notificationsContainer:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.confirmSelectionText:i,t))?i:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.searchInfoSvg:i,t))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u=e.lambda,s=e.escapeExpression;return' <span class="border rounded align-middle '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.term:c,t))+'">'+s(u(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+s(e.lambda(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.termContainer:c,t))+'">\r\n'+(null!=(c=n.each.call(l,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?c:"")+"</span>\r\n<span>"+s("function"==typeof(u=null!=(u=n.description||(null!=t?t.description:t))?u:e.hooks.helperMissing)?u.call(l,{name:"description",hash:{},data:o}):u)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchContextTag:i,t))+'" title="'+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:l)?a.call(s,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+u("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:l)?a.call(s,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRecent:i,t))+'">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda,u=e.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'src="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'" class="img-fluid lazy-img w-100 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.playIcon:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){return"data-"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.playSvgContainer:i,t))+'" '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"},5:function(e,t,n,r,o){return'style="display: none;"'},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge float-right '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.durationOverlay:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.url:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+e.escapeExpression(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.duration:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"aligned"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <div class="result-title collection"> '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.type:i,t))+": "+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<a class="row" href="'+c(e.lambda(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.collection:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression;return'<a class="row" href="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.coverContainer:i,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textContainer:i,t))+' px-2">\r\n <div class="result-title text-capitalize">'+u("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="w-100 h-100 align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchInput:i,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+c(a(null!=(i=null!=t?t.options:t)?i.libraryText:i,t))+'" aria-label="Search">\r\n</div>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<button type="submit" tabindex="-1" style="display:none"></button>\r\n<span class="search-tips-region '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tipsContainer:i,t))+'"></span>\r\n'},3:function(e,t,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showPartial:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_1XSQR"}},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region position-relative"></div>\r\n<div id="dialog-region"></div>'},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r,o,i=n(39),a=n(77),c=n(6),u=n(18),s=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};if("undefined"==typeof XMLHttpRequest){var f=require;o=f("request")}var p=function(t){function n(e){var n=t.call(this)||this;if(void 0===o)throw new Error("The 'request' module could not be loaded.");return n.logger=e,n.cookieJar=o.jar(),n.request=o.defaults({jar:n.cookieJar}),n}return s(n,t),n.prototype.send=function(t){var n=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new i.a):new Promise((function(r,o){var s;s=Object(u.g)(t.content)?e.from(t.content):t.content||"";var f=n.request(t.url,{body:s,encoding:"arraybuffer"===t.responseType?null:"utf8",headers:l({"X-Requested-With":"XMLHttpRequest"},t.headers),method:t.method,timeout:t.timeout},(function(e,u,s){if(t.abortSignal&&(t.abortSignal.onabort=null),e)return"ETIMEDOUT"===e.code&&(n.logger.log(c.a.Warning,"Timeout from HTTP request."),o(new i.c)),n.logger.log(c.a.Warning,"Error from HTTP request. "+e),void o(e);u.statusCode>=200&&u.statusCode<300?r(new a.b(u.statusCode,u.statusMessage||"",s)):o(new i.b(u.statusMessage||"",u.statusCode||0))}));t.abortSignal&&(t.abortSignal.onabort=function(){f.abort(),o(new i.a)})}))},n.prototype.getCookieString=function(e){return this.cookieJar.getCookieString(e)},n}(a.a)}).call(this,n(368).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(106),o=n(18),i=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return r.a.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(t){var n,i;if(Object(o.g)(t)||void 0!==e&&t instanceof e){var a=new Uint8Array(t);if(-1===(u=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var c=u+1;n=String.fromCharCode.apply(null,a.slice(0,c)),i=a.byteLength>c?a.slice(c).buffer:null}else{var u,s=t;if(-1===(u=s.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");c=u+1;n=s.substring(0,c),i=s.length>c?s.substring(c):null}var l=r.a.parse(n),f=JSON.parse(l[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[i,f]},t}()}).call(this,n(368).Buffer)},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var o,i,a,c=t||[0],u=(n=n||0)>>>3,s=-1===r?3:0;for(o=0;o<e.length;o+=1)i=(a=o+u)>>>2,c.length<=i&&c.push(0),c[i]|=e[o]<<8*(s+r*(a%4));return{value:c,binLen:8*e.length+n}}function r(e,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var o,i,a,c;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(c=(o>>>1)+s)>>>2;u.length<=a;)u.push(0);u[a]|=i<<8*(l+r*(c%4))}return{value:u,binLen:4*e.length+n}}(e,t,n,o)};case"TEXT":return function(e,t,n){return function(e,t,n,r,o){var i,a,c,u,s,l,f,p,h=0,d=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-1===o?3:0,c=0;c<e.length;c+=1)for(a=[],128>(i=e.charCodeAt(c))?a.push(i):2048>i?(a.push(192|i>>>6),a.push(128|63&i)):55296>i||57344<=i?a.push(224|i>>>12,128|i>>>6&63,128|63&i):(c+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(c)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),u=0;u<a.length;u+=1){for(s=(l=h+y)>>>2;d.length<=s;)d.push(0);d[s]|=a[u]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,c=0;c<e.length;c+=1){for(i=e.charCodeAt(c),!0===p&&(i=(u=255&i)<<8|i>>>8),s=(l=h+y)>>>2;d.length<=s;)d.push(0);d[s]|=i<<8*(f+o*(l%4)),h+=2}return{value:d,binLen:8*h+r}}(e,r,t,n,o)};case"B64":return function(e,n,r){return function(e,n,r,o){var i,a,c,u,s,l,f=0,p=n||[0],h=(r=r||0)>>>3,d=-1===o?3:0,y=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==y&&y<e.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<e.length;i+=4){for(u=e.substr(i,4),c=0,a=0;a<u.length;a+=1)c|=t.indexOf(u.charAt(a))<<18-6*a;for(a=0;a<u.length-1;a+=1){for(s=(l=f+h)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(d+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(e,n,r,o)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var o,i,a,c,u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),a=(c=i+s)>>>2,u.length<=a&&u.push(0),u[a]|=o<<8*(l+r*(c%4));return{value:u,binLen:8*e.length+n}}(e,t,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,o){return n(new Uint8Array(e),t,r,o)}(e,t,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e,n,r,o){switch(e){case"HEX":return function(e){return function(e,t,n,r){var o,i,a="",c=t/8,u=-1===n?3:0;for(o=0;o<c;o+=1)i=e[o>>>2]>>>8*(u+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(e,n,r,o)};case"B64":return function(e){return function(e,n,r,o){var i,a,c,u,s,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(u=i+1<f?e[i+1>>>2]:0,s=i+2<f?e[i+2>>>2]:0,c=(e[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(u>>>8*(p+r*((i+1)%4))&255)<<8|s>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?t.charAt(c>>>6*(3-a)&63):o.b64Pad;return l}(e,n,r,o)};case"BYTES":return function(e){return function(e,t,n){var r,o,i="",a=t/8,c=-1===n?3:0;for(r=0;r<a;r+=1)o=e[r>>>2]>>>8*(c+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=new ArrayBuffer(o),a=new Uint8Array(i),c=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(c+n*(r%4))&255;return i}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function c(e,t,n){return e^t^n}function u(e,t,n){return e&t^e&n^t&n}function s(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(e,t,n,r,o){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,o,i,f,p,h,d,y=[];for(n=t[0],r=t[1],o=t[2],i=t[3],f=t[4],h=0;h<80;h+=1)y[h]=h<16?e[h]:a(y[h-3]^y[h-8]^y[h-14]^y[h-16],1),p=h<20?l(a(n,5),(d=r)&o^~d&i,f,1518500249,y[h]):h<40?l(a(n,5),c(r,o,i),f,1859775393,y[h]):h<60?l(a(n,5),u(r,o,i),f,2400959708,y[h]):l(a(n,5),c(r,o,i),f,3395469782,y[h]),f=i,i=o,o=a(r,30),r=n,n=p;return t[0]=s(n,t[0]),t[1]=s(r,t[1]),t[2]=s(o,t[2]),t[3]=s(i,t[3]),t[4]=s(f,t[4]),t}function h(e,t,n,r){for(var o,i=15+(t+65>>>9<<4),a=t+n;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&a,e[i-1]=a/4294967296|0,o=0;o<e.length;o+=16)r=p(e.slice(o,o+16),r);return r}return function(t){function n(e,n,o){var i=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=t.call(this,e,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(e){return e.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(e,t,n,o){var i="hmacKey must include a value and format";if(!t)throw new Error(i);if(void 0===t.value||!t.format)throw new Error(i);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,i.u)),i}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,o=this.s(e,this.Y,this.I),i=o.binLen,a=o.value,c=i>>>5;for(t=0;t<c;t+=r)n+this.T<=i&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,c=i(t);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");a=c.outputLen}var u=o(e,a,this.u,c);if(!0===this.L&&this.i)return u(this.i(c));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return u(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var o=r(t,(n||{}).encoding||"UTF8",this.u);this.B(o(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=i(t);return o(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.17-rc.4"}')},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(591));var o=r.tokenize,i=r.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function c(e){return e.replace(/"/g,"&quot;")}function u(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+c(r)+'"')}return t.join(" ")}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new i(t);for(var n=o(e),r=[],s=0;s<n.length;s++){var l=n[s];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,h=f.formattedHref,d=f.tagName,y=f.className,v=f.target,g=f.attributes,m="<"+d+' href="'+c(h)+'"';y&&(m+=' class="'+c(y)+'"'),v&&(m+=' target="'+c(v)+'"'),g&&(m+=" "+u(g)),m+=">"+a(p)+"</"+d+">",r.push(m)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return s(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return s(this,e)})}t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(162),o=c(n(592)),i=c(n(593)),a=c(n(594));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var u=function(e){return a.run(i.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||t&&i.type!==t||r.push(i.toObject())}return r},t.inherits=r.inherits,t.options=o,t.parser=a,t.scanner=i,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=u},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:o.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:o.events,this.format=e.hasOwnProperty("format")?e.format:o.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:o.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:o.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:o.tagName,this.target=e.hasOwnProperty("target")?e.target:o.target,this.validate=e.hasOwnProperty("validate")?e.validate:o.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||o.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||o.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:o.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=o,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[e])?i(t,n.type):i}return a},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(347),o=n(205),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),u="0123456789abcdefghijklmnopqrstuvwxyz".split(""),s=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(e){return new r.CharacterState(e)},p=f(),h=f(o.NUM),d=f(o.DOMAIN),y=f(),v=f(o.WS);p.on("@",f(o.AT)).on(".",f(o.DOT)).on("+",f(o.PLUS)).on("#",f(o.POUND)).on("?",f(o.QUERY)).on("/",f(o.SLASH)).on("_",f(o.UNDERSCORE)).on(":",f(o.COLON)).on("{",f(o.OPENBRACE)).on("[",f(o.OPENBRACKET)).on("<",f(o.OPENANGLEBRACKET)).on("(",f(o.OPENPAREN)).on("}",f(o.CLOSEBRACE)).on("]",f(o.CLOSEBRACKET)).on(">",f(o.CLOSEANGLEBRACKET)).on(")",f(o.CLOSEPAREN)).on("&",f(o.AMPERSAND)).on([",",";","!",'"',"'"],f(o.PUNCTUATION)),p.on("\n",f(o.NL)).on(s,v),v.on(s,v);for(var g=0;g<a.length;g++){var m=(0,r.stateify)(a[g],p,o.TLD,o.DOMAIN);l.push.apply(l,m)}var b=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),C=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,b),l.push.apply(l,w),l.push.apply(l,S),l.push.apply(l,C);var O=b.pop(),k=w.pop(),E=S.pop(),P=C.pop(),R=f(o.DOMAIN),_=f(o.PROTOCOL),T=f(o.MAILTO);k.on("s",R).on(":",_),E.on("s",R).on(":",_),l.push(R),O.on(":",_),R.on(":",_),P.on(":",T);var x=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,x),p.on(c,h),h.on("-",y).on(c,h).on(u,d),d.on("-",y).on(u,d);for(var A=0;A<l.length;A++)l[A].on("-",y).on(u,d);y.on("-",y).on(c,d).on(u,d),p.defaultTransition=f(o.SYM);var L=p;t.State=r.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],o=0;o<n;){for(var i=p,a=null,c=0,u=null,s=-1;o<n&&(a=i.next(t[o]));)(i=a).accepts()?(s=0,u=i):s>=0&&s++,c++,o++;if(!(s<0)){o-=s,c-=s;var l=u.emit();r.push(new l(e.substr(o-c,c)))}}return r},t.start=L},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(347),o=n(595),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o),a=n(205);var c=function(e){return new r.TokenState(e)},u=c(),s=c(),l=c(),f=c(),p=c(),h=c(),d=c(),y=c(o.URL),v=c(),g=c(o.URL),m=c(o.URL),b=c(),w=c(),S=c(),C=c(),O=c(),k=c(o.URL),E=c(o.URL),P=c(o.URL),R=c(o.URL),_=c(),T=c(),x=c(),A=c(),L=c(),j=c(),N=c(o.EMAIL),I=c(),D=c(o.EMAIL),U=c(o.MAILTOEMAIL),M=c(),F=c(),V=c(),H=c(),z=c(o.NL);u.on(a.NL,z).on(a.PROTOCOL,s).on(a.MAILTO,l).on(a.SLASH,f),s.on(a.SLASH,f),f.on(a.SLASH,p),u.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,y).on(a.NUM,h),p.on(a.TLD,m).on(a.DOMAIN,m).on(a.NUM,m).on(a.LOCALHOST,m),h.on(a.DOT,d),L.on(a.DOT,j),d.on(a.TLD,y).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),j.on(a.TLD,N).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),y.on(a.DOT,d),N.on(a.DOT,j),y.on(a.COLON,v).on(a.SLASH,m),v.on(a.NUM,g),g.on(a.SLASH,m),N.on(a.COLON,I),I.on(a.NUM,D);var B=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],q=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];m.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,C).on(a.OPENPAREN,O),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,C).on(a.OPENPAREN,O),w.on(a.CLOSEBRACE,m),S.on(a.CLOSEBRACKET,m),C.on(a.CLOSEANGLEBRACKET,m),O.on(a.CLOSEPAREN,m),k.on(a.CLOSEBRACE,m),E.on(a.CLOSEBRACKET,m),P.on(a.CLOSEANGLEBRACKET,m),R.on(a.CLOSEPAREN,m),_.on(a.CLOSEBRACE,m),T.on(a.CLOSEBRACKET,m),x.on(a.CLOSEANGLEBRACKET,m),A.on(a.CLOSEPAREN,m),w.on(B,k),S.on(B,E),C.on(B,P),O.on(B,R),w.on(q,_),S.on(q,T),C.on(q,x),O.on(q,A),k.on(B,k),E.on(B,E),P.on(B,P),R.on(B,R),k.on(q,k),E.on(q,E),P.on(q,P),R.on(q,R),_.on(B,k),T.on(B,E),x.on(B,P),A.on(B,R),_.on(q,_),T.on(q,T),x.on(q,x),A.on(q,A),m.on(B,m),b.on(B,m),m.on(q,b),b.on(q,b),l.on(a.TLD,U).on(a.DOMAIN,U).on(a.NUM,U).on(a.LOCALHOST,U),U.on(B,U).on(q,M),M.on(B,U).on(q,M);var W=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(W,F).on(a.AT,V),y.on(W,F).on(a.AT,V),d.on(W,F),F.on(W,F).on(a.AT,V).on(a.DOT,H),H.on(W,F),V.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,N);t.State=r.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,r=[],i=[];n<t;){for(var a=u,c=null,s=null,l=0,f=null,p=-1;n<t&&!(c=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(s=c||a.next(e[n]));)c=null,(a=s).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(e[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var d=f.emit();r.push(new d(e.slice(n-l,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},t.start=u},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(348),o=n(162),i=n(205);function a(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var u=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),s=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,o=[],c=0;r[c]instanceof i.PROTOCOL;)t=!0,o.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof i.SLASH;)n=!0,o.push(r[c].toString()),c++;for(;a(r[c]);)o.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)o.push(r[c].toString());return o=o.join(""),t||n||(o=e+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=c,t.MAILTOEMAIL=u,t.EMAIL=s,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=s(e),a=r[0],c=r[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===c&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===c&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,c=n-o;a<c;a+=16383)i.push(l(e,a,a+16383>c?c:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c<u;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],c=t;c<n;c+=3)o=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(255&e[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,c=8*o-r-1,u=(1<<c)-1,s=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=c;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=s}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,c,u,s=8*i-o-1,l=(1<<s)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(t*u-1)*Math.pow(2,o),a+=f):(c=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&c,h+=d,c/=256,o-=8);for(a=a<<o|c,s+=o;s>0;e[n+h]=255&a,h+=d,a/=256,s-=8);e[n+h-d]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(488),n(489),n(490),n(491),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(587),n(588),n(589);var r=n(2),o=n(0),i=n.n(o),a=n(9),c=n(180),u=n(16);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,r,i=h(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"onShowAlert",value:function(e){if(this.layoutOptions.options.alertRegion){var t=e.ctor,n=e.collection,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,o.createElement(t,{alerts:r,removeAlert:function(e){return a.Radio.channel(u.a.ALERT).trigger("remove:alert",e)}}))}}}])&&f(t.prototype,n),r&&f(t,r),c}(c.a),g="content",m="popup",b="alert",w=n(3),S="TeacherLayout",C="EmbedLayout",O=n(5),k=n(8),E=n(10),P=n(28),R=n(116),_=[{application:O.a.DEFAULT,action:E.a.Default.NOT_FOUND},{application:O.a.DEFAULT,action:E.a.Default.ERROR},{application:O.a.DEFAULT,action:E.a.Default.DEV_ERROR},{application:O.a.DEFAULT,action:E.a.Default.DIALOG_ERROR}];function T(e,t){_.find((function(t){return t.application===e.application&&t.action===e.action}))?t(e):k.a.getInstance(P.a.FlightUser).getCurrentUser((function(n){k.a.releaseInstance(P.a.FlightUser),n.emailVerified?t(e):(r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new R.a))}),(function(){k.a.releaseInstance(P.a.FlightUser),t(e)}))}var x=n(227),A=n.n(x),L=n(248),j=[{application:O.a.SUBJECT,action:E.a.Subjects.PREFERENCES},{application:O.a.DEFAULT,action:E.a.Default.SHARE},{application:O.a.DEFAULT,action:E.a.Default.NOT_FOUND}];function N(e,t){I(e,(function(n){if(n)return r.a.AppLinkHelper.trigger({application:O.a.SUBJECT,action:E.a.Subjects.PREFERENCES}),void r.a.AppLinkUtility.routingEnded();t(e)}))}function I(e,t){if(j.find((function(t){var n,r;return t.application===(null===(n=e)||void 0===n?void 0:n.application)&&t.action===(null===(r=e)||void 0===r?void 0:r.action)})))t(!1);else{var n=k.a.getInstance(P.a.FlightUser),r=k.a.getInstance(P.a.Settings);n.getCurrentUser((function(e){k.a.releaseInstance(P.a.FlightUser),("Admin"===e.role||"SuperAdmin"===e.role)&&A.a.get("_onboardingComplete")!==e.id.toString()?r.getSetting(e.id,L.a.HasCompletedOnboarding,(function(n){if(k.a.releaseInstance(P.a.Settings),n.value)return A.a.set("_onboardingComplete",e.id,{expires:30}),void t(!1);t(!0)})):t(!1)}),(function(){k.a.releaseInstance(P.a.FlightUser),t(!1)}))}}function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}function V(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B(this,n)}}function B(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var W=function(e){V(n,e);var t=z(n);function n(){return U(this,n),t.apply(this,arguments)}return F(n,[{key:"channelName",get:function(){return O.a.CLASSROOMS}},{key:"appRoutes",get:function(){return{"classrooms(/)":"index","classrooms/:id":"classroom","classrooms/:id/manage":"manageClassroom"}}},{key:"appLinks",get:function(){return["newClassroom","editClassroom","deleteClassroom","addStudents","removeStudents","newGroup","editGroup","deleteGroup"]}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),J=function(e){V(r,e);var t=z(r);function r(){return U(this,r),t.apply(this,arguments)}return F(r,[{key:"index",value:function(){var e=this;n.e(32).then(n.bind(null,1308)).then((function(t){var n=t.ClassroomsView;e.layout.showChildView(g,i.a.createElement(n,null))}))}},{key:"classroom",value:function(e){var t=this;n.e(37).then(n.bind(null,1305)).then((function(n){var r=n.ClassroomView;t.layout.showChildView(g,i.a.createElement(r,{id:e}))}))}},{key:"manageClassroom",value:function(e,t){var r=this,o=t.tab;["students","groups"].includes(o)||(o="students"),Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(24)]).then(n.bind(null,1303)).then((function(t){var n=t.ManageClassroomView;r.layout.showChildView(g,i.a.createElement(n,{id:e,activeTab:o}))}))}},{key:"newClassroom",value:function(){var e=this;Promise.all([n.e(1),n.e(40)]).then(n.bind(null,1270)).then((function(t){var n=t.CreateClassroomView,r={actionType:w.n.Create,entity:w.d.Classroom,workflowPhase:w.o.Complete,location:w.j.Popup};e.layout.showChildView(m,i.a.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editClassroom",value:function(e){var t=this;Promise.all([n.e(1),n.e(41)]).then(n.bind(null,1271)).then((function(n){var r=n.EditClassroomView,o={actionType:w.n.Edit,entity:w.d.Classroom,workflowPhase:w.o.Complete,location:w.j.Popup};t.layout.showChildView(m,i.a.createElement(r,{id:e,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteClassroom",value:function(e){var t=this;n.e(58).then(n.bind(null,1272)).then((function(n){var r=n.DeleteClassroomView,o={actionType:w.n.Delete,entity:w.d.Classroom,workflowPhase:w.o.Complete,location:w.j.Popup};t.layout.showChildView(m,i.a.createElement(r,{id:e,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"addStudents",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(31)]).then(n.bind(null,1273)).then((function(n){var r=n.AddStudentsToClassroomView,o={actionType:w.n.Associate,entity:w.d.Classroom,location:w.j.Popup,descriptor:w.a.User,workflowPhase:w.o.Complete};t.layout.showChildView(m,i.a.createElement(r,{classroomId:e,closePopup:function(){return t.layout.closePopup()},analyticsOptions:o}))}))}},{key:"removeStudents",value:function(e,t){var r=this,o=t.studentIds;n.e(59).then(n.bind(null,1274)).then((function(t){var n=t.RemoveStudentsFromClassroomView,a={actionType:w.n.Dissociate,entity:w.d.Classroom,location:w.j.Popup,descriptor:w.a.User,workflowPhase:w.o.Complete};r.layout.showChildView(m,i.a.createElement(n,{classroomId:e,studentIds:o,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"newGroup",value:function(e,t){var r=this,o=t.addStudents,a=void 0===o?[]:o;Promise.all([n.e(1),n.e(27)]).then(n.bind(null,1275)).then((function(t){var n=t.CreateClassroomGroupView,o={entity:w.d.ClassroomGroup,location:w.j.Popup,workflowPhase:w.o.Complete};r.layout.showChildView(m,i.a.createElement(n,{classroomId:e,studentIds:a,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"editGroup",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(28)]).then(n.bind(null,1276)).then((function(n){var o=n.EditClassroomGroupView,a={entity:w.d.ClassroomGroup,actionType:w.n.Edit,location:w.j.Popup,workflowPhase:w.o.Complete};r.layout.showChildView(m,i.a.createElement(o,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"deleteGroup",value:function(e,t){var r=this;n.e(57).then(n.bind(null,1277)).then((function(n){var o=n.DeleteClassroomGroupView,a={entity:w.d.ClassroomGroup,actionType:w.n.Delete,location:w.j.Popup,workflowPhase:w.o.Complete};r.layout.showChildView(m,i.a.createElement(o,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return O.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return W}}]),r}(v),G=n(242),Y=n(128),K="content",Q="popup",Z="alert",X=n(47),ee={getVideoAppLink:function(e){return{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO,args:[e.id,X.a.slugify(e.name)],params:e.lastProgressPoint?{t:Math.floor(e.lastProgressPoint)}:{}}},getSeriesAppLink:function(e){return{application:O.a.DEFAULT,action:E.a.Default.SERIES,args:[e.id,X.a.slugify(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:O.a.CONTENT_UPDATES,action:E.a.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,X.a.slugify(e.name)]}},getClassificationAppLink:function(e){return{application:O.a.SUBJECT,action:E.a.Subjects.CLASSIFICATION,args:[e.id,X.a.slugify(e.name)]}},getShareAppLink:function(e){return{application:O.a.DEFAULT,action:E.a.Default.SHARE,args:[e.id],params:{entityType:"video"}}},getAddToPlaylistAppLink:function(e){return{application:O.a.PLAYLISTS,action:E.a.Playlists.ADD_TO_PLAYLIST,args:[e.id]}},dashboardAppLink:{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME},contentUpdatesAppLink:{application:O.a.CONTENT_UPDATES,action:E.a.ContentUpdates.CONTENT_UPDATES}};function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),e}function ie(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ae(e,t)}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=se(e);if(t){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==te(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var le=function(e){ie(n,e);var t=ce(n);function n(){return ne(this,n),t.apply(this,arguments)}return oe(n,[{key:"channelName",get:function(){return O.a.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),fe=function(e){ie(r,e);var t=ce(r);function r(){return ne(this,r),t.apply(this,arguments)}return oe(r,[{key:"contentUpdates",value:function(){var e=this,t=[Y.a.Share,Y.a.AddToPlaylist],r=function(e,t){switch(t){case Y.a.AddToPlaylist:return ee.getAddToPlaylistAppLink(e);case Y.a.Share:return ee.getShareAppLink(e)}};Promise.all([n.e(0),n.e(5),n.e(56)]).then(n.bind(null,1309)).then((function(n){var i=n.ContentUpdatesView;e.layout.showChildView(K,o.createElement(G.a.Provider,{value:{videoActions:t,getActionAppLink:r}},o.createElement(i,{appLinks:ee})))}))}},{key:"classificationUpdate",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(5),n.e(63)]).then(n.bind(null,1278)).then((function(t){var n=t.ClassificationUpdateView;r.layout.showChildView(K,o.createElement(n,{classificationId:e,appLinks:ee}))}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.CONTENT_UPDATES}}],[{key:"router",get:function(){return le}}]),r}(v);function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t,n){return t&&de(e.prototype,t),n&&de(e,n),e}function ve(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ge(e,t)}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=we(e);if(t){var o=we(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return be(this,n)}}function be(e,t){return!t||"object"!==pe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Se=function(e){ve(n,e);var t=me(n);function n(){return he(this,n),t.apply(this,arguments)}return ye(n,[{key:"channelName",get:function(){return O.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"(/)":"index","dashboard/:id/:name":"dashboard"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Ce=function(e){ve(r,e);var t=me(r);function r(){return he(this,r),t.apply(this,arguments)}return ye(r,[{key:"index",value:function(){var e=this;Promise.all([n.e(0),n.e(2),n.e(35)]).then(n.bind(null,1306)).then((function(t){var n=t.DashboardView;e.layout.showChildView(K,o.createElement(n,null))}))}},{key:"dashboard",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.cursor||1;Promise.all([n.e(0),n.e(15)]).then(n.bind(null,1318)).then((function(t){var n=t.DashboardWidgetView;r.layout.showChildView(K,o.createElement(n,{widgetId:e,cursor:a}))}))}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return O.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}}],[{key:"router",get:function(){return Se}}]),r}(v);function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pe(e,t,n){return t&&Ee(e.prototype,t),n&&Ee(e,n),e}function Re(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ae(e);if(t){var o=Ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(e){Re(n,e);var t=Te(n);function n(){return ke(this,n),t.apply(this,arguments)}return Pe(n,[{key:"channelName",get:function(){return O.a.DEFAULT}},{key:"appRoutes",get:function(){return{"videos/:id(/:slug)":"playVideo","series/:id(/:slug)":"series","share/:shortCode(/)":"playSharedVideo","favourited-videos(/)":"favouriteVideos","my-videos(/)":"myVideos","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","dialogError","error","notFound","editVideo","share"]}},{key:"externalRoutes",get:function(){return{"logout(/)":"logOut","login(/)":"logIn"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),je=function(e){Re(i,e);var t=Te(i);function i(){return ke(this,i),t.apply(this,arguments)}return Pe(i,[{key:"myVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(22)]).then(n.bind(null,1310)).then((function(n){var r=n.MyVideosView;t.layout.showChildView(K,o.createElement(r,{cursor:e.cursor}))}))}},{key:"share",value:function(e,t){var r=this;n.e(12).then(n.bind(null,1307)).then((function(n){var i=n.ShareView;r.layout.showChildView(Q,o.createElement(i,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"playVideo",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"string"==typeof t?Promise.all([n.e(0),n.e(2),n.e(4),n.e(8)]).then(n.bind(null,1319)).then((function(t){var n=t.PlayView;r.layout.showChildView(K,o.createElement(n,{id:e,startTime:i.t}))})):this.playVideoNoSlug(e,t||{})}},{key:"playVideoNoSlug",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(2),n.e(4),n.e(8)]).then(n.bind(null,1319)).then((function(n){var i=n.PlayView;r.layout.showChildView(K,o.createElement(i,{id:e,startTime:t.t}))}))}},{key:"playSharedVideo",value:function(e){var t=this;Promise.all([n.e(0),n.e(2),n.e(4),n.e(61)]).then(n.bind(null,1279)).then((function(n){var r=n.PlaySharedView;t.layout.showChildView(K,o.createElement(r,{shortCode:e}))}))}},{key:"editVideo",value:function(e){var t=this;Promise.all([n.e(1),n.e(46)]).then(n.bind(null,1280)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(Q,o.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"series",value:function(e,t,r){var i=this;Promise.all([n.e(0),n.e(13)]).then(n.bind(null,1281)).then((function(t){var n,a=t.SeriesView;i.layout.showChildView(K,o.createElement(a,{id:e,cursor:null===(n=r)||void 0===n?void 0:n.cursor}))}))}},{key:"favouriteVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(21)]).then(n.bind(null,1282)).then((function(n){var r=n.FavouriteVideosView;t.layout.showChildView(K,o.createElement(r,{cursor:e.cursor}))}))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new R.a)}},{key:"notFound",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(51).then(n.bind(null,1283)).then((function(n){var r=n.NotFoundView;e.layout.showChildView(K,o.createElement(r,{error:t}))}))}},{key:"error",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(53).then(n.bind(null,1071)).then((function(n){var r=n.ErrorView;e.layout.showChildView(K,o.createElement(r,{error:t}))}))}},{key:"dialogError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");if(t){var r=t.dialogOptions;n.e(62).then(n.bind(null,1284)).then((function(n){var i=n.DialogView;e.layout.showChildView(Q,o.createElement(i,{title:r.title,text:r.text,buttons:r.buttons,onDone:t.onDone,onFail:t.onFail,closePopup:function(){return e.layout.closePopup()}}))}))}}},{key:"devError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(64).then(n.bind(null,1285)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(K,o.createElement(r,{error:t}))}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.DEFAULT}}],[{key:"router",get:function(){return Le}}]),i}(v);function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ue(e,t,n){return t&&De(e.prototype,t),n&&De(e,n),e}function Me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ze(e);if(t){var o=ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return He(this,n)}}function He(e,t){return!t||"object"!==Ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Be=function(e){Me(n,e);var t=Ve(n);function n(){return Ie(this,n),t.apply(this,arguments)}return Ue(n,[{key:"channelName",get:function(){return O.a.EMBED}},{key:"appRoutes",get:function(){return{"share/embed/:shortCode":"embedVideo"}}},{key:"filters",get:function(){return[T]}}]),n}(r.a.AppRouter),qe=function(e){Me(r,e);var t=Ve(r);function r(){return Ie(this,r),t.apply(this,arguments)}return Ue(r,[{key:"embedVideo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.a,a=void 0!==i&&i;n.e(54).then(n.bind(null,1286)).then((function(n){var r=n.EmbedView;t.layout.showChildView(K,o.createElement(r,{id:e,autoplay:a}))}))}},{key:"name",get:function(){return"Embed Application"}},{key:"layoutOptions",get:function(){return{name:C}}},{key:"channelName",get:function(){return O.a.EMBED}}],[{key:"router",get:function(){return Be}}]),r}(v),We=n(148);function Je(e){return(Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ke(e,t,n){return t&&Ye(e.prototype,t),n&&Ye(e,n),e}function Qe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ze(e,t)}function Ze(e,t){return(Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=et(e);if(t){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $e(this,n)}}function $e(e,t){return!t||"object"!==Je(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tt=function(e){Qe(n,e);var t=Xe(n);function n(){return Ge(this,n),t.apply(this,arguments)}return Ke(n,[{key:"channelName",get:function(){return O.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),nt=function(e){Qe(r,e);var t=Xe(r);function r(){return Ge(this,r),t.apply(this,arguments)}return Ke(r,[{key:"index",value:function(e){var t=this;n.e(52).then(n.bind(null,1320)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(g,o.createElement(We.a,{view:r,options:{params:e}}))}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:b}}}},{key:"channelName",get:function(){return O.a.NOTIFICATIONS}}],[{key:"router",get:function(){return tt}}]),r}(v),rt=n(85),ot=function(e){switch(e){case"recently_added":return rt.a.RecentlyUpdated;case"atoz":return rt.a.AtoZ;case"ztoa":return rt.a.ZtoA;case"newest":return rt.a.Newest;case"oldest":return rt.a.Oldest;default:return rt.a.Newest}};function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t,n){return t&&ct(e.prototype,t),n&&ct(e,n),e}function st(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lt(e,t)}function lt(e,t){return(lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ht(e);if(t){var o=ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pt(this,n)}}function pt(e,t){return!t||"object"!==it(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dt=function(e){st(n,e);var t=ft(n);function n(){return at(this,n),t.apply(this,arguments)}return ut(n,[{key:"channelName",get:function(){return O.a.PLAYLISTS}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/:id(/:slug)":"playlist"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","addToPlaylist","removeVideoFromPlaylist"]}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),yt=function(e){st(r,e);var t=ft(r);function r(){return at(this,r),t.apply(this,arguments)}return ut(r,[{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:w.j.Popup}}}},{key:"index",value:function(e){var t=this,r=function(e){return{application:O.a.PLAYLISTS,action:E.a.Playlists.PLAYLIST,args:[e.id,X.a.slugify(e.name)]}};this.setDefaultQueryParams({sort:e.sort||rt.a.Newest}),Promise.all([n.e(6),n.e(16)]).then(n.bind(null,1315)).then((function(n){var i=n.PlaylistsView;t.layout.showChildView(K,o.createElement(i,{getPlaylistAppLink:r,key:e.sort,sort:ot(e.sort)}))}))}},{key:"playlist",value:function(e){var t=this,r=function(e){return{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO,args:[e.id,X.a.slugify(e.name)],params:e.lastProgressPoint?{t:Math.floor(e.lastProgressPoint)}:{}}},i=function(e){return{application:O.a.DEFAULT,action:E.a.Default.SERIES,args:[e.id,X.a.slugify(e.name)]}};Promise.all([n.e(0),n.e(6),n.e(14)]).then(n.bind(null,1304)).then((function(n){var a=n.PlaylistView;t.layout.showChildView(K,o.createElement(a,{key:e,playlistId:e,application:O.a.PLAYLISTS,getVideoAppLink:r,getSeriesAppLink:i,allowEdit:!0}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(1),n.e(7),n.e(66)]).then(n.bind(null,1287)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(Q,o.createElement(n,Object.assign({application:O.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(7),n.e(65)]).then(n.bind(null,1288)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(Q,o.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(44).then(n.bind(null,1289)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(Q,o.createElement(r,Object.assign({key:e,playlistId:e,routeToOnDelete:{application:O.a.PLAYLISTS,action:E.a.Playlists.HOME}},t.getPopupProps())))}))}},{key:"addToPlaylist",value:function(e){var t=this;n.e(30).then(n.bind(null,1311)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(Q,o.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(45).then(n.bind(null,1290)).then((function(n){var i=n.RemoveVideoFromPlaylistView;r.layout.showChildView(Q,o.createElement(i,Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},r.getPopupProps())))}))}},{key:"name",get:function(){return"Playlists Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.PLAYLISTS}}],[{key:"router",get:function(){return dt}}]),r}(v);function vt(e){return(vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bt(e,t,n){return t&&mt(e.prototype,t),n&&mt(e,n),e}function wt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&St(e,t)}function St(e,t){return(St=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kt(e);if(t){var o=kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ot(this,n)}}function Ot(e,t){return!t||"object"!==vt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Et=function(e){wt(n,e);var t=Ct(n);function n(){return gt(this,n),t.apply(this,arguments)}return bt(n,[{key:"channelName",get:function(){return O.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Pt=function(e){wt(r,e);var t=Ct(r);function r(){return gt(this,r),t.apply(this,arguments)}return bt(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(20)]).then(n.bind(null,1312)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(K,o.createElement(r,{queryParams:e}))}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0}}}},{key:"channelName",get:function(){return O.a.SEARCH}}],[{key:"router",get:function(){return Et}}]),r}(r.a.Application),Rt=n(32);function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function At(e,t,n){return t&&xt(e.prototype,t),n&&xt(e,n),e}function Lt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jt(e,t)}function jt(e,t){return(jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dt(e);if(t){var o=Dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return It(this,n)}}function It(e,t){return!t||"object"!==_t(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dt(e){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=function(e){Lt(n,e);var t=Nt(n);function n(){return Tt(this,n),t.apply(this,arguments)}return At(n,[{key:"channelName",get:function(){return O.a.SUBJECT}},{key:"appRoutes",get:function(){return{"subjects/preferences":"preferences","subjects/:id(/:slug)":"classification"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Mt=function(e){Lt(r,e);var t=Nt(r);function r(){return Tt(this,r),t.apply(this,arguments)}return At(r,[{key:"initialize",value:function(){this.subjectsAppVariables=k.a.getInstance(Rt.a.SUBJECTS,this)}},{key:"classification",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(2),n.e(11)]).then(n.bind(null,1302)).then((function(t){var n=t.ClassificationView;r.layout.showChildView(g,o.createElement(n,{key:e,id:e}))}))}},{key:"preferences",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.e(36).then(n.bind(null,1321)).then((function(n){var r=n.BasePreferencesView;e.layout.showChildView(g,o.createElement(r,{step:t.step||"",redirectUrl:t.redirectUrl||""}))}))}},{key:"onShowAlert",value:function(){}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return O.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:this.subjectsAppVariables.hasCompletedOnboarding,alertRegion:b}}}}],[{key:"router",get:function(){return Ut}}]),r}(v);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zt(e,t,n){return t&&Ht(e.prototype,t),n&&Ht(e,n),e}function Bt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qt(e,t)}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gt(e);if(t){var o=Gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jt(this,n)}}function Jt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yt=function(e){Bt(n,e);var t=Wt(n);function n(){return Vt(this,n),t.apply(this,arguments)}return zt(n,[{key:"channelName",get:function(){return O.a.UPLOAD}},{key:"appLinks",get:function(){return["editUpload","cancelUpload"]}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Kt=function(e){Bt(r,e);var t=Wt(r);function r(){return Vt(this,r),t.apply(this,arguments)}return zt(r,[{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(39)]).then(n.bind(null,1291)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(m,o.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"cancelUpload",value:function(e,t){var r=this;n.e(60).then(n.bind(null,1292)).then((function(n){var i=n.CancelUploadView;r.layout.showChildView(m,o.createElement(i,{id:e,name:t.name,status:t.status,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return O.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return Yt}}]),r}(v);function Qt(e){return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $t(e,t,n){return t&&Xt(e.prototype,t),n&&Xt(e,n),e}function en(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=on(e);if(t){var o=on(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rn(this,n)}}function rn(e,t){return!t||"object"!==Qt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var an=function(e){en(n,e);var t=nn(n);function n(){return Zt(this,n),t.apply(this,arguments)}return $t(n,[{key:"channelName",get:function(){return O.a.USER_MANAGER}},{key:"appRoutes",get:function(){return{"user-manager/students(/)":"studentManager","user-manager/teachers(/)":"teacherManager","user-manager/students/upload/review":"studentUploadReview","user-manager/teachers/upload/review":"teacherUploadReview"}}},{key:"appLinks",get:function(){return["newStudent","editStudent","newTeacher","editTeacher","removeUsers"]}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),cn=function(e){en(r,e);var t=nn(r);function r(){return Zt(this,r),t.apply(this,arguments)}return $t(r,[{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(29)]).then(n.bind(null,1322)).then((function(n){var r=n.SchoolStudentManagerView;t.layout.showChildView(g,o.createElement(r,{queryParams:e}))}))}},{key:"teacherManager",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(33)]).then(n.bind(null,1323)).then((function(n){var r=n.SchoolTeacherManagerView;t.layout.showChildView(g,o.createElement(r,{queryParams:e}))}))}},{key:"studentUploadReview",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(34)]).then(n.bind(null,1313)).then((function(t){var n=t.StudentUploadReviewView,r={entity:w.d.User,location:w.j.StudentManager,actionType:w.n.Create};e.layout.showChildView(g,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"teacherUploadReview",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(38)]).then(n.bind(null,1314)).then((function(t){var n=t.TeacherUploadReviewView,r={entity:w.d.User,location:w.j.TeacherManager,actionType:w.n.Create};e.layout.showChildView(g,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"newStudent",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(42)]).then(n.bind(null,1293)).then((function(t){var n=t.CreateStudentView,r={actionType:w.n.Create,entity:w.d.User,workflowPhase:w.o.Complete,descriptor:w.k.Single,location:w.j.Popup};e.layout.showChildView(m,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editStudent",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(43)]).then(n.bind(null,1294)).then((function(n){var r=n.EditStudentView,i={actionType:w.n.Edit,entity:w.d.User,workflowPhase:w.o.Complete,location:w.j.Popup};t.layout.showChildView(m,o.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"newTeacher",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(48)]).then(n.bind(null,1295)).then((function(t){var n=t.CreateTeacherView,r={actionType:w.n.Create,entity:w.d.User,workflowPhase:w.o.Complete,descriptor:w.k.Single,location:w.j.Popup};e.layout.showChildView(m,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editTeacher",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(49)]).then(n.bind(null,1296)).then((function(n){var r=n.EditTeacherView,i={actionType:w.n.Edit,entity:w.d.User,workflowPhase:w.o.Complete,location:w.j.Popup};t.layout.showChildView(m,o.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeUsers",value:function(e){var t=this,r=e.userIds,i=void 0===r?[]:r,a=e.userType;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(50)]).then(n.bind(null,1297)).then((function(e){var n=e.RemoveUserView,r={actionType:w.n.Delete,entity:w.d.User,workflowPhase:w.o.Complete,descriptor:1===i.length?w.k.Single:w.k.Bulk,location:w.j.Popup};t.layout.showChildView(m,o.createElement(n,{userIds:i,userType:a,closePopup:function(){return t.layout.closePopup()},analyticsOptions:r}))}))}},{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return O.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return an}}]),r}(v);function un(e){return(un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fn(e,t,n){return t&&ln(e.prototype,t),n&&ln(e,n),e}function pn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hn(e,t)}function hn(e,t){return(hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vn(e);if(t){var o=vn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yn(this,n)}}function yn(e,t){return!t||"object"!==un(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vn(e){return(vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gn=function(e){pn(n,e);var t=dn(n);function n(){return sn(this,n),t.apply(this,arguments)}return fn(n,[{key:"channelName",get:function(){return O.a.SETTINGS}},{key:"appRoutes",get:function(){return{"settings(/)":"index"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),mn=function(e){pn(r,e);var t=dn(r);function r(){return sn(this,r),t.apply(this,arguments)}return fn(r,[{key:"index",value:function(){var e=this;n.e(47).then(n.bind(null,1316)).then((function(t){var n=t.SettingsView;e.layout.showChildView(K,i.a.createElement(n,null))}))}},{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.SETTINGS}}],[{key:"router",get:function(){return gn}}]),r}(v);function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cn(e,t,n){return t&&Sn(e.prototype,t),n&&Sn(e,n),e}function On(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kn(e,t)}function kn(e,t){return(kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function En(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Rn(e);if(t){var o=Rn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pn(this,n)}}function Pn(e,t){return!t||"object"!==bn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Rn(e){return(Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _n=function(e){On(n,e);var t=En(n);function n(){return wn(this,n),t.apply(this,arguments)}return Cn(n,[{key:"channelName",get:function(){return O.a.WATCH_HISTORY}},{key:"appRoutes",get:function(){return{"watch-history(/)":"index"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Tn=function(e){On(r,e);var t=En(r);function r(){return wn(this,r),t.apply(this,arguments)}return Cn(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(0),n.e(19)]).then(n.bind(null,1317)).then((function(n){var r=n.WatchHistoryView;t.layout.showChildView(K,i.a.createElement(r,{cursor:e.cursor}))}))}},{key:"name",get:function(){return"Watch History Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.WATCH_HISTORY}}],[{key:"router",get:function(){return _n}}]),r}(v);var xn,An=n(1),Ln=n(19);!function(e){e.Fifo="FifoMemoryCache"}(xn||(xn={}));var jn=n(54),Nn=n(11);function In(e){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dn(e){return function(e){if(Array.isArray(e))return Un(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fn(e,t){return(Fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zn(e);if(t){var o=zn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hn(this,n)}}function Hn(e,t){return!t||"object"!==In(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zn(e){return(zn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fn(e,t)}(i,e);var t,n,r,o=Vn(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=i,(n=[{key:"removeCacheKey",value:function(e){this.cachedkeys=An.without(this.cachedkeys,e)}},{key:"has",value:function(e){return!!this.cache[e]}},{key:"get",value:function(e){return this.cache[e]}},{key:"set",value:function(e,t){e&&t||Nn.c.throw(new Ln.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(e,t){if(this.has(e))return this.get(e);var n=t();return this.set(e,n),n}},{key:"remove",value:function(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}},{key:"invalidate",value:function(e,t){var n=this,r=An.object(this.cachedkeys,this.cachedkeys),o=[];An.each(e,(function(e){var t;r[e]&&o.push(e);var n=new RegExp(e,"i"),i=An.filter(r,(function(e){return n.test(e)}));(t=o).push.apply(t,Dn(i))})),o.length&&(o=An.uniq(o),An.each(o,(function(e){delete n.cache[e],An.isFunction(t)&&t(e)})),this.cachedkeys=An.without.apply(An,[this.cachedkeys].concat(Dn(o))))}},{key:"name",get:function(){return xn.Fifo}}])&&Mn(t.prototype,n),r&&Mn(t,r),i}(jn.a);var qn,Wn=n(38),Jn=n(122),Gn=n(21),Yn=n(102);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(qn||(qn={}));var Kn=function(e,t,n){if(!n||!n.errorCode)return e[t];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),e[r]||e[t]};function Qn(e){return(Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xn(e,t){return(Xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tr(e);if(t){var o=tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return er(this,n)}}function er(e,t){return!t||"object"!==Qn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tr(e){return(tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xn(e,t)}(i,e);var t,n,r,o=$n(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),t.successMiddleware={},t.errorMiddleware={},t.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,t.defaultErrorMessageKey=e.defaultErrorMessageKey,t}return t=i,(n=[{key:"parseUrl",value:function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}},{key:"makeHttps",value:function(e){var t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}},{key:"base",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=Gn.a.GET);var o=An.defaults(r,{forceHttps:!1}),i={url:e,method:n,type:n};t&&(i.data=n===Gn.a.POST||n===Gn.a.PUT?JSON.stringify(t):t),o.forceHttps&&(i.url=this.makeHttps(i.url)),o.traditional&&(i.traditional=o.traditional);var a=$.ajax(i);return An.keys(this.successMiddleware).length&&a.done(An.values(this.successMiddleware)),An.keys(this.errorMiddleware).length&&a.fail(An.values(this.errorMiddleware)),a}},{key:"create",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,Gn.a.POST).done((function(e,t,n){return r.trigger(o,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"read",value:function(e,t){var n=t.channel,r=t.successEvent,o=t.errorEvent;this.base(e,null,Gn.a.GET).done((function(e,t,o){n.trigger(r,e,t,o)})).fail((function(e,t,r){n.trigger(o,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,Gn.a.PUT).done((function(e,t,n){return r.trigger(o,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"delete",value:function(e,t){var n=t.channel,r=t.successEvent,o=t.errorEvent;this.base(e,null,Gn.a.DELETE).done((function(e,t,o){return n.trigger(r,e,t,o)})).fail((function(e,t,r){return n.trigger(o,e,t,r)}))}},{key:"useMiddleware",value:function(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}},{key:"useErrorMiddleware",value:function(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}},{key:"parseError",value:function(e,t,n){var r=e.responseJSON,o=Jn.a;switch(o.code=e.status,o.message=Kn(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),e.status){case 400:o.type=Yn.a.BadRequest;break;case 401:o.type=Yn.a.Unauthorized;break;case 403:o.type=Yn.a.Forbidden;break;case 404:o.type=Yn.a.NotFound;break;case 500:o.type=Yn.a.InternalServer}return o}},{key:"name",get:function(){return qn.Ajax}}])&&Zn(t.prototype,n),r&&Zn(t,r),i}(Wn.Object);var rr=n(48),or=n(52),ir=n(60),ar=n(12),cr=n(34),ur=n(17),sr="locale",lr="phrases",fr="version",pr=n(67);function hr(e){return(hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vr(e,t){return(vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mr(this,n)}}function mr(e,t){return!t||"object"!==hr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vr(e,t)}(i,e);var t,n,r,o=gr(i);function i(){return dr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getConfig",value:function(e,t){return this.get({resource:"/api/config",eventPrefix:cr.a.CONFIG,expiryTime:pr.a.STANDARD,callback:e,errorCallback:t})}},{key:"getVersion",value:function(e){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:fr,callback:e,expiryTime:pr.a.STANDARD})}},{key:"name",get:function(){return ar.a.Config}},{key:"channelName",get:function(){return ur.b.CONFIG}}])&&yr(t.prototype,n),r&&yr(t,r),i}(ir.a),Sr=(ar.a.Config,ur.b.CONFIG,n(189));function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Er(e,t){return(Er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_r(e);if(t){var o=_r(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rr(this,n)}}function Rr(e,t){return!t||"object"!==Cr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _r(e){return(_r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Er(e,t)}(i,e);var t,n,r,o=Pr(i);function i(){return Or(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:cr.a.LOCALE,expiryTime:pr.a.STANDARD,bootstrapName:sr,callback:function(n){t.locale=n,t.phrases&&An.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:cr.a.PHRASES,expiryTime:pr.a.STANDARD,bootstrapName:lr,callback:function(n){t.phrases=n,t.locale&&An.isFunction(e)&&e(t)}})}},{key:"name",get:function(){return ar.a.Language}},{key:"channelName",get:function(){return ur.b.LANGUAGE}}])&&kr(t.prototype,n),r&&kr(t,r),i}(ir.a);function xr(e){return(xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(e,t){return(Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ir(e);if(t){var o=Ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nr(this,n)}}function Nr(e,t){return!t||"object"!==xr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ir(e){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lr(e,t)}(n,e);var t=jr(n);function n(){return Ar(this,n),t.apply(this,arguments)}return n}(r.a.Model);function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vr(e,t){return(Vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Br(e);if(t){var o=Br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zr(this,n)}}function zr(e,t){return!t||"object"!==Ur(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Br(e){return(Br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vr(e,t)}(i,e);var t,n,r,o=Hr(i);function i(){return Mr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"receiveLatestNotifications",value:function(e){return this.get({callback:e,formatData:function(e){return new Dr(e)},resource:"notify",eventPrefix:"".concat(cr.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:"".concat(cr.a.NOTIFICATIONS,":count")})}},{key:"name",get:function(){return ar.a.NotificationSocket}},{key:"channelName",get:function(){return ur.b.NOTIFICATIONS_SOCKET}}])&&Fr(t.prototype,n),r&&Fr(t,r),i}(ir.a),Wr=n(90),Jr=n(7),Gr=n(79),Yr=n(103);function Kr(e){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xr(e,t){return(Xr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=to(e);if(t){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eo(this,n)}}function eo(e,t){return!t||"object"!==Kr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var no=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xr(e,t)}(i,e);var t,n,r,o=$r(i);function i(){return Qr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return Dr}}])&&Zr(t.prototype,n),r&&Zr(t,r),i}(r.a.Collection);function ro(e){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ao(e,t){return(ao=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function co(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=so(e);if(t){var o=so(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uo(this,n)}}function uo(e,t){return!t||"object"!==ro(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function so(e){return(so=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lo=function(e,t){var n="/api/domain/v2/objects/".concat(e,"/notifications?query={orderbydesc:datecreated}");if(!t)return n;var r=t.limit,o=t.cursor,i=t.before,a=[],c=Gr.a.buildFilter({limit:r,before:i});return c&&a.push("filter=".concat(c)),o&&a.push("cursor=".concat(o)),a.length?"".concat(n,"&").concat(a.join("&")):n},fo=function(e){return"/api/notifications/v1/notifications/".concat(e)},po="/api/notifications/v1/notifications",ho="/api/domain/v1/notifications",yo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ao(e,t)}(i,e);var t,n,r,o=co(i);function i(){return oo(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getNotifications",value:function(e,t,n,r){return this.get({resource:lo(e,t),expiryTime:pr.a.STANDARD,eventPrefix:n,formatData:function(e){return new no(e,{parse:!0})},callback:r})}},{key:"markRead",value:function(e,t){return this.update({callback:t,data:{notificationStatus:Yr.a.Read},resource:fo(e),eventPrefix:"".concat(cr.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(e){var t=Wr().utc().toISOString();return this.update({callback:e,data:{notificationStatus:Yr.a.Seen},resource:"".concat(po,"?to=").concat(t,"&notificationStatus=").concat(Yr.a.Received),eventPrefix:"".concat(cr.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(e){return this.getCursors(e)}},{key:"suggestEdit",value:function(e,t){return this.create({resource:"".concat(ho),eventPrefix:"".concat(cr.a.SUGGEST_EDIT),callback:t,data:e,successHandler:this.alertService.success(Jr.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"name",get:function(){return ar.a.Notification}},{key:"channelName",get:function(){return ur.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}}])&&io(t.prototype,n),r&&io(t,r),i}(ir.a),vo=n(229),go=n(13),mo=n(188),bo=n(55),wo=n(51),So=n(83),Co=n.n(So);function Oo(e){var t=e.alert,n=e.svgName,r=e.svgClassName,i=e.closeAlert,a=t.message,c=t.heading,u=t.appLink,s=t.appLinkText,l=t.appLinkClassName,f=void 0===l?"":l,p=Object(mo.sanitize)(a);return o.createElement(o.Fragment,null,o.createElement("div",{className:"d-inline-block ".concat(Co.a.icon)},o.createElement(bo.a,{svgName:n,className:"svg-container ".concat(r)})),o.createElement("div",{className:"pl-2 d-inline-block ".concat(Co.a.alertContent)},o.createElement("p",{className:"p-0 m-0 pb-1 ".concat(Co.a.heading)},c),o.createElement("p",{className:"p-0 m-0 ".concat(Co.a.message),dangerouslySetInnerHTML:{__html:p}}),!!u&&o.createElement(wo.a,{className:f,appLink:u},s)),o.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:i},"×"))}function ko(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Eo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Po=function(e){switch(e.type){case rr.a.Success:return go.b.CheckCircleOutline;case rr.a.Fail:case rr.a.Warning:return go.b.Warning;case rr.a.Info:default:return go.b.Info}};function Ro(e){var t=e.alert,n=e.closeAlert,r=ko(o.useState(!0),2),i=r[0],a=r[1],c=o.useRef();o.useEffect((function(){i?c.current=window.setTimeout(n,3e3):clearTimeout(c.current)}),[i]);var u="text-".concat(t.type.toLowerCase());return o.createElement("li",{className:"bg-white mt-2 p-2 show clearfix ".concat(Co.a.alertItem),onMouseEnter:function(){return a(!1)},onMouseLeave:function(){return a(!0)}},o.createElement(Oo,{alert:t,svgName:Po(t),svgClassName:u,closeAlert:n}))}function _o(e){var t=e.alerts,n=e.removeAlert;return o.createElement("div",{className:Co.a.alertBox},o.createElement(vo.TransitionGroup,{component:"ul",className:"".concat(Co.a.alertList," list-unstyled")},t&&t.map((function(e,t){return o.createElement(vo.CSSTransition,{key:t,timeout:200,classNames:"alert"},o.createElement(Ro,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}var To=n(146),xo=n(35),Ao=n(250),Lo=Object.assign(Object.assign({},ur.b),{SETTINGS:"settings:data:service"});function jo(e){return(jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function No(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Do(e,t){return(Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fo(e);if(t){var o=Fo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mo(this,n)}}function Mo(e,t){return!t||"object"!==jo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fo(e){return(Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vo=function(e,t){var n="/api/domain/v3/settings/".concat(e);return Ao.a[t]&&(n+="?kind=".concat(t)),n},Ho=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Do(e,t)}(i,e);var t,n,r,o=Uo(i);function i(){return No(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getSetting",value:function(e,t,n){var r=xo.a.isFunction(n)?function(e){var r=e.find((function(e){return e.name===t}));xo.a.isFunction(n)&&n(r)}:null,o=this.getSettings(e,null,r);return o?o.find((function(e){return e.name===t})):null}},{key:"getSettings",value:function(e,t,n){return this.get({callback:n,resource:Vo(e,t),eventPrefix:"settings"})}},{key:"name",get:function(){return P.a.Settings}},{key:"channelName",get:function(){return Lo.SETTINGS}}])&&Io(t.prototype,n),r&&Io(t,r),i}(ir.a),zo=n(14),Bo=n(46);function qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Wo=function(e){return{url:"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary",key:"libraries",success:e,normalize:!1}},Jo=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Bo.a.FOLDER),key:"folder:".concat(e),success:t}},Go=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"getLibraries",value:function(e){var t=this,n=Wo((function(n){a.Radio.channel(t.channelName).trigger("libraries:sync",n),e&&e(new r.a.Collection(n))})),o=zo.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&zo.a.fetch(this.store.dispatch,n),o.data&&new r.a.Collection(o.data.map((function(e){return e.data})))}},{key:"getFolder",value:function(e,t){var n=Jo(e,(function(e){return t&&t(new r.a.Model(e))})),o=zo.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&zo.a.fetch(this.store.dispatch,n),o.data&&new r.a.Model(o.data)}},{key:"name",get:function(){return ar.a.Library}},{key:"channelName",get:function(){return"library:data:service"}}])&&qo(t.prototype,n),o&&qo(t,o),e}();function Yo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ko=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Bo.a.SERIES),key:"series:".concat(e),success:t}},Qo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"getSeries",value:function(e,t){var n=Ko(e,(function(e){return t&&t(new r.a.Model(e))})),o=zo.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&zo.a.fetch(this.store.dispatch,n),o.data&&new r.a.Model(o.data)}},{key:"name",get:function(){return ar.a.Series}},{key:"channelName",get:function(){return ur.b.SERIES}}])&&Yo(t.prototype,n),o&&Yo(t,o),e}(),Zo=n(154);function Xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getCurrentUser",value:function(e,t){zo.a.dataServiceFetch(this.store.dispatch,this.store.getState(),Zo.a.currentUser(e,t))}},{key:"name",get:function(){return P.a.FlightUser}}])&&Xo(t.prototype,n),r&&Xo(t,r),e}();function ei(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ti(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ni(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ii(e);if(t){var o=ii(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return oi(this,n)}}function oi(e,t){return!t||"object"!==ei(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ii(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Nn.a;function ai(e){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function si(e,t){return(si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var o=pi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fi(this,n)}}function fi(e,t){return!t||"object"!==ai(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pi(e){return(pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&si(e,t)}(i,e);var t,n,r,o=li(i);function i(){return ci(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertError"}}])&&ui(t.prototype,n),r&&ui(t,r),i}(r.a.SilentError);function di(e){return(di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gi(e,t){return(gi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wi(e);if(t){var o=wi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bi(this,n)}}function bi(e,t){return!t||"object"!==di(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wi(e){return(wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Si=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gi(e,t)}(i,e);var t,n,r,o=mi(i);function i(){return yi(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"ErrorPageError"}}])&&vi(t.prototype,n),r&&vi(t,r),i}(r.a.SilentError);function Ci(e){return(Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ki(e,t){return(ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ri(e);if(t){var o=Ri(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pi(this,n)}}function Pi(e,t){return!t||"object"!==Ci(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ki(e,t)}(a,e);var t,n,o,i=Ei(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).dialogOptions||r.a.ErrorHelper.throw(new Ln.a("Please provide DialogOptions for your implementation of DialogError")),t}return t=a,(n=[{key:"onDone",value:function(){}},{key:"onFail",value:function(){}},{key:"name",get:function(){return"DialogError"}}])&&Oi(t.prototype,n),o&&Oi(t,o),a}(r.a.SilentError),Ti=n(253),xi=n(254),Ai=n(255),Li=n(349),ji=n(350),Ni=n(351),Ii=n(352);function Di(e){k.a.getInstance(or.a.ALERT).createAlert({heading:To.a.Fail,type:rr.a.Fail,message:e.message})}function Ui(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:E.a.Default.NOT_FOUND})}function Mi(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:E.a.Default.ERROR})}function Fi(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:E.a.Default.DIALOG_ERROR})}var Vi=n(104),Hi=n(61);function zi(e){return(zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wi(e,t){return(Wi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yi(e);if(t){var o=Yi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gi(this,n)}}function Gi(e,t){return!t||"object"!==zi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yi(e){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ki=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wi(e,t)}(a,e);var t,n,r,i=Ji(a);function a(){return Bi(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"isReactComponent",value:function(e){return o&&o.isValidElement(e)}},{key:"showChildView",value:function(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}},{key:"showChildReactComponent",value:function(e,t){var n=this;this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",(function(){return n.renderChildReactComponent(e,t)}))}},{key:"renderChildReactComponent",value:function(e,t){var n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),Vi.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return Vi.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return Vi.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return o.createElement(Hi.Provider,{store:this.options.store},e)}}])&&qi(t.prototype,n),r&&qi(t,r),a}(n(181).a),Qi=n(91),Zi=n(415),Xi=n(153),$i=n(89),ea=n(40),ta=n(45),na=n(66),ra=n(416),oa=n.n(ra),ia=n(196),aa=n.n(ia);function ca(e){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sa(e,t){return(sa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function la(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pa(e);if(t){var o=pa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fa(this,n)}}function fa(e,t){return!t||"object"!==ca(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pa(e){return(pa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ha=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sa(e,t)}(i,e);var t,n,r,o=la(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:aa.a,svg:go.a.getSvg(go.b.Bell),unreadCount:this.model.get("unreadCount")}}},{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(aa.a.notificationIcon," ").concat(aa.a[this.options.color])}},{key:"template",get:function(){return oa.a}}])&&ua(t.prototype,n),r&&ua(t,r),i}(r.a.Component),da=n(186),ya=n(184),va=n(412),ga=n(420),ma=n.n(ga),ba=n(354),wa=n.n(ba),Sa=n(355),Ca=n.n(Sa);function Oa(e){return(Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ka(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ea(e,t){return(Ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_a(e);if(t){var o=_a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ra(this,n)}}function Ra(e,t){return!t||"object"!==Oa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _a(e){return(_a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ta=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ea(e,t)}(i,e);var t,n,r,o=Pa(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:ya.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:wa.a,className:"px-1 py-2",viewOptions:{styles:Ca.a}}}}}}}},{key:"initialize",value:function(){this.notificationService=k.a.getInstance(ar.b.Notification,this),this.appVariables=k.a.getInstance(Rt.a.NOTIFICATIONS,this)}},{key:"onData",value:function(e){this.collection=e,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new va.a({collectionPrefix:cr.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var e=new da.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var e=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(t){return e.onData(t)})),!!this.collection}},{key:"viewOptions",value:function(){return{hasNotifications:this.collection&&this.collection.length}}},{key:"onRender",value:function(){this.renderNotificationList(),this.triggerSeen()}},{key:"name",get:function(){return"NotificationPopoverView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"notifications.notificationsPopover"}},{key:"className",get:function(){return"notifications-container"}},{key:"template",get:function(){return ma.a}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}}])&&ka(t.prototype,n),r&&ka(t,r),i}(r.a.View),xa=n(421),Aa=n.n(xa),La=n(422),ja=n.n(La);function Na(e){return(Na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ia(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Da(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ua(e,t){return(Ua=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ma(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Va(e);if(t){var o=Va(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fa(this,n)}}function Fa(e,t){return!t||"object"!==Na(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Va(e){return(Va=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ha=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ua(e,t)}(i,e);var t,n,r,o=Ma(i);function i(){return Ia(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=k.a.getInstance(Rt.a.NOTIFICATIONS)}},{key:"regions",value:function(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .notifications-status-region":"renderNotificationList"}}},{key:"renderNotificationList",value:function(){var e=new Ta({childType:da.a.Popover});this.showChildView("notifications",e)}},{key:"renderNotificationStatus",value:function(){var e=k.a.getInstance(ar.b.Notification),t=new ha({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}},{key:"viewOptions",value:function(){return ja.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}},{key:"name",get:function(){return"NotificationHeaderView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative"}},{key:"template",get:function(){return Aa.a}}])&&Da(t.prototype,n),r&&Da(t,r),i}(r.a.View),za=n(411),Ba=n(249),qa=n(366),Wa=n(204),Ja=n(157),Ga=n(92),Ya=n(33),Ka=n(73),Qa=n(247),Za=n(251),Xa=n(233),$a=n.n(Xa),ec={settings:{application:O.a.SETTINGS,action:E.a.Settings.HOME},analytics:null,logOut:{application:O.a.DEFAULT,action:E.a.Default.LOG_OUT},logIn:{application:O.a.DEFAULT,action:E.a.Default.LOG_IN}},tc=o.memo((function(e){return o.createElement(Ka.a.Provider,{value:"shared.userOptions"},e.user?o.createElement(Ya.Dropdown,{className:"cursor-pointer mx-2 px-2 position-relative"},o.createElement(Ya.Dropdown.Toggle,{as:"div",id:"userOptions",className:"".concat($a.a.avatarContainer," no-caret")},o.createElement(Qa.a,{imageUrl:e.user.avatar,imageCdnUrl:e.imageCdnUrl,initials:Za.a.getInitials(e.user.givenName,e.user.familyName)})),o.createElement(Ya.Dropdown.Menu,{alignRight:!0,className:$a.a.dropdownMenu,as:"ul"},o.createElement(Ya.Dropdown.Item,{as:"span"},o.createElement("div",{className:"m-0"},o.createElement("strong",null,e.user.displayName)),o.createElement("div",{className:"m-0 text-muted"},e.user.customerName)),o.createElement(Ya.Dropdown.Divider,null),o.createElement(Ya.Dropdown.Item,{as:wo.a,appLink:ec.settings},o.createElement(Ka.b,{phrase:"settings"})),o.createElement(Ya.Dropdown.Item,{as:wo.a,appLink:ec.analytics},o.createElement(Ka.b,{phrase:"analytics"})),o.createElement(Ya.Dropdown.Item,{as:"a",href:e.supportSiteUrl,target:"_blank"},o.createElement(Ka.b,{phrase:"helpCentre"})),o.createElement(Ya.Dropdown.Divider,null),o.createElement(Ya.Dropdown.Item,{as:wo.a,appLink:ec.logOut},o.createElement(Ka.b,{phrase:"signOut"})))):o.createElement(wo.a,{appLink:ec.logIn,className:"btn btn-dark"},o.createElement(Ka.b,{phrase:"logIn"})))}),(function(e,t){var n,r,o,i,a,c,u,s;return(null===(n=e.user)||void 0===n?void 0:n.id)===(null===(r=t.user)||void 0===r?void 0:r.id)&&(null===(o=e.user)||void 0===o?void 0:o.avatar)===(null===(i=t.user)||void 0===i?void 0:i.avatar)&&(null===(a=e.user)||void 0===a?void 0:a.displayName)===(null===(c=t.user)||void 0===c?void 0:c.displayName)&&(null===(u=e.user)||void 0===u?void 0:u.customerName)===(null===(s=t.user)||void 0===s?void 0:s.customerName)})),nc=n(235),rc=o.memo((function(e){var t=e.hideButtonText,n=void 0!==t&&t,r=Object(Xi.a)(P.b.VideoUpload),i=o.useRef(null),a=o.useCallback((function(e){e&&(i.current=e)}),[]);return o.createElement(o.Fragment,null,o.createElement(nc.a,{svgName:go.b.Upload,className:"btn btn-secondary",onClick:function(e){i.current.value=null,i.current.click(null)}},!n&&o.createElement(Ka.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"})),o.createElement("input",{type:"file",autoComplete:"off",className:"file-select d-none",multiple:!0,accept:"video/*",ref:a,onChange:function(e){return t=e.target.files,r.addFiles(t,{entity:w.d.Video,actionType:w.n.Upload,workflowPhase:w.o.Start,descriptor:ea.a.mapInteractionType(w.h.FileSelect),location:w.j.TopNav});var t}}))})),oc=n(114),ic=n.n(oc);function ac(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uc(e){var t,n=zo.a.useBasicFetch(Zo.a.currentUser(),{optimize:!0}).data,r=zo.a.useBasicFetch(Ja.a.config,{optimize:!0}),i=zo.a.useBasicFetch(Ba.a.presentation()),a=ac(Object($i.a)(Ga.a.SEARCH_BAR_LOCATION,!0),1)[0];return e.showNav||(a=!1),o.createElement("nav",{className:"navbar navbar-expanded sticky-top ".concat(ic.a.nav)},o.createElement("div",{className:"justify-content-start"},e.showNav&&o.createElement(bo.a,{svgName:go.b.Handle,className:"".concat(ic.a.hamburger," ml-2 mr-3"),onClick:e.toggleLeftNav}),e.showNav?o.createElement("a",{className:"navbar-brand text-hide align-top ".concat(ic.a.logoContainer," d-inline-block'"),href:"/"},o.createElement(Wa.a,null)):o.createElement("span",{className:"navbar-brand text-hide align-top ".concat(ic.a.logoContainer," d-inline-block'")},o.createElement(Wa.a,null))),a&&o.createElement("div",{className:"justify-content-center"},o.createElement(We.a,{className:"container ".concat(ic.a.searchBarNavContainer),view:za.a,options:{model:na.a.get("search",{ctor:qa.a}),disableMask:!0,presentationId:null===(t=i.data)||void 0===t?void 0:t.id}})),o.createElement("div",{className:"d-flex align-items-center justify-content-end pr-1 ".concat(ic.a.actionButtons)},e.showNav&&n&&o.createElement(o.Fragment,null,o.createElement(rc,{hideButtonText:a}),o.createElement(We.a,{view:Ha,className:"ml-2 pl-2"})),!!r.data&&o.createElement(tc,{user:n,imageCdnUrl:r.data.imageCdnUrl,supportSiteUrl:r.data.supportSiteUrl,onlyShowSignOut:!e.showNav})))}var sc,lc=n(163),fc=n(241);!function(e){e.Discover="Discover",e.Playlists="Playlists",e.MyVideos="MyVideos",e.FavouritedVideos="FavouritedVideos",e.WatchHistory="WatchHistory",e.Classrooms="Classrooms",e.Classroom="Classroom",e.Settings="Settings"}(sc||(sc={}));var pc=n(156);function hc(e){var t=e.children,n=e.className,r=void 0===n?"d-inline-block svg-container":n,i=e.tagName,a=void 0===i?"span":i,c=e.size,u=void 0===c?bo.b.Standard:c,s=e.onClick,l=e.title,f=e.tooltipPlacement,p=void 0===f?"right":f,h=a,d={className:"".concat(r," ").concat(u),onClick:xo.a.isFunction(s)?s:null};return l?o.createElement(pc.a,{title:l,placement:p},o.createElement(h,Object.assign({},d),t)):o.createElement(h,Object.assign({},d),t)}var dc,yc=n(23),vc=n.n(yc);function gc(e){var t=e.collapsed&&e.active,n=e.icon,r="".concat(vc.a.leftNavAnchor," ").concat(e.className," py-2 ");return r+=!e.collapsed||e.active?vc.a.active:vc.a.iconGrey,!e.collapsed&&e.active&&(r+=" "+vc.a.bgGrey),i.a.createElement(wo.a,{className:r,appLink:e.appLink},i.a.createElement("span",{className:"".concat(vc.a.leftNavIcon)},e.icon?i.a.createElement(hc,{size:bo.b.Large},i.a.createElement(n,null)):i.a.createElement(bo.a,{svgName:e.svgName,size:bo.b.Large})),i.a.createElement("span",{className:"".concat(vc.a.leftNavText," ").concat(t?vc.a.highlightText:"")},e.name))}function mc(){return i.a.createElement("div",{className:"".concat(vc.a.leftNavAnchor," mt-3")},i.a.createElement("span",{className:"".concat(vc.a.iconGrey," partial-loading-background")}),i.a.createElement("span",{className:"".concat(vc.a.leftNavText," ").concat(vc.a.partialLeftNavItem," mx-1 partial-loading-background")}))}function bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wc=Jr.a.encloseNamespace("shared.leftNav");function Sc(){return i.a.createElement("svg",{viewBox:"0 0 24 24"},i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("g",{transform:"translate(0.000000, 2.000000)"},i.a.createElement("text",{id:"ABC",fontFamily:"Rubik-Black, Rubik Black",fontSize:"6.6",fontWeight:"700",fill:"#ffffff"},i.a.createElement("tspan",{x:"4.5",y:"10.8"},"ABC")),i.a.createElement("rect",{id:"Rectangle",stroke:"#ffffff",strokeWidth:"1.2",x:"3",y:"1.8",width:"18",height:"13.2",rx:"1.2"}),i.a.createElement("line",{x1:"0.6",y1:"15",x2:"23.4",y2:"15",id:"Line-2",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("circle",{id:"Oval",stroke:"#ffffff",strokeWidth:"1.2",fill:"#000000",cx:"12",cy:"1.2",r:"1"}),i.a.createElement("line",{x1:"11.4",y1:"15",x2:"7.8",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("line",{x1:"16.2",y1:"15",x2:"12.6",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round",transform:"translate(14.400000, 16.800000) scale(-1, 1) translate(-14.400000, -16.800000) "}))))}var Cc,Oc=(bc(dc={},sc.Discover,{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME}),bc(dc,sc.Playlists,{application:O.a.PLAYLISTS,action:E.a.Playlists.HOME}),bc(dc,sc.MyVideos,{application:O.a.DEFAULT,action:E.a.Default.MY_VIDEOS}),bc(dc,sc.FavouritedVideos,{application:O.a.DEFAULT,action:E.a.Default.FAVOURITE_VIDEOS}),bc(dc,sc.Classrooms,{application:O.a.CLASSROOMS,action:E.a.Classrooms.HOME}),bc(dc,sc.Classroom,{application:O.a.CLASSROOMS,action:E.a.Classrooms.CLASSROOM}),bc(dc,sc.WatchHistory,{application:O.a.WATCH_HISTORY,action:E.a.WatchHistory.HOME}),bc(dc,sc.Settings,{application:O.a.SETTINGS,action:E.a.Settings.HOME}),dc);function kc(e){var t=e.activeItem,n=e.dynamicActiveId,r=zo.a.useBasicFetch(fc.a.getStarredClassrooms());return i.a.createElement("nav",{className:"".concat(vc.a.leftNav," ").concat(vc.a.leftNavExpanded," pt-3")},i.a.createElement(lc.Scrollbars,{height:"100%"},i.a.createElement(gc,{key:sc.Discover,name:wc("discover"),appLink:Oc[sc.Discover],className:vc.a.discover,svgName:go.b.Compass,active:t===sc.Discover}),i.a.createElement(gc,{key:sc.Playlists,name:wc("playlists"),appLink:Oc[sc.Playlists],className:vc.a.playlists,svgName:go.b.Playlist,active:t===sc.Playlists}),i.a.createElement(gc,{key:sc.MyVideos,name:wc("myVideos"),appLink:Oc[sc.MyVideos],className:vc.a.myVideos,svgName:go.b.Video,active:t===sc.MyVideos}),i.a.createElement(gc,{key:sc.FavouritedVideos,name:wc("favouritedVideos"),appLink:Oc[sc.FavouritedVideos],className:vc.a.favouritedVideos,svgName:go.b.Heart,active:t===sc.FavouritedVideos}),i.a.createElement("hr",null),i.a.createElement(gc,{key:sc.Classrooms,name:wc("classrooms"),appLink:Oc[sc.Classrooms],className:vc.a.classrooms,icon:Sc,active:t===sc.Classrooms}),r.data?r.data.map((function(e){return i.a.createElement(gc,{key:e.id,name:e.name,appLink:Object.assign(Object.assign({},Oc[sc.Classroom]),{args:[e.id]}),className:vc.a.classroom,svgName:go.b.Star,active:t===sc.Classroom&&e.id===n})})):i.a.createElement(mc,null),i.a.createElement("div",{className:vc.a.leftNavBottom},i.a.createElement(gc,{key:sc.WatchHistory,name:wc("watchHistory"),appLink:Oc[sc.WatchHistory],className:vc.a.watchHistory,svgName:go.b.History,active:t===sc.WatchHistory}),i.a.createElement(gc,{key:sc.Settings,name:wc("settings"),appLink:Oc[sc.Settings],className:vc.a.settings,svgName:go.b.Cog,active:t===sc.Settings}))))}function Ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pc=Jr.a.encloseNamespace("shared.leftNav"),Rc=(Ec(Cc={},sc.Discover,{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME}),Ec(Cc,sc.Playlists,{application:O.a.PLAYLISTS,action:E.a.Playlists.HOME}),Ec(Cc,sc.MyVideos,{application:O.a.DEFAULT,action:E.a.Default.MY_VIDEOS}),Ec(Cc,sc.FavouritedVideos,{application:O.a.DEFAULT,action:E.a.Default.FAVOURITE_VIDEOS}),Ec(Cc,sc.WatchHistory,{application:O.a.WATCH_HISTORY,action:E.a.WatchHistory.HOME}),Cc);function _c(e){var t=e.activeItem;return i.a.createElement("nav",{className:"".concat(vc.a.leftNav," ").concat(vc.a.leftNavCollapsed," pt-3")},i.a.createElement(lc.Scrollbars,{height:"100%"},i.a.createElement(gc,{key:sc.Discover,name:Pc("discover"),appLink:Rc[sc.Discover],className:vc.a.discover,svgName:go.b.Compass,active:t===sc.Discover,collapsed:!0}),i.a.createElement(gc,{key:sc.Playlists,name:Pc("playlists"),appLink:Rc[sc.Playlists],className:vc.a.playlists,svgName:go.b.Playlist,active:t===sc.Playlists,collapsed:!0}),i.a.createElement(gc,{key:sc.MyVideos,name:Pc("myVideos"),appLink:Rc[sc.MyVideos],className:vc.a.myVideos,svgName:go.b.Video,active:t===sc.MyVideos,collapsed:!0}),i.a.createElement(gc,{key:sc.FavouritedVideos,name:Pc("favouritedVideos"),appLink:Rc[sc.FavouritedVideos],className:vc.a.favouritedVideos,svgName:t===sc.FavouritedVideos?go.b.Heart:go.b.HeartOutline,active:t===sc.FavouritedVideos,collapsed:!0}),i.a.createElement(gc,{key:sc.WatchHistory,name:Pc("watchHistory"),appLink:Rc[sc.WatchHistory],className:vc.a.watchHistory,svgName:go.b.History,active:t===sc.WatchHistory,collapsed:!0})))}var Tc,xc,Ac=n(68);function Lc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Open=0]="Open",e[e.Collapsed=1]="Collapsed",e[e.Hidden=2]="Hidden"}(xc||(xc={}));var Ic=(Nc(Tc={},sc.Discover,Ac.a.getDiscoverAppLinks()),Nc(Tc,sc.Playlists,Ac.a.getPlaylistAppLinks()),Nc(Tc,sc.MyVideos,Ac.a.getMyVideosAppLinks()),Nc(Tc,sc.FavouritedVideos,Ac.a.getFavouritedVideosAppLinks()),Nc(Tc,sc.WatchHistory,Ac.a.getWatchHistoryAppLinks()),Nc(Tc,sc.Classrooms,Ac.a.getClassroomsAppLinks()),Nc(Tc,sc.Classroom,Ac.a.getClassroomAppLinks()),Nc(Tc,sc.Settings,Ac.a.getSettingsAppLinks()),Tc);function Dc(e){var t,n=Lc(i.a.useState(null),2),r=n[0],o=n[1];if(i.a.useEffect((function(){if(e.appLinkIsRoute){var t=null;Object.keys(Ic).find((function(n){t||Ic[n].find((function(t){return t.application===e.activeAppLink.application&&t.action===e.activeAppLink.action}))&&(t=sc[n])})),o(t)}}),[e.activeAppLink]),e.navState===xc.Hidden)return i.a.createElement(i.a.Fragment,null);var a=(null===(t=e.activeAppLink)||void 0===t?void 0:t.args)&&e.activeAppLink.args[0];return e.navState===xc.Collapsed?i.a.createElement(_c,{activeItem:r}):i.a.createElement(kc,{activeItem:r,dynamicActiveId:a})}var Uc=n(245),Mc=n(367);function Fc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Hc=n(151),zc=n.n(Hc);function Bc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wc(e){return{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO,args:[e.id,X.a.slugify(e.name)],params:e.lastProgressPoint?{t:Math.floor(e.lastProgressPoint)}:{}}}function Jc(e){var t,n=e.video;return o.createElement("h2",{className:"mb-0 h6"},!!n.series&&o.createElement(Uc.a,{className:"d-block",video:n,appLink:(t=n.series,{application:O.a.DEFAULT,action:E.a.Default.SERIES,args:[t.id,X.a.slugify(t.name)]})}),o.createElement(wo.a,{appLink:Wc(n)},n.name))}function Gc(){var e;!function(){var e,t,n=zo.a.useBasicFetch(Ja.a.config),r=Fc(Object($i.a)(Ga.a.WEB_PLAYER_DATA,{webPlayerUrl:(null===(e=n.data)||void 0===e?void 0:e.webPlayerUrl)||"",video:null,viewportPosition:null,isOnPlayPage:!1,startTime:0}),2)[1];i.a.useEffect((function(){var e;(null===(e=n.data)||void 0===e?void 0:e.webPlayerUrl)&&r("webPlayerUrl",n.data.webPlayerUrl)}),[null===(t=n.data)||void 0===t?void 0:t.webPlayerUrl])}();var t=Bc(Object($i.a)(Ga.a.WEB_PLAYER_DATA),2),n=t[0],r=t[1];if(!(null===(e=n)||void 0===e?void 0:e.video))return o.createElement(o.Fragment,null);var a={},c=zc.a.fixed;return n.viewportPosition&&(c=zc.a.inline,a=n.viewportPosition),n.viewportPosition||(c+=" shadow"),o.createElement("div",{style:a,className:"".concat(c)},o.createElement(Mc.a,{id:n.video.id,webPlayerHost:n.webPlayerUrl,className:"embed-responsive-16by9",key:n.video.id,startTime:n.startTime}),!n.viewportPosition&&o.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},o.createElement(Jc,{video:n.video}),o.createElement("span",{className:"".concat(zc.a.buttons," flex-shrink-1")},o.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){ea.a.logUserAction({id:n.video.id},{location:w.j.FloatingPlayer,entity:w.d.Video,actionType:w.n.Click,descriptor:w.b.Close}),r("video",null)}},o.createElement(bo.a,{svgName:go.b.Close})),o.createElement(wo.a,{appLink:Wc(n.video),onClick:function(){ea.a.logUserAction({id:n.video.id},{location:w.j.FloatingPlayer,entity:w.d.Video,actionType:w.n.Click,descriptor:w.b.Open})}},!n.isOnPlayPage&&o.createElement(bo.a,{svgName:go.b.NewWindow,className:"".concat(zc.a.flippedIcon," d-inline-block svg-container float-right")})))))}var Yc=n(256),Kc=n(152),Qc=n.n(Kc);function Zc(){return o.createElement(o.Fragment,null,o.createElement("div",{className:Qc.a.dropMask}),o.createElement("div",{className:Qc.a.dropContent},o.createElement("div",{className:Qc.a.border},o.createElement("h1",null,o.createElement(Ka.b,{namespace:"shared.dragMask",phrase:"message"})))),o.createElement("div",{className:Qc.a.dropArea}))}var Xc=n(84),$c=n.n(Xc),eu=n(124),tu=n(236);function nu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ru(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ru(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ou=function(e){var t,n=e.showNav,r=e.contentChild,i=e.popupChild,a=e.alertChild,c=e.activeAppLink,u=e.appLinkIsRoute,s=nu(o.useState(!1),2),l=s[0],f=s[1];Object(Yc.a)();var p=Object(tu.a)(),h=p===ta.a.XS,d=p===ta.a.SM,y=p===ta.a.XXL,v=!y&&p!==ta.a.XL,g=nu(Object($i.a)(Ga.a.WEB_PLAYER_DATA),1)[0];o.useEffect((function(){f(!y)}),[y]);var m=function(e,t,n,r){return r?t?{state:e?xc.Hidden:xc.Open,showMask:!e,contentClass:$c.a.hiddenNavContent}:n?{state:e?xc.Collapsed:xc.Open,showMask:!e,contentClass:$c.a.collapsedNavContent}:{state:e?xc.Collapsed:xc.Open,showMask:!1,contentClass:e?$c.a.collapsedNavContent:$c.a.openNavContent}:{state:xc.Hidden,showMask:!1,contentClass:$c.a.hiddenNavContent}}(l,h,d,n),b=Object(Xi.a)(P.b.VideoUpload),S=o.useCallback((function(e){b.addFiles(e,{entity:w.d.Video,actionType:w.n.Upload,workflowPhase:w.o.Start,descriptor:ea.a.mapInteractionType(w.h.DragDrop),location:w.j.VideoUpload})}),[]),C=Object(Zi.useDropzone)({onDrop:S,noClick:!0,noKeyboard:!0}),O=C.getRootProps,k=C.getInputProps,E=C.isDragActive,R="d-flex flex-column align-items-end",_="";return(null===(t=g)||void 0===t?void 0:t.viewportPosition)?_=$c.a.fixedBottomRightContainer:R+=" ".concat($c.a.fixedBottomRightContainer),o.createElement("div",Object.assign({},O()),o.createElement(uc,{toggleLeftNav:function(){f(!l)},showNav:n}),n&&o.createElement(Dc,{navState:m.state,activeAppLink:c,appLinkIsRoute:u}),o.createElement("div",{className:"".concat($c.a.content," ").concat(m.contentClass)},o.createElement("div",{className:"".concat(v?"container-fluid":"container")},r)),i,m.showMask&&o.createElement("div",{className:"modal-backdrop show ".concat($c.a.mask)}),o.createElement("div",{className:R},!!a&&o.createElement("div",{className:_},a),o.createElement(Gc,null)),E&&o.createElement(Zc,null),o.createElement("input",Object.assign({},k())))};function iu(e){return o.createElement(Hi.Provider,{store:e.store},o.createElement(eu.b,{defaultTitle:""},o.createElement(ou,Object.assign({},e))))}var au=n(438),cu=n.n(au);function uu(e){return(uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lu(e,t,n){return(lu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=du(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function fu(e,t){return(fu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=du(e);if(t){var o=du(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hu(this,n)}}function hu(e,t){return!t||"object"!==uu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fu(e,t)}(c,e);var t,n,i,a=pu(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).childComponents={},t}return t=c,i=[{key:"getCacheKey",value:function(e){return"".concat(S,":").concat(e.showNav)}}],(n=[{key:"initialize",value:function(){var e;this.activeAppLink=null===(e=Qi.a.getCurrentContext())||void 0===e?void 0:e.appLink,this.appLinkIsRoute=!0,this.listenTo(u.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange)}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[K],popupChild:this.childComponents[Q],alertChild:this.childComponents[Z],store:this.options.store,activeAppLink:this.activeAppLink,appLinkIsRoute:this.appLinkIsRoute}}},{key:"onRouteChange",value:function(e,t){this.activeAppLink=e,this.appLinkIsRoute=t.isAppRoute}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(Q)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){lu(du(c.prototype),"showChildView",this).call(this,"layout",o.createElement(iu,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"TeacherLayoutView"}},{key:"template",get:function(){return cu.a}}])&&su(t.prototype,n),i&&su(t,i),c}(Ki);function vu(e){var t=e.contentChild;return o.createElement(o.Fragment,null,t)}function gu(e){var t=e.store;return o.createElement(Hi.Provider,{store:t},o.createElement(eu.b,{defaultTitle:""},o.createElement(vu,Object.assign({},e))))}var mu=n(439),bu=n.n(mu);function wu(e){return(wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Su(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ou(e,t,n){return(Ou="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ru(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ku(e,t){return(ku=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Eu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ru(e);if(t){var o=Ru(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pu(this,n)}}function Pu(e,t){return!t||"object"!==wu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ru(e){return(Ru=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ku(e,t)}(a,e);var t,n,r,i=Eu(a);function a(){var e;return Su(this,a),(e=i.apply(this,arguments)).childComponents={},e}return t=a,r=[{key:"getCacheKey",value:function(){return C}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[K],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(Q)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){Ou(Ru(a.prototype),"showChildView",this).call(this,"layout",o.createElement(gu,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"EmbedLayoutView"}},{key:"template",get:function(){return bu.a}}])&&Cu(t.prototype,n),r&&Cu(t,r),a}(Ki);var Tu=n(82);var xu=n(195),Au=n(29);function Lu(e){return(Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ju(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iu(e,t){return(Iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Du(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mu(e);if(t){var o=Mu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uu(this,n)}}function Uu(e,t){return!t||"object"!==Lu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mu(e){return(Mu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Iu(e,t)}(i,e);var t,n,r,o=Du(i);function i(){return ju(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(u.a.SHELL,Au.a.ROUTING_END,this.scrollTop),this.listenTo(xu.a.POPUP,"popup:render",this.cancelScrollTop),this.listenTo(u.a.POPUP,"popup:render",this.cancelScrollTop)}},{key:"cancelScrollTop",value:function(){this.preventScroll=!0}},{key:"scrollTop",value:function(){this.preventScroll?this.preventScroll=!1:$(window).scrollTop(0)}},{key:"name",get:function(){return or.a.SCROLL}}])&&Nu(t.prototype,n),r&&Nu(t,r),i}(jn.a);function Vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Hu=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t}var t,n,r;return t=e,(n=[{key:"increment",value:function(){this.value+=1}},{key:"decrement",value:function(){this.value-=1}},{key:"getValue",value:function(){return this.value}}])&&Vu(t.prototype,n),r&&Vu(t,r),e}();function zu(e){return(zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wu(e,t,n){return t&&qu(e.prototype,t),n&&qu(e,n),e}function Ju(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gu(e,t)}function Gu(e,t){return(Gu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qu(e);if(t){var o=Qu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ku(this,n)}}function Ku(e,t){return!t||"object"!==zu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qu(e){return(Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zu,Xu=function(e){Ju(n,e);var t=Yu(n);function n(){return Bu(this,n),t.apply(this,arguments)}return Wu(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),$u=function(e){Ju(n,e);var t=Yu(n);function n(){return Bu(this,n),t.apply(this,arguments)}return Wu(n,[{key:"model",get:function(){return Xu}}]),n}(r.a.Collection),es=n(105);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archive=2]="Archive",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(Zu||(Zu={}));var ts=n(44);function ns(e){return(ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function is(e,t){return(is=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function as(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=us(e);if(t){var o=us(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cs(this,n)}}function cs(e,t){return!t||"object"!==ns(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function us(e){return(us=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ss=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&is(e,t)}(c,e);var t,n,o,i=as(c);function c(){return rs(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.videoDataService=k.a.getInstance(ar.a.Video,this),this.videoUploadDataService=k.a.getInstance(ar.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(e,t){var n=this;switch(e.get("pendingProcessStatus")){case es.a.Completed:case es.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.updateViewModel(),n.videoDataService.clearVideoCache(),An.isFunction(t)&&t()}));break;case es.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.videoDataService.clearVideoCache(),n.updateViewModel(),An.isFunction(t)&&t()}))}}},{key:"forceFetchPendingItems",value:function(e){this.fetchPendingItems(e)}},{key:"retryPendingItem",value:function(e,t){var n=this;this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:t})}))}},{key:"itemStatusChanged",value:function(){a.Radio.channel(this.channelName).trigger(ts.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var e=this;return this.pendingItems||(this.pendingItems=new $u,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(t){t.get("foregroundComplete")&&(e.itemStatusChanged(),t.get("video")&&a.Radio.channel(e.channelName).trigger(ts.a.PENDING_ITEM_READY_TO_WATCH,t))})),this.listenTo(this.pendingItems,"remove",(function(t){t.get("clearing")||e.videoUploadDataService.getPendingItem(t.get("pendingProcessId"),(function(t){t.get("status")===es.a.Completed&&e.itemStatusChanged()}))})),this.fetchPendingItems()),this.pendingItems}},{key:"fetchPendingItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var o=An.map(n,(function(e){return e.masterVideoId.toString()})),i=function(r){An.each(n,(function(e){var t=r.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===Zu.Processing&&t.set("status",Zu.Published))})),e.pendingItems.set(n),e.updateViewModel(),t.resetTimeout&&window.setTimeout(An.bind(e.fetchPendingItems,e),e.getTimeoutLength()),An.isFunction(t.callback)&&t.callback()};o.length?e.videoDataService.getVideos(o,i):i(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var e=na.a.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var t=this.pendingItems.where((function(e){return e.get("pendingProcessStatus")>=0})),n=0;An.each(t,(function(e){return n+=e.get("foregroundProgress")}));var r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}else e.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(e){return e.get("pendingProcessStatus")===es.a.Processing}))?5e3:3e4}},{key:"name",get:function(){return ar.b.PendingItems}},{key:"channelName",get:function(){return ur.c.PENDING_ITEMS}}])&&os(t.prototype,n),o&&os(t,o),c}(r.a.Service),ls=n(194);function fs(e){return(fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ps(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hs(e,t){return(hs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ds(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vs(e);if(t){var o=vs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ys(this,n)}}function ys(e,t){return!t||"object"!==fs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vs(e){return(vs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gs,ms,bs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hs(e,t)}(i,e);var t,n,r,o=ds(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return t=i,(n=[{key:"initDataServices",value:function(){this.notificationDataService=k.a.getInstance(ar.a.Notification,this),this.notificationSocketService=k.a.getInstance(ar.a.NotificationSocket,this),this.userDataService=k.a.getInstance(ar.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var e=cr.a.NOTIFICATIONS;this.listenTo(ur.b.NOTIFICATIONS_SOCKET,"".concat(e,":new:sync"),this.addNewNotification),this.listenTo(ur.b.NOTIFICATIONS_SOCKET,"".concat(e,":count:sync"),this.updateUnreadCount),this.listenTo(ur.b.NOTIFICATIONS,"".concat(e,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(ur.a.NOTIFICATIONS,ls.a.Read,this.markNotificationRead)}},{key:"getDataServices",value:function(){this.dataServicesExist()||this.initDataServices()}},{key:"dataServicesExist",value:function(){return!!this.notificationSocketService&&!!this.notificationDataService}},{key:"addNewNotification",value:function(e){var t=this;this.userDataService.getCurrentUser((function(n){t.notificationDataService.getNotifications(n.id,null,cr.a.NOTIFICATIONS,(function(t){t.add(e,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=na.a.get(cr.a.NOTIFICATIONS);t.set("unreadCount",e)}},{key:"getNotifications",value:function(e,t,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(o){r.notificationDataService.getNotifications(o.id,e,t.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),na.a.get(cr.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(e){this.notificationDataService.markRead(e)}},{key:"getNotificationsCursors",value:function(e){return this.notificationDataService.getNotificationsCursors(e.toString())}},{key:"name",get:function(){return ar.b.Notification}}])&&ps(t.prototype,n),r&&ps(t,r),i}(r.a.Service),ws=n(39),Ss=n(77),Cs=n(440),Os=n(6),ks=(gs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}gs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Es=function(e){function t(t){var n=e.call(this)||this;return n.logger=t,n}return ks(t,e),t.prototype.send=function(e){var t=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ws.a):e.method?e.url?new Promise((function(n,r){var o=new XMLHttpRequest;o.open(e.method,e.url,!0),o.withCredentials=!0,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var i=e.headers;i&&Object.keys(i).forEach((function(e){o.setRequestHeader(e,i[e])})),e.responseType&&(o.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=function(){o.abort(),r(new ws.a)}),e.timeout&&(o.timeout=e.timeout),o.onload=function(){e.abortSignal&&(e.abortSignal.onabort=null),o.status>=200&&o.status<300?n(new Ss.b(o.status,o.statusText,o.response||o.responseText)):r(new ws.b(o.statusText,o.status))},o.onerror=function(){t.logger.log(Os.a.Warning,"Error from HTTP request. "+o.status+": "+o.statusText+"."),r(new ws.b(o.statusText,o.status))},o.ontimeout=function(){t.logger.log(Os.a.Warning,"Timeout from HTTP request."),r(new ws.c)},o.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t}(Ss.a),Ps=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rs=function(e){function t(t){var n=e.call(this)||this;return"undefined"!=typeof XMLHttpRequest?n.httpClient=new Es(t):n.httpClient=new Cs.a(t),n}return Ps(t,e),t.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ws.a):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},t}(Ss.a),_s=n(441);!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(ms||(ms={}));var Ts,xs=n(18),As=function(){function e(){this.observers=[]}return e.prototype.next=function(e){for(var t=0,n=this.observers;t<n.length;t++){n[t].next(e)}},e.prototype.error=function(e){for(var t=0,n=this.observers;t<n.length;t++){var r=n[t];r.error&&r.error(e)}},e.prototype.complete=function(){for(var e=0,t=this.observers;e<t.length;e++){var n=t[e];n.complete&&n.complete()}},e.prototype.subscribe=function(e){return this.observers.push(e),new xs.d(this,e)},e}(),Ls=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},js=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(Ts||(Ts={}));var Ns,Is,Ds=function(){function e(e,t,n,r){var o=this;xs.a.isRequired(e,"connection"),xs.a.isRequired(t,"logger"),xs.a.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=t,this.protocol=n,this.connection=e,this.reconnectPolicy=r,this.handshakeProtocol=new _s.a,this.connection.onreceive=function(e){return o.processIncomingData(e)},this.connection.onclose=function(e){return o.connectionClosed(e)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=Ts.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:ms.Ping})}return e.create=function(t,n,r,o){return new e(t,n,r,o)},Object.defineProperty(e.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(e){if(this.connectionState!==Ts.Disconnected&&this.connectionState!==Ts.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e},enumerable:!0,configurable:!0}),e.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},e.prototype.startWithStateTransitions=function(){return Ls(this,void 0,void 0,(function(){var e;return js(this,(function(t){switch(t.label){case 0:if(this.connectionState!==Ts.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=Ts.Connecting,this.logger.log(Os.a.Debug,"Starting HubConnection."),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return t.sent(),this.connectionState=Ts.Connected,this.connectionStarted=!0,this.logger.log(Os.a.Debug,"HubConnection connected successfully."),[3,4];case 3:return e=t.sent(),this.connectionState=Ts.Disconnected,this.logger.log(Os.a.Debug,"HubConnection failed to start successfully because of error '"+e+"'."),[2,Promise.reject(e)];case 4:return[2]}}))}))},e.prototype.startInternal=function(){return Ls(this,void 0,void 0,(function(){var e,t,n,r=this;return js(this,(function(o){switch(o.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,e=new Promise((function(e,t){r.handshakeResolver=e,r.handshakeRejecter=t})),[4,this.connection.start(this.protocol.transferFormat)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,5,,7]),t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(Os.a.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(t))];case 3:return o.sent(),this.logger.log(Os.a.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,e];case 4:if(o.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=o.sent(),this.logger.log(Os.a.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw o.sent(),n;case 7:return[2]}}))}))},e.prototype.stop=function(){return Ls(this,void 0,void 0,(function(){var e;return js(this,(function(t){switch(t.label){case 0:return e=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:t.sent(),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,e];case 3:return t.sent(),[3,5];case 4:return t.sent(),[3,5];case 5:return[2]}}))}))},e.prototype.stopInternal=function(e){return this.connectionState===Ts.Disconnected?(this.logger.log(Os.a.Debug,"Call to HubConnection.stop("+e+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===Ts.Disconnecting?(this.logger.log(Os.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=Ts.Disconnecting,this.logger.log(Os.a.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(Os.a.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))},e.prototype.stream=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o,i=this.replaceStreamingParams(n),a=i[0],c=i[1],u=this.createStreamInvocation(e,n,c),s=new As;return s.cancelCallback=function(){var e=t.createCancelInvocation(u.invocationId);return delete t.callbacks[u.invocationId],o.then((function(){return t.sendWithProtocol(e)}))},this.callbacks[u.invocationId]=function(e,t){t?s.error(t):e&&(e.type===ms.Completion?e.error?s.error(new Error(e.error)):s.complete():s.next(e.item))},o=this.sendWithProtocol(u).catch((function(e){s.error(e),delete t.callbacks[u.invocationId]})),this.launchStreams(a,o),s},e.prototype.sendMessage=function(e){return this.resetKeepAliveInterval(),this.connection.send(e)},e.prototype.sendWithProtocol=function(e){return this.sendMessage(this.protocol.writeMessage(e))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.replaceStreamingParams(t),o=r[0],i=r[1],a=this.sendWithProtocol(this.createInvocation(e,t,!0,i));return this.launchStreams(o,a),a},e.prototype.invoke=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.replaceStreamingParams(n),i=o[0],a=o[1],c=this.createInvocation(e,n,!1,a),u=new Promise((function(e,n){t.callbacks[c.invocationId]=function(t,r){r?n(r):t&&(t.type===ms.Completion?t.error?n(new Error(t.error)):e(t.result):n(new Error("Unexpected message type: "+t.type)))};var r=t.sendWithProtocol(c).catch((function(e){n(e),delete t.callbacks[c.invocationId]}));t.launchStreams(i,r)}));return u},e.prototype.on=function(e,t){e&&t&&(e=e.toLowerCase(),this.methods[e]||(this.methods[e]=[]),-1===this.methods[e].indexOf(t)&&this.methods[e].push(t))},e.prototype.off=function(e,t){if(e){e=e.toLowerCase();var n=this.methods[e];if(n)if(t){var r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete this.methods[e])}else delete this.methods[e]}},e.prototype.onclose=function(e){e&&this.closedCallbacks.push(e)},e.prototype.onreconnecting=function(e){e&&this.reconnectingCallbacks.push(e)},e.prototype.onreconnected=function(e){e&&this.reconnectedCallbacks.push(e)},e.prototype.processIncomingData=function(e){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(e=this.processHandshakeResponse(e),this.receivedHandshakeResponse=!0),e)for(var t=0,n=this.protocol.parseMessages(e,this.logger);t<n.length;t++){var r=n[t];switch(r.type){case ms.Invocation:this.invokeClientMethod(r);break;case ms.StreamItem:case ms.Completion:var o=this.callbacks[r.invocationId];o&&(r.type===ms.Completion&&delete this.callbacks[r.invocationId],o(r));break;case ms.Ping:break;case ms.Close:this.logger.log(Os.a.Information,"Close message received from server.");var i=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(i):this.stopPromise=this.stopInternal(i);break;default:this.logger.log(Os.a.Warning,"Invalid message type: "+r.type+".")}}this.resetTimeoutPeriod()},e.prototype.processHandshakeResponse=function(e){var t,n,r;try{r=(t=this.handshakeProtocol.parseHandshakeResponse(e))[0],n=t[1]}catch(e){var o="Error parsing handshake response: "+e;this.logger.log(Os.a.Error,o);var i=new Error(o);throw this.handshakeRejecter(i),i}if(n.error){o="Server returned handshake error: "+n.error;this.logger.log(Os.a.Error,o);i=new Error(o);throw this.handshakeRejecter(i),i}return this.logger.log(Os.a.Debug,"Server handshake complete."),this.handshakeResolver(),r},e.prototype.resetKeepAliveInterval=function(){var e=this;this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return Ls(e,void 0,void 0,(function(){return js(this,(function(e){switch(e.label){case 0:if(this.connectionState!==Ts.Connected)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return e.sent(),[3,4];case 3:return e.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds)},e.prototype.resetTimeoutPeriod=function(){var e=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return e.serverTimeout()}),this.serverTimeoutInMilliseconds))},e.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},e.prototype.invokeClientMethod=function(e){var t=this,n=this.methods[e.target.toLowerCase()];if(n){try{n.forEach((function(n){return n.apply(t,e.arguments)}))}catch(t){this.logger.log(Os.a.Error,"A callback for the method "+e.target.toLowerCase()+" threw error '"+t+"'.")}if(e.invocationId){var r="Server requested a response, which is not supported in this version of the client.";this.logger.log(Os.a.Error,r),this.stopPromise=this.stopInternal(new Error(r))}}else this.logger.log(Os.a.Warning,"No client method with the name '"+e.target+"' found.")},e.prototype.connectionClosed=function(e){this.logger.log(Os.a.Debug,"HubConnection.connectionClosed("+e+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===Ts.Disconnecting?this.completeClose(e):this.connectionState===Ts.Connected&&this.reconnectPolicy?this.reconnect(e):this.connectionState===Ts.Connected&&this.completeClose(e)},e.prototype.completeClose=function(e){var t=this;if(this.connectionStarted){this.connectionState=Ts.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach((function(n){return n.apply(t,[e])}))}catch(t){this.logger.log(Os.a.Error,"An onclose callback called with error '"+e+"' threw error '"+t+"'.")}}},e.prototype.reconnect=function(e){return Ls(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return js(this,(function(c){switch(c.label){case 0:if(t=Date.now(),n=0,r=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),null===(o=this.getNextRetryDelay(n++,0,r)))return this.logger.log(Os.a.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(e),[2];if(this.connectionState=Ts.Reconnecting,e?this.logger.log(Os.a.Information,"Connection reconnecting because of error '"+e+"'."):this.logger.log(Os.a.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach((function(t){return t.apply(a,[e])}))}catch(t){this.logger.log(Os.a.Error,"An onreconnecting callback called with error '"+e+"' threw error '"+t+"'.")}if(this.connectionState!==Ts.Reconnecting)return this.logger.log(Os.a.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}c.label=1;case 1:return null===o?[3,7]:(this.logger.log(Os.a.Information,"Reconnect attempt number "+n+" will start in "+o+" ms."),[4,new Promise((function(e){a.reconnectDelayHandle=setTimeout(e,o)}))]);case 2:if(c.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==Ts.Reconnecting)return this.logger.log(Os.a.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(c.sent(),this.connectionState=Ts.Connected,this.logger.log(Os.a.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach((function(e){return e.apply(a,[a.connection.connectionId])}))}catch(e){this.logger.log(Os.a.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+e+"'.")}return[2];case 5:return i=c.sent(),this.logger.log(Os.a.Information,"Reconnect attempt failed because of error '"+i+"'."),this.connectionState!==Ts.Reconnecting?(this.logger.log(Os.a.Debug,"Connection left the reconnecting state during reconnect attempt. Done reconnecting."),[2]):(r=i instanceof Error?i:new Error(i.toString()),o=this.getNextRetryDelay(n++,Date.now()-t,r),[3,6]);case 6:return[3,1];case 7:return this.logger.log(Os.a.Information,"Reconnect retries have been exhausted after "+(Date.now()-t)+" ms and "+n+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}}))}))},e.prototype.getNextRetryDelay=function(e,t,n){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this.logger.log(Os.a.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+e+", "+t+") threw error '"+n+"'."),null}},e.prototype.cancelCallbacksWithError=function(e){var t=this.callbacks;this.callbacks={},Object.keys(t).forEach((function(n){(0,t[n])(null,e)}))},e.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},e.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},e.prototype.createInvocation=function(e,t,n,r){if(n)return{arguments:t,streamIds:r,target:e,type:ms.Invocation};var o=this.invocationId;return this.invocationId++,{arguments:t,invocationId:o.toString(),streamIds:r,target:e,type:ms.Invocation}},e.prototype.launchStreams=function(e,t){var n=this;if(0!==e.length){t||(t=Promise.resolve());var r=function(r){e[r].subscribe({complete:function(){t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r))}))},error:function(e){var o;o=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r,o))}))},next:function(e){t=t.then((function(){return n.sendWithProtocol(n.createStreamItemMessage(r,e))}))}})};for(var o in e)r(o)}},e.prototype.replaceStreamingParams=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var o=e[r];if(this.isObservable(o)){var i=this.invocationId;this.invocationId++,t[i]=o,n.push(i.toString()),e.splice(r,1)}}return[t,n]},e.prototype.isObservable=function(e){return e&&e.subscribe&&"function"==typeof e.subscribe},e.prototype.createStreamInvocation=function(e,t,n){var r=this.invocationId;return this.invocationId++,{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:ms.StreamInvocation}},e.prototype.createCancelInvocation=function(e){return{invocationId:e,type:ms.CancelInvocation}},e.prototype.createStreamItemMessage=function(e,t){return{invocationId:e,item:t,type:ms.StreamItem}},e.prototype.createCompletionMessage=function(e,t,n){return t?{error:t,invocationId:e,type:ms.Completion}:{invocationId:e,result:n,type:ms.Completion}},e}(),Us=[0,2e3,1e4,3e4,null],Ms=function(){function e(e){this.retryDelays=void 0!==e?e.concat([null]):Us}return e.prototype.nextRetryDelayInMilliseconds=function(e){return this.retryDelays[e.previousRetryCount]},e}();!function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(Ns||(Ns={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(Is||(Is={}));var Fs=function(){function e(){this.isAborted=!1,this.onabort=null}return e.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(e.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),e}(),Vs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Hs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},zs=function(){function e(e,t,n,r){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.pollAbort=new Fs,this.logMessageContent=r,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(e.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),e.prototype.connect=function(e,t){return Vs(this,void 0,void 0,(function(){var n,r,o,i;return Hs(this,(function(a){switch(a.label){case 0:if(xs.a.isRequired(e,"url"),xs.a.isRequired(t,"transferFormat"),xs.a.isIn(t,Is,"transferFormat"),this.url=e,this.logger.log(Os.a.Trace,"(LongPolling transport) Connecting."),t===Is.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},t===Is.Binary&&(n.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return r=a.sent(),this.updateHeaderToken(n,r),o=e+"&_="+Date.now(),this.logger.log(Os.a.Trace,"(LongPolling transport) polling: "+o+"."),[4,this.httpClient.get(o,n)];case 2:return 200!==(i=a.sent()).statusCode?(this.logger.log(Os.a.Error,"(LongPolling transport) Unexpected response code: "+i.statusCode+"."),this.closeError=new ws.b(i.statusText||"",i.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,n),[2]}}))}))},e.prototype.getAccessToken=function(){return Vs(this,void 0,void 0,(function(){return Hs(this,(function(e){switch(e.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,e.sent()];case 2:return[2,null]}}))}))},e.prototype.updateHeaderToken=function(e,t){e.headers||(e.headers={}),t?e.headers.Authorization="Bearer "+t:e.headers.Authorization&&delete e.headers.Authorization},e.prototype.poll=function(e,t){return Vs(this,void 0,void 0,(function(){var n,r,o,i;return Hs(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(t,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=e+"&_="+Date.now(),this.logger.log(Os.a.Trace,"(LongPolling transport) polling: "+r+"."),[4,this.httpClient.get(r,t)];case 4:return 204===(o=a.sent()).statusCode?(this.logger.log(Os.a.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==o.statusCode?(this.logger.log(Os.a.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new ws.b(o.statusText||"",o.statusCode),this.running=!1):o.content?(this.logger.log(Os.a.Trace,"(LongPolling transport) data received. "+Object(xs.f)(o.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(o.content)):this.logger.log(Os.a.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return i=a.sent(),this.running?i instanceof ws.c?this.logger.log(Os.a.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=i,this.running=!1):this.logger.log(Os.a.Trace,"(LongPolling transport) Poll errored after shutdown: "+i.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(Os.a.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},e.prototype.send=function(e){return Vs(this,void 0,void 0,(function(){return Hs(this,(function(t){return this.running?[2,Object(xs.h)(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return Vs(this,void 0,void 0,(function(){var e,t;return Hs(this,(function(n){switch(n.label){case 0:this.logger.log(Os.a.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,this.receiving];case 2:return n.sent(),this.logger.log(Os.a.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.getAccessToken()];case 3:return t=n.sent(),this.updateHeaderToken(e,t),[4,this.httpClient.delete(this.url,e)];case 4:return n.sent(),this.logger.log(Os.a.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(Os.a.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},e.prototype.raiseOnClose=function(){if(this.onclose){var e="(LongPolling transport) Firing onclose event.";this.closeError&&(e+=" Error: "+this.closeError),this.logger.log(Os.a.Trace,e),this.onclose(this.closeError)}},e}(),Bs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},qs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Ws=function(){function e(e,t,n,r,o){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.logMessageContent=r,this.eventSourceConstructor=o,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return Bs(this,void 0,void 0,(function(){var n,r=this;return qs(this,(function(o){switch(o.label){case 0:return xs.a.isRequired(e,"url"),xs.a.isRequired(t,"transferFormat"),xs.a.isIn(t,Is,"transferFormat"),this.logger.log(Os.a.Trace,"(SSE transport) Connecting."),this.url=e,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i=!1;if(t===Is.Text){var a;if(xs.c.isBrowser||xs.c.isWebWorker)a=new r.eventSourceConstructor(e,{withCredentials:!0});else{var c=r.httpClient.getCookieString(e);a=new r.eventSourceConstructor(e,{withCredentials:!0,headers:{Cookie:c}})}try{a.onmessage=function(e){if(r.onreceive)try{r.logger.log(Os.a.Trace,"(SSE transport) data received. "+Object(xs.f)(e.data,r.logMessageContent)+"."),r.onreceive(e.data)}catch(e){return void r.close(e)}},a.onerror=function(e){var t=new Error(e.data||"Error occurred");i?r.close(t):o(t)},a.onopen=function(){r.logger.log(Os.a.Information,"SSE connected to "+r.url),r.eventSource=a,i=!0,n()}}catch(e){return void o(e)}}else o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},e.prototype.send=function(e){return Bs(this,void 0,void 0,(function(){return qs(this,(function(t){return this.eventSource?[2,Object(xs.h)(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return this.close(),Promise.resolve()},e.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(e))},e}(),Js=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Gs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Ys=function(){function e(e,t,n,r,o){this.logger=n,this.accessTokenFactory=t,this.logMessageContent=r,this.webSocketConstructor=o,this.httpClient=e,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return Js(this,void 0,void 0,(function(){var n,r=this;return Gs(this,(function(o){switch(o.label){case 0:return xs.a.isRequired(e,"url"),xs.a.isRequired(t,"transferFormat"),xs.a.isIn(t,Is,"transferFormat"),this.logger.log(Os.a.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i;e=e.replace(/^http/,"ws");var a=r.httpClient.getCookieString(e),c=!1;xs.c.isNode&&a&&(i=new r.webSocketConstructor(e,void 0,{headers:{Cookie:""+a}})),i||(i=new r.webSocketConstructor(e)),t===Is.Binary&&(i.binaryType="arraybuffer"),i.onopen=function(t){r.logger.log(Os.a.Information,"WebSocket connected to "+e+"."),r.webSocket=i,c=!0,n()},i.onerror=function(e){var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)},i.onmessage=function(e){r.logger.log(Os.a.Trace,"(WebSockets transport) data received. "+Object(xs.f)(e.data,r.logMessageContent)+"."),r.onreceive&&r.onreceive(e.data)},i.onclose=function(e){if(c)r.close(e);else{var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)}}}))]}}))}))},e.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(Os.a.Trace,"(WebSockets transport) sending data. "+Object(xs.f)(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},e.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},e.prototype.close=function(e){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(Os.a.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!e||!1!==e.wasClean&&1e3===e.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+e.code+" ("+e.reason+").")))},e}(),Ks=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Qs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Zs=null,Xs=null;if(xs.c.isNode){var $s=require;Zs=$s("ws"),Xs=$s("eventsource")}var el=function(){function e(e,t){void 0===t&&(t={}),this.features={},this.negotiateVersion=1,xs.a.isRequired(e,"url"),this.logger=Object(xs.e)(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).logMessageContent=t.logMessageContent||!1,xs.c.isNode||"undefined"==typeof WebSocket||t.WebSocket?xs.c.isNode&&!t.WebSocket&&Zs&&(t.WebSocket=Zs):t.WebSocket=WebSocket,xs.c.isNode||"undefined"==typeof EventSource||t.EventSource?xs.c.isNode&&!t.EventSource&&void 0!==Xs&&(t.EventSource=Xs):t.EventSource=EventSource,this.httpClient=t.httpClient||new Rs(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=t,this.onreceive=null,this.onclose=null}return e.prototype.start=function(e){return Ks(this,void 0,void 0,(function(){var t;return Qs(this,(function(n){switch(n.label){case 0:return e=e||Is.Binary,xs.a.isIn(e,Is,"transferFormat"),this.logger.log(Os.a.Debug,"Starting connection with transfer format '"+Is[e]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(e),[4,this.startInternalPromise]);case 1:return n.sent(),"Disconnecting"!==this.connectionState?[3,3]:(t="Failed to start the HttpConnection before stop() was called.",this.logger.log(Os.a.Error,t),[4,this.stopPromise]);case 2:return n.sent(),[2,Promise.reject(new Error(t))];case 3:if("Connected"!==this.connectionState)return t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log(Os.a.Error,t),[2,Promise.reject(new Error(t))];n.label=4;case 4:return this.connectionStarted=!0,[2]}}))}))},e.prototype.send=function(e){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new tl(this.transport)),this.sendQueue.send(e))},e.prototype.stop=function(e){return Ks(this,void 0,void 0,(function(){var t=this;return Qs(this,(function(n){switch(n.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(Os.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(Os.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise((function(e){t.stopPromiseResolver=e})),[4,this.stopInternal(e)]);case 1:return n.sent(),[4,this.stopPromise];case 2:return n.sent(),[2]}}))}))},e.prototype.stopInternal=function(e){return Ks(this,void 0,void 0,(function(){var t;return Qs(this,(function(n){switch(n.label){case 0:this.stopError=e,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:if(!this.transport)return[3,9];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return n.sent(),[3,8];case 7:return t=n.sent(),this.logger.log(Os.a.Error,"HttpConnection.transport.stop() threw error '"+t+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(Os.a.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),this.stopConnection(),n.label=10;case 10:return[2]}}))}))},e.prototype.startInternal=function(e){return Ks(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Qs(this,(function(c){switch(c.label){case 0:t=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,c.label=1;case 1:return c.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==Ns.WebSockets?[3,3]:(this.transport=this.constructTransport(Ns.WebSockets),[4,this.startTransport(t,e)]):[3,5];case 2:return c.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,r=0,o=function(){var e;return Qs(this,(function(o){switch(o.label){case 0:return[4,i.getNegotiationResponse(t)];case 1:if(n=o.sent(),"Disconnecting"===i.connectionState||"Disconnected"===i.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(t=n.url),n.accessToken&&(e=n.accessToken,i.accessTokenFactory=function(){return e}),r++,[2]}}))},i=this,c.label=6;case 6:return[5,o()];case 7:c.sent(),c.label=8;case 8:if(n.url&&r<100)return[3,6];c.label=9;case 9:if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(t,this.options.transport,n,e)];case 10:c.sent(),c.label=11;case 11:return this.transport instanceof zs&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(Os.a.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return a=c.sent(),this.logger.log(Os.a.Error,"Failed to start the connection: "+a),this.connectionState="Disconnected",this.transport=void 0,[2,Promise.reject(a)];case 13:return[2]}}))}))},e.prototype.getNegotiationResponse=function(e){return Ks(this,void 0,void 0,(function(){var t,n,r,o,i,a,c;return Qs(this,(function(u){switch(u.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(r=u.sent())&&((t={}).Authorization="Bearer "+r,n=t),u.label=2;case 2:o=this.resolveNegotiateUrl(e),this.logger.log(Os.a.Debug,"Sending negotiation request: "+o+"."),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.httpClient.post(o,{content:"",headers:n})];case 4:return 200!==(i=u.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+i.statusCode))]:((!(a=JSON.parse(i.content)).negotiateVersion||a.negotiateVersion<1)&&(a.connectionToken=a.connectionId),[2,a]);case 5:return c=u.sent(),this.logger.log(Os.a.Error,"Failed to complete negotiation with the server: "+c),[2,Promise.reject(c)];case 6:return[2]}}))}))},e.prototype.createConnectUrl=function(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e},e.prototype.createTransport=function(e,t,n,r){return Ks(this,void 0,void 0,(function(){var o,i,a,c,u,s,l,f,p,h,d;return Qs(this,(function(y){switch(y.label){case 0:return o=this.createConnectUrl(e,n.connectionToken),this.isITransport(t)?(this.logger.log(Os.a.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,[4,this.startTransport(o,r)]):[3,2];case 1:return y.sent(),this.connectionId=n.connectionId,[2];case 2:i=[],a=n.availableTransports||[],c=n,u=0,s=a,y.label=3;case 3:return u<s.length?(l=s[u],(f=this.resolveTransportOrError(l,t,r))instanceof Error?(i.push(l.transport+" failed: "+f),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(f))return[3,12];if(this.transport=f,c)return[3,9];y.label=5;case 5:return y.trys.push([5,7,,8]),[4,this.getNegotiationResponse(e)];case 6:return c=y.sent(),[3,8];case 7:return p=y.sent(),[2,Promise.reject(p)];case 8:o=this.createConnectUrl(e,c.connectionToken),y.label=9;case 9:return y.trys.push([9,11,,12]),[4,this.startTransport(o,r)];case 10:return y.sent(),this.connectionId=c.connectionId,[2];case 11:return h=y.sent(),this.logger.log(Os.a.Error,"Failed to start the transport '"+l.transport+"': "+h),c=void 0,i.push(l.transport+" failed: "+h),"Connecting "!==this.connectionState?(d="Failed to select transport before stop() was called.",this.logger.log(Os.a.Debug,d),[2,Promise.reject(new Error(d))]):[3,12];case 12:return u++,[3,3];case 13:return i.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+i.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},e.prototype.constructTransport=function(e){switch(e){case Ns.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Ys(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case Ns.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Ws(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case Ns.LongPolling:return new zs(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+e+".")}},e.prototype.startTransport=function(e,t){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return n.stopConnection(e)},this.transport.connect(e,t)},e.prototype.resolveTransportOrError=function(e,t,n){var r=Ns[e.transport];if(null==r)return this.logger.log(Os.a.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(!function(e,t){return!e||0!=(t&e)}(t,r))return this.logger.log(Os.a.Debug,"Skipping transport '"+Ns[r]+"' because it was disabled by the client."),new Error("'"+Ns[r]+"' is disabled by the client.");if(!(e.transferFormats.map((function(e){return Is[e]})).indexOf(n)>=0))return this.logger.log(Os.a.Debug,"Skipping transport '"+Ns[r]+"' because it does not support the requested transfer format '"+Is[n]+"'."),new Error("'"+Ns[r]+"' does not support "+Is[n]+".");if(r===Ns.WebSockets&&!this.options.WebSocket||r===Ns.ServerSentEvents&&!this.options.EventSource)return this.logger.log(Os.a.Debug,"Skipping transport '"+Ns[r]+"' because it is not supported in your environment.'"),new Error("'"+Ns[r]+"' is not supported in your environment.");this.logger.log(Os.a.Debug,"Selecting transport '"+Ns[r]+"'.");try{return this.constructTransport(r)}catch(e){return e}},e.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},e.prototype.stopConnection=function(e){var t=this;if(this.logger.log(Os.a.Debug,"HttpConnection.stopConnection("+e+") called while in state "+this.connectionState+"."),this.transport=void 0,e=this.stopError||e,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),e?this.logger.log(Os.a.Error,"Connection disconnected with error '"+e+"'."):this.logger.log(Os.a.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch((function(e){t.logger.log(Os.a.Error,"TransportSendQueue.stop() threw error '"+e+"'.")})),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this.logger.log(Os.a.Error,"HttpConnection.onclose("+e+") threw error '"+t+"'.")}}}else this.logger.log(Os.a.Warning,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(Os.a.Debug,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is already in the disconnected state.")},e.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!xs.c.isBrowser||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log(Os.a.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},e.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===t?"":e.substring(t)).indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},e}();var tl=function(){function e(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new nl,this.transportResult=new nl,this.sendLoopPromise=this.sendLoop()}return e.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new nl),this.transportResult.promise},e.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},e.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},e.prototype.sendLoop=function(){return Ks(this,void 0,void 0,(function(){var t,n,r;return Qs(this,(function(o){switch(o.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(o.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new nl,t=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):e.concatBuffers(this.buffer),this.buffer.length=0,o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return o.sent(),t.resolve(),[3,5];case 4:return r=o.sent(),t.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},e.concatBuffers=function(e){for(var t=e.map((function(e){return e.byteLength})).reduce((function(e,t){return e+t})),n=new Uint8Array(t),r=0,o=0,i=e;o<i.length;o++){var a=i[o];n.set(new Uint8Array(a),r),r+=a.byteLength}return n},e}(),nl=function(){function e(){var e=this;this.promise=new Promise((function(t,n){var r;return r=[t,n],e.resolver=r[0],e.rejecter=r[1],r}))}return e.prototype.resolve=function(){this.resolver()},e.prototype.reject=function(e){this.rejecter(e)},e}(),rl=n(100),ol=n(106),il=function(){function e(){this.name="json",this.version=1,this.transferFormat=Is.Text}return e.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=rl.a.instance);for(var n=[],r=0,o=ol.a.parse(e);r<o.length;r++){var i=o[r],a=JSON.parse(i);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case ms.Invocation:this.isInvocationMessage(a);break;case ms.StreamItem:this.isStreamItemMessage(a);break;case ms.Completion:this.isCompletionMessage(a);break;case ms.Ping:case ms.Close:break;default:t.log(Os.a.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},e.prototype.writeMessage=function(e){return ol.a.write(JSON.stringify(e))},e.prototype.isInvocationMessage=function(e){this.assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this.assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")},e.prototype.isStreamItemMessage=function(e){if(this.assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")},e.prototype.isCompletionMessage=function(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this.assertNotEmptyString(e.error,"Invalid payload for Completion message."),this.assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")},e.prototype.assertNotEmptyString=function(e,t){if("string"!=typeof e||""===e)throw new Error(t)},e}(),al=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cl={trace:Os.a.Trace,debug:Os.a.Debug,info:Os.a.Information,information:Os.a.Information,warn:Os.a.Warning,warning:Os.a.Warning,error:Os.a.Error,critical:Os.a.Critical,none:Os.a.None};var ul=function(){function e(){}return e.prototype.configureLogging=function(e){if(xs.a.isRequired(e,"logging"),void 0!==e.log)this.logger=e;else if("string"==typeof e){var t=function(e){var t=cl[e.toLowerCase()];if(void 0!==t)return t;throw new Error("Unknown log level: "+e)}(e);this.logger=new xs.b(t)}else this.logger=new xs.b(e);return this},e.prototype.withUrl=function(e,t){return xs.a.isRequired(e,"url"),this.url=e,this.httpConnectionOptions=al({},this.httpConnectionOptions,"object"==typeof t?t:{transport:t}),this},e.prototype.withHubProtocol=function(e){return xs.a.isRequired(e,"protocol"),this.protocol=e,this},e.prototype.withAutomaticReconnect=function(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new Ms(e):this.reconnectPolicy=e:this.reconnectPolicy=new Ms,this},e.prototype.build=function(){var e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var t=new el(this.url,e);return Ds.create(t,this.logger||rl.a.instance,this.protocol||new il,this.reconnectPolicy)},e}();function sl(e){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ll(e){return function(e){if(Array.isArray(e))return fl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hl(e,t){return(hl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vl(e);if(t){var o=vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yl(this,n)}}function yl(e,t){return!t||"object"!==sl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vl(e){return(vl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gl(e){return(gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ml(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wl(e,t){return(wl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ol(e);if(t){var o=Ol(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cl(this,n)}}function Cl(e,t){return!t||"object"!==gl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ol(e){return(Ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wl(e,t)}(i,e);var t,n,r,o=Sl(i);function i(){return ml(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return qn.Notifications}}])&&bl(t.prototype,n),r&&bl(t,r),i}(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hl(e,t)}(i,e);var t,n,r,o=dl(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).subscribeEvent="subscribe",t.reconnectTimeout=5e3,t.reconnectAttempts=100,t.reconnectTries=0,t.connection=t.createConnection(e),t.authEndpoint=e.authEndpoint,t.setProviderOptions(e),t.attachSocketEvents(),!1===e.lazy&&t.openConnection(),t}return t=i,(n=[{key:"setProviderOptions",value:function(e){e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(Ts.Connecting),this.connect()}},{key:"connect",value:function(){var e=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(t){return e.start.apply(e,t)}),(function(t){return e.onConnectionError.apply(e,t)}))}},{key:"start",value:function(e){var t=this;return this.connection.invoke(this.subscribeEvent,e.token).then((function(){return t.setConnectionState(Ts.Connected)})).catch((function(e){return t.onConnectionError(e)}))}},{key:"stop",value:function(){if(this.isConnectedOrConnecting())return this.connection.stop()}},{key:"attachSocketEvents",value:function(){var e=this;this.connection.onclose((function(){return e.onConnectionError})),this.connection.onreconnected((function(){return e.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(e){var t=this;e?console.log("Connection Error. Reason: ".concat(e)):console.log("Connection Error."),this.setConnectionState(Ts.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout((function(){return t.reconnectTries++,t.openConnection()}),this.reconnectTimeout||5e3)}},{key:"createConnection",value:function(e){var t=new ul,n=Gr.a.removeTrailingSlash(e.endpoint),r="".concat(n,"/hubs/").concat(e.hubName),o={logger:Os.a.Error};return e.logging&&(o.logger=Os.a.Debug),t.withUrl(r,o).build()}},{key:"getConnectionToken",value:function(){var e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}},{key:"setConnectionState",value:function(e){e===Ts.Connected&&console.log("Connected!"),e===Ts.Disconnected&&console.log("Disconnected!"),this.connectionState=e}},{key:"isConnectedOrConnecting",value:function(){return this.connectionState===Ts.Connecting||this.connectionState===Ts.Connected||this.connectionState===Ts.Reconnecting}},{key:"create",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"read",value:function(e,t){this.openConnection(),this.subscribe(e,t)}},{key:"update",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"delete",value:function(e,t){this.openConnection(),this.rpc(e,null,t)}},{key:"parseError",value:function(){return Jn.a}},{key:"rpc",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.connection.invoke(e,t).then((function(e){return r.trigger.apply(r,[o].concat(ll(e)))})).catch((function(e){return r.trigger.apply(r,[i].concat(ll(e)))}))}},{key:"subscribe",value:function(e,t){var n=t.channel,r=t.successEvent;t.errorEvent,this.connection.on(e,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];n.trigger.apply(n,[r].concat(t))}))}}])&&pl(t.prototype,n),r&&pl(t,r),i}(Wn.Object));function El(e){return(El="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _l(e,t){return(_l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Al(e);if(t){var o=Al(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xl(this,n)}}function xl(e,t){return!t||"object"!==El(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Al(e){return(Al=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ll=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_l(e,t)}(c,e);var t,n,o,i=Tl(c);function c(){return Pl(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(u.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(ur.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(ur.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}},{key:"getSearchContext",value:function(){return this.searchContext}},{key:"onRouteChange",value:function(e,t){t.isAppRoute&&this.setSearchContext(e)}},{key:"onTypeaheadToggle",value:function(e){if(!e.open&&!this.searchContext.get("filterValue")){var t=Qi.a.getCurrentContext().appLink;this.setSearchContext(t)}}},{key:"setSearchContext",value:function(e){var t=this.isValidSearchContext(e);t?this.updateSearchContext(t,e.args):this.inSearchView(e)||a.Radio.channel(ur.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"updateSearchContext",value:function(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}},{key:"setFilterValue",value:function(e){var t={filterValue:e,title:e};this.searchContext.set(t)}},{key:"resetSearchContext",value:function(){this.searchContext.clear({silent:!0})}},{key:"isValidSearchContext",value:function(e){return this.appVariables||(this.appVariables=k.a.getInstance(Rt.a.SEARCH,this)),An.find((t=this.lang,n=this.appVariables.appLinks,r=[],n.folder&&r.push({appLink:n.folder,searchTag:Jr.a.getPhrase(t,"folderTag"),filterParam:"folder",setFilterValue:function(e,t){k.a.getInstance(ar.a.Library,t).getFolder(An.first(e.appLink.args).toString(),(function(e){t.setFilterValue(e.get("name")),k.a.releaseInstance(ar.a.Library)}))}}),n.series&&r.push({appLink:n.series,searchTag:Jr.a.getPhrase(t,"seriesTag"),filterParam:"series",setFilterValue:function(e,t){k.a.getInstance(ar.a.Series,t).getSeries(An.first(e.appLink.args).toString(),(function(e){t.setFilterValue(e.name),k.a.releaseInstance(ar.a.Series)}))}}),r),(function(t){return e.application===t.appLink.application&&e.action===t.appLink.action}));var t,n,r}},{key:"inSearchView",value:function(e){var t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}},{key:"name",get:function(){return ar.b.ContextualSearch}},{key:"lang",get:function(){return"search.services"}}])&&Rl(t.prototype,n),o&&Rl(t,o),c}(r.a.Service),jl=n(239);function Nl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Il=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"clearVideoCache",value:function(){this.store.dispatch({type:zo.a.Actions.INVALIDATE,keys:["video"],request:null})}},{key:"getVideos",value:function(e,t){var n=function(e){xo.a.isFunction(t)&&t(new r.a.Collection(e))},o=jl.a.videos(e,n),i=zo.a.getResponse(this.store.getState(),o.key);return i.shouldFetch?zo.a.fetch(this.store.dispatch,o):n(i.data),new r.a.Collection(i.data)}},{key:"name",get:function(){return P.a.Video}}])&&Nl(t.prototype,n),o&&Nl(t,o),e}();function Dl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ul,Ml,Fl=function(e,t){return{url:"/api/domain/v2/process?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:clear:".concat(e.join(",")),success:t,normalize:!1,type:Gn.a.DELETE}},Vl=function(e,t){return{url:"/api/domain/v2/process/cancel?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:cancel:".concat(e.join(",")),success:t,normalize:!1,type:Gn.a.DELETE}},Hl=function(e,t){return{url:"/api/domain/v2/process/retry?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:retry:".concat(e.join(",")),success:t,normalize:!1,type:Gn.a.POST}},zl=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},Bl=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},ql=function(e,t){return{url:"/api/domain/v2/process",key:"complete:upload:".concat(e.id),type:Gn.a.POST,success:t,data:e}},Wl=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"clearPendingItems",value:function(e,t){zo.a.fetch(this.store.dispatch,Fl(e,t))}},{key:"cancelPendingItems",value:function(e,t){zo.a.fetch(this.store.dispatch,Vl(e,t))}},{key:"retryPendingItems",value:function(e,t){zo.a.fetch(this.store.dispatch,Hl(e,t))}},{key:"getPendingItem",value:function(e,t){zo.a.fetch(this.store.dispatch,zl(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){zo.a.fetch(this.store.dispatch,Bl(e))}},{key:"completeVideoUpload",value:function(e,t){zo.a.fetch(this.store.dispatch,ql(e,t))}},{key:"name",get:function(){return P.a.VideoUpload}}])&&Dl(t.prototype,n),o&&Dl(t,o),e}(),Jl=n(252);!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(Ul||(Ul={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Ml||(Ml={}));var Gl=["pdf"],Yl=["doc","docx","dotx","dot","rtf","docm","odt"],Kl=["csv","txt"],Ql=["xls","xlt","xlsx"],Zl=["jpg","tif","png","bmp","gif","jpeg"],Xl=["zip","rar"],$l=["ppt","pot","pps","pptx"],ef=["srt"],tf={IMAGES:".".concat(Zl.join(",.")),RESOURCES:".".concat([].concat(Yl,Ql,$l,Gl,Kl,Zl,Xl).join(",.")),SUBTITLES:".".concat(ef.join(",."))};function nf(e){return(nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function of(e,t){return(of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function af(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uf(e);if(t){var o=uf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cf(this,n)}}function cf(e,t){return!t||"object"!==nf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uf(e){return(uf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&of(e,t)}(i,e);var t,n,r,o=af(i);function i(e,t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:Jr.a.getPhrase(this.lang,"heading"),text:Jr.a.getPhrase(this.lang,"body"),buttons:[{text:Jr.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:Jr.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&rf(t.prototype,n),r&&rf(t,r),i}(_i),lf=n(234);function ff(e){return(ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hf(e,t){return(hf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function df(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vf(e);if(t){var o=vf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yf(this,n)}}function yf(e,t){return!t||"object"!==ff(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vf(e){return(vf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hf(e,t)}(i,e);var t,n,r,o=df(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Jr.a.getPhrase("upload.internetConnectivityError","title"))}return t=i,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:Jr.a.getPhrase("upload.internetConnectivityError","heading"),text:Jr.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:Jr.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}])&&pf(t.prototype,n),r&&pf(t,r),i}(_i);function mf(e){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wf(e,t){return(wf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Of(e);if(t){var o=Of(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cf(this,n)}}function Cf(e,t){return!t||"object"!==mf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Of(e){return(Of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kf,Ef,Pf=[],Rf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wf(e,t)}(c,e);var t,n,o,i=Sf(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,o=[{key:"isValidFile",value:function(e,t){return lf.isValidFile(e,t)}}],(n=[{key:"initialize",value:function(e){var t=this.options.loggingEnabled,n=a.Radio.channel(e.channelName),o=this;this.dropzone=new lf(document.createElement("div"),{url:function(e){return e[0].cvUpload.ingestUrl},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){var e=this;t&&(An.each(Pf,(function(t){e.on(t,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0]instanceof File?n[0].name:n[0];console.info(t,o,n)}))})),this.on("uploadprogress",(function(e,t,r){var i=r/e.size*100;n.trigger("progress",o.getId(e),i,r)})),this.on("success",(function(e){var t=e.upload.chunks,r=An.last(t),o=r.xhr;o||(o=r.file.xhr);var i=JSON.parse(o.response);e.cvUpload.fileUrl=i.url,n.trigger("upload:success",e,i)})),this.on("error",(function(e,t,n){n&&0===n.status?r.a.ErrorHelper.throw(new gf):"canceled"!==e.status&&r.a.ErrorHelper.throw(new hi(Jr.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))})))},params:function(e,t,n){if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:function(){},thumbnail:function(){},uploadprogress:function(){}})}},{key:"getId",value:function(e){return e.upload.uuid}},{key:"addFile",value:function(e){this.dropzone.addFile(e)}},{key:"removeFile",value:function(e){this.dropzone.removeFile(e)}},{key:"start",value:function(){this.dropzone.processQueue()}},{key:"destroy",value:function(){this.dropzone.destroy()}},{key:"name",get:function(){return"DropzoneWrapper"}}])&&bf(t.prototype,n),o&&bf(t,o),c}(r.a.Service);function _f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tf(e){return(Tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lf(e,t,n){return t&&Af(e.prototype,t),n&&Af(e,n),e}function jf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nf(e,t)}function Nf(e,t){return(Nf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function If(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Uf(e);if(t){var o=Uf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Df(this,n)}}function Df(e,t){return!t||"object"!==Tf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Uf(e){return(Uf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mf,Ff=function(e){jf(n,e);var t=If(n);function n(){return xf(this,n),t.call(this,{dataProvider:k.a.getInstance(qn.Ajax),cache:k.a.getInstance(xn.Fifo),alertService:k.a.getInstance(or.a.ALERT)})}return Lf(n,[{key:"requestUploads",value:function(e,t,n,r){var o=this,i=this.chain();An.each(e,(function(e){i.create({resource:"/api/upload",eventPrefix:"request:upload",data:o.getFileUploadRequest(e,t),callback:function(t){n(e,t)}})})),i.func((function(){r()})).run()}},{key:"cancelUpload",value:function(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}},{key:"getFileUploadRequest",value:function(e,t){var n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}},{key:"onDestroy",value:function(){k.a.releaseInstance(qn.Ajax).releaseInstance(xn.Fifo)}},{key:"name",get:function(){return"UploadDataService"}},{key:"channelName",get:function(){return"private:upload:data:service"}}]),n}(ir.a);!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(Mf||(Mf={}));var Vf,Hf,zf=(_f(kf={},Mf.Video,"video/*"),_f(kf,Mf.LearningResource,tf.RESOURCES),_f(kf,Mf.Subtitle,tf.SUBTITLES),kf),Bf=(_f(Ef={},Mf.Video,ur.c.VIDEO_UPLOAD),_f(Ef,Mf.LearningResource,ur.c.RESOURCE_UPLOAD),_f(Ef,Mf.Subtitle,ur.c.SUBTITLE_UPLOAD),Ef),qf=function(e){jf(n,e);var t=If(n);function n(){return xf(this,n),t.apply(this,arguments)}return Lf(n,[{key:"initialize",value:function(){this.uploadDataService=new Ff,this.progressViewModel=na.a.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"initUploader",value:function(e,t){if(!this.uploader){var n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new Rf({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}},{key:"onProgress",value:function(e,t,n){var r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}},{key:"isUploading",value:function(){return!!this.getCollection().length}},{key:"getCollection",value:function(){return this.collection||(this.collection=new r.a.Collection),this.collection}},{key:"setOverallProgress",value:function(){var e=0,t=0,n=this.getCollection();if(n.length){n.each((function(n){e+=n.get("totalUploaded")||0,t+=n.get("file").size||0}));var r=e/t*100,o=r>100;this.progressViewModel.set({progress:o?100:r,done:o})}else this.progressViewModel.set({progress:0})}},{key:"isValidFile",value:function(e){return Rf.isValidFile(e,this.getAcceptedFiles())}},{key:"addFiles",value:function(e,t){var n=this;An.any(e,(function(e){return!n.isValidFile(e)}))?r.a.ErrorHelper.throw(new sf(Jr.a.getPhrase(this.lang,"invalidFileType"),e,this.getAcceptedFiles())):this.requestUploads(e,t)}},{key:"requestUploads",value:function(e,t){var n=this,r=this.isUploading(),o=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(function(e,t){n.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},n.uploader.addFile(e);var r=e.name;n.uploadType===Mf.Video&&(r=r.replace(/\.[^/.]+$/,"")),o.add({id:n.uploader.getId(e),file:e,name:r},{at:o.length-1})}),(function(){t&&ea.a.logUserAction({uploadCount:e.length},t),a.Radio.channel(n.channelName).trigger(ts.a.FILES_ADDED,e,r)}))}},{key:"addFile",value:function(e,t){this.addFiles([e],t)}},{key:"cancelUpload",value:function(e){var t=this,n=this.getCollection(),r=n.get(e);if(r){var o=r.get("file");this.uploader.removeFile(o),n.remove(r),this.uploadDataService.cancelUpload(o.cvUpload.uploadId,o.cvUpload.ingestUrl,(function(){ea.a.logUserAction({id:o.cvUpload.uploadId},{entity:w.d.Video,actionType:w.n.Upload,workflowPhase:w.o.Discard,descriptor:w.k.Single,location:w.j.MyUploads}),a.Radio.channel(t.channelName).trigger(ts.a.UPLOAD_CANCELLED)})),this.setOverallProgress()}}},{key:"onSuccess",value:function(e,t){var n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),ea.a.logUserAction({id:e.cvUpload.uploadId},{entity:w.d.Video,actionType:w.n.Upload,workflowPhase:w.o.Complete,descriptor:w.k.Single,location:w.j.VideoUpload}),a.Radio.channel(this.channelName).trigger(ts.a.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var e=this,t=this.getCollection().map((function(e){return e.get("id")}));An.each(t,(function(t){return e.cancelUpload(t)}))}},{key:"getAcceptedFiles",value:function(){return zf[this.uploadType]}},{key:"channelName",get:function(){return Bf[this.uploadType]}},{key:"lang",get:function(){return"upload.services"}}]),n}(r.a.Service),Wf=function(e){jf(n,e);var t=If(n);function n(){return xf(this,n),t.apply(this,arguments)}return Lf(n,[{key:"uploadType",get:function(){return Mf.Video}},{key:"name",get:function(){return ar.b.VideoUpload}},{key:"fileLifestyle",get:function(){return Ml.Temporary}}]),n}(qf);function Jf(e){return(Jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kf(e,t,n){return(Kf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$f(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Qf(e,t){return(Qf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$f(e);if(t){var o=$f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xf(this,n)}}function Xf(e,t){return!t||"object"!==Jf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $f(e){return($f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(Vf||(Vf={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(Hf||(Hf={}));var ep=Jr.a.encloseNamespace("upload.services"),tp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qf(e,t)}(i,e);var t,n,r,o=Zf(i);function i(){return Gf(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){Kf($f(i.prototype),"initialize",this).call(this),this.videoUploadDataService=k.a.getInstance(P.a.VideoUpload,this),this.pendingItemsService=k.a.getInstance(P.b.PendingItems,this),this.userDataService=k.a.getInstance(P.a.User,this),this.alertService=k.a.getInstance(or.a.ALERT,this),this.listenTo(this.channelName,ts.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,ts.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,ts.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:rr.a.Success,heading:ep("startUploadAlertHeading"),message:1===e.length?ep("startUploadSingleAlertBody",{videoName:e[0].name}):ep("startUploadMultipleAlertBody",{uploadCount:e.length})},n=Qi.a.getCurrentContext().appLink;!!Ac.a.getMyVideosAppLinks().find((function(e){return n.application===e.application&&n.action===e.action}))||(t.appLinkText=ep("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:O.a.DEFAULT,action:E.a.Default.MY_VIDEOS},t.appLinkClassName="info-link"),this.alertService.createAlert(t)}},{key:"unlockNav",value:function(){this.getCollection().some((function(e){return e.get("progress")<100}))||a.Radio.channel(this.channelName).trigger(ts.a.UNLOCK_NAV)}},{key:"getUpload",value:function(e){var t=this.uploader.getId(e);return this.getCollection().get(t)}},{key:"completeUpload",value:function(e,t){var n=this;e.set("sending",!0),this.userDataService.getCurrentUser((function(r){n.userDataService.getWorkspace((function(o){n.videoUploadDataService.completeVideoUpload({id:e.get("id"),userId:r.id,customerId:r.customerId,libraryId:o.id,categoryId:o.categoryTree.id,pendingProcessOrigin:Ul.Upload,origin:Vf.Lite,fileUrl:t.url,subtitleOptions:{subtitleExtractOptions:Hf.EmbeddedOnly},video:{name:e.get("name"),description:e.get("description")}},(function(t){e.set("pendingProcessId",t.pendingProcessId),n.pendingItemsService.forceFetchPendingItems({resetTimeout:!0})}))}))}))}},{key:"onSuccess",value:function(e,t){var n=this;Kf($f(i.prototype),"onSuccess",this).call(this,e,t);var r=this.getUpload(e);r.get("editingMetadata")?this.listenToOnce(r,"change:editingMetadata",(function(){n.completeUpload(r,t)})):this.completeUpload(r,t)}}])&&Yf(t.prototype,n),r&&Yf(t,r),i}(Wf);function np(e){return(np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function op(e,t){return(op=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ip(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cp(e);if(t){var o=cp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ap(this,n)}}function ap(e,t){return!t||"object"!==np(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cp(e){return(cp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var up=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&op(e,t)}(i,e);var t,n,r,o=ip(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).imageUrls=e.imageUrls,t}return t=i,(n=[{key:"getImageUrls",value:function(){return this.imageUrls}},{key:"name",get:function(){return ar.b.ImageUrl}}])&&rp(t.prototype,n),r&&rp(t,r),i}(r.a.Service),sp={EmptyStates:{VIDEOS:""},ErrorViews:{DEFAULT:""}};var lp=n(202),fp=n(57),pp=n(183);function hp(e,t){return fp.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}var dp={version:null};function yp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dp,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pp.a.API_REPONSE:return hp(e,t)}return e}var vp=n(193);function gp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mp(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),gp({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),gp({},t.payload.dataOrKey,t.payload.keyData)))):Object.assign(Object.assign({},e),gp({},t.payload.viewModelKey,t.payload.dataOrKey))}function bp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vp.a.UPDATE:return mp(e,t)}return e}var wp=n(185),Sp=n(160);function Cp(e,t){var n,r,o,i=Object(lp.combineReducers)({flightData:zo.a.FlightReducer,applicationData:yp,viewModelData:bp}),a=zo.a.createMiddleware({fetchData:zo.a.ajaxRequest,bootstrappedData:window.bootstrapData||{},defaultExpiryTime:pr.a.STANDARD}),c=(n={oldVersionError:new Ln.a("A new version is available"),authenticationError:new Ln.a("Authentication Error")},r=n.oldVersionError,o=n.authenticationError,function(e){return function(t){return function(n){var i,a,c,u;if(n.type===wp.Actions.API_REPONSE){var s=n,l=e.getState().applicationData.version,f=null===(a=null===(i=s)||void 0===i?void 0:i.xhr)||void 0===a?void 0:a.getResponseHeader("X-App-Version");r&&l&&f&&f!==l&&Nn.c.throw(r),o&&(null===(u=null===(c=s)||void 0===c?void 0:c.xhr)||void 0===u?void 0:u.status)===Sp.a.Unauthorized&&Nn.c.throw(o),t(n)}else t(n)}}});var u,s=Object(lp.createStore)(i,Object(lp.applyMiddleware)(a,c));u=s,e.registerStore(u),t(),delete window.bootstrapData}var Op=n(158);function kp(e){return(kp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ep(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rp(e,t){return(Rp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xp(e);if(t){var o=xp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tp(this,n)}}function Tp(e,t){return!t||"object"!==kp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xp(e){return(xp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ap=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rp(e,t)}(i,e);var t,n,r,o=_p(i);function i(){return Ep(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{searchResults:{application:O.a.SEARCH,action:E.a.Search.HOME},series:{application:O.a.DEFAULT,action:E.a.Default.SERIES},videoDetails:{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO},tagSearch:{application:O.a.SEARCH,action:E.a.Search.HOME},classification:{application:O.a.SUBJECT,action:E.a.Subjects.CLASSIFICATION}}}},{key:"addSlugs",get:function(){return!0}},{key:"searchBarPlaceholder",get:function(){return Jr.a.getPhrase("search.searchAppVariables","searchBarPlaceholder")}}])&&Pp(t.prototype,n),r&&Pp(t,r),i}(Op.b),Lp=n(50);function jp(e){return(jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Np(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ip(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dp(e,t){return(Dp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Up(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fp(e);if(t){var o=Fp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mp(this,n)}}function Mp(e,t){return!t||"object"!==jp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fp(e){return(Fp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dp(e,t)}(i,e);var t,n,r,o=Up(i);function i(){return Np(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO},notifications:{application:O.a.NOTIFICATIONS,action:E.a.Notifications.HOME},pastReleases:{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME},awaitingReview:{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME},editStaffRequest:{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME}}}},{key:"notificationTypesWithAppLinks",get:function(){return[Lp.a.VideoReviewReminder,Lp.a.VideoReviewAddedToLibrary,Lp.a.CustomLibraryVideoAvailable,Lp.a.WorkspaceVideoAvailable,Lp.a.ExchangeVideoAvailable]}},{key:"notificationsEmptyStateUrl",get:function(){return""}},{key:"bellIconColor",get:function(){return"dark"}}])&&Ip(t.prototype,n),r&&Ip(t,r),i}(Op.a);function Hp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var zp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hasCompletedOnboarding=t.hasCompletedOnboarding}var t,n,r;return t=e,(n=[{key:"name",get:function(){return Rt.a.SUBJECTS}}])&&Hp(t.prototype,n),r&&Hp(t,r),e}();var Bp=n(25);function qp(e){return(qp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Wp={register:function(){var e=this;Bp.registerHelper("lang",(function(t,n){if(e.isValid(t,n)){var r=n.data.root.languageNamespace;return Jr.a.getPhrase(r,t,n.hash)}}))},isValid:function(e,t){return"string"!=typeof e?(r.a.ErrorHelper.throw(new Ln.a("No language key provided.")),!1):"object"!==qp(t)?(r.a.ErrorHelper.throw(new Ln.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!An.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new Ln.a("No `lang` property provided.")),!1)}};var Jp,Gp=n(159);function Yp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(e){e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other"}(Jp||(Jp={}));var Kp={curriculum:!1},Qp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=Object.assign({onlineModules:Kp},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return ar.b.AppOptions}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===Gp.a.Staff}},{key:"onlineRole",get:function(){return this.options.onlineRole}},{key:"onlineCustomerType",get:function(){return this.options.customerType}}])&&Yp(t.prototype,n),r&&Yp(t,r),e}();var Zp=n(101),Xp=n(191),$p=n(190);function eh(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function th(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nh(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ih(e);if(t){var o=ih(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return oh(this,n)}}function oh(e,t){return!t||"object"!==eh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ih(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.a.Service;function ah(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ch(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lh(e,t)}function lh(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hh(e);if(t){var o=hh(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return ph(this,n)}}function ph(e,t){return!t||"object"!==ah(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hh(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Wn.Object;function dh(e){return(dh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gh(e,t){return(gh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wh(e);if(t){var o=wh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bh(this,n)}}function bh(e,t){return!t||"object"!==dh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wh(e){return(wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gh(e,t)}(i,e);var t,n,r,o=mh(i);function i(){return yh(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"enrich",value:function(e,t){}},{key:"isType",value:function(e){return e===i.type}}])&&vh(t.prototype,n),r&&vh(t,r),i}(r.a.Service);Sh.type="BaseAnalyticsEnricher";n(228);var Ch="URLSearchParams"in self,Oh="Symbol"in self&&"iterator"in Symbol,kh="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),Eh="FormData"in self,Ph="ArrayBuffer"in self;if(Ph)var Rh=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],_h=ArrayBuffer.isView||function(e){return e&&Rh.indexOf(Object.prototype.toString.call(e))>-1};function Th(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function xh(e){return"string"!=typeof e&&(e=String(e)),e}function Ah(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Oh&&(t[Symbol.iterator]=function(){return t}),t}function Lh(e){this.map={},e instanceof Lh?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function jh(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Nh(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Ih(e){var t=new FileReader,n=Nh(t);return t.readAsArrayBuffer(e),n}function Dh(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Uh(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:kh&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Eh&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Ch&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ph&&kh&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Dh(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ph&&(ArrayBuffer.prototype.isPrototypeOf(e)||_h(e))?this._bodyArrayBuffer=Dh(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Ch&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},kh&&(this.blob=function(){var e=jh(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?jh(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Ih)}),this.text=function(){var e,t,n,r=jh(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Nh(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Eh&&(this.formData=function(){return this.text().then(Vh)}),this.json=function(){return this.text().then(JSON.parse)},this}Lh.prototype.append=function(e,t){e=Th(e),t=xh(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Lh.prototype.delete=function(e){delete this.map[Th(e)]},Lh.prototype.get=function(e){return e=Th(e),this.has(e)?this.map[e]:null},Lh.prototype.has=function(e){return this.map.hasOwnProperty(Th(e))},Lh.prototype.set=function(e,t){this.map[Th(e)]=xh(t)},Lh.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Lh.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),Ah(e)},Lh.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Ah(e)},Lh.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),Ah(e)},Oh&&(Lh.prototype[Symbol.iterator]=Lh.prototype.entries);var Mh=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Fh(e,t){var n,r,o=(t=t||{}).body;if(e instanceof Fh){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Lh(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Lh(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),Mh.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function Vh(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function Hh(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new Lh(t.headers),this.url=t.url||"",this._initBody(e)}Fh.prototype.clone=function(){return new Fh(this,{body:this._bodyInit})},Uh.call(Fh.prototype),Uh.call(Hh.prototype),Hh.prototype.clone=function(){return new Hh(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Lh(this.headers),url:this.url})},Hh.error=function(){var e=new Hh(null,{status:0,statusText:""});return e.type="error",e};var zh=[301,302,303,307,308];Hh.redirect=function(e,t){if(-1===zh.indexOf(t))throw new RangeError("Invalid status code");return new Hh(null,{status:t,headers:{location:e}})};var Bh=self.DOMException;try{new Bh}catch(e){(Bh=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Bh.prototype.constructor=Bh}function qh(e,t){return new Promise((function(n,r){var o=new Fh(e,t);if(o.signal&&o.signal.aborted)return r(new Bh("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new Lh,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new Hh(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new Bh("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&self.location.href?self.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(kh?i.responseType="blob":Ph&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}qh.polyfill=!0,self.fetch||(self.fetch=qh,self.Headers=Lh,self.Request=Fh,self.Response=Hh);n(442),n(443);function Wh(e){return(Wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Jh,Gh=function(e){var t=Wh(e);return"function"===t||"object"===t&&!!e};n(182);!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(Jh||(Jh={}));var Yh,Kh;Jh.CvApSoutheast1,Jh.CvApSoutheast2,Jh.CvEuWest1;function Qh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(Yh||(Yh={}));Qh(Kh={},Yh.AU,Jh.CvApSoutheast1),Qh(Kh,Yh.NZ,Jh.CvApSoutheast2),Qh(Kh,Yh.UK,Jh.CvEuWest1);function Zh(e){return(Zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $h(e,t){return($h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ed(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nd(e);if(t){var o=nd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return td(this,n)}}function td(e,t){return!t||"object"!==Zh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nd(e){return(nd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$h(e,t)}(i,e);var t,n,r,o=ed(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"shouldLog",value:function(e){return!0}},{key:"log",value:function(e){}},{key:"isType",value:function(e){return e===i.type}}])&&Xh(t.prototype,n),r&&Xh(t,r),i}(r.a.Service);rd.type="BaseAnalyticsClient";var od=function(){return!0},id=function(){return!1};var ad=function(e){return e};function cd(e){if(e&&e.code)return e.code}function ud(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.id){var n={id:e.id};return e.name&&!t.ignoreTitle&&(n.title=e.name),n}}function sd(e){if(e&&e.length){var t=e[0];return{id:t.id,title:t.name}}}var ld,fd,pd,hd=function(e){var t=e.model,n={id:t.id.toString(),year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=cd(t.rating),o=ud(t.series),i=sd(t.categories),a=ud(t.owner,{ignoreTitle:!0}),c=ud(t.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriesId=o.id,n.series=o.title),i&&(n.category=i.title),c&&(n.playlist=c),n},dd={getUploadData:function(e,t){var n=t.actionContext.entity;if(n===w.d.Video)return dd.formatVideoUpload(e,t);if(n===w.d.Resource||n===w.d.Subtitle)return dd.formatResourceUpload(e);if(n===w.d.Banner||n===w.d.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(e,t){var n=t.actionContext.workflowPhase;return n===w.o.Start?dd.getStartVideoUploadData(e):n===w.o.Discard?dd.getDiscardVideoUploadData(e):n===w.o.Complete?dd.getCompleteUploadData(e):void 0},getStartVideoUploadData:function(e){return e&&e.length?(e instanceof FileList&&(e=Array.from(e)),e.map((function(t){return{fileName:t.name,size:t.size,type:t.type,count:e.length}}))):[]},getDiscardVideoUploadData:function(e){var t=function(t){var n=t.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(e)?e.length:1,type:r,status:i};return t.progress&&(c.progress=t.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(e)?e.map((function(e){return t(e)})):[t(e)]},getCompleteUploadData:function(e){return e&&e.length?e.map((function(t){return{fileName:t.fileName,libraryId:t.libraryId,folderId:t.folderId,count:e.length}})):[]},formatResourceUpload:function(e){var t={id:e.id,name:e.name};return Gh(e.metadata)&&(t.type=e.metadata.type),t}};function yd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vd;yd(ld={},w.n.Navigate,id),yd(ld,w.n.Click,od),yd(ld,w.n.Search,od),yd(ld,w.n.InstantSearch,od),yd(ld,w.n.Play,od),yd(ld,w.n.Stream,od),yd(ld,w.n.StreamRaw,id),yd(ld,w.n.StreamProgress,od),yd(ld,w.n.Rename,od),yd(ld,w.n.Move,od),yd(ld,w.n.Create,od),yd(ld,w.n.Delete,od),yd(ld,w.n.Associate,od),yd(ld,w.n.Dissociate,od),yd(ld,w.n.Filter,od),yd(ld,w.n.Sort,od),yd(ld,w.n.Approve,od),yd(ld,w.n.Reject,od),yd(ld,w.n.Disable,od),yd(ld,w.n.Upload,od),yd(ld,w.n.Download,id),yd(ld,w.n.SetAccess,od),yd(ld,w.n.AddToLocalCache,id),yd(ld,w.n.Share,od),yd(ld,w.n.Edit,od),yd(ld,w.n.Suggest,od),yd(ld,w.n.ResolveWarning,od),yd(ld,w.n.DismissWarning,od),yd(ld,w.n.EditAssoc,od),yd(ld,w.n.Follow,od),yd(fd={},w.n.Search,ad),yd(fd,w.n.InstantSearch,ad),yd(fd,w.n.Play,ad),yd(fd,w.n.Stream,hd),yd(fd,w.n.StreamRaw,ad),yd(fd,w.n.StreamProgress,ad),yd(fd,w.n.Click,ad),yd(fd,w.n.Filter,ad),yd(fd,w.n.Sort,ad),yd(fd,w.n.SetAccess,ad),yd(fd,w.n.Approve,ad),yd(fd,w.n.Reject,ad),yd(fd,w.n.Create,ad),yd(fd,w.n.Delete,ad),yd(fd,w.n.Rename,ad),yd(fd,w.n.Move,ad),yd(fd,w.n.Edit,ad),yd(fd,w.n.Share,ad),yd(fd,w.n.Disable,ad),yd(fd,w.n.Suggest,ad),yd(fd,w.n.Upload,dd.getUploadData),yd(fd,w.n.ResolveWarning,ad),yd(fd,w.n.DismissWarning,ad),yd(fd,w.n.Follow,ad),yd(pd={},w.n.Search,(function(){return"search"})),yd(pd,w.n.InstantSearch,(function(){return"search"})),yd(pd,w.n.Filter,(function(){return"filter"})),yd(pd,w.n.StreamRaw,(function(e){return e.actionContext.entity===w.d.Interactive?w.d.Video:e.actionContext.entity})),yd({},w.n.StreamProgress,!0);!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(vd||(vd={}));var gd=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});gd.addInitializationStep(Cp).addInitializationStep((function(e,t){e.registerLayout(S,yu).registerLayout(C,_u),t(e)})).addInitializationStep((function(e,t){k.a.registerInstance(Bn,{size:100}),t(e)})).addInitializationStep((function(e,t){k.a.registerInstance(nr,{dataServiceErrorMessageMappings:{temp:"Error"},defaultErrorMessageKey:"temp"}),t(e)})).addInitializationStep(Cp).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:To.a.Success,type:rr.a.Success},defaultErrorAlert:{heading:To.a.Fail,type:rr.a.Fail},alertViewCtor:_o};k.a.registerSingleton(new rr.b(n));var r=k.a.getInstance(or.a.ALERT),o={cache:xn.Fifo,dataProvider:qn.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};k.a.registerDataService(wr,o).registerDataService(Sr.a,o).registerDataService(Tr,o).registerDataService(yo,o).registerDataService(Ho,o);var i={store:e.store};k.a.registerInstance(Go,i).registerInstance(Qo,i).registerInstance($o,i);var a={cache:xn.Fifo,dataProvider:qn.Notifications,alertService:r};k.a.registerDataService(qr,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){var n=new Ll,r=new Fu;k.a.registerInstance(up,{imageUrls:sp}).registerInstance(tp).registerInstance(Il,{store:e.store}).registerInstance(Wl,{store:e.store}).registerInstance(ss).registerInstance(Jl.a).registerInstance(bs).registerSingleton(n).registerSingleton(r);var o=new Hu(2),i=function(){o.decrement(),o.getValue()>0||(k.a.releaseInstance(ar.a.Language),k.a.releaseInstance(ar.a.Config),t(e))};k.a.getInstance(ar.a.Language).getLanguageConfig((function(e){Jr.a.setConfig(e),i()})),k.a.getInstance(ar.a.Config).getConfig((function(e){k.a.registerInstance(kl,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),i()}))})).addInitializationStep((function(e,t){k.a.registerInstance(Ap).registerInstance(Vp),I(null,(function(n){k.a.registerInstance(zp,{hasCompletedOnboarding:!n}),t(e)}))})).addInitializationStep((function(e,t){e.registerApplication(je).registerApplication(yt).registerApplication(Ce).registerApplication(Mt).registerApplication(qe).registerApplication(nt).registerApplication(Pt).registerApplication(fe).registerApplication(cn).registerApplication(Kt).registerApplication(J).registerApplication(mn).registerApplication(Tn),t(e)})).addInitializationStep((function(e,t){t(e)})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:An.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){Wp.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(Si,Mi).registerErrorHandler(_i,Fi).registerErrorHandler(hi,Di).registerErrorHandler(R.a,Ui).registerErrorHandler(Ti.a,Mi).registerErrorHandler(xi.a,Mi).registerErrorHandler(Ai.a,Mi).registerErrorHandler(Li.a,Ui).registerErrorHandler(ji.a,Mi).registerErrorHandler(Ni.a,Ui).registerErrorHandler(Ii.a,Mi),t()})).addInitializationStep((function(e,t){k.a.registerSingleton(new Qp({onlineRole:Gp.a.Staff,customerType:Jp.Primary})),t(e)})),gd.addStartUpStep((function(e,t,n){k.a.getInstance(ar.a.Config).getConfig((function(r){Tu.a.setUpVariables({isDevelopment:!1}),n(e,t),k.a.releaseInstance(ar.a.Config)}))})),gd.start()},function(e,t){e.exports=g},function(e,t){e.exports=m},function(e,t){e.exports=b},function(e,t){e.exports=w},function(e,t){e.exports=S}])}));
15
+ var r=n(596),o=n(597),i=n(598);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function c(e,t){if(a()<t)throw new RangeError("Invalid typed array length");return u.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=u.prototype:(null===e&&(e=new u(t)),e.length=t),e}function u(e,t,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return f(this,e)}return s(this,e,t,n)}function s(e,t,n,r){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,r){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,n):new Uint8Array(t,n,r);u.TYPED_ARRAY_SUPPORT?(e=t).__proto__=u.prototype:e=p(e,t);return e}(e,t,n,r):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!u.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|d(t,n),o=(e=c(e,r)).write(t,n);o!==r&&(e=e.slice(0,o));return e}(e,t,n):function(e,t){if(u.isBuffer(t)){var n=0|h(t.length);return 0===(e=c(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(r=t.length)!=r?c(e,0):p(e,t);if("Buffer"===t.type&&i(t.data))return p(e,t.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function l(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function f(e,t){if(l(t),e=c(e,t<0?0:0|h(t)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function p(e,t){var n=t.length<0?0:0|h(t.length);e=c(e,n);for(var r=0;r<n;r+=1)e[r]=255&t[r];return e}function h(e){if(e>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(u.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return V(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(r)return V(e).length;t=(""+t).toLowerCase(),r=!0}}function y(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return R(this,t,n);case"latin1":case"binary":return _(this,t,n);case"base64":return E(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function v(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function g(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=u.from(t,r)),u.isBuffer(t))return 0===t.length?-1:m(e,t,n,r,o);if("number"==typeof t)return t&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):m(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function m(e,t,n,r,o){var i,a=1,c=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,c/=2,u/=2,n/=2}function s(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;i<c;i++)if(s(e,i)===s(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===u)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(n+u>c&&(n=c-u),i=n;i>=0;i--){for(var f=!0,p=0;p<u;p++)if(s(e,i+p)!==s(t,p)){f=!1;break}if(f)return i}return-1}function b(e,t,n,r){n=Number(n)||0;var o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a<r;++a){var c=parseInt(t.substr(2*a,2),16);if(isNaN(c))return a;e[n+a]=c}return a}function w(e,t,n,r){return z(V(t,e.length-n),e,n,r)}function S(e,t,n,r){return z(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return S(e,t,n,r)}function O(e,t,n,r){return z(H(t),e,n,r)}function k(e,t,n,r){return z(function(e,t){for(var n,r,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=e.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function E(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o<n;){var i,a,c,u,s=e[o],l=null,f=s>239?4:s>223?3:s>191?2:1;if(o+f<=n)switch(f){case 1:s<128&&(l=s);break;case 2:128==(192&(i=e[o+1]))&&(u=(31&s)<<6|63&i)>127&&(l=u);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(u=(15&s)<<12|(63&i)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:i=e[o+1],a=e[o+2],c=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&c)&&(u=(15&s)<<18|(63&i)<<12|(63&a)<<6|63&c)>65535&&u<1114112&&(l=u)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=4096));return n}(r)}t.Buffer=u,t.SlowBuffer=function(e){+e!=e&&(e=0);return u.alloc(+e)},t.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=a(),u.poolSize=8192,u._augment=function(e){return e.__proto__=u.prototype,e},u.from=function(e,t,n){return s(null,e,t,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(e,t,n){return function(e,t,n,r){return l(t),t<=0?c(e,t):void 0!==n?"string"==typeof r?c(e,t).fill(n,r):c(e,t).fill(n):c(e,t)}(null,e,t,n)},u.allocUnsafe=function(e){return f(null,e)},u.allocUnsafeSlow=function(e){return f(null,e)},u.isBuffer=function(e){return!(null==e||!e._isBuffer)},u.compare=function(e,t){if(!u.isBuffer(e)||!u.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},u.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(e,t){if(!i(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return u.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=u.allocUnsafe(t),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!u.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,o),o+=a.length}return r},u.byteLength=d,u.prototype._isBuffer=!0,u.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)v(this,t,t+1);return this},u.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)v(this,t,t+3),v(this,t+1,t+2);return this},u.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)v(this,t,t+7),v(this,t+1,t+6),v(this,t+2,t+5),v(this,t+3,t+4);return this},u.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?P(this,0,e):y.apply(this,arguments)},u.prototype.equals=function(e){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===u.compare(this,e)},u.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},u.prototype.compare=function(e,t,n,r,o){if(!u.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),c=Math.min(i,a),s=this.slice(r,o),l=e.slice(t,n),f=0;f<c;++f)if(s[f]!==l[f]){i=s[f],a=l[f];break}return i<a?-1:a<i?1:0},u.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},u.prototype.indexOf=function(e,t,n){return g(this,e,t,n,!0)},u.prototype.lastIndexOf=function(e,t,n){return g(this,e,t,n,!1)},u.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return w(this,e,t,n);case"ascii":return S(this,e,t,n);case"latin1":case"binary":return C(this,e,t,n);case"base64":return O(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function R(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function _(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function T(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var o="",i=t;i<n;++i)o+=F(e[i]);return o}function x(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function A(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,o,i){if(!u.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function j(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o<i;++o)e[n+o]=(t&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function N(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o<i;++o)e[n+o]=t>>>8*(r?o:3-o)&255}function I(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(e,t,n,r,i){return i||I(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function U(e,t,n,r,i){return i||I(e,0,n,8),o.write(e,t,n,r,52,8),n+8}u.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t<e&&(t=e),u.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=u.prototype;else{var o=t-e;n=new u(o,void 0);for(var i=0;i<o;++i)n[i]=this[i+e]}return n},u.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r},u.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e+--t],o=1;t>0&&(o*=256);)r+=this[e+--t]*o;return r},u.prototype.readUInt8=function(e,t){return t||A(e,1,this.length),this[e]},u.prototype.readUInt16LE=function(e,t){return t||A(e,2,this.length),this[e]|this[e+1]<<8},u.prototype.readUInt16BE=function(e,t){return t||A(e,2,this.length),this[e]<<8|this[e+1]},u.prototype.readUInt32LE=function(e,t){return t||A(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},u.prototype.readUInt32BE=function(e,t){return t||A(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},u.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=this[e],o=1,i=0;++i<t&&(o*=256);)r+=this[e+i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*t)),r},u.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||A(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},u.prototype.readInt8=function(e,t){return t||A(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},u.prototype.readInt16LE=function(e,t){t||A(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(e,t){t||A(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(e,t){return t||A(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},u.prototype.readInt32BE=function(e,t){return t||A(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},u.prototype.readFloatLE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!0,23,4)},u.prototype.readFloatBE=function(e,t){return t||A(e,4,this.length),o.read(this,e,!1,23,4)},u.prototype.readDoubleLE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!0,52,8)},u.prototype.readDoubleBE=function(e,t){return t||A(e,8,this.length),o.read(this,e,!1,52,8)},u.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},u.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},u.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,255,0),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},u.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):N(this,e,t,!0),t+4},u.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=0,a=1,c=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&0===c&&0!==this[t+i-1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);L(this,e,t,n,o-1,-o)}var i=n-1,a=1,c=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===c&&0!==this[t+i+1]&&(c=1),this[t+i]=(e/a>>0)-c&255;return t+n},u.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,1,127,-128),u.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},u.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):j(this,e,t,!0),t+2},u.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):j(this,e,t,!1),t+2},u.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):N(this,e,t,!0),t+4},u.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),u.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):N(this,e,t,!1),t+4},u.prototype.writeFloatLE=function(e,t,n){return D(this,e,t,!0,n)},u.prototype.writeFloatBE=function(e,t,n){return D(this,e,t,!1,n)},u.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},u.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},u.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var o,i=r-n;if(this===e&&n<t&&t<r)for(o=i-1;o>=0;--o)e[o+t]=this[o+n];else if(i<1e3||!u.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+i),t);return i},u.prototype.fill=function(e,t,n,r){if("string"==typeof e){if("string"==typeof t?(r=t,t=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!u.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var i;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i<n;++i)this[i]=e;else{var a=u.isBuffer(e)?e:V(new u(e,r).toString()),c=a.length;for(i=0;i<n-t;++i)this[i+t]=a[i%c]}return this};var M=/[^+\/0-9A-Za-z-_]/g;function F(e){return e<16?"0"+e.toString(16):e.toString(16)}function V(e,t){var n;t=t||1/0;for(var r=e.length,o=null,i=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function H(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(M,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function z(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(203))},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";var r,o,i,a=n(1),c=n(9),u=n(3),s=n(40),l=n(126),f=n(2),p=n(112),h=n(7),d=n(8),y=n(47),v=n(17),g=n(32),m=n(12),b=n(189),w=n(184),S=n(13),C={showMask:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.targetSelector,n=e.additionalClasses,r=e.fade,o=void 0===r||r,i=$(".".concat("mask"));if(!i.length){var a=$("<div>",{class:"".concat("mask"," ").concat(n||"")});return o&&a.addClass("fade show"),$(a).appendTo(C.getTarget(t)),$(C.getTarget(t)).addClass("mask-lock"),a}},hideMask:function(e){var t=e||$(".".concat("mask"));t.length&&($(".".concat("mask-lock")).removeClass("mask-lock"),t.remove())},getTarget:function(e){var t=$(e||"#app");if(t.length)return t}},O={libraries:{dataServiceName:m.a.Library,eventName:"libraries:sync",getData:function(e){return e.getLibraries()},getInstance:function(e){return d.a.getInstance(m.a.Library,e)},beforeOnBeforeRender:!0}};!function(e){e.Direct="direct-search",e.Recent="recent-searches"}(r||(r={})),function(e){e[e.Remote=0]="Remote",e[e.Local=1]="Local"}(o||(o={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Channel="channels",e.Distributors="companies",e.Producers="people",e.Tags="tags",e.Language="languages",e.TagsRaw="tag",e.ChannelRaw="channel",e.Recent="recent",e.Direct="direct",e.ProductionCompanies="companies",e.Directors="people",e.Season="season",e.Classification="subjects"}(i||(i={}));var k=function(e){return e&&e.get("filterParam")?function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},e.get("filterParam"),e.get("filterValue")):{}},E=n(356),P=1,R={Min:1,Default:3,Folder:3,Recent:3},_=R,T={prepareQuery:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.model,o=n.libraryIds,i=n.presentationId;r&&r.get("filterValue")&&(e+=" ".concat(r.get("filterParam"),':"').concat(r.get("filterValue"),'"'));var a="".concat(t.url,"?q=").concat(e);return o&&(a+="&ids=".concat(o)),i&&(a+="&presentationId=".concat(i)),a},bloodhoundConfig:function(e,t){return{datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:a.partial(T.prepareQuery,a,a,t),transform:a.partial(T.handleResult,a,e)}}},handleResult:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t===i.Classification?T.processSubjectResult(e[t],t,n):t===i.Video?T.processVideoResult(e[t],t,n):n.showFolder&&t===i.Folder?T.processFolderResult(e[t],t,n):t===i.Series?T.processSeriesResult(e[t],t,n):t===i.Tags?T.processTagsResult(e[t],t,n):[]},processSubjectResult:function(e,t,n){return e?(e=T.processCollection(e),a.map(e,(function(e){return e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e}))):[]},processVideoResult:function(e,t,n){return e?(e=T.processCollection(e),a.map(e,(function(e){return e.cached||(e.topics=a.map(e.topics,(function(e){return{name:e}})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e}))):[]},processTagsResult:function(e,t,n){if(!e)return[];var r=d.a.getInstance(g.a.SEARCH,this);return e=T.processCollection(e),a.map(e,(function(e){return e.cached||(e.url=f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},r.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e}))},processSeriesResult:function(e,t,n){return e?(e=T.processCollection(e),a.map(e,(function(e){var t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=a.first(e.folder)),a.extend({},e,{collectionType:void 0,collection:t})}))):[]},processFolderResult:function(e,t){return e?(e=T.processCollection(e,{limit:_.Folder}),a.map(e,(function(e){var t=e.library,n=void 0===t?{}:t;return n.type===E.a.Exchange&&(n.name="Exchange"),a.extend({},e,{libraryId:n.id,libraryName:n.name,libraryType:n.type})}))):[]},processCollection:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?_.Default:n;return e.slice(0,r)}},x={getRecentSearches:function(e,t){var n=t.cacheGet(e);return a.isArray(n)||(n=[]),n},setRecentSearches:function(e,t,n){a.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches:function(e,t,n){var r=n.add,o=n.remove,i=n.query,c=n.limit,u=void 0===c?5:c,s=x.getRecentSearches(e,t),l=a.indexOf(s,i);return r&&-1===l&&s.unshift(i),o&&l>-1&&s.splice(l,1),s.length>u&&(s=s.slice(0,u)),x.setRecentSearches(e,s,t),s}},A=n(231),L=n(423),j=n.n(L),N=n(198),I=n.n(N);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var o=H(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&M(e,t)}(i,e);var t,n,r,o=F(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"viewOptions",value:function(){return{styles:I.a,confirmSelectionText:h.a.getPhrase("shared.utils","confirmSelection",{svg:'<kbd><span class="'.concat(I.a.svgContainer,'">').concat(S.a.getSvg(S.b.Enter),"</span></kbd>")})}}},{key:"name",get:function(){return"ConfirmSelectionComponent"}},{key:"template",get:function(){return j.a}},{key:"className",get:function(){return"suggestion-footer empty-suggestion px-2 ".concat(I.a.selectionContainer," clearfix")}}])&&U(t.prototype,n),r&&U(t,r),i}(f.a.Component);function B(e){return function(e){if(Array.isArray(e))return q(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return q(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return q(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var W,J={handleQuery:function(e,t){return function(n,r,i){if(t||(t={}),n&&t.ignoreOnQuery)return r([]);var a=n&&n.length>=P;return t.fetchType!==o.Local||a?a?e instanceof A?e.search.call(e,n,r,i):r([{query:n}]):void 0:r(e.index.all())}},getTemplate:function(e){var t=arguments,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.fallbackTemplate,o=n.templateText;return function(n){var i=n.query;if(!i)return r.apply(void 0,B(t));if(i.length&&i.length<P)return r.apply(void 0,B(t));var c=a.extend(n,{templateText:o});return e(c)}},getSearchSources:function(e){return a.map(e,(function(e,t){var n,r=e.typeaheadConfig,o=e.bloodhoundConfig,i=e.name,a=e.options;return o&&(n=J.buildBloodhound(o(i,a))),r({bloodhound:n,name:i},t,a)}))},buildBloodhound:function(e){return new A(e)},selectFirstResult:function(e,t,n,r){if(n&&!this.$el.find(".tt-cursor").length){var o=a.first(t);if(o&&!a.isEmpty(o)){var i=this.$el.find(".add-new");!i||o.id?(i&&i.hasClass("tt-cursor")&&i.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):i.addClass("tt-cursor")}else this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion")}},emitEventOnInput:function(e,t,n,r){if(e)return function(o,i){c.Radio.channel(e).trigger(t,o,n,a.extend({},r,i))}},resetAssociationOnBlur:function(e){return function(t,n){var r=this.model.get(n),o=a.isNumber(this.model.id);return e[n]||o?"string"==typeof r&&r.length?o?void(e.id===this.model.id&&(this.model.set(e),c.Radio.channel(t).trigger("typeahead:set:input",e[n]))):(c.Radio.channel(t).trigger("typeahead:clear:input"),void this.model.set(e)):void 0:(this.model.clear(),void c.Radio.channel(t).trigger("typeahead:clear:input"))}},getConfirmSelectionTemplate:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(){return new z(e).render().el}},clearInputOnBlur:function(e){c.Radio.channel(e).trigger("typeahead:clear:input")}};function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function K(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ee(e);if(t){var o=ee(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return X(this,n)}}function X(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(W||(W={}));var te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Q(e,t)}(i,e);var t,n,r,o=Z(i);function i(){return Y(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}},{key:"bindListeners",value:function(){this.options.toggleEventName&&this.listenTo(this.view.channelName,"".concat(this.options.toggleEventName),this.toggle)}},{key:"bindBodyClickListener",value:function(){$("body").one("click.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"bindDropdownListener",value:function(){$("body").one("show.bs.dropdown.popover".concat(this.view.cid),this.onClickOutside.bind(this))}},{key:"onPopoverInserted",value:function(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}},{key:"onPopoverHidden",value:function(){$("body").off("click.popover".concat(this.view.cid)),$("body").off("show.bs.dropdown.popover".concat(this.view.cid))}},{key:"toggle",value:function(){this.view.$el.popover("toggle")}},{key:"hide",value:function(){this.view.$el.popover("hide")}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickOutside",value:function(e){this.hide()}},{key:"getTrigger",value:function(){return this.options.toggleEventName?"manual":"click"}},{key:"onAttach",value:function(){this.popoverInitialized||(this.bindListeners(),this.view.$el.popover({title:this.options.title,content:'<div class="popover-content"></div>',placement:this.options.placement,trigger:this.getTrigger(),html:!0,container:this.view.getUI("popoverContainer"),boundary:this.options.boundary||"scrollParent",delay:1}),this.options.size&&this.view.getUI("popoverContainer").addClass(this.options.size),this.options.customClasses&&this.view.getUI("popoverContainer").addClass(this.options.customClasses),this.popoverInitialized=!0)}},{key:"defaults",get:function(){return{title:"",placement:W.bottom,size:"popover-md"}},set:function(e){}},{key:"ui",get:function(){return{popoverContainer:this.options.containerSelector}},set:function(e){var t={};this.view.ui&&(t=a.result(this.view,"ui")),this.view._ui=a.extend({},t,e)}}])&&K(t.prototype,n),r&&K(t,r),i}(f.a.Behavior),ne=n(424),re=n.n(ne),oe=n(425),ie=n.n(oe),ae=n(199),ce=n.n(ae);function ue(e){return(ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fe(e,t,n){return t&&le(e.prototype,t),n&&le(e,n),e}function pe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&he(e,t)}function he(e,t){return(he=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function de(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ye(this,n)}}function ye(e,t){return!t||"object"!==ue(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ge=function(e){pe(n,e);var t=de(n);function n(){return se(this,n),t.apply(this,arguments)}return fe(n,[{key:"viewOptions",value:function(){return{styles:ce.a}}},{key:"name",get:function(){return"SearchTipComponentItem"}},{key:"template",get:function(){return ie.a}},{key:"className",get:function(){return"py-2 ".concat(ce.a.tip)}}]),n}(f.a.Component),me=function(e){pe(n,e);var t=de(n);function n(){return se(this,n),t.apply(this,arguments)}return fe(n,[{key:"name",get:function(){return"SearchTipComponentCollection"}},{key:"childView",get:function(){return ge}}]),n}(f.a.ComponentCollection),be=function(e){pe(n,e);var t=de(n);function n(){return se(this,n),t.apply(this,arguments)}return fe(n,[{key:"initialize",value:function(){this.collection=new f.a.Collection([{term:["".concat(h.a.getPhrase(this.lang,"firstTerm"))],description:"".concat(h.a.getPhrase(this.lang,"firstDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"secondTerm"))],description:"".concat(h.a.getPhrase(this.lang,"secondDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"thirdTerm"))],description:"".concat(h.a.getPhrase(this.lang,"thirdDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"fourthTerm1")),"".concat(h.a.getPhrase(this.lang,"fourthTerm2"))],description:"".concat(h.a.getPhrase(this.lang,"fourthDescription"))},{term:["".concat(h.a.getPhrase(this.lang,"fifthTerm"))],description:"".concat(h.a.getPhrase(this.lang,"fifthDescription"))}])}},{key:"renderTips",value:function(e){this.showChildView(e,new me({collection:this.collection}))}},{key:"viewOptions",value:function(){return{styles:ce.a,searchInfoSvg:S.a.getSvg(S.b.Info)}}},{key:"name",get:function(){return"SearchTipsComponent"}},{key:"template",get:function(){return re.a}},{key:"lang",get:function(){return"search.searchTips"}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:te,containerSelector:".popover-container",title:h.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:function(t){return e.renderTips(t)}}]}}]),n}(f.a.Component);function we(e){return(we="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Oe(e,t){return(Oe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Pe(e);if(t){var o=Pe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ee(this,n)}}function Ee(e,t){return!t||"object"!==we(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Pe(e){return(Pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Oe(e,t)}(i,e);var t,n,r,o=ke(i);function i(){return Se(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getElement",value:function(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}},{key:"getOptions",value:function(){var e={placement:this.options.placement};return this.options.title&&(e.title=this.options.title),e}},{key:"onRender",value:function(){var e=this.getElement();e.length&&e.tooltip(this.getOptions())}},{key:"onBeforeDetach",value:function(){var e=this.getElement();e instanceof jQuery&&e.tooltip("dispose")}},{key:"defaults",get:function(){return{placement:"top"}},set:function(e){}},{key:"ui",get:function(){return this.options.selector?{tooltip:this.options.selector}:{}},set:function(e){var t={};this.view.ui&&(t=a.result(this.view,"ui")),this.view._ui=a.extend({},t,e)}}])&&Ce(t.prototype,n),r&&Ce(t,r),i}(f.a.Behavior),_e=n(426),Te=n.n(_e),xe=n(113),Ae=n.n(xe);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ne(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ie(e,t){return(Ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Me(e);if(t){var o=Me(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ue(this,n)}}function Ue(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Me(e){return(Me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ie(e,t)}(i,e);var t,n,r,o=De(i);function i(){return je(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(v.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}},{key:"events",value:function(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}},{key:"onClick",value:function(){c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}},{key:"onMouseEnter",value:function(){this.model.set("preventTypeaheadClose",!0)}},{key:"onMouseLeave",value:function(){this.model.set("preventTypeaheadClose",!1)}},{key:"toggleFocus",value:function(e){var t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(Ae.a.tagFocus):t.removeClass(Ae.a.tagFocus))}},{key:"viewOptions",value:function(){return{styles:Ae.a,closeSvg:S.a.getSvg(S.b.Close)}}},{key:"onBeforeRender",value:function(){return!!this.model.get("searchTag")}},{key:"name",get:function(){return"SearchContextComponent"}},{key:"template",get:function(){return Te.a}},{key:"tagName",get:function(){return"span"}},{key:"className",get:function(){return Ae.a.searchContextContainer}},{key:"behaviors",get:function(){return[{behaviorClass:Re,selector:".tool-tip",placement:"left"}]}},{key:"elements",get:function(){return{contextTag:".".concat(Ae.a.searchContextTag),clearSvg:".".concat(Ae.a.svgContainer)}}}])&&Ne(t.prototype,n),r&&Ne(t,r),i}(f.a.Component),Ve=n(427),He=n.n(Ve),ze=n(428),Be=n.n(ze);function qe(e){return(qe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function We(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ke(e);if(t){var o=Ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ye(e,t){return!t||"object"!==qe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ke(e){return(Ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}(i,e);var t,n,r,o=Ge(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"events",value:function(){return{"click .remove-recent":"onClick"}}},{key:"viewOptions",value:function(){return{styles:Be.a,closeSvg:S.a.getSvg(S.b.Close)}}},{key:"onClick",value:function(e){var t=this;return e.stopPropagation(),setTimeout((function(){c.Radio.channel(t.options.channelName).trigger("remove:recent",t.model.get("name"))}),0),this.destroy(),!1}},{key:"name",get:function(){return"RecentSearchResultComponent"}},{key:"template",get:function(){return He.a}},{key:"className",get:function(){return"text-capitalize p-2 container-fluid"}}])&&We(t.prototype,n),r&&We(t,r),i}(f.a.Component),Ze=n(429),Xe=n.n(Ze);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function et(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nt(e,t){return(nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=it(e);if(t){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var at=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nt(e,t)}(i,e);var t,n,r,o=rt(i);function i(){return et(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"name",get:function(){return"SeriesSearchResultComponent"}},{key:"template",get:function(){return Xe.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&tt(t.prototype,n),r&&tt(t,r),i}(f.a.Component),ct=n(430),ut=n.n(ct);function st(e){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function pt(e,t){return(pt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ht(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=yt(e);if(t){var o=yt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dt(this,n)}}function dt(e,t){return!t||"object"!==st(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function yt(e){return(yt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var vt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&pt(e,t)}(i,e);var t,n,r,o=ht(i);function i(){return lt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"name",get:function(){return"TagSearchResultComponent"}},{key:"template",get:function(){return ut.a}},{key:"className",get:function(){return"text-capitalize p-2"}}])&&ft(t.prototype,n),r&&ft(t,r),i}(f.a.Component),gt=n(195),mt=n(155),bt=n(357),wt=n(431),St=n.n(wt),Ct=n(149),Ot=n.n(Ct);function kt(e){return(kt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Et(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rt(e,t){return(Rt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _t(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xt(e);if(t){var o=xt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tt(this,n)}}function Tt(e,t){return!t||"object"!==kt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xt(e){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var At=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rt(e,t)}(i,e);var t,n,r,o=_t(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"show:play:icon",this.showPlayIcon),this.listenTo(this.model,"change:thumbnail",this.render)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"showPlayIcon",value:function(){this.$el.find(".".concat(Ot.a.playSvgContainer)).show()}},{key:"onClick",value:function(e){if(!this.options.appLink&&a.isFunction(this.options.onClickHandler))return this.options.onClickHandler.apply(this,arguments)}},{key:"onImageLoad",value:function(){this.options.channelName&&c.Radio.channel(this.options.channelName).trigger("thumbnail:load")}},{key:"viewOptions",value:function(){var e=this.model.get("duration");return{styles:Ot.a,url:mt.a.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:e&&bt.a.ToDisplayDuration(e),playSvg:S.a.getSvg(S.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}},{key:"onRender",value:function(){if(c.Radio.channel(gt.a.LAZY_LOAD).trigger("update:loader"),this.options.lazyload&&this.options.channelName){var e=this.getUI("img");e.length&&(e[0].onload=a.bind(this.onImageLoad,this))}}},{key:"name",get:function(){return"ThumbnailComponent"}},{key:"template",get:function(){return St.a}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){if(this.options.classNameOverride)return this.options.classNameOverride;var e="".concat(Ot.a.thumbnailContainer," responsive-img");return this.options.onClickHandler&&(e+=" cursor-pointer"),e}},{key:"elements",get:function(){var e;return Et(e={},".".concat(Ot.a.playSvgContainer),"showPlayIcon"),Et(e,"img","img"),e}},{key:"appLinks",get:function(){return this.options.appLink?{"[this]":this.options.appLink}:{}}},{key:"attributes",get:function(){return this.options.appLink||!this.options.href?{}:{href:this.options.href,target:"_blank"}}}])&&Pt(t.prototype,n),r&&Pt(t,r),i}(f.a.Component),Lt=n(432),jt=n.n(Lt);function Nt(e){return(Nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function It(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Dt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ut(e,t){return(Ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Mt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Vt(e);if(t){var o=Vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ft(this,n)}}function Ft(e,t){return!t||"object"!==Nt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Vt(e){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ht=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ut(e,t)}(i,e);var t,n,r,o=Mt(i);function i(){return It(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=d.a.getInstance(g.a.SEARCH,this)}},{key:"regions",value:function(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getCollection",value:function(){var e=this.model,t=e.categories,n=e.series;return t&&t.length?{name:t.first().get("name"),type:"Folder"}:n&&n.get("name")?{name:n.get("name"),type:"Series"}:void 0}},{key:"getUrl",value:function(){return f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var e=new At({model:this.model});this.showChildView("thumbnail",e)}},{key:"viewOptions",value:function(){return{collection:this.getCollection(),url:this.getUrl()}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoSearchResultComponent"}},{key:"template",get:function(){return jt.a}},{key:"className",get:function(){return"video-result p-2 container-fluid"}}])&&Dt(t.prototype,n),r&&Dt(t,r),i}(f.a.Component),zt=n(232),Bt=n(433),qt=n.n(Bt);function Wt(e){return(Wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Gt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Yt(e,t){return(Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Zt(e);if(t){var o=Zt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qt(this,n)}}function Qt(e,t){return!t||"object"!==Wt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zt(e){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yt(e,t)}(i,e);var t,n,r,o=Kt(i);function i(){return Jt(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=d.a.getInstance(g.a.SEARCH,this)}},{key:"regions",value:function(){return{cover:{replaceElement:!0,el:".cover-region"}}}},{key:"events",value:function(){return{"click a":"onClick"}}},{key:"onClick",value:function(e){return e.preventDefault(),!0}},{key:"getUrl",value:function(){return f.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id")]}))}},{key:"renderThumbnail",value:function(){var e=new At({model:this.model,classNameOverride:"".concat(zt.coverImage," responsive-img")});this.showChildView("cover",e)}},{key:"viewOptions",value:function(){return{url:this.getUrl(),styles:zt}}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"ClassificationSearchResultComponent"}},{key:"template",get:function(){return qt.a}},{key:"className",get:function(){return"p-2 container-fluid"}}])&&Gt(t.prototype,n),r&&Gt(t,r),i}(f.a.Component),$t=n(358),en=n.n($t),tn=n(359),nn=n.n(tn),rn=n(360),on=n.n(rn),an=n(361),cn=n.n(an),un=n(362),sn=n.n(un),ln=n(363),fn=n.n(ln),pn=n(364),hn=n.n(pn),dn=n(365),yn=n.n(dn),vn=n(434),gn=n.n(vn),mn=n(200),bn=n.n(mn),wn=n(435),Sn=n.n(wn),Cn=n(436),On=n.n(Cn);function kn(e){return function(e){if(Array.isArray(e))return En(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return En(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return En(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function En(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _n(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Tn(e,t){return(Tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ln(e);if(t){var o=Ln(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return An(this,n)}}function An(e,t){return!t||"object"!==Pn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ln(e){return(Ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return Nn}));var jn=R,Nn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Tn(e,t)}(_,e);var t,n,E,R=xn(_);function _(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),(t=R.call(this,e)).viewCache={},t}return t=_,(n=[{key:"initialize",value:function(){this.contextualSearchService=d.a.getInstance(m.b.ContextualSearch,this),this.appVariables=d.a.getInstance(g.a.SEARCH,this),this.storageHelper=p.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}},{key:"events",value:function(){var e;return Rn(e={submit:"onSubmit"},"click .".concat(bn.a.searchSvgContainer),"onClickSearch"),Rn(e,"click a","onTypeaheadSelect"),Rn(e,"keydown","onKeydown"),e}},{key:"regions",value:function(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:w.a.Component,options:{template:On.a,className:"w-100",viewOptions:{styles:Sn.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(v.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(v.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}},{key:"getOrCacheView",value:function(e,t){var n=t.ctor,r=t.viewOptions;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}},{key:"clearViewCache",value:function(){a.each(this.viewCache,(function(e){return e.destroy()})),this.viewCache={}}},{key:"getDynamicTemplate",value:function(e){var t=this;return e===r.Recent?function(e){return t.getOrCacheView("recent:".concat(e),{ctor:Qe,viewOptions:{model:new f.a.Model({name:e}),channelName:t.channelName}}).render().el}:e===i.Classification?function(e){return t.getOrCacheView(e.id,{ctor:Xt,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Video?function(e){return t.getOrCacheView(e.id,{ctor:Ht,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Folder?en.a:e===i.Series?function(e){return t.getOrCacheView(e.id,{ctor:at,viewOptions:{model:new f.a.Model(e)}}).render().el}:e===i.Tags?function(e){return t.getOrCacheView(e.id,{ctor:vt,viewOptions:{model:new f.a.Model(e)}}).render().el}:void 0}},{key:"getLimits",value:function(e){return i.Folder,jn.Folder}},{key:"updateSearchHistory",value:function(e){var t=e.add,n=e.remove,r=e.query;r=r.trim();var o=x.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:jn.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}},{key:"handleRecentSearch",value:function(){if(this.options.showRecentSearch){var e=this.getUI("input").typeahead("val");if(e)this.$el.find(".tt-menu").removeClass("hide-results");else{var t=x.getRecentSearches(this.recentSearchKey,this.storageHelper);if(t.length)return;this.$el.find(".tt-menu").addClass("hide-results")}}}},{key:"onDeleteRecentSearch",value:function(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}},{key:"getInstantSearchAppLink",value:function(e,t){if(t===i.Series)return Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:[e.id]});if(t===i.Video){var n=[e.id];return this.appVariables.addSlugs&&n.push(y.a.slugify(e.name)),Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:n})}return t===i.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===i.Classification?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id]}):void 0}},{key:"onTypeaheadSelect",value:function(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),"object"===Pn(t)&&t.id){var o=this.getInstantSearchAppLink(t,n);if(!o)return!1;var i=s.a.buildInstantSearchEvent(this.model.get("query"),t,n),a=i.data,p=i.action;return l.a.log(u.n.InstantSearch,a,p),this.model.clear(),this.getUI("input").typeahead("close"),c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),f.a.AppLinkHelper.trigger(o),!1}var h="string"==typeof t?t:t.query;this.model.set({query:h});var d=n===r.Recent?u.c.Recent:u.c.ShowAll;return this.submitQuery(d),!1}},{key:"onClickSearch",value:function(e){return e.stopPropagation(),this.submitQuery(u.c.SearchIcon),!1}},{key:"onSubmit",value:function(e){return e.preventDefault(),this.submitQuery(u.c.Submit),!1}},{key:"submitQuery",value:function(e){this.updateInitialQuery();var t=this.model.get("query");if(t){this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");var n=k(this.searchContext);c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),f.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}}},{key:"resetQuery",value:function(){this.model.set({query:this.model.get("initialQuery")})}},{key:"updateInitialQuery",value:function(){this.model.set({initialQuery:this.model.get("query")})}},{key:"logSearch",value:function(e,t){var n=s.a.buildSearchEvent(e,t),r=n.data,o=n.action;l.a.log(u.n.Search,r,o)}},{key:"onTypeaheadOpen",value:function(e){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});var t=this.model.get("query");t&&t.length>=P&&this.getUI("input").typeahead("val",t),this.alignTypeahead()}},{key:"onBeforeTypeaheadClose",value:function(e){this.searchContext.get("preventTypeaheadClose")&&(e.preventDefault(),this.getUI("input").focus())}},{key:"onTypeaheadClose",value:function(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}},{key:"showMask",value:function(){this.options.disableMask||(this.$el.addClass("active"),C.showMask())}},{key:"hideMask",value:function(){this.options.disableMask||C.hideMask()}},{key:"alignTypeahead",value:function(){var e=$(".tt-menu");this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}},{key:"onTypeaheadRender",value:function(e,t,n,o){o===r.Recent&&this.handleRecentSearch()}},{key:"initTypeaheadListeners",value:function(){var e=this.getUI("input");e.on("typeahead:select",a.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",a.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",a.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",a.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",a.bind(this.onTypeaheadOpen,this))}},{key:"initNoLibrariesTypeaheadListeners",value:function(){var e=this,t=this.getUI("input");t.on("typeahead:open",a.bind(this.showMask,this)),t.on("typeahead:close",a.bind(this.hideMask,this)),t.on("typeahead:select",a.bind((function(){f.a.AppLinkHelper.trigger(e.appVariables.appLinks.newLibrary)}),this))}},{key:"onKeydown",value:function(e){8!==e.keyCode||this.model.get("query")||c.Radio.channel(v.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"onResetSearchContext",value:function(e){e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}},{key:"getRecentSearchBloodhound",value:function(){var e=x.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}},{key:"getDynamicBloodhoundConfig",value:function(){return T.bloodhoundConfig}},{key:"getDynamicTypeaheadConfig",value:function(){var e=this,t=J.getTemplate(fn.a,{fallbackTemplate:cn.a}),n=J.getTemplate(on.a,{fallbackTemplate:cn.a,templateText:h.a.getPhrase(this.lang,"findingResults")});return function(r,i){return{name:e.getConfigName(r.name),source:J.handleQuery(r.bloodhound,{fetchType:o.Remote}),limit:e.getLimits(r.name),display:function(e){return e.name},async:!0,templates:{header:t,pending:0===i?n:cn.a,notFound:cn.a,suggestion:e.getDynamicTemplate(r.name),footer:sn.a}}}}},{key:"getConfigName",value:function(e){switch(e){case i.Classification:return h.a.getPhrase(this.lang,"classifications");case i.Video:return h.a.getPhrase(this.lang,"videos");case i.Tags:return h.a.getPhrase(this.lang,"tags");case i.Series:return h.a.getPhrase(this.lang,"series")}return e}},{key:"getDynamicOptions",value:function(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}},{key:"getRecentSearchSources",value:function(){var e=this;return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:r.Recent,source:J.handleQuery(this.recentSearchEngine,{fetchType:o.Local,ignoreOnQuery:!0}),limit:jn.Default,templates:{header:function(){return hn.a({templateText:h.a.getPhrase(e.lang,"recentSearches")})},suggestion:this.getDynamicTemplate(r.Recent)}}]}},{key:"getDirectSearchSources",value:function(){return[{name:r.Direct,source:J.handleQuery(),display:function(e){return e.query},templates:{suggestion:J.getTemplate(nn.a,{fallbackTemplate:cn.a,templateText:h.a.getPhrase(this.lang,"allResults")}),footer:sn.a}}]}},{key:"getDynamicSearchSources",value:function(){var e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return J.getSearchSources([{name:i.Classification,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:i.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}},{key:"getSources",value:function(){var e=[].concat(kn(this.getDirectSearchSources()),kn(this.getDynamicSearchSources()));return this.options.showRecentSearch&&e.push.apply(e,kn(this.getRecentSearchSources())),e}},{key:"getNoLibrariesSource",value:function(){return[{name:"NoLibrary",source:J.handleQuery(),display:function(e){return e.query},templates:{suggestion:J.getTemplate(yn.a,{fallbackTemplate:cn.a,templateText:h.a.getPhrase(this.lang,"noLibraries")})}}]}},{key:"initializeTypeahead",value:function(e){this.searchInput&&(this.searchInput.typeahead("destroy"),this.searchInput.unbind(),this.searchInput=null),this.searchInput=this.getUI("input").typeahead({minLength:0,highlight:!0,hint:!1,classNames:{menu:"tt-menu rounded border"}},e)}},{key:"hasLibraries",value:function(){return!!this.libraryCollection.length}},{key:"getLibraryIds",value:function(){return this.libraryCollection.map((function(e){return e.id}))}},{key:"viewOptions",value:function(){return{styles:bn.a,svg:S.a.getSvg(S.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,libraryText:this.appVariables.searchBarPlaceholder||h.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}},{key:"renderSearchTips",value:function(){this.showChildView("searchTips",new be)}},{key:"renderSearch",value:function(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),c.Validation.bind(this)}},{key:"renderPartialSearch",value:function(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}},{key:"renderSearchContext",value:function(){this.isRendered()&&this.showChildView("searchContext",new Fe({model:this.searchContext}))}},{key:"onRender",value:function(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),c.Validation.unbind(this)}},{key:"name",get:function(){return"SearchBarView"}},{key:"title",get:function(){return!1}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return gn.a}},{key:"lang",get:function(){return"search.searchBar"}},{key:"channelName",get:function(){return"searchbar:".concat(this.cid)}},{key:"className",get:function(){return"search-query-container position-relative m-0 w-100 form-control p-0 ".concat(bn.a.searchBar)}},{key:"defaults",get:function(){return{showRecentSearch:!0}}},{key:"elements",get:function(){return{input:"#search",searchBarContainer:".search-bar-container"}}},{key:"bindings",get:function(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}},{key:"recentSearchKey",get:function(){return"recent:search:".concat(this.currentUser.id)}},{key:"requiredResources",get:function(){return{currentUser:b.b.currentUser,libraryCollection:O.libraries}}}])&&_n(t.prototype,n),E&&_n(t,E),_}(f.a.View)},function(e,t,n){"use strict";var r,o=n(244);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.MostRecent=1]="MostRecent",e[e.AtoZ=2]="AtoZ",e[e.ProductionYear=3]="ProductionYear",e[e.Newest=4]="Newest",e[e.SeriesSort=5]="SeriesSort"}(r||(r={}));var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(l,e);var t,n,o,i=s(l);function l(){return a(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"getSortTypeParam",value:function(){return r[this.sort]}}])&&c(t.prototype,n),o&&c(t,o),l}(o.a);n.d(t,"a",(function(){return p}))},function(e,t){e.exports=y},function(e,t,n){e.exports=n(590).default},function(e,t){e.exports=v},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.unreadCount:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.unreadCount:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.unreadCount:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.heading:i,t))+"</h4>\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"<p>"+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<img src="'+c(a(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="'+c(a(null!=(i=null!=t?t.options:t)?i.imageClass:i,t))+'"/>\r\n'+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.heading:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.description:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <span class="text-right pl-2 '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionText:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.actionText:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+" "+c(a(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.icon:i,t))?i:"")+'</div><div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.contentContainer:i,t))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.content:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.content:i,t))+"</div>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showActionText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.notificationTime:i,t))+' pl-1">'+c(a(null!=(i=null!=t?t.options:t)?i.notificationTime:i,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasNotifications:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div id="notificationsDropdown" class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div aria-labelledby="notificationsDropdown" class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.notificationsContainer:i,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.confirmSelectionText:i,t))?i:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.searchInfoSvg:i,t))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u=e.lambda,s=e.escapeExpression;return' <span class="border rounded align-middle '+s(u(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.term:c,t))+'">'+s(u(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o,i,a){e.propertyIsEnumerable;var c,u,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+s(e.lambda(null!=(c=null!=(c=null!=t?t.options:t)?c.styles:c)?c.termContainer:c,t))+'">\r\n'+(null!=(c=n.each.call(l,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,o,0,i,a),inverse:e.noop,data:o}))?c:"")+"</span>\r\n<span>"+s("function"==typeof(u=null!=(u=n.description||(null!=t?t.description:t))?u:e.hooks.helperMissing)?u.call(l,{name:"description",hash:{},data:o}):u)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchContextTag:i,t))+'" title="'+u("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:l)?a.call(s,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+u("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:l)?a.call(s,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRecent:i,t))+'">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.closeSvg:i,t))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<a href="'+u("function"==typeof(i=null!=(i=n.url||(null!=t?t.url:t))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+u("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda,u=e.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'src="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'" class="img-fluid lazy-img w-100 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnail:i,t))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.playIcon:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){return"data-"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.playSvgContainer:i,t))+'" '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.lazyload:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"},5:function(e,t,n,r,o){return'style="display: none;"'},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<span class="badge float-right '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.durationOverlay:i,t))+'">'+c(a(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.url:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+e.escapeExpression(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.playSvg:i,t))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.duration:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"aligned"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return' <div class="result-title collection"> '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.type:i,t))+": "+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<a class="row" href="'+c(e.lambda(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(u,null!=(i=null!=t?t.options:t)?i.collection:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(u,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(u,null!=(i=null!=(i=null!=t?t.options:t)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a,c=e.lambda,u=e.escapeExpression;return'<a class="row" href="'+u(c(null!=(i=null!=t?t.options:t)?i.url:i,t))+'">\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.coverContainer:i,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.textContainer:i,t))+' px-2">\r\n <div class="result-title text-capitalize">'+u("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,c=e.escapeExpression;return'<div class="w-100 h-100 align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchInput:i,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+c(a(null!=(i=null!=t?t.options:t)?i.libraryText:i,t))+'" aria-label="Search">\r\n</div>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchSvgContainer:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<button type="submit" tabindex="-1" style="display:none"></button>\r\n<span class="search-tips-region '+c(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.tipsContainer:i,t))+'"></span>\r\n'},3:function(e,t,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showPartial:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.searchBar:i,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_1XSQR"}},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region position-relative"></div>\r\n<div id="dialog-region"></div>'},useData:!0})},function(e,t,n){var r=n(25);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="layout-region"></div>'},useData:!0})},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return p}));var r,o,i=n(39),a=n(77),c=n(6),u=n(18),s=(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),l=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e};if("undefined"==typeof XMLHttpRequest){var f=require;o=f("request")}var p=function(t){function n(e){var n=t.call(this)||this;if(void 0===o)throw new Error("The 'request' module could not be loaded.");return n.logger=e,n.cookieJar=o.jar(),n.request=o.defaults({jar:n.cookieJar}),n}return s(n,t),n.prototype.send=function(t){var n=this;return t.abortSignal&&t.abortSignal.aborted?Promise.reject(new i.a):new Promise((function(r,o){var s;s=Object(u.g)(t.content)?e.from(t.content):t.content||"";var f=n.request(t.url,{body:s,encoding:"arraybuffer"===t.responseType?null:"utf8",headers:l({"X-Requested-With":"XMLHttpRequest"},t.headers),method:t.method,timeout:t.timeout},(function(e,u,s){if(t.abortSignal&&(t.abortSignal.onabort=null),e)return"ETIMEDOUT"===e.code&&(n.logger.log(c.a.Warning,"Timeout from HTTP request."),o(new i.c)),n.logger.log(c.a.Warning,"Error from HTTP request. "+e),void o(e);u.statusCode>=200&&u.statusCode<300?r(new a.b(u.statusCode,u.statusMessage||"",s)):o(new i.b(u.statusMessage||"",u.statusCode||0))}));t.abortSignal&&(t.abortSignal.onabort=function(){f.abort(),o(new i.a)})}))},n.prototype.getCookieString=function(e){return this.cookieJar.getCookieString(e)},n}(a.a)}).call(this,n(368).Buffer)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return i}));var r=n(106),o=n(18),i=function(){function t(){}return t.prototype.writeHandshakeRequest=function(e){return r.a.write(JSON.stringify(e))},t.prototype.parseHandshakeResponse=function(t){var n,i;if(Object(o.g)(t)||void 0!==e&&t instanceof e){var a=new Uint8Array(t);if(-1===(u=a.indexOf(r.a.RecordSeparatorCode)))throw new Error("Message is incomplete.");var c=u+1;n=String.fromCharCode.apply(null,a.slice(0,c)),i=a.byteLength>c?a.slice(c).buffer:null}else{var u,s=t;if(-1===(u=s.indexOf(r.a.RecordSeparator)))throw new Error("Message is incomplete.");c=u+1;n=s.substring(0,c),i=s.length>c?s.substring(c):null}var l=r.a.parse(n),f=JSON.parse(l[0]);if(f.type)throw new Error("Expected a handshake response from the server.");return[i,f]},t}()}).call(this,n(368).Buffer)},function(e,t,n){e.exports=function(){"use strict";var e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(t,n)},t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(e,t,n,r){var o,i,a,c=t||[0],u=(n=n||0)>>>3,s=-1===r?3:0;for(o=0;o<e.length;o+=1)i=(a=o+u)>>>2,c.length<=i&&c.push(0),c[i]|=e[o]<<8*(s+r*(a%4));return{value:c,binLen:8*e.length+n}}function r(e,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(e){case"HEX":return function(e,t,n){return function(e,t,n,r){var o,i,a,c;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<e.length;o+=2){if(i=parseInt(e.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(c=(o>>>1)+s)>>>2;u.length<=a;)u.push(0);u[a]|=i<<8*(l+r*(c%4))}return{value:u,binLen:4*e.length+n}}(e,t,n,o)};case"TEXT":return function(e,t,n){return function(e,t,n,r,o){var i,a,c,u,s,l,f,p,h=0,d=n||[0],y=(r=r||0)>>>3;if("UTF8"===t)for(f=-1===o?3:0,c=0;c<e.length;c+=1)for(a=[],128>(i=e.charCodeAt(c))?a.push(i):2048>i?(a.push(192|i>>>6),a.push(128|63&i)):55296>i||57344<=i?a.push(224|i>>>12,128|i>>>6&63,128|63&i):(c+=1,i=65536+((1023&i)<<10|1023&e.charCodeAt(c)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),u=0;u<a.length;u+=1){for(s=(l=h+y)>>>2;d.length<=s;)d.push(0);d[s]|=a[u]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===t&&1!==o||"UTF16LE"!==t&&1===o,c=0;c<e.length;c+=1){for(i=e.charCodeAt(c),!0===p&&(i=(u=255&i)<<8|i>>>8),s=(l=h+y)>>>2;d.length<=s;)d.push(0);d[s]|=i<<8*(f+o*(l%4)),h+=2}return{value:d,binLen:8*h+r}}(e,r,t,n,o)};case"B64":return function(e,n,r){return function(e,n,r,o){var i,a,c,u,s,l,f=0,p=n||[0],h=(r=r||0)>>>3,d=-1===o?3:0,y=e.indexOf("=");if(-1===e.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(e=e.replace(/=/g,""),-1!==y&&y<e.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<e.length;i+=4){for(u=e.substr(i,4),c=0,a=0;a<u.length;a+=1)c|=t.indexOf(u.charAt(a))<<18-6*a;for(a=0;a<u.length-1;a+=1){for(s=(l=f+h)>>>2;p.length<=s;)p.push(0);p[s]|=(c>>>16-8*a&255)<<8*(d+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(e,n,r,o)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var o,i,a,c,u=t||[0],s=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=e.charCodeAt(i),a=(c=i+s)>>>2,u.length<=a&&u.push(0),u[a]|=o<<8*(l+r*(c%4));return{value:u,binLen:8*e.length+n}}(e,t,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e,t,r){return function(e,t,r,o){return n(new Uint8Array(e),t,r,o)}(e,t,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e,t,r){return n(e,t,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(e,n,r,o){switch(e){case"HEX":return function(e){return function(e,t,n,r){var o,i,a="",c=t/8,u=-1===n?3:0;for(o=0;o<c;o+=1)i=e[o>>>2]>>>8*(u+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(e,n,r,o)};case"B64":return function(e){return function(e,n,r,o){var i,a,c,u,s,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(u=i+1<f?e[i+1>>>2]:0,s=i+2<f?e[i+2>>>2]:0,c=(e[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(u>>>8*(p+r*((i+1)%4))&255)<<8|s>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?t.charAt(c>>>6*(3-a)&63):o.b64Pad;return l}(e,n,r,o)};case"BYTES":return function(e){return function(e,t,n){var r,o,i="",a=t/8,c=-1===n?3:0;for(r=0;r<a;r+=1)o=e[r>>>2]>>>8*(c+n*(r%4))&255,i+=String.fromCharCode(o);return i}(e,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(e){throw new Error("ARRAYBUFFER not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=new ArrayBuffer(o),a=new Uint8Array(i),c=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(c+n*(r%4))&255;return i}(e,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(e){throw new Error("UINT8ARRAY not supported by this environment")}return function(e){return function(e,t,n){var r,o=t/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=e[r>>>2]>>>8*(i+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e){var t={outputUpper:!1,b64Pad:"=",outputLen:-1},n=e||{},r="Output length must be a multiple of 8";if(t.outputUpper=n.outputUpper||!1,n.b64Pad&&(t.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);t.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);t.outputLen=n.shakeLen}if("boolean"!=typeof t.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof t.b64Pad)throw new Error("Invalid b64Pad formatting option");return t}function a(e,t){return e<<t|e>>>32-t}function c(e,t,n){return e^t^n}function u(e,t,n){return e&t^e&n^t&n}function s(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function l(e,t,n,r,o){var i=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&o);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(e,t){var n,r,o,i,f,p,h,d,y=[];for(n=t[0],r=t[1],o=t[2],i=t[3],f=t[4],h=0;h<80;h+=1)y[h]=h<16?e[h]:a(y[h-3]^y[h-8]^y[h-14]^y[h-16],1),p=h<20?l(a(n,5),(d=r)&o^~d&i,f,1518500249,y[h]):h<40?l(a(n,5),c(r,o,i),f,1859775393,y[h]):h<60?l(a(n,5),u(r,o,i),f,2400959708,y[h]):l(a(n,5),c(r,o,i),f,3395469782,y[h]),f=i,i=o,o=a(r,30),r=n,n=p;return t[0]=s(n,t[0]),t[1]=s(r,t[1]),t[2]=s(o,t[2]),t[3]=s(i,t[3]),t[4]=s(f,t[4]),t}function h(e,t,n,r){for(var o,i=15+(t+65>>>9<<4),a=t+n;e.length<=i;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[i]=4294967295&a,e[i-1]=a/4294967296|0,o=0;o<e.length;o+=16)r=p(e.slice(o,o+16),r);return r}return function(t){function n(e,n,o){var i=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=t.call(this,e,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(e){return e.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(e,t,n,o){var i="hmacKey must include a value and format";if(!t)throw new Error(i);if(void 0===t.value||!t.format)throw new Error(i);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,i.u)),i}return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,t),n}(function(){function e(e,t,n){var r=n||{};if(this.h=t,this.v=r.encoding||"UTF8",this.numRounds=r.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=e,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return e.prototype.update=function(e){var t,n=0,r=this.T>>>5,o=this.s(e,this.Y,this.I),i=o.binLen,a=o.value,c=i>>>5;for(t=0;t<c;t+=r)n+this.T<=i&&(this.U=this.A(a.slice(t,t+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,c=i(t);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");a=c.outputLen}var u=o(e,a,this.u,c);if(!0===this.L&&this.i)return u(this.i(c));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return u(r)},e.prototype.setHMACKey=function(e,t,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var o=r(t,(n||{}).encoding||"UTF8",this.u);this.B(o(e))},e.prototype.B=function(e){var t,n=this.T>>>3,r=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<e.binLen/8&&(e.value=this.R(e.value,e.binLen,0,this.l(this.g),this.m));e.value.length<=r;)e.value.push(0);for(t=0;t<=r;t+=1)this.N[t]=909522486^e.value[t],this.S[t]=1549556828^e.value[t];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},e.prototype.getHMAC=function(e,t){var n=i(t);return o(e,this.m,this.u,n)(this.o())},e.prototype.o=function(){var e;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var t=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return e=this.A(this.S,this.l(this.g)),this.R(t,this.m,this.T,e,this.m)},e}())}()},function(e){e.exports=JSON.parse('{"a":"1.0.17"}')},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e,t,n){},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(591));var o=r.tokenize,i=r.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function c(e){return e.replace(/"/g,"&quot;")}function u(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+c(r)+'"')}return t.join(" ")}function s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new i(t);for(var n=o(e),r=[],s=0;s<n.length;s++){var l=n[s];if("nl"===l.type&&t.nl2br)r.push("<br>\n");else if(l.isLink&&t.check(l)){var f=t.resolve(l),p=f.formatted,h=f.formattedHref,d=f.tagName,y=f.className,v=f.target,g=f.attributes,m="<"+d+' href="'+c(h)+'"';y&&(m+=' class="'+c(y)+'"'),v&&(m+=' target="'+c(v)+'"'),g&&(m+=" "+u(g)),m+=">"+a(p)+"</"+d+">",r.push(m)}else r.push(a(l.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return s(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return s(this,e)})}t.default=s},function(e,t,n){"use strict";t.__esModule=!0,t.tokenize=t.test=t.scanner=t.parser=t.options=t.inherits=t.find=void 0;var r=n(162),o=c(n(592)),i=c(n(593)),a=c(n(594));function c(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)});var u=function(e){return a.run(i.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||t&&i.type!==t||r.push(i.toObject())}return r},t.inherits=r.inherits,t.options=o,t.parser=a,t.scanner=i,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=u(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=u},function(e,t,n){"use strict";t.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(e,t){return"url"===t?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:o.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:o.events,this.format=e.hasOwnProperty("format")?e.format:o.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:o.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:o.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:o.tagName,this.target=e.hasOwnProperty("target")?e.target:o.target,this.validate=e.hasOwnProperty("validate")?e.validate:o.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||o.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||o.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:o.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=o,t.Options=i,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},i.prototype={resolve:function(e){var t=e.toHref(this.defaultProtocol);return{formatted:this.get("format",e.toString(),e),formattedHref:this.get("formatHref",t,e),tagName:this.get("tagName",t,e),className:this.get("className",t,e),target:this.get("target",t,e),events:this.getObject("events",t,e),attributes:this.getObject("attributes",t,e)}},check:function(e){return this.get("validate",e.toString(),e)},get:function(e,t,n){var i=void 0,a=this[e];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(t,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[e])?i(t,n.type):i}return a},getObject:function(e,t,n){var r=this[e];return"function"==typeof r?r(t,n.type):r}}},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(347),o=n(205),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),u="0123456789abcdefghijklmnopqrstuvwxyz".split(""),s=[" ","\f","\r","\t","\v"," "," ","᠎"],l=[],f=function(e){return new r.CharacterState(e)},p=f(),h=f(o.NUM),d=f(o.DOMAIN),y=f(),v=f(o.WS);p.on("@",f(o.AT)).on(".",f(o.DOT)).on("+",f(o.PLUS)).on("#",f(o.POUND)).on("?",f(o.QUERY)).on("/",f(o.SLASH)).on("_",f(o.UNDERSCORE)).on(":",f(o.COLON)).on("{",f(o.OPENBRACE)).on("[",f(o.OPENBRACKET)).on("<",f(o.OPENANGLEBRACKET)).on("(",f(o.OPENPAREN)).on("}",f(o.CLOSEBRACE)).on("]",f(o.CLOSEBRACKET)).on(">",f(o.CLOSEANGLEBRACKET)).on(")",f(o.CLOSEPAREN)).on("&",f(o.AMPERSAND)).on([",",";","!",'"',"'"],f(o.PUNCTUATION)),p.on("\n",f(o.NL)).on(s,v),v.on(s,v);for(var g=0;g<a.length;g++){var m=(0,r.stateify)(a[g],p,o.TLD,o.DOMAIN);l.push.apply(l,m)}var b=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),C=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,b),l.push.apply(l,w),l.push.apply(l,S),l.push.apply(l,C);var O=b.pop(),k=w.pop(),E=S.pop(),P=C.pop(),R=f(o.DOMAIN),_=f(o.PROTOCOL),T=f(o.MAILTO);k.on("s",R).on(":",_),E.on("s",R).on(":",_),l.push(R),O.on(":",_),R.on(":",_),P.on(":",T);var x=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,x),p.on(c,h),h.on("-",y).on(c,h).on(u,d),d.on("-",y).on(u,d);for(var A=0;A<l.length;A++)l[A].on("-",y).on(u,d);y.on("-",y).on(c,d).on(u,d),p.defaultTransition=f(o.SYM);var L=p;t.State=r.CharacterState,t.TOKENS=i,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],o=0;o<n;){for(var i=p,a=null,c=0,u=null,s=-1;o<n&&(a=i.next(t[o]));)(i=a).accepts()?(s=0,u=i):s>=0&&s++,c++,o++;if(!(s<0)){o-=s,c-=s;var l=u.emit();r.push(new l(e.substr(o-c,c)))}}return r},t.start=L},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(347),o=n(595),i=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(o),a=n(205);var c=function(e){return new r.TokenState(e)},u=c(),s=c(),l=c(),f=c(),p=c(),h=c(),d=c(),y=c(o.URL),v=c(),g=c(o.URL),m=c(o.URL),b=c(),w=c(),S=c(),C=c(),O=c(),k=c(o.URL),E=c(o.URL),P=c(o.URL),R=c(o.URL),_=c(),T=c(),x=c(),A=c(),L=c(),j=c(),N=c(o.EMAIL),I=c(),D=c(o.EMAIL),U=c(o.MAILTOEMAIL),M=c(),F=c(),V=c(),H=c(),z=c(o.NL);u.on(a.NL,z).on(a.PROTOCOL,s).on(a.MAILTO,l).on(a.SLASH,f),s.on(a.SLASH,f),f.on(a.SLASH,p),u.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,y).on(a.NUM,h),p.on(a.TLD,m).on(a.DOMAIN,m).on(a.NUM,m).on(a.LOCALHOST,m),h.on(a.DOT,d),L.on(a.DOT,j),d.on(a.TLD,y).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),j.on(a.TLD,N).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),y.on(a.DOT,d),N.on(a.DOT,j),y.on(a.COLON,v).on(a.SLASH,m),v.on(a.NUM,g),g.on(a.SLASH,m),N.on(a.COLON,I),I.on(a.NUM,D);var B=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],q=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];m.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,C).on(a.OPENPAREN,O),b.on(a.OPENBRACE,w).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,C).on(a.OPENPAREN,O),w.on(a.CLOSEBRACE,m),S.on(a.CLOSEBRACKET,m),C.on(a.CLOSEANGLEBRACKET,m),O.on(a.CLOSEPAREN,m),k.on(a.CLOSEBRACE,m),E.on(a.CLOSEBRACKET,m),P.on(a.CLOSEANGLEBRACKET,m),R.on(a.CLOSEPAREN,m),_.on(a.CLOSEBRACE,m),T.on(a.CLOSEBRACKET,m),x.on(a.CLOSEANGLEBRACKET,m),A.on(a.CLOSEPAREN,m),w.on(B,k),S.on(B,E),C.on(B,P),O.on(B,R),w.on(q,_),S.on(q,T),C.on(q,x),O.on(q,A),k.on(B,k),E.on(B,E),P.on(B,P),R.on(B,R),k.on(q,k),E.on(q,E),P.on(q,P),R.on(q,R),_.on(B,k),T.on(B,E),x.on(B,P),A.on(B,R),_.on(q,_),T.on(q,T),x.on(q,x),A.on(q,A),m.on(B,m),b.on(B,m),m.on(q,b),b.on(q,b),l.on(a.TLD,U).on(a.DOMAIN,U).on(a.NUM,U).on(a.LOCALHOST,U),U.on(B,U).on(q,M),M.on(B,U).on(q,M);var W=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(W,F).on(a.AT,V),y.on(W,F).on(a.AT,V),d.on(W,F),F.on(W,F).on(a.AT,V).on(a.DOT,H),H.on(W,F),V.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,N);t.State=r.TokenState,t.TOKENS=i,t.run=function(e){for(var t=e.length,n=0,r=[],i=[];n<t;){for(var a=u,c=null,s=null,l=0,f=null,p=-1;n<t&&!(c=a.next(e[n]));)i.push(e[n++]);for(;n<t&&(s=c||a.next(e[n]));)c=null,(a=s).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(e[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var d=f.emit();r.push(new d(e.slice(n-l,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},t.start=u},function(e,t,n){"use strict";t.__esModule=!0,t.URL=t.TEXT=t.NL=t.EMAIL=t.MAILTOEMAIL=t.Base=void 0;var r=n(348),o=n(162),i=n(205);function a(e){return e instanceof i.DOMAIN||e instanceof i.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var e=[],t=0;t<this.v.length;t++)e.push(this.v[t].toString());return e.join("")},toHref:function(){return this.toString()},toObject:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(e)}}};var u=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),s=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",t=!1,n=!1,r=this.v,o=[],c=0;r[c]instanceof i.PROTOCOL;)t=!0,o.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof i.SLASH;)n=!0,o.push(r[c].toString()),c++;for(;a(r[c]);)o.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)o.push(r[c].toString());return o=o.join(""),t||n||(o=e+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});t.Base=c,t.MAILTOEMAIL=u,t.EMAIL=s,t.NL=f,t.TEXT=l,t.URL=p},function(e,t,n){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,r=s(e),a=r[0],c=r[1],u=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,c)),l=0,f=c>0?a-4:a;for(n=0;n<f;n+=4)t=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],u[l++]=t>>16&255,u[l++]=t>>8&255,u[l++]=255&t;2===c&&(t=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,u[l++]=255&t);1===c&&(t=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,u[l++]=t>>8&255,u[l++]=255&t);return u},t.fromByteArray=function(e){for(var t,n=e.length,o=n%3,i=[],a=0,c=n-o;a<c;a+=16383)i.push(l(e,a,a+16383>c?c:a+16383));1===o?(t=e[n-1],i.push(r[t>>2]+r[t<<4&63]+"==")):2===o&&(t=(e[n-2]<<8)+e[n-1],i.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"="));return i.join("")};for(var r=[],o=[],i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,u=a.length;c<u;++c)r[c]=a[c],o[a.charCodeAt(c)]=c;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function l(e,t,n){for(var o,i,a=[],c=t;c<n;c+=3)o=(e[c]<<16&16711680)+(e[c+1]<<8&65280)+(255&e[c+2]),a.push(r[(i=o)>>18&63]+r[i>>12&63]+r[i>>6&63]+r[63&i]);return a.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,t){t.read=function(e,t,n,r,o){var i,a,c=8*o-r-1,u=(1<<c)-1,s=u>>1,l=-7,f=n?o-1:0,p=n?-1:1,h=e[t+f];for(f+=p,i=h&(1<<-l)-1,h>>=-l,l+=c;l>0;i=256*i+e[t+f],f+=p,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=p,l-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),i-=s}return(h?-1:1)*a*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var a,c,u,s=8*i-o-1,l=(1<<s)-1,f=l>>1,p=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,d=r?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?p/u:p*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(c=0,a=l):a+f>=1?(c=(t*u-1)*Math.pow(2,o),a+=f):(c=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));o>=8;e[n+h]=255&c,h+=d,c/=256,o-=8);for(a=a<<o|c,s+=o;s>0;e[n+h]=255&a,h+=d,a/=256,s-=8);e[n+h-d]|=128*y}},function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,n){"use strict";n.r(t);n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(488),n(489),n(490),n(491),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(587),n(588),n(589);var r=n(2),o=n(0),i=n.n(o),a=n(9),c=n(180),u=n(16);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,r,i=h(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"onShowAlert",value:function(e){if(this.layoutOptions.options.alertRegion){var t=e.ctor,n=e.collection,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,o.createElement(t,{alerts:r,removeAlert:function(e){return a.Radio.channel(u.a.ALERT).trigger("remove:alert",e)}}))}}}])&&f(t.prototype,n),r&&f(t,r),c}(c.a),g="content",m="popup",b="alert",w=n(3),S="TeacherLayout",C="EmbedLayout",O=n(5),k=n(8),E=n(10),P=n(28),R=n(116),_=[{application:O.a.DEFAULT,action:E.a.Default.NOT_FOUND},{application:O.a.DEFAULT,action:E.a.Default.ERROR},{application:O.a.DEFAULT,action:E.a.Default.DEV_ERROR},{application:O.a.DEFAULT,action:E.a.Default.DIALOG_ERROR}];function T(e,t){_.find((function(t){return t.application===e.application&&t.action===e.action}))?t(e):k.a.getInstance(P.a.FlightUser).getCurrentUser((function(n){k.a.releaseInstance(P.a.FlightUser),n.emailVerified?t(e):(r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new R.a))}),(function(){k.a.releaseInstance(P.a.FlightUser),t(e)}))}var x=n(227),A=n.n(x),L=n(248),j=[{application:O.a.SUBJECT,action:E.a.Subjects.PREFERENCES},{application:O.a.DEFAULT,action:E.a.Default.SHARE},{application:O.a.DEFAULT,action:E.a.Default.NOT_FOUND}];function N(e,t){I(e,(function(n){if(n)return r.a.AppLinkHelper.trigger({application:O.a.SUBJECT,action:E.a.Subjects.PREFERENCES}),void r.a.AppLinkUtility.routingEnded();t(e)}))}function I(e,t){if(j.find((function(t){var n,r;return t.application===(null===(n=e)||void 0===n?void 0:n.application)&&t.action===(null===(r=e)||void 0===r?void 0:r.action)})))t(!1);else{var n=k.a.getInstance(P.a.FlightUser),r=k.a.getInstance(P.a.Settings);n.getCurrentUser((function(e){k.a.releaseInstance(P.a.FlightUser),("Admin"===e.role||"SuperAdmin"===e.role)&&A.a.get("_onboardingComplete")!==e.id.toString()?r.getSetting(e.id,L.a.HasCompletedOnboarding,(function(n){if(k.a.releaseInstance(P.a.Settings),n.value)return A.a.set("_onboardingComplete",e.id,{expires:30}),void t(!1);t(!0)})):t(!1)}),(function(){k.a.releaseInstance(P.a.FlightUser),t(!1)}))}}function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function U(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function M(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function F(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}function V(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=q(e);if(t){var o=q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return B(this,n)}}function B(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var W=function(e){V(n,e);var t=z(n);function n(){return U(this,n),t.apply(this,arguments)}return F(n,[{key:"channelName",get:function(){return O.a.CLASSROOMS}},{key:"appRoutes",get:function(){return{"classrooms(/)":"index","classrooms/:id":"classroom","classrooms/:id/manage":"manageClassroom"}}},{key:"appLinks",get:function(){return["newClassroom","editClassroom","deleteClassroom","addStudents","removeStudents","newGroup","editGroup","deleteGroup"]}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),J=function(e){V(r,e);var t=z(r);function r(){return U(this,r),t.apply(this,arguments)}return F(r,[{key:"index",value:function(){var e=this;n.e(32).then(n.bind(null,1307)).then((function(t){var n=t.ClassroomsView;e.layout.showChildView(g,i.a.createElement(n,null))}))}},{key:"classroom",value:function(e){var t=this;n.e(37).then(n.bind(null,1304)).then((function(n){var r=n.ClassroomView;t.layout.showChildView(g,i.a.createElement(r,{id:e}))}))}},{key:"manageClassroom",value:function(e,t){var r=this,o=t.tab;["students","groups"].includes(o)||(o="students"),Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(24)]).then(n.bind(null,1302)).then((function(t){var n=t.ManageClassroomView;r.layout.showChildView(g,i.a.createElement(n,{id:e,activeTab:o}))}))}},{key:"newClassroom",value:function(){var e=this;Promise.all([n.e(1),n.e(40)]).then(n.bind(null,1269)).then((function(t){var n=t.CreateClassroomView,r={actionType:w.n.Create,entity:w.d.Classroom,workflowPhase:w.o.Complete,location:w.j.Popup};e.layout.showChildView(m,i.a.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editClassroom",value:function(e){var t=this;Promise.all([n.e(1),n.e(41)]).then(n.bind(null,1270)).then((function(n){var r=n.EditClassroomView,o={actionType:w.n.Edit,entity:w.d.Classroom,workflowPhase:w.o.Complete,location:w.j.Popup};t.layout.showChildView(m,i.a.createElement(r,{id:e,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteClassroom",value:function(e){var t=this;n.e(58).then(n.bind(null,1271)).then((function(n){var r=n.DeleteClassroomView,o={actionType:w.n.Delete,entity:w.d.Classroom,workflowPhase:w.o.Complete,location:w.j.Popup};t.layout.showChildView(m,i.a.createElement(r,{id:e,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"addStudents",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(31)]).then(n.bind(null,1272)).then((function(n){var r=n.AddStudentsToClassroomView,o={actionType:w.n.Associate,entity:w.d.Classroom,location:w.j.Popup,descriptor:w.a.User,workflowPhase:w.o.Complete};t.layout.showChildView(m,i.a.createElement(r,{classroomId:e,closePopup:function(){return t.layout.closePopup()},analyticsOptions:o}))}))}},{key:"removeStudents",value:function(e,t){var r=this,o=t.studentIds;n.e(59).then(n.bind(null,1273)).then((function(t){var n=t.RemoveStudentsFromClassroomView,a={actionType:w.n.Dissociate,entity:w.d.Classroom,location:w.j.Popup,descriptor:w.a.User,workflowPhase:w.o.Complete};r.layout.showChildView(m,i.a.createElement(n,{classroomId:e,studentIds:o,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"newGroup",value:function(e,t){var r=this,o=t.addStudents,a=void 0===o?[]:o;Promise.all([n.e(1),n.e(27)]).then(n.bind(null,1274)).then((function(t){var n=t.CreateClassroomGroupView,o={entity:w.d.ClassroomGroup,location:w.j.Popup,workflowPhase:w.o.Complete};r.layout.showChildView(m,i.a.createElement(n,{classroomId:e,studentIds:a,closePopup:function(){return r.layout.closePopup()},analyticsOptions:o}))}))}},{key:"editGroup",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(28)]).then(n.bind(null,1275)).then((function(n){var o=n.EditClassroomGroupView,a={entity:w.d.ClassroomGroup,actionType:w.n.Edit,location:w.j.Popup,workflowPhase:w.o.Complete};r.layout.showChildView(m,i.a.createElement(o,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"deleteGroup",value:function(e,t){var r=this;n.e(57).then(n.bind(null,1276)).then((function(n){var o=n.DeleteClassroomGroupView,a={entity:w.d.ClassroomGroup,actionType:w.n.Delete,location:w.j.Popup,workflowPhase:w.o.Complete};r.layout.showChildView(m,i.a.createElement(o,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return O.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return W}}]),r}(v),G=n(242),Y=n(128),K="content",Q="popup",Z="alert",X=n(47),ee={getVideoAppLink:function(e){return{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO,args:[e.id,X.a.slugify(e.name)],params:e.lastProgressPoint?{t:Math.floor(e.lastProgressPoint)}:{}}},getSeriesAppLink:function(e){return{application:O.a.DEFAULT,action:E.a.Default.SERIES,args:[e.id,X.a.slugify(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:O.a.CONTENT_UPDATES,action:E.a.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,X.a.slugify(e.name)]}},getClassificationAppLink:function(e){return{application:O.a.SUBJECT,action:E.a.Subjects.CLASSIFICATION,args:[e.id,X.a.slugify(e.name)]}},getShareAppLink:function(e){return{application:O.a.DEFAULT,action:E.a.Default.SHARE,args:[e.id],params:{entityType:"video"}}},getAddToPlaylistAppLink:function(e){return{application:O.a.PLAYLISTS,action:E.a.Playlists.ADD_TO_PLAYLIST,args:[e.id]}},dashboardAppLink:{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME},contentUpdatesAppLink:{application:O.a.CONTENT_UPDATES,action:E.a.ContentUpdates.CONTENT_UPDATES}};function te(e){return(te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ne(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function re(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t,n){return t&&re(e.prototype,t),n&&re(e,n),e}function ie(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ae(e,t)}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=se(e);if(t){var o=se(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==te(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var le=function(e){ie(n,e);var t=ce(n);function n(){return ne(this,n),t.apply(this,arguments)}return oe(n,[{key:"channelName",get:function(){return O.a.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),fe=function(e){ie(r,e);var t=ce(r);function r(){return ne(this,r),t.apply(this,arguments)}return oe(r,[{key:"contentUpdates",value:function(){var e=this,t=[Y.a.Share,Y.a.AddToPlaylist],r=function(e,t){switch(t){case Y.a.AddToPlaylist:return ee.getAddToPlaylistAppLink(e);case Y.a.Share:return ee.getShareAppLink(e)}};Promise.all([n.e(0),n.e(5),n.e(56)]).then(n.bind(null,1308)).then((function(n){var i=n.ContentUpdatesView;e.layout.showChildView(K,o.createElement(G.a.Provider,{value:{videoActions:t,getActionAppLink:r}},o.createElement(i,{appLinks:ee})))}))}},{key:"classificationUpdate",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(5),n.e(63)]).then(n.bind(null,1277)).then((function(t){var n=t.ClassificationUpdateView;r.layout.showChildView(K,o.createElement(n,{classificationId:e,appLinks:ee}))}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.CONTENT_UPDATES}}],[{key:"router",get:function(){return le}}]),r}(v);function pe(e){return(pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function de(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ye(e,t,n){return t&&de(e.prototype,t),n&&de(e,n),e}function ve(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ge(e,t)}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function me(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=we(e);if(t){var o=we(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return be(this,n)}}function be(e,t){return!t||"object"!==pe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Se=function(e){ve(n,e);var t=me(n);function n(){return he(this,n),t.apply(this,arguments)}return ye(n,[{key:"channelName",get:function(){return O.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"(/)":"index","dashboard/:id/:name":"dashboard"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Ce=function(e){ve(r,e);var t=me(r);function r(){return he(this,r),t.apply(this,arguments)}return ye(r,[{key:"index",value:function(){var e=this;Promise.all([n.e(0),n.e(2),n.e(35)]).then(n.bind(null,1305)).then((function(t){var n=t.DashboardView;e.layout.showChildView(K,o.createElement(n,null))}))}},{key:"dashboard",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.cursor||1;Promise.all([n.e(0),n.e(15)]).then(n.bind(null,1317)).then((function(t){var n=t.DashboardWidgetView;r.layout.showChildView(K,o.createElement(n,{widgetId:e,cursor:a}))}))}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return O.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}}],[{key:"router",get:function(){return Se}}]),r}(v);function Oe(e){return(Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Pe(e,t,n){return t&&Ee(e.prototype,t),n&&Ee(e,n),e}function Re(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Te(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ae(e);if(t){var o=Ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==Oe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(e){Re(n,e);var t=Te(n);function n(){return ke(this,n),t.apply(this,arguments)}return Pe(n,[{key:"channelName",get:function(){return O.a.DEFAULT}},{key:"appRoutes",get:function(){return{"videos/:id(/:slug)":"playVideo","series/:id(/:slug)":"series","share/:shortCode(/)":"playSharedVideo","favourited-videos(/)":"favouriteVideos","my-videos(/)":"myVideos","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","dialogError","error","notFound","editVideo","share"]}},{key:"externalRoutes",get:function(){return{"logout(/)":"logOut","login(/)":"logIn"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),je=function(e){Re(i,e);var t=Te(i);function i(){return ke(this,i),t.apply(this,arguments)}return Pe(i,[{key:"myVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(22)]).then(n.bind(null,1309)).then((function(n){var r=n.MyVideosView;t.layout.showChildView(K,o.createElement(r,{cursor:e.cursor}))}))}},{key:"share",value:function(e,t){var r=this;n.e(12).then(n.bind(null,1306)).then((function(n){var i=n.ShareView;r.layout.showChildView(Q,o.createElement(i,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"playVideo",value:function(e,t){var r=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};"string"==typeof t?Promise.all([n.e(0),n.e(2),n.e(4),n.e(8)]).then(n.bind(null,1318)).then((function(t){var n=t.PlayView;r.layout.showChildView(K,o.createElement(n,{id:e,startTime:i.t}))})):this.playVideoNoSlug(e,t||{})}},{key:"playVideoNoSlug",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(2),n.e(4),n.e(8)]).then(n.bind(null,1318)).then((function(n){var i=n.PlayView;r.layout.showChildView(K,o.createElement(i,{id:e,startTime:t.t}))}))}},{key:"playSharedVideo",value:function(e){var t=this;Promise.all([n.e(0),n.e(2),n.e(4),n.e(61)]).then(n.bind(null,1278)).then((function(n){var r=n.PlaySharedView;t.layout.showChildView(K,o.createElement(r,{shortCode:e}))}))}},{key:"editVideo",value:function(e){var t=this;Promise.all([n.e(1),n.e(46)]).then(n.bind(null,1279)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(Q,o.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"series",value:function(e,t,r){var i=this;Promise.all([n.e(0),n.e(13)]).then(n.bind(null,1280)).then((function(t){var n,a=t.SeriesView;i.layout.showChildView(K,o.createElement(a,{id:e,cursor:null===(n=r)||void 0===n?void 0:n.cursor}))}))}},{key:"favouriteVideos",value:function(e){var t=this;Promise.all([n.e(0),n.e(21)]).then(n.bind(null,1281)).then((function(n){var r=n.FavouriteVideosView;t.layout.showChildView(K,o.createElement(r,{cursor:e.cursor}))}))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new R.a)}},{key:"notFound",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(51).then(n.bind(null,1282)).then((function(n){var r=n.NotFoundView;e.layout.showChildView(K,o.createElement(r,{error:t}))}))}},{key:"error",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(53).then(n.bind(null,1070)).then((function(n){var r=n.ErrorView;e.layout.showChildView(K,o.createElement(r,{error:t}))}))}},{key:"dialogError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");if(t){var r=t.dialogOptions;n.e(62).then(n.bind(null,1283)).then((function(n){var i=n.DialogView;e.layout.showChildView(Q,o.createElement(i,{title:r.title,text:r.text,buttons:r.buttons,onDone:t.onDone,onFail:t.onFail,closePopup:function(){return e.layout.closePopup()}}))}))}}},{key:"devError",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(64).then(n.bind(null,1284)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(K,o.createElement(r,{error:t}))}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.DEFAULT}}],[{key:"router",get:function(){return Le}}]),i}(v);function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function De(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ue(e,t,n){return t&&De(e.prototype,t),n&&De(e,n),e}function Me(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fe(e,t)}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ve(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ze(e);if(t){var o=ze(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return He(this,n)}}function He(e,t){return!t||"object"!==Ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ze(e){return(ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Be=function(e){Me(n,e);var t=Ve(n);function n(){return Ie(this,n),t.apply(this,arguments)}return Ue(n,[{key:"channelName",get:function(){return O.a.EMBED}},{key:"appRoutes",get:function(){return{"share/embed/:shortCode":"embedVideo"}}},{key:"filters",get:function(){return[T]}}]),n}(r.a.AppRouter),qe=function(e){Me(r,e);var t=Ve(r);function r(){return Ie(this,r),t.apply(this,arguments)}return Ue(r,[{key:"embedVideo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.a,a=void 0!==i&&i;n.e(54).then(n.bind(null,1285)).then((function(n){var r=n.EmbedView;t.layout.showChildView(K,o.createElement(r,{id:e,autoplay:a}))}))}},{key:"name",get:function(){return"Embed Application"}},{key:"layoutOptions",get:function(){return{name:C}}},{key:"channelName",get:function(){return O.a.EMBED}}],[{key:"router",get:function(){return Be}}]),r}(v),We=n(148);function Je(e){return(Je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ke(e,t,n){return t&&Ye(e.prototype,t),n&&Ye(e,n),e}function Qe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ze(e,t)}function Ze(e,t){return(Ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=et(e);if(t){var o=et(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $e(this,n)}}function $e(e,t){return!t||"object"!==Je(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function et(e){return(et=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var tt=function(e){Qe(n,e);var t=Xe(n);function n(){return Ge(this,n),t.apply(this,arguments)}return Ke(n,[{key:"channelName",get:function(){return O.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),nt=function(e){Qe(r,e);var t=Xe(r);function r(){return Ge(this,r),t.apply(this,arguments)}return Ke(r,[{key:"index",value:function(e){var t=this;n.e(52).then(n.bind(null,1319)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(g,o.createElement(We.a,{view:r,options:{params:e}}))}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:b}}}},{key:"channelName",get:function(){return O.a.NOTIFICATIONS}}],[{key:"router",get:function(){return tt}}]),r}(v),rt=n(85),ot=function(e){switch(e){case"recently_added":return rt.a.RecentlyUpdated;case"atoz":return rt.a.AtoZ;case"ztoa":return rt.a.ZtoA;case"newest":return rt.a.Newest;case"oldest":return rt.a.Oldest;default:return rt.a.Newest}};function it(e){return(it="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function at(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ut(e,t,n){return t&&ct(e.prototype,t),n&&ct(e,n),e}function st(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lt(e,t)}function lt(e,t){return(lt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ft(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ht(e);if(t){var o=ht(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return pt(this,n)}}function pt(e,t){return!t||"object"!==it(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dt=function(e){st(n,e);var t=ft(n);function n(){return at(this,n),t.apply(this,arguments)}return ut(n,[{key:"channelName",get:function(){return O.a.PLAYLISTS}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/:id(/:slug)":"playlist"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","addToPlaylist","removeVideoFromPlaylist"]}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),yt=function(e){st(r,e);var t=ft(r);function r(){return at(this,r),t.apply(this,arguments)}return ut(r,[{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:w.j.Popup}}}},{key:"index",value:function(e){var t=this,r=function(e){return{application:O.a.PLAYLISTS,action:E.a.Playlists.PLAYLIST,args:[e.id,X.a.slugify(e.name)]}};this.setDefaultQueryParams({sort:e.sort||rt.a.Newest}),Promise.all([n.e(6),n.e(16)]).then(n.bind(null,1314)).then((function(n){var i=n.PlaylistsView;t.layout.showChildView(K,o.createElement(i,{getPlaylistAppLink:r,key:e.sort,sort:ot(e.sort)}))}))}},{key:"playlist",value:function(e){var t=this,r=function(e){return{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO,args:[e.id,X.a.slugify(e.name)],params:e.lastProgressPoint?{t:Math.floor(e.lastProgressPoint)}:{}}},i=function(e){return{application:O.a.DEFAULT,action:E.a.Default.SERIES,args:[e.id,X.a.slugify(e.name)]}};Promise.all([n.e(0),n.e(6),n.e(14)]).then(n.bind(null,1303)).then((function(n){var a=n.PlaylistView;t.layout.showChildView(K,o.createElement(a,{key:e,playlistId:e,application:O.a.PLAYLISTS,getVideoAppLink:r,getSeriesAppLink:i,allowEdit:!0}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(1),n.e(7),n.e(66)]).then(n.bind(null,1286)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(Q,o.createElement(n,Object.assign({application:O.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(7),n.e(65)]).then(n.bind(null,1287)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(Q,o.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(44).then(n.bind(null,1288)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(Q,o.createElement(r,Object.assign({key:e,playlistId:e,routeToOnDelete:{application:O.a.PLAYLISTS,action:E.a.Playlists.HOME}},t.getPopupProps())))}))}},{key:"addToPlaylist",value:function(e){var t=this;n.e(30).then(n.bind(null,1310)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(Q,o.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(45).then(n.bind(null,1289)).then((function(n){var i=n.RemoveVideoFromPlaylistView;r.layout.showChildView(Q,o.createElement(i,Object.assign({key:"".concat(e,":").concat(t),videoId:e,playlistId:t},r.getPopupProps())))}))}},{key:"name",get:function(){return"Playlists Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.PLAYLISTS}}],[{key:"router",get:function(){return dt}}]),r}(v);function vt(e){return(vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function gt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function mt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function bt(e,t,n){return t&&mt(e.prototype,t),n&&mt(e,n),e}function wt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&St(e,t)}function St(e,t){return(St=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ct(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=kt(e);if(t){var o=kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ot(this,n)}}function Ot(e,t){return!t||"object"!==vt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Et=function(e){wt(n,e);var t=Ct(n);function n(){return gt(this,n),t.apply(this,arguments)}return bt(n,[{key:"channelName",get:function(){return O.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Pt=function(e){wt(r,e);var t=Ct(r);function r(){return gt(this,r),t.apply(this,arguments)}return bt(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(20)]).then(n.bind(null,1311)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(K,o.createElement(r,{queryParams:e}))}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0}}}},{key:"channelName",get:function(){return O.a.SEARCH}}],[{key:"router",get:function(){return Et}}]),r}(r.a.Application),Rt=n(32);function _t(e){return(_t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function At(e,t,n){return t&&xt(e.prototype,t),n&&xt(e,n),e}function Lt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jt(e,t)}function jt(e,t){return(jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Dt(e);if(t){var o=Dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return It(this,n)}}function It(e,t){return!t||"object"!==_t(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Dt(e){return(Dt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=function(e){Lt(n,e);var t=Nt(n);function n(){return Tt(this,n),t.apply(this,arguments)}return At(n,[{key:"channelName",get:function(){return O.a.SUBJECT}},{key:"appRoutes",get:function(){return{"subjects/preferences":"preferences","subjects/:id(/:slug)":"classification"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Mt=function(e){Lt(r,e);var t=Nt(r);function r(){return Tt(this,r),t.apply(this,arguments)}return At(r,[{key:"initialize",value:function(){this.subjectsAppVariables=k.a.getInstance(Rt.a.SUBJECTS,this)}},{key:"classification",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(2),n.e(11)]).then(n.bind(null,1301)).then((function(t){var n=t.ClassificationView;r.layout.showChildView(g,o.createElement(n,{key:e,id:e}))}))}},{key:"preferences",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};n.e(36).then(n.bind(null,1320)).then((function(n){var r=n.BasePreferencesView;e.layout.showChildView(g,o.createElement(r,{step:t.step||"",redirectUrl:t.redirectUrl||""}))}))}},{key:"onShowAlert",value:function(){}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return O.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:this.subjectsAppVariables.hasCompletedOnboarding,alertRegion:b}}}}],[{key:"router",get:function(){return Ut}}]),r}(v);function Ft(e){return(Ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Vt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ht(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function zt(e,t,n){return t&&Ht(e.prototype,t),n&&Ht(e,n),e}function Bt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&qt(e,t)}function qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Gt(e);if(t){var o=Gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jt(this,n)}}function Jt(e,t){return!t||"object"!==Ft(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Gt(e){return(Gt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Yt=function(e){Bt(n,e);var t=Wt(n);function n(){return Vt(this,n),t.apply(this,arguments)}return zt(n,[{key:"channelName",get:function(){return O.a.UPLOAD}},{key:"appLinks",get:function(){return["editUpload","cancelUpload"]}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Kt=function(e){Bt(r,e);var t=Wt(r);function r(){return Vt(this,r),t.apply(this,arguments)}return zt(r,[{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(39)]).then(n.bind(null,1290)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(m,o.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"cancelUpload",value:function(e,t){var r=this;n.e(60).then(n.bind(null,1291)).then((function(n){var i=n.CancelUploadView;r.layout.showChildView(m,o.createElement(i,{id:e,name:t.name,status:t.status,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return O.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return Yt}}]),r}(v);function Qt(e){return(Qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xt(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $t(e,t,n){return t&&Xt(e.prototype,t),n&&Xt(e,n),e}function en(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tn(e,t)}function tn(e,t){return(tn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=on(e);if(t){var o=on(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rn(this,n)}}function rn(e,t){return!t||"object"!==Qt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var an=function(e){en(n,e);var t=nn(n);function n(){return Zt(this,n),t.apply(this,arguments)}return $t(n,[{key:"channelName",get:function(){return O.a.USER_MANAGER}},{key:"appRoutes",get:function(){return{"user-manager/students(/)":"studentManager","user-manager/teachers(/)":"teacherManager","user-manager/students/upload/review":"studentUploadReview","user-manager/teachers/upload/review":"teacherUploadReview"}}},{key:"appLinks",get:function(){return["newStudent","editStudent","newTeacher","editTeacher","removeUsers"]}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),cn=function(e){en(r,e);var t=nn(r);function r(){return Zt(this,r),t.apply(this,arguments)}return $t(r,[{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(29)]).then(n.bind(null,1321)).then((function(n){var r=n.SchoolStudentManagerView;t.layout.showChildView(g,o.createElement(r,{queryParams:e}))}))}},{key:"teacherManager",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(33)]).then(n.bind(null,1322)).then((function(n){var r=n.SchoolTeacherManagerView;t.layout.showChildView(g,o.createElement(r,{queryParams:e}))}))}},{key:"studentUploadReview",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(34)]).then(n.bind(null,1312)).then((function(t){var n=t.StudentUploadReviewView,r={entity:w.d.User,location:w.j.StudentManager,actionType:w.n.Create};e.layout.showChildView(g,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"teacherUploadReview",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(38)]).then(n.bind(null,1313)).then((function(t){var n=t.TeacherUploadReviewView,r={entity:w.d.User,location:w.j.TeacherManager,actionType:w.n.Create};e.layout.showChildView(g,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"newStudent",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(42)]).then(n.bind(null,1292)).then((function(t){var n=t.CreateStudentView,r={actionType:w.n.Create,entity:w.d.User,workflowPhase:w.o.Complete,descriptor:w.k.Single,location:w.j.Popup};e.layout.showChildView(m,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editStudent",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(43)]).then(n.bind(null,1293)).then((function(n){var r=n.EditStudentView,i={actionType:w.n.Edit,entity:w.d.User,workflowPhase:w.o.Complete,location:w.j.Popup};t.layout.showChildView(m,o.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"newTeacher",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(48)]).then(n.bind(null,1294)).then((function(t){var n=t.CreateTeacherView,r={actionType:w.n.Create,entity:w.d.User,workflowPhase:w.o.Complete,descriptor:w.k.Single,location:w.j.Popup};e.layout.showChildView(m,o.createElement(n,{analyticsOptions:r,closePopup:function(){return e.layout.closePopup()}}))}))}},{key:"editTeacher",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(49)]).then(n.bind(null,1295)).then((function(n){var r=n.EditTeacherView,i={actionType:w.n.Edit,entity:w.d.User,workflowPhase:w.o.Complete,location:w.j.Popup};t.layout.showChildView(m,o.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeUsers",value:function(e){var t=this,r=e.userIds,i=void 0===r?[]:r,a=e.userType;Promise.all([n.e(1),n.e(0),n.e(2),n.e(3),n.e(50)]).then(n.bind(null,1296)).then((function(e){var n=e.RemoveUserView,r={actionType:w.n.Delete,entity:w.d.User,workflowPhase:w.o.Complete,descriptor:1===i.length?w.k.Single:w.k.Bulk,location:w.j.Popup};t.layout.showChildView(m,o.createElement(n,{userIds:i,userType:a,closePopup:function(){return t.layout.closePopup()},analyticsOptions:r}))}))}},{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return O.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:b}}}}],[{key:"router",get:function(){return an}}]),r}(v);function un(e){return(un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function sn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ln(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function fn(e,t,n){return t&&ln(e.prototype,t),n&&ln(e,n),e}function pn(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hn(e,t)}function hn(e,t){return(hn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vn(e);if(t){var o=vn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yn(this,n)}}function yn(e,t){return!t||"object"!==un(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vn(e){return(vn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gn=function(e){pn(n,e);var t=dn(n);function n(){return sn(this,n),t.apply(this,arguments)}return fn(n,[{key:"channelName",get:function(){return O.a.SETTINGS}},{key:"appRoutes",get:function(){return{"settings(/)":"index"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),mn=function(e){pn(r,e);var t=dn(r);function r(){return sn(this,r),t.apply(this,arguments)}return fn(r,[{key:"index",value:function(){var e=this;n.e(47).then(n.bind(null,1315)).then((function(t){var n=t.SettingsView;e.layout.showChildView(K,i.a.createElement(n,null))}))}},{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.SETTINGS}}],[{key:"router",get:function(){return gn}}]),r}(v);function bn(e){return(bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function wn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Cn(e,t,n){return t&&Sn(e.prototype,t),n&&Sn(e,n),e}function On(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&kn(e,t)}function kn(e,t){return(kn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function En(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Rn(e);if(t){var o=Rn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pn(this,n)}}function Pn(e,t){return!t||"object"!==bn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Rn(e){return(Rn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _n=function(e){On(n,e);var t=En(n);function n(){return wn(this,n),t.apply(this,arguments)}return Cn(n,[{key:"channelName",get:function(){return O.a.WATCH_HISTORY}},{key:"appRoutes",get:function(){return{"watch-history(/)":"index"}}},{key:"filters",get:function(){return[T,N]}}]),n}(r.a.AppRouter),Tn=function(e){On(r,e);var t=En(r);function r(){return wn(this,r),t.apply(this,arguments)}return Cn(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(0),n.e(19)]).then(n.bind(null,1316)).then((function(n){var r=n.WatchHistoryView;t.layout.showChildView(K,i.a.createElement(r,{cursor:e.cursor}))}))}},{key:"name",get:function(){return"Watch History Application"}},{key:"layoutOptions",get:function(){return{name:S,options:{showNav:!0,alertRegion:Z}}}},{key:"channelName",get:function(){return O.a.WATCH_HISTORY}}],[{key:"router",get:function(){return _n}}]),r}(v);var xn,An=n(1),Ln=n(19);!function(e){e.Fifo="FifoMemoryCache"}(xn||(xn={}));var jn=n(54),Nn=n(11);function In(e){return(In="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Dn(e){return function(e){if(Array.isArray(e))return Un(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Un(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Un(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Un(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Mn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Fn(e,t){return(Fn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Vn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=zn(e);if(t){var o=zn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hn(this,n)}}function Hn(e,t){return!t||"object"!==In(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function zn(e){return(zn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Fn(e,t)}(i,e);var t,n,r,o=Vn(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).size=e.size,t.cache={},t.cachedkeys=[],t}return t=i,(n=[{key:"removeCacheKey",value:function(e){this.cachedkeys=An.without(this.cachedkeys,e)}},{key:"has",value:function(e){return!!this.cache[e]}},{key:"get",value:function(e){return this.cache[e]}},{key:"set",value:function(e,t){e&&t||Nn.c.throw(new Ln.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(e)&&this.removeCacheKey(e),this.cachedkeys.push(e),this.cache[e]=t,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}},{key:"getOrSet",value:function(e,t){if(this.has(e))return this.get(e);var n=t();return this.set(e,n),n}},{key:"remove",value:function(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}},{key:"invalidate",value:function(e,t){var n=this,r=An.object(this.cachedkeys,this.cachedkeys),o=[];An.each(e,(function(e){var t;r[e]&&o.push(e);var n=new RegExp(e,"i"),i=An.filter(r,(function(e){return n.test(e)}));(t=o).push.apply(t,Dn(i))})),o.length&&(o=An.uniq(o),An.each(o,(function(e){delete n.cache[e],An.isFunction(t)&&t(e)})),this.cachedkeys=An.without.apply(An,[this.cachedkeys].concat(Dn(o))))}},{key:"name",get:function(){return xn.Fifo}}])&&Mn(t.prototype,n),r&&Mn(t,r),i}(jn.a);var qn,Wn=n(38),Jn=n(122),Gn=n(21),Yn=n(102);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(qn||(qn={}));var Kn=function(e,t,n){if(!n||!n.errorCode)return e[t];var r="".concat(n.errorCode);return n.errorSubCode&&(r+=".".concat(n.errorSubCode)),e[r]||e[t]};function Qn(e){return(Qn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Zn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xn(e,t){return(Xn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=tr(e);if(t){var o=tr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return er(this,n)}}function er(e,t){return!t||"object"!==Qn(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function tr(e){return(tr=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var nr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xn(e,t)}(i,e);var t,n,r,o=$n(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),t=o.call(this,e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),t.successMiddleware={},t.errorMiddleware={},t.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,t.defaultErrorMessageKey=e.defaultErrorMessageKey,t}return t=i,(n=[{key:"parseUrl",value:function(e){var t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}},{key:"makeHttps",value:function(e){var t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}},{key:"base",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};n||(n=Gn.a.GET);var o=An.defaults(r,{forceHttps:!1}),i={url:e,method:n,type:n};t&&(i.data=n===Gn.a.POST||n===Gn.a.PUT?JSON.stringify(t):t),o.forceHttps&&(i.url=this.makeHttps(i.url)),o.traditional&&(i.traditional=o.traditional);var a=$.ajax(i);return An.keys(this.successMiddleware).length&&a.done(An.values(this.successMiddleware)),An.keys(this.errorMiddleware).length&&a.fail(An.values(this.errorMiddleware)),a}},{key:"create",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,Gn.a.POST).done((function(e,t,n){return r.trigger(o,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"read",value:function(e,t){var n=t.channel,r=t.successEvent,o=t.errorEvent;this.base(e,null,Gn.a.GET).done((function(e,t,o){n.trigger(r,e,t,o)})).fail((function(e,t,r){n.trigger(o,e,t,r)}))}},{key:"update",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.base(e,t,Gn.a.PUT).done((function(e,t,n){return r.trigger(o,e,t,n)})).fail((function(e,t,n){return r.trigger(i,e,t,n)}))}},{key:"delete",value:function(e,t){var n=t.channel,r=t.successEvent,o=t.errorEvent;this.base(e,null,Gn.a.DELETE).done((function(e,t,o){return n.trigger(r,e,t,o)})).fail((function(e,t,r){return n.trigger(o,e,t,r)}))}},{key:"useMiddleware",value:function(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}},{key:"useErrorMiddleware",value:function(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}},{key:"parseError",value:function(e,t,n){var r=e.responseJSON,o=Jn.a;switch(o.code=e.status,o.message=Kn(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),e.status){case 400:o.type=Yn.a.BadRequest;break;case 401:o.type=Yn.a.Unauthorized;break;case 403:o.type=Yn.a.Forbidden;break;case 404:o.type=Yn.a.NotFound;break;case 500:o.type=Yn.a.InternalServer}return o}},{key:"name",get:function(){return qn.Ajax}}])&&Zn(t.prototype,n),r&&Zn(t,r),i}(Wn.Object);var rr=n(48),or=n(52),ir=n(60),ar=n(12),cr=n(34),ur=n(17),sr="locale",lr="phrases",fr="version",pr=n(67);function hr(e){return(hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function dr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vr(e,t){return(vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=br(e);if(t){var o=br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mr(this,n)}}function mr(e,t){return!t||"object"!==hr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function br(e){return(br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&vr(e,t)}(i,e);var t,n,r,o=gr(i);function i(){return dr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getConfig",value:function(e,t){return this.get({resource:"/api/config",eventPrefix:cr.a.CONFIG,expiryTime:pr.a.STANDARD,callback:e,errorCallback:t})}},{key:"getVersion",value:function(e){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:fr,callback:e,expiryTime:pr.a.STANDARD})}},{key:"name",get:function(){return ar.a.Config}},{key:"channelName",get:function(){return ur.b.CONFIG}}])&&yr(t.prototype,n),r&&yr(t,r),i}(ir.a),Sr=(ar.a.Config,ur.b.CONFIG,n(189));function Cr(e){return(Cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Or(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Er(e,t){return(Er=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_r(e);if(t){var o=_r(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rr(this,n)}}function Rr(e,t){return!t||"object"!==Cr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _r(e){return(_r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Tr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Er(e,t)}(i,e);var t,n,r,o=Pr(i);function i(){return Or(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getLanguageConfig",value:function(e){var t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:cr.a.LOCALE,expiryTime:pr.a.STANDARD,bootstrapName:sr,callback:function(n){t.locale=n,t.phrases&&An.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:cr.a.PHRASES,expiryTime:pr.a.STANDARD,bootstrapName:lr,callback:function(n){t.phrases=n,t.locale&&An.isFunction(e)&&e(t)}})}},{key:"name",get:function(){return ar.a.Language}},{key:"channelName",get:function(){return ur.b.LANGUAGE}}])&&kr(t.prototype,n),r&&kr(t,r),i}(ir.a);function xr(e){return(xr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ar(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Lr(e,t){return(Lr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function jr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ir(e);if(t){var o=Ir(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nr(this,n)}}function Nr(e,t){return!t||"object"!==xr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ir(e){return(Ir=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Dr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Lr(e,t)}(n,e);var t=jr(n);function n(){return Ar(this,n),t.apply(this,arguments)}return n}(r.a.Model);function Ur(e){return(Ur="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Mr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Vr(e,t){return(Vr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Hr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Br(e);if(t){var o=Br(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zr(this,n)}}function zr(e,t){return!t||"object"!==Ur(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Br(e){return(Br=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var qr=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Vr(e,t)}(i,e);var t,n,r,o=Hr(i);function i(){return Mr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"receiveLatestNotifications",value:function(e){return this.get({callback:e,formatData:function(e){return new Dr(e)},resource:"notify",eventPrefix:"".concat(cr.a.NOTIFICATIONS,":new")})}},{key:"receiveUnreadNotificationCount",value:function(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:"".concat(cr.a.NOTIFICATIONS,":count")})}},{key:"name",get:function(){return ar.a.NotificationSocket}},{key:"channelName",get:function(){return ur.b.NOTIFICATIONS_SOCKET}}])&&Fr(t.prototype,n),r&&Fr(t,r),i}(ir.a),Wr=n(90),Jr=n(7),Gr=n(79),Yr=n(103);function Kr(e){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Qr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zr(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Xr(e,t){return(Xr=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function $r(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=to(e);if(t){var o=to(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return eo(this,n)}}function eo(e,t){return!t||"object"!==Kr(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function to(e){return(to=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var no=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xr(e,t)}(i,e);var t,n,r,o=$r(i);function i(){return Qr(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"parse",value:function(e){return e.data||e}},{key:"model",get:function(){return Dr}}])&&Zr(t.prototype,n),r&&Zr(t,r),i}(r.a.Collection);function ro(e){return(ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function oo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ao(e,t){return(ao=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function co(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=so(e);if(t){var o=so(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uo(this,n)}}function uo(e,t){return!t||"object"!==ro(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function so(e){return(so=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var lo=function(e,t){var n="/api/domain/v2/objects/".concat(e,"/notifications?query={orderbydesc:datecreated}");if(!t)return n;var r=t.limit,o=t.cursor,i=t.before,a=[],c=Gr.a.buildFilter({limit:r,before:i});return c&&a.push("filter=".concat(c)),o&&a.push("cursor=".concat(o)),a.length?"".concat(n,"&").concat(a.join("&")):n},fo=function(e){return"/api/notifications/v1/notifications/".concat(e)},po="/api/notifications/v1/notifications",ho="/api/domain/v1/notifications",yo=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ao(e,t)}(i,e);var t,n,r,o=co(i);function i(){return oo(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getNotifications",value:function(e,t,n,r){return this.get({resource:lo(e,t),expiryTime:pr.a.STANDARD,eventPrefix:n,formatData:function(e){return new no(e,{parse:!0})},callback:r})}},{key:"markRead",value:function(e,t){return this.update({callback:t,data:{notificationStatus:Yr.a.Read},resource:fo(e),eventPrefix:"".concat(cr.a.NOTIFICATIONS,":read")})}},{key:"markSeen",value:function(e){var t=Wr().utc().toISOString();return this.update({callback:e,data:{notificationStatus:Yr.a.Seen},resource:"".concat(po,"?to=").concat(t,"&notificationStatus=").concat(Yr.a.Received),eventPrefix:"".concat(cr.a.NOTIFICATIONS,":seen")})}},{key:"getNotificationsCursors",value:function(e){return this.getCursors(e)}},{key:"suggestEdit",value:function(e,t){return this.create({resource:"".concat(ho),eventPrefix:"".concat(cr.a.SUGGEST_EDIT),callback:t,data:e,successHandler:this.alertService.success(Jr.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"name",get:function(){return ar.a.Notification}},{key:"channelName",get:function(){return ur.b.NOTIFICATIONS}},{key:"lang",get:function(){return"notifications.services"}}])&&io(t.prototype,n),r&&io(t,r),i}(ir.a),vo=n(229),go=n(13),mo=n(188),bo=n(55),wo=n(51),So=n(83),Co=n.n(So);function Oo(e){var t=e.alert,n=e.svgName,r=e.svgClassName,i=e.closeAlert,a=t.message,c=t.heading,u=t.appLink,s=t.appLinkText,l=t.appLinkClassName,f=void 0===l?"":l,p=Object(mo.sanitize)(a);return o.createElement(o.Fragment,null,o.createElement("div",{className:"d-inline-block ".concat(Co.a.icon)},o.createElement(bo.a,{svgName:n,className:"svg-container ".concat(r)})),o.createElement("div",{className:"pl-2 d-inline-block ".concat(Co.a.alertContent)},o.createElement("p",{className:"p-0 m-0 pb-1 ".concat(Co.a.heading)},c),o.createElement("p",{className:"p-0 m-0 ".concat(Co.a.message),dangerouslySetInnerHTML:{__html:p}}),!!u&&o.createElement(wo.a,{className:f,appLink:u},s)),o.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button",onClick:i},"×"))}function ko(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Eo(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Eo(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Po=function(e){switch(e.type){case rr.a.Success:return go.b.CheckCircleOutline;case rr.a.Fail:case rr.a.Warning:return go.b.Warning;case rr.a.Info:default:return go.b.Info}};function Ro(e){var t=e.alert,n=e.closeAlert,r=ko(o.useState(!0),2),i=r[0],a=r[1],c=o.useRef();o.useEffect((function(){i?c.current=window.setTimeout(n,3e3):clearTimeout(c.current)}),[i]);var u="text-".concat(t.type.toLowerCase());return o.createElement("li",{className:"bg-white mt-2 p-2 show clearfix ".concat(Co.a.alertItem),onMouseEnter:function(){return a(!1)},onMouseLeave:function(){return a(!0)}},o.createElement(Oo,{alert:t,svgName:Po(t),svgClassName:u,closeAlert:n}))}function _o(e){var t=e.alerts,n=e.removeAlert;return o.createElement("div",{className:Co.a.alertBox},o.createElement(vo.TransitionGroup,{component:"ul",className:"".concat(Co.a.alertList," list-unstyled")},t&&t.map((function(e,t){return o.createElement(vo.CSSTransition,{key:t,timeout:200,classNames:"alert"},o.createElement(Ro,{alert:e,closeAlert:function(){return n(e.id)}}))}))))}var To=n(146),xo=n(35),Ao=n(250),Lo=Object.assign(Object.assign({},ur.b),{SETTINGS:"settings:data:service"});function jo(e){return(jo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function No(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Io(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Do(e,t){return(Do=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Uo(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fo(e);if(t){var o=Fo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mo(this,n)}}function Mo(e,t){return!t||"object"!==jo(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fo(e){return(Fo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vo=function(e,t){var n="/api/domain/v3/settings/".concat(e);return Ao.a[t]&&(n+="?kind=".concat(t)),n},Ho=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Do(e,t)}(i,e);var t,n,r,o=Uo(i);function i(){return No(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"getSetting",value:function(e,t,n){var r=xo.a.isFunction(n)?function(e){var r=e.find((function(e){return e.name===t}));xo.a.isFunction(n)&&n(r)}:null,o=this.getSettings(e,null,r);return o?o.find((function(e){return e.name===t})):null}},{key:"getSettings",value:function(e,t,n){return this.get({callback:n,resource:Vo(e,t),eventPrefix:"settings"})}},{key:"name",get:function(){return P.a.Settings}},{key:"channelName",get:function(){return Lo.SETTINGS}}])&&Io(t.prototype,n),r&&Io(t,r),i}(ir.a),zo=n(14),Bo=n(46);function qo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Wo=function(e){return{url:"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary",key:"libraries",success:e,normalize:!1}},Jo=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Bo.a.FOLDER),key:"folder:".concat(e),success:t}},Go=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"getLibraries",value:function(e){var t=this,n=Wo((function(n){a.Radio.channel(t.channelName).trigger("libraries:sync",n),e&&e(new r.a.Collection(n))})),o=zo.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&zo.a.fetch(this.store.dispatch,n),o.data&&new r.a.Collection(o.data.map((function(e){return e.data})))}},{key:"getFolder",value:function(e,t){var n=Jo(e,(function(e){return t&&t(new r.a.Model(e))})),o=zo.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&zo.a.fetch(this.store.dispatch,n),o.data&&new r.a.Model(o.data)}},{key:"name",get:function(){return ar.a.Library}},{key:"channelName",get:function(){return"library:data:service"}}])&&qo(t.prototype,n),o&&qo(t,o),e}();function Yo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ko=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Bo.a.SERIES),key:"series:".concat(e),success:t}},Qo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"getSeries",value:function(e,t){var n=Ko(e,(function(e){return t&&t(new r.a.Model(e))})),o=zo.a.getResponse(this.store.getState(),n.key);return o.shouldFetch&&zo.a.fetch(this.store.dispatch,n),o.data&&new r.a.Model(o.data)}},{key:"name",get:function(){return ar.a.Series}},{key:"channelName",get:function(){return ur.b.SERIES}}])&&Yo(t.prototype,n),o&&Yo(t,o),e}(),Zo=n(154);function Xo(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var $o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,r;return t=e,(n=[{key:"getCurrentUser",value:function(e,t){zo.a.dataServiceFetch(this.store.dispatch,this.store.getState(),Zo.a.currentUser(e,t))}},{key:"name",get:function(){return P.a.FlightUser}}])&&Xo(t.prototype,n),r&&Xo(t,r),e}();function ei(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ti(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ni(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ri(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ii(e);if(t){var o=ii(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return oi(this,n)}}function oi(e,t){return!t||"object"!==ei(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ii(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Nn.a;function ai(e){return(ai="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ci(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ui(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function si(e,t){return(si=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function li(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pi(e);if(t){var o=pi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fi(this,n)}}function fi(e,t){return!t||"object"!==ai(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pi(e){return(pi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hi=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&si(e,t)}(i,e);var t,n,r,o=li(i);function i(){return ci(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"AlertError"}}])&&ui(t.prototype,n),r&&ui(t,r),i}(r.a.SilentError);function di(e){return(di="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gi(e,t){return(gi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mi(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wi(e);if(t){var o=wi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bi(this,n)}}function bi(e,t){return!t||"object"!==di(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wi(e){return(wi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Si=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gi(e,t)}(i,e);var t,n,r,o=mi(i);function i(){return yi(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"ErrorPageError"}}])&&vi(t.prototype,n),r&&vi(t,r),i}(r.a.SilentError);function Ci(e){return(Ci="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Oi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ki(e,t){return(ki=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ei(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ri(e);if(t){var o=Ri(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pi(this,n)}}function Pi(e,t){return!t||"object"!==Ci(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ri(e){return(Ri=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _i=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ki(e,t)}(a,e);var t,n,o,i=Ei(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).dialogOptions||r.a.ErrorHelper.throw(new Ln.a("Please provide DialogOptions for your implementation of DialogError")),t}return t=a,(n=[{key:"onDone",value:function(){}},{key:"onFail",value:function(){}},{key:"name",get:function(){return"DialogError"}}])&&Oi(t.prototype,n),o&&Oi(t,o),a}(r.a.SilentError),Ti=n(253),xi=n(254),Ai=n(255),Li=n(349),ji=n(350),Ni=n(351),Ii=n(352);function Di(e){k.a.getInstance(or.a.ALERT).createAlert({heading:To.a.Fail,type:rr.a.Fail,message:e.message})}function Ui(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:E.a.Default.NOT_FOUND})}function Mi(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:E.a.Default.ERROR})}function Fi(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:O.a.DEFAULT,action:E.a.Default.DIALOG_ERROR})}var Vi=n(104),Hi=n(61);function zi(e){return(zi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bi(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qi(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wi(e,t){return(Wi=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ji(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Yi(e);if(t){var o=Yi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Gi(this,n)}}function Gi(e,t){return!t||"object"!==zi(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Yi(e){return(Yi=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ki=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Wi(e,t)}(a,e);var t,n,r,i=Ji(a);function a(){return Bi(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"isReactComponent",value:function(e){return o&&o.isValidElement(e)}},{key:"showChildView",value:function(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}},{key:"showChildReactComponent",value:function(e,t){var n=this;this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",(function(){return n.renderChildReactComponent(e,t)}))}},{key:"renderChildReactComponent",value:function(e,t){var n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),Vi.render(t,r[0],(function(){return n.trigger("show")})),this.listenToOnce(this,"unmount:".concat(e),(function(){return Vi.unmountComponentAtNode(r[0])})),this.listenToOnce(this,"before:destroy",(function(){return Vi.unmountComponentAtNode(r[0])})))}},{key:"wrapWithStore",value:function(e){return o.createElement(Hi.Provider,{store:this.options.store},e)}}])&&qi(t.prototype,n),r&&qi(t,r),a}(n(181).a),Qi=n(91),Zi=n(415),Xi=n(153),$i=n(89),ea=n(40),ta=n(45),na=n(66),ra=n(416),oa=n.n(ra),ia=n(196),aa=n.n(ia);function ca(e){return(ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ua(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function sa(e,t){return(sa=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function la(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=pa(e);if(t){var o=pa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fa(this,n)}}function fa(e,t){return!t||"object"!==ca(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pa(e){return(pa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ha=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&sa(e,t)}(i,e);var t,n,r,o=la(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:unreadCount",this.render)}},{key:"viewOptions",value:function(){return{styles:aa.a,svg:go.a.getSvg(go.b.Bell),unreadCount:this.model.get("unreadCount")}}},{key:"name",get:function(){return"NotificationStatusComponent"}},{key:"className",get:function(){return"notification-status mx-2 ".concat(aa.a.notificationIcon," ").concat(aa.a[this.options.color])}},{key:"template",get:function(){return oa.a}}])&&ua(t.prototype,n),r&&ua(t,r),i}(r.a.Component),da=n(186),ya=n(184),va=n(412),ga=n(420),ma=n.n(ga),ba=n(354),wa=n.n(ba),Sa=n(355),Ca=n.n(Sa);function Oa(e){return(Oa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ka(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ea(e,t){return(Ea=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pa(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_a(e);if(t){var o=_a(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ra(this,n)}}function Ra(e,t){return!t||"object"!==Oa(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _a(e){return(_a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ta=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ea(e,t)}(i,e);var t,n,r,o=Pa(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:ya.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:wa.a,className:"px-1 py-2",viewOptions:{styles:Ca.a}}}}}}}},{key:"initialize",value:function(){this.notificationService=k.a.getInstance(ar.b.Notification,this),this.appVariables=k.a.getInstance(Rt.a.NOTIFICATIONS,this)}},{key:"onData",value:function(e){this.collection=e,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new va.a({collectionPrefix:cr.a.NOTIFICATIONS})}},{key:"renderNotificationList",value:function(){var e=new da.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}},{key:"triggerSeen",value:function(){this.notificationService.markNotificationsSeen()}},{key:"onBeforeRender",value:function(){var e=this;return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),(function(t){return e.onData(t)})),!!this.collection}},{key:"viewOptions",value:function(){return{hasNotifications:this.collection&&this.collection.length}}},{key:"onRender",value:function(){this.renderNotificationList(),this.triggerSeen()}},{key:"name",get:function(){return"NotificationPopoverView"}},{key:"title",get:function(){return!1}},{key:"lang",get:function(){return"notifications.notificationsPopover"}},{key:"className",get:function(){return"notifications-container"}},{key:"template",get:function(){return ma.a}},{key:"elements",get:function(){return{anchor:".see-all"}}},{key:"appLinks",get:function(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}}])&&ka(t.prototype,n),r&&ka(t,r),i}(r.a.View),xa=n(421),Aa=n.n(xa),La=n(422),ja=n.n(La);function Na(e){return(Na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ia(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Da(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ua(e,t){return(Ua=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ma(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Va(e);if(t){var o=Va(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fa(this,n)}}function Fa(e,t){return!t||"object"!==Na(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Va(e){return(Va=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ha=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ua(e,t)}(i,e);var t,n,r,o=Ma(i);function i(){return Ia(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.appVariables=k.a.getInstance(Rt.a.NOTIFICATIONS)}},{key:"regions",value:function(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .notifications-status-region":"renderNotificationList"}}},{key:"renderNotificationList",value:function(){var e=new Ta({childType:da.a.Popover});this.showChildView("notifications",e)}},{key:"renderNotificationStatus",value:function(){var e=k.a.getInstance(ar.b.Notification),t=new ha({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}},{key:"viewOptions",value:function(){return ja.a}},{key:"onRender",value:function(){this.renderNotificationStatus()}},{key:"name",get:function(){return"NotificationHeaderView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative"}},{key:"template",get:function(){return Aa.a}}])&&Da(t.prototype,n),r&&Da(t,r),i}(r.a.View),za=n(411),Ba=n(249),qa=n(366),Wa=n(204),Ja=n(157),Ga=n(92),Ya=n(33),Ka=n(73),Qa=n(247),Za=n(251),Xa=n(233),$a=n.n(Xa),ec={settings:{application:O.a.SETTINGS,action:E.a.Settings.HOME},analytics:null,logOut:{application:O.a.DEFAULT,action:E.a.Default.LOG_OUT},logIn:{application:O.a.DEFAULT,action:E.a.Default.LOG_IN}},tc=o.memo((function(e){return o.createElement(Ka.a.Provider,{value:"shared.userOptions"},e.user?o.createElement(Ya.Dropdown,{className:"cursor-pointer mx-2 px-2 position-relative"},o.createElement(Ya.Dropdown.Toggle,{as:"div",id:"userOptions",className:"".concat($a.a.avatarContainer," no-caret")},o.createElement(Qa.a,{imageUrl:e.user.avatar,imageCdnUrl:e.imageCdnUrl,initials:Za.a.getInitials(e.user.givenName,e.user.familyName)})),o.createElement(Ya.Dropdown.Menu,{alignRight:!0,className:$a.a.dropdownMenu,as:"ul"},o.createElement(Ya.Dropdown.Item,{as:"span"},o.createElement("div",{className:"m-0"},o.createElement("strong",null,e.user.displayName)),o.createElement("div",{className:"m-0 text-muted"},e.user.customerName)),o.createElement(Ya.Dropdown.Divider,null),o.createElement(Ya.Dropdown.Item,{as:wo.a,appLink:ec.settings},o.createElement(Ka.b,{phrase:"settings"})),o.createElement(Ya.Dropdown.Item,{as:wo.a,appLink:ec.analytics},o.createElement(Ka.b,{phrase:"analytics"})),o.createElement(Ya.Dropdown.Item,{as:"a",href:e.supportSiteUrl,target:"_blank"},o.createElement(Ka.b,{phrase:"helpCentre"})),o.createElement(Ya.Dropdown.Divider,null),o.createElement(Ya.Dropdown.Item,{as:wo.a,appLink:ec.logOut},o.createElement(Ka.b,{phrase:"signOut"})))):o.createElement(wo.a,{appLink:ec.logIn,className:"btn btn-dark"},o.createElement(Ka.b,{phrase:"logIn"})))}),(function(e,t){var n,r,o,i,a,c,u,s;return(null===(n=e.user)||void 0===n?void 0:n.id)===(null===(r=t.user)||void 0===r?void 0:r.id)&&(null===(o=e.user)||void 0===o?void 0:o.avatar)===(null===(i=t.user)||void 0===i?void 0:i.avatar)&&(null===(a=e.user)||void 0===a?void 0:a.displayName)===(null===(c=t.user)||void 0===c?void 0:c.displayName)&&(null===(u=e.user)||void 0===u?void 0:u.customerName)===(null===(s=t.user)||void 0===s?void 0:s.customerName)})),nc=n(235),rc=o.memo((function(e){var t=e.hideButtonText,n=void 0!==t&&t,r=Object(Xi.a)(P.b.VideoUpload),i=o.useRef(null),a=o.useCallback((function(e){e&&(i.current=e)}),[]);return o.createElement(o.Fragment,null,o.createElement(nc.a,{svgName:go.b.Upload,className:"btn btn-secondary",onClick:function(e){i.current.value=null,i.current.click(null)}},!n&&o.createElement(Ka.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"})),o.createElement("input",{type:"file",autoComplete:"off",className:"file-select d-none",multiple:!0,accept:"video/*",ref:a,onChange:function(e){return t=e.target.files,r.addFiles(t,{entity:w.d.Video,actionType:w.n.Upload,workflowPhase:w.o.Start,descriptor:ea.a.mapInteractionType(w.h.FileSelect),location:w.j.TopNav});var t}}))})),oc=n(114),ic=n.n(oc);function ac(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return cc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return cc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function cc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function uc(e){var t,n=zo.a.useBasicFetch(Zo.a.currentUser(),{optimize:!0}).data,r=zo.a.useBasicFetch(Ja.a.config,{optimize:!0}),i=zo.a.useBasicFetch(Ba.a.presentation()),a=ac(Object($i.a)(Ga.a.SEARCH_BAR_LOCATION,!0),1)[0];return e.showNav||(a=!1),o.createElement("nav",{className:"navbar navbar-expanded sticky-top ".concat(ic.a.nav)},o.createElement("div",{className:"justify-content-start"},e.showNav&&o.createElement(bo.a,{svgName:go.b.Handle,className:"".concat(ic.a.hamburger," ml-2 mr-3"),onClick:e.toggleLeftNav}),e.showNav?o.createElement("a",{className:"navbar-brand text-hide align-top ".concat(ic.a.logoContainer," d-inline-block'"),href:"/"},o.createElement(Wa.a,null)):o.createElement("span",{className:"navbar-brand text-hide align-top ".concat(ic.a.logoContainer," d-inline-block'")},o.createElement(Wa.a,null))),a&&o.createElement("div",{className:"justify-content-center"},o.createElement(We.a,{className:"container ".concat(ic.a.searchBarNavContainer),view:za.a,options:{model:na.a.get("search",{ctor:qa.a}),disableMask:!0,presentationId:null===(t=i.data)||void 0===t?void 0:t.id}})),o.createElement("div",{className:"d-flex align-items-center justify-content-end pr-1 ".concat(ic.a.actionButtons)},e.showNav&&n&&o.createElement(o.Fragment,null,o.createElement(rc,{hideButtonText:a}),o.createElement(We.a,{view:Ha,className:"ml-2 pl-2"})),!!r.data&&o.createElement(tc,{user:n,imageCdnUrl:r.data.imageCdnUrl,supportSiteUrl:r.data.supportSiteUrl,onlyShowSignOut:!e.showNav})))}var sc,lc=n(163),fc=n(241);!function(e){e.Discover="Discover",e.Playlists="Playlists",e.MyVideos="MyVideos",e.FavouritedVideos="FavouritedVideos",e.WatchHistory="WatchHistory",e.Classrooms="Classrooms",e.Classroom="Classroom",e.Settings="Settings"}(sc||(sc={}));var pc=n(156);function hc(e){var t=e.children,n=e.className,r=void 0===n?"d-inline-block svg-container":n,i=e.tagName,a=void 0===i?"span":i,c=e.size,u=void 0===c?bo.b.Standard:c,s=e.onClick,l=e.title,f=e.tooltipPlacement,p=void 0===f?"right":f,h=a,d={className:"".concat(r," ").concat(u),onClick:xo.a.isFunction(s)?s:null};return l?o.createElement(pc.a,{title:l,placement:p},o.createElement(h,Object.assign({},d),t)):o.createElement(h,Object.assign({},d),t)}var dc,yc=n(23),vc=n.n(yc);function gc(e){var t=e.collapsed&&e.active,n=e.icon,r="".concat(vc.a.leftNavAnchor," ").concat(e.className," py-2 ");return r+=!e.collapsed||e.active?vc.a.active:vc.a.iconGrey,!e.collapsed&&e.active&&(r+=" "+vc.a.bgGrey),i.a.createElement(wo.a,{className:r,appLink:e.appLink},i.a.createElement("span",{className:"".concat(vc.a.leftNavIcon)},e.icon?i.a.createElement(hc,{size:bo.b.Large},i.a.createElement(n,null)):i.a.createElement(bo.a,{svgName:e.svgName,size:bo.b.Large})),i.a.createElement("span",{className:"".concat(vc.a.leftNavText," ").concat(t?vc.a.highlightText:"")},e.name))}function mc(){return i.a.createElement("div",{className:"".concat(vc.a.leftNavAnchor," mt-3")},i.a.createElement("span",{className:"".concat(vc.a.iconGrey," partial-loading-background")}),i.a.createElement("span",{className:"".concat(vc.a.leftNavText," ").concat(vc.a.partialLeftNavItem," mx-1 partial-loading-background")}))}function bc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var wc=Jr.a.encloseNamespace("shared.leftNav");function Sc(){return i.a.createElement("svg",{viewBox:"0 0 24 24"},i.a.createElement("g",{fill:"none",fillRule:"evenodd"},i.a.createElement("g",{transform:"translate(0.000000, 2.000000)"},i.a.createElement("text",{id:"ABC",fontFamily:"Rubik-Black, Rubik Black",fontSize:"6.6",fontWeight:"700",fill:"#ffffff"},i.a.createElement("tspan",{x:"4.5",y:"10.8"},"ABC")),i.a.createElement("rect",{id:"Rectangle",stroke:"#ffffff",strokeWidth:"1.2",x:"3",y:"1.8",width:"18",height:"13.2",rx:"1.2"}),i.a.createElement("line",{x1:"0.6",y1:"15",x2:"23.4",y2:"15",id:"Line-2",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("circle",{id:"Oval",stroke:"#ffffff",strokeWidth:"1.2",fill:"#000000",cx:"12",cy:"1.2",r:"1"}),i.a.createElement("line",{x1:"11.4",y1:"15",x2:"7.8",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),i.a.createElement("line",{x1:"16.2",y1:"15",x2:"12.6",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round",transform:"translate(14.400000, 16.800000) scale(-1, 1) translate(-14.400000, -16.800000) "}))))}var Cc,Oc=(bc(dc={},sc.Discover,{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME}),bc(dc,sc.Playlists,{application:O.a.PLAYLISTS,action:E.a.Playlists.HOME}),bc(dc,sc.MyVideos,{application:O.a.DEFAULT,action:E.a.Default.MY_VIDEOS}),bc(dc,sc.FavouritedVideos,{application:O.a.DEFAULT,action:E.a.Default.FAVOURITE_VIDEOS}),bc(dc,sc.Classrooms,{application:O.a.CLASSROOMS,action:E.a.Classrooms.HOME}),bc(dc,sc.Classroom,{application:O.a.CLASSROOMS,action:E.a.Classrooms.CLASSROOM}),bc(dc,sc.WatchHistory,{application:O.a.WATCH_HISTORY,action:E.a.WatchHistory.HOME}),bc(dc,sc.Settings,{application:O.a.SETTINGS,action:E.a.Settings.HOME}),dc);function kc(e){var t=e.activeItem,n=e.dynamicActiveId,r=zo.a.useBasicFetch(fc.a.getStarredClassrooms());return i.a.createElement("nav",{className:"".concat(vc.a.leftNav," ").concat(vc.a.leftNavExpanded," pt-3")},i.a.createElement(lc.Scrollbars,{height:"100%"},i.a.createElement(gc,{key:sc.Discover,name:wc("discover"),appLink:Oc[sc.Discover],className:vc.a.discover,svgName:go.b.Compass,active:t===sc.Discover}),i.a.createElement(gc,{key:sc.Playlists,name:wc("playlists"),appLink:Oc[sc.Playlists],className:vc.a.playlists,svgName:go.b.Playlist,active:t===sc.Playlists}),i.a.createElement(gc,{key:sc.MyVideos,name:wc("myVideos"),appLink:Oc[sc.MyVideos],className:vc.a.myVideos,svgName:go.b.Video,active:t===sc.MyVideos}),i.a.createElement(gc,{key:sc.FavouritedVideos,name:wc("favouritedVideos"),appLink:Oc[sc.FavouritedVideos],className:vc.a.favouritedVideos,svgName:go.b.Heart,active:t===sc.FavouritedVideos}),i.a.createElement("hr",null),i.a.createElement(gc,{key:sc.Classrooms,name:wc("classrooms"),appLink:Oc[sc.Classrooms],className:vc.a.classrooms,icon:Sc,active:t===sc.Classrooms}),r.data?r.data.map((function(e){return i.a.createElement(gc,{key:e.id,name:e.name,appLink:Object.assign(Object.assign({},Oc[sc.Classroom]),{args:[e.id]}),className:vc.a.classroom,svgName:go.b.Star,active:t===sc.Classroom&&e.id===n})})):i.a.createElement(mc,null),i.a.createElement("div",{className:vc.a.leftNavBottom},i.a.createElement(gc,{key:sc.WatchHistory,name:wc("watchHistory"),appLink:Oc[sc.WatchHistory],className:vc.a.watchHistory,svgName:go.b.History,active:t===sc.WatchHistory}),i.a.createElement(gc,{key:sc.Settings,name:wc("settings"),appLink:Oc[sc.Settings],className:vc.a.settings,svgName:go.b.Cog,active:t===sc.Settings}))))}function Ec(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Pc=Jr.a.encloseNamespace("shared.leftNav"),Rc=(Ec(Cc={},sc.Discover,{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME}),Ec(Cc,sc.Playlists,{application:O.a.PLAYLISTS,action:E.a.Playlists.HOME}),Ec(Cc,sc.MyVideos,{application:O.a.DEFAULT,action:E.a.Default.MY_VIDEOS}),Ec(Cc,sc.FavouritedVideos,{application:O.a.DEFAULT,action:E.a.Default.FAVOURITE_VIDEOS}),Ec(Cc,sc.WatchHistory,{application:O.a.WATCH_HISTORY,action:E.a.WatchHistory.HOME}),Cc);function _c(e){var t=e.activeItem;return i.a.createElement("nav",{className:"".concat(vc.a.leftNav," ").concat(vc.a.leftNavCollapsed," pt-3")},i.a.createElement(lc.Scrollbars,{height:"100%"},i.a.createElement(gc,{key:sc.Discover,name:Pc("discover"),appLink:Rc[sc.Discover],className:vc.a.discover,svgName:go.b.Compass,active:t===sc.Discover,collapsed:!0}),i.a.createElement(gc,{key:sc.Playlists,name:Pc("playlists"),appLink:Rc[sc.Playlists],className:vc.a.playlists,svgName:go.b.Playlist,active:t===sc.Playlists,collapsed:!0}),i.a.createElement(gc,{key:sc.MyVideos,name:Pc("myVideos"),appLink:Rc[sc.MyVideos],className:vc.a.myVideos,svgName:go.b.Video,active:t===sc.MyVideos,collapsed:!0}),i.a.createElement(gc,{key:sc.FavouritedVideos,name:Pc("favouritedVideos"),appLink:Rc[sc.FavouritedVideos],className:vc.a.favouritedVideos,svgName:t===sc.FavouritedVideos?go.b.Heart:go.b.HeartOutline,active:t===sc.FavouritedVideos,collapsed:!0}),i.a.createElement(gc,{key:sc.WatchHistory,name:Pc("watchHistory"),appLink:Rc[sc.WatchHistory],className:vc.a.watchHistory,svgName:go.b.History,active:t===sc.WatchHistory,collapsed:!0})))}var Tc,xc,Ac=n(68);function Lc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return jc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return jc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Nc(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e[e.Open=0]="Open",e[e.Collapsed=1]="Collapsed",e[e.Hidden=2]="Hidden"}(xc||(xc={}));var Ic=(Nc(Tc={},sc.Discover,Ac.a.getDiscoverAppLinks()),Nc(Tc,sc.Playlists,Ac.a.getPlaylistAppLinks()),Nc(Tc,sc.MyVideos,Ac.a.getMyVideosAppLinks()),Nc(Tc,sc.FavouritedVideos,Ac.a.getFavouritedVideosAppLinks()),Nc(Tc,sc.WatchHistory,Ac.a.getWatchHistoryAppLinks()),Nc(Tc,sc.Classrooms,Ac.a.getClassroomsAppLinks()),Nc(Tc,sc.Classroom,Ac.a.getClassroomAppLinks()),Nc(Tc,sc.Settings,Ac.a.getSettingsAppLinks()),Tc);function Dc(e){var t,n=Lc(i.a.useState(null),2),r=n[0],o=n[1];if(i.a.useEffect((function(){if(e.appLinkIsRoute){var t=null;Object.keys(Ic).find((function(n){t||Ic[n].find((function(t){return t.application===e.activeAppLink.application&&t.action===e.activeAppLink.action}))&&(t=sc[n])})),o(t)}}),[e.activeAppLink]),e.navState===xc.Hidden)return i.a.createElement(i.a.Fragment,null);var a=(null===(t=e.activeAppLink)||void 0===t?void 0:t.args)&&e.activeAppLink.args[0];return e.navState===xc.Collapsed?i.a.createElement(_c,{activeItem:r}):i.a.createElement(kc,{activeItem:r,dynamicActiveId:a})}var Uc=n(245),Mc=n(367);function Fc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return Vc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Vc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Hc=n(151),zc=n.n(Hc);function Bc(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qc(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function qc(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Wc(e){return{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO,args:[e.id,X.a.slugify(e.name)],params:e.lastProgressPoint?{t:Math.floor(e.lastProgressPoint)}:{}}}function Jc(e){var t,n=e.video;return o.createElement("h2",{className:"mb-0 h6"},!!n.series&&o.createElement(Uc.a,{className:"d-block",video:n,appLink:(t=n.series,{application:O.a.DEFAULT,action:E.a.Default.SERIES,args:[t.id,X.a.slugify(t.name)]})}),o.createElement(wo.a,{appLink:Wc(n)},n.name))}function Gc(){var e;!function(){var e,t,n=zo.a.useBasicFetch(Ja.a.config),r=Fc(Object($i.a)(Ga.a.WEB_PLAYER_DATA,{webPlayerUrl:(null===(e=n.data)||void 0===e?void 0:e.webPlayerUrl)||"",video:null,viewportPosition:null,isOnPlayPage:!1,startTime:0}),2)[1];i.a.useEffect((function(){var e;(null===(e=n.data)||void 0===e?void 0:e.webPlayerUrl)&&r("webPlayerUrl",n.data.webPlayerUrl)}),[null===(t=n.data)||void 0===t?void 0:t.webPlayerUrl])}();var t=Bc(Object($i.a)(Ga.a.WEB_PLAYER_DATA),2),n=t[0],r=t[1];if(!(null===(e=n)||void 0===e?void 0:e.video))return o.createElement(o.Fragment,null);var a={},c=zc.a.fixed;return n.viewportPosition&&(c=zc.a.inline,a=n.viewportPosition),n.viewportPosition||(c+=" shadow"),o.createElement("div",{style:a,className:"".concat(c)},o.createElement(Mc.a,{id:n.video.id,webPlayerHost:n.webPlayerUrl,className:"embed-responsive-16by9",key:n.video.id,startTime:n.startTime}),!n.viewportPosition&&o.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},o.createElement(Jc,{video:n.video}),o.createElement("span",{className:"".concat(zc.a.buttons," flex-shrink-1")},o.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){ea.a.logUserAction({id:n.video.id},{location:w.j.FloatingPlayer,entity:w.d.Video,actionType:w.n.Click,descriptor:w.b.Close}),r("video",null)}},o.createElement(bo.a,{svgName:go.b.Close})),o.createElement(wo.a,{appLink:Wc(n.video),onClick:function(){ea.a.logUserAction({id:n.video.id},{location:w.j.FloatingPlayer,entity:w.d.Video,actionType:w.n.Click,descriptor:w.b.Open})}},!n.isOnPlayPage&&o.createElement(bo.a,{svgName:go.b.NewWindow,className:"".concat(zc.a.flippedIcon," d-inline-block svg-container float-right")})))))}var Yc=n(256),Kc=n(152),Qc=n.n(Kc);function Zc(){return o.createElement(o.Fragment,null,o.createElement("div",{className:Qc.a.dropMask}),o.createElement("div",{className:Qc.a.dropContent},o.createElement("div",{className:Qc.a.border},o.createElement("h1",null,o.createElement(Ka.b,{namespace:"shared.dragMask",phrase:"message"})))),o.createElement("div",{className:Qc.a.dropArea}))}var Xc=n(84),$c=n.n(Xc),eu=n(124),tu=n(236);function nu(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ru(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ru(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ru(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var ou=function(e){var t,n=e.showNav,r=e.contentChild,i=e.popupChild,a=e.alertChild,c=e.activeAppLink,u=e.appLinkIsRoute,s=nu(o.useState(!1),2),l=s[0],f=s[1];Object(Yc.a)();var p=Object(tu.a)(),h=p===ta.a.XS,d=p===ta.a.SM,y=p===ta.a.XXL,v=!y&&p!==ta.a.XL,g=nu(Object($i.a)(Ga.a.WEB_PLAYER_DATA),1)[0];o.useEffect((function(){f(!y)}),[y]);var m=function(e,t,n,r){return r?t?{state:e?xc.Hidden:xc.Open,showMask:!e,contentClass:$c.a.hiddenNavContent}:n?{state:e?xc.Collapsed:xc.Open,showMask:!e,contentClass:$c.a.collapsedNavContent}:{state:e?xc.Collapsed:xc.Open,showMask:!1,contentClass:e?$c.a.collapsedNavContent:$c.a.openNavContent}:{state:xc.Hidden,showMask:!1,contentClass:$c.a.hiddenNavContent}}(l,h,d,n),b=Object(Xi.a)(P.b.VideoUpload),S=o.useCallback((function(e){b.addFiles(e,{entity:w.d.Video,actionType:w.n.Upload,workflowPhase:w.o.Start,descriptor:ea.a.mapInteractionType(w.h.DragDrop),location:w.j.VideoUpload})}),[]),C=Object(Zi.useDropzone)({onDrop:S,noClick:!0,noKeyboard:!0}),O=C.getRootProps,k=C.getInputProps,E=C.isDragActive,R="d-flex flex-column align-items-end",_="";return(null===(t=g)||void 0===t?void 0:t.viewportPosition)?_=$c.a.fixedBottomRightContainer:R+=" ".concat($c.a.fixedBottomRightContainer),o.createElement("div",Object.assign({},O()),o.createElement(uc,{toggleLeftNav:function(){f(!l)},showNav:n}),n&&o.createElement(Dc,{navState:m.state,activeAppLink:c,appLinkIsRoute:u}),o.createElement("div",{className:"".concat($c.a.content," ").concat(m.contentClass)},o.createElement("div",{className:"".concat(v?"container-fluid":"container")},r)),i,m.showMask&&o.createElement("div",{className:"modal-backdrop show ".concat($c.a.mask)}),o.createElement("div",{className:R},!!a&&o.createElement("div",{className:_},a),o.createElement(Gc,null)),E&&o.createElement(Zc,null),o.createElement("input",Object.assign({},k())))};function iu(e){return o.createElement(Hi.Provider,{store:e.store},o.createElement(eu.b,{defaultTitle:""},o.createElement(ou,Object.assign({},e))))}var au=n(438),cu=n.n(au);function uu(e){return(uu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function su(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function lu(e,t,n){return(lu="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=du(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function fu(e,t){return(fu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function pu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=du(e);if(t){var o=du(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return hu(this,n)}}function hu(e,t){return!t||"object"!==uu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function du(e){return(du=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var yu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&fu(e,t)}(c,e);var t,n,i,a=pu(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=a.call(this,e)).childComponents={},t}return t=c,i=[{key:"getCacheKey",value:function(e){return"".concat(S,":").concat(e.showNav)}}],(n=[{key:"initialize",value:function(){var e;this.activeAppLink=null===(e=Qi.a.getCurrentContext())||void 0===e?void 0:e.appLink,this.appLinkIsRoute=!0,this.listenTo(u.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange)}},{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[K],popupChild:this.childComponents[Q],alertChild:this.childComponents[Z],store:this.options.store,activeAppLink:this.activeAppLink,appLinkIsRoute:this.appLinkIsRoute}}},{key:"onRouteChange",value:function(e,t){this.activeAppLink=e,this.appLinkIsRoute=t.isAppRoute}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(Q)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){lu(du(c.prototype),"showChildView",this).call(this,"layout",o.createElement(iu,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"TeacherLayoutView"}},{key:"template",get:function(){return cu.a}}])&&su(t.prototype,n),i&&su(t,i),c}(Ki);function vu(e){var t=e.contentChild;return o.createElement(o.Fragment,null,t)}function gu(e){var t=e.store;return o.createElement(Hi.Provider,{store:t},o.createElement(eu.b,{defaultTitle:""},o.createElement(vu,Object.assign({},e))))}var mu=n(439),bu=n.n(mu);function wu(e){return(wu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Su(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Cu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ou(e,t,n){return(Ou="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ru(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function ku(e,t){return(ku=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Eu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ru(e);if(t){var o=Ru(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Pu(this,n)}}function Pu(e,t){return!t||"object"!==wu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ru(e){return(Ru=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ku(e,t)}(a,e);var t,n,r,i=Eu(a);function a(){var e;return Su(this,a),(e=i.apply(this,arguments)).childComponents={},e}return t=a,r=[{key:"getCacheKey",value:function(){return C}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[K],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(Q)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){Ou(Ru(a.prototype),"showChildView",this).call(this,"layout",o.createElement(gu,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"EmbedLayoutView"}},{key:"template",get:function(){return bu.a}}])&&Cu(t.prototype,n),r&&Cu(t,r),a}(Ki);var Tu=n(82);var xu=n(195),Au=n(29);function Lu(e){return(Lu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ju(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Nu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Iu(e,t){return(Iu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Du(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Mu(e);if(t){var o=Mu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uu(this,n)}}function Uu(e,t){return!t||"object"!==Lu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Mu(e){return(Mu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Fu=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Iu(e,t)}(i,e);var t,n,r,o=Du(i);function i(){return ju(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){this.listenTo(u.a.SHELL,Au.a.ROUTING_END,this.scrollTop),this.listenTo(xu.a.POPUP,"popup:render",this.cancelScrollTop),this.listenTo(u.a.POPUP,"popup:render",this.cancelScrollTop)}},{key:"cancelScrollTop",value:function(){this.preventScroll=!0}},{key:"scrollTop",value:function(){this.preventScroll?this.preventScroll=!1:$(window).scrollTop(0)}},{key:"name",get:function(){return or.a.SCROLL}}])&&Nu(t.prototype,n),r&&Nu(t,r),i}(jn.a);function Vu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Hu=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t}var t,n,r;return t=e,(n=[{key:"increment",value:function(){this.value+=1}},{key:"decrement",value:function(){this.value-=1}},{key:"getValue",value:function(){return this.value}}])&&Vu(t.prototype,n),r&&Vu(t,r),e}();function zu(e){return(zu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bu(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function qu(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Wu(e,t,n){return t&&qu(e.prototype,t),n&&qu(e,n),e}function Ju(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Gu(e,t)}function Gu(e,t){return(Gu=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yu(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Qu(e);if(t){var o=Qu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ku(this,n)}}function Ku(e,t){return!t||"object"!==zu(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Qu(e){return(Qu=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zu,Xu=function(e){Ju(n,e);var t=Yu(n);function n(){return Bu(this,n),t.apply(this,arguments)}return Wu(n,[{key:"idAttribute",get:function(){return"masterVideoId"}}]),n}(r.a.Model),$u=function(e){Ju(n,e);var t=Yu(n);function n(){return Bu(this,n),t.apply(this,arguments)}return Wu(n,[{key:"model",get:function(){return Xu}}]),n}(r.a.Collection),es=n(105);!function(e){e[e.Draft=0]="Draft",e[e.Published=1]="Published",e[e.Archive=2]="Archive",e[e.Pending=3]="Pending",e[e.Rejected=4]="Rejected",e[e.Processing=5]="Processing"}(Zu||(Zu={}));var ts=n(44);function ns(e){return(ns="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function os(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function is(e,t){return(is=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function as(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=us(e);if(t){var o=us(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cs(this,n)}}function cs(e,t){return!t||"object"!==ns(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function us(e){return(us=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ss=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&is(e,t)}(c,e);var t,n,o,i=as(c);function c(){return rs(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.videoDataService=k.a.getInstance(ar.a.Video,this),this.videoUploadDataService=k.a.getInstance(ar.a.VideoUpload,this)}},{key:"clearPendingItem",value:function(e,t){var n=this;switch(e.get("pendingProcessStatus")){case es.a.Completed:case es.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.updateViewModel(),n.videoDataService.clearVideoCache(),An.isFunction(t)&&t()}));break;case es.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],(function(){e.set("clearing",!0),e.collection.remove(e),n.videoDataService.clearVideoCache(),n.updateViewModel(),An.isFunction(t)&&t()}))}}},{key:"forceFetchPendingItems",value:function(e){this.fetchPendingItems(e)}},{key:"retryPendingItem",value:function(e,t){var n=this;this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],(function(){n.fetchPendingItems({resetTimeout:!1,callback:t})}))}},{key:"itemStatusChanged",value:function(){a.Radio.channel(this.channelName).trigger(ts.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}},{key:"getPendingItems",value:function(){var e=this;return this.pendingItems||(this.pendingItems=new $u,this.listenTo(this.pendingItems,"change:foregroundComplete",(function(t){t.get("foregroundComplete")&&(e.itemStatusChanged(),t.get("video")&&a.Radio.channel(e.channelName).trigger(ts.a.PENDING_ITEM_READY_TO_WATCH,t))})),this.listenTo(this.pendingItems,"remove",(function(t){t.get("clearing")||e.videoUploadDataService.getPendingItem(t.get("pendingProcessId"),(function(t){t.get("status")===es.a.Completed&&e.itemStatusChanged()}))})),this.fetchPendingItems()),this.pendingItems}},{key:"fetchPendingItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{resetTimeout:!0};this.isDestroyed()||this.videoUploadDataService.getPendingItems((function(n){var o=An.map(n,(function(e){return e.masterVideoId.toString()})),i=function(r){An.each(n,(function(e){var t=r.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===Zu.Processing&&t.set("status",Zu.Published))})),e.pendingItems.set(n),e.updateViewModel(),t.resetTimeout&&window.setTimeout(An.bind(e.fetchPendingItems,e),e.getTimeoutLength()),An.isFunction(t.callback)&&t.callback()};o.length?e.videoDataService.getVideos(o,i):i(new r.a.Collection)}))}},{key:"updateViewModel",value:function(){var e=na.a.get("process:progress");if(this.pendingItems&&this.pendingItems.length){var t=this.pendingItems.where((function(e){return e.get("pendingProcessStatus")>=0})),n=0;An.each(t,(function(e){return n+=e.get("foregroundProgress")}));var r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}else e.set({progress:0,items:0})}},{key:"getTimeoutLength",value:function(){return this.pendingItems.any((function(e){return e.get("pendingProcessStatus")===es.a.Processing}))?5e3:3e4}},{key:"name",get:function(){return ar.b.PendingItems}},{key:"channelName",get:function(){return ur.c.PENDING_ITEMS}}])&&os(t.prototype,n),o&&os(t,o),c}(r.a.Service),ls=n(194);function fs(e){return(fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ps(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hs(e,t){return(hs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ds(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vs(e);if(t){var o=vs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ys(this,n)}}function ys(e,t){return!t||"object"!==fs(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vs(e){return(vs=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gs,ms,bs=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hs(e,t)}(i,e);var t,n,r,o=ds(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this)}return t=i,(n=[{key:"initDataServices",value:function(){this.notificationDataService=k.a.getInstance(ar.a.Notification,this),this.notificationSocketService=k.a.getInstance(ar.a.NotificationSocket,this),this.userDataService=k.a.getInstance(ar.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}},{key:"bindSocketListeners",value:function(){var e=cr.a.NOTIFICATIONS;this.listenTo(ur.b.NOTIFICATIONS_SOCKET,"".concat(e,":new:sync"),this.addNewNotification),this.listenTo(ur.b.NOTIFICATIONS_SOCKET,"".concat(e,":count:sync"),this.updateUnreadCount),this.listenTo(ur.b.NOTIFICATIONS,"".concat(e,":seen"),this.updateUnreadCount)}},{key:"bindAppListeners",value:function(){this.listenTo(ur.a.NOTIFICATIONS,ls.a.Read,this.markNotificationRead)}},{key:"getDataServices",value:function(){this.dataServicesExist()||this.initDataServices()}},{key:"dataServicesExist",value:function(){return!!this.notificationSocketService&&!!this.notificationDataService}},{key:"addNewNotification",value:function(e){var t=this;this.userDataService.getCurrentUser((function(n){t.notificationDataService.getNotifications(n.id,null,cr.a.NOTIFICATIONS,(function(t){t.add(e,{at:0})}))}))}},{key:"updateUnreadCount",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=na.a.get(cr.a.NOTIFICATIONS);t.set("unreadCount",e)}},{key:"getNotifications",value:function(e,t,n){var r=this;this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser((function(o){r.notificationDataService.getNotifications(o.id,e,t.toString(),n)}))}},{key:"getNotificationsMetadata",value:function(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),na.a.get(cr.a.NOTIFICATIONS)}},{key:"markNotificationsSeen",value:function(){this.notificationDataService.markSeen()}},{key:"markNotificationRead",value:function(e){this.notificationDataService.markRead(e)}},{key:"getNotificationsCursors",value:function(e){return this.notificationDataService.getNotificationsCursors(e.toString())}},{key:"name",get:function(){return ar.b.Notification}}])&&ps(t.prototype,n),r&&ps(t,r),i}(r.a.Service),ws=n(39),Ss=n(77),Cs=n(440),Os=n(6),ks=(gs=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}gs(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),Es=function(e){function t(t){var n=e.call(this)||this;return n.logger=t,n}return ks(t,e),t.prototype.send=function(e){var t=this;return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ws.a):e.method?e.url?new Promise((function(n,r){var o=new XMLHttpRequest;o.open(e.method,e.url,!0),o.withCredentials=!0,o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.setRequestHeader("Content-Type","text/plain;charset=UTF-8");var i=e.headers;i&&Object.keys(i).forEach((function(e){o.setRequestHeader(e,i[e])})),e.responseType&&(o.responseType=e.responseType),e.abortSignal&&(e.abortSignal.onabort=function(){o.abort(),r(new ws.a)}),e.timeout&&(o.timeout=e.timeout),o.onload=function(){e.abortSignal&&(e.abortSignal.onabort=null),o.status>=200&&o.status<300?n(new Ss.b(o.status,o.statusText,o.response||o.responseText)):r(new ws.b(o.statusText,o.status))},o.onerror=function(){t.logger.log(Os.a.Warning,"Error from HTTP request. "+o.status+": "+o.statusText+"."),r(new ws.b(o.statusText,o.status))},o.ontimeout=function(){t.logger.log(Os.a.Warning,"Timeout from HTTP request."),r(new ws.c)},o.send(e.content||"")})):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t}(Ss.a),Ps=function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};return function(t,n){function r(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Rs=function(e){function t(t){var n=e.call(this)||this;return"undefined"!=typeof XMLHttpRequest?n.httpClient=new Es(t):n.httpClient=new Cs.a(t),n}return Ps(t,e),t.prototype.send=function(e){return e.abortSignal&&e.abortSignal.aborted?Promise.reject(new ws.a):e.method?e.url?this.httpClient.send(e):Promise.reject(new Error("No url defined.")):Promise.reject(new Error("No method defined."))},t.prototype.getCookieString=function(e){return this.httpClient.getCookieString(e)},t}(Ss.a),_s=n(441);!function(e){e[e.Invocation=1]="Invocation",e[e.StreamItem=2]="StreamItem",e[e.Completion=3]="Completion",e[e.StreamInvocation=4]="StreamInvocation",e[e.CancelInvocation=5]="CancelInvocation",e[e.Ping=6]="Ping",e[e.Close=7]="Close"}(ms||(ms={}));var Ts,xs=n(18),As=function(){function e(){this.observers=[]}return e.prototype.next=function(e){for(var t=0,n=this.observers;t<n.length;t++){n[t].next(e)}},e.prototype.error=function(e){for(var t=0,n=this.observers;t<n.length;t++){var r=n[t];r.error&&r.error(e)}},e.prototype.complete=function(){for(var e=0,t=this.observers;e<t.length;e++){var n=t[e];n.complete&&n.complete()}},e.prototype.subscribe=function(e){return this.observers.push(e),new xs.d(this,e)},e}(),Ls=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},js=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};!function(e){e.Disconnected="Disconnected",e.Connecting="Connecting",e.Connected="Connected",e.Disconnecting="Disconnecting",e.Reconnecting="Reconnecting"}(Ts||(Ts={}));var Ns,Is,Ds=function(){function e(e,t,n,r){var o=this;xs.a.isRequired(e,"connection"),xs.a.isRequired(t,"logger"),xs.a.isRequired(n,"protocol"),this.serverTimeoutInMilliseconds=3e4,this.keepAliveIntervalInMilliseconds=15e3,this.logger=t,this.protocol=n,this.connection=e,this.reconnectPolicy=r,this.handshakeProtocol=new _s.a,this.connection.onreceive=function(e){return o.processIncomingData(e)},this.connection.onclose=function(e){return o.connectionClosed(e)},this.callbacks={},this.methods={},this.closedCallbacks=[],this.reconnectingCallbacks=[],this.reconnectedCallbacks=[],this.invocationId=0,this.receivedHandshakeResponse=!1,this.connectionState=Ts.Disconnected,this.connectionStarted=!1,this.cachedPingMessage=this.protocol.writeMessage({type:ms.Ping})}return e.create=function(t,n,r,o){return new e(t,n,r,o)},Object.defineProperty(e.prototype,"state",{get:function(){return this.connectionState},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"connectionId",{get:function(){return this.connection&&this.connection.connectionId||null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this.connection.baseUrl||""},set:function(e){if(this.connectionState!==Ts.Disconnected&&this.connectionState!==Ts.Reconnecting)throw new Error("The HubConnection must be in the Disconnected or Reconnecting state to change the url.");if(!e)throw new Error("The HubConnection url must be a valid url.");this.connection.baseUrl=e},enumerable:!0,configurable:!0}),e.prototype.start=function(){return this.startPromise=this.startWithStateTransitions(),this.startPromise},e.prototype.startWithStateTransitions=function(){return Ls(this,void 0,void 0,(function(){var e;return js(this,(function(t){switch(t.label){case 0:if(this.connectionState!==Ts.Disconnected)return[2,Promise.reject(new Error("Cannot start a HubConnection that is not in the 'Disconnected' state."))];this.connectionState=Ts.Connecting,this.logger.log(Os.a.Debug,"Starting HubConnection."),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.startInternal()];case 2:return t.sent(),this.connectionState=Ts.Connected,this.connectionStarted=!0,this.logger.log(Os.a.Debug,"HubConnection connected successfully."),[3,4];case 3:return e=t.sent(),this.connectionState=Ts.Disconnected,this.logger.log(Os.a.Debug,"HubConnection failed to start successfully because of error '"+e+"'."),[2,Promise.reject(e)];case 4:return[2]}}))}))},e.prototype.startInternal=function(){return Ls(this,void 0,void 0,(function(){var e,t,n,r=this;return js(this,(function(o){switch(o.label){case 0:return this.stopDuringStartError=void 0,this.receivedHandshakeResponse=!1,e=new Promise((function(e,t){r.handshakeResolver=e,r.handshakeRejecter=t})),[4,this.connection.start(this.protocol.transferFormat)];case 1:o.sent(),o.label=2;case 2:return o.trys.push([2,5,,7]),t={protocol:this.protocol.name,version:this.protocol.version},this.logger.log(Os.a.Debug,"Sending handshake request."),[4,this.sendMessage(this.handshakeProtocol.writeHandshakeRequest(t))];case 3:return o.sent(),this.logger.log(Os.a.Information,"Using HubProtocol '"+this.protocol.name+"'."),this.cleanupTimeout(),this.resetTimeoutPeriod(),this.resetKeepAliveInterval(),[4,e];case 4:if(o.sent(),this.stopDuringStartError)throw this.stopDuringStartError;return[3,7];case 5:return n=o.sent(),this.logger.log(Os.a.Debug,"Hub handshake failed with error '"+n+"' during start(). Stopping HubConnection."),this.cleanupTimeout(),this.cleanupPingTimer(),[4,this.connection.stop(n)];case 6:throw o.sent(),n;case 7:return[2]}}))}))},e.prototype.stop=function(){return Ls(this,void 0,void 0,(function(){var e;return js(this,(function(t){switch(t.label){case 0:return e=this.startPromise,this.stopPromise=this.stopInternal(),[4,this.stopPromise];case 1:t.sent(),t.label=2;case 2:return t.trys.push([2,4,,5]),[4,e];case 3:return t.sent(),[3,5];case 4:return t.sent(),[3,5];case 5:return[2]}}))}))},e.prototype.stopInternal=function(e){return this.connectionState===Ts.Disconnected?(this.logger.log(Os.a.Debug,"Call to HubConnection.stop("+e+") ignored because it is already in the disconnected state."),Promise.resolve()):this.connectionState===Ts.Disconnecting?(this.logger.log(Os.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),this.stopPromise):(this.connectionState=Ts.Disconnecting,this.logger.log(Os.a.Debug,"Stopping HubConnection."),this.reconnectDelayHandle?(this.logger.log(Os.a.Debug,"Connection stopped during reconnect delay. Done reconnecting."),clearTimeout(this.reconnectDelayHandle),this.reconnectDelayHandle=void 0,this.completeClose(),Promise.resolve()):(this.cleanupTimeout(),this.cleanupPingTimer(),this.stopDuringStartError=e||new Error("The connection was stopped before the hub handshake could complete."),this.connection.stop(e)))},e.prototype.stream=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o,i=this.replaceStreamingParams(n),a=i[0],c=i[1],u=this.createStreamInvocation(e,n,c),s=new As;return s.cancelCallback=function(){var e=t.createCancelInvocation(u.invocationId);return delete t.callbacks[u.invocationId],o.then((function(){return t.sendWithProtocol(e)}))},this.callbacks[u.invocationId]=function(e,t){t?s.error(t):e&&(e.type===ms.Completion?e.error?s.error(new Error(e.error)):s.complete():s.next(e.item))},o=this.sendWithProtocol(u).catch((function(e){s.error(e),delete t.callbacks[u.invocationId]})),this.launchStreams(a,o),s},e.prototype.sendMessage=function(e){return this.resetKeepAliveInterval(),this.connection.send(e)},e.prototype.sendWithProtocol=function(e){return this.sendMessage(this.protocol.writeMessage(e))},e.prototype.send=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=this.replaceStreamingParams(t),o=r[0],i=r[1],a=this.sendWithProtocol(this.createInvocation(e,t,!0,i));return this.launchStreams(o,a),a},e.prototype.invoke=function(e){for(var t=this,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];var o=this.replaceStreamingParams(n),i=o[0],a=o[1],c=this.createInvocation(e,n,!1,a),u=new Promise((function(e,n){t.callbacks[c.invocationId]=function(t,r){r?n(r):t&&(t.type===ms.Completion?t.error?n(new Error(t.error)):e(t.result):n(new Error("Unexpected message type: "+t.type)))};var r=t.sendWithProtocol(c).catch((function(e){n(e),delete t.callbacks[c.invocationId]}));t.launchStreams(i,r)}));return u},e.prototype.on=function(e,t){e&&t&&(e=e.toLowerCase(),this.methods[e]||(this.methods[e]=[]),-1===this.methods[e].indexOf(t)&&this.methods[e].push(t))},e.prototype.off=function(e,t){if(e){e=e.toLowerCase();var n=this.methods[e];if(n)if(t){var r=n.indexOf(t);-1!==r&&(n.splice(r,1),0===n.length&&delete this.methods[e])}else delete this.methods[e]}},e.prototype.onclose=function(e){e&&this.closedCallbacks.push(e)},e.prototype.onreconnecting=function(e){e&&this.reconnectingCallbacks.push(e)},e.prototype.onreconnected=function(e){e&&this.reconnectedCallbacks.push(e)},e.prototype.processIncomingData=function(e){if(this.cleanupTimeout(),this.receivedHandshakeResponse||(e=this.processHandshakeResponse(e),this.receivedHandshakeResponse=!0),e)for(var t=0,n=this.protocol.parseMessages(e,this.logger);t<n.length;t++){var r=n[t];switch(r.type){case ms.Invocation:this.invokeClientMethod(r);break;case ms.StreamItem:case ms.Completion:var o=this.callbacks[r.invocationId];o&&(r.type===ms.Completion&&delete this.callbacks[r.invocationId],o(r));break;case ms.Ping:break;case ms.Close:this.logger.log(Os.a.Information,"Close message received from server.");var i=r.error?new Error("Server returned an error on close: "+r.error):void 0;!0===r.allowReconnect?this.connection.stop(i):this.stopPromise=this.stopInternal(i);break;default:this.logger.log(Os.a.Warning,"Invalid message type: "+r.type+".")}}this.resetTimeoutPeriod()},e.prototype.processHandshakeResponse=function(e){var t,n,r;try{r=(t=this.handshakeProtocol.parseHandshakeResponse(e))[0],n=t[1]}catch(e){var o="Error parsing handshake response: "+e;this.logger.log(Os.a.Error,o);var i=new Error(o);throw this.handshakeRejecter(i),i}if(n.error){o="Server returned handshake error: "+n.error;this.logger.log(Os.a.Error,o);i=new Error(o);throw this.handshakeRejecter(i),i}return this.logger.log(Os.a.Debug,"Server handshake complete."),this.handshakeResolver(),r},e.prototype.resetKeepAliveInterval=function(){var e=this;this.cleanupPingTimer(),this.pingServerHandle=setTimeout((function(){return Ls(e,void 0,void 0,(function(){return js(this,(function(e){switch(e.label){case 0:if(this.connectionState!==Ts.Connected)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.sendMessage(this.cachedPingMessage)];case 2:return e.sent(),[3,4];case 3:return e.sent(),this.cleanupPingTimer(),[3,4];case 4:return[2]}}))}))}),this.keepAliveIntervalInMilliseconds)},e.prototype.resetTimeoutPeriod=function(){var e=this;this.connection.features&&this.connection.features.inherentKeepAlive||(this.timeoutHandle=setTimeout((function(){return e.serverTimeout()}),this.serverTimeoutInMilliseconds))},e.prototype.serverTimeout=function(){this.connection.stop(new Error("Server timeout elapsed without receiving a message from the server."))},e.prototype.invokeClientMethod=function(e){var t=this,n=this.methods[e.target.toLowerCase()];if(n){try{n.forEach((function(n){return n.apply(t,e.arguments)}))}catch(t){this.logger.log(Os.a.Error,"A callback for the method "+e.target.toLowerCase()+" threw error '"+t+"'.")}if(e.invocationId){var r="Server requested a response, which is not supported in this version of the client.";this.logger.log(Os.a.Error,r),this.stopPromise=this.stopInternal(new Error(r))}}else this.logger.log(Os.a.Warning,"No client method with the name '"+e.target+"' found.")},e.prototype.connectionClosed=function(e){this.logger.log(Os.a.Debug,"HubConnection.connectionClosed("+e+") called while in state "+this.connectionState+"."),this.stopDuringStartError=this.stopDuringStartError||e||new Error("The underlying connection was closed before the hub handshake could complete."),this.handshakeResolver&&this.handshakeResolver(),this.cancelCallbacksWithError(e||new Error("Invocation canceled due to the underlying connection being closed.")),this.cleanupTimeout(),this.cleanupPingTimer(),this.connectionState===Ts.Disconnecting?this.completeClose(e):this.connectionState===Ts.Connected&&this.reconnectPolicy?this.reconnect(e):this.connectionState===Ts.Connected&&this.completeClose(e)},e.prototype.completeClose=function(e){var t=this;if(this.connectionStarted){this.connectionState=Ts.Disconnected,this.connectionStarted=!1;try{this.closedCallbacks.forEach((function(n){return n.apply(t,[e])}))}catch(t){this.logger.log(Os.a.Error,"An onclose callback called with error '"+e+"' threw error '"+t+"'.")}}},e.prototype.reconnect=function(e){return Ls(this,void 0,void 0,(function(){var t,n,r,o,i,a=this;return js(this,(function(c){switch(c.label){case 0:if(t=Date.now(),n=0,r=void 0!==e?e:new Error("Attempting to reconnect due to a unknown error."),null===(o=this.getNextRetryDelay(n++,0,r)))return this.logger.log(Os.a.Debug,"Connection not reconnecting because the IRetryPolicy returned null on the first reconnect attempt."),this.completeClose(e),[2];if(this.connectionState=Ts.Reconnecting,e?this.logger.log(Os.a.Information,"Connection reconnecting because of error '"+e+"'."):this.logger.log(Os.a.Information,"Connection reconnecting."),this.onreconnecting){try{this.reconnectingCallbacks.forEach((function(t){return t.apply(a,[e])}))}catch(t){this.logger.log(Os.a.Error,"An onreconnecting callback called with error '"+e+"' threw error '"+t+"'.")}if(this.connectionState!==Ts.Reconnecting)return this.logger.log(Os.a.Debug,"Connection left the reconnecting state in onreconnecting callback. Done reconnecting."),[2]}c.label=1;case 1:return null===o?[3,7]:(this.logger.log(Os.a.Information,"Reconnect attempt number "+n+" will start in "+o+" ms."),[4,new Promise((function(e){a.reconnectDelayHandle=setTimeout(e,o)}))]);case 2:if(c.sent(),this.reconnectDelayHandle=void 0,this.connectionState!==Ts.Reconnecting)return this.logger.log(Os.a.Debug,"Connection left the reconnecting state during reconnect delay. Done reconnecting."),[2];c.label=3;case 3:return c.trys.push([3,5,,6]),[4,this.startInternal()];case 4:if(c.sent(),this.connectionState=Ts.Connected,this.logger.log(Os.a.Information,"HubConnection reconnected successfully."),this.onreconnected)try{this.reconnectedCallbacks.forEach((function(e){return e.apply(a,[a.connection.connectionId])}))}catch(e){this.logger.log(Os.a.Error,"An onreconnected callback called with connectionId '"+this.connection.connectionId+"; threw error '"+e+"'.")}return[2];case 5:return i=c.sent(),this.logger.log(Os.a.Information,"Reconnect attempt failed because of error '"+i+"'."),this.connectionState!==Ts.Reconnecting?(this.logger.log(Os.a.Debug,"Connection left the reconnecting state during reconnect attempt. Done reconnecting."),[2]):(r=i instanceof Error?i:new Error(i.toString()),o=this.getNextRetryDelay(n++,Date.now()-t,r),[3,6]);case 6:return[3,1];case 7:return this.logger.log(Os.a.Information,"Reconnect retries have been exhausted after "+(Date.now()-t)+" ms and "+n+" failed attempts. Connection disconnecting."),this.completeClose(),[2]}}))}))},e.prototype.getNextRetryDelay=function(e,t,n){try{return this.reconnectPolicy.nextRetryDelayInMilliseconds({elapsedMilliseconds:t,previousRetryCount:e,retryReason:n})}catch(n){return this.logger.log(Os.a.Error,"IRetryPolicy.nextRetryDelayInMilliseconds("+e+", "+t+") threw error '"+n+"'."),null}},e.prototype.cancelCallbacksWithError=function(e){var t=this.callbacks;this.callbacks={},Object.keys(t).forEach((function(n){(0,t[n])(null,e)}))},e.prototype.cleanupPingTimer=function(){this.pingServerHandle&&clearTimeout(this.pingServerHandle)},e.prototype.cleanupTimeout=function(){this.timeoutHandle&&clearTimeout(this.timeoutHandle)},e.prototype.createInvocation=function(e,t,n,r){if(n)return{arguments:t,streamIds:r,target:e,type:ms.Invocation};var o=this.invocationId;return this.invocationId++,{arguments:t,invocationId:o.toString(),streamIds:r,target:e,type:ms.Invocation}},e.prototype.launchStreams=function(e,t){var n=this;if(0!==e.length){t||(t=Promise.resolve());var r=function(r){e[r].subscribe({complete:function(){t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r))}))},error:function(e){var o;o=e instanceof Error?e.message:e&&e.toString?e.toString():"Unknown error",t=t.then((function(){return n.sendWithProtocol(n.createCompletionMessage(r,o))}))},next:function(e){t=t.then((function(){return n.sendWithProtocol(n.createStreamItemMessage(r,e))}))}})};for(var o in e)r(o)}},e.prototype.replaceStreamingParams=function(e){for(var t=[],n=[],r=0;r<e.length;r++){var o=e[r];if(this.isObservable(o)){var i=this.invocationId;this.invocationId++,t[i]=o,n.push(i.toString()),e.splice(r,1)}}return[t,n]},e.prototype.isObservable=function(e){return e&&e.subscribe&&"function"==typeof e.subscribe},e.prototype.createStreamInvocation=function(e,t,n){var r=this.invocationId;return this.invocationId++,{arguments:t,invocationId:r.toString(),streamIds:n,target:e,type:ms.StreamInvocation}},e.prototype.createCancelInvocation=function(e){return{invocationId:e,type:ms.CancelInvocation}},e.prototype.createStreamItemMessage=function(e,t){return{invocationId:e,item:t,type:ms.StreamItem}},e.prototype.createCompletionMessage=function(e,t,n){return t?{error:t,invocationId:e,type:ms.Completion}:{invocationId:e,result:n,type:ms.Completion}},e}(),Us=[0,2e3,1e4,3e4,null],Ms=function(){function e(e){this.retryDelays=void 0!==e?e.concat([null]):Us}return e.prototype.nextRetryDelayInMilliseconds=function(e){return this.retryDelays[e.previousRetryCount]},e}();!function(e){e[e.None=0]="None",e[e.WebSockets=1]="WebSockets",e[e.ServerSentEvents=2]="ServerSentEvents",e[e.LongPolling=4]="LongPolling"}(Ns||(Ns={})),function(e){e[e.Text=1]="Text",e[e.Binary=2]="Binary"}(Is||(Is={}));var Fs=function(){function e(){this.isAborted=!1,this.onabort=null}return e.prototype.abort=function(){this.isAborted||(this.isAborted=!0,this.onabort&&this.onabort())},Object.defineProperty(e.prototype,"signal",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"aborted",{get:function(){return this.isAborted},enumerable:!0,configurable:!0}),e}(),Vs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Hs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},zs=function(){function e(e,t,n,r){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.pollAbort=new Fs,this.logMessageContent=r,this.running=!1,this.onreceive=null,this.onclose=null}return Object.defineProperty(e.prototype,"pollAborted",{get:function(){return this.pollAbort.aborted},enumerable:!0,configurable:!0}),e.prototype.connect=function(e,t){return Vs(this,void 0,void 0,(function(){var n,r,o,i;return Hs(this,(function(a){switch(a.label){case 0:if(xs.a.isRequired(e,"url"),xs.a.isRequired(t,"transferFormat"),xs.a.isIn(t,Is,"transferFormat"),this.url=e,this.logger.log(Os.a.Trace,"(LongPolling transport) Connecting."),t===Is.Binary&&"undefined"!=typeof XMLHttpRequest&&"string"!=typeof(new XMLHttpRequest).responseType)throw new Error("Binary protocols over XmlHttpRequest not implementing advanced features are not supported.");return n={abortSignal:this.pollAbort.signal,headers:{},timeout:1e5},t===Is.Binary&&(n.responseType="arraybuffer"),[4,this.getAccessToken()];case 1:return r=a.sent(),this.updateHeaderToken(n,r),o=e+"&_="+Date.now(),this.logger.log(Os.a.Trace,"(LongPolling transport) polling: "+o+"."),[4,this.httpClient.get(o,n)];case 2:return 200!==(i=a.sent()).statusCode?(this.logger.log(Os.a.Error,"(LongPolling transport) Unexpected response code: "+i.statusCode+"."),this.closeError=new ws.b(i.statusText||"",i.statusCode),this.running=!1):this.running=!0,this.receiving=this.poll(this.url,n),[2]}}))}))},e.prototype.getAccessToken=function(){return Vs(this,void 0,void 0,(function(){return Hs(this,(function(e){switch(e.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:return[2,e.sent()];case 2:return[2,null]}}))}))},e.prototype.updateHeaderToken=function(e,t){e.headers||(e.headers={}),t?e.headers.Authorization="Bearer "+t:e.headers.Authorization&&delete e.headers.Authorization},e.prototype.poll=function(e,t){return Vs(this,void 0,void 0,(function(){var n,r,o,i;return Hs(this,(function(a){switch(a.label){case 0:a.trys.push([0,,8,9]),a.label=1;case 1:return this.running?[4,this.getAccessToken()]:[3,7];case 2:n=a.sent(),this.updateHeaderToken(t,n),a.label=3;case 3:return a.trys.push([3,5,,6]),r=e+"&_="+Date.now(),this.logger.log(Os.a.Trace,"(LongPolling transport) polling: "+r+"."),[4,this.httpClient.get(r,t)];case 4:return 204===(o=a.sent()).statusCode?(this.logger.log(Os.a.Information,"(LongPolling transport) Poll terminated by server."),this.running=!1):200!==o.statusCode?(this.logger.log(Os.a.Error,"(LongPolling transport) Unexpected response code: "+o.statusCode+"."),this.closeError=new ws.b(o.statusText||"",o.statusCode),this.running=!1):o.content?(this.logger.log(Os.a.Trace,"(LongPolling transport) data received. "+Object(xs.f)(o.content,this.logMessageContent)+"."),this.onreceive&&this.onreceive(o.content)):this.logger.log(Os.a.Trace,"(LongPolling transport) Poll timed out, reissuing."),[3,6];case 5:return i=a.sent(),this.running?i instanceof ws.c?this.logger.log(Os.a.Trace,"(LongPolling transport) Poll timed out, reissuing."):(this.closeError=i,this.running=!1):this.logger.log(Os.a.Trace,"(LongPolling transport) Poll errored after shutdown: "+i.message),[3,6];case 6:return[3,1];case 7:return[3,9];case 8:return this.logger.log(Os.a.Trace,"(LongPolling transport) Polling complete."),this.pollAborted||this.raiseOnClose(),[7];case 9:return[2]}}))}))},e.prototype.send=function(e){return Vs(this,void 0,void 0,(function(){return Hs(this,(function(t){return this.running?[2,Object(xs.h)(this.logger,"LongPolling",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return Vs(this,void 0,void 0,(function(){var e,t;return Hs(this,(function(n){switch(n.label){case 0:this.logger.log(Os.a.Trace,"(LongPolling transport) Stopping polling."),this.running=!1,this.pollAbort.abort(),n.label=1;case 1:return n.trys.push([1,,5,6]),[4,this.receiving];case 2:return n.sent(),this.logger.log(Os.a.Trace,"(LongPolling transport) sending DELETE request to "+this.url+"."),e={headers:{}},[4,this.getAccessToken()];case 3:return t=n.sent(),this.updateHeaderToken(e,t),[4,this.httpClient.delete(this.url,e)];case 4:return n.sent(),this.logger.log(Os.a.Trace,"(LongPolling transport) DELETE request sent."),[3,6];case 5:return this.logger.log(Os.a.Trace,"(LongPolling transport) Stop finished."),this.raiseOnClose(),[7];case 6:return[2]}}))}))},e.prototype.raiseOnClose=function(){if(this.onclose){var e="(LongPolling transport) Firing onclose event.";this.closeError&&(e+=" Error: "+this.closeError),this.logger.log(Os.a.Trace,e),this.onclose(this.closeError)}},e}(),Bs=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},qs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Ws=function(){function e(e,t,n,r,o){this.httpClient=e,this.accessTokenFactory=t,this.logger=n,this.logMessageContent=r,this.eventSourceConstructor=o,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return Bs(this,void 0,void 0,(function(){var n,r=this;return qs(this,(function(o){switch(o.label){case 0:return xs.a.isRequired(e,"url"),xs.a.isRequired(t,"transferFormat"),xs.a.isIn(t,Is,"transferFormat"),this.logger.log(Os.a.Trace,"(SSE transport) Connecting."),this.url=e,this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i=!1;if(t===Is.Text){var a;if(xs.c.isBrowser||xs.c.isWebWorker)a=new r.eventSourceConstructor(e,{withCredentials:!0});else{var c=r.httpClient.getCookieString(e);a=new r.eventSourceConstructor(e,{withCredentials:!0,headers:{Cookie:c}})}try{a.onmessage=function(e){if(r.onreceive)try{r.logger.log(Os.a.Trace,"(SSE transport) data received. "+Object(xs.f)(e.data,r.logMessageContent)+"."),r.onreceive(e.data)}catch(e){return void r.close(e)}},a.onerror=function(e){var t=new Error(e.data||"Error occurred");i?r.close(t):o(t)},a.onopen=function(){r.logger.log(Os.a.Information,"SSE connected to "+r.url),r.eventSource=a,i=!0,n()}}catch(e){return void o(e)}}else o(new Error("The Server-Sent Events transport only supports the 'Text' transfer format"))}))]}}))}))},e.prototype.send=function(e){return Bs(this,void 0,void 0,(function(){return qs(this,(function(t){return this.eventSource?[2,Object(xs.h)(this.logger,"SSE",this.httpClient,this.url,this.accessTokenFactory,e,this.logMessageContent)]:[2,Promise.reject(new Error("Cannot send until the transport is connected"))]}))}))},e.prototype.stop=function(){return this.close(),Promise.resolve()},e.prototype.close=function(e){this.eventSource&&(this.eventSource.close(),this.eventSource=void 0,this.onclose&&this.onclose(e))},e}(),Js=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Gs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Ys=function(){function e(e,t,n,r,o){this.logger=n,this.accessTokenFactory=t,this.logMessageContent=r,this.webSocketConstructor=o,this.httpClient=e,this.onreceive=null,this.onclose=null}return e.prototype.connect=function(e,t){return Js(this,void 0,void 0,(function(){var n,r=this;return Gs(this,(function(o){switch(o.label){case 0:return xs.a.isRequired(e,"url"),xs.a.isRequired(t,"transferFormat"),xs.a.isIn(t,Is,"transferFormat"),this.logger.log(Os.a.Trace,"(WebSockets transport) Connecting."),this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(n=o.sent())&&(e+=(e.indexOf("?")<0?"?":"&")+"access_token="+encodeURIComponent(n)),o.label=2;case 2:return[2,new Promise((function(n,o){var i;e=e.replace(/^http/,"ws");var a=r.httpClient.getCookieString(e),c=!1;xs.c.isNode&&a&&(i=new r.webSocketConstructor(e,void 0,{headers:{Cookie:""+a}})),i||(i=new r.webSocketConstructor(e)),t===Is.Binary&&(i.binaryType="arraybuffer"),i.onopen=function(t){r.logger.log(Os.a.Information,"WebSocket connected to "+e+"."),r.webSocket=i,c=!0,n()},i.onerror=function(e){var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)},i.onmessage=function(e){r.logger.log(Os.a.Trace,"(WebSockets transport) data received. "+Object(xs.f)(e.data,r.logMessageContent)+"."),r.onreceive&&r.onreceive(e.data)},i.onclose=function(e){if(c)r.close(e);else{var t=null;t="undefined"!=typeof ErrorEvent&&e instanceof ErrorEvent?e.error:new Error("There was an error with the transport."),o(t)}}}))]}}))}))},e.prototype.send=function(e){return this.webSocket&&this.webSocket.readyState===this.webSocketConstructor.OPEN?(this.logger.log(Os.a.Trace,"(WebSockets transport) sending data. "+Object(xs.f)(e,this.logMessageContent)+"."),this.webSocket.send(e),Promise.resolve()):Promise.reject("WebSocket is not in the OPEN state")},e.prototype.stop=function(){return this.webSocket&&this.close(void 0),Promise.resolve()},e.prototype.close=function(e){this.webSocket&&(this.webSocket.onclose=function(){},this.webSocket.onmessage=function(){},this.webSocket.onerror=function(){},this.webSocket.close(),this.webSocket=void 0),this.logger.log(Os.a.Trace,"(WebSockets transport) socket closed."),this.onclose&&(!e||!1!==e.wasClean&&1e3===e.code?this.onclose():this.onclose(new Error("WebSocket closed with status code: "+e.code+" ("+e.reason+").")))},e}(),Ks=function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){e.done?o(e.value):new n((function(t){t(e.value)})).then(a,c)}u((r=r.apply(e,t||[])).next())}))},Qs=function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:c(0),throw:c(1),return:c(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function c(i){return function(c){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,r=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}},Zs=null,Xs=null;if(xs.c.isNode){var $s=require;Zs=$s("ws"),Xs=$s("eventsource")}var el=function(){function e(e,t){void 0===t&&(t={}),this.features={},this.negotiateVersion=1,xs.a.isRequired(e,"url"),this.logger=Object(xs.e)(t.logger),this.baseUrl=this.resolveUrl(e),(t=t||{}).logMessageContent=t.logMessageContent||!1,xs.c.isNode||"undefined"==typeof WebSocket||t.WebSocket?xs.c.isNode&&!t.WebSocket&&Zs&&(t.WebSocket=Zs):t.WebSocket=WebSocket,xs.c.isNode||"undefined"==typeof EventSource||t.EventSource?xs.c.isNode&&!t.EventSource&&void 0!==Xs&&(t.EventSource=Xs):t.EventSource=EventSource,this.httpClient=t.httpClient||new Rs(this.logger),this.connectionState="Disconnected",this.connectionStarted=!1,this.options=t,this.onreceive=null,this.onclose=null}return e.prototype.start=function(e){return Ks(this,void 0,void 0,(function(){var t;return Qs(this,(function(n){switch(n.label){case 0:return e=e||Is.Binary,xs.a.isIn(e,Is,"transferFormat"),this.logger.log(Os.a.Debug,"Starting connection with transfer format '"+Is[e]+"'."),"Disconnected"!==this.connectionState?[2,Promise.reject(new Error("Cannot start an HttpConnection that is not in the 'Disconnected' state."))]:(this.connectionState="Connecting ",this.startInternalPromise=this.startInternal(e),[4,this.startInternalPromise]);case 1:return n.sent(),"Disconnecting"!==this.connectionState?[3,3]:(t="Failed to start the HttpConnection before stop() was called.",this.logger.log(Os.a.Error,t),[4,this.stopPromise]);case 2:return n.sent(),[2,Promise.reject(new Error(t))];case 3:if("Connected"!==this.connectionState)return t="HttpConnection.startInternal completed gracefully but didn't enter the connection into the connected state!",this.logger.log(Os.a.Error,t),[2,Promise.reject(new Error(t))];n.label=4;case 4:return this.connectionStarted=!0,[2]}}))}))},e.prototype.send=function(e){return"Connected"!==this.connectionState?Promise.reject(new Error("Cannot send data if the connection is not in the 'Connected' State.")):(this.sendQueue||(this.sendQueue=new tl(this.transport)),this.sendQueue.send(e))},e.prototype.stop=function(e){return Ks(this,void 0,void 0,(function(){var t=this;return Qs(this,(function(n){switch(n.label){case 0:return"Disconnected"===this.connectionState?(this.logger.log(Os.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnected state."),[2,Promise.resolve()]):"Disconnecting"===this.connectionState?(this.logger.log(Os.a.Debug,"Call to HttpConnection.stop("+e+") ignored because the connection is already in the disconnecting state."),[2,this.stopPromise]):(this.connectionState="Disconnecting",this.stopPromise=new Promise((function(e){t.stopPromiseResolver=e})),[4,this.stopInternal(e)]);case 1:return n.sent(),[4,this.stopPromise];case 2:return n.sent(),[2]}}))}))},e.prototype.stopInternal=function(e){return Ks(this,void 0,void 0,(function(){var t;return Qs(this,(function(n){switch(n.label){case 0:this.stopError=e,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.startInternalPromise];case 2:return n.sent(),[3,4];case 3:return n.sent(),[3,4];case 4:if(!this.transport)return[3,9];n.label=5;case 5:return n.trys.push([5,7,,8]),[4,this.transport.stop()];case 6:return n.sent(),[3,8];case 7:return t=n.sent(),this.logger.log(Os.a.Error,"HttpConnection.transport.stop() threw error '"+t+"'."),this.stopConnection(),[3,8];case 8:return this.transport=void 0,[3,10];case 9:this.logger.log(Os.a.Debug,"HttpConnection.transport is undefined in HttpConnection.stop() because start() failed."),this.stopConnection(),n.label=10;case 10:return[2]}}))}))},e.prototype.startInternal=function(e){return Ks(this,void 0,void 0,(function(){var t,n,r,o,i,a;return Qs(this,(function(c){switch(c.label){case 0:t=this.baseUrl,this.accessTokenFactory=this.options.accessTokenFactory,c.label=1;case 1:return c.trys.push([1,12,,13]),this.options.skipNegotiation?this.options.transport!==Ns.WebSockets?[3,3]:(this.transport=this.constructTransport(Ns.WebSockets),[4,this.startTransport(t,e)]):[3,5];case 2:return c.sent(),[3,4];case 3:throw new Error("Negotiation can only be skipped when using the WebSocket transport directly.");case 4:return[3,11];case 5:n=null,r=0,o=function(){var e;return Qs(this,(function(o){switch(o.label){case 0:return[4,i.getNegotiationResponse(t)];case 1:if(n=o.sent(),"Disconnecting"===i.connectionState||"Disconnected"===i.connectionState)throw new Error("The connection was stopped during negotiation.");if(n.error)throw new Error(n.error);if(n.ProtocolVersion)throw new Error("Detected a connection attempt to an ASP.NET SignalR Server. This client only supports connecting to an ASP.NET Core SignalR Server. See https://aka.ms/signalr-core-differences for details.");return n.url&&(t=n.url),n.accessToken&&(e=n.accessToken,i.accessTokenFactory=function(){return e}),r++,[2]}}))},i=this,c.label=6;case 6:return[5,o()];case 7:c.sent(),c.label=8;case 8:if(n.url&&r<100)return[3,6];c.label=9;case 9:if(100===r&&n.url)throw new Error("Negotiate redirection limit exceeded.");return[4,this.createTransport(t,this.options.transport,n,e)];case 10:c.sent(),c.label=11;case 11:return this.transport instanceof zs&&(this.features.inherentKeepAlive=!0),"Connecting "===this.connectionState&&(this.logger.log(Os.a.Debug,"The HttpConnection connected successfully."),this.connectionState="Connected"),[3,13];case 12:return a=c.sent(),this.logger.log(Os.a.Error,"Failed to start the connection: "+a),this.connectionState="Disconnected",this.transport=void 0,[2,Promise.reject(a)];case 13:return[2]}}))}))},e.prototype.getNegotiationResponse=function(e){return Ks(this,void 0,void 0,(function(){var t,n,r,o,i,a,c;return Qs(this,(function(u){switch(u.label){case 0:return this.accessTokenFactory?[4,this.accessTokenFactory()]:[3,2];case 1:(r=u.sent())&&((t={}).Authorization="Bearer "+r,n=t),u.label=2;case 2:o=this.resolveNegotiateUrl(e),this.logger.log(Os.a.Debug,"Sending negotiation request: "+o+"."),u.label=3;case 3:return u.trys.push([3,5,,6]),[4,this.httpClient.post(o,{content:"",headers:n})];case 4:return 200!==(i=u.sent()).statusCode?[2,Promise.reject(new Error("Unexpected status code returned from negotiate "+i.statusCode))]:((!(a=JSON.parse(i.content)).negotiateVersion||a.negotiateVersion<1)&&(a.connectionToken=a.connectionId),[2,a]);case 5:return c=u.sent(),this.logger.log(Os.a.Error,"Failed to complete negotiation with the server: "+c),[2,Promise.reject(c)];case 6:return[2]}}))}))},e.prototype.createConnectUrl=function(e,t){return t?e+(-1===e.indexOf("?")?"?":"&")+"id="+t:e},e.prototype.createTransport=function(e,t,n,r){return Ks(this,void 0,void 0,(function(){var o,i,a,c,u,s,l,f,p,h,d;return Qs(this,(function(y){switch(y.label){case 0:return o=this.createConnectUrl(e,n.connectionToken),this.isITransport(t)?(this.logger.log(Os.a.Debug,"Connection was provided an instance of ITransport, using that directly."),this.transport=t,[4,this.startTransport(o,r)]):[3,2];case 1:return y.sent(),this.connectionId=n.connectionId,[2];case 2:i=[],a=n.availableTransports||[],c=n,u=0,s=a,y.label=3;case 3:return u<s.length?(l=s[u],(f=this.resolveTransportOrError(l,t,r))instanceof Error?(i.push(l.transport+" failed: "+f),[3,12]):[3,4]):[3,13];case 4:if(!this.isITransport(f))return[3,12];if(this.transport=f,c)return[3,9];y.label=5;case 5:return y.trys.push([5,7,,8]),[4,this.getNegotiationResponse(e)];case 6:return c=y.sent(),[3,8];case 7:return p=y.sent(),[2,Promise.reject(p)];case 8:o=this.createConnectUrl(e,c.connectionToken),y.label=9;case 9:return y.trys.push([9,11,,12]),[4,this.startTransport(o,r)];case 10:return y.sent(),this.connectionId=c.connectionId,[2];case 11:return h=y.sent(),this.logger.log(Os.a.Error,"Failed to start the transport '"+l.transport+"': "+h),c=void 0,i.push(l.transport+" failed: "+h),"Connecting "!==this.connectionState?(d="Failed to select transport before stop() was called.",this.logger.log(Os.a.Debug,d),[2,Promise.reject(new Error(d))]):[3,12];case 12:return u++,[3,3];case 13:return i.length>0?[2,Promise.reject(new Error("Unable to connect to the server with any of the available transports. "+i.join(" ")))]:[2,Promise.reject(new Error("None of the transports supported by the client are supported by the server."))]}}))}))},e.prototype.constructTransport=function(e){switch(e){case Ns.WebSockets:if(!this.options.WebSocket)throw new Error("'WebSocket' is not supported in your environment.");return new Ys(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.WebSocket);case Ns.ServerSentEvents:if(!this.options.EventSource)throw new Error("'EventSource' is not supported in your environment.");return new Ws(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1,this.options.EventSource);case Ns.LongPolling:return new zs(this.httpClient,this.accessTokenFactory,this.logger,this.options.logMessageContent||!1);default:throw new Error("Unknown transport: "+e+".")}},e.prototype.startTransport=function(e,t){var n=this;return this.transport.onreceive=this.onreceive,this.transport.onclose=function(e){return n.stopConnection(e)},this.transport.connect(e,t)},e.prototype.resolveTransportOrError=function(e,t,n){var r=Ns[e.transport];if(null==r)return this.logger.log(Os.a.Debug,"Skipping transport '"+e.transport+"' because it is not supported by this client."),new Error("Skipping transport '"+e.transport+"' because it is not supported by this client.");if(!function(e,t){return!e||0!=(t&e)}(t,r))return this.logger.log(Os.a.Debug,"Skipping transport '"+Ns[r]+"' because it was disabled by the client."),new Error("'"+Ns[r]+"' is disabled by the client.");if(!(e.transferFormats.map((function(e){return Is[e]})).indexOf(n)>=0))return this.logger.log(Os.a.Debug,"Skipping transport '"+Ns[r]+"' because it does not support the requested transfer format '"+Is[n]+"'."),new Error("'"+Ns[r]+"' does not support "+Is[n]+".");if(r===Ns.WebSockets&&!this.options.WebSocket||r===Ns.ServerSentEvents&&!this.options.EventSource)return this.logger.log(Os.a.Debug,"Skipping transport '"+Ns[r]+"' because it is not supported in your environment.'"),new Error("'"+Ns[r]+"' is not supported in your environment.");this.logger.log(Os.a.Debug,"Selecting transport '"+Ns[r]+"'.");try{return this.constructTransport(r)}catch(e){return e}},e.prototype.isITransport=function(e){return e&&"object"==typeof e&&"connect"in e},e.prototype.stopConnection=function(e){var t=this;if(this.logger.log(Os.a.Debug,"HttpConnection.stopConnection("+e+") called while in state "+this.connectionState+"."),this.transport=void 0,e=this.stopError||e,this.stopError=void 0,"Disconnected"!==this.connectionState)if("Connecting "!==this.connectionState){if("Disconnecting"===this.connectionState&&this.stopPromiseResolver(),e?this.logger.log(Os.a.Error,"Connection disconnected with error '"+e+"'."):this.logger.log(Os.a.Information,"Connection disconnected."),this.sendQueue&&(this.sendQueue.stop().catch((function(e){t.logger.log(Os.a.Error,"TransportSendQueue.stop() threw error '"+e+"'.")})),this.sendQueue=void 0),this.connectionId=void 0,this.connectionState="Disconnected",this.connectionStarted){this.connectionStarted=!1;try{this.onclose&&this.onclose(e)}catch(t){this.logger.log(Os.a.Error,"HttpConnection.onclose("+e+") threw error '"+t+"'.")}}}else this.logger.log(Os.a.Warning,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection hasn't yet left the in the connecting state.");else this.logger.log(Os.a.Debug,"Call to HttpConnection.stopConnection("+e+") was ignored because the connection is already in the disconnected state.")},e.prototype.resolveUrl=function(e){if(0===e.lastIndexOf("https://",0)||0===e.lastIndexOf("http://",0))return e;if(!xs.c.isBrowser||!window.document)throw new Error("Cannot resolve '"+e+"'.");var t=window.document.createElement("a");return t.href=e,this.logger.log(Os.a.Information,"Normalizing '"+e+"' to '"+t.href+"'."),t.href},e.prototype.resolveNegotiateUrl=function(e){var t=e.indexOf("?"),n=e.substring(0,-1===t?e.length:t);return"/"!==n[n.length-1]&&(n+="/"),n+="negotiate",-1===(n+=-1===t?"":e.substring(t)).indexOf("negotiateVersion")&&(n+=-1===t?"?":"&",n+="negotiateVersion="+this.negotiateVersion),n},e}();var tl=function(){function e(e){this.transport=e,this.buffer=[],this.executing=!0,this.sendBufferedData=new nl,this.transportResult=new nl,this.sendLoopPromise=this.sendLoop()}return e.prototype.send=function(e){return this.bufferData(e),this.transportResult||(this.transportResult=new nl),this.transportResult.promise},e.prototype.stop=function(){return this.executing=!1,this.sendBufferedData.resolve(),this.sendLoopPromise},e.prototype.bufferData=function(e){if(this.buffer.length&&typeof this.buffer[0]!=typeof e)throw new Error("Expected data to be of type "+typeof this.buffer+" but was of type "+typeof e);this.buffer.push(e),this.sendBufferedData.resolve()},e.prototype.sendLoop=function(){return Ks(this,void 0,void 0,(function(){var t,n,r;return Qs(this,(function(o){switch(o.label){case 0:return[4,this.sendBufferedData.promise];case 1:if(o.sent(),!this.executing)return this.transportResult&&this.transportResult.reject("Connection stopped."),[3,6];this.sendBufferedData=new nl,t=this.transportResult,this.transportResult=void 0,n="string"==typeof this.buffer[0]?this.buffer.join(""):e.concatBuffers(this.buffer),this.buffer.length=0,o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.transport.send(n)];case 3:return o.sent(),t.resolve(),[3,5];case 4:return r=o.sent(),t.reject(r),[3,5];case 5:return[3,0];case 6:return[2]}}))}))},e.concatBuffers=function(e){for(var t=e.map((function(e){return e.byteLength})).reduce((function(e,t){return e+t})),n=new Uint8Array(t),r=0,o=0,i=e;o<i.length;o++){var a=i[o];n.set(new Uint8Array(a),r),r+=a.byteLength}return n},e}(),nl=function(){function e(){var e=this;this.promise=new Promise((function(t,n){var r;return r=[t,n],e.resolver=r[0],e.rejecter=r[1],r}))}return e.prototype.resolve=function(){this.resolver()},e.prototype.reject=function(e){this.rejecter(e)},e}(),rl=n(100),ol=n(106),il=function(){function e(){this.name="json",this.version=1,this.transferFormat=Is.Text}return e.prototype.parseMessages=function(e,t){if("string"!=typeof e)throw new Error("Invalid input for JSON hub protocol. Expected a string.");if(!e)return[];null===t&&(t=rl.a.instance);for(var n=[],r=0,o=ol.a.parse(e);r<o.length;r++){var i=o[r],a=JSON.parse(i);if("number"!=typeof a.type)throw new Error("Invalid payload.");switch(a.type){case ms.Invocation:this.isInvocationMessage(a);break;case ms.StreamItem:this.isStreamItemMessage(a);break;case ms.Completion:this.isCompletionMessage(a);break;case ms.Ping:case ms.Close:break;default:t.log(Os.a.Information,"Unknown message type '"+a.type+"' ignored.");continue}n.push(a)}return n},e.prototype.writeMessage=function(e){return ol.a.write(JSON.stringify(e))},e.prototype.isInvocationMessage=function(e){this.assertNotEmptyString(e.target,"Invalid payload for Invocation message."),void 0!==e.invocationId&&this.assertNotEmptyString(e.invocationId,"Invalid payload for Invocation message.")},e.prototype.isStreamItemMessage=function(e){if(this.assertNotEmptyString(e.invocationId,"Invalid payload for StreamItem message."),void 0===e.item)throw new Error("Invalid payload for StreamItem message.")},e.prototype.isCompletionMessage=function(e){if(e.result&&e.error)throw new Error("Invalid payload for Completion message.");!e.result&&e.error&&this.assertNotEmptyString(e.error,"Invalid payload for Completion message."),this.assertNotEmptyString(e.invocationId,"Invalid payload for Completion message.")},e.prototype.assertNotEmptyString=function(e,t){if("string"!=typeof e||""===e)throw new Error(t)},e}(),al=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},cl={trace:Os.a.Trace,debug:Os.a.Debug,info:Os.a.Information,information:Os.a.Information,warn:Os.a.Warning,warning:Os.a.Warning,error:Os.a.Error,critical:Os.a.Critical,none:Os.a.None};var ul=function(){function e(){}return e.prototype.configureLogging=function(e){if(xs.a.isRequired(e,"logging"),void 0!==e.log)this.logger=e;else if("string"==typeof e){var t=function(e){var t=cl[e.toLowerCase()];if(void 0!==t)return t;throw new Error("Unknown log level: "+e)}(e);this.logger=new xs.b(t)}else this.logger=new xs.b(e);return this},e.prototype.withUrl=function(e,t){return xs.a.isRequired(e,"url"),this.url=e,this.httpConnectionOptions=al({},this.httpConnectionOptions,"object"==typeof t?t:{transport:t}),this},e.prototype.withHubProtocol=function(e){return xs.a.isRequired(e,"protocol"),this.protocol=e,this},e.prototype.withAutomaticReconnect=function(e){if(this.reconnectPolicy)throw new Error("A reconnectPolicy has already been set.");return e?Array.isArray(e)?this.reconnectPolicy=new Ms(e):this.reconnectPolicy=e:this.reconnectPolicy=new Ms,this},e.prototype.build=function(){var e=this.httpConnectionOptions||{};if(void 0===e.logger&&(e.logger=this.logger),!this.url)throw new Error("The 'HubConnectionBuilder.withUrl' method must be called before building the connection.");var t=new el(this.url,e);return Ds.create(t,this.logger||rl.a.instance,this.protocol||new il,this.reconnectPolicy)},e}();function sl(e){return(sl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ll(e){return function(e){if(Array.isArray(e))return fl(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return fl(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fl(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fl(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function pl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hl(e,t){return(hl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vl(e);if(t){var o=vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yl(this,n)}}function yl(e,t){return!t||"object"!==sl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vl(e){return(vl=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function gl(e){return(gl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ml(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wl(e,t){return(wl=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Ol(e);if(t){var o=Ol(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cl(this,n)}}function Cl(e,t){return!t||"object"!==gl(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ol(e){return(Ol=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kl=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wl(e,t)}(i,e);var t,n,r,o=Sl(i);function i(){return ml(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return qn.Notifications}}])&&bl(t.prototype,n),r&&bl(t,r),i}(function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hl(e,t)}(i,e);var t,n,r,o=dl(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this)).subscribeEvent="subscribe",t.reconnectTimeout=5e3,t.reconnectAttempts=100,t.reconnectTries=0,t.connection=t.createConnection(e),t.authEndpoint=e.authEndpoint,t.setProviderOptions(e),t.attachSocketEvents(),!1===e.lazy&&t.openConnection(),t}return t=i,(n=[{key:"setProviderOptions",value:function(e){e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}},{key:"openConnection",value:function(){if(!this.isConnectedOrConnecting())return this.setConnectionState(Ts.Connecting),this.connect()}},{key:"connect",value:function(){var e=this;return $.when(this.getConnectionToken(),this.connection.start()).then((function(t){return e.start.apply(e,t)}),(function(t){return e.onConnectionError.apply(e,t)}))}},{key:"start",value:function(e){var t=this;return this.connection.invoke(this.subscribeEvent,e.token).then((function(){return t.setConnectionState(Ts.Connected)})).catch((function(e){return t.onConnectionError(e)}))}},{key:"stop",value:function(){if(this.isConnectedOrConnecting())return this.connection.stop()}},{key:"attachSocketEvents",value:function(){var e=this;this.connection.onclose((function(){return e.onConnectionError})),this.connection.onreconnected((function(){return e.onReconnect}))}},{key:"onReconnect",value:function(){this.reconnectTries=0}},{key:"onConnectionError",value:function(e){var t=this;e?console.log("Connection Error. Reason: ".concat(e)):console.log("Connection Error."),this.setConnectionState(Ts.Disconnected),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout((function(){return t.reconnectTries++,t.openConnection()}),this.reconnectTimeout||5e3)}},{key:"createConnection",value:function(e){var t=new ul,n=Gr.a.removeTrailingSlash(e.endpoint),r="".concat(n,"/hubs/").concat(e.hubName),o={logger:Os.a.Error};return e.logging&&(o.logger=Os.a.Debug),t.withUrl(r,o).build()}},{key:"getConnectionToken",value:function(){var e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}},{key:"setConnectionState",value:function(e){e===Ts.Connected&&console.log("Connected!"),e===Ts.Disconnected&&console.log("Disconnected!"),this.connectionState=e}},{key:"isConnectedOrConnecting",value:function(){return this.connectionState===Ts.Connecting||this.connectionState===Ts.Connected||this.connectionState===Ts.Reconnecting}},{key:"create",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"read",value:function(e,t){this.openConnection(),this.subscribe(e,t)}},{key:"update",value:function(e,t,n){this.openConnection(),this.rpc(e,t,n)}},{key:"delete",value:function(e,t){this.openConnection(),this.rpc(e,null,t)}},{key:"parseError",value:function(){return Jn.a}},{key:"rpc",value:function(e,t,n){var r=n.channel,o=n.successEvent,i=n.errorEvent;this.connection.invoke(e,t).then((function(e){return r.trigger.apply(r,[o].concat(ll(e)))})).catch((function(e){return r.trigger.apply(r,[i].concat(ll(e)))}))}},{key:"subscribe",value:function(e,t){var n=t.channel,r=t.successEvent;t.errorEvent,this.connection.on(e,(function(){for(var e=arguments.length,t=new Array(e),o=0;o<e;o++)t[o]=arguments[o];n.trigger.apply(n,[r].concat(t))}))}}])&&pl(t.prototype,n),r&&pl(t,r),i}(Wn.Object));function El(e){return(El="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Pl(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _l(e,t){return(_l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Tl(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Al(e);if(t){var o=Al(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xl(this,n)}}function xl(e,t){return!t||"object"!==El(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Al(e){return(Al=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ll=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_l(e,t)}(c,e);var t,n,o,i=Tl(c);function c(){return Pl(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(u.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(ur.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(ur.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}},{key:"getSearchContext",value:function(){return this.searchContext}},{key:"onRouteChange",value:function(e,t){t.isAppRoute&&this.setSearchContext(e)}},{key:"onTypeaheadToggle",value:function(e){if(!e.open&&!this.searchContext.get("filterValue")){var t=Qi.a.getCurrentContext().appLink;this.setSearchContext(t)}}},{key:"setSearchContext",value:function(e){var t=this.isValidSearchContext(e);t?this.updateSearchContext(t,e.args):this.inSearchView(e)||a.Radio.channel(ur.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}},{key:"updateSearchContext",value:function(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}},{key:"setFilterValue",value:function(e){var t={filterValue:e,title:e};this.searchContext.set(t)}},{key:"resetSearchContext",value:function(){this.searchContext.clear({silent:!0})}},{key:"isValidSearchContext",value:function(e){return this.appVariables||(this.appVariables=k.a.getInstance(Rt.a.SEARCH,this)),An.find((t=this.lang,n=this.appVariables.appLinks,r=[],n.folder&&r.push({appLink:n.folder,searchTag:Jr.a.getPhrase(t,"folderTag"),filterParam:"folder",setFilterValue:function(e,t){k.a.getInstance(ar.a.Library,t).getFolder(An.first(e.appLink.args).toString(),(function(e){t.setFilterValue(e.get("name")),k.a.releaseInstance(ar.a.Library)}))}}),n.series&&r.push({appLink:n.series,searchTag:Jr.a.getPhrase(t,"seriesTag"),filterParam:"series",setFilterValue:function(e,t){k.a.getInstance(ar.a.Series,t).getSeries(An.first(e.appLink.args).toString(),(function(e){t.setFilterValue(e.name),k.a.releaseInstance(ar.a.Series)}))}}),r),(function(t){return e.application===t.appLink.application&&e.action===t.appLink.action}));var t,n,r}},{key:"inSearchView",value:function(e){var t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}},{key:"name",get:function(){return ar.b.ContextualSearch}},{key:"lang",get:function(){return"search.services"}}])&&Rl(t.prototype,n),o&&Rl(t,o),c}(r.a.Service),jl=n(239);function Nl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Il=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"clearVideoCache",value:function(){this.store.dispatch({type:zo.a.Actions.INVALIDATE,keys:["video"],request:null})}},{key:"getVideos",value:function(e,t){var n=function(e){xo.a.isFunction(t)&&t(new r.a.Collection(e))},o=jl.a.videos(e,n),i=zo.a.getResponse(this.store.getState(),o.key);return i.shouldFetch?zo.a.fetch(this.store.dispatch,o):n(i.data),new r.a.Collection(i.data)}},{key:"name",get:function(){return P.a.Video}}])&&Nl(t.prototype,n),o&&Nl(t,o),e}();function Dl(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var Ul,Ml,Fl=function(e,t){return{url:"/api/domain/v2/process?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:clear:".concat(e.join(",")),success:t,normalize:!1,type:Gn.a.DELETE}},Vl=function(e,t){return{url:"/api/domain/v2/process/cancel?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:cancel:".concat(e.join(",")),success:t,normalize:!1,type:Gn.a.DELETE}},Hl=function(e,t){return{url:"/api/domain/v2/process/retry?".concat(e.map((function(e){return"pendingProcessId=".concat(e)}))),key:"pending:retry:".concat(e.join(",")),success:t,normalize:!1,type:Gn.a.POST}},zl=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},Bl=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},ql=function(e,t){return{url:"/api/domain/v2/process",key:"complete:upload:".concat(e.id),type:Gn.a.POST,success:t,data:e}},Wl=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t.store}var t,n,o;return t=e,(n=[{key:"clearPendingItems",value:function(e,t){zo.a.fetch(this.store.dispatch,Fl(e,t))}},{key:"cancelPendingItems",value:function(e,t){zo.a.fetch(this.store.dispatch,Vl(e,t))}},{key:"retryPendingItems",value:function(e,t){zo.a.fetch(this.store.dispatch,Hl(e,t))}},{key:"getPendingItem",value:function(e,t){zo.a.fetch(this.store.dispatch,zl(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){zo.a.fetch(this.store.dispatch,Bl(e))}},{key:"completeVideoUpload",value:function(e,t){zo.a.fetch(this.store.dispatch,ql(e,t))}},{key:"name",get:function(){return P.a.VideoUpload}}])&&Dl(t.prototype,n),o&&Dl(t,o),e}(),Jl=n(252);!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(Ul||(Ul={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}(Ml||(Ml={}));var Gl=["pdf"],Yl=["doc","docx","dotx","dot","rtf","docm","odt"],Kl=["csv","txt"],Ql=["xls","xlt","xlsx"],Zl=["jpg","tif","png","bmp","gif","jpeg"],Xl=["zip","rar"],$l=["ppt","pot","pps","pptx"],ef=["srt"],tf={IMAGES:".".concat(Zl.join(",.")),RESOURCES:".".concat([].concat(Yl,Ql,$l,Gl,Kl,Zl,Xl).join(",.")),SUBTITLES:".".concat(ef.join(",."))};function nf(e){return(nf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function of(e,t){return(of=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function af(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=uf(e);if(t){var o=uf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cf(this,n)}}function cf(e,t){return!t||"object"!==nf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function uf(e){return(uf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var sf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&of(e,t)}(i,e);var t,n,r,o=af(i);function i(e,t,n){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"FileTypeError"}},{key:"lang",get:function(){return"upload.fileType"}},{key:"dialogOptions",get:function(){return{title:Jr.a.getPhrase(this.lang,"heading"),text:Jr.a.getPhrase(this.lang,"body"),buttons:[{text:Jr.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:Jr.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}])&&rf(t.prototype,n),r&&rf(t,r),i}(_i),lf=n(234);function ff(e){return(ff="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function pf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function hf(e,t){return(hf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function df(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=vf(e);if(t){var o=vf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yf(this,n)}}function yf(e,t){return!t||"object"!==ff(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function vf(e){return(vf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var gf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&hf(e,t)}(i,e);var t,n,r,o=df(i);function i(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Jr.a.getPhrase("upload.internetConnectivityError","title"))}return t=i,(n=[{key:"name",get:function(){return"InternetConnectivityError"}},{key:"dialogOptions",get:function(){return{title:Jr.a.getPhrase("upload.internetConnectivityError","heading"),text:Jr.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:Jr.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}])&&pf(t.prototype,n),r&&pf(t,r),i}(_i);function mf(e){return(mf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function bf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function wf(e,t){return(wf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Sf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Of(e);if(t){var o=Of(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cf(this,n)}}function Cf(e,t){return!t||"object"!==mf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Of(e){return(Of=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var kf,Ef,Pf=[],Rf=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&wf(e,t)}(c,e);var t,n,o,i=Sf(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,o=[{key:"isValidFile",value:function(e,t){return lf.isValidFile(e,t)}}],(n=[{key:"initialize",value:function(e){var t=this.options.loggingEnabled,n=a.Radio.channel(e.channelName),o=this;this.dropzone=new lf(document.createElement("div"),{url:function(e){return e[0].cvUpload.ingestUrl},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){var e=this;t&&(An.each(Pf,(function(t){e.on(t,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=n[0]instanceof File?n[0].name:n[0];console.info(t,o,n)}))})),this.on("uploadprogress",(function(e,t,r){var i=r/e.size*100;n.trigger("progress",o.getId(e),i,r)})),this.on("success",(function(e){var t=e.upload.chunks,r=An.last(t),o=r.xhr;o||(o=r.file.xhr);var i=JSON.parse(o.response);e.cvUpload.fileUrl=i.url,n.trigger("upload:success",e,i)})),this.on("error",(function(e,t,n){n&&0===n.status?r.a.ErrorHelper.throw(new gf):"canceled"!==e.status&&r.a.ErrorHelper.throw(new hi(Jr.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))})))},params:function(e,t,n){if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:function(){},thumbnail:function(){},uploadprogress:function(){}})}},{key:"getId",value:function(e){return e.upload.uuid}},{key:"addFile",value:function(e){this.dropzone.addFile(e)}},{key:"removeFile",value:function(e){this.dropzone.removeFile(e)}},{key:"start",value:function(){this.dropzone.processQueue()}},{key:"destroy",value:function(){this.dropzone.destroy()}},{key:"name",get:function(){return"DropzoneWrapper"}}])&&bf(t.prototype,n),o&&bf(t,o),c}(r.a.Service);function _f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tf(e){return(Tf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Af(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Lf(e,t,n){return t&&Af(e.prototype,t),n&&Af(e,n),e}function jf(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Nf(e,t)}function Nf(e,t){return(Nf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function If(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Uf(e);if(t){var o=Uf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Df(this,n)}}function Df(e,t){return!t||"object"!==Tf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Uf(e){return(Uf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mf,Ff=function(e){jf(n,e);var t=If(n);function n(){return xf(this,n),t.call(this,{dataProvider:k.a.getInstance(qn.Ajax),cache:k.a.getInstance(xn.Fifo),alertService:k.a.getInstance(or.a.ALERT)})}return Lf(n,[{key:"requestUploads",value:function(e,t,n,r){var o=this,i=this.chain();An.each(e,(function(e){i.create({resource:"/api/upload",eventPrefix:"request:upload",data:o.getFileUploadRequest(e,t),callback:function(t){n(e,t)}})})),i.func((function(){r()})).run()}},{key:"cancelUpload",value:function(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}},{key:"getFileUploadRequest",value:function(e,t){var n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}},{key:"onDestroy",value:function(){k.a.releaseInstance(qn.Ajax).releaseInstance(xn.Fifo)}},{key:"name",get:function(){return"UploadDataService"}},{key:"channelName",get:function(){return"private:upload:data:service"}}]),n}(ir.a);!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(Mf||(Mf={}));var Vf,Hf,zf=(_f(kf={},Mf.Video,"video/*"),_f(kf,Mf.LearningResource,tf.RESOURCES),_f(kf,Mf.Subtitle,tf.SUBTITLES),kf),Bf=(_f(Ef={},Mf.Video,ur.c.VIDEO_UPLOAD),_f(Ef,Mf.LearningResource,ur.c.RESOURCE_UPLOAD),_f(Ef,Mf.Subtitle,ur.c.SUBTITLE_UPLOAD),Ef),qf=function(e){jf(n,e);var t=If(n);function n(){return xf(this,n),t.apply(this,arguments)}return Lf(n,[{key:"initialize",value:function(){this.uploadDataService=new Ff,this.progressViewModel=na.a.get("upload:progress:".concat(this.uploadType)),this.bindListeners()}},{key:"initUploader",value:function(e,t){if(!this.uploader){var n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new Rf({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}},{key:"onProgress",value:function(e,t,n){var r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}},{key:"isUploading",value:function(){return!!this.getCollection().length}},{key:"getCollection",value:function(){return this.collection||(this.collection=new r.a.Collection),this.collection}},{key:"setOverallProgress",value:function(){var e=0,t=0,n=this.getCollection();if(n.length){n.each((function(n){e+=n.get("totalUploaded")||0,t+=n.get("file").size||0}));var r=e/t*100,o=r>100;this.progressViewModel.set({progress:o?100:r,done:o})}else this.progressViewModel.set({progress:0})}},{key:"isValidFile",value:function(e){return Rf.isValidFile(e,this.getAcceptedFiles())}},{key:"addFiles",value:function(e,t){var n=this;An.any(e,(function(e){return!n.isValidFile(e)}))?r.a.ErrorHelper.throw(new sf(Jr.a.getPhrase(this.lang,"invalidFileType"),e,this.getAcceptedFiles())):this.requestUploads(e,t)}},{key:"requestUploads",value:function(e,t){var n=this,r=this.isUploading(),o=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(function(e,t){n.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},n.uploader.addFile(e);var r=e.name;n.uploadType===Mf.Video&&(r=r.replace(/\.[^/.]+$/,"")),o.add({id:n.uploader.getId(e),file:e,name:r},{at:o.length-1})}),(function(){t&&ea.a.logUserAction({uploadCount:e.length},t),a.Radio.channel(n.channelName).trigger(ts.a.FILES_ADDED,e,r)}))}},{key:"addFile",value:function(e,t){this.addFiles([e],t)}},{key:"cancelUpload",value:function(e){var t=this,n=this.getCollection(),r=n.get(e);if(r){var o=r.get("file");this.uploader.removeFile(o),n.remove(r),this.uploadDataService.cancelUpload(o.cvUpload.uploadId,o.cvUpload.ingestUrl,(function(){ea.a.logUserAction({id:o.cvUpload.uploadId},{entity:w.d.Video,actionType:w.n.Upload,workflowPhase:w.o.Discard,descriptor:w.k.Single,location:w.j.MyUploads}),a.Radio.channel(t.channelName).trigger(ts.a.UPLOAD_CANCELLED)})),this.setOverallProgress()}}},{key:"onSuccess",value:function(e,t){var n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),ea.a.logUserAction({id:e.cvUpload.uploadId},{entity:w.d.Video,actionType:w.n.Upload,workflowPhase:w.o.Complete,descriptor:w.k.Single,location:w.j.VideoUpload}),a.Radio.channel(this.channelName).trigger(ts.a.UPLOAD_COMPLETE,r)}},{key:"cancelAllUploads",value:function(){var e=this,t=this.getCollection().map((function(e){return e.get("id")}));An.each(t,(function(t){return e.cancelUpload(t)}))}},{key:"getAcceptedFiles",value:function(){return zf[this.uploadType]}},{key:"channelName",get:function(){return Bf[this.uploadType]}},{key:"lang",get:function(){return"upload.services"}}]),n}(r.a.Service),Wf=function(e){jf(n,e);var t=If(n);function n(){return xf(this,n),t.apply(this,arguments)}return Lf(n,[{key:"uploadType",get:function(){return Mf.Video}},{key:"name",get:function(){return ar.b.VideoUpload}},{key:"fileLifestyle",get:function(){return Ml.Temporary}}]),n}(qf);function Jf(e){return(Jf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Gf(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Yf(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Kf(e,t,n){return(Kf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=$f(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(n):o.value}})(e,t,n||e)}function Qf(e,t){return(Qf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Zf(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=$f(e);if(t){var o=$f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xf(this,n)}}function Xf(e,t){return!t||"object"!==Jf(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $f(e){return($f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e[e.IosApp=1]="IosApp",e[e.AndroidApp=2]="AndroidApp",e[e.WinApp=3]="WinApp",e[e.LibraryPublisher=4]="LibraryPublisher",e[e.ExchangeClient=5]="ExchangeClient",e[e.Online=6]="Online",e[e.Tinder=7]="Tinder",e[e.Cloud247=8]="Cloud247",e[e.Livestream=9]="Livestream",e[e.Curator=10]="Curator",e[e.LibraryEditor=11]="LibraryEditor",e[e.Lite=12]="Lite"}(Vf||(Vf={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(Hf||(Hf={}));var ep=Jr.a.encloseNamespace("upload.services"),tp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Qf(e,t)}(i,e);var t,n,r,o=Zf(i);function i(){return Gf(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"initialize",value:function(){Kf($f(i.prototype),"initialize",this).call(this),this.videoUploadDataService=k.a.getInstance(P.a.VideoUpload,this),this.pendingItemsService=k.a.getInstance(P.b.PendingItems,this),this.userDataService=k.a.getInstance(P.a.User,this),this.alertService=k.a.getInstance(or.a.ALERT,this),this.listenTo(this.channelName,ts.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,ts.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,ts.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:rr.a.Success,heading:ep("startUploadAlertHeading"),message:1===e.length?ep("startUploadSingleAlertBody",{videoName:e[0].name}):ep("startUploadMultipleAlertBody",{uploadCount:e.length})},n=Qi.a.getCurrentContext().appLink;!!Ac.a.getMyVideosAppLinks().find((function(e){return n.application===e.application&&n.action===e.action}))||(t.appLinkText=ep("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:O.a.DEFAULT,action:E.a.Default.MY_VIDEOS},t.appLinkClassName="info-link"),this.alertService.createAlert(t)}},{key:"unlockNav",value:function(){this.getCollection().some((function(e){return e.get("progress")<100}))||a.Radio.channel(this.channelName).trigger(ts.a.UNLOCK_NAV)}},{key:"getUpload",value:function(e){var t=this.uploader.getId(e);return this.getCollection().get(t)}},{key:"completeUpload",value:function(e,t){var n=this;e.set("sending",!0),this.userDataService.getCurrentUser((function(r){n.userDataService.getWorkspace((function(o){n.videoUploadDataService.completeVideoUpload({id:e.get("id"),userId:r.id,customerId:r.customerId,libraryId:o.id,categoryId:o.categoryTree.id,pendingProcessOrigin:Ul.Upload,origin:Vf.Lite,fileUrl:t.url,subtitleOptions:{subtitleExtractOptions:Hf.EmbeddedOnly},video:{name:e.get("name"),description:e.get("description")}},(function(t){e.set("pendingProcessId",t.pendingProcessId),n.pendingItemsService.forceFetchPendingItems({resetTimeout:!0})}))}))}))}},{key:"onSuccess",value:function(e,t){var n=this;Kf($f(i.prototype),"onSuccess",this).call(this,e,t);var r=this.getUpload(e);r.get("editingMetadata")?this.listenToOnce(r,"change:editingMetadata",(function(){n.completeUpload(r,t)})):this.completeUpload(r,t)}}])&&Yf(t.prototype,n),r&&Yf(t,r),i}(Wf);function np(e){return(np="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function rp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function op(e,t){return(op=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ip(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=cp(e);if(t){var o=cp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ap(this,n)}}function ap(e,t){return!t||"object"!==np(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function cp(e){return(cp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var up=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&op(e,t)}(i,e);var t,n,r,o=ip(i);function i(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),(t=o.call(this,e)).imageUrls=e.imageUrls,t}return t=i,(n=[{key:"getImageUrls",value:function(){return this.imageUrls}},{key:"name",get:function(){return ar.b.ImageUrl}}])&&rp(t.prototype,n),r&&rp(t,r),i}(r.a.Service),sp={EmptyStates:{VIDEOS:""},ErrorViews:{DEFAULT:""}};var lp=n(202),fp=n(57),pp=n(183);function hp(e,t){return fp.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}var dp={version:null};function yp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:dp,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case pp.a.API_REPONSE:return hp(e,t)}return e}var vp=n(193);function gp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mp(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),gp({},t.payload.viewModelKey,Object.assign(Object.assign({},e[t.payload.viewModelKey]),gp({},t.payload.dataOrKey,t.payload.keyData)))):Object.assign(Object.assign({},e),gp({},t.payload.viewModelKey,t.payload.dataOrKey))}function bp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;switch(t.type){case vp.a.UPDATE:return mp(e,t)}return e}var wp=n(185),Sp=n(160);function Cp(e,t){var n,r,o,i=Object(lp.combineReducers)({flightData:zo.a.FlightReducer,applicationData:yp,viewModelData:bp}),a=zo.a.createMiddleware({fetchData:zo.a.ajaxRequest,bootstrappedData:window.bootstrapData||{},defaultExpiryTime:pr.a.STANDARD}),c=(n={oldVersionError:new Ln.a("A new version is available"),authenticationError:new Ln.a("Authentication Error")},r=n.oldVersionError,o=n.authenticationError,function(e){return function(t){return function(n){var i,a,c,u;if(n.type===wp.Actions.API_REPONSE){var s=n,l=e.getState().applicationData.version,f=null===(a=null===(i=s)||void 0===i?void 0:i.xhr)||void 0===a?void 0:a.getResponseHeader("X-App-Version");r&&l&&f&&f!==l&&Nn.c.throw(r),o&&(null===(u=null===(c=s)||void 0===c?void 0:c.xhr)||void 0===u?void 0:u.status)===Sp.a.Unauthorized&&Nn.c.throw(o),t(n)}else t(n)}}});var u,s=Object(lp.createStore)(i,Object(lp.applyMiddleware)(a,c));u=s,e.registerStore(u),t(),delete window.bootstrapData}var Op=n(158);function kp(e){return(kp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ep(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Rp(e,t){return(Rp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=xp(e);if(t){var o=xp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tp(this,n)}}function Tp(e,t){return!t||"object"!==kp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xp(e){return(xp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ap=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Rp(e,t)}(i,e);var t,n,r,o=_p(i);function i(){return Ep(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{searchResults:{application:O.a.SEARCH,action:E.a.Search.HOME},series:{application:O.a.DEFAULT,action:E.a.Default.SERIES},videoDetails:{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO},tagSearch:{application:O.a.SEARCH,action:E.a.Search.HOME},classification:{application:O.a.SUBJECT,action:E.a.Subjects.CLASSIFICATION}}}},{key:"addSlugs",get:function(){return!0}},{key:"searchBarPlaceholder",get:function(){return Jr.a.getPhrase("search.searchAppVariables","searchBarPlaceholder")}}])&&Pp(t.prototype,n),r&&Pp(t,r),i}(Op.b),Lp=n(50);function jp(e){return(jp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Np(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ip(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Dp(e,t){return(Dp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Up(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Fp(e);if(t){var o=Fp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mp(this,n)}}function Mp(e,t){return!t||"object"!==jp(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Fp(e){return(Fp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vp=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dp(e,t)}(i,e);var t,n,r,o=Up(i);function i(){return Np(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:O.a.DEFAULT,action:E.a.Default.PLAY_VIDEO},notifications:{application:O.a.NOTIFICATIONS,action:E.a.Notifications.HOME},pastReleases:{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME},awaitingReview:{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME},editStaffRequest:{application:O.a.DASHBOARD,action:E.a.Dashboard.HOME}}}},{key:"notificationTypesWithAppLinks",get:function(){return[Lp.a.VideoReviewReminder,Lp.a.VideoReviewAddedToLibrary,Lp.a.CustomLibraryVideoAvailable,Lp.a.WorkspaceVideoAvailable,Lp.a.ExchangeVideoAvailable]}},{key:"notificationsEmptyStateUrl",get:function(){return""}},{key:"bellIconColor",get:function(){return"dark"}}])&&Ip(t.prototype,n),r&&Ip(t,r),i}(Op.a);function Hp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var zp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hasCompletedOnboarding=t.hasCompletedOnboarding}var t,n,r;return t=e,(n=[{key:"name",get:function(){return Rt.a.SUBJECTS}}])&&Hp(t.prototype,n),r&&Hp(t,r),e}();var Bp=n(25);function qp(e){return(qp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Wp={register:function(){var e=this;Bp.registerHelper("lang",(function(t,n){if(e.isValid(t,n)){var r=n.data.root.languageNamespace;return Jr.a.getPhrase(r,t,n.hash)}}))},isValid:function(e,t){return"string"!=typeof e?(r.a.ErrorHelper.throw(new Ln.a("No language key provided.")),!1):"object"!==qp(t)?(r.a.ErrorHelper.throw(new Ln.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!An.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new Ln.a("No `lang` property provided.")),!1)}};var Jp,Gp=n(159);function Yp(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}!function(e){e[e.Unclassified=0]="Unclassified",e[e.Primary=1]="Primary",e[e.Secondary=2]="Secondary",e[e.K12=3]="K12",e[e.Tertiary=4]="Tertiary",e[e.NonEducational=5]="NonEducational",e[e.Partners=6]="Partners",e[e.Internal=7]="Internal",e[e.Other=8]="Other"}(Jp||(Jp={}));var Kp={curriculum:!1},Qp=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=Object.assign({onlineModules:Kp},t)}var t,n,r;return t=e,(n=[{key:"name",get:function(){return ar.b.AppOptions}},{key:"hasCurriculum",get:function(){return this.options.onlineModules.curriculum}},{key:"isTeacher",get:function(){return this.options.onlineRole===Gp.a.Staff}},{key:"onlineRole",get:function(){return this.options.onlineRole}},{key:"onlineCustomerType",get:function(){return this.options.customerType}}])&&Yp(t.prototype,n),r&&Yp(t,r),e}();var Zp=n(101),Xp=n(191),$p=n(190);function eh(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function th(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function nh(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ih(e);if(t){var o=ih(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return oh(this,n)}}function oh(e,t){return!t||"object"!==eh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ih(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}r.a.Service;function ah(e){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ch(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function uh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function sh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&lh(e,t)}function lh(e,t){return(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function fh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=hh(e);if(t){var o=hh(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return ph(this,n)}}function ph(e,t){return!t||"object"!==ah(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function hh(e){return(Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}Wn.Object;function dh(e){return(dh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function yh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function gh(e,t){return(gh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function mh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=wh(e);if(t){var o=wh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bh(this,n)}}function bh(e,t){return!t||"object"!==dh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function wh(e){return(wh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Sh=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&gh(e,t)}(i,e);var t,n,r,o=mh(i);function i(){return yh(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"enrich",value:function(e,t){}},{key:"isType",value:function(e){return e===i.type}}])&&vh(t.prototype,n),r&&vh(t,r),i}(r.a.Service);Sh.type="BaseAnalyticsEnricher";n(228);var Ch="URLSearchParams"in self,Oh="Symbol"in self&&"iterator"in Symbol,kh="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),Eh="FormData"in self,Ph="ArrayBuffer"in self;if(Ph)var Rh=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],_h=ArrayBuffer.isView||function(e){return e&&Rh.indexOf(Object.prototype.toString.call(e))>-1};function Th(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function xh(e){return"string"!=typeof e&&(e=String(e)),e}function Ah(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return Oh&&(t[Symbol.iterator]=function(){return t}),t}function Lh(e){this.map={},e instanceof Lh?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function jh(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Nh(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function Ih(e){var t=new FileReader,n=Nh(t);return t.readAsArrayBuffer(e),n}function Dh(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Uh(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:kh&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:Eh&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:Ch&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():Ph&&kh&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Dh(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):Ph&&(ArrayBuffer.prototype.isPrototypeOf(e)||_h(e))?this._bodyArrayBuffer=Dh(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):Ch&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},kh&&(this.blob=function(){var e=jh(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?jh(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(Ih)}),this.text=function(){var e,t,n,r=jh(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Nh(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},Eh&&(this.formData=function(){return this.text().then(Vh)}),this.json=function(){return this.text().then(JSON.parse)},this}Lh.prototype.append=function(e,t){e=Th(e),t=xh(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Lh.prototype.delete=function(e){delete this.map[Th(e)]},Lh.prototype.get=function(e){return e=Th(e),this.has(e)?this.map[e]:null},Lh.prototype.has=function(e){return this.map.hasOwnProperty(Th(e))},Lh.prototype.set=function(e,t){this.map[Th(e)]=xh(t)},Lh.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Lh.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),Ah(e)},Lh.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),Ah(e)},Lh.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),Ah(e)},Oh&&(Lh.prototype[Symbol.iterator]=Lh.prototype.entries);var Mh=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Fh(e,t){var n,r,o=(t=t||{}).body;if(e instanceof Fh){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Lh(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new Lh(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),Mh.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function Vh(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function Hh(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"",this.headers=new Lh(t.headers),this.url=t.url||"",this._initBody(e)}Fh.prototype.clone=function(){return new Fh(this,{body:this._bodyInit})},Uh.call(Fh.prototype),Uh.call(Hh.prototype),Hh.prototype.clone=function(){return new Hh(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Lh(this.headers),url:this.url})},Hh.error=function(){var e=new Hh(null,{status:0,statusText:""});return e.type="error",e};var zh=[301,302,303,307,308];Hh.redirect=function(e,t){if(-1===zh.indexOf(t))throw new RangeError("Invalid status code");return new Hh(null,{status:t,headers:{location:e}})};var Bh=self.DOMException;try{new Bh}catch(e){(Bh=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Bh.prototype.constructor=Bh}function qh(e,t){return new Promise((function(n,r){var o=new Fh(e,t);if(o.signal&&o.signal.aborted)return r(new Bh("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var e,t,r={status:i.status,statusText:i.statusText,headers:(e=i.getAllResponseHeaders()||"",t=new Lh,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new Hh(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new Bh("Aborted","AbortError"))}),0)},i.open(o.method,function(e){try{return""===e&&self.location.href?self.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(kh?i.responseType="blob":Ph&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(e,t){i.setRequestHeader(t,e)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}qh.polyfill=!0,self.fetch||(self.fetch=qh,self.Headers=Lh,self.Request=Fh,self.Response=Hh);n(442),n(443);function Wh(e){return(Wh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var Jh,Gh=function(e){var t=Wh(e);return"function"===t||"object"===t&&!!e};n(182);!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(Jh||(Jh={}));var Yh,Kh;Jh.CvApSoutheast1,Jh.CvApSoutheast2,Jh.CvEuWest1;function Qh(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(Yh||(Yh={}));Qh(Kh={},Yh.AU,Jh.CvApSoutheast1),Qh(Kh,Yh.NZ,Jh.CvApSoutheast2),Qh(Kh,Yh.UK,Jh.CvEuWest1);function Zh(e){return(Zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xh(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function $h(e,t){return($h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ed(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nd(e);if(t){var o=nd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return td(this,n)}}function td(e,t){return!t||"object"!==Zh(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nd(e){return(nd=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rd=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&$h(e,t)}(i,e);var t,n,r,o=ed(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"shouldLog",value:function(e){return!0}},{key:"log",value:function(e){}},{key:"isType",value:function(e){return e===i.type}}])&&Xh(t.prototype,n),r&&Xh(t,r),i}(r.a.Service);rd.type="BaseAnalyticsClient";var od=function(){return!0},id=function(){return!1};var ad=function(e){return e};function cd(e){if(e&&e.code)return e.code}function ud(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.id){var n={id:e.id};return e.name&&!t.ignoreTitle&&(n.title=e.name),n}}function sd(e){if(e&&e.length){var t=e[0];return{id:t.id,title:t.name}}}var ld,fd,pd,hd=function(e){var t=e.model,n={id:t.id.toString(),year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=cd(t.rating),o=ud(t.series),i=sd(t.categories),a=ud(t.owner,{ignoreTitle:!0}),c=ud(t.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriesId=o.id,n.series=o.title),i&&(n.category=i.title),c&&(n.playlist=c),n},dd={getUploadData:function(e,t){var n=t.actionContext.entity;if(n===w.d.Video)return dd.formatVideoUpload(e,t);if(n===w.d.Resource||n===w.d.Subtitle)return dd.formatResourceUpload(e);if(n===w.d.Banner||n===w.d.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload:function(e,t){var n=t.actionContext.workflowPhase;return n===w.o.Start?dd.getStartVideoUploadData(e):n===w.o.Discard?dd.getDiscardVideoUploadData(e):n===w.o.Complete?dd.getCompleteUploadData(e):void 0},getStartVideoUploadData:function(e){return e&&e.length?(e instanceof FileList&&(e=Array.from(e)),e.map((function(t){return{fileName:t.name,size:t.size,type:t.type,count:e.length}}))):[]},getDiscardVideoUploadData:function(e){var t=function(t){var n=t.file,r=n.type,o=n.name,i=n.status,a=n.cvUpload,c={fileName:o,count:Array.isArray(e)?e.length:1,type:r,status:i};return t.progress&&(c.progress=t.progress.toFixed(2)),a&&(c.uploadId=a.uploadId),c};return Array.isArray(e)?e.map((function(e){return t(e)})):[t(e)]},getCompleteUploadData:function(e){return e&&e.length?e.map((function(t){return{fileName:t.fileName,libraryId:t.libraryId,folderId:t.folderId,count:e.length}})):[]},formatResourceUpload:function(e){var t={id:e.id,name:e.name};return Gh(e.metadata)&&(t.type=e.metadata.type),t}};function yd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var vd;yd(ld={},w.n.Navigate,id),yd(ld,w.n.Click,od),yd(ld,w.n.Search,od),yd(ld,w.n.InstantSearch,od),yd(ld,w.n.Play,od),yd(ld,w.n.Stream,od),yd(ld,w.n.StreamRaw,id),yd(ld,w.n.StreamProgress,od),yd(ld,w.n.Rename,od),yd(ld,w.n.Move,od),yd(ld,w.n.Create,od),yd(ld,w.n.Delete,od),yd(ld,w.n.Associate,od),yd(ld,w.n.Dissociate,od),yd(ld,w.n.Filter,od),yd(ld,w.n.Sort,od),yd(ld,w.n.Approve,od),yd(ld,w.n.Reject,od),yd(ld,w.n.Disable,od),yd(ld,w.n.Upload,od),yd(ld,w.n.Download,id),yd(ld,w.n.SetAccess,od),yd(ld,w.n.AddToLocalCache,id),yd(ld,w.n.Share,od),yd(ld,w.n.Edit,od),yd(ld,w.n.Suggest,od),yd(ld,w.n.ResolveWarning,od),yd(ld,w.n.DismissWarning,od),yd(ld,w.n.EditAssoc,od),yd(ld,w.n.Follow,od),yd(fd={},w.n.Search,ad),yd(fd,w.n.InstantSearch,ad),yd(fd,w.n.Play,ad),yd(fd,w.n.Stream,hd),yd(fd,w.n.StreamRaw,ad),yd(fd,w.n.StreamProgress,ad),yd(fd,w.n.Click,ad),yd(fd,w.n.Filter,ad),yd(fd,w.n.Sort,ad),yd(fd,w.n.SetAccess,ad),yd(fd,w.n.Approve,ad),yd(fd,w.n.Reject,ad),yd(fd,w.n.Create,ad),yd(fd,w.n.Delete,ad),yd(fd,w.n.Rename,ad),yd(fd,w.n.Move,ad),yd(fd,w.n.Edit,ad),yd(fd,w.n.Share,ad),yd(fd,w.n.Disable,ad),yd(fd,w.n.Suggest,ad),yd(fd,w.n.Upload,dd.getUploadData),yd(fd,w.n.ResolveWarning,ad),yd(fd,w.n.DismissWarning,ad),yd(fd,w.n.Follow,ad),yd(pd={},w.n.Search,(function(){return"search"})),yd(pd,w.n.InstantSearch,(function(){return"search"})),yd(pd,w.n.Filter,(function(){return"filter"})),yd(pd,w.n.StreamRaw,(function(e){return e.actionContext.entity===w.d.Interactive?w.d.Video:e.actionContext.entity})),yd({},w.n.StreamProgress,!0);!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(vd||(vd={}));var gd=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});gd.addInitializationStep(Cp).addInitializationStep((function(e,t){e.registerLayout(S,yu).registerLayout(C,_u),t(e)})).addInitializationStep((function(e,t){k.a.registerInstance(Bn,{size:100}),t(e)})).addInitializationStep((function(e,t){k.a.registerInstance(nr,{dataServiceErrorMessageMappings:{temp:"Error"},defaultErrorMessageKey:"temp"}),t(e)})).addInitializationStep(Cp).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:To.a.Success,type:rr.a.Success},defaultErrorAlert:{heading:To.a.Fail,type:rr.a.Fail},alertViewCtor:_o};k.a.registerSingleton(new rr.b(n));var r=k.a.getInstance(or.a.ALERT),o={cache:xn.Fifo,dataProvider:qn.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};k.a.registerDataService(wr,o).registerDataService(Sr.a,o).registerDataService(Tr,o).registerDataService(yo,o).registerDataService(Ho,o);var i={store:e.store};k.a.registerInstance(Go,i).registerInstance(Qo,i).registerInstance($o,i);var a={cache:xn.Fifo,dataProvider:qn.Notifications,alertService:r};k.a.registerDataService(qr,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){var n=new Ll,r=new Fu;k.a.registerInstance(up,{imageUrls:sp}).registerInstance(tp).registerInstance(Il,{store:e.store}).registerInstance(Wl,{store:e.store}).registerInstance(ss).registerInstance(Jl.a).registerInstance(bs).registerSingleton(n).registerSingleton(r);var o=new Hu(2),i=function(){o.decrement(),o.getValue()>0||(k.a.releaseInstance(ar.a.Language),k.a.releaseInstance(ar.a.Config),t(e))};k.a.getInstance(ar.a.Language).getLanguageConfig((function(e){Jr.a.setConfig(e),i()})),k.a.getInstance(ar.a.Config).getConfig((function(e){k.a.registerInstance(kl,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notification",logging:!0}),i()}))})).addInitializationStep((function(e,t){k.a.registerInstance(Ap).registerInstance(Vp),I(null,(function(n){k.a.registerInstance(zp,{hasCompletedOnboarding:!n}),t(e)}))})).addInitializationStep((function(e,t){e.registerApplication(je).registerApplication(yt).registerApplication(Ce).registerApplication(Mt).registerApplication(qe).registerApplication(nt).registerApplication(Pt).registerApplication(fe).registerApplication(cn).registerApplication(Kt).registerApplication(J).registerApplication(mn).registerApplication(Tn),t(e)})).addInitializationStep((function(e,t){t(e)})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:An.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){Wp.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(Si,Mi).registerErrorHandler(_i,Fi).registerErrorHandler(hi,Di).registerErrorHandler(R.a,Ui).registerErrorHandler(Ti.a,Mi).registerErrorHandler(xi.a,Mi).registerErrorHandler(Ai.a,Mi).registerErrorHandler(Li.a,Ui).registerErrorHandler(ji.a,Mi).registerErrorHandler(Ni.a,Ui).registerErrorHandler(Ii.a,Mi),t()})).addInitializationStep((function(e,t){k.a.registerSingleton(new Qp({onlineRole:Gp.a.Staff,customerType:Jp.Primary})),t(e)})),gd.addStartUpStep((function(e,t,n){k.a.getInstance(ar.a.Config).getConfig((function(r){Tu.a.setUpVariables({isDevelopment:!1}),n(e,t),k.a.releaseInstance(ar.a.Config)}))})),gd.start()},function(e,t){e.exports=g},function(e,t){e.exports=m},function(e,t){e.exports=b},function(e,t){e.exports=w},function(e,t){e.exports=S}])}));