@clickview/lite 0.0.18-dev.2 → 0.0.18-rc.1

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 (418) hide show
  1. package/dist/css/0.chunk.css.map +1 -0
  2. package/dist/css/1.chunk.css +144 -2
  3. package/dist/css/1.chunk.css.map +1 -0
  4. package/dist/css/10.chunk.css +10 -12
  5. package/dist/css/10.chunk.css.map +1 -0
  6. package/dist/css/11.chunk.css +5 -9
  7. package/dist/css/11.chunk.css.map +1 -0
  8. package/dist/css/12.chunk.css.map +1 -0
  9. package/dist/css/13.chunk.css.map +1 -0
  10. package/dist/css/14.chunk.css.map +1 -0
  11. package/dist/css/16.chunk.css.map +1 -0
  12. package/dist/css/18.chunk.css.map +1 -0
  13. package/dist/css/19.chunk.css +6 -2
  14. package/dist/css/19.chunk.css.map +1 -0
  15. package/dist/css/2.chunk.css +14 -0
  16. package/dist/css/20.chunk.css +2 -6
  17. package/dist/css/21.chunk.css +1 -3
  18. package/dist/css/21.chunk.css.map +1 -0
  19. package/dist/css/22.chunk.css +2 -2
  20. package/dist/css/22.chunk.css.map +1 -0
  21. package/dist/css/23.chunk.css +3 -1
  22. package/dist/css/23.chunk.css.map +1 -0
  23. package/dist/css/24.chunk.css +1 -3
  24. package/dist/css/24.chunk.css.map +1 -0
  25. package/dist/css/25.chunk.css +2 -2
  26. package/dist/css/25.chunk.css.map +1 -0
  27. package/dist/css/26.chunk.css +3 -1
  28. package/dist/css/26.chunk.css.map +1 -0
  29. package/dist/css/27.chunk.css +66 -2
  30. package/dist/css/27.chunk.css.map +1 -0
  31. package/dist/css/28.chunk.css +48 -2
  32. package/dist/css/28.chunk.css.map +1 -0
  33. package/dist/css/29.chunk.css +43 -4
  34. package/dist/css/29.chunk.css.map +1 -0
  35. package/dist/css/3.chunk.css +13 -7
  36. package/dist/css/3.chunk.css.map +1 -0
  37. package/dist/css/30.chunk.css +1 -3
  38. package/dist/css/30.chunk.css.map +1 -0
  39. package/dist/css/31.chunk.css +5 -2
  40. package/dist/css/31.chunk.css.map +1 -0
  41. package/dist/css/32.chunk.css +4 -1
  42. package/dist/css/32.chunk.css.map +1 -0
  43. package/dist/css/34.chunk.css +4 -2
  44. package/dist/css/34.chunk.css.map +1 -0
  45. package/dist/css/35.chunk.css +7 -0
  46. package/dist/css/35.chunk.css.map +1 -0
  47. package/dist/css/36.chunk.css +4 -0
  48. package/dist/css/36.chunk.css.map +1 -0
  49. package/dist/css/37.chunk.css +3 -1
  50. package/dist/css/37.chunk.css.map +1 -0
  51. package/dist/css/38.chunk.css +36 -2
  52. package/dist/css/38.chunk.css.map +1 -0
  53. package/dist/css/4.chunk.css +5 -13
  54. package/dist/css/4.chunk.css.map +1 -0
  55. package/dist/css/44.chunk.css +1 -1
  56. package/dist/css/45.chunk.css +9 -0
  57. package/dist/css/45.chunk.css.map +1 -0
  58. package/dist/css/5.chunk.css +2 -8
  59. package/dist/css/5.chunk.css.map +1 -0
  60. package/dist/css/9.chunk.css +15 -7
  61. package/dist/css/lite-app.css.map +1 -0
  62. package/dist/libs/analytics/src/AnalyticsService.d.ts +52 -0
  63. package/dist/libs/analytics/src/clients/BaseAnalyticsClient.d.ts +24 -0
  64. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +48 -0
  65. package/dist/libs/analytics/src/clients/DebuggerClient.d.ts +7 -0
  66. package/dist/libs/analytics/src/constants/ApplicationOptionsKey.d.ts +1 -0
  67. package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +7 -0
  68. package/dist/libs/analytics/src/constants/Regions.d.ts +6 -0
  69. package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +19 -0
  70. package/dist/libs/analytics/src/enrichers/CoreContextEnricher.d.ts +22 -0
  71. package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +10 -0
  72. package/dist/libs/analytics/src/enums/CountryCode.d.ts +5 -0
  73. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +49 -5
  74. package/dist/libs/analytics/src/interfaces/VersionData.d.ts +4 -0
  75. package/dist/libs/analytics/src/models/CollectionEvent.d.ts +55 -0
  76. package/dist/libs/analytics/src/transport/EventTransport.d.ts +39 -0
  77. package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +6 -0
  78. package/dist/libs/analytics/src/utils/DataFormatHelper.d.ts +14 -0
  79. package/dist/libs/analytics/src/utils/EventWhitelistHelper.d.ts +19 -0
  80. package/dist/libs/analytics/src/utils/TypeHelper.d.ts +4 -0
  81. package/dist/libs/analytics/src/utils/UploadDataFormatHelper.d.ts +10 -0
  82. package/dist/libs/analytics/src/utils/UserAgentHelper.d.ts +10 -0
  83. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +42 -0
  84. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +5 -1
  85. package/dist/libs/common/src/react/constants/ViewModelActions.d.ts +3 -0
  86. package/dist/libs/common/src/react/hooks/useViewModel.d.ts +4 -0
  87. package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +3 -1
  88. package/dist/libs/common/src/react/interfaces/ViewModelAction.d.ts +5 -0
  89. package/dist/libs/common/src/react/interfaces/ViewModelPayload.d.ts +5 -0
  90. package/dist/libs/common/src/react/reducers/ViewModelReducer.d.ts +3 -0
  91. package/dist/libs/common/src/react/utils/ArrayHelper.d.ts +1 -1
  92. package/dist/libs/shared/src/apps/content-updates/interfaces/VideoClassificationMapping.d.ts +2 -1
  93. package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +3 -2
  94. package/dist/libs/shared/src/components/lazy-image/LazyImage.d.ts +1 -1
  95. package/dist/libs/shared/src/components/search-bar/SearchBar.d.ts +5 -0
  96. package/dist/libs/shared/src/components/widgets/fixed-widget/FixedWidget.d.ts +4 -2
  97. package/dist/libs/shared/src/components/widgets/items/subject-widget-item/SubjectWidgetItem.d.ts +4 -3
  98. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  99. package/dist/libs/shared/src/constants/WithStatements.d.ts +1 -1
  100. package/dist/libs/shared/src/enums/CountryCode.d.ts +5 -0
  101. package/dist/libs/shared/src/enums/SubtitleExtractionOptions.d.ts +4 -0
  102. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  103. package/dist/libs/shared/src/flight-requests/FavouriteVideoRequests.d.ts +1 -1
  104. package/dist/libs/shared/src/flight-requests/PreferenceRequests.d.ts +4 -4
  105. package/dist/libs/shared/src/hooks/UseReorderedItems.d.ts +9 -0
  106. package/dist/libs/shared/src/interfaces/models/Config.d.ts +3 -1
  107. package/dist/libs/shared/src/interfaces/models/Group.d.ts +3 -0
  108. package/dist/libs/shared/src/interfaces/models/User.d.ts +2 -1
  109. package/dist/libs/shared/src/interfaces/models/UserChannel.d.ts +7 -0
  110. package/dist/libs/shared/src/interfaces/models/index.d.ts +2 -0
  111. package/dist/libs/shared/src/services/ConfigDataService.d.ts +1 -0
  112. package/dist/libs/shared/src/utils/AudienceHelper.d.ts +5 -1
  113. package/dist/projects/lite/src/apps/classrooms/components/classroom-group-dropdown/ClassroomGroupDropdown.d.ts +3 -2
  114. package/dist/projects/lite/src/apps/classrooms/components/tile-actions/TileActions.d.ts +1 -0
  115. package/dist/projects/lite/src/apps/classrooms/flight-requests/ClassroomRequests.d.ts +1 -1
  116. package/dist/projects/lite/src/apps/classrooms/views/add-students-to-classroom/AddStudentsToClassroomView.d.ts +3 -3
  117. package/dist/projects/lite/src/apps/classrooms/views/create-classroom/CreateClassroomView.d.ts +3 -4
  118. package/dist/projects/lite/src/apps/classrooms/views/create-classroom-group/CreateClassroomGroupView.d.ts +3 -3
  119. package/dist/projects/lite/src/apps/classrooms/views/delete-classroom/DeleteClassroomView.d.ts +4 -4
  120. package/dist/projects/lite/src/apps/classrooms/views/delete-classroom-group/DeleteClassroomGroupView.d.ts +3 -3
  121. package/dist/projects/lite/src/apps/classrooms/views/edit-classroom/EditClassroomView.d.ts +3 -3
  122. package/dist/projects/lite/src/apps/classrooms/views/edit-classroom-group/EditClassroomGroupView.d.ts +3 -3
  123. package/dist/projects/lite/src/apps/classrooms/views/remove-students-from-classroom/RemoveStudentsFromClassroomView.d.ts +3 -3
  124. package/dist/projects/lite/src/apps/content-updates/LiteContentUpdatesApplication.d.ts +1 -1
  125. package/dist/projects/lite/src/apps/default/LiteDefaultApplication.d.ts +2 -2
  126. package/dist/projects/lite/src/apps/playlists/LitePlaylistsApplication.d.ts +2 -1
  127. package/dist/projects/lite/src/apps/playlists/views/delete-playlist/DeletePlaylistView.d.ts +2 -2
  128. package/dist/projects/lite/src/apps/playlists/views/edit-playlist/EditPlaylistView.d.ts +2 -2
  129. package/dist/projects/lite/src/apps/playlists/views/new-playlist/NewPlaylistView.d.ts +2 -2
  130. package/dist/projects/lite/src/apps/playlists/views/playlist/PlaylistViewUtils.d.ts +0 -8
  131. package/dist/projects/lite/src/apps/playlists/views/remove-video-from-playlist/RemoveVideoFromPlaylistView.d.ts +2 -2
  132. package/dist/projects/lite/src/apps/search/components/filter-actions/FilterActions.d.ts +3 -2
  133. package/dist/projects/lite/src/apps/search/components/filter-button/FilterButton.d.ts +3 -2
  134. package/dist/projects/lite/src/apps/search/components/filter-types/checkbox-filter/CheckboxFilter.d.ts +3 -2
  135. package/dist/projects/lite/src/apps/search/components/filter-types/dropdown-filter/DropdownFilter.d.ts +3 -2
  136. package/dist/projects/lite/src/apps/search/components/filter-types/radio-filter/RadioFilter.d.ts +3 -2
  137. package/dist/projects/lite/src/apps/search/components/filter-types/radio-filter/year-level/YearLevelRadioFilter.d.ts +3 -2
  138. package/dist/projects/lite/src/apps/search/components/reset-button/ResetButton.d.ts +3 -2
  139. package/dist/projects/lite/src/apps/search/components/search-filters/SearchFilters.d.ts +3 -2
  140. package/dist/projects/lite/src/apps/search/interfaces/FilterProps.d.ts +3 -2
  141. package/dist/projects/lite/src/apps/search/utils/FilterHelper.d.ts +4 -2
  142. package/dist/projects/lite/src/apps/subjects/LiteSubjectApplication.d.ts +2 -2
  143. package/dist/projects/lite/src/apps/upload/services/FlightVideoUploadDataService.d.ts +5 -0
  144. package/dist/projects/lite/src/apps/user-manager/components/delete-uploaded-student-popup/DeleteUploadedStudentPopup.d.ts +4 -4
  145. package/dist/projects/lite/src/apps/user-manager/components/delete-uploaded-teacher-popup/DeleteUploadedTeacherPopup.d.ts +4 -4
  146. package/dist/projects/lite/src/apps/user-manager/components/edit-uploaded-user-popup/EditUploadedUserPopup.d.ts +4 -4
  147. package/dist/projects/lite/src/apps/user-manager/components/manage-users-list/ManageUsersList.d.ts +3 -2
  148. package/dist/projects/lite/src/apps/user-manager/flight-requests/SchoolUserRequests.d.ts +3 -3
  149. package/dist/projects/lite/src/apps/user-manager/views/create-student/CreateStudentView.d.ts +3 -4
  150. package/dist/projects/lite/src/apps/user-manager/views/create-teacher/CreateTeacherView.d.ts +3 -4
  151. package/dist/projects/lite/src/apps/user-manager/views/edit-student/EditStudentView.d.ts +4 -4
  152. package/dist/projects/lite/src/apps/user-manager/views/edit-teacher/EditTeacherView.d.ts +4 -4
  153. package/dist/projects/lite/src/apps/user-manager/views/remove-user/RemoveUserView.d.ts +4 -4
  154. package/dist/projects/lite/src/apps/user-manager/views/student-upload-review/StudentUploadReviewView.d.ts +4 -2
  155. package/dist/projects/lite/src/apps/user-manager/views/teacher-upload-review/TeacherUploadReviewView.d.ts +4 -2
  156. package/dist/projects/lite/src/shared/components/immersive-reader/ImmersiveReader.d.ts +7 -2
  157. package/dist/projects/lite/src/shared/components/share/copy-embed-html/CopyEmbedHtml.d.ts +4 -2
  158. package/dist/projects/lite/src/shared/constants/LiteViewModels.d.ts +6 -0
  159. package/dist/projects/lite/src/shared/{contexts/player/PlayerContext.d.ts → hooks/useInitPlayerContext.d.ts} +4 -10
  160. package/dist/projects/lite/src/shared/hooks/useNavLock.d.ts +1 -0
  161. package/dist/projects/lite/src/shared/views/share/main-view/MainShareView.d.ts +3 -3
  162. package/dist/projects/lite/src/shared/views/share/settings-view/ShareSettingsView.d.ts +4 -3
  163. package/dist/projects/lite/src/startup/RegisterAnalytics.d.ts +3 -0
  164. package/dist/projects/lite/src/startup/index.d.ts +1 -0
  165. package/dist/scripts/0-525bd75473.chunk.js +1 -0
  166. package/dist/scripts/0.chunk.js +478 -1
  167. package/dist/scripts/0.chunk.js.map +1 -0
  168. package/dist/scripts/1-f6fa17226d.chunk.js +17 -0
  169. package/dist/scripts/1.chunk.js +621 -17
  170. package/dist/scripts/1.chunk.js.map +1 -0
  171. package/dist/scripts/10-f3b34b2d35.chunk.js +1 -0
  172. package/dist/scripts/10.chunk.js +400 -7
  173. package/dist/scripts/10.chunk.js.map +1 -0
  174. package/dist/scripts/11-a698af3f1c.chunk.js +1 -0
  175. package/dist/scripts/11.chunk.js +1289 -7
  176. package/dist/scripts/11.chunk.js.map +1 -0
  177. package/dist/scripts/12-9ace90fcbc.chunk.js +1 -0
  178. package/dist/scripts/12.chunk.js +1059 -7
  179. package/dist/scripts/12.chunk.js.map +1 -0
  180. package/dist/scripts/13-3a4f103546.chunk.js +1 -0
  181. package/dist/scripts/13.chunk.js +751 -7
  182. package/dist/scripts/13.chunk.js.map +1 -0
  183. package/dist/scripts/14-11868e2868.chunk.js +1 -0
  184. package/dist/scripts/14.chunk.js +425 -7
  185. package/dist/scripts/14.chunk.js.map +1 -0
  186. package/dist/scripts/15-78ff5e8be2.chunk.js +1 -0
  187. package/dist/scripts/15.chunk.js +609 -7
  188. package/dist/scripts/15.chunk.js.map +1 -0
  189. package/dist/scripts/16-22f6224811.chunk.js +1 -0
  190. package/dist/scripts/16.chunk.js +648 -7
  191. package/dist/scripts/16.chunk.js.map +1 -0
  192. package/dist/scripts/17-afe6281dd5.chunk.js +1 -0
  193. package/dist/scripts/17.chunk.js +541 -7
  194. package/dist/scripts/17.chunk.js.map +1 -0
  195. package/dist/scripts/18-47be31c0b6.chunk.js +1 -0
  196. package/dist/scripts/18.chunk.js +766 -7
  197. package/dist/scripts/18.chunk.js.map +1 -0
  198. package/dist/scripts/19-89c0b2c20e.chunk.js +1 -0
  199. package/dist/scripts/19.chunk.js +647 -7
  200. package/dist/scripts/19.chunk.js.map +1 -0
  201. package/dist/scripts/2-3b37480a80.chunk.js +7 -0
  202. package/dist/scripts/2.chunk.js +8259 -1
  203. package/dist/scripts/2.chunk.js.map +1 -0
  204. package/dist/scripts/20-32ac3fe0b9.chunk.js +1 -0
  205. package/dist/scripts/20.chunk.js +122 -7
  206. package/dist/scripts/20.chunk.js.map +1 -0
  207. package/dist/scripts/21-891207049a.chunk.js +1 -0
  208. package/dist/scripts/21.chunk.js +1571 -1
  209. package/dist/scripts/21.chunk.js.map +1 -0
  210. package/dist/scripts/22-24236e6723.chunk.js +1 -0
  211. package/dist/scripts/22.chunk.js +1387 -1
  212. package/dist/scripts/22.chunk.js.map +1 -0
  213. package/dist/scripts/23-7b425169bc.chunk.js +1 -0
  214. package/dist/scripts/23.chunk.js +1121 -1
  215. package/dist/scripts/23.chunk.js.map +1 -0
  216. package/dist/scripts/24-40edd30087.chunk.js +1 -0
  217. package/dist/scripts/24.chunk.js +1348 -1
  218. package/dist/scripts/24.chunk.js.map +1 -0
  219. package/dist/scripts/25-887b9ef587.chunk.js +1 -0
  220. package/dist/scripts/25.chunk.js +1137 -1
  221. package/dist/scripts/25.chunk.js.map +1 -0
  222. package/dist/scripts/26-cbe0ff0f77.chunk.js +1 -0
  223. package/dist/scripts/26.chunk.js +906 -1
  224. package/dist/scripts/26.chunk.js.map +1 -0
  225. package/dist/scripts/27-f26afdae78.chunk.js +1 -0
  226. package/dist/scripts/27.chunk.js +1143 -1
  227. package/dist/scripts/27.chunk.js.map +1 -0
  228. package/dist/scripts/28-70414fd373.chunk.js +1 -0
  229. package/dist/scripts/28.chunk.js +656 -1
  230. package/dist/scripts/28.chunk.js.map +1 -0
  231. package/dist/scripts/29-944b5c01a7.chunk.js +1 -0
  232. package/dist/scripts/29.chunk.js +616 -1
  233. package/dist/scripts/29.chunk.js.map +1 -0
  234. package/dist/scripts/3-233f573a92.chunk.js +1 -0
  235. package/dist/scripts/3.chunk.js +585 -1
  236. package/dist/scripts/3.chunk.js.map +1 -0
  237. package/dist/scripts/30-3a229887e9.chunk.js +1 -0
  238. package/dist/scripts/30.chunk.js +557 -1
  239. package/dist/scripts/30.chunk.js.map +1 -0
  240. package/dist/scripts/31-ab038bfc0c.chunk.js +1 -0
  241. package/dist/scripts/31.chunk.js +731 -1
  242. package/dist/scripts/31.chunk.js.map +1 -0
  243. package/dist/scripts/32-8bd6703eef.chunk.js +1 -0
  244. package/dist/scripts/32.chunk.js +957 -1
  245. package/dist/scripts/32.chunk.js.map +1 -0
  246. package/dist/scripts/{35-8b4ce9fc27.chunk.js → 33-4579af9cf9.chunk.js} +1 -1
  247. package/dist/scripts/33.chunk.js +938 -1
  248. package/dist/scripts/33.chunk.js.map +1 -0
  249. package/dist/scripts/{36-cbd8837f89.chunk.js → 34-d8b96d9f9f.chunk.js} +1 -1
  250. package/dist/scripts/34.chunk.js +523 -1
  251. package/dist/scripts/34.chunk.js.map +1 -0
  252. package/dist/scripts/35-666d815525.chunk.js +1 -0
  253. package/dist/scripts/35.chunk.js +414 -1
  254. package/dist/scripts/35.chunk.js.map +1 -0
  255. package/dist/scripts/36-02ce5f3538.chunk.js +1 -0
  256. package/dist/scripts/36.chunk.js +404 -1
  257. package/dist/scripts/36.chunk.js.map +1 -0
  258. package/dist/scripts/37-afd3d321e3.chunk.js +1 -0
  259. package/dist/scripts/37.chunk.js +245 -1
  260. package/dist/scripts/37.chunk.js.map +1 -0
  261. package/dist/scripts/{39-e2aa1689e2.chunk.js → 38-6ad53aa15b.chunk.js} +1 -1
  262. package/dist/scripts/38.chunk.js +343 -1
  263. package/dist/scripts/38.chunk.js.map +1 -0
  264. package/dist/scripts/{40-53d132e3b4.chunk.js → 39-46c747b1d9.chunk.js} +1 -1
  265. package/dist/scripts/39.chunk.js +318 -1
  266. package/dist/scripts/39.chunk.js.map +1 -0
  267. package/dist/scripts/4-6942fee782.chunk.js +1 -0
  268. package/dist/scripts/4.chunk.js +1030 -1
  269. package/dist/scripts/4.chunk.js.map +1 -0
  270. package/dist/scripts/{41-023d613070.chunk.js → 40-c1b8806b1c.chunk.js} +1 -1
  271. package/dist/scripts/40.chunk.js +236 -1
  272. package/dist/scripts/40.chunk.js.map +1 -0
  273. package/dist/scripts/{42-ba3779218d.chunk.js → 41-f4c23477e3.chunk.js} +1 -1
  274. package/dist/scripts/41.chunk.js +231 -1
  275. package/dist/scripts/41.chunk.js.map +1 -0
  276. package/dist/scripts/42-7a5b92d70b.chunk.js +1 -0
  277. package/dist/scripts/42.chunk.js +350 -1
  278. package/dist/scripts/42.chunk.js.map +1 -0
  279. package/dist/scripts/43-97193a87df.chunk.js +1 -0
  280. package/dist/scripts/43.chunk.js +225 -1
  281. package/dist/scripts/43.chunk.js.map +1 -0
  282. package/dist/scripts/{46-6501968ace.chunk.js → 44-7f92272274.chunk.js} +1 -1
  283. package/dist/scripts/44.chunk.js +318 -1
  284. package/dist/scripts/44.chunk.js.map +1 -0
  285. package/dist/scripts/45-265f1a7a42.chunk.js +1 -0
  286. package/dist/scripts/45.chunk.js +64 -1
  287. package/dist/scripts/45.chunk.js.map +1 -0
  288. package/dist/scripts/46-a594ad7eba.chunk.js +1 -0
  289. package/dist/scripts/46.chunk.js +108 -1
  290. package/dist/scripts/46.chunk.js.map +1 -0
  291. package/dist/scripts/47-99777c20cf.chunk.js +1 -0
  292. package/dist/scripts/47.chunk.js +110 -1
  293. package/dist/scripts/47.chunk.js.map +1 -0
  294. package/dist/scripts/48-9880523c82.chunk.js +1 -0
  295. package/dist/scripts/48.chunk.js +148 -1
  296. package/dist/scripts/48.chunk.js.map +1 -0
  297. package/dist/scripts/{50-00ffd5d7c6.chunk.js → 49-5e718594e5.chunk.js} +1 -1
  298. package/dist/scripts/49.chunk.js +142 -1
  299. package/dist/scripts/49.chunk.js.map +1 -0
  300. package/dist/scripts/5-2f631dcd74.chunk.js +1 -0
  301. package/dist/scripts/5.chunk.js +3262 -1
  302. package/dist/scripts/5.chunk.js.map +1 -0
  303. package/dist/scripts/50-8cb0d9cd7d.chunk.js +1 -0
  304. package/dist/scripts/50.chunk.js +145 -1
  305. package/dist/scripts/50.chunk.js.map +1 -0
  306. package/dist/scripts/{52-e5dfa5a640.chunk.js → 51-211b643ca5.chunk.js} +1 -1
  307. package/dist/scripts/51.chunk.js +176 -1
  308. package/dist/scripts/51.chunk.js.map +1 -0
  309. package/dist/scripts/{53-79d5905fc6.chunk.js → 52-bfb2683b5d.chunk.js} +1 -1
  310. package/dist/scripts/52.chunk.js +160 -1
  311. package/dist/scripts/52.chunk.js.map +1 -0
  312. package/dist/scripts/{54-4950ec1d52.chunk.js → 53-3cf5cd5f69.chunk.js} +1 -1
  313. package/dist/scripts/53.chunk.js +98 -1
  314. package/dist/scripts/53.chunk.js.map +1 -0
  315. package/dist/scripts/{55-accb81090d.chunk.js → 54-26807e3e49.chunk.js} +1 -1
  316. package/dist/scripts/54.chunk.js +48 -1
  317. package/dist/scripts/54.chunk.js.map +1 -0
  318. package/dist/scripts/55-d38be4860b.chunk.js +1 -0
  319. package/dist/scripts/55.chunk.js +99 -1
  320. package/dist/scripts/55.chunk.js.map +1 -0
  321. package/dist/scripts/56-d4abc25ec3.chunk.js +1 -0
  322. package/dist/scripts/56.chunk.js +64 -1
  323. package/dist/scripts/56.chunk.js.map +1 -0
  324. package/dist/scripts/57.chunk.js +72 -0
  325. package/dist/scripts/57.chunk.js.map +1 -0
  326. package/dist/scripts/58.chunk.js +73 -0
  327. package/dist/scripts/58.chunk.js.map +1 -0
  328. package/dist/scripts/59.chunk.js +70 -0
  329. package/dist/scripts/59.chunk.js.map +1 -0
  330. package/dist/scripts/6-4d72a3c3fc.chunk.js +1 -0
  331. package/dist/scripts/6.chunk.js +24 -1
  332. package/dist/scripts/6.chunk.js.map +1 -0
  333. package/dist/scripts/60.chunk.js +32 -0
  334. package/dist/scripts/60.chunk.js.map +1 -0
  335. package/dist/scripts/61.chunk.js +29 -0
  336. package/dist/scripts/61.chunk.js.map +1 -0
  337. package/dist/scripts/62.chunk.js +27 -0
  338. package/dist/scripts/62.chunk.js.map +1 -0
  339. package/dist/scripts/63.chunk.js +67 -0
  340. package/dist/scripts/63.chunk.js.map +1 -0
  341. package/dist/scripts/64.chunk.js +80 -0
  342. package/dist/scripts/64.chunk.js.map +1 -0
  343. package/dist/scripts/65.chunk.js +65 -0
  344. package/dist/scripts/65.chunk.js.map +1 -0
  345. package/dist/scripts/66.chunk.js +67 -0
  346. package/dist/scripts/66.chunk.js.map +1 -0
  347. package/dist/scripts/67.chunk.js +104 -0
  348. package/dist/scripts/67.chunk.js.map +1 -0
  349. package/dist/scripts/68.chunk.js +69 -0
  350. package/dist/scripts/68.chunk.js.map +1 -0
  351. package/dist/scripts/69.chunk.js +89 -0
  352. package/dist/scripts/69.chunk.js.map +1 -0
  353. package/dist/scripts/7-90ad392b55.chunk.js +1 -0
  354. package/dist/scripts/7.chunk.js +327 -1
  355. package/dist/scripts/7.chunk.js.map +1 -0
  356. package/dist/scripts/70.chunk.js +36 -0
  357. package/dist/scripts/70.chunk.js.map +1 -0
  358. package/dist/scripts/8.chunk.js +470 -0
  359. package/dist/scripts/8.chunk.js.map +1 -0
  360. package/dist/scripts/9-52877087ef.chunk.js +1 -0
  361. package/dist/scripts/9.chunk.js +471 -7
  362. package/dist/scripts/9.chunk.js.map +1 -0
  363. package/dist/scripts/bundle-99976c17a2.min.js +1 -0
  364. package/dist/scripts/bundle-9f5ad50596.min.js +1 -0
  365. package/dist/scripts/bundle.js +34769 -1
  366. package/dist/scripts/bundle.js.map +1 -0
  367. package/dist/scripts/bundles.json +1 -1
  368. package/package.json +50 -49
  369. package/typings/libs/Trackers.d.ts +10 -0
  370. package/dist/css/33.chunk.css +0 -4
  371. package/dist/css/41.chunk.css +0 -4
  372. package/dist/css/46.chunk.css +0 -2
  373. package/dist/libs/shared/src/context/SearchAppContext.d.ts +0 -9
  374. package/dist/scripts/0-7ab5925809.chunk.js +0 -1
  375. package/dist/scripts/1-08c7a79a47.chunk.js +0 -1
  376. package/dist/scripts/10-20d3430ce2.chunk.js +0 -1
  377. package/dist/scripts/11-7a25650335.chunk.js +0 -1
  378. package/dist/scripts/12-6609af3add.chunk.js +0 -1
  379. package/dist/scripts/13-5adebd80b3.chunk.js +0 -1
  380. package/dist/scripts/14-dbd27fa3a5.chunk.js +0 -1
  381. package/dist/scripts/15-5a0e1ed526.chunk.js +0 -1
  382. package/dist/scripts/16-3adc733311.chunk.js +0 -1
  383. package/dist/scripts/17-a942a8ff32.chunk.js +0 -1
  384. package/dist/scripts/18-ab78fe1ad4.chunk.js +0 -1
  385. package/dist/scripts/19-04ba4906ea.chunk.js +0 -1
  386. package/dist/scripts/2-41fe2d7e77.chunk.js +0 -1
  387. package/dist/scripts/20-f0dcfc47a9.chunk.js +0 -1
  388. package/dist/scripts/21-33e50c0d6b.chunk.js +0 -1
  389. package/dist/scripts/22-d85dfba692.chunk.js +0 -1
  390. package/dist/scripts/23-90201310df.chunk.js +0 -1
  391. package/dist/scripts/24-bc8f0f5709.chunk.js +0 -1
  392. package/dist/scripts/25-317106a5da.chunk.js +0 -1
  393. package/dist/scripts/26-4a3372406a.chunk.js +0 -1
  394. package/dist/scripts/27-074f7ed617.chunk.js +0 -1
  395. package/dist/scripts/28-3f552efb1d.chunk.js +0 -1
  396. package/dist/scripts/29-3b0fed6546.chunk.js +0 -1
  397. package/dist/scripts/3-4c7cdc97d7.chunk.js +0 -7
  398. package/dist/scripts/30-efc1720b45.chunk.js +0 -1
  399. package/dist/scripts/31-fd10b2d2e3.chunk.js +0 -1
  400. package/dist/scripts/32-77df1d4c39.chunk.js +0 -1
  401. package/dist/scripts/33-7c092bbe19.chunk.js +0 -1
  402. package/dist/scripts/34-3c94a6fffe.chunk.js +0 -1
  403. package/dist/scripts/37-ecd001861c.chunk.js +0 -1
  404. package/dist/scripts/38-a42dc5fd6c.chunk.js +0 -1
  405. package/dist/scripts/4-9b843edce7.chunk.js +0 -1
  406. package/dist/scripts/43-9b84379d80.chunk.js +0 -1
  407. package/dist/scripts/44-1bedb97d4b.chunk.js +0 -1
  408. package/dist/scripts/45-b004111b2b.chunk.js +0 -1
  409. package/dist/scripts/47-cece788594.chunk.js +0 -1
  410. package/dist/scripts/48-722f37b837.chunk.js +0 -1
  411. package/dist/scripts/49-cb04b28057.chunk.js +0 -1
  412. package/dist/scripts/5-841e3d083b.chunk.js +0 -1
  413. package/dist/scripts/51-ed260ddadd.chunk.js +0 -1
  414. package/dist/scripts/56-83e51af2a6.chunk.js +0 -1
  415. package/dist/scripts/6-c429467dba.chunk.js +0 -1
  416. package/dist/scripts/7-3c52b41cbf.chunk.js +0 -1
  417. package/dist/scripts/9-fef5ef0698.chunk.js +0 -1
  418. package/dist/scripts/bundle-7782a79aa5.min.js +0 -1
@@ -0,0 +1 @@
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("Marionette"),require("ReactBootstrap"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("Yup"),require("ReactIntersectionObserver"),require("Autosuggest"),require("SortableHOC"),require("ImmersiveReader"),require("marked")):"function"==typeof define&&define.amd?define(["React","_","Backbone","Handlebars","Marionette","ReactBootstrap","ReactRedux","moment","ReactDOM","FontAwesome","ReactCustomScrollbars","DOMPurify","Redux","ReactTransitionGroup","Bloodhound","Polyglot","reactDropzone","Yup","ReactIntersectionObserver","Autosuggest","SortableHOC","ImmersiveReader","marked"],t):"object"==typeof exports?exports["@clickview/lite"]=t(require("React"),require("_"),require("Backbone"),require("Handlebars"),require("Marionette"),require("ReactBootstrap"),require("ReactRedux"),require("moment"),require("ReactDOM"),require("FontAwesome"),require("ReactCustomScrollbars"),require("DOMPurify"),require("Redux"),require("ReactTransitionGroup"),require("Bloodhound"),require("Polyglot"),require("reactDropzone"),require("Yup"),require("ReactIntersectionObserver"),require("Autosuggest"),require("SortableHOC"),require("ImmersiveReader"),require("marked")):e["@clickview/lite"]=t(e.React,e._,e.Backbone,e.Handlebars,e.Marionette,e.ReactBootstrap,e.ReactRedux,e.moment,e.ReactDOM,e.FontAwesome,e.ReactCustomScrollbars,e.DOMPurify,e.Redux,e.ReactTransitionGroup,e.Bloodhound,e.Polyglot,e.reactDropzone,e.Yup,e.ReactIntersectionObserver,e.Autosuggest,e.SortableHOC,e.ImmersiveReader,e.marked)}(window,(function(e,t,n,r,i,o,a,s,c,l,u,p,d,h,f,m,g,v,y,b,C,S,w){return function(e){function t(t){for(var n,r,o=t[0],a=t[1],s=0,c=[];s<o.length;s++)r=o[s],Object.prototype.hasOwnProperty.call(i,r)&&i[r]&&c.push(i[r][0]),i[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(e[n]=a[n]);for(l&&l(t);c.length;)c.shift()()}var n={},r={8:0},i={8:0};function o(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,o),r.l=!0,r.exports}o.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,9:1,10: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,30:1,36:1,37:1,44:1}[e]&&t.push(r[e]=new Promise((function(t,n){for(var i="css/"+e+".chunk.css",a=o.p+i,s=document.getElementsByTagName("link"),c=0;c<s.length;c++){var l=(p=s[c]).getAttribute("data-href")||p.getAttribute("href");if("stylesheet"===p.rel&&(l===i||l===a))return t()}var u=document.getElementsByTagName("style");for(c=0;c<u.length;c++){var p;if((l=(p=u[c]).getAttribute("data-href"))===i||l===a)return t()}var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.onload=t,d.onerror=function(t){var i=t&&t.target&&t.target.src||a,o=new Error("Loading CSS chunk "+e+" failed.\n("+i+")");o.code="CSS_CHUNK_LOAD_FAILED",o.request=i,delete r[e],d.parentNode.removeChild(d),n(o)},d.href=a,document.getElementsByTagName("head")[0].appendChild(d)})).then((function(){r[e]=0})));var n=i[e];if(0!==n)if(n)t.push(n[2]);else{var a=new Promise((function(t,r){n=i[e]=[t,r]}));t.push(n[2]=a);var s,c=document.createElement("script");c.charset="utf-8",c.timeout=120,o.nc&&c.setAttribute("nonce",o.nc),c.src=function(e){return o.p+"scripts/"+e+"-"+{0:"525bd75473",1:"f6fa17226d",2:"3b37480a80",3:"233f573a92",4:"6942fee782",5:"2f631dcd74",6:"4d72a3c3fc",7:"90ad392b55",9:"52877087ef",10:"f3b34b2d35",11:"a698af3f1c",12:"9ace90fcbc",13:"3a4f103546",14:"11868e2868",15:"78ff5e8be2",16:"22f6224811",17:"afe6281dd5",18:"47be31c0b6",19:"89c0b2c20e",20:"32ac3fe0b9",21:"891207049a",22:"24236e6723",23:"7b425169bc",24:"40edd30087",25:"887b9ef587",26:"cbe0ff0f77",27:"f26afdae78",28:"70414fd373",29:"944b5c01a7",30:"3a229887e9",31:"ab038bfc0c",32:"8bd6703eef",33:"4579af9cf9",34:"d8b96d9f9f",35:"666d815525",36:"02ce5f3538",37:"afd3d321e3",38:"6ad53aa15b",39:"46c747b1d9",40:"c1b8806b1c",41:"f4c23477e3",42:"7a5b92d70b",43:"97193a87df",44:"7f92272274",45:"265f1a7a42",46:"a594ad7eba",47:"99777c20cf",48:"9880523c82",49:"5e718594e5",50:"8cb0d9cd7d",51:"211b643ca5",52:"bfb2683b5d",53:"3cf5cd5f69",54:"26807e3e49",55:"d38be4860b",56:"d4abc25ec3"}[e]+".chunk.js"}(e);var l=new Error;s=function(t){c.onerror=c.onload=null,clearTimeout(u);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,n[1](l)}i[e]=void 0}};var u=setTimeout((function(){s({type:"timeout",target:c})}),12e4);c.onerror=c.onload=s,document.head.appendChild(c)}return Promise.all(t)},o.m=e,o.c=n,o.d=function(e,t,n){o.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,"a",t),t},o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o.p="/",o.oe=function(e){throw console.error(e),e};var a=window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[],s=a.push.bind(a);a.push=t,a=a.slice();for(var c=0;c<a.length;c++)t(a[c]);var l=s;return o(o.s=404)}([function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t,n){"use strict";var r=n(95);n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";var r,i,o,a,s,c,l,u,p,d,h,f,m,g,v,y,b,C,S,w;!function(e){e.Stream="cv_product_stream",e.WebPlayerStream="cv_product_webplayer_stream",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.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="target_user"}(i||(i={})),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.ContentUpdatesClassificationBanner="content_updates_classification_banner",e.PreferencesSettings="preferences_settings",e.MyUploads="my_uploads"}(o||(o={})),function(e){e.Start="start",e.Complete="complete",e.Save="save",e.Discard="discard"}(a||(a={})),function(e){e.PageLoad="page_load"}(s||(s={})),function(e){e.Single="single",e.Bulk="bulk",e.All="all"}(c||(c={})),function(e){e.ProductionYear="production_year",e.Alphabetical="alphabetical"}(l||(l={})),function(e){e.Content="content",e.Quality="quality",e.Duration="duration",e.Reset="reset"}(u||(u={})),function(e){e.Submit="submit",e.ShowAll="show_all",e.Recent="recent",e.SearchIcon="search_icon"}(p||(p={})),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"}(d||(d={})),function(e){e.TogglePreview="toggle_preview",e.NavigateHome="navigate_home",e.OpenInStaffView="open_in_staff_view",e.Thumbnail="thumbnail",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"}(h||(h={})),function(e){e.LibraryReview="library_review"}(f||(f={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(m||(m={})),function(e){e.Edit="edit"}(g||(g={})),function(e){e.Image="image",e.User="user"}(v||(v={})),function(e){e.On="on",e.Off="off"}(y||(y={})),function(e){e.EntityRemoved="cv_entity_removed",e.ValueUpdated="cv_value_updated"}(b||(b={})),function(e){e.FileSelect="file_select",e.DragDrop="drag_drop"}(C||(C={})),function(e){e.Video="videos",e.Folder="categories",e.Series="series",e.Tags="tags"}(S||(S={})),function(e){e[e.V1=1]="V1"}(w||(w={})),n.d(t,"n",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"j",(function(){return o})),n.d(t,"o",(function(){return a})),n.d(t,"k",(function(){return c})),n.d(t,"g",(function(){return u})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return h})),n.d(t,"i",(function(){return m})),n.d(t,"a",(function(){return v})),n.d(t,"m",(function(){return y})),n.d(t,"e",(function(){return b})),n.d(t,"h",(function(){return C})),n.d(t,"l",(function(){return S})),n.d(t,"f",(function(){return w}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));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"},i={COMBINE_UPLOADS:"combine:uploads:service"}},function(e,t){e.exports=n},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),i=n(13),o=n(38),a=n(8);class s extends o.a{constructor(){super(),this.constructors={},this.destructors={},this.instances={},this.singletonInstances={},this.referenceCounts={}}get name(){return"InstanceManager"}static get Instance(){return this.instance||(this.instance=new this)}registerDataService(e,t){this.validateConstructor(e);const n=e.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new e({dataProvider:this.getInstance(t.dataProvider),cache:this.getInstance(t.cache),bootstrapData:t.bootstrapData,defaultErrorHandler:t.defaultErrorHandler,alertService:t.alertService}),this.destructors[n]=()=>{this.instances[n]?this.instances[n].destroy():a.c.throw(new i.a(`Trying to destroy a ${n} instance that has already been destroyed`)),this.releaseInstance(t.dataProvider),this.releaseInstance(t.cache)},this}registerInstance(e,t){this.validateConstructor(e);const n=e.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new e(t),this.destructors[n]=()=>r.isFunction(this.instances[n].destroy)&&this.instances[n].destroy(),this}registerSingleton(e){const t=e.name;return this.singletonInstances[t]=e,this}getInstance(e,t){return this.singletonInstances[e]?this.singletonInstances[e]:(this.constructors[e]||a.c.throw(new i.a(`${e} was not registered with ${this.name}`)),this.referenceCounts[e]++,t&&this.listenTo(t,"destroy",()=>this.releaseInstance(e)),this.instances[e]||(this.instances[e]=this.constructors[e]()),this.instances[e])}releaseInstance(e){if(this.instances[e])return window.setTimeout(()=>{this.referenceCounts[e]--,this.referenceCounts[e]<1&&(this.destructors[e](),delete this.instances[e])},0),this}validateConstructor(e){const t=e.prototype.name;t||a.c.throw(new i.a(`Classes registered with ${this.name} must have a unique name property.`)),this.constructors[t]&&a.c.throw(new i.a(`A class with the name: ${t} has already been registered with ${this.name}`))}}const c=s.Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(241),i=n(1),o=n(96),a=n(38),s=n(8),c=n(37),l=n(13),u=n(46);class p extends a.a{static get Instance(){return this.instance||(this.instance=new this)}get name(){return c.a.LANGUAGE}setConfig(e){this.polyglot=new r({locale:e.locale,phrases:e.phrases.rootElement||e.phrases}),this.cache={}}getPhrase(e,t,n){const r=`${e}.${t}`;if(this.polyglot||s.c.throw(new l.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!u.a.isDevelopment){const e=window.trackJs;return e&&e.console.error(`No phrase set for ${r} in language config`),""}s.c.throw(new l.a(`No phrase set for ${r} in language config.`))}if(!n||i.isEmpty(n)){const e=this.cache[r];if(e)return e;const t=this.polyglot.t(r);return this.cache[r]=t,t}const a=i.omit(n,"smartCount");let c={};for(let e in a)c[e]=o.sanitize(a[e]);i.isNumber(n.smartCount)&&(c.smart_count=n.smartCount);const p=`${r}:${i.values(Object.assign({},c)).join(":")}`,d=this.cache[p];if(d)return d;const h=this.polyglot.t(r,c);return this.cache[p]=h,h}encloseNamespace(e){return(t,n)=>this.getPhrase(e,t,n)}}const d=p.Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return s})),n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return l})),n.d(t,"c",(function(){return u}));var r=n(5),i=n(15),o=n(46),a=n(19);class s extends Error{constructor(e){super(e)}}class c extends s{get name(){return"SilentError"}}class l extends Error{get name(){return"CoreError"}}const u={throw(e){if(r.Radio.channel(i.a.SHELL).trigger(a.a.ERROR,e),!(e instanceof c||o.a.isDevelopment))throw e}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));const r={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService"},i={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=n(64),i=n(1),o=n(138),a=n.n(o),s=n(139),c=n.n(s),l=n(140),u=n.n(l),p=n(141),d=n.n(p),h=(n(142),n(143),n(144)),f=n.n(h),m=n(145),g=n.n(m),v=n(146),y=n.n(v),b=n(147),C=n.n(b),S=n(148),w=n.n(S),E=n(149),x=n.n(E),O=n(150),k=n.n(O),L=n(151),A=n.n(L),T=n(152),N=n.n(T),R=n(153),P=n.n(R),I=n(154),_=n.n(I),D=n(155),U=n.n(D),j=n(156),M=n.n(j),z=n(157),F=n.n(z),V=n(158),H=n.n(V),q=n(159),B=n.n(q),$=n(160),J=n.n($),G=n(161),K=n.n(G),W=n(162),Y=n.n(W),Q=n(163),X=n.n(Q),Z=(n(164),n(165)),ee=n.n(Z),te=n(166),ne=n.n(te),re=n(167),ie=n.n(re),oe=(n(168),n(169),n(170)),ae=n.n(oe),se=n(171),ce=n.n(se),le=n(172),ue=n.n(le),pe=n(173),de=n.n(pe),he=n(174),fe=n.n(he),me=n(175),ge=n.n(me),ve=(n(176),n(177)),ye=n.n(ve),be=n(178),Ce=n.n(be),Se=n(179),we=n.n(Se),Ee=n(180),xe=n.n(Ee),Oe=n(181),ke=n.n(Oe),Le=n(182),Ae=n.n(Le),Te=n(183),Ne=n.n(Te),Re=(n(184),n(185)),Pe=n.n(Re),Ie=n(186),_e=n.n(Ie),De=n(187),Ue=n.n(De),je=n(188),Me=n.n(je),ze=n(189),Fe=n.n(ze),Ve=n(190),He=n.n(Ve),qe=n(191),Be=n.n(qe),$e=n(192),Je=n.n($e),Ge=n(193),Ke=n.n(Ge),We=n(194),Ye=n.n(We),Qe=n(195),Xe=n.n(Qe),Ze=n(196),et=n.n(Ze),tt=n(197),nt=n.n(tt),rt=(n(198),n(199),n(200),n(201)),it=n.n(rt),ot=(n(202),n(203),n(204),n(205),n(206)),at=n.n(ot),st=n(207),ct=n.n(st),lt=(n(208),n(209),n(210),n(211)),ut=n.n(lt),pt=n(212),dt=n.n(pt),ht=n(213),ft=n.n(ht),mt=n(214),gt=n.n(mt),vt=n(215),yt=n.n(vt),bt=n(216),Ct=n.n(bt),St=n(217),wt=n.n(St),Et=(n(218),n(219),n(220),n(221)),xt=n.n(Et),Ot=n(222),kt=n.n(Ot);const Lt=[a.a,u.a,d.a,f.a,C.a,w.a,x.a,k.a,y.a,c.a,A.a,N.a,P.a,_.a,U.a,g.a,M.a,F.a,H.a,X.a,B.a,J.a,K.a,Y.a,ee.a,ue.a,Be.a,Ke.a,Je.a,nt.a,Ye.a,Xe.a,et.a,xe.a,Ae.a,ke.a,ne.a,ie.a,Ce.a,we.a,ye.a,ae.a,de.a,_e.a,Ue.a,fe.a,ge.a,Me.a,ce.a,Pe.a,Fe.a,He.a,Ne.a,at.a,ct.a,it.a,ft.a,dt.a,ut.a,gt.a,Ct.a,yt.a,wt.a,kt.a,xt.a];var At;!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.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"}(At||(At={}));i.extend(r.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),r.library.add(...Lt),n.d(t,"a",(function(){return Nt})),n.d(t,"b",(function(){return Rt}));const Tt="cv";const Nt=class{constructor(){}static get Instance(){return this.instance||(this.instance=new this)}getSvg(e,t={}){const n=this.faIconLookup(e,t),r=this.getIcon(n,t);if(r&&(!r||r.html.length))return r.html.pop()}getIcon(e,t){return r.icon(e,t.iconOptions||{})}faIconLookup(e,t){let{prefix:n=Tt}=t;return r.findIconDefinition({prefix:n,iconName:e})}}.Instance,Rt=At},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",EDIT_VIDEO:"edit:video",EDIT_UPLOAD:"edit:upload",SHARE:"share",WATCH_HISTORY:"watch:history"},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",CLASSIFICATION_SERIES:"classification:series",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:{MY_UPLOADS:"my:uploads",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"}}},function(e,t,n){"use strict";var r=n(93);n.d(t,"a",(function(){return r}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(8);class i extends r.a{get name(){return"DevError"}}},function(e,t,n){"use strict";n.d(t,"b",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"a",(function(){return o}));const 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"},i={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"},o={NOTIFICATIONS:"notifications:application"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},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",leftNavText:"_3qbRh",leftNavBottom:"_1OHHF",partialLeftNavItem:"_131rM",iconGrey:"_2C2dq",leftNavIcon:"_13OIc",discover:"_2dE5b",active:"_3209B",playlists:"_2l2O2",myUploads:"_qXck",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,"a",(function(){return r}));const 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}));const 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 r}));const r={SEARCH:"search:app:variables",NOTIFICATIONS:"notifications:app:variables"}},function(e,t){e.exports=i},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(5);function i(e,t,n,i){let o=e;return"string"==typeof e&&(o=r.Radio.channel(e)),i.call(this,o,t,n)}},function(e,t,n){"use strict";n.d(t,"b",(function(){return d})),n.d(t,"a",(function(){return f}));var r=n(1),i=n(5),o=n(44),a=n(15),s=n(19);const c=/((\(\?)?:\w+)|(\*\w+)/,l=/[\(\)]/g,u=/\(\/\)/g,p=/\/$/,d={routingStarted(){i.Radio.channel(a.a.SHELL).trigger(s.a.ROUTING_START)},routingEnded(){if(!d.hasActiveRoute())return;i.Radio.channel(a.a.SHELL).trigger(s.a.ROUTING_END)},hasActiveRoute:()=>i.Radio.channel(a.a.SHELL).request(s.a.HAS_ACTIVE_ROUTE)},h=(e,t={})=>{t.usedHelper=!0;const{application:n,action:r}=e;i.Radio.channel(n).trigger(r,e,t)},f={getHref(e){if(!e)return"";const{application:t,action:n,args:r,params:o}=e;return"/"+i.Radio.channel(a.a.SHELL).request(s.a.ROUTE_LOOKUP,`${t}:${n}`,r,o)},buildRoute(e,t){if(!t)return e;let n=t.args,i=t.params;if(r.each(n,t=>{e=e.replace(c,t||"")}),e=(e=(e=e.replace(u,"")).replace(l,"")).replace(p,""),!i)return e;const a=o.a.SerializeQueryParams(i);return a.length?`${e}?${a}`:e},trigger(e,t){if(!e)return;if(!d.hasActiveRoute())return void h(e,t);i.Radio.channel(a.a.SHELL).once("routing:end",()=>{h(e,t)})},getCurrentAppLink:()=>i.Radio.channel(a.a.SHELL).request(s.a.CURRENT_ROUTE)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const 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";n.d(t,"a",(function(){return i}));var r=n(1);const i={debounce:(e,t,n)=>r.debounce(e,t,n),throttle:(e,t,n)=>r.throttle(e,t,n),isFunction:e=>r.isFunction(e),useIdentity:()=>r.identity,memoize:(e,t)=>r.memoize(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i}));const r={VIDEO_COLLECTION:`series,season,rating,thumbnail,${`categories{libraries.typeid:${n(98).a.CustomMediaObjectCollection}}`},libraries,tags,clips{limit:100},interactives{limit:1},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}",PLAYLIST_COLLECTION:"videos[thumbnail,count()]{orderby:orderindex,limit:1},thumbnail,cover"},i={SubjectPresentationActiveAudienceFilter:e=>`subjectpresentationaudiences.id:[${e.join(",")}]`,SubjectPresentationAudienceFilter:e=>`subjectpresentationaudiences{presentationId:${e}}`,ClassificationWithFollowersAndMemberCount:e=>r.CLASSIFICATION+`,followers{id:${e}},videos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}`}},function(e,t){e.exports=o},function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"c",(function(){return i})),n.d(t,"b",(function(){return d}));var r,i,o=n(1),a=n(5),s=n(62),c=n(43),l=n(38),u=n(15),p=n(37);!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"}(i||(i={}));class d extends l.a{constructor(e){super(e)}initialize(){this.alertCollection=new s.a,this.listenTo(u.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}get name(){return p.a.ALERT}get defaults(){return{maxAlerts:3}}showAlerts(){const e=a.Radio.channel(u.a.ALERT);let t={collection:this.alertCollection};this.options.alertViewCtor&&(t=o.extend({},t,{ctor:this.options.alertViewCtor})),e.trigger("show:alert",t)}removeAlert(e){this.alertCollection.remove(e),this.showAlerts()}createAlert(e){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),e.id||(e=o.extend({},e,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new c.a(e)),this.showAlerts()}clearAllAlerts(){this.alertCollection.reset(null)}success(e){return"string"==typeof e?o.bind(()=>this.createAlert(o.extend({},this.options.defaultSuccessAlert,{message:e})),this):e.useXHR?o.bind((e,t)=>this.createAlert(o.extend({},this.options.defaultSuccessAlert,{message:t})),this):o.bind(()=>this.createAlert(o.extend({},this.options.defaultSuccessAlert,e)),this)}error(e){return"string"==typeof e?o.bind(()=>this.createAlert(o.extend({},this.options.defaultErrorAlert,{message:e})),this):e.useXHR?o.bind(e=>this.createAlert(o.extend({},this.options.defaultErrorAlert,{message:e.message})),this):o.bind(()=>this.createAlert(o.extend({},this.options.defaultErrorAlertIL_DEFAULT,e)),this)}generateUniqueAlertId(){return o.uniqueId("alert_")}}},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";var r=n(1),i=n(2),o=n(13),a=n(3),s=n(15),c=n(100);class l extends i.a.Service{constructor(){super(...arguments),this.contextHistory=[]}get name(){return c.a.Context}static get Instance(){return this.instance||(this.instance=new this)}initialize(){this.listenTo(s.a.SHELL,i.a.EventNames.ROUTE,this.setContext)}setContext(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}fromPageLoad(){return 1===this.contextHistory.length}}const u=new l;var p=n(65);function d(){const{appLink:e}=u.getCurrentContext();return r.isObject(e)||i.a.ErrorHelper.throw(new o.a("Applink does not exist. Check current context.")),e.application.replace(":","-")}function h(e={}){const{location:t,entity:n,workflowPhase:r=null,descriptor:a=null}=e;return t||i.a.ErrorHelper.throw(new o.a("location must be set.")),n||i.a.ErrorHelper.throw(new o.a("entity must be set.")),{productArea:d(),location:t,entity:n,descriptor:a,workflowPhase:r}}function f(){return i.a.LocationUtils.GetCurrentPath()+i.a.LocationUtils.GetCurrentQueryString()}n.d(t,"a",(function(){return m}));const m={logUserAction(e,t){if(!function(e){return!(!r.isArray(e)||!r.every(e,e=>r.isObject(e)))||!!r.isObject(e)}(e)||!r.isObject(t))return;const{userAction:n,action:i,eventVersion:o}=m.buildUserActionEvent(t);p.a.log(n,e,i,o)},logNavigate(e,t){const n=Object.assign({currentLocation:f(),appLink:e},t);p.a.log(a.n.Navigate,n)},mergeOptions:(e,t)=>r.extend({},e,t),buildActionContext:(e={})=>h(e),buildUserActionEvent(e={}){const{actionType:t,eventVersion:n}=e;return{userAction:t,action:h(e),eventVersion:n}},buildCurrentLocation:()=>f(),buildSearchEvent:(e,t)=>({data:{query:e},action:h({entity:a.d.Video,location:a.j.SearchBar,descriptor:t})}),buildInstantSearchEvent(e,t,n){let 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);const i={instant:{},query:e};return t.id&&(i.instant.selectedId=t.id),t.name&&(i.instant.selectedName=t.name),{data:i,action:h({entity:r,location:a.j.SearchBar})}},mapInteractionType(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,"b",(function(){return i})),n.d(t,"a",(function(){return o}));var r=n(9),i=Object.assign(Object.assign({},r.b),{CombineUploads:"combine:uploads:service"}),o=Object.assign({},r.a)},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return u}));var r=n(0),i=n(26),o=n(10),a=n(83);const s="d-inline-block svg-container",c="span";var l;function u(e){const{svgName:t,className:n=s,tagName:u=c,size:p=l.Standard,onClick:d,title:h,tooltipPlacement:f="right"}=e,m=u,g={dangerouslySetInnerHTML:{__html:o.a.getSvg(t)},className:`${n} ${p}`,onClick:i.a.isFunction(d)?d:null};return h?r.createElement(a.a,{title:h,placement:f},r.createElement(m,Object.assign({},g))):r.createElement(m,Object.assign({},g))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg"}(l||(l={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(2);function o(e){const{appLink:t,className:n,children:o,tag:a="a"}=e;if(!t)return r.createElement("span",{className:n||""},o);let s=e.onClick;s||(s=e=>{e.preventDefault(),i.a.AppLinkHelper.trigger(t)});const c={onClick:s,href:i.a.AppLinkHelper.getHref(t),className:n};return r.createElement(a,Object.assign({},c),o)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),i=n(242),o=n.n(i);const a=/&/g,s=/[\W]+/g,c=/\s+/g,l={className:"info-link"},u={escapeExpression:e=>window.Handlebars.escapeExpression(e),escapeRegExp:e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),slugify(e){if(e)return e.toLowerCase().replace(a,"and").replace(s," ").trim().replace(c,"-").substr(0,80)},linkifyText(e,t){if(!e)return;const n=t?r.extend({},l,t):l;return o()(e,n)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(1);const i={isEmpty:e=>r.isEmpty(e),values:e=>r.values(e),keys:e=>r.keys(e),deepClone:e=>(r.isArray(e)?r.map:r.mapObject)(e,e=>r.isObject(e)||r.isArray(e)?i.deepClone(e):e),getEnumKeys:e=>Object.keys(e).filter(e=>!(parseInt(e)>=0)),isObject:e=>r.isObject(e),isEqual:(e,t)=>r.isEqual(e,t),omit:(e,t)=>r.omit(e,t)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(22),i=n(23),o=n(8);class a extends r.Object{constructor(e){super(e),this.name||o.c.throw(new o.b("Your service must be named."))}listenTo(...e){return i.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t){e.exports=a},function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),i=n(60),o=n(13),a=n(38),s=n(43),c=n(70),l=n(8);class u extends a.a{constructor(){super(),this.viewObjects={}}static get Instance(){return this.instance||(this.instance=new this)}get name(){return"ViewModelService"}updateViewModel(e,t){const n=this.mergeData(t,e.toJSON());return e instanceof c.a&&e.set(n,{silent:!0}),e instanceof s.a&&!(e instanceof c.a)&&e.set(n,{silent:!0}),e}get(e,t={},n={}){const{update:r=!1}=n,i=this.viewObjects[e];if(i&&r)return this.updateViewModel(i,t);if(i)return i;const o=this.getLocalData(e,n);return this.set(e,t,o,n)}set(e,t={},n,r){const{ctor:i,storage:o}=r,a=this.mergeData(t,n),c=i?new i(a):new s.a(a);return this.viewObjects[e]=c,o&&!n?(this.setLocalData(e,c,null,r),this.setupChangeListeners(e,c,r)):o&&n&&this.setupChangeListeners(e,c,r),c}clear(e){const t=this.viewObjects[e];return!!t&&(this.stopListening(t),t.trigger("destroy"),delete this.viewObjects[e],!0)}getLocalData(e,t){const{storage:n}=t;if(!n)return;return this.getStorageHelper(n.type).get(e)}setLocalData(e,t,n,r){const{storage:i}=r;if(!i||i&&!i.persistProps)return;let o;"string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),t instanceof s.a&&(o=t.pick(i.persistProps));this.getStorageHelper(i.type).set(e,o)}setupChangeListeners(e,t,n){const{storage:i}=n;!i||i&&!i.persistProps||("string"==typeof i.persistProps&&(i.persistProps=[i.persistProps]),r.each(i.persistProps,i=>{this.listenTo(t,"change:"+i,r.partial(this.setLocalData,e,r,r,n))}))}mergeData(e,t){return t?r.isObject(e)&&r.isObject(t)?r.extend(e,t):void l.c.throw(new o.a("defaultValues and existingData are not of the same datatype and cannot be merged")):e}getStorageHelper(e){switch(e){case i.c.LocalStorage:return i.a;case i.c.SessionStorage:return i.b}}}const p=u.Instance},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={SHORT:120,STANDARD:600}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),i=n(5),o=n(38),a=n(8),s=n(13);class c extends o.a{constructor(e){super(e),r.result(this,"name")||a.c.throw(new s.a("Must provide a name when extending BaseDataService")),r.result(this,"channelName")||a.c.throw(new s.a("Must provide a channelName for "+r.result(this,"name")));const t=[...this.defaultProps,...this.props||[]];this.dataRequestSignatures={},this.mergeOptions(e,t)}get defaultProps(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}getCursors(e){const t=this.cache.get(e);return t?t.cursors:{}}clearCacheAndGet(e){const{callback:t,errorCallback:n,eventPrefix:i}=e,{syncEvent:o,errorEvent:a}=this.getEventNames(i),s=this.cache.get(i);if(s&&s.openRequest){const e=e=>{r.isFunction(n)&&this.stopListening(this.getChannel(),a,n),r.isFunction(t)&&t(e)},i=()=>{r.isFunction(t)&&this.stopListening(this.getChannel(),o,t),r.isFunction(n)&&n()};return this.listenToOnce(this.getChannel(),o,e),void this.listenToOnce(this.getChannel(),a,i)}this.cache.remove(e.eventPrefix),this.get(e)}get(e){const{callback:t,errorCallback:n,eventPrefix:i,resource:o,formatData:a,expiryTime:s,successHandler:c,errorHandler:l,bootstrapName:u}=e,{syncEvent:p,requestEvent:d,successEvent:h,errorEvent:f}=this.getEventNames(i),m=this.getChannel(),g=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[u]&&(this.cacheData(i,this.bootstrapData[u],a,{openRequest:!1,timestamp:g}),delete this.bootstrapData[u]);const v=this.cache.get(i);let y;v&&(y=v.data);const b=v&&v.openRequest,C=this.isExpired(i,s);if(b){const e=e=>{r.isFunction(n)&&this.stopListening(this.getChannel(),f,n),r.isFunction(t)&&t(e)},i=()=>{r.isFunction(t)&&this.stopListening(this.getChannel(),p,t),r.isFunction(n)&&n()};this.listenToOnce(m,p,e),this.listenToOnce(m,f,i)}if(this.cache.has(i)&&!C||(m.trigger(d),this.listenToResponse({eventPrefix:i,formatData:a,cacheOptions:{timestamp:g},callback:t,errorCallback:n,successHandler:c,errorHandler:l}),this.cacheData(i,null,null,{openRequest:!0,timestamp:g}),this.dataProvider.read(o,{channel:this.getTransportChannel(),successEvent:h,errorEvent:f})),y&&r.isFunction(t)&&!C&&t(y),y)return y}create(e){const{eventPrefix:t,resource:n,data:r,formatData:i,callback:o,errorCallback:a,invalidationKeys:s,successHandler:c,errorHandler:l}=e,{requestEvent:u,successEvent:p,errorEvent:d}=this.getEventNames(e.eventPrefix),h=this.getChannel(),f=this.getTransportChannel();h.trigger(u),this.listenToResponse({eventPrefix:t,formatData:i,invalidationKeys:s,callback:o,errorCallback:a,successHandler:c,errorHandler:l}),this.dataProvider.create(n,r,{channel:f,successEvent:p,errorEvent:d})}update(e){const{data:t,callback:n,errorCallback:r,resource:i,formatData:o,eventPrefix:a,invalidationKeys:s,errorHandler:c,successHandler:l}=e,{requestEvent:u,successEvent:p,errorEvent:d}=this.getEventNames(e.eventPrefix),h=this.getChannel(),f=this.getTransportChannel();h.trigger(u),this.listenToResponse({eventPrefix:a,formatData:o,invalidationKeys:s,callback:n,errorCallback:r,successHandler:l,errorHandler:c}),this.dataProvider.update(i,t,{channel:f,successEvent:p,errorEvent:d})}delete(e){const{eventPrefix:t,resource:n,callback:r,errorCallback:i,invalidationKeys:o,successHandler:a,errorHandler:s}=e,{successEvent:c,errorEvent:l}=this.getEventNames(t),u=this.getTransportChannel();this.listenToResponse({eventPrefix:t,invalidationKeys:o,callback:r,errorCallback:i,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:s}),this.dataProvider.delete(n,{channel:u,successEvent:c,errorEvent:l})}listenToResponse(e){const{eventPrefix:t,formatData:n,callback:i,errorCallback:o,successHandler:a,errorHandler:s,invalidationKeys:c,cacheOptions:l={}}=e,{syncEvent:u,requestEvent:p,successEvent:d,errorEvent:h,successAlertEvent:f,errorAlertEvent:m}=this.getEventNames(t),g=this.getChannel(),v=this.getTransportChannel(),y=this.getAlertChannel();if(r.isFunction(i)&&this.listenToOnce(g,u,i),r.isFunction(o)&&this.listenToOnce(g,h,o),this.stopListening(y,f),this.stopListening(y,m),r.isFunction(a)&&this.listenToOnce(y,f,a),r.isFunction(s)&&this.listenToOnce(y,m,s),!r.isFunction(s)&&!1!==s&&r.isFunction(this.defaultErrorHandler)&&this.listenToOnce(y,m,this.defaultErrorHandler),this.hasRequestSignature(t))return;this.setRequestSignature(t);this.listenTo(v,d,(e,...r)=>{this.stopListening(g,h,o),y.trigger(f,e,...r);const i=l.noCache?this.formatData(e,n):this.cacheData(t,e,n);l.clearCacheKey&&this.cache.remove(t),g.trigger(u,i),c&&c.length&&this.cache.invalidate(c,e=>g.trigger(e+":invalidate"))}),this.listenTo(v,h,(...e)=>{this.stopListening(g,u,i);const n=this.dataProvider.parseError(...e);y.trigger(m,n),g.trigger(h,n),l.noCache||this.cacheData(t,null,null)})}cacheData(e,t,n,r={}){let{openRequest:i=!1,timestamp:o}=r;o||(o=this.currentTimestamp());const a=this.processPagination(t),s=this.formatData(t,n);return this.cache.set(e,{data:s,timestamp:o,cursors:a,openRequest:i}),s}processPagination(e){if(!e)return;const{pagination:t}=e;return t?t.cursors?t.cursors:r.isUndefined(t.offset)||r.isUndefined(t.pageSize)?t.page?this.convertLegacyPaginationToCursors(t):void 0:this.convertOffsetPaginationToCursors(t):void 0}formatData(e,t){return r.isFunction(t)?t(e):e}chain(){const e=[],t=(e,t)=>{r.isFunction(e)&&e(t)},n=(n,r)=>(e.push(()=>{const i=n.callback;n.callback=n=>{t(i,n),t(e.shift())},this[r](n)}),i),i={func:t=>(e.push(()=>{t(e.shift()||(()=>{}))}),i),get:e=>n(e,"get"),create:e=>n(e,"create"),update:e=>n(e,"update"),delete:e=>n(e,"delete"),run(){t(e.shift())}};return i}invalidateCache(e){e&&e.length&&this.cache.invalidate(e)}currentTimestamp(){return(new Date).valueOf()}isExpired(e,t){if(!t)return!1;const n=this.cache.get(e);if(!n||!n.timestamp)return!0;const r=1e3*t;return n.timestamp<this.currentTimestamp()-r}getEventNames(e){return{syncEvent:e+":sync",requestEvent:e+":request",successEvent:e+":success",errorEvent:e+":error",successAlertEvent:e+":success:alert",errorAlertEvent:e+":error:alert"}}getTransportChannel(){return i.Radio.channel(this.channelName+":transport")}getAlertChannel(){return i.Radio.channel(this.channelName+":alert")}setRequestSignature(e){this.dataRequestSignatures[e]=e}hasRequestSignature(e){return!!this.dataRequestSignatures[e]}convertOffsetPaginationToCursors(e){const{offset:t,pageSize:n,totalItems:i}=e,o=i>0&&t<i&&t+n,a=i>0&&t>0&&Math.max(t-n,0);let s={};if(o&&o<i&&(s.next=o.toString()),r.isNumber(a)&&(s.previous=a.toString()),!r.isEmpty(s))return s}convertLegacyPaginationToCursors(e){const{page:t,totalPages:n}=e,i=r.isNumber(t)&&t>0&&t<n&&t+1,o=r.isNumber(t)&&t>1&&t-1;let a={};if(i&&i<=n&&(a.next=i.toString()),o&&(a.previous=o.toString()),!r.isEmpty(a))return a}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i=n(5),o=n(23);class a extends i.Model{mixin(e){const t=this;for(let n in e){if(t.hasOwnProperty(n)){const i=t[n];return void(t[n]=r.extend({},i,e[n]))}t[n]=e[n]}}addValidation(e){this.mixin({validation:e})}validate(e,t){super.validate.call(this,e,t)}listenTo(...e){return o.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),i=n(5),o=n(24),a=n(19),s=n(15);const c={GetQuery:()=>c.DeserializeQueryParams(window.location.search.substring(1)),UpdateQuery(e){if(!e)return;const t=c.GetQuery();let n=c.SerializeQueryParams(r.extend(t,e));n&&(n="?"+n),c.UpdateUrl(`${c.GetCurrentPath()}${n}`,null,{replace:!0,trigger:!1})},UpdateUrl(e,t,n){const r=o.a.buildRoute(e,t);i.history.navigate(r,n),i.Radio.channel(s.a.SHELL).trigger(a.a.URL_CHANGE,t,n)},SerializeQueryParams:e=>e?"string"==typeof e?e:$.param(e,!0):"",DeserializeQueryParams:e=>e?r.reduce(e.split("&"),(e,t)=>{const n=t.split("="),r=n[0],i=n.length>0?decodeURIComponent(n[1]):"";return e[r]?e[r]instanceof Array?(e[r].push(i),e):(e[r]=[e[r],i],e):(e[r]=i,e)},{}):{},StartHistory(){i.History.started&&i.history.stop(),i.history.start({pushState:!0})},PageLoad(e,t=!1){t?window.open(e,"_blank"):window.location.href=e},Redirect(e,t=!0){const n=()=>t?window.location.replace(e):window.location.href=e;o.b.hasActiveRoute()?i.Radio.channel(s.a.SHELL).once("routing:end",n):n()},Reload(e=!0){window.location.reload(e)},GetCurrentPath:()=>window.location.pathname,GetCurrentQueryString:()=>window.location.search,GetCurrentUrl:()=>window.location.href,GetCurrentReferrer:()=>document.referrer,SetPageTitle(e){document.title=e}}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e.Newest="newest",e.RecentlyUpdated="recentlyupdated",e.AtoZ="atoz"}(r||(r={}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r=class{constructor(){this.variables={}}static get Instance(){return this.instance||(this.instance=new this)}get name(){return"EnvironmentVariables"}get isDevelopment(){return this.variables.isDevelopment}get(e){return this.variables[e]}setUpVariables(e){this.variables=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){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(0),i=n(7),o=n(36);const a=r.createContext(""),s=r.memo((function(e){const{phrase:t,namespace:n,options:o}=e,s=r.useContext(a),c=n||s,l=i.a.getPhrase(c,t,o);return r.createElement("span",{dangerouslySetInnerHTML:{__html:l}})}),(e,t)=>e.namespace===t.namespace&&e.phrase===t.phrase&&o.a.isEqual(e.options,t.options))},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(2),i=n(15),o=n(9);class a extends r.a.Service{constructor(){super(...arguments),this.routeHistory=[],this.contextHistory=[]}get name(){return o.b.Context}static get Instance(){return this.instance||(this.instance=new this)}initialize(){this.listenTo(i.a.SHELL,r.a.EventNames.ROUTE,this.setContext),this.listenTo(i.a.SHELL,r.a.EventNames.ROUTE,this.updateRouteHistory)}setContext(e){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:e})}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}getPreviousContext(){if(this.contextHistory.length&&!(this.contextHistory.length-2<0))return this.contextHistory[this.contextHistory.length-2]}updateRouteHistory(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}))}getCurrentRoute(){if(this.routeHistory.length)return this.routeHistory[this.routeHistory.length-1]}getPreviousRoute(){if(this.routeHistory.length&&!(this.routeHistory.length-2<0))return this.routeHistory[this.routeHistory.length-2]}fromPageLoad(){return 1===this.contextHistory.length}}const s=new a},function(e,t,n){e.exports={content:"_1SX2l",collapsedNavContent:"_3LJFz",openNavContent:"_34Pt4",hiddenNavContent:"_1gZ0J",mask:"mE2Dq",fixedBottomRightContainer:"Sgmex"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(39),i=n(99);const o=(e,t)=>{const n=Object(r.useDispatch)(),o=Object(r.useSelector)(t=>t.viewModelData[e]);function a(t,r){n({type:i.a.UPDATE,payload:{viewModelKey:e,dataOrKey:t,keyData:r}})}return void 0!==t&&void 0===o&&a(t),[o,a]}},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){e.exports=s},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=c},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 i}));var r=n(1);const i={urlBuilder(e,t){const n=r.map(t,(e,t)=>{if(t&&Array.isArray(e)){return e.map(e=>`${t}=${encodeURIComponent(e)}`).join("&")}return t&&void 0!==e?`${t}=${encodeURIComponent(e)}`:""}),i=r.reduce(n,(e,t)=>t?e?`${e}&${t}`:t:e);return i?`${e}?${i}`:e},buildFilter(e){let t=[];if(e.limit&&t.push("limit:"+e.limit),e.cursor&&t.push("page:"+e.cursor),e.before&&t.push("dateCreated:..."+e.before),t.length)return t.join(",")},makeHttps:e=>r.isString(e)?-1===e.indexOf("http://")?e:e=e.replace("http://","https://"):e,safeUrlConcat(e,t){if(!e)return;let n=e;return e.endsWith("/")||(n+="/"),t?(n+=t.startsWith("/")?t.slice(1):t,n):n}}},function(e,t,n){"use strict";var r;n.d(t,"c",(function(){return r})),n.d(t,"a",(function(){return o})),n.d(t,"b",(function(){return a})),function(e){e.LocalStorage="localStorage",e.SessionStorage="sesstionStorage"}(r||(r={}));class i{constructor(e){this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=e.type,this.hasSupport&&(this.storage=window[this.type])}get(e){if(!this.hasSupport)return;const t=this.storage.getItem(e);try{return JSON.parse(t)}catch(e){return t}}set(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}}remove(e){if(this.hasSupport)return this.storage.removeItem(e)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(e,t,n=this.expireTime){this.cacheClean();const r={time:this.getCurrentTime()+1e3*n,data:null!=t&&t};return this.set(`${this.cachePrefix}${e}`,r)}cacheGet(e){const t=`${this.cachePrefix}${e}`,n=this.get(t);return n?this.isExpired(n)?(this.remove(t),null):n.data:null}cacheExists(e){const t=`${this.cachePrefix}${e}`,n=this.get(t);return!!n&&(!this.isExpired(n)||(this.remove(t),!1))}cacheRemove(e){return this.remove(`${this.cachePrefix}${e}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let e=0;e<this.storage.length;e++){const t=this.storage.key(e);if(0===t.indexOf(this.cachePrefix)){const e=this.get(t);e&&e.time&&this.isExpired(e)&&this.remove(t)}}}isExpired(e){return e.time<this.getCurrentTime()}getCurrentTime(){return(new Date).getTime()}hasBrowserSupport(){try{return this.type in window&&null!==window[this.type]}catch(e){return!1}}}const o=class extends i{static get Instance(){return this.instance||(this.instance=new this({type:r.LocalStorage}))}}.Instance,a=class extends i{static get Instance(){return this.instance||(this.instance=new this({type:r.SessionStorage}))}}.Instance},function(e,t,n){e.exports={svgContainer:"_1ZcbC",searchContextTag:"_1RLqh",tagFocus:"_179a5",searchContextContainer:"_3nPVB"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(5),i=n(23);class o extends r.Collection{listenTo(...e){return i.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={type:n(55).a.Unknown,message:"",code:0}},function(e,t){e.exports=l},function(e,t,n){"use strict";var r=n(5),i=n(54),o=n(101),a=n(2),s=n(13);const c=n(3).f.V1;class l{constructor(e,t,n,r){this.type=e,this.data=t,this.actionContext=n,this.eventVersion=r||c}isType(e){return e===this.type}enrich(e,t){this.validateKey(e),this[e]=t}get(e){if(e&&this[e])return this[e]}validateKey(e){"type"!==e&&"data"!==e||a.a.ErrorHelper.throw(new s.a(e+" is not a valid key")),this[e]&&a.a.ErrorHelper.throw(new s.a("Event already contains an enrichment named "+e))}}n.d(t,"a",(function(){return u}));const u={log(e,t,n,a){r.Radio.channel(o.a.ANALYTICS).trigger(i.a.Inlet,new l(e,t,n,a))}}},function(e,t,n){e.exports={nav:"_3RLQ9",logoContainer:"UIlc9",searchBar:"_2E7RQ",actionButtons:"_2HygL",hamburger:"_2BRko",searchBarNavContainer:"_2bUnK"}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1),i=n(36);const o={first:e=>r.first(e),firstFew:(e,t)=>r.first(e,t),last:e=>r.last(e),lastFew:(e,t)=>r.last(e,t),max:(e,t)=>r.max(e,t),cloneAndReplaceAtIdx(e,t,n,r=null){let i=e&&e.length?e.slice():[];return t+1>i.length&&(i=[...i,...Array(t+1-i.length).fill(r)]),i.splice(t,1,n),i},moveItem(e,t,n){const r=e.slice();return r.splice(n,0,r.splice(t,1)[0]),r},isEmpty:e=>e&&!e.length,findIndex:(e,t)=>r.findIndex(e,t),where:(e,t)=>r.where(e,t),groupBy:(e,t)=>r.groupBy(e,t),flatten:(e,t)=>r.flatten(e,t),intersection:(...e)=>r.intersection(...e),addOrRemove(e,t){const n=e.indexOf(t);return-1===n?e.push(t):e.splice(n,1),e},addOrRemoveImmutable(e,t){const n=e.indexOf(t),r=i.a.deepClone(e);return-1===n?[...r,t]:[...r.slice(0,n),...r.slice(n+1)]},sortBy:(e,t)=>r.sortBy(e,t),chunk:(e,t)=>r.chunk(e,t),uniq:e=>r.uniq(e)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"b",(function(){return s}));var r=n(7),i=n(10);const o="shared.videoActionsHelper";var a;!function(e){e[e.AddToPlaylist=0]="AddToPlaylist",e[e.RemoveFromPlaylist=1]="RemoveFromPlaylist",e[e.Share=2]="Share",e[e.Edit=3]="Edit"}(a||(a={}));const s=()=>({[a.AddToPlaylist]:{label:r.a.getPhrase(o,"addToPlaylist"),svgName:i.b.AddToPlaylists},[a.RemoveFromPlaylist]:{label:r.a.getPhrase(o,"removeFromPlaylist"),svgName:i.b.Delete},[a.Share]:{label:r.a.getPhrase(o,"share"),svgName:i.b.Share},[a.Edit]:{label:r.a.getPhrase(o,"edit"),svgName:i.b.Edit}})},function(e,t,n){"use strict";n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return f}));var r=n(1),i=n(5),o=n(22),a=n(23),s=n(13),c=n(15),l=n(46),u=n(8),p=n(24);class d extends o.View{constructor(e){super(e);const t=[...this.defaultProps,...this.props||[]];this.mergeOptions(e,t),r.result(this,"name")||u.c.throw(new u.b(`Error: View with cid:${this.cid} requires a name.`))}get defaultProps(){return["shell","layoutService"]}_setOptions(e){this.options=r.extend({},r.result(this,"defaults"),e)}_setAttributes(e){l.a.isDevelopment&&r.extend(e,{"cv-classname":this.name}),this.$el.attr(e)}get ui(){return this.uiStorage||(this.uiStorage=this.elements),this.uiStorage}set ui(e){this.uiStorage=e}get elements(){return null}static AddViewDataExtension(e){d.ViewDataExtensions.push(e)}serializeModel(){return this.model?this.model.toJSON():{}}serializeCollection(){return this.collection?this.collection.toJSON():[]}resetClassName(){this.$el.attr("class",r.result(this,"className"))}serializeData(){const e=super.serializeData(),t=r.result(this,"viewOptions"),n=r.extend({},e,{options:t});return d.ViewDataExtensions.length?r.extend(n,...r.map(d.ViewDataExtensions,e=>e instanceof Function?e(this):e)):n}viewOptions(){return this.options}undelegateAppLinks(){this.$el&&this.$el.off(".appLinks"+this.cid)}renderAppLinks(){let e=this.appLinks;e&&(e=this.normalizeUIKeys(e),this.undelegateAppLinks(),r.each(r.keys(e),t=>{let n=t;const r=e[t],i=p.a.getHref(r);"[this]"===n&&(n=null);const o=n?this.$el.find(t):this.$el;(o.is("a")||o.is("button"))&&(i&&"/"!==i&&o.attr("href",i),this.delegate("click.appLinks"+this.cid,n,(function(e){e.preventDefault(),p.a.trigger(r)})))}))}hasPartialLoadingRegions(){const e=this;return void 0!==e._hasPartialLoadingRegions||(e._hasPartialLoadingRegions=r.some(e.regions,e=>r.has(e,"partialLoading"))),e._hasPartialLoadingRegions}renderPartialLoading(e){i.Radio.channel(c.a.SHELL).trigger("render:partial:loading",this,e)}listenTo(...e){return a.a.call(this,e[0],e[1],e[2],super.listenTo)}render(){const e=this;if(e._isDestroyed)return this;let t=this.processRequriedResources(!0);return t&&(t=e.triggerMethod("before:render",this)),!1!==t&&(t=!0),t=t&&this.processRequriedResources(!1),!1===t?(e._partialLoadingRendered||!e.hasPartialLoadingRegions()||(e._partialLoadingRendered=!0,e._reInitRegions(),e._renderTemplate(),e.renderPartialLoading()),this):((e._isRendered||e._partialLoadingRendered)&&e._reInitRegions(),this.setTitle(),e._renderTemplate(),e.bindUIElements(),this.renderAppLinks(),e._partialLoadingRendered=!1,e._isRendered=!0,e.triggerMethod("render",this),this)}processRequriedResources(e){return!0}setTitle(){}}d.ViewDataExtensions=[];class h extends d{constructor(e){super(e),this.boundListeners={},this.resourceInstances={}}processRequriedResources(e){const t=r.keys(this.requiredResources);if(!t.length)return!0;const n=this;let i=!0;return r.each(t,t=>{const r=this.requiredResources[t];if(r.beforeOnBeforeRender!==e)return;const o=r.dataServiceName;this.resourceInstances[o]||(this.resourceInstances[o]=r.getInstance(this)),this.boundListeners[`${o}:${r.eventName}`]||(this.listenTo(this.resourceInstances[o].channelName,r.eventName,this.render),this.boundListeners[`${o}:${r.eventName}`]=!0),n[t]=r.getData(this.resourceInstances[o]),i=i&&!!n[t]}),i}setTitle(){r.isString(this.title)||!1===this.title||u.c.throw(new s.a(`Must define a title for ${this.name}.`));i.Radio.channel(c.a.SHELL).trigger("set:page:title",this.title)}}class f extends d{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(1),i=n(43),o=n(62);class a extends i.a{set(e,t,n){let i,o;if(null===e)return this;for(i in"object"==typeof e?(o=e,n=t):(o={},o[e]=t),n||(n={}),o)r.has(this.associations,i)&&(o[i]=this.setAssociation(i,o[i],n));return super.set.call(this,o,n)}get(e){var t=e.indexOf(".");if(-1===t)return super.get.call(this,e);const n=e.substr(0,t),i=this.attributes[n];if(!i||!r.isFunction(i.get))return super.get.call(this,e);const o=e.substr(t+1);return i.get(o)}setAssociation(e,t,n){const a=this.associations[e],s=this.attributes[e];if(!r.isFunction(a))return t;if(n.unset)return s&&delete s.parent,delete this[e],s;if(s)return s instanceof i.a&&s.set(t,n),s instanceof o.a&&s.set(t,n),n.silent||this.trigger("change:"+e,this,t,n),s;const c=t instanceof i.a?t:new a(t,{parse:!0});return c.parent=this,this[e]=c,c}toJSON(...e){const t=super.toJSON.apply(this,e);return r.each(this.associations,(e,n)=>{r.has(t,n)&&r.isFunction(t[n].toJSON)?t[n]=t[n].toJSON():t[n]=(new e).toJSON()}),t}toFlatJSON(...e){return r.omit(super.toJSON.apply(this,e),r.keys(this.associations))}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={currentTimestamp:()=>(new Date).valueOf(),isExpired(e,t){if(!t)return!1;const n=1e3*t;return e<r.currentTimestamp()-n},currentTimeOfDay(e){e||(e=new Date);const t=e.getHours();return t>=12&&t<18?"afternoon":t>=18?"evening":"morning"}}},function(e,t,n){"use strict";var r=n(0),i=n(26);function o({view:e,options:t={},className:n=""}){const o=r.useMemo(()=>new e(t),[t]),a=function(e,t=[]){const n=r.useRef(null);return r.useEffect(()=>{if(!e)return;const t=n.current;return e.render(),t.hasChildNodes()?t.replaceChild(e.el,t.firstChild):t.appendChild(e.el),e.trigger("rendered"),()=>{i.a.isFunction(e.close)?e.close():i.a.isFunction(e.destroy)&&e.destroy()}},[...t]),n}(o,[o]);return e?r.createElement("div",{ref:a,className:n}):r.createElement(r.Fragment,null)}n.d(t,"a",(function(){return o}))},function(e,t,n){e.exports={thumbnailContainer:"_1u9bn",thumbnail:"_1CQyt",svgContainer:"_2L1Hd",playSvgContainer:"_17LPb",durationOverlay:"_15X7K"}},function(e,t,n){e.exports={iconPlaceholder:"_2hr_4"}},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 i}));var r=n(225);function i(e){return Object(r.a)(e)}},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";var r,i,o,a;n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return i})),n.d(t,"c",(function(){return o})),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"}(i||(i={})),function(e){e[e.Crop=0]="Crop",e[e.Stretched=1]="Stretched",e[e.Cover=2]="Cover"}(o||(o={})),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 i}));var r=n(0);function i(e){const[t,n]=Object(r.useState)(window.matchMedia(e).matches);return Object(r.useEffect)(()=>{const r=window.matchMedia(e);r.matches!==t&&n(r.matches);const i=()=>n(r.matches);return r.addListener(i),()=>r.removeListener(i)},[e]),t}},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"}(r||(r={}));var i=n(21);class o{get name(){return i.a.SEARCH}}class a{get name(){return i.a.NOTIFICATIONS}}n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return a}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(28),o=n(131);function a(e){const{title:t,placement:n,trigger:a,children:s}=e;return r.createElement(i.OverlayTrigger,{placement:n,overlay:r.createElement(i.Tooltip,{id:`${t}-${o.a.getRandomInt()}`},t),trigger:a},r.createElement("span",null,s))}a.defaultProps={trigger:["hover","click","focus"],placement:"top"}},function(e,t,n){"use strict";var r,i;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"}(i||(i={}))},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 i in n)r[i]=n[i];return r.constructor=t,t.prototype=r,t}},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 l}));var r=n(1),i=n(5),o=n(22),a=n(19),s=n(23),c=n(8);class l extends o.Application{constructor(e){super(e),this.mergeOptions(e,[...this.defaultProps,...this.props||[]]),r.result(this,"name")||c.c.throw(new c.b("BaseApplication must define a name")),r.result(this,"channelName")||c.c.throw(new c.b("BaseApplication must define a channelName")),this.listenTo(this.getGlobalRadioChannel("popup"),a.a.SHOW_POPUP,this.onShowPopup),this.listenTo(this.getGlobalRadioChannel("alert"),"show:alert",this.onShowAlert)}get defaultProps(){return["shell","layoutService"]}getGlobalRadioChannel(e){const t=this.shell.getGlobalRadioChannels()[e.toUpperCase()];return t||c.c.throw(new c.b(`Global channel ${t} does not exist`)),i.Radio.channel(t)}onLoadLayout(){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||c.c.throw(new c.b(`Layout: ${this.layoutOptions.name} does not exist or was not registered`)),this.shell.showView(this.layout),this.triggerMethod("layout:loaded")}}onShowPopup(e){this.layout.getRegion("popup")||c.c.throw(new c.b("Your application layout must define a popup region")),this.layout.showChildView("popup",e)}onShowAlert(e){const{ctor:t,collection:n}=e,r=this.layout.getRegion("alert");r||c.c.throw(new c.b("Your application layout must define an alert region")),r.hasView()||this.layout.showChildView("alert",new t({collection:n}))}setDefaultQueryParams(e){this.defaultQueryParams&&(e=r.extend(this.defaultQueryParams,e)),this.defaultQueryParams=e}getAndClearDefaultQueryParams(){const e=this.defaultQueryParams;return delete this.defaultQueryParams,e||{}}listenTo(...e){return s.a.call(this,e[0],e[1],e[2],super.listenTo)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(69),i=n(13),o=n(8);class a extends r.b{constructor(e){super(e)}static getCacheKey(e){o.c.throw(new i.a(`Must define getCacheKey for ${this.name}.`))}unmountRegion(e){this.trigger("unmount:"+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 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 o(e,t){return(o=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=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return s(this,n)}}function s(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 c(e){return(c=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&&o(e,t)}(c,e);var t,n,r,s=a(c);function c(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,"Not Found")}return t=c,(n=[{key:"name",get:function(){return"NotFoundError"}}])&&i(t.prototype,n),r&&i(t,r),c}(n(2).a.SilentError)},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const 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){e.exports=u},function(e,t,n){"use strict";n.r(t);var r,i=n(90);!function(e){e.None="None",e.Fetching="Fetching",e.Success="Success",e.Error="Error"}(r||(r={}));var o=n(16);function a(e){const{getResponseHeader:t,responseJSON:n,status:r}=e;return{getResponseHeader:t,responseJSON:n,status:r}}const s=[o.a.POST,o.a.PUT];function c(e){const{resource:t,type:n,success:r,error:i,always:o}=e,c={url:t,method:n};s.includes(n)&&e.data&&(c.data=JSON.stringify(e.data)),$.ajax(c).done((e,t,n)=>{r&&r(e,a(n))}).fail((e,t,n)=>{i&&i(a(e))}).always(()=>{o&&o()})}var l=n(13),u=n(95);const p="id";function d(e,t={}){const{idAttribute:n=p,namespace:r=""}=t;return e[n]||u.ErrorHelper.throw(new l.a("There was an issue during normalization. Object did not have an id attribute.")),`${r}__${e[n]}`}function h(e,t,n={}){const{idAttribute:r=p}=n,i=[];return e.forEach(e=>{e[r]&&i.push(d(e,n)),f(e,t,n)}),i}function f(e,t,n={}){if(e)return Array.isArray(e)?h(e,t,n):"object"==typeof e?function e(t,n,r={}){const{idAttribute:i=p}=r,o=Object.assign({},t);if(Object.keys(t).forEach(a=>{const s=t[a];if(s)if(Array.isArray(s)){var c=h(s,n,r);c.length&&(o[a]=c)}else if("object"==typeof s){var l=e(s,n,r);s[i]?o[a]=d(s,r):o[a]=l}}),t[i]){const e=d(t,r);return n[e]=o,e}return o}(e,t,n):e}function m(e,t){const n={};return{result:f(e,n,t),entities:n}}var g=n(36);function v(e,t,n){if(e){if("string"==typeof e)return function(e,t,n){if(n[e])return n[e];n[e]={};const r=v(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(e=>v(e,t,n));if("object"==typeof e){const r={};return Object.keys(e).forEach(i=>{r[i]=v(e[i],t,n)||e[i]}),r}}}function y(e,t){return v(e,t,{})}var b=n(39);function C(e,t){return e===t}function S(e,t,n){if(null===t||null===n||t.length!==n.length)return!1;for(var r=t.length,i=0;i<r;i++)if(!e(t[i],n[i]))return!1;return!0}function w(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:C,n=null,r=null;return function(){return S(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 x(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),i=0;i<t;i++)r[i]=arguments[i];var o=0,a=r.pop(),s=E(r),c=e.apply(void 0,[function(){return o++,a.apply(null,arguments)}].concat(n)),l=e((function(){for(var e=[],t=s.length,n=0;n<t;n++)e.push(s[n].apply(null,arguments));return c.apply(null,e)}));return l.resultFunc=a,l.dependencies=s,l.recomputations=function(){return o},l.resetRecomputations=function(){return o=0},l}}var O=x(w);var k=n(71),L=n(0);class A{constructor(e){this.status=e.status,this.requestTime=e.requestTime,this.cacheDuration=e.cacheDuration,this.data=e.data,this.statusCode=e.statusCode}get shouldFetch(){return this.status===r.None||this.isExpired}get isExpired(){return k.a.isExpired(this.requestTime,this.cacheDuration)}get isFetching(){return this.status===r.Fetching}get hasError(){return this.status===r.Error}get isComplete(){return this.status===r.Success||this.status===r.Error}}function T(e,t,n){if(!e||!t)return N();let r=t.response;return!1!==t.request.normalize&&(r=y(t.response,n)),new A({status:t.status,statusCode:t.statusCode,requestTime:t.timestamp,cacheDuration:t.request.expiryTime,data:r})}function N(){return new A({status:r.None})}function R(e,t){return T(t,e.flightData.resources[t],e.flightData.entities)}function P(e,t){return()=>{I(e,t)}}function I(e,t){e({type:i.a.API_REQUEST,request:t})}function _(e){return P(Object(b.useDispatch)(),e)}function D(e,t){const n=Object(L.useMemo)(()=>{var n;return(null===(n=t)||void 0===n?void 0:n.optimize)?function(e){return x(w,(e,t)=>{const n=["response","request"];return g.a.isEqual(g.a.omit(e,n),g.a.omit(t,n))})(t=>t.flightData.resources[e],t=>{var n;const r=t.flightData.resources[e];return(null===(n=r)||void 0===n?void 0:n.entityIds)?r.entityIds.reduce((e,n)=>(e[n]=t.flightData.entities[n],e),{}):{}},(t,n)=>T(e,t,n))}(e):function(e){return O(t=>t.flightData.resources[e],e=>e.flightData.entities,(t,n)=>T(e,t,n))}(e)},[e]);return Object(b.useSelector)(e=>n(e))}function U(e,t){const n=Object(b.useDispatch)(),r=D(e&&e.key,t),i=P(n,e);return e&&r.shouldFetch&&i(),r}const j={getMatchingKeyMap(e,t,n){const r=Array.isArray(t)?t:[t];let i=[];return r.forEach(t=>{const n=new RegExp(t,"i"),r=Object.keys(e.resources).filter(e=>n.test(e));i.push(...r)}),n&&(i=i.filter(e=>e!==n)),i.reduce((e,t)=>(e[t]=!0,e),{})}};var M=n(86);const z={isSimulated(e){const t=e;return!!(t.successResponse||t.errorResponse||t.noResponse)},simulateFetchData(e,t){const{success:n,error:r,always:i}=e,o=t;window.setTimeout(()=>{o.noResponse||(o.successResponse?n(o.successResponse(),{status:M.a.Ok,getResponseHeader:e=>""}):o.errorResponse&&r(o.errorResponse()),i())},function(e){const t=e.timeout||300;return t/2+(Math.floor(Math.random()*t/2)+1)}(t))}};var F=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function V(e){const{fetchData:t,bootstrappedData:n,defaultExpiryTime:a}=e,s=Object.freeze({key:null,url:null,type:o.a.GET,normalize:!0,formatData:e=>e,expiryTime:a});return function(e){return o=>a=>{if(a.type!==i.a.API_REQUEST)return void o(a);const c=e.getState(),l=Object.assign({},s,a.request),{success:u,error:p,always:d,formatData:h}=l,f=F(l,["success","error","always","formatData"]),g=c.flightData.resources[f.key];if(o(a),g&&g.status===r.Fetching)return;if(f.bootstrapName&&n[a.request.bootstrapName])return b(n[a.request.bootstrapName]),C(),void delete n[a.request.bootstrapName];const v={resource:f.url,type:f.type,data:f.data,success:b,error:function(t){e.dispatch({type:i.a.API_ERROR,errorResponse:t.responseJSON,request:a.request,timestamp:k.a.currentTimestamp(),xhr:t}),p&&p(t)},always:C};return void(z.isSimulated(f)?z.simulateFetchData(v,f):t(v));function b(t,n){const r=h(t);let o={result:r,entities:{}};if(f.normalize&&(o=m(r,f.normalizeOptions)),e.dispatch({type:i.a.API_REPONSE,result:o.result,entities:o.entities,request:f,timestamp:k.a.currentTimestamp(),xhr:n}),f.updateState){(Array.isArray(f.updateState)?f.updateState:[f.updateState]).forEach(t=>{!function(t){const n=j.getMatchingKeyMap(c.flightData,t.keys),r=Object.assign({},Object.keys(c.flightData.resources).filter(e=>n[e]).reduce((e,t)=>{const n=c.flightData.resources[t];let r=n.response;return n.request.normalize&&(r=y(n.response,c.flightData.entities)),e[t]=r,e},{})),o=t.updateData(r);Object.keys(o).forEach(t=>{const n=c.flightData.resources[t],r=o[t];let a={result:r,entities:{}};n.request.normalize&&(a=m(r,n.request.normalizeOptions)),e.dispatch({type:i.a.UPDATE,result:a.result,entities:a.entities,request:n.request})})}(t)})}if(!u)return;let a=o.result;f.normalize&&(a=y(o.result,Object.assign(Object.assign({},c.flightData.entities),o.entities))),u(a)}function C(){f.invalidationKeys&&e.dispatch({type:i.a.INVALIDATE,keys:f.invalidationKeys,request:f}),d&&d()}}}}function H(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{e[r]?n[r]=Object.assign(Object.assign({},e[r]),t[r]):n[r]=t[r]}),n}const q={resources:{},entities:{}};function B(e=q,t){switch(t.type){case i.a.API_REQUEST:return function(e,t){const n=e.resources[t.request.key];return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),{[t.request.key]:{request:t.request,status:r.Fetching,response:n?n.response:null,entityIds:n?n.entityIds:null}})}}(e,t);case i.a.API_REPONSE:return function(e,t){var n;const i=t.entities?Object.keys(t.entities):[];return{entities:H(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),{[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:i}})}}(e,t);case i.a.API_ERROR:return function(e,t){var n;return{entities:Object.assign({},e.entities),resources:Object.assign(Object.assign({},e.resources),{[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}})}}(e,t);case i.a.INVALIDATE:return function(e,t){var n;const i=j.getMatchingKeyMap(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(e=>i[e]).reduce((t,n)=>{const i=e.resources[n];return t[n]=Object.assign({},i,{status:r.None}),t},{}))}}(e,t);case i.a.UPDATE:return function(e=q,t){const n=t.entities?Object.keys(t.entities):[];return{entities:H(e.entities,t.entities),resources:Object.assign(Object.assign({},e.resources),{[t.request.key]:Object.assign(Object.assign({},e.resources[t.request.key]),{request:t.request,response:t.result,entityIds:n})})}}(e,t)}return e}var J=n(67);const G="id";function K(e,t){return localStorage.setItem(e,JSON.stringify(t)),t}function W(e){const t=localStorage.getItem(e);return t?JSON.parse(t):null}const Y={getAll(e,t){let n=W(e);return n&&n.length?n:!n&&t?(t.forEach(t=>Y.create(e,t)),W(e)):[]},get(e,t){const n=Y.getAll(e);return n.length?n.find(e=>e[G]===t):null},create(e,t){const n=Y.getAll(e),r=Object.assign(Object.assign({},t),{[G]:t[G]||(Math.floor(Math.random()*Number.MAX_SAFE_INTEGER)+1).toString()});return n.push(r),K(e,n),r},update(e,t){const n=Y.getAll(e);if(!n.length)return t;const r=n.findIndex(e=>e[G]===t[G]);return n[r]=t,K(e,n),t},delete(e,t){const n=Y.getAll(e);n.length&&(Array.isArray(t)||(t=[t]),t.forEach(e=>{const t=n.findIndex(t=>t[G]===e);n.splice(t,1)}),K(e,n))},assoc(e,t,n,r,i){const o=Array.isArray(i);let a=o?i:[i];"string"==typeof J.a.first(a)&&(a=Y.getAll(r).filter(e=>a.includes(e.id)));const s=a.map(e=>e.id?e:Y.create(r,e));let c=Y.getAll(e);if(!c.length)return;let l=c.find(e=>e.id===t);return l?(s.forEach(e=>{if(l[n])if(Array.isArray(l[n])){if(l[n].find(t=>t.id===e.id))return;l[n].push(e)}else l[n]=e;else l[n]=o?[e]:e}),c=c.map(e=>e.id!==l.id?e:l),K(e,c),o?s:J.a.first(s)):void 0},dissoc(e,t,n,r){let i=Y.getAll(e);if(!i.length)return;let o=i.find(e=>e.id===t);if(!o)return;let a=o[n];return a?(Array.isArray(r)||(r=[r]),Array.isArray(a)||(a=[a]),r.forEach(e=>{const t=a.findIndex(t=>t.id===e);a.splice(t,1)}),o[n]=a,i=i.map(e=>e.id!==o.id?e:o),K(e,i),i):void 0}};n.d(t,"Actions",(function(){return i.a})),n.d(t,"RequestStatus",(function(){return r})),n.d(t,"ajaxRequest",(function(){return c})),n.d(t,"normalize",(function(){return m})),n.d(t,"denormalize",(function(){return y})),n.d(t,"emptyResponse",(function(){return N})),n.d(t,"getResponse",(function(){return R})),n.d(t,"getFetch",(function(){return P})),n.d(t,"fetch",(function(){return I})),n.d(t,"useGetFetch",(function(){return _})),n.d(t,"useGetResponse",(function(){return D})),n.d(t,"useBasicFetch",(function(){return U})),n.d(t,"createMiddleware",(function(){return V})),n.d(t,"FlightReducer",(function(){return B})),n.d(t,"Simulator",(function(){return Y}))},function(e,t,n){"use strict";var r=n(2),i=n(7),o=n(1),a=n(245),s=n.n(a);class c extends r.a.Component{constructor(e){super(e)}get name(){return"EmptyStateComponent"}get className(){let e="d-flex flex-column justify-content-center align-items-center text-center h-100";return this.options.customClass&&(e+=" "+this.options.customClass),e}get template(){return s.a}get defaults(){return{imageSize:"lg",paddedContainer:!0}}get appLinks(){return this.options.appLink||{}}getImageClass(){return this.options.customImageClass}getHeading(){return o.isFunction(this.options.heading)?this.options.heading():this.options.heading}getDescription(){return o.isFunction(this.options.description)?this.options.description():this.options.description}viewOptions(){return{imageUrl:this.options.imageUrl,imageClass:this.getImageClass(),heading:this.getHeading(),description:this.getDescription()}}}const l={isCollectionEmpty:(e,t="collection")=>e[t]&&!e[t].length};class u extends r.a.Behavior{get defaults(){return{type:0,shouldRender:l.isCollectionEmpty.bind(null,this.view)}}set defaults(e){}shouldRender(){return!!o.isFunction(this.options.shouldRender)&&this.options.shouldRender()}getComponent(){const e=this.options.emptyStateComponents[this.options.type](this);return new c(e)}renderEmptyState(){if(!this.shouldRender())return;const e=this.getComponent();this.view.showChildView(this.options.region,e)}onRender(){this.renderEmptyState()}}var p;!function(e){e[e.Notifications=0]="Notifications"}(p||(p={}));var d=n(6),h=n(21),f=n(104),m=n.n(f);const g={[p.Notifications]:e=>{const t={imageUrl:d.a.getInstance(h.a.NOTIFICATIONS).notificationsEmptyStateUrl,heading:e.options.componentOptions.noNotificationsText,customClass:`${m.a.paddedContainer} ${e.options.componentOptions.customClass}`,customImageClass:"sm"===e.options.componentOptions.imageSize?m.a.imageSmall:m.a.imageLarge};return d.a.releaseInstance(h.a.NOTIFICATIONS),t}};var v,y=n(5),b=n(53),C=n(10),S=n(14),w=n(30);!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"}(v||(v={}));const E="notifications.utils",x=/^marketing-/,O=e=>{switch(e){case v.Success:return"success";case v.Alert:return"danger";case v.Warning:return"warning";case v.Info:case v.Other:default:return"dark"}},k=e=>{switch(e){case v.Success:return C.b.CheckCircle;case v.Alert:case v.Warning:return C.b.Warning;case v.Info:case v.Other:default:return C.b.Info}},L=e=>e===w.a.VideoProcessingFailed||e===w.a.VideoRequestDenied?"danger":e.match(x)?"warning":void 0,A=e=>{if(e.match(x))return C.b.Star},T=e=>{switch(e){case w.a.VideoReviewAddedToLibrary:case w.a.WorkspaceVideoAvailable:case w.a.ExchangeVideoAvailable:case w.a.EditedVideoAvailable:return i.a.getPhrase(E,"viewVideo");case w.a.VideoReviewReminder:return i.a.getPhrase(E,"reviewVideos");case w.a.VideoReviewAddedToLibrary:return i.a.getPhrase(E,"viewNewContent");case w.a.CustomLibraryVideoAvailable:return i.a.getPhrase(E,"viewVideoDetails");case w.a.StaffRequest:return i.a.getPhrase(E,"reviewVideo");default:return i.a.getPhrase(E,"seeNow")}};var N,R,P,I=n(56),_=n(102);function D(){return d.a.getInstance(h.a.NOTIFICATIONS,this)}function U(e,t,n){return e===P.Module?function(e,t){const n=D();return t===R.ContentUpdates?n.appLinks.pastReleases:t===R.LibraryReview?n.appLinks.awaitingReview:void 0}(0,t):e===P.Video?function(e,t,n){return Object.assign(Object.assign({},D().appLinks.videoDetails),{args:[t]})}(0,t):e===P.StaffRequest?function(e,t,n){return Object.assign(Object.assign({},D().appLinks.editStaffRequest),{args:[t],params:{referrer:N.Notification}})}(0,t):void 0}!function(e){e.Notification="notification"}(N||(N={})),function(e){e.LibraryReview="libraryreview",e.ContentUpdates="newcontent"}(R||(R={})),function(e){e.Video="video",e.Url="url",e.Module="module",e.App="app",e.StaffRequest="staff_request"}(P||(P={}));const j=e=>o.contains(D().notificationTypesWithAppLinks,e),M=(e,t)=>{if(!e||!t)return;const[n,r]=e.split(":");return U(n,r)};var z=n(114),F=n.n(z),V=n(246),H=n.n(V);class q extends r.a.Component{constructor(e){super(e)}initialize(){this.listenTo(this.model,"change:notificationStatus",this.updateReadStatus)}get name(){return"NotificationItemComponent"}get template(){return H.a}get tagName(){return"a"}get attributes(){return this.getAppLink()?{}:{href:this.model.get("link"),target:"_blank"}}get className(){return`notification ${F.a.item} px-1 py-2 ${this.getReadStatus()}`}events(){return{click:"onClick"}}onClick(e){return y.Radio.channel(S.a.NOTIFICATIONS).trigger(_.a.Read,this.model.get("id")),this.model.set("notificationStatus",I.a.Read),!0}get appLinks(){const e=this.getAppLink();return e?{"[this]":e}:{}}getAppLink(){const e=this.model.get("appLink");if(!e)return null;const t=this.model.get("notificationType");return j(t)?M(e,t):null}updateReadStatus(){this.$el.removeClass("unread read").addClass(this.getReadStatus())}getReadStatus(){switch(this.model.get("notificationStatus")){case I.a.Read:return"read";default:case I.a.Received:return"unread"}}viewOptions(){const e=L(this.model.get("notificationType"))||O(this.model.get("alertType")),t=A(this.model.get("notificationType"))||k(this.model.get("alertType"));return{content:this.model.get("body")||this.model.get("name"),notificationTime:b(this.model.get("dateCreated")).fromNow(),icon:C.a.getSvg(t),iconClass:"text-"+e,styles:F.a,showActionText:this.options.showActionText&&this.model.get("alertType")!==v.Warning,actionText:T(this.model.get("notificationType"))}}}var B,$=n(247),J=n.n($);n.d(t,"a",(function(){return B})),n.d(t,"b",(function(){return K})),function(e){e[e.Default=0]="Default",e[e.Popover=1]="Popover"}(B||(B={}));class G extends r.a.ComponentCollection{constructor(e){super(e)}get name(){return"NotificationComponentCollection"}get className(){return this.options.isPopover&&"popover-list-body-sm"}get childView(){return q}get childViewOptions(){return{showActionText:!this.options.isPopover}}}class K extends r.a.Component{constructor(e){super(e)}get name(){return"NotificationListComponent"}get template(){return J.a}get lang(){return"notifications.notificationList"}regions(){return{notifications:{el:".notifications-region",replaceElement:!0}}}get behaviors(){return[{behaviorClass:u,region:"notifications",type:p.Notifications,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:g}]}getEmptyStateComponentOptions(){return this.options.isPopover?{customClass:"px-0 py-3",imageSize:"sm",noNotificationsText:i.a.getPhrase(this.lang,"noNotifications")}:{noNotificationsText:i.a.getPhrase(this.lang,"noNotifications")}}onRender(){this.showChildView("notifications",new G(this.options))}}},function(e,t,n){"use strict";n.r(t);var r=n(24),i=n(87),o=n(1),a=n(5),s=n(22),c=n(23);class l{use(e){var t;this.go=(t=this.go,(n,r)=>t(n,()=>e(n,r)))}go(e,t){t(e)}}var u=n(19),p=n(8),d=n(44),h=n(15);const f=/([A-Z])/g,m=/(^|:)(\w)/gi;class g extends s.AppRouter{constructor(e){super(e),this.bindDisposal(),this.processInternalRoutes(),this.processExternalRoutes(),this.processAppLinks()}bindDisposal(){this.listenTo(h.a.SHELL,u.a.ROUTE,e=>{e.application!==this.channelName&&this.destroyApp()})}addRouteLookup(e,t){this.options.shell.addRouteLookup(`${this.channelName}:${e}`,(n,i)=>r.a.buildRoute(t,{application:this.channelName,action:e,args:n,params:i}))}processInternalRoutes(){o.each(o.keys(this.appRoutes),e=>{const t=this.appRoutes[e],n=this.toEventName(t);this.addRouteLookup(n,e),this.listenTo(this.channelName,n,(t,n)=>{n&&n.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),this.executeRoute(t,{isAppRoute:!0},()=>{const r=o.extend({},this.controller.getAndClearDefaultQueryParams(),t.params);t.params=r,d.a.UpdateUrl(e,t,n)})})})}processExternalRoutes(){this.externalRoutes&&o.each(o.keys(this.externalRoutes),e=>{const t=this.externalRoutes[e],n=this.toEventName(t);this.addRouteLookup(n,e),this.listenTo(this.channelName,n,(e,t)=>{t&&t.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),d.a.PageLoad(r.a.getHref(e))})})}processAppLinks(){this.appLinks&&o.each(this.appLinks,e=>{const t=this.toEventName(e);this.listenTo(this.channelName,t,(e,t)=>{t&&t.usedHelper||p.c.throw(new p.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),this.executeRoute(e,{isAppRoute:!1})})})}executeRoute(e,t,n){this.validateAppLink(e);const i=this.toMethodName(e.action);r.b.routingStarted();const s=a.Radio.channel(h.a.SHELL);if(this.options.shell.isNavLocked())return s.trigger(u.a.NAV_IS_LOCKED,e),void r.b.routingEnded();const c=new l;o.each(this.filters,e=>c.use(e)),c.go(e,()=>{s.trigger(u.a.ROUTE,e,t),this.createApp();const a=this.controller;if(o.isFunction(a[i])||(r.b.routingEnded(),p.c.throw(new p.b(`${i} does not exist on the ${o.result(a,"name")}.`))),!1===a.triggerMethod("before:action"))return a.triggerMethod("action:cancelled"),void r.b.routingEnded();a.triggerMethod("load:layout"),a[i].apply(a,[...e.args||[],e.params||{}]),o.isFunction(n)&&n(),r.b.routingEnded()})}createApp(){this.controller||(this.controller=new this.options.appConstructor(this.options.appOptions),this.controller.start())}destroyApp(){if(!this.controller)return;this.controller.destroy(),delete this.controller}_addAppRoute(e,t,n){this.route(t,n,(...e)=>{const t={application:this.channelName,action:this.toEventName(n),args:e.slice(0,e.length-1),params:d.a.DeserializeQueryParams(e[e.length-1])};this.executeRoute(t,{isAppRoute:!0},()=>{d.a.UpdateQuery(o.extend(this.controller.getAndClearDefaultQueryParams(),t.params))})})}toEventName(e){return e.replace(f,":$1").toLowerCase()}toMethodName(e){const t=e.replace(m,(e,t,n)=>n.toUpperCase());return t[0].toLowerCase()+t.slice(1,t.length)}validateAppLink(e){e.application&&e.action||(r.b.routingEnded(),p.c.throw(new p.b("Invalid AppLink")))}listenTo(...e){return c.a.call(this,e[0],e[1],e[2],super.listenTo)}}class v extends s.Behavior{listenTo(...e){return c.a.call(this,e[0],e[1],e[2],super.listenTo)}}var y=n(62);class b extends s.CollectionView{constructor(e){super(e),o.result(this,"name")||p.c.throw(new p.b(`Error: View with cid:${this.cid} requires a name.`))}serializeModel(){return this.model?this.model.toJSON():{}}serializeCollection(){return this.collection?this.collection.toJSON():[]}listenTo(...e){return c.a.call(this,e[0],e[1],e[2],super.listenTo)}}var C=n(88),S=n(70),w=n(38),E=n(43),x=n(69);class O extends s.Object{constructor(e){super(e),this.layouts={},this.requiredRegions=e.requiredRegions}clearLayout(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}registerLayout(e,t){return this.checkRequiredRegions(t),this.layouts[e]=t,this}getLayout(e){const{name:t,options:n={}}=e;this.layouts[t]||p.c.throw(new p.b(t+" was not registered as a template."));const r=this.layouts[t].getCacheKey(n);return this.currentLayoutCacheKey===r&&this.currentLayout?(this.currentLayout.triggerMethod("layout:requested",n),this.currentLayout):(this.clearLayout(),this.currentLayoutCacheKey=r,this.currentLayout=new this.layouts[t](n),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}checkRequiredRegions(e){o.each(this.requiredRegions,t=>{o.has(o.result(e.prototype,"regions"),t)||p.c.throw(new p.b(`Layout: ${e.prototype.name} must define an ${t} region.`))})}listenTo(...e){return c.a.call(this,e[0],e[1],e[2],super.listenTo)}}class k{constructor(e,t){this.application=e,this.options=t||{}}get Application(){return this.application}get Options(){return this.options}}class L extends s.Application{initialize(e){this.mergeOptions(e,["layoutService"]),this.applications=[],this.routeLookup={},this.shellState={navLock:!1,activeRoute:!1,currentAppLink:null},this.errorHandlers=[]}bindListeners(){this.bindRouteLookup(),this.bindNavLockListeners(),this.bindAppLinkListeners(),this.bindErrorHandlers(),this.bindErrorListener()}bindNavLockListeners(){this.listenTo(h.a.SHELL,u.a.LOCK_NAV,()=>this.shellState.navLock=!0),this.listenTo(h.a.SHELL,u.a.UNLOCK_NAV,()=>this.shellState.navLock=!1)}bindAppLinkListeners(){this.listenTo(h.a.SHELL,u.a.ROUTING_START,()=>this.shellState.activeRoute=!0),this.listenTo(h.a.SHELL,u.a.ROUTING_END,()=>this.shellState.activeRoute=!1),this.listenTo(h.a.SHELL,u.a.ROUTE,e=>this.shellState.currentAppLink=e);const e=a.Radio.channel(h.a.SHELL);e.reply(u.a.HAS_ACTIVE_ROUTE,o.bind(this.hasActiveRoute,this)),e.reply(u.a.CURRENT_ROUTE,()=>this.shellState.currentAppLink)}bindErrorHandlers(){window.addEventListener("error",()=>{r.b.routingEnded()})}bindErrorListener(){const e=a.Radio.channel(h.a.SHELL);this.listenTo(e,u.a.ERROR,this.handleError)}bindRouteLookup(){a.Radio.channel(h.a.SHELL).reply(u.a.ROUTE_LOOKUP,(e,t,n)=>this.routeLookup[e]?this.routeLookup[e](t,n):"",this)}addRouteLookup(e,t){this.routeLookup[e]=t}registerApplication(e,t){return this.applications.push(new k(e,t)),this}getGlobalRadioChannels(){return h.a}isNavLocked(){return this.shellState.navLock}start(e){e||(e={}),this.runInitializationSteps(this,(t,n)=>{this.runStartUpSteps(this,e,(t,n,r)=>{super.start(e)})})}hasActiveRoute(){return this.shellState.activeRoute}onStart(){o.each(this.applications,e=>{const t={appConstructor:e.Application,shell:this,appOptions:Object.assign({region:"",shell:this,layoutService:this.layoutService},e.Options)};new e.Application.router(t)}),this.bindListeners(),d.a.StartHistory()}addInitializationStep(e){var t;return this.runInitializationSteps=(t=this.runInitializationSteps,(n,r)=>t(n,()=>e(n,r))),this}runInitializationSteps(e,t){t(e)}addStartUpStep(e){var t;return this.runStartUpSteps=(t=this.runStartUpSteps,(n,r,i)=>t(n,r,()=>e(n,r,i))),this}runStartUpSteps(e,t,n){n(e,t)}registerLayout(e,t){return this.layoutService.registerLayout(e,t),this}registerErrorHandler(e,t){return e||p.c.throw(new p.b("An error must have a name in order to register a handler for it.")),o.any(this.errorHandlers,t=>t.errorType===e)&&p.c.throw(new p.b(`An error handler for ${e.prototype.name} has already been defined.`)),this.errorHandlers.push({errorType:e,handler:t}),this}handleError(e){const t=o.find(this.errorHandlers,t=>e instanceof t.errorType);t&&t.handler&&t.handler(e)}registerStore(e){this.store=e}listenTo(...e){return c.a.call(this,e[0],e[1],e[2],super.listenTo)}}n.d(t,"AppLinkHelper",(function(){return r.a})),n.d(t,"AppLinkUtility",(function(){return r.b})),n.d(t,"Application",(function(){return i.a})),n.d(t,"AppRouter",(function(){return g})),n.d(t,"Behavior",(function(){return v})),n.d(t,"Collection",(function(){return y.a})),n.d(t,"CollectionView",(function(){return b})),n.d(t,"ComponentCollection",(function(){return b})),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 C.a})),n.d(t,"NestedModel",(function(){return S.a})),n.d(t,"Service",(function(){return w.a})),n.d(t,"Model",(function(){return E.a})),n.d(t,"View",(function(){return x.b})),n.d(t,"Component",(function(){return x.a})),n.d(t,"EventNames",(function(){return u.a})),n.d(t,"LayoutService",(function(){return O})),n.d(t,"Middleware",(function(){return l})),n.d(t,"LocationUtils",(function(){return d.a})),n.d(t,"Shell",(function(){return L}))},function(e,t){e.exports=p},function(e,t,n){"use strict";n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return p}));var r=n(42),i=n(6),o=n(9),a=n(14),s=n(20),c=n(41);class l extends r.a{get name(){return o.a.User}get channelName(){return a.b.USER}getCurrentUser(e,t){return this.get({resource:"/api/currentuser",eventPrefix:s.a.CURRENT_USER,expiryTime:c.a.STANDARD,callback:e,errorCallback:t})}getWorkspace(e,t){return this.get({resource:"/api/domain/v2/me/workspace?query=categorytree",eventPrefix:s.a.WORKSPACE,expiryTime:c.a.STANDARD,callback:e,errorCallback:t})}}const u={dataServiceName:o.a.User,dataChannelName:a.b.USER},p={getCurrentUserFetchOptions:(e,t)=>Object.assign(Object.assign({},u),{eventPrefix:s.a.CURRENT_USER,fetchData:e=>e.getCurrentUser(),setData:e,onError:t}),currentUser:{dataServiceName:o.a.User,eventName:s.a.CURRENT_USER+":sync",getData:e=>e.getCurrentUser(),getInstance:e=>i.a.getInstance(o.a.User,e),beforeOnBeforeRender:!0}}},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}));const r={UPDATE:"UPDATE_VIEW_MODEL"}},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}));const r={ANALYTICS:"global:analytics"}},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){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",seasonEpisodeContainer:"_1YAi8"}},function(e,t){e.exports=d},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));n(27);var r=Object.assign(Object.assign({},{VIDEO:"series,season,rating,producers,glance,distributors,resources,tags,productionCompanies,directors,links,thumbnail,interactives[owner[customers[organisation]]],clips",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.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(224),i=n(85),o=(0,r.createTokenClass)();function a(e){var t=e?{v:e}:{};return(0,i.inherits)(o,(0,r.createTokenClass)(),t)}o.prototype={toString:function(){return this.v+""}};var s=a(),c=a("@"),l=a(":"),u=a("."),p=a(),d=a(),h=a("\n"),f=a(),m=a("+"),g=a("#"),v=a(),y=a("mailto:"),b=a("?"),C=a("/"),S=a("_"),w=a(),E=a(),x=a(),O=a("{"),k=a("["),L=a("<"),A=a("("),T=a("}"),N=a("]"),R=a(">"),P=a(")"),I=a("&");t.Base=o,t.DOMAIN=s,t.AT=c,t.COLON=l,t.DOT=u,t.PUNCTUATION=p,t.LOCALHOST=d,t.NL=h,t.NUM=f,t.PLUS=m,t.POUND=g,t.QUERY=b,t.PROTOCOL=v,t.MAILTO=y,t.SLASH=C,t.UNDERSCORE=S,t.SYM=w,t.TLD=E,t.WS=x,t.OPENBRACE=O,t.OPENBRACKET=k,t.OPENANGLEBRACKET=L,t.OPENPAREN=A,t.CLOSEBRACE=T,t.CLOSEBRACKET=N,t.CLOSEANGLEBRACKET=R,t.CLOSEPAREN=P,t.AMPERSAND=I},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));const r={mobileDevice:/Mobi/i,iphone:/iphone/i,ipad:/ipad/i,android:/android/i,blackberry:/blackberry/i,windowsPhone:/windows phone/i,iosVersion:/OS\s+([\d_.-:]+)\s/i,androidVersion:/android\s+([\d_.-\/]+)[\s;:,\)]/i,blackberryVersion:/(blackberry|version)\s?\d*\/([\d.]+)/i,windowsPhoneVersion:/windows\sphone.*?([\d_.-\/]+)[\s;:,\)]/i,mac:/Mac/i,unix:/X11/i,linux:/Linux/i,windows:/Win/i,win2000:/nt 5.0/i,winXP:/nt 5.1/i,winVista:/nt 6.0/i,win7:/nt 6.1/i,win8:/nt 6.2/i,win81:/nt 5.0/i,win10:/nt 10.0/i,osxVersion:/OS\sX\s([\d_.]+)/i,chrome:/^(?!.*Edge).*Chrome/i,safari:/^(?!.*(?:Chrome|Edge)).*Safari/i,edge:/edge/i,ie:/(msie|trident)/i,opera:/(opr|opera)/i,firefox:/firefox/i,generalVersion:/(chrome|firefox|version)\/(\d+.*?)(\s|$)/i,operaVersion:/(opr|opera)\/(\d+).*?(\s|$)/i,ieVersion:/MSIE\s+(\d+).*?/i,edgeVersion:/(edge)\/(\d+).*?(\s|$)/i};function i(e,t,n){const r=t.exec(n)||[];let[i,o,a]=r;return a||(a="Unknown"),{browser:e,version:a}}function o(e,t,n){if(!t)return{os:e,version:"Unknown"};const r=t.exec(n);return{os:e,version:r&&r.length?r[0].trim():"Unknown"}}const a={getDeviceType(){const e=window.navigator.userAgent;return r.mobileDevice.test(e)?r.iphone.test(e)?"iPhone":r.ipad.test(e)?"iPad":r.android.test(e)?"Android":r.blackberry.test(e)?"Blackberry":r.windowsPhone.test(e)?"Windows Phone":"Unknown":"Desktop"},getOperatingSystem(){const e=window.navigator.userAgent;return r.linux.test(e)?o("Linux",null,e):r.unix.test(e)?o("Unix",null,e):r.mac.test(e)?o("Macintosh",r.osxVersion,e):r.windows.test(e)?function(e,t){const n={os:e};return r.win2000.test(t)&&(n.version="2000"),r.winXP.test(t)&&(n.version="XP"),r.winVista.test(t)&&(n.version="Vista"),r.win7.test(t)&&(n.version="7"),r.win8.test(t)&&(n.version="8"),r.win81.test(t)&&(n.version="8.1"),r.win10.test(t)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",e):r.iphone.test(e)||r.ipad.test(e)?o("iOS",r.iosVersion,e):r.android.test(e)?o("Android",r.androidVersion,e):r.blackberry.test(e)?o("Android",r.blackberryVersion,e):r.windowsPhone.test(e)?o("Android",r.windowsPhoneVersion,e):{os:"Unknown",version:"Unknown"}},getBrowser(){const e=window.navigator.userAgent;return r.chrome.test(e)?i("Chrome",r.generalVersion,e):r.firefox.test(e)?i("Firefox",r.generalVersion,e):r.safari.test(e)?i("Safari",r.generalVersion,e):r.ie.test(e)?i("Internet Explorer",r.ieVersion,e):r.edge.test(e)?i("Edge",r.edgeVersion,e):r.opera.test(e)?i("Opera",r.operaVersion,e):{browser:"Unknown",version:"Unknown"}},isTouchScreen:()=>!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)}},function(e,t){e.exports=h},function(e,t,n){e.exports={item:"_3CmnQ",icon:"YYvWW",contentContainer:"_1w1Jg",notificationTime:"_11n-Y",content:"_3JkbY",actionText:"_3D1fr"}},function(e,t){e.exports=f},function(e,t,n){e.exports={coverImage:"_1_Tx-",coverContainer:"_3Qf-6",textContainer:"_34VXV"}},function(e,t,n){"use strict";(function(e){var t=function(){function e(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)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var i=function(){function e(){r(this,e)}return t(e,[{key:"on",value:function(e,t){return this._callbacks=this._callbacks||{},this._callbacks[e]||(this._callbacks[e]=[]),this._callbacks[e].push(t),this}},{key:"emit",value:function(e){this._callbacks=this._callbacks||{};var t=this._callbacks[e];if(t){for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=t,a=!0,s=0;for(o=a?o:o[Symbol.iterator]();;){var c;if(a){if(s>=o.length)break;c=o[s++]}else{if((s=o.next()).done)break;c=s.value}var l=c;l.apply(this,r)}}return this}},{key:"off",value:function(e,t){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[e];if(!n)return this;if(1===arguments.length)return delete this._callbacks[e],this;for(var r=0;r<n.length;r++){var i=n[r];if(i===t){n.splice(r,1);break}}return this}}]),e}(),o=function(e){function o(e,t){r(this,o);var i,a=n(this,(o.__proto__||Object.getPrototypeOf(o)).call(this)),s=void 0;if(a.element=e,a.version=o.version,a.defaultOptions.previewTemplate=a.defaultOptions.previewTemplate.replace(/\n*/g,""),a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");o.instances.push(a),a.element.dropzone=a;var c,l=null!=(i=o.optionsForElement(a.element))?i:{};if(a.options=o.extend({},a.defaultOptions,l,null!=t?t:{}),a.options.forceFallback||!o.isBrowserSupported())return c=a.options.fallback.call(a),n(a,c);if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(e){return a.options.renameFilename.call(a,e.name,e)}),a.options.method=a.options.method.toUpperCase(),(s=a.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=o.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=o.getElements(a.options.clickable,"clickable")),a.init(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(o,e),t(o,null,[{key:"initClass",value:function(){this.prototype.Emitter=i,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(e,t,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(e,t){return t()},chunksUploaded:function(e,t){t()},fallback:function(){var e=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var t=0,n=n=this.element.getElementsByTagName("div");;){if(t>=n.length)break;var r=n[t++];if(/(^| )dz-message($| )/.test(r.className)){e=r,r.className="dz-message";break}}e||(e=o.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(e));var i=e.getElementsByTagName("span")[0];return i&&(null!=i.textContent?i.textContent=this.options.dictFallbackMessage:null!=i.innerText&&(i.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(e,t,n,r){var i={srcX:0,srcY:0,srcWidth:e.width,srcHeight:e.height},o=e.width/e.height;null==t&&null==n?(t=i.srcWidth,n=i.srcHeight):null==t?t=n*o:null==n&&(n=t/o);var a=(t=Math.min(t,i.srcWidth))/(n=Math.min(n,i.srcHeight));if(i.srcWidth>t||i.srcHeight>n)if("crop"===r)o>a?(i.srcHeight=e.height,i.srcWidth=i.srcHeight*a):(i.srcWidth=e.width,i.srcHeight=i.srcWidth/a);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");o>a?n=t/o:t=n*o}return i.srcX=(e.width-i.srcWidth)/2,i.srcY=(e.height-i.srcHeight)/2,i.trgWidth=t,i.trgHeight=n,i},transformFile:function(e,t){return(this.options.resizeWidth||this.options.resizeHeight)&&e.type.match(/image.*/)?this.resizeImage(e,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,t):t(e)},previewTemplate:'<div class="dz-preview dz-file-preview">\n <div class="dz-image"><img data-dz-thumbnail /></div>\n <div class="dz-details">\n <div class="dz-size"><span data-dz-size></span></div>\n <div class="dz-filename"><span data-dz-name></span></div>\n </div>\n <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n <div class="dz-error-message"><span data-dz-errormessage></span></div>\n <div class="dz-success-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Check</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n </g>\n </svg>\n </div>\n <div class="dz-error-mark">\n <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n <title>Error</title>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </svg>\n </div>\n</div>',drop:function(e){return this.element.classList.remove("dz-drag-hover")},dragstart:function(e){},dragend:function(e){return this.element.classList.remove("dz-drag-hover")},dragenter:function(e){return this.element.classList.add("dz-drag-hover")},dragover:function(e){return this.element.classList.add("dz-drag-hover")},dragleave:function(e){return this.element.classList.remove("dz-drag-hover")},paste:function(e){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(e){var t=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){e.previewElement=o.createElement(this.options.previewTemplate.trim()),e.previewTemplate=e.previewElement,this.previewsContainer.appendChild(e.previewElement);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-name]");;){if(n>=r.length)break;var i=r[n++];i.textContent=e.name}for(var a=0,s=s=e.previewElement.querySelectorAll("[data-dz-size]");!(a>=s.length);)(i=s[a++]).innerHTML=this.filesize(e.size);this.options.addRemoveLinks&&(e._removeLink=o.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),e.previewElement.appendChild(e._removeLink));for(var c=function(n){return n.preventDefault(),n.stopPropagation(),e.status===o.UPLOADING?o.confirm(t.options.dictCancelUploadConfirmation,(function(){return t.removeFile(e)})):t.options.dictRemoveFileConfirmation?o.confirm(t.options.dictRemoveFileConfirmation,(function(){return t.removeFile(e)})):t.removeFile(e)},l=0,u=u=e.previewElement.querySelectorAll("[data-dz-remove]");;){if(l>=u.length)break;u[l++].addEventListener("click",c)}}},removedfile:function(e){return null!=e.previewElement&&null!=e.previewElement.parentNode&&e.previewElement.parentNode.removeChild(e.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(e,t){if(e.previewElement){e.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(n>=r.length)break;var i=r[n++];i.alt=e.name,i.src=t}return setTimeout((function(){return e.previewElement.classList.add("dz-image-preview")}),1)}},error:function(e,t){if(e.previewElement){e.previewElement.classList.add("dz-error"),"String"!=typeof t&&t.error&&(t=t.error);for(var n=0,r=r=e.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(n>=r.length)break;r[n++].textContent=t}}},errormultiple:function(){},processing:function(e){if(e.previewElement&&(e.previewElement.classList.add("dz-processing"),e._removeLink))return e._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(e,t,n){if(e.previewElement)for(var r=0,i=i=e.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(r>=i.length)break;var o=i[r++];"PROGRESS"===o.nodeName?o.value=t:o.style.width=t+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(e){if(e.previewElement)return e.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(e){return this.emit("error",e,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(e){if(e._removeLink&&(e._removeLink.innerHTML=this.options.dictRemoveFile),e.previewElement)return e.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=n,o=!0,a=0;for(i=o?i:i[Symbol.iterator]();;){var s;if(o){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var c=s;for(var l in c){var u=c[l];e[l]=u}}return e}}]),t(o,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(e){return e.accepted})).map((function(e){return e}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(e){return!e.accepted})).map((function(e){return e}))}},{key:"getFilesWithStatus",value:function(e){return this.files.filter((function(t){return t.status===e})).map((function(e){return e}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(o.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(o.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(o.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(e){return e.status===o.UPLOADING||e.status===o.QUEUED})).map((function(e){return e}))}},{key:"init",value:function(){var e=this;if("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(o.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function t(){return e.hiddenFileInput&&e.hiddenFileInput.parentNode.removeChild(e.hiddenFileInput),e.hiddenFileInput=document.createElement("input"),e.hiddenFileInput.setAttribute("type","file"),(null===e.options.maxFiles||e.options.maxFiles>1)&&e.hiddenFileInput.setAttribute("multiple","multiple"),e.hiddenFileInput.className="dz-hidden-input",null!==e.options.acceptedFiles&&e.hiddenFileInput.setAttribute("accept",e.options.acceptedFiles),null!==e.options.capture&&e.hiddenFileInput.setAttribute("capture",e.options.capture),e.hiddenFileInput.style.visibility="hidden",e.hiddenFileInput.style.position="absolute",e.hiddenFileInput.style.top="0",e.hiddenFileInput.style.left="0",e.hiddenFileInput.style.height="0",e.hiddenFileInput.style.width="0",o.getElement(e.options.hiddenInputContainer,"hiddenInputContainer").appendChild(e.hiddenFileInput),e.hiddenFileInput.addEventListener("change",(function(){var n=e.hiddenFileInput.files;if(n.length)for(var r=0,i=i=n;;){if(r>=i.length)break;var o=i[r++];e.addFile(o)}return e.emit("addedfiles",n),t()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var t=0,n=n=this.events;;){if(t>=n.length)break;var r=n[t++];this.on(r,this.options[r])}this.on("uploadprogress",(function(){return e.updateTotalUploadProgress()})),this.on("removedfile",(function(){return e.updateTotalUploadProgress()})),this.on("canceled",(function(t){return e.emit("complete",t)})),this.on("complete",(function(t){if(0===e.getAddedFiles().length&&0===e.getUploadingFiles().length&&0===e.getQueuedFiles().length)return setTimeout((function(){return e.emit("queuecomplete")}),0)}));var i=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(t){return e.emit("dragstart",t)},dragenter:function(t){return i(t),e.emit("dragenter",t)},dragover:function(t){var n=void 0;try{n=t.dataTransfer.effectAllowed}catch(e){}return t.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",i(t),e.emit("dragover",t)},dragleave:function(t){return e.emit("dragleave",t)},drop:function(t){return i(t),e.drop(t)},dragend:function(t){return e.emit("dragend",t)}}}],this.clickableElements.forEach((function(t){return e.listeners.push({element:t,events:{click:function(n){return(t!==e.element||n.target===e.element||o.elementInside(n.target,e.element.querySelector(".dz-message")))&&e.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,o.instances.splice(o.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var e=void 0,t=0,n=0;if(this.getActiveFiles().length){for(var r=0,i=i=this.getActiveFiles();;){if(r>=i.length)break;var o=i[r++];t+=o.upload.bytesSent,n+=o.upload.total}e=100*t/n}else e=100;return this.emit("totaluploadprogress",e,n,t)}},{key:"_getParamName",value:function(e){return"function"==typeof this.options.paramName?this.options.paramName(e):this.options.paramName+(this.options.uploadMultiple?"["+e+"]":"")}},{key:"_renameFile",value:function(e){return"function"!=typeof this.options.renameFile?e.name:this.options.renameFile(e)}},{key:"getFallbackForm",value:function(){var e,t=void 0;if(e=this.getExistingFallback())return e;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var r=o.createElement(n);return"FORM"!==this.element.tagName?(t=o.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(r):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=t?t:r}},{key:"getExistingFallback",value:function(){for(var e=function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];if(/(^| )fallback($| )/.test(r.className))return r}},t=["div","form"],n=0;n<t.length;n++){var r,i=t[n];if(r=e(this.element.getElementsByTagName(i)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.addEventListener(n,r,!1))}return t}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(e){return function(){var t=[];for(var n in e.events){var r=e.events[n];t.push(e.element.removeEventListener(n,r,!1))}return t}()}))}},{key:"disable",value:function(){var e=this;return this.clickableElements.forEach((function(e){return e.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(t){return e.cancelUpload(t)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(e){return e.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(e){var t=0,n="b";if(e>0){for(var r=["tb","gb","mb","kb","b"],i=0;i<r.length;i++){var o=r[i];if(e>=Math.pow(this.options.filesizeBase,4-i)/10){t=e/Math.pow(this.options.filesizeBase,4-i),n=o;break}}t=Math.round(10*t)/10}return"<strong>"+t+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(e){if(e.dataTransfer){this.emit("drop",e);for(var t=[],n=0;n<e.dataTransfer.files.length;n++)t[n]=e.dataTransfer.files[n];if(this.emit("addedfiles",t),t.length){var r=e.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(t)}}}},{key:"paste",value:function(e){if(null!=(t=null!=e?e.clipboardData:void 0,n=function(e){return e.items},null!=t?n(t):void 0)){var t,n;this.emit("paste",e);var r=e.clipboardData.items;return r.length?this._addFilesFromItems(r):void 0}}},{key:"handleFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(e){var t=this;return function(){for(var n=[],r=0,i=i=e;;){if(r>=i.length)break;var o,a=i[r++];null!=a.webkitGetAsEntry&&(o=a.webkitGetAsEntry())?o.isFile?n.push(t.addFile(a.getAsFile())):o.isDirectory?n.push(t._addFilesFromDirectory(o,o.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(t.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(e,t){var n=this,r=e.createReader(),i=function(e){return t=console,n="log",r=function(t){return t.log(e)},null!=t&&"function"==typeof t[n]?r(t,n):void 0;var t,n,r};return function e(){return r.readEntries((function(r){if(r.length>0){for(var i=0,o=o=r;;){if(i>=o.length)break;var a=o[i++];a.isFile?a.file((function(e){if(!n.options.ignoreHiddenFiles||"."!==e.name.substring(0,1))return e.fullPath=t+"/"+e.name,n.addFile(e)})):a.isDirectory&&n._addFilesFromDirectory(a,t+"/"+a.name)}e()}return null}),i)}()}},{key:"accept",value:function(e,t){return this.options.maxFilesize&&e.size>1024*this.options.maxFilesize*1024?t(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(e.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):o.isValidFile(e,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(t(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",e)):this.options.accept.call(this,e,t):t(this.options.dictInvalidFileType)}},{key:"addFile",value:function(e){var t=this;return e.upload={uuid:o.uuidv4(),progress:0,total:e.size,bytesSent:0,filename:this._renameFile(e),chunked:this.options.chunking&&(this.options.forceChunking||e.size>this.options.chunkSize),totalChunkCount:Math.ceil(e.size/this.options.chunkSize)},this.files.push(e),e.status=o.ADDED,this.emit("addedfile",e),this._enqueueThumbnail(e),this.accept(e,(function(n){return n?(e.accepted=!1,t._errorProcessing([e],n)):(e.accepted=!0,t.options.autoQueue&&t.enqueueFile(e)),t._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(e){var t=this;if(e.status!==o.ADDED||!0!==e.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(e.status=o.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return t.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(e){var t=this;if(this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(e),setTimeout((function(){return t._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var e=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var t=this._thumbnailQueue.shift();return this.createThumbnail(t,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return e.emit("thumbnail",t,n),e._processingThumbnail=!1,e._processThumbnailQueue()}))}}},{key:"removeFile",value:function(e){if(e.status===o.UPLOADING&&this.cancelUpload(e),this.files=a(this.files,e),this.emit("removedfile",e),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(e){null==e&&(e=!1);for(var t=0,n=n=this.files.slice();;){if(t>=n.length)break;var r=n[t++];(r.status!==o.UPLOADING||e)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(e,t,n,r,i){var a=this;return this.createThumbnail(e,t,n,r,!0,(function(t,n){if(null==n)return i(e);var r=a.options.resizeMimeType;null==r&&(r=e.type);var s=n.toDataURL(r,a.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(s=l.restore(e.dataURL,s)),i(o.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(e,t,n,r,i,o){var a=this,s=new FileReader;return s.onload=function(){if(e.dataURL=s.result,"image/svg+xml"!==e.type)return a.createThumbnailFromUrl(e,t,n,r,i,o);null!=o&&o(s.result)},s.readAsDataURL(e)}},{key:"createThumbnailFromUrl",value:function(e,t,n,r,i,o,a){var s=this,l=document.createElement("img");return a&&(l.crossOrigin=a),l.onload=function(){var a=function(e){return e(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&i&&(a=function(e){return EXIF.getData(l,(function(){return e(EXIF.getTag(this,"Orientation"))}))}),a((function(i){e.width=l.width,e.height=l.height;var a=s.options.resize.call(s,e,t,n,r),u=document.createElement("canvas"),p=u.getContext("2d");switch(u.width=a.trgWidth,u.height=a.trgHeight,i>4&&(u.width=a.trgHeight,u.height=a.trgWidth),i){case 2:p.translate(u.width,0),p.scale(-1,1);break;case 3:p.translate(u.width,u.height),p.rotate(Math.PI);break;case 4:p.translate(0,u.height),p.scale(1,-1);break;case 5:p.rotate(.5*Math.PI),p.scale(1,-1);break;case 6:p.rotate(.5*Math.PI),p.translate(0,-u.width);break;case 7:p.rotate(.5*Math.PI),p.translate(u.height,-u.width),p.scale(-1,1);break;case 8:p.rotate(-.5*Math.PI),p.translate(-u.height,0)}c(p,l,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var d=u.toDataURL("image/png");if(null!=o)return o(d,u)}))},null!=o&&(l.onerror=o),l.src=e.dataURL}},{key:"processQueue",value:function(){var e=this.options.parallelUploads,t=this.getUploadingFiles().length,n=t;if(!(t>=e)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,e-t));for(;n<e;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(e){return this.processFiles([e])}},{key:"processFiles",value:function(e){for(var t=0,n=n=e;;){if(t>=n.length)break;var r=n[t++];r.processing=!0,r.status=o.UPLOADING,this.emit("processing",r)}return this.options.uploadMultiple&&this.emit("processingmultiple",e),this.uploadFiles(e)}},{key:"_getFilesWithXhr",value:function(e){return this.files.filter((function(t){return t.xhr===e})).map((function(e){return e}))}},{key:"cancelUpload",value:function(e){if(e.status===o.UPLOADING){for(var t=this._getFilesWithXhr(e.xhr),n=0,r=r=t;;){if(n>=r.length)break;r[n++].status=o.CANCELED}void 0!==e.xhr&&e.xhr.abort();for(var i=0,a=a=t;;){if(i>=a.length)break;var s=a[i++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",t)}else e.status!==o.ADDED&&e.status!==o.QUEUED||(e.status=o.CANCELED,this.emit("canceled",e),this.options.uploadMultiple&&this.emit("canceledmultiple",[e]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(e){if("function"==typeof e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.apply(this,n)}return e}},{key:"uploadFile",value:function(e){return this.uploadFiles([e])}},{key:"uploadFiles",value:function(e){var t=this;this._transformFiles(e,(function(n){if(e[0].upload.chunked){var r=e[0],i=n[0];r.upload.chunks=[];var a=function(){for(var n=0;void 0!==r.upload.chunks[n];)n++;if(!(n>=r.upload.totalChunkCount)){0;var a=n*t.options.chunkSize,s=Math.min(a+t.options.chunkSize,r.size),c={name:t._getParamName(0),data:i.webkitSlice?i.webkitSlice(a,s):i.slice(a,s),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:c,status:o.UPLOADING,progress:0,retries:0},t._uploadData(e,[c])}};if(r.upload.finishedChunkUpload=function(n){var i=!0;n.status=o.SUCCESS,n.dataBlock=null,n.xhr=null;for(var s=0;s<r.upload.totalChunkCount;s++){if(void 0===r.upload.chunks[s])return a();r.upload.chunks[s].status!==o.SUCCESS&&(i=!1)}i&&t.options.chunksUploaded(r,(function(){t._finished(e,"",null)}))},t.options.parallelChunkUploads)for(var s=0;s<r.upload.totalChunkCount;s++)a();else a()}else{for(var c=[],l=0;l<e.length;l++)c[l]={name:t._getParamName(l),data:n[l],filename:e[l].upload.filename};t._uploadData(e,c)}}))}},{key:"_getChunk",value:function(e,t){for(var n=0;n<e.upload.totalChunkCount;n++)if(void 0!==e.upload.chunks[n]&&e.upload.chunks[n].xhr===t)return e.upload.chunks[n]}},{key:"_uploadData",value:function(e,t){for(var n=this,r=new XMLHttpRequest,i=0,a=a=e;;){if(i>=a.length)break;a[i++].xhr=r}e[0].upload.chunked&&(e[0].upload.chunks[t[0].chunkIndex].xhr=r);var s=this.resolveOption(this.options.method,e),c=this.resolveOption(this.options.url,e);r.open(s,c,!0),r.timeout=this.resolveOption(this.options.timeout,e),r.withCredentials=!!this.options.withCredentials,r.onload=function(t){n._finishedUploading(e,r,t)},r.onerror=function(){n._handleUploadError(e,r)},(null!=r.upload?r.upload:r).onprogress=function(t){return n._updateFilesUploadProgress(e,r,t)};var l={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var u in this.options.headers&&o.extend(l,this.options.headers),l){var p=l[u];p&&r.setRequestHeader(u,p)}var d=new FormData;if(this.options.params){var h=this.options.params;for(var f in"function"==typeof h&&(h=h.call(this,e,r,e[0].upload.chunked?this._getChunk(e[0],r):null)),h){var m=h[f];d.append(f,m)}}for(var g=0,v=v=e;;){if(g>=v.length)break;var y=v[g++];this.emit("sending",y,r,d)}this.options.uploadMultiple&&this.emit("sendingmultiple",e,r,d),this._addFormElementData(d);for(var b=0;b<t.length;b++){var C=t[b];d.append(C.name,C.data,C.filename)}this.submitRequest(r,d,e)}},{key:"_transformFiles",value:function(e,t){for(var n=this,r=[],i=0,o=function(o){n.options.transformFile.call(n,e[o],(function(n){r[o]=n,++i===e.length&&t(r)}))},a=0;a<e.length;a++)o(a)}},{key:"_addFormElementData",value:function(e){if("FORM"===this.element.tagName)for(var t=0,n=n=this.element.querySelectorAll("input, textarea, select, button");;){if(t>=n.length)break;var r=n[t++],i=r.getAttribute("name"),o=r.getAttribute("type");if(o&&(o=o.toLowerCase()),null!=i)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var a=0,s=s=r.options;;){if(a>=s.length)break;var c=s[a++];c.selected&&e.append(i,c.value)}else(!o||"checkbox"!==o&&"radio"!==o||r.checked)&&e.append(i,r.value)}}},{key:"_updateFilesUploadProgress",value:function(e,t,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,e[0].upload.chunked){var i=e[0],o=this._getChunk(i,t);o.progress=r,o.total=n.total,o.bytesSent=n.loaded;i.upload.progress=0,i.upload.total=0,i.upload.bytesSent=0;for(var a=0;a<i.upload.totalChunkCount;a++)void 0!==i.upload.chunks[a]&&void 0!==i.upload.chunks[a].progress&&(i.upload.progress+=i.upload.chunks[a].progress,i.upload.total+=i.upload.chunks[a].total,i.upload.bytesSent+=i.upload.chunks[a].bytesSent);i.upload.progress=i.upload.progress/i.upload.totalChunkCount}else for(var s=0,c=c=e;;){if(s>=c.length)break;var l=c[s++];l.upload.progress=r,l.upload.total=n.total,l.upload.bytesSent=n.loaded}for(var u=0,p=p=e;;){if(u>=p.length)break;var d=p[u++];this.emit("uploadprogress",d,d.upload.progress,d.upload.bytesSent)}}else{var h=!0;r=100;for(var f=0,m=m=e;;){if(f>=m.length)break;var g=m[f++];100===g.upload.progress&&g.upload.bytesSent===g.upload.total||(h=!1),g.upload.progress=r,g.upload.bytesSent=g.upload.total}if(h)return;for(var v=0,y=y=e;;){if(v>=y.length)break;var b=y[v++];this.emit("uploadprogress",b,r,b.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(e,t,n){var r=void 0;if(e[0].status!==o.CANCELED&&4===t.readyState){if("arraybuffer"!==t.responseType&&"blob"!==t.responseType&&(r=t.responseText,t.getResponseHeader("content-type")&&~t.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(e){n=e,r="Invalid JSON response from server."}this._updateFilesUploadProgress(e),200<=t.status&&t.status<300?e[0].upload.chunked?e[0].upload.finishedChunkUpload(this._getChunk(e[0],t)):this._finished(e,r,n):this._handleUploadError(e,t,r)}}},{key:"_handleUploadError",value:function(e,t,n){if(e[0].status!==o.CANCELED){if(e[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(e[0],t);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(e,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var i=0,a=a=e;;){if(i>=a.length)break;a[i++];this._errorProcessing(e,n||this.options.dictResponseError.replace("{{statusCode}}",t.status),t)}}}},{key:"submitRequest",value:function(e,t,n){e.send(t)}},{key:"_finished",value:function(e,t,n){for(var r=0,i=i=e;;){if(r>=i.length)break;var a=i[r++];a.status=o.SUCCESS,this.emit("success",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(e,t,n){for(var r=0,i=i=e;;){if(r>=i.length)break;var a=i[r++];a.status=o.ERROR,this.emit("error",a,t,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",e,t,n),this.emit("completemultiple",e)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)}))}}]),o}(i);o.initClass(),o.version="5.5.1",o.options={},o.optionsForElement=function(e){return e.getAttribute("id")?o.options[s(e.getAttribute("id"))]:void 0},o.instances=[],o.forElement=function(e){if("string"==typeof e&&(e=document.querySelector(e)),null==(null!=e?e.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return e.dropzone},o.autoDiscover=!0,o.discover=function(){var e=void 0;if(document.querySelectorAll)e=document.querySelectorAll(".dropzone");else{e=[];var t=function(t){return function(){for(var n=[],r=0,i=i=t;;){if(r>=i.length)break;var o=i[r++];/(^| )dropzone($| )/.test(o.className)?n.push(e.push(o)):n.push(void 0)}return n}()};t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form"))}return function(){for(var t=[],n=0,r=r=e;;){if(n>=r.length)break;var i=r[n++];!1!==o.optionsForElement(i)?t.push(new o(i)):t.push(void 0)}return t}()},o.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],o.isBrowserSupported=function(){var e=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var t=0,n=n=o.blacklistedBrowsers;;){if(t>=n.length)break;n[t++].test(navigator.userAgent)&&(e=!1)}else e=!1;else e=!1;return e},o.dataURItoBlob=function(e){for(var t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(t.length),i=new Uint8Array(r),o=0,a=t.length,s=0<=a;s?o<=a:o>=a;s?o++:o--)i[o]=t.charCodeAt(o);return new Blob([r],{type:n})};var a=function(e,t){return e.filter((function(e){return e!==t})).map((function(e){return e}))},s=function(e){return e.replace(/[\-_](\w)/g,(function(e){return e.charAt(1).toUpperCase()}))};o.createElement=function(e){var t=document.createElement("div");return t.innerHTML=e,t.childNodes[0]},o.elementInside=function(e,t){if(e===t)return!0;for(;e=e.parentNode;)if(e===t)return!0;return!1},o.getElement=function(e,t){var n=void 0;if("string"==typeof e?n=document.querySelector(e):null!=e.nodeType&&(n=e),null==n)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},o.getElements=function(e,t){var n=void 0,r=void 0;if(e instanceof Array){r=[];try{for(var i=0,o=o=e;!(i>=o.length);)n=o[i++],r.push(this.getElement(n,t))}catch(e){r=null}}else if("string"==typeof e){r=[];for(var a=0,s=s=document.querySelectorAll(e);!(a>=s.length);)n=s[a++],r.push(n)}else null!=e.nodeType&&(r=[e]);if(null==r||!r.length)throw new Error("Invalid `"+t+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},o.confirm=function(e,t,n){return window.confirm(e)?t():null!=n?n():void 0},o.isValidFile=function(e,t){if(!t)return!0;t=t.split(",");for(var n=e.type,r=n.replace(/\/.*$/,""),i=0,o=o=t;;){if(i>=o.length)break;var a=o[i++];if("."===(a=a.trim()).charAt(0)){if(-1!==e.name.toLowerCase().indexOf(a.toLowerCase(),e.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(r===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(e){return this.each((function(){return new o(this,e)}))}),null!==e?e.exports=o:window.Dropzone=o,o.ADDED="added",o.QUEUED="queued",o.ACCEPTED=o.QUEUED,o.UPLOADING="uploading",o.PROCESSING=o.UPLOADING,o.CANCELED="canceled",o.ERROR="error",o.SUCCESS="success";var c=function(e,t,n,r,i,o,a,s,c,l){var u=function(e){e.naturalWidth;var t=e.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=t;var r=n.getContext("2d");r.drawImage(e,0,0);for(var i=r.getImageData(1,0,1,t).data,o=0,a=t,s=t;s>o;){0===i[4*(s-1)+3]?a=s:o=s,s=a+o>>1}var c=s/t;return 0===c?1:c}(t);return e.drawImage(t,n,r,i,o,a,s,c,l/u)},l=function(){function e(){r(this,e)}return t(e,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(e){for(var t="",n=void 0,r=void 0,i="",o=void 0,a=void 0,s=void 0,c="",l=0;o=(n=e[l++])>>2,a=(3&n)<<4|(r=e[l++])>>4,s=(15&r)<<2|(i=e[l++])>>6,c=63&i,isNaN(r)?s=c=64:isNaN(i)&&(c=64),t=t+this.KEY_STR.charAt(o)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(c),n=r=i="",o=a=s=c="",l<e.length;);return t}},{key:"restore",value:function(e,t){if(!e.match("data:image/jpeg;base64,"))return t;var n=this.decode64(e.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),i=this.exifManipulation(t,r);return"data:image/jpeg;base64,"+this.encode64(i)}},{key:"exifManipulation",value:function(e,t){var n=this.getExifArray(t),r=this.insertExif(e,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(e){for(var t=void 0,n=0;n<e.length;){if(255===(t=e[n])[0]&225===t[1])return t;n++}return[]}},{key:"insertExif",value:function(e,t){var n=e.replace("data:image/jpeg;base64,",""),r=this.decode64(n),i=r.indexOf(255,3),o=r.slice(0,i),a=r.slice(i),s=o;return s=(s=s.concat(t)).concat(a)}},{key:"slice2Segments",value:function(e){for(var t=0,n=[];;){if(255===e[t]&218===e[t+1])break;if(255===e[t]&216===e[t+1])t+=2;else{var r=t+(256*e[t+2]+e[t+3])+2,i=e.slice(t,r);n.push(i),t=r}if(t>e.length)break}return n}},{key:"decode64",value:function(e){var t=void 0,n=void 0,r="",i=void 0,o=void 0,a="",s=0,c=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(e)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");t=this.KEY_STR.indexOf(e.charAt(s++))<<2|(i=this.KEY_STR.indexOf(e.charAt(s++)))>>4,n=(15&i)<<4|(o=this.KEY_STR.indexOf(e.charAt(s++)))>>2,r=(3&o)<<6|(a=this.KEY_STR.indexOf(e.charAt(s++))),c.push(t),64!==o&&c.push(n),64!==a&&c.push(r),t=n=r="",i=o=a="",s<e.length;);return c}}]),e}();l.initClass();o._autoDiscoverFunction=function(){if(o.autoDiscover)return o.discover()},function(e,t){var n=!1,r=!0,i=e.document,o=i.documentElement,a=i.addEventListener?"addEventListener":"attachEvent",s=i.addEventListener?"removeEventListener":"detachEvent",c=i.addEventListener?"":"on",l=function r(o){if("readystatechange"!==o.type||"complete"===i.readyState)return("load"===o.type?e:i)[s](c+o.type,r,!1),!n&&(n=!0)?t.call(e,o.type||o):void 0};if("complete"!==i.readyState){if(i.createEventObject&&o.doScroll){try{r=!e.frameElement}catch(e){}r&&function e(){try{o.doScroll("left")}catch(t){return void setTimeout(e,50)}return l("poll")}()}i[a](c+"DOMContentLoaded",l,!1),i[a](c+"readystatechange",l,!1),e[a](c+"load",l,!1)}}(window,o._autoDiscoverFunction)}).call(this,n(403)(e))},function(e,t,n){"use strict";var r=n(0),i=n(28),o=n(26);function a(){return r.createElement("div",{className:"text-center p-5"},r.createElement(i.Spinner,{as:"div",animation:"border",role:"status"}))}function s(e){const{title:t,closeButton:n=!0,closePopup:s,onEntered:c,showLoadingSpinner:l}=e,u=Object.assign({show:!0,onHide:s},o.a.isFunction(c)?{onEntered:c}:{});return r.createElement(i.Modal,Object.assign({},u),!!t&&r.createElement(i.Modal.Header,{closeButton:n},r.createElement(i.Modal.Title,null,t)),l?r.createElement(a,null):r.createElement(i.Modal.Body,null,e.children))}n.d(t,"a",(function(){return s}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(0),i=n(33),o=n(34),a=n(75),s=n.n(a);function c(e){const{svgName:t,children:n,appLink:a,className:c,onClick:l}=e;let u=`${c} ${s.a.iconButton}`;u+=n?" "+s.a.iconWithText:" "+s.a.iconOnly;const p=r.createElement(i.a,{svgName:t,className:s.a.svg});return a?r.createElement(o.a,{appLink:a,className:u,onClick:l},p,n):r.createElement("button",{className:u,onClick:l},p,n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={currentUser:{url:"/api/currentUser",key:"currentuser"},workspace:{url:"api/domain/v2/me/workspace",key:"workspace"}}},function(e,t,n){"use strict";var r=n(8),i=n(13);class o{constructor(e){this.setData(e)}setData(e){const{collectionPrefix:t,id:n,sort:r,cursor:i}=e;n&&(this.id=n),r&&(this.sort=r),i&&(this.cursor=i),t&&(this.collectionPrefix=t)}toString(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}toParams(){const e={};return this.sort&&(e.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(e.cursor=this.cursor),e}getSortTypeParam(){return r.c.throw(new i.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}n(63);n.d(t,"a",(function(){return o}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r,i=n(59),o=n(36),a=n(2),s=n(80);!function(e){e.Banner="banner",e.Thumbnail="thumbnail"}(r||(r={}));const c={[s.b.Banners]:r.Banner,[s.b.Thumbnails]:r.Thumbnail},l=e=>"/v1/category-map/"+e,u={createUrl:(e,t)=>u._createUrl(e,t),createBannerUrl:(e,t,n)=>e&&e.url?u._createUrl(e.url,n):u._createCategoryMappedUrl(t,n),Rfc3986EncodeURIComponent:e=>encodeURIComponent(e).replace(/[!'()*]/g,escape),_createCategoryMappedUrl(e,t){const{fallbackBaseUrl:n,fallbackCategoryName:r,type:o}=e,a=i.a.safeUrlConcat(n,""+l(c[o])),s=Object.assign({name:u.Rfc3986EncodeURIComponent(r)},t);return u._createUrl(a,s)},_createUrl(e,t){if(!e)return;if(o.a.isEmpty(t))return e;const n=$.param(t),r=-1===e.indexOf("?")?"?":"&";return i.a.safeUrlConcat(e,`${r}${n}`)},legacyCreateThumbnailUrl(e,t){if(!e)return"";let n;if(!e)return;if(n=e instanceof a.a.Model?e.get("url"):"string"==typeof e?e:e.url,!n)return;const r=Object.assign({size:s.a.Small,bgColor:"000"},t);return u._createUrl(n,r)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(12),i=n(59),o=n(16);function a(e){return function(e){if(Array.isArray(e))return s(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 s(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 s(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 s(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={getAll:function(){return{url:"/api/domain/v1/classrooms",key:"classrooms",successResponse:function(){return r.a.Simulator.getAll("classrooms")},timeout:1e3}},getClassroom:function(e){return{url:"/api/domain/v1/classrooms/".concat(e),key:"classroom:".concat(e),invalidationKeys:["classrooms"],successResponse:function(){return r.a.Simulator.get("classrooms",e)},timeout:5e3}},createClassroom:function(e,t,n){return{url:"/api/domain/v1/classrooms",key:"create:classroom",type:o.a.POST,invalidationKeys:["classrooms"],successResponse:function(){return r.a.Simulator.create("classrooms",Object.assign(Object.assign({},e),{students:[],groups:[],activities:[],isFavourited:!1}))},success:t,error:n}},editClassroom:function(e,t,n){return{url:"/api/domain/v1/classrooms",key:"update:classroom",type:o.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",e)},success:t,error:n}},deleteClassroom:function(e,t,n){return{url:"/api/domain/v1/classrooms",key:"delete:classroom",type:o.a.DELETE,invalidationKeys:["classrooms"],successResponse:function(){return r.a.Simulator.delete("classrooms",e),{}},success:t,error:n}},addStudents:function(e,t,n,i){return{url:"/api/domain/v1/classrooms/".concat(t,"/students"),key:"add:students:classroom",type:o.a.POST,invalidationKeys:["classroom:".concat(t),"students","groups:with:all:students"],successResponse:function(){return r.a.Simulator.assoc("classrooms",t,"students","school:students",e)},success:n,error:i}},removeStudents:function(e,t,n,i){return{url:"/api/domain/v1/classrooms/".concat(t,"/students"),key:"remove:students:classroom",type:o.a.DELETE,invalidationKeys:["classroom:".concat(t)].concat(a(e.map((function(e){return"students:".concat(e)}))),["groups:with:all:students"]),successResponse:function(){return r.a.Simulator.dissoc("classrooms",t,"students",e)},success:n,error:i}},addGroupToClassroom:function(e,t,n,i){return{url:"/api/domain/v1/classrooms/".concat(t,"/groups"),key:"add:classroom:group",type:o.a.POST,invalidationKeys:["classroom:".concat(t)],successResponse:function(){return r.a.Simulator.assoc("classrooms",t,"groups","groups",e)},success:n,error:i}},editGroup:function(e,t,n,i){return{url:"/api/domain/v1/groups/".concat(e.id),key:"group:".concat(e.id),type:o.a.PUT,invalidationKeys:["groups","classroom:".concat(t.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},t),{groups:t.groups.map((function(t){return t.id!==e.id?t:e}))})),r.a.Simulator.update("groups",e)},success:n,error:i}},deleteGroup:function(e,t,n,i){return{url:"/api/domain/v1/groups/".concat(e),key:"delete:group",type:o.a.DELETE,invalidationKeys:["groups","classroom:".concat(t)],successResponse:function(){return r.a.Simulator.dissoc("classrooms",t,"groups",e),r.a.Simulator.delete("groups",e),{}},success:n,error:i}},addStudentsToGroup:function(e,t,n,i){return{url:"/api/domain/v1/groups/".concat(t,"/students"),key:"add:student:group",data:e,type:o.a.POST,invalidationKeys:["group:".concat(t)].concat(a(e.map((function(e){return"user:".concat(e,":groups")}))),["groups:with:all:students"]),successResponse:function(){return e.forEach((function(e){r.a.Simulator.assoc("groups",t,"students","school:students",[e])})),r.a.Simulator.get("groups",t)},success:n,error:i}},removeStudentsFromGroup:function(e,t,n,s){return{url:i.a.urlBuilder("/api/domain/v1/groups/".concat(t,"/students"),{id:e}),key:"remove:student:group",type:o.a.DELETE,invalidationKeys:["group:".concat(t),"groups:with:all:students"].concat(a(e.map((function(e){return"user:".concat(e,":groups")})))),successResponse:function(){return e.forEach((function(e){r.a.Simulator.dissoc("groups",t,"students",e)})),r.a.Simulator.get("groups",t)},success:n,error:s}},getStarredClassrooms:function(){return{url:"/api/domain/v1/me/starred-classrooms",key:"starred:classrooms",successResponse:function(){return r.a.Simulator.getAll("classrooms").filter((function(e){return e.isFavourited}))}}},starClassroom:function(e,t,n){return{url:"/api/domain/v1/classroom/".concat(e.id,"/star"),key:"star:classroom:".concat(e.id),type:o.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},e),{isFavourited:!0}))},success:t,error:n}},unstarClassroom:function(e,t,n){return{url:"/api/domain/v1/classroom/".concat(e.id,"/unstar"),key:"unstar:classroom:".concat(e.id),type:o.a.PUT,invalidationKeys:["classrooms","classroom:".concat(e.id)],successResponse:function(){return r.a.Simulator.update("classrooms",Object.assign(Object.assign({},e),{isFavourited:!1}))},success:t,error:n}},getGroupsWithAllStudents:function(e){var t=e.map((function(e){return e.id}));return{url:"i highly doubt this will be a real request",key:"groups:with:all:students",successResponse:function(){return r.a.Simulator.getAll("groups").filter((function(e){var n=!0,r=0,i=function(){var i=t[r];e.students.find((function(e){return e.id===i}))||(n=!1),r++};do{i()}while(r<t.length);return n}))}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(16),i=n(98),o=n(110),a=function(e){return"/api/domain/v2/objects/".concat(e,"?query=").concat(o.a.VIDEO)},s=function(e,t){var n="{orderbydesc:datecreated}".concat(o.a.VIDEO_COLLECTION).concat(function(e){return e?"&cursor=".concat(e):""}(t));return"api/domain/v2/objects/".concat(e,"/videos?query=").concat(n)},c=function(e){var t=e.map((function(e){return"id=".concat(e)}));return"/api/domain/v2/objects?".concat(t.join("&"))},l={video:function(e){return{url:a(e),key:"videos:".concat(e)}},workspace:function(e,t){return{url:s(e,t),key:"workspace:".concat(e,":").concat(t)}},videos:function(e,t){return{url:c(e),key:"videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t){return{key:"update:video:".concat(e.id),url:"/api/domain/v2/objects/".concat(e.id),type:r.a.PUT,data:e,success:t}},videoRatings:function(e){var t=e.map((function(e){return"id=".concat(e)}));return{url:"/api/domain/v2/objects?query=rating&".concat(t.join("&")),key:"video:ratings:by:id:".concat(e.join(","))}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(i.a.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),i=n(28),o=n(127),a=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function s({buttons:e}){return r.createElement("div",{className:"d-flex justify-content-end border-top pt-3 px-3 mx-n3"},e.map((e,t)=>((e,t)=>{const{buttonText:n,type:s="button",isSpinnerButton:c,showSpinner:l=!1,className:u}=e,p=a(e,["buttonText","type","isSpinnerButton","showSpinner","className"]),d=Object.assign({key:t,type:s,className:"ml-2"+(u?" "+u:"")},p);return c?r.createElement(o.a,Object.assign({showSpinner:l},d),n):r.createElement(i.Button,Object.assign({},d),n)})(e,t)))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={config:{url:"/api/config",key:"config"}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(0),i=n(28),o=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 i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n};function a(e){const{showSpinner:t,children:n}=e,a=o(e,["showSpinner","children"]),s=r.useRef(),[c,l]=r.useState({});return r.useEffect(()=>{const{width:e,height:t}=c;if(e&&t)return;const n=s.current,r=n.offsetHeight,i=n.offsetWidth;r&&i&&l({width:i,height:r})}),r.useEffect(()=>{const{width:e,height:t}=c;if(!e||!t)return;const n=s.current;n.style.width=e+1+"px",n.style.height=t+1+"px"},[c]),r.createElement(i.Button,Object.assign({ref:s,disabled:t},a),t?r.createElement(i.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(45);const i={getFilterFromSort(e){switch(e){case r.a.RecentlyUpdated:return"orderbydesc:timestamp";case r.a.AtoZ:return"orderby:name";case r.a.Newest:default:return"orderbydesc:datecreated"}},getSortTypeFromName(e){switch(e){case"recentlyupdated":return r.a.RecentlyUpdated;case"atoz":return r.a.AtoZ;case"newest":default:return r.a.Newest}}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);const i=r.createContext({})},function(e,t,n){"use strict";var r=n(0),i=n(35);const o={padNumber(e,t){let n=e.toString();if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n}};var a=n(34),s=n(108),c=n.n(s);function l(e){const{video:t}=e,{season:n}=t;if(!t.episodeNumber||!n)return r.createElement(r.Fragment,null);const i=o.padNumber(n.number,2),a=o.padNumber(t.episodeNumber,2);return r.createElement("span",{className:"d-inline-block "+c.a.seasonEpisodeContainer}," ",!!i&&`S${i} • `,"E",a)}function u(e){const{appLink:t,video:{series:n},className:o}=e;if(!n||!n.id)return r.createElement(r.Fragment,null);const s=t&&Object.assign(Object.assign({},t),{args:[n.id,i.a.slugify(n.name)]});return s?r.createElement(a.a,{appLink:s,className:`text-uppercase ${c.a.appLink} ${o}`},n.name,r.createElement(l,Object.assign({},e))):r.createElement("span",{className:`text-uppercase ${c.a.appLink} ${o}`},n.name,r.createElement(l,Object.assign({},e)))}n.d(t,"a",(function(){return u}))},function(e,t,n){"use strict";n.d(t,"a",(function(){return r}));const r={getRandomInt:(e=1e4)=>Math.floor(Math.random()*Math.floor(e))}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(1);const i=(e,t,n)=>{var r=t-(e=e.toString()).length;return r<=0?e:new Array(r+1).join(n)+e},o={ToDisplayDuration(e){if(!r.isNumber(e))return"";const t=new Date(e),n=t.getUTCHours(),o=i(t.getUTCMinutes(),2,"0"),a=i(t.getUTCSeconds(),2,"0");return n>0?`${n}:${o}:${a}`:`${o}:${a}`}}},function(e,t,n){"use strict";var r,i=n(27);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos"}(r||(r={})),n.d(t,"a",(function(){return u}));const o=()=>"/api/domain/v1/subjects?query="+i.a.CLASSIFICATION,a=(e,t)=>`/api/domain/v1/subjects/${e}?query=${i.b.ClassificationWithFollowersAndMemberCount(t)}`,s=e=>`/api/domain/v1/subjects/${e}/path`,c=e=>`/api/domain/v1/subjects/${e}/children?query=${i.a.CLASSIFICATION}`,l=(e,t,n="",r="")=>{let i=`/api/domain/v1/subjects/${e}/${t}`;const o=[];n&&o.push("query="+n),r&&o.push("cursor="+r);const a=o.join("&");return a&&(i+="?"+a),i},u={presentation:()=>({url:"/api/domain/v1/subjects/presentation",key:"presentation",bootstrapName:"presentation"}),classifications:()=>({url:o(),key:"classifications"}),classification:(e,t,n)=>({url:a(e,t),key:"classification:"+e,error:n}),path:e=>({url:s(e),key:`classification:${e}:path`}),children:e=>({url:c(e),key:`classification:${e}:children`}),videos(e,t,n){if(!t)return;let o="limit:100";n.length&&(o+=","+i.b.SubjectPresentationActiveAudienceFilter(n));let a=`{${o}}${i.a.VIDEO_COLLECTION},`+i.b.SubjectPresentationAudienceFilter(t);return{url:l(e,r.Videos,a),key:`classification:${e}:${r.Videos}:${n.join(":")}`}},playlists(e,t,n){if(!t)return;let o="limit:100,orderby:name";n.length&&(o+=","+i.b.SubjectPresentationActiveAudienceFilter(n));let a=`{${o}}${i.a.PLAYLIST_COLLECTION},`+i.b.SubjectPresentationAudienceFilter(t);return{url:l(e,r.Playlists,a),key:`classification:${e}:${r.Playlists}:${n.join(":")}`}},series(e,t,n){if(!t)return;let o="limit:100";n.length&&(o+=","+i.b.SubjectPresentationActiveAudienceFilter(n));let a=`{${o}}${i.a.SERIES},`+i.b.SubjectPresentationAudienceFilter(t);return{url:l(e,r.Series,a),key:`classification:${e}:${r.Series}:${n.join(":")}`}}}},function(e,t,n){"use strict";var r=n(5),i=n(29),o=n(13),a=n(2),s=n(6),c=n(37),l=n(7),u=n(49),p=n(14),d=n(53),h=n(58);const f="upload.utils",m={getStatus(e){if(m.hasError(e))return l.a.getPhrase(f,"videoProcessingError");if(!e.get("foregroundComplete")){const t=m.getProgress(e);return 0===t?l.a.getPhrase(f,"waiting"):l.a.getPhrase(f,"processing",{progress:t})}return m.isDone(e)?l.a.getPhrase(f,"complete"):l.a.getPhrase(f,"readyToWatch")},hasError:e=>e.get("pendingProcessStatus")===h.a.Error,isDone:e=>2===e.get("pendingProcessStatus"),getProgress:e=>e.get("foregroundProgress"),hasExpired(e,t){const n=e.get("timeInitialized");return d().diff(n,"days")>=t}};var g=n(25),v=n(32),y=n(4),b=n(11),C=n(35);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 w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(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 t&&E(e.prototype,t),n&&E(e,n),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&&k(e,t)}function k(e,t){return(k=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=T(e);if(t){var i=T(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return A(this,n)}}function A(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 T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"b",(function(){return N})),n.d(t,"a",(function(){return I}));var N,R=l.a.encloseNamespace("upload.services"),P=function(e){O(n,e);var t=L(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"modelId",value:function(e){return e.pendingProcessId||e.id}},{key:"comparator",get:function(){return function(e,t){var n=e.get("status"),r=t.get("status");return n===N.Errored?1:r===N.Errored?-1:0}}}]),n}(a.a.Collection);!function(e){e[e.Uploading=0]="Uploading",e[e.Processing=1]="Processing",e[e.Errored=2]="Errored"}(N||(N={}));var I=function(e){O(n,e);var t=L(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"initialize",value:function(){this.initializeServices(),this.initializeCollections(),this.bindListeners()}},{key:"initializeServices",value:function(){this.videoUploadService=s.a.getInstance(v.b.VideoUpload,this),this.pendingItemsService=s.a.getInstance(v.b.PendingItems,this),this.alertService=s.a.getInstance(c.a.ALERT,this)}},{key:"initializeCollections",value:function(){this.uploads=this.videoUploadService.getCollection(),this.pendingItems=this.pendingItemsService.getPendingItems(),this.combined=new P,this.erroredVideos=new a.a.Collection,this.uploads.each(this.addUpload,this),this.pendingItems.each(this.addPendingItem,this)}},{key:"bindListeners",value:function(){this.listenTo(this.uploads,"add",this.addUpload),this.listenTo(this.pendingItems,"add",this.addPendingItem),this.listenTo(this.uploads,"remove",this.removeUpload),this.listenTo(this.pendingItems,"remove",this.removePendingItem),this.listenTo(this.uploads,"change",this.onChangeUpload),this.listenTo(this.pendingItems,"change",this.onChangePendingItem),this.listenTo(p.c.PENDING_ITEMS,g.a.PENDING_ITEM_READY_TO_WATCH,this.onPendingItemReadyToWatch)}},{key:"getUploadAttrs",value:function(e){return{id:e.get("id"),name:e.get("name"),progress:e.get("progress"),status:N.Uploading,pendingProcessId:e.get("pendingProcessId")}}},{key:"getPendingItemAttrs",value:function(e){return{id:e.get("pendingProcessId"),name:e.get("video").get("name"),progress:e.get("foregroundProgress"),status:m.hasError(e)?N.Errored:N.Processing,pendingProcessId:e.get("pendingProcessId"),videoId:e.get("video").get("id")}}},{key:"addUpload",value:function(e){this.combined.add(this.getUploadAttrs(e))}},{key:"addPendingItem",value:function(e){var t=this.combined.findWhere({pendingProcessId:e.get("pendingProcessId")});t?t.set(this.getPendingItemAttrs(e)):this.combined.add(this.getPendingItemAttrs(e))}},{key:"removeUpload",value:function(e){var t=this.combined.get(e.get("id"));this.combined.remove(t),this.erroredVideos.remove(t)}},{key:"removePendingItem",value:function(e){var t=this.combined.get(e.get("pendingProcessId"));this.combined.remove(t),this.erroredVideos.remove(t),r.Radio.channel(this.channelName).trigger(g.a.PROCESSING_CANCELLED)}},{key:"onChangeUpload",value:function(e){this.combined.get(e.get("id")).set(this.getUploadAttrs(e))}},{key:"onChangePendingItem",value:function(e){var t=this.combined.get(e.get("pendingProcessId"));t.set(this.getPendingItemAttrs(e)),m.hasError(e)&&this.onPendingItemError(t)}},{key:"onPendingItemError",value:function(e){if(!this.erroredVideos.findWhere({id:e.get("id")})){this.erroredVideos.add(e);var t={heading:i.c.Fail,type:i.a.Fail,message:R("errorAlertMessage",{videoName:e.get("name")})};u.a.getCurrentContext().appLink.application!==y.a.UPLOAD&&(t.appLinkText=R("errorAlertAppLinkText"),t.appLinkClassName="info-link",t.appLink={application:y.a.UPLOAD,action:b.a.Upload.MY_UPLOADS}),this.alertService.createAlert(t)}}},{key:"onPendingItemReadyToWatch",value:function(e){var t=e.get("video"),n={application:y.a.DEFAULT,action:b.a.Default.PLAY_VIDEO,args:[t.get("id"),C.a.slugify(t.get("name"))]};this.alertService.createAlert({type:i.a.Success,heading:R("completeUploadAlertHeading",{videoName:t.get("name")}),message:R("completeUploadAlertMessage",{videoName:t.get("name")}),appLink:n,appLinkText:R("completeUploadAlertAppLinkText",{videoName:t.get("name")}),appLinkClassName:"info-link"})}},{key:"cancelUpload",value:function(e){this.videoUploadService.cancelUpload(e)}},{key:"cancelProcessing",value:function(e){var t=this.pendingItems.findWhere({pendingProcessId:e});this.pendingItemsService.clearPendingItem(t)}},{key:"retryItem",value:function(e){var t=this;e.status===N.Uploading&&a.a.ErrorHelper.throw(new o.a("Cannot retry uploading items.")),this.erroredVideos.remove(e);var n=this.pendingItems.findWhere({pendingProcessId:e.id});this.pendingItemsService.retryPendingItem(n,(function(){t.pendingItemsService.forceFetchPendingItems()}))}},{key:"editUpload",value:function(e){e.status===N.Uploading&&(this.uploads.get(e.id).get("sending")||a.a.AppLinkHelper.trigger({application:y.a.UPLOAD,action:b.a.Upload.EDIT_UPLOAD,args:[e.id]}))}},{key:"updateUploadMetadata",value:function(e,t){var n=this.combined.findWhere({videoId:e});n&&n.set({name:t})}},{key:"getCollection",value:function(){return this.combined}},{key:"name",get:function(){return v.b.CombineUploads}},{key:"channelName",get:function(){return y.b.COMBINE_UPLOADS}}]),n}(a.a.Service)},function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n(0),i=n.n(r),o=n(265),a=n.n(o);function s(e){var t=e.imageUrl;return i.a.createElement("span",{className:a.a.avatar,style:{backgroundImage:"url('".concat(t,"')")}}," ")}},function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var r=n(0),i=n.n(r),o=n(5),a=n(15),s=n(2),c=n(7),l=n(67),u=n(14),p=n(25),d=n(137);function h(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)||m(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){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,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||m(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 m(e,t){if(e){if("string"==typeof e)return g(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)?g(e,t):void 0}}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}var v=c.a.encloseNamespace("shared.hooks"),y=function(){var e=f(i.a.useState([]),2),t=e[0],n=e[1],r=o.Radio.channel(a.a.SHELL);function c(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};t.find((function(t){return t.id===e.id}))||(e.allowAppLinks||r.trigger(s.a.EventNames.LOCK_NAV),n([].concat(h(t),[e])))}function m(e){var i=t.filter((function(t){return t.id!==e}));0!==i.length&&i.find((function(e){return!e.allowAppLinks}))||r.trigger(s.a.EventNames.UNLOCK_NAV),n(i)}function g(e){if(t.length){var n=t.find((function(e){return!e.allowAppLinks})),o=[{buttonText:v("cancel"),className:"btn btn-secondary"},{buttonText:v("discard"),className:"btn btn-danger",onClick:n.onConfirmUnlock?n.onConfirmUnlock:function(){},success:!0}];d.a.render(i.a.createElement("p",null,n.text),{title:n.title,buttons:o,success:function(){return function(e){r.trigger(s.a.EventNames.NAV_UNLOCKED_BY_USER),t.forEach((function(e){e.allowAppLinks||m(e.id)})),s.a.AppLinkHelper.trigger(e)}(e)}})}}function y(e){var n=t.find((function(e){return e.allowAppLinks}));return n||(n=l.a.first(t)),e.returnValue=n.text,n.text}return i.a.useEffect((function(){return t.find((function(e){return!e.allowAppLinks}))&&r.on(s.a.EventNames.NAV_IS_LOCKED,g),t.length&&window.addEventListener("beforeunload",y),function(){r.off(s.a.EventNames.NAV_IS_LOCKED,g),window.removeEventListener("beforeunload",y)}}),[t]),i.a.useEffect((function(){function e(){c({id:"upload",title:v("uploadLockTitle"),text:v("uploadLockBody"),allowAppLinks:!0})}var t=o.Radio.channel(u.c.VIDEO_UPLOAD);return t.on(p.a.FILES_ADDED,e),t.on(p.a.UNLOCK_NAV,m),function(){t.off(p.a.FILES_ADDED,e),t.off(p.a.UNLOCK_NAV,m)}}),[]),{lock:c,unlock:m}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(0),i=n.n(r),o=n(57),a=n(26),s=n(7),c=n(125),l=n(118);var u={render:function(e,t){var n=document.getElementById("dialog-region");function r(){a.a.isFunction(t.cancel)&&t.cancel(),Object(o.unmountComponentAtNode)(n)}var s=(t.buttons||[u.getConfirmDefault(),u.getCancelDefault()]).map((function(e){var i=e.success;return delete e.success,Object.assign(Object.assign({},e),{onClick:function(){i&&(a.a.isFunction(t.success)&&t.success(),Object(o.unmountComponentAtNode)(n)),r(),a.a.isFunction(e.onClick)&&e.onClick()}})}));Object(o.render)(i.a.createElement(l.a,{title:t.title,closePopup:r},e,i.a.createElement(c.a,{buttons:s})),n)},getCancelDefault:function(){return{variant:"light",buttonText:s.a.getPhrase("shared.utils","cancel")}},getConfirmDefault:function(){return{variant:"dark",success:!0,buttonText:s.a.getPhrase("shared.utils","confirm")}}}},function(e,t){e.exports={prefix:"cv",iconName:"add-to-playlist",icon:["24","24",[],"","M20.1 16.4h1.8a.6.6 0 1 1 0 1.2h-1.8v1.8a.6.6 0 1 1-1.2 0v-1.8h-1.8a.6.6 0 1 1 0-1.2h1.8v-1.8a.6.6 0 0 1 1.2 0v1.8zM10.5 9a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h6a.5.5 0 1 1 0 1h-6zm0 3.5a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm5.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V12a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16zm-8-2.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm0-7a1 1 0 1 1 0-2 1 1 0 0 1 0 2zM8 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close",icon:["24","24",[],"","M11.959 10.641l4.402-4.296a.964.964 0 0 1 1.358 0 .951.951 0 0 1 0 1.35l-4.403 4.297 4.403 4.378a.951.951 0 0 1 0 1.35.964.964 0 0 1-1.358 0l-4.402-4.378-4.32 4.378a.964.964 0 0 1-1.358 0 .951.951 0 0 1 0-1.35l4.32-4.378-4.32-4.362a.951.951 0 0 1 0-1.35.964.964 0 0 1 1.358 0l4.32 4.361z"]}},function(e,t){e.exports={prefix:"cv",iconName:"delete",icon:["24","24",[],"","M14.5 7h4a.5.5 0 1 1 0 1h-1.14a1 1 0 0 1-.005.09l-.909 10a1 1 0 0 1-.996.91h-6.9a1 1 0 0 1-.996-.91l-.91-10A1.013 1.013 0 0 1 6.64 8H5.5a.5.5 0 0 1 0-1h4A1.5 1.5 0 0 1 11 5.5h2A1.5 1.5 0 0 1 14.5 7zm-1 0a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5h3zm-4 3a.463.463 0 0 0-.462.499L9.462 16a.54.54 0 0 0 .574.498.463.463 0 0 0 .426-.498l-.424-5.502A.54.54 0 0 0 9.5 10zm2.5 0a.5.5 0 0 0-.5.5V16a.5.5 0 1 0 1 0v-5.5a.5.5 0 0 0-.5-.5zm2.5 0a.54.54 0 0 0-.538.499L13.538 16a.463.463 0 0 0 .462.5.54.54 0 0 0 .538-.499l.424-5.502A.463.463 0 0 0 14.5 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit",icon:["24","24",[],"","M7.636 17.834l8.746-8.745-1.414-1.414-8.8 8.8 1.468 1.36zm-2.42.973c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zm2.614-1.906l.707.707a1.5 1.5 0 0 1 0 2.121L7.45 19.435c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L16.167 5.06a1.5 1.5 0 0 1 2.122 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"expand",icon:["24","24",[],"","M14.06 21.28l-.353.354-.707-.707.354-.354 7.22-7.22.353-.353.707.707-.354.354-7.22 7.22zm4 .465l-.353.353-.707-.707.354-.353 3.684-3.684.353-.354.707.707-.353.354-3.684 3.684z"]}},function(e,t){e.exports={prefix:"cv",iconName:"minus",icon:["24","24",[],"",""]}},function(e,t){e.exports={prefix:"cv",iconName:"more",icon:["24","24",[],"","M12 13.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0 5.5a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-11a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"new-window",icon:["24","24",[],"","M17.395 5.526h-3.244a.763.763 0 0 1 0-1.526h5.086a.76.76 0 0 1 .763.763v5.086a.763.763 0 0 1-1.526 0V6.605l-5.172 5.172a.763.763 0 1 1-1.079-1.08l5.172-5.171zM8.5 5.5a.75.75 0 0 1 0 1.5H6.75a.25.25 0 0 0-.25.25v10c0 .138.112.25.25.25h10a.25.25 0 0 0 .25-.25V15.5a.75.75 0 1 1 1.5 0v1.75A1.75 1.75 0 0 1 16.75 19h-10A1.75 1.75 0 0 1 5 17.25v-10c0-.966.784-1.75 1.75-1.75H8.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"plus",icon:["24","24",[],"","M11 11V7.002a.999.999 0 1 1 2 0V11h3.998a.999.999 0 1 1 0 2H13v3.998a.999.999 0 1 1-2 0V13H7.002a.999.999 0 1 1 0-2H11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"preview",icon:["24","24",[],"","M17.278 17.333a3.056 3.056 0 1 0 0-6.11 3.056 3.056 0 0 0 0 6.11zm3.53-.637c.03.022.06.048.087.076l1.729 1.728a.794.794 0 1 1-1.124 1.124l-1.728-1.729a.801.801 0 0 1-.076-.088 4.278 4.278 0 1 1 1.112-1.112zM7.713 9C7.32 9 7 8.776 7 8.5s.32-.5.714-.5h8.572c.394 0 .714.224.714.5s-.32.5-.714.5H7.714zm-.357 3.5C7.16 12.5 7 12.276 7 12s.16-.5.357-.5h4.286c.197 0 .357.224.357.5s-.16.5-.357.5H7.357zM7.5 16a.5.5 0 1 1 0-1h4a.5.5 0 1 1 0 1h-4zm8.5 3a.5.5 0 1 1 0 1H6.5A2.5 2.5 0 0 1 4 17.5v-11A2.5 2.5 0 0 1 6.5 4h11A2.5 2.5 0 0 1 20 6.5V9a.5.5 0 1 1-1 0V6.5A1.5 1.5 0 0 0 17.5 5h-11A1.5 1.5 0 0 0 5 6.5v11A1.5 1.5 0 0 0 6.5 19H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"search",icon:["24","24",[],"","M15.803 14.306l3.917 3.954a1 1 0 0 1-.007 1.417l-.018.018-.018.018a.997.997 0 0 1-1.41 0l-3.918-3.953-.3.214c-1.14.713-2.323 1.07-3.549 1.07-1.796 0-3.328-.642-4.597-1.925C4.634 13.836 4 12.296 4 10.5c0-1.796.634-3.328 1.903-4.597C7.172 4.634 8.704 4 10.5 4c1.796 0 3.329.634 4.597 1.903 1.27 1.269 1.904 2.801 1.904 4.597a6.447 6.447 0 0 1-1.027 3.507l-.17.3zM10.5 5.368c-1.425 0-2.637.5-3.635 1.497-.998.998-1.497 2.21-1.497 3.635 0 1.426.5 2.637 1.497 3.635.998.998 2.21 1.497 3.635 1.497 1.426 0 2.637-.499 3.635-1.497 1.027-1.026 1.54-2.238 1.54-3.635 0-1.397-.513-2.608-1.54-3.635-.998-.998-2.21-1.497-3.635-1.497z"]}},function(e,t){e.exports={prefix:"cv",iconName:"share",icon:["24","24",[],"","M15.091 15.463a2.187 2.187 0 1 1-.392.782L8.91 13.35a2.187 2.187 0 1 1-.1-2.82l5.88-2.812a2.187 2.187 0 1 1 .378.79l-5.811 2.778a2.184 2.184 0 0 1 .045 1.281l5.79 2.896z"]}},function(e,t){e.exports={prefix:"cv",iconName:"upload",icon:["24","24",[],"","M5.5 18.5h13v-2.75a.75.75 0 1 1 1.5 0V19a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1v-3.25a.75.75 0 1 1 1.5 0v2.75zm7.249-11.796v8.57c0 .401-.35.726-.781.726-.432 0-.781-.325-.781-.725V6.704L7.89 9.658a.869.869 0 0 1-1.145 0 .692.692 0 0 1-.009-1.05l4.66-4.174a.869.869 0 0 1 1.144 0l4.66 4.174a.69.69 0 0 1 0 1.042.871.871 0 0 1-1.155.008L12.75 6.704z"]}},function(e,t){e.exports={prefix:"cv",iconName:"down",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"right",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"up-down",icon:["24","24",[],"","M8 14l8 .014L12 18l-4-4zm0-4l4-4 4 3.986L8 10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"no-edit",icon:["24","24",[],"","M11.321 14.15l.707.707-4.578 4.578c-2.276.4-3.426.589-3.45.565-.024-.024.183-1.155.621-3.393L9.2 12.028l.707.707-3.739 3.74 1.468 1.36 3.685-3.685zm2.828-2.829l2.233-2.232-1.414-1.414-2.233 2.232-.707-.707 4.14-4.14a1.5 1.5 0 0 1 2.12 0l.708.708a1.5 1.5 0 0 1 0 2.121l-4.14 4.14-.707-.708zm-8.933 7.486c.45-.076 1.012-.173 1.685-.29l-1.383-1.282a173.71 173.71 0 0 0-.302 1.572zm10.459-11.84l1.414 1.415 1.2-1.2a.5.5 0 0 0 0-.707l-.708-.707a.5.5 0 0 0-.707 0l-1.2 1.2zM4.646 5.355a.5.5 0 0 1 .708-.708L19.496 18.79a.5.5 0 1 1-.707.707L4.646 5.354z"]}},function(e,t){e.exports={prefix:"cv",iconName:"edit-clickview",icon:["20","20",[],"","M17.6404852,5.71727477 L18.2297408,6.30653042 C18.7178962,6.79468579 18.7178962,7.58614201 18.2297408,8.07429738 L8.60812289,17.6959153 C6.71135346,18.0295451 5.75309028,18.1864816 5.73333333,18.1667246 C5.71357639,18.1469677 5.88616537,17.2043571 6.25110029,15.3388927 L15.8727182,5.71727477 C16.3608736,5.22911941 17.1523298,5.22911941 17.6404852,5.71727477 Z M8.7636789,16.361848 L16.05144,9.07408693 L14.8729287,7.89557563 L7.54002172,15.2284826 L8.7636789,16.361848 Z M6.74626541,17.1725049 C7.12145752,17.1092038 7.58975231,17.0283895 8.15085565,16.9301078 L6.99799308,15.862313 C6.89682248,16.3819093 6.8128974,16.8187273 6.74626541,17.1725049 Z M15.4621843,7.30631998 L16.6406956,8.48483128 L17.6404852,7.48504173 C17.8032036,7.32232327 17.8032036,7.05850453 17.6404852,6.89578608 L17.0512295,6.30653042 C16.8885111,6.14381197 16.6246923,6.14381197 16.4619739,6.30653042 L15.4621843,7.30631998 Z M6.33566019,14.9908489 C6.2812423,14.9851574 6.22594201,14.9756491 6.16991424,14.9622805 C5.78045547,14.8577915 5.5109401,14.5829916 5.41684139,14.197065 L5.16924027,13.2272939 L4.21481414,13.4992408 C3.82064978,13.614606 3.44283804,13.5120571 3.186267,13.236167 C2.88681965,12.9560388 2.78427075,12.578227 2.89864522,12.187493 L3.17158282,11.2296365 L2.20423564,10.9826478 C1.82188543,10.8870603 1.55144636,10.6218219 1.4331146,10.2152085 C1.34005988,9.82437875 1.44481708,9.45772856 1.72601896,9.19546209 L2.43808286,8.49887783 L1.73450689,7.81040417 C1.44481706,7.54002697 1.34005989,7.17337687 1.439649,6.75790801 C1.55144635,6.37593371 1.82188539,6.11069542 2.20181175,6.01572028 L3.17158282,5.76811916 L2.89963593,4.81369299 C2.78427075,4.41952863 2.88681965,4.04171689 3.16270985,3.78514587 C3.442838,3.48569854 3.82064974,3.38314964 4.2113838,3.49752411 L5.16924027,3.77046171 L5.41554008,2.80590417 C5.51183431,2.41109782 5.78619407,2.13673807 6.15902913,2.0463353 C6.55319349,1.93097012 6.93100525,2.03351902 7.20467421,2.32619001 L7.89999894,3.04211696 L8.594506,2.32703389 C8.87243071,2.03952554 9.24209506,1.93918808 9.61899753,2.04044384 C10.0138038,2.13673809 10.2881636,2.41109789 10.3831565,2.80069064 L10.6307576,3.77046171 L11.5851838,3.49851482 C11.9793481,3.38314964 12.3571599,3.48569854 12.6137309,3.76158875 C12.9131782,4.04171689 13.0157271,4.41952857 12.9013527,4.8102627 L12.6284151,5.76811916 L13.5957624,6.01510789 C13.9781125,6.11069542 14.2485515,6.37593369 14.3668833,6.78254721 C14.3761095,6.82129727 14.3833912,6.85980963 14.3887491,6.89800613 L12.4311686,8.86525019 C12.2885501,8.50246788 12.3664513,8.07377489 12.6626209,7.7840438 L13.3831727,7.07934901 C13.4057811,7.05824779 13.4051218,7.06055538 13.4006115,7.03880681 C13.3874896,6.9939735 13.3872742,6.99376225 13.3508029,6.98463799 L12.3810318,6.73703687 L12.3543769,6.72983797 C11.8232342,6.57849086 11.5153491,6.0252236 11.6666962,5.49408097 L11.9406245,4.53279433 C11.9501787,4.50015106 11.9538346,4.51362027 11.9070166,4.46830299 C11.8852565,4.44504217 11.8987257,4.44869811 11.8626522,4.45924293 L10.9047957,4.73218053 L10.8781408,4.73937942 C10.3430223,4.87600541 9.79846586,4.55296343 9.66183987,4.01784495 L9.41293742,3.04286026 C9.40513226,3.0108591 9.4140425,3.01976934 9.37095513,3.00912543 C9.33213613,2.99871057 9.33745796,2.99726608 9.31267674,3.02289983 L8.61735201,3.73882678 L8.59670876,3.75947002 C8.2005256,4.14425223 7.56742808,4.13500994 7.18264587,3.73882678 L6.48086195,3.01612347 C6.45910183,2.99286265 6.4725711,2.9965186 6.4179566,3.01196417 C6.38595535,3.01976935 6.39486559,3.01085911 6.3857591,3.04807388 L6.13815798,4.01784495 L6.13095909,4.04449986 C5.97961199,4.5756425 5.42634475,4.88352762 4.89520211,4.73218053 L3.93391535,4.45825223 C3.90127212,4.44869811 3.91474139,4.44504217 3.86942412,4.49186014 C3.84616328,4.51362028 3.84981922,4.50015102 3.86036404,4.53622453 L4.13330164,5.494081 L4.14050053,5.52073591 C4.27712653,6.05585439 3.95408454,6.60041087 3.41896607,6.73703687 L2.44677117,6.98525039 C2.41272371,6.99376225 2.41250834,6.99397349 2.40592081,7.01416766 C2.3948761,7.06055542 2.39421677,7.05824776 2.42531312,7.08745955 L3.13737702,7.78404381 L3.15291688,7.79958367 C3.53912638,8.1943756 3.53216895,8.82750235 3.13737702,9.21371185 L2.41682511,9.91840678 C2.39421677,9.93950789 2.3948761,9.93720022 2.3993864,9.95894886 C2.41250834,10.0037822 2.41272371,10.0039934 2.44919499,10.0131176 L3.41896606,10.2607188 L3.44562098,10.2679177 C3.97676362,10.4192648 4.28464874,10.972532 4.13330164,11.5036746 L3.85937334,12.4649614 C3.84981922,12.4976046 3.84616328,12.4841354 3.89298124,12.5294526 C3.91474137,12.5527135 3.90127209,12.5490575 3.93734565,12.5385127 L4.89520212,12.2655751 L4.92185702,12.2583762 C5.4569755,12.1217502 6.00153199,12.4447922 6.13815798,12.9799107 L6.38706042,13.9548953 C6.3957598,13.9905628 6.39169395,13.9864172 6.41528883,13.9929559 C6.46167656,14.0040006 6.45936885,14.00466 6.48858067,13.9735636 L7.18516493,13.2614997 L7.20070477,13.2459599 C7.4952939,12.9577749 7.92258715,12.888504 8.28097421,13.0359319 L6.33566019,14.9908489 Z M6.70489207,8.77616163 L9.31429327,6.16676041 C9.44212761,6.03892605 9.65593967,6.03389908 9.78471434,6.16267377 L10.2815938,6.65955323 C10.4116803,6.78963968 10.4085388,6.9989426 10.2775071,7.12997428 L6.95925927,10.4482222 C6.89767261,10.5098088 6.81613041,10.5428917 6.73375541,10.5462414 C6.63512454,10.5601257 6.53103126,10.5287286 6.45266973,10.450367 L4.80169873,8.79939603 C4.67185163,8.66954896 4.66967053,8.4612063 4.79975698,8.33111983 L5.29663643,7.83424043 C5.42541113,7.7054657 5.63211299,7.70338256 5.76491261,7.83618216 L6.70489207,8.77616163 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"caret",icon:["24","24",[],"","M8 10 16 10.0136253 12 14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-up",icon:["24","24",[],"","M12.733 8.305l5.963 5.906a1.046 1.046 0 0 1 0 1.473l-.01.011a1.034 1.034 0 0 1-1.467 0L12 10.526l-5.22 5.17a1.034 1.034 0 0 1-1.465 0l-.011-.012a1.046 1.046 0 0 1 0-1.473l5.963-5.906a1.034 1.034 0 0 1 1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-down",icon:["24","24",[],"","M11.267 15.695L5.304 9.79a1.046 1.046 0 0 1 0-1.473l.01-.011a1.034 1.034 0 0 1 1.467 0L12 13.474l5.22-5.17a1.034 1.034 0 0 1 1.465 0l.011.012a1.046 1.046 0 0 1 0 1.473l-5.963 5.906a1.034 1.034 0 0 1-1.466 0z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-left",icon:["24","24",[],"","M8.305 11.267l5.906-5.963a1.046 1.046 0 0 1 1.473 0l.011.01a1.034 1.034 0 0 1 0 1.467L10.526 12l5.17 5.22c.406.41.406 1.055 0 1.465l-.012.011a1.046 1.046 0 0 1-1.473 0l-5.906-5.963a1.034 1.034 0 0 1 0-1.466z"]}},function(e,t){e.exports={prefix:"cv",iconName:"chevron-right",icon:["24","24",[],"","M15.695 11.267c.407.41.407 1.056 0 1.466L9.79 18.696a1.046 1.046 0 0 1-1.474 0l-.01-.01a1.034 1.034 0 0 1 0-1.467L13.474 12l-5.17-5.22a1.034 1.034 0 0 1 0-1.465l.012-.011a1.046 1.046 0 0 1 1.474 0l5.905 5.963z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-left",icon:["24","24",[],"","M7.182 11h11.89c.512 0 .928.448.928 1s-.416 1-.929 1H7.181l3.781 4.22a1.11 1.11 0 0 1 0 1.465c-.36.403-.943.418-1.311.045a.952.952 0 0 1-.032-.034l-5.343-5.963a1.112 1.112 0 0 1 0-1.466l5.343-5.963a.883.883 0 0 1 1.333 0c.378.421.378 1.066.01 1.477L7.182 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"arrow-right",icon:["24","24",[],"","M16.818 11H4.928C4.417 11 4 11.448 4 12s.416 1 .929 1h11.89l-3.781 4.22a1.112 1.112 0 0 0 0 1.465c.36.403.943.418 1.311.045a.952.952 0 0 0 .032-.034l5.343-5.963a1.112 1.112 0 0 0 0-1.466l-5.343-5.963a.883.883 0 0 0-1.333 0 1.115 1.115 0 0 0-.01 1.477L16.818 11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"enter",icon:["24","24",[],"","M5.613 13.959a.599.599 0 0 1-.213-.46c0-.155.058-.309.176-.426l3.75-3.75a.6.6 0 0 1 .848.848L7.446 12.9H13.5A3.9 3.9 0 0 0 17.4 9V6.747a.6.6 0 0 1 1.2 0V9a5.1 5.1 0 0 1-5.1 5.1H7.452l2.722 2.723a.6.6 0 0 1-.848.848L5.613 13.96z"]}},function(e,t){e.exports={prefix:"cv",iconName:"archive",icon:["24","24",[],"","M19.64 10.28a.55.55 0 1 1 1.1 0v6.878c0 1.582-1.386 2.842-3.07 2.842H6.33c-1.684 0-3.07-1.26-3.07-2.842V10.28a.55.55 0 1 1 1.1 0v6.877c0 .95.87 1.742 1.97 1.742h11.34c1.1 0 1.97-.793 1.97-1.742V10.28zM20.19 4c.99 0 1.81.747 1.81 1.696V7.99a.55.55 0 0 1-.55.55H2.55A.55.55 0 0 1 2 7.99V5.696C2 4.747 2.821 4 3.81 4h16.38zm.71 1.696c0-.317-.307-.596-.71-.596H3.81c-.403 0-.71.28-.71.596v1.742h17.8V5.696zm-5.83 5.73c0 .95-.821 1.697-1.81 1.697h-2.52c-.989 0-1.81-.747-1.81-1.696 0-.95.821-1.696 1.81-1.696h2.52c.989 0 1.81.747 1.81 1.696zm-1.1 0c0-.316-.307-.595-.71-.595h-2.52c-.403 0-.71.28-.71.596 0 .317.307.596.71.596h2.52c.403 0 .71-.28.71-.596z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bell",icon:["24","24",[],"","M9.588 17.995H6.152c-.636 0-1.152-.53-1.152-1.182 0-.221.06-.438.175-.626l2.128-2.92V9.722c0-2.187 1.447-4.027 3.411-4.567v-.012A1.143 1.143 0 0 1 13 5.128c2.017.502 3.515 2.369 3.515 4.594v3.545l2.303 2.92a1.2 1.2 0 0 1-.366 1.628 1.13 1.13 0 0 1-.61.18h-3.716a2.286 2.286 0 0 1-4.538 0zm1.161 0a1.143 1.143 0 0 0 2.216 0H10.75zm4.615-4.31V9.723c0-1.958-1.547-3.546-3.455-3.546-1.908 0-3.454 1.588-3.454 3.546v3.939l-.23.314-2.073 2.838H17.83l-2.467-3.127z"]}},function(e,t){e.exports={prefix:"cv",iconName:"bookmark",icon:["24","24",[],"","M8.5 5h7A1.5 1.5 0 0 1 17 6.5v12.131a.2.2 0 0 1-.309.168L12 15.75 7.309 18.8A.2.2 0 0 1 7 18.63V6.5A1.5 1.5 0 0 1 8.5 5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"broadcast",icon:["24","24",[],"","M4.571 19C4.256 19 4 18.776 4 18.5s.256-.5.571-.5H19.43c.315 0 .571.224.571.5s-.256.5-.571.5H4.57zM4.125 5h15.75C20.496 5 21 5.537 21 6.2v9.6c0 .663-.504 1.2-1.125 1.2H4.125C3.504 17 3 16.463 3 15.8V6.2C3 5.537 3.504 5 4.125 5zM4 6v10h16V6H4zm6 2.35a.192.192 0 0 1 .295-.162l4.164 2.65a.192.192 0 0 1 0 .324l-4.164 2.65A.192.192 0 0 1 10 13.65v-5.3z"]}},function(e,t){e.exports={prefix:"cv",iconName:"calendar",icon:["24","24",[],"","M6.2 10.2V17a.8.8 0 0 0 .8.8h10a.8.8 0 0 0 .8-.8v-6.8H6.2zM16 5.5h2a1 1 0 0 1 1 1V17a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6.5a1 1 0 0 1 1-1h2v-.875a.625.625 0 1 1 1.25 0V5.5h5.5v-.875a.625.625 0 1 1 1.25 0V5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"cog",icon:["24","24",[],"","M18.458 12c0 .944.514 1.722 1.542 2.333a10.98 10.98 0 0 1-.667 1.584c-.944-.223-1.805.055-2.583.833-.694.694-.917 1.556-.667 2.583A10.98 10.98 0 0 1 14.5 20c-.611-1.028-1.444-1.542-2.5-1.542s-1.889.514-2.5 1.542c-.5-.167-1.042-.389-1.625-.667.25-1.055.042-1.916-.625-2.583-.667-.667-1.528-.875-2.583-.625C4.389 15.542 4.167 15 4 14.5c1.028-.611 1.542-1.444 1.542-2.5 0-.944-.514-1.722-1.542-2.333a8.484 8.484 0 0 1 .667-1.584c.944.223 1.805-.055 2.583-.833.667-.667.875-1.528.625-2.583C8.458 4.389 9 4.167 9.5 4c.611 1.028 1.444 1.542 2.5 1.542S13.889 5.028 14.5 4c.5.167 1.042.389 1.625.667-.25 1.055-.042 1.916.625 2.583.778.778 1.639 1.056 2.583.833.306.611.528 1.14.667 1.584-1.028.61-1.542 1.389-1.542 2.333zM12 16.083c1.111 0 2.07-.402 2.875-1.208.806-.806 1.208-1.764 1.208-2.875s-.402-2.07-1.208-2.875c-.806-.806-1.764-1.208-2.875-1.208s-2.07.402-2.875 1.208c-.806.806-1.208 1.764-1.208 2.875s.402 2.07 1.208 2.875c.806.806 1.764 1.208 2.875 1.208z"]}},function(e,t){e.exports={prefix:"cv",iconName:"folder",icon:["24","24",[],"","M12.685 6H18.5A1.5 1.5 0 0 1 20 7.5v11a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18.5v-13A1.5 1.5 0 0 1 5.5 4h4.66a1.5 1.5 0 0 1 1.095.474L12.685 6zM5.5 5a.5.5 0 0 0-.5.5v13a.5.5 0 0 0 .5.5h13a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-6.248l-1.727-1.842A.5.5 0 0 0 10.161 5H5.5zM5 10V9h14v1H5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"handle",icon:["16","16",[],"","M1 0h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1v1.2a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7.4a1 1 0 0 1 1-1zm0 6.4h14a1 1 0 0 1 1 1V15a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1v-1.2a1 1 0 0 1 1-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c4.001-4.053 1.158-11.055-4.532-11.055-3.417 0-4.985 2.511-5.596 2.98-.614-.471-2.172-2.98-5.596-2.98-5.672 0-8.55 6.984-4.531 11.055z"]}},function(e,t){e.exports={prefix:"cv",iconName:"heart-outline",icon:["24","24",[],"","m11.466 22.776c.141.144.333.224.534.224s.393-.08.534-.224l9.594-9.721c2.491-2.523 2.491-6.63 0-9.154-1.21-1.226-2.819-1.901-4.532-1.901s-3.321.675-4.531 1.9l-1.065 1.08-1.065-1.079c-1.21-1.226-2.819-1.901-4.531-1.901-1.713 0-3.322.675-4.532 1.901-2.491 2.524-2.491 6.631 0 9.153zm-8.527-17.822c.926-.937 2.157-1.454 3.464-1.454 1.308 0 2.538.517 3.463 1.455l1.599 1.62c.281.285.786.285 1.067 0l1.599-1.621c.928-.937 2.158-1.454 3.465-1.454 1.308 0 2.538.517 3.464 1.454 1.917 1.943 1.917 5.104 0 7.048l-9.06 9.181-9.061-9.182c-1.917-1.942-1.917-5.104 0-7.047z"]}},function(e,t){e.exports={prefix:"cv",iconName:"interactive",icon:["24","24",[],"","M5.978 13.65l7.525-9.99a.2.2 0 0 1 .357.154l-1.289 7.5 5.194-1.04a.2.2 0 0 1 .198.318l-7.447 9.733a.2.2 0 0 1-.355-.16l1.268-6.566-5.277.37a.2.2 0 0 1-.174-.32z"]}},function(e,t){e.exports={prefix:"cv",iconName:"link",icon:["24","24",[],"","M17 10c2.2 0 4 1.8 4 4s-1.8 4-4 4h-5a3.99 3.99 0 0 1-3-1.367v-.028a4.447 4.447 0 0 1-.889-2.679c0-.698.162-1.356.443-1.94A4 4 0 0 1 12 10h1.872v.098c0 .573-.322 1.081-.818 1.402H12c-.722 0-1.368.316-1.824.811-.453.418-.732.976-.732 1.591v.196c0 .575.244 1.1.645 1.508.46.545 1.146.894 1.911.894h5c1.375 0 2.5-1.125 2.5-2.5s-1.125-2.5-2.5-2.5h-.686a5.22 5.22 0 0 0 .24-1.5H17zm-9.556 3.926l.002.074H7c-2.2 0-4-1.8-4-4s1.8-4 4-4h5c1.462 0 2.743.797 3.441 1.975a4.48 4.48 0 0 1-.44 4.63v.024a3.982 3.982 0 0 1-3 1.37h-1.873v-.096c0-.574.322-1.082.817-1.403H12c.722 0 1.368-.316 1.824-.811.452-.418.731-.976.731-1.591v-.195c0-.576-.244-1.101-.645-1.51A2.496 2.496 0 0 0 12 7.5H7A2.507 2.507 0 0 0 4.5 10c0 1.375 1.125 2.5 2.5 2.5h.642c-.128.452-.198.93-.198 1.426z"]}},function(e,t){e.exports={prefix:"cv",iconName:"playlist",icon:["24","24",[],"","M4,19.0049107 C4,19.5548349 4.44525903,20 4.99508929,20 L19.0049107,20 C19.5548349,20 20,19.554741 20,19.0049107 L20,4.99508929 C20,4.44516513 19.554741,4 19.0049107,4 L4.99508929,4 C4.44516513,4 4,4.44525903 4,4.99508929 L4,19.0049107 Z M4.99508929,3 L19.0049107,3 C20.1067681,3 21,3.8926228 21,4.99508929 L21,19.0049107 C21,20.1067681 20.1073772,21 19.0049107,21 L4.99508929,21 C3.8932319,21 3,20.1073772 3,19.0049107 L3,4.99508929 C3,3.8932319 3.8926228,3 4.99508929,3 Z M17.5,17.3 C17.7761424,17.3 18,17.0761424 18,16.8 C18,16.5238576 17.7761424,16.3 17.5,16.3 L9.5,16.3 C9.22385763,16.3 9,16.5238576 9,16.8 C9,17.0761424 9.22385763,17.3 9.5,17.3 L17.5,17.3 Z M17.5,12.7 C17.7761424,12.7 18,12.4761424 18,12.2 C18,11.9238576 17.7761424,11.7 17.5,11.7 L9.5,11.7 C9.22385763,11.7 9,11.9238576 9,12.2 C9,12.4761424 9.22385763,12.7 9.5,12.7 L17.5,12.7 Z M8.07195299,7.22930174 L6.86542219,6.50538326 C6.38401051,6.21653625 6,6.43413716 6,6.98678206 L6,8.51032805 C6,9.06455544 6.38746271,9.27850253 6.86542219,8.99172685 L8.07195299,8.26780837 C8.55336467,7.97896136 8.54991246,7.51607743 8.07195299,7.22930174 Z M8.07195299,11.7293017 L6.86542219,11.0053833 C6.38401051,10.7165363 6,10.9341372 6,11.4867821 L6,13.010328 C6,13.5645554 6.38746271,13.7785025 6.86542219,13.4917268 L8.07195299,12.7678084 C8.55336467,12.4789614 8.54991246,12.0160774 8.07195299,11.7293017 Z M8.07195299,16.2293017 L6.86542219,15.5053833 C6.38401051,15.2165363 6,15.4341372 6,15.9867821 L6,17.510328 C6,18.0645554 6.38746271,18.2785025 6.86542219,17.9917268 L8.07195299,17.2678084 C8.55336467,16.9789614 8.54991246,16.5160774 8.07195299,16.2293017 Z M17.5,8.3 C17.7761424,8.3 18,8.07614237 18,7.8 C18,7.52385763 17.7761424,7.3 17.5,7.3 L9.5,7.3 C9.22385763,7.3 9,7.52385763 9,7.8 C9,8.07614237 9.22385763,8.3 9.5,8.3 L17.5,8.3 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"publisher-archive",icon:["24","24",[],"","M19.6403207,10.2808023 C19.6403207,9.97696656 19.8864872,9.73065903 20.1901489,9.73065903 C20.4938106,9.73065903 20.7399771,9.97696656 20.7399771,10.2808023 L20.7399771,17.1575931 C20.7399771,18.7397289 19.3544729,20 17.6701031,20 L6.32989691,20 C4.64552709,20 3.26002291,18.7397289 3.26002291,17.1575931 L3.26002291,10.2808023 C3.26002291,9.97696656 3.50618937,9.73065903 3.80985109,9.73065903 C4.11351281,9.73065903 4.35967927,9.97696656 4.35967927,10.2808023 L4.35967927,17.1575931 C4.35967927,18.1074218 5.23070097,18.8997135 6.32989691,18.8997135 L17.6701031,18.8997135 C18.769299,18.8997135 19.6403207,18.1074218 19.6403207,17.1575931 L19.6403207,10.2808023 Z M20.1901489,4 C21.1786273,4 22,4.74713037 22,5.69627507 L22,7.98853868 C22,8.29237442 21.7538335,8.53868195 21.4501718,8.53868195 L2.54982818,8.53868195 C2.24616646,8.53868195 2,8.29237442 2,7.98853868 L2,5.69627507 C2,4.74713037 2.82137271,4 3.80985109,4 L20.1901489,4 Z M20.9003436,5.69627507 C20.9003436,5.37943754 20.5934534,5.10028653 20.1901489,5.10028653 L3.80985109,5.10028653 C3.40654659,5.10028653 3.09965636,5.37943754 3.09965636,5.69627507 L3.09965636,7.43839542 L20.9003436,7.43839542 L20.9003436,5.69627507 Z M15.069874,11.4269341 C15.069874,12.3760788 14.2485013,13.1232092 13.2600229,13.1232092 L10.7399771,13.1232092 C9.75149871,13.1232092 8.930126,12.3760788 8.930126,11.4269341 C8.930126,10.4777894 9.75149871,9.73065903 10.7399771,9.73065903 L13.2600229,9.73065903 C14.2485013,9.73065903 15.069874,10.4777894 15.069874,11.4269341 Z M13.9702176,11.4269341 C13.9702176,11.1100966 13.6633274,10.8309456 13.2600229,10.8309456 L10.7399771,10.8309456 C10.3366726,10.8309456 10.0297824,11.1100966 10.0297824,11.4269341 C10.0297824,11.7437716 10.3366726,12.0229226 10.7399771,12.0229226 L13.2600229,12.0229226 C13.6633274,12.0229226 13.9702176,11.7437716 13.9702176,11.4269341 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"resources",icon:["24","24",[],"","M4 6.83c0-.523.423-.948.948-.948H17.17c.524 0 .949.423.949.949v12.22a.947.947 0 0 1-.949.949H4.95a.947.947 0 0 1-.95-.948V6.83zm.941 12.222c0 .005 12.228.007 12.228.007.005 0 .007-12.228.007-12.228 0-.005-12.228-.007-12.228-.007-.005 0-.007 12.228-.007 12.228zm2.353-9.405a.47.47 0 1 1 0-.941h7.588a.47.47 0 1 1 0 .941H7.294zm0 2.824a.47.47 0 1 1 0-.942h7.588a.47.47 0 1 1 0 .942H7.294zm0 2.823a.47.47 0 1 1 0-.941h2.88a.47.47 0 1 1 0 .941h-2.88zM6.353 4.941a.47.47 0 1 1 0-.941h11.766C19.155 4 20 4.848 20 5.88v12.232a.47.47 0 1 1-.941 0V5.88a.945.945 0 0 0-.94-.938H6.353z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star-o",icon:["24","24",[],"","M11.64 16.055a.768.768 0 0 1 .72 0l3.767 1.998-.806-4.602 3.357-3.249-4.626-.654L12 5.35 9.948 9.548l-4.626.654 3.357 3.25-.807 4.601 3.768-1.998zm-3.75 3.148a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"star",icon:["24","24",[],"","M7.89 19.203a.768.768 0 0 1-1.116-.811l.804-4.583-3.344-3.235a.768.768 0 0 1 .426-1.312l4.607-.652 2.043-4.18a.768.768 0 0 1 1.38 0l2.043 4.18 4.607.652a.768.768 0 0 1 .426 1.312l-3.344 3.235.804 4.583a.768.768 0 0 1-1.116.81L12 17.023l-4.11 2.18z"]}},function(e,t){e.exports={prefix:"cv",iconName:"tag",icon:["24","24",[],"","M9.85651379,4 C10.5597673,4 11.2342681,4.27911643 11.7318501,4.77635695 L11.7318501,4.77635695 L19.5192508,12.5634018 C20.1602555,13.2045708 20.1602555,14.2439177 19.5192159,14.8851217 L19.5192159,14.8851217 L14.8855145,19.5192848 C14.2443321,20.1602442 13.2049876,20.1602442 12.5637184,19.519198 L12.5637184,19.519198 L4.7762613,11.7314233 C4.27913559,11.2340016 4,10.5595161 4,9.85635067 L4,9.85635067 L4,5.64191268 C4,4.7351029 4.73513649,4 5.64195885,4 L5.64195885,4 L9.85651379,4 Z M9.85658948,5.26315824 L5.64195885,5.26315824 C5.4327466,5.26315824 5.26315823,5.43273884 5.26315823,5.64191268 L5.26315823,5.64191268 L5.26315823,9.85642637 C5.26315823,10.2247328 5.40935021,10.5779817 5.66959105,10.8383776 L5.66959105,10.8383776 L13.4568376,18.6259418 C13.6047616,18.7738142 13.8445582,18.7738142 13.9923822,18.6260417 L13.9923822,18.6260417 L18.6259486,13.9920135 C18.7738119,13.8441123 18.7738119,13.6043763 18.6260161,13.4565426 L18.6260161,13.4565426 L10.8388259,5.6697082 C10.5782887,5.40934993 10.2250082,5.26315824 9.85658948,5.26315824 L9.85658948,5.26315824 Z M7.78947471,6.10526373 C8.71963876,6.10526373 9.4736857,6.85931068 9.4736857,7.78947472 C9.4736857,8.71963876 8.71963876,9.4736857 7.78947471,9.4736857 C6.85931067,9.4736857 6.10526373,8.71963876 6.10526373,7.78947472 C6.10526373,6.85931068 6.85931067,6.10526373 7.78947471,6.10526373 Z M7.78947471,7.36842197 C7.5569337,7.36842197 7.36842197,7.55693371 7.36842197,7.78947472 C7.36842197,8.02201573 7.5569337,8.21052747 7.78947471,8.21052747 C8.02201572,8.21052747 8.21052746,8.02201573 8.21052746,7.78947472 C8.21052746,7.55693371 8.02201572,7.36842197 7.78947471,7.36842197 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"time",icon:["24","24",[],"","M12 4c4.42 0 8 3.58 8 8s-3.58 8-8 8-8-3.58-8-8 3.58-8 8-8zm0 1.077a6.88 6.88 0 0 0-4.896 2.027A6.877 6.877 0 0 0 5.077 12c0 1.85.72 3.588 2.027 4.896A6.877 6.877 0 0 0 12 18.923a6.88 6.88 0 0 0 4.896-2.027A6.877 6.877 0 0 0 18.923 12a6.88 6.88 0 0 0-2.027-4.896A6.877 6.877 0 0 0 12 5.077zm2.524 9.599a.6.6 0 0 1-.848.848l-2.5-2.5A.6.6 0 0 1 11 12.6V8.624a.6.6 0 0 1 1.2 0v3.727l2.324 2.325z"]}},function(e,t){e.exports={prefix:"cv",iconName:"video",icon:["24","24",[],"","M4.5 6a.5.5 0 0 0-.5.5v11a.5.5 0 0 0 .5.5h15a.5.5 0 0 0 .5-.5v-11a.5.5 0 0 0-.5-.5h-15zm0-1h15A1.5 1.5 0 0 1 21 6.5v11a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 3 17.5v-11A1.5 1.5 0 0 1 4.5 5zM10 9.26v5.48a.256.256 0 0 0 .39.218l4.482-2.74a.256.256 0 0 0 0-.436l-4.483-2.74a.256.256 0 0 0-.389.219z"]}},function(e,t){e.exports={prefix:"cv",iconName:"subject",icon:["24","24",[],"","M19.15,21.08H5.1c-1.09,0-1.98-0.89-1.98-1.98V5.06c0-1.09,0.89-1.98,1.98-1.98h14.04c1.09,0,1.98,0.89,1.98,1.98V19.1 C21.12,20.19,20.24,21.08,19.15,21.08z M20.12,19.16V5c0-0.51-0.41-0.92-0.92-0.92H7.04C6.54,4.08,6.12,4.49,6.12,5v14.16 c0,0.51,0.41,0.92,0.92,0.92h12.16C19.71,20.08,20.12,19.67,20.12,19.16z M19.12,6.95V6.81c0-0.36-0.29-0.65-0.65-0.65H8.78 c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69C18.83,7.6,19.12,7.31,19.12,6.95z M19.12,9.95V9.81 c0-0.36-0.29-0.65-0.65-0.65H8.78c-0.36,0-0.65,0.29-0.65,0.65v0.13c0,0.36,0.29,0.65,0.65,0.65h9.69 C18.83,10.6,19.12,10.31,19.12,9.95z"]}},function(e,t){e.exports={prefix:"cv",iconName:"series",icon:["24","24",[],"","M20.49,3.51c0.97,0,1.76,0.79,1.76,1.76v9.27c0,0.77-0.49,1.42-1.18,1.66l0.09-10.84c0-0.39-0.3-0.7-0.68-0.7l-14.27,0 C6.46,3.99,7.1,3.51,7.85,3.51H20.49z M18.38,5.56c0.97,0,1.76,0.79,1.76,1.75v9.27c0.01,0.77-0.49,1.42-1.17,1.66l0.09-10.86 c0-0.38-0.3-0.68-0.68-0.68l-14.28,0c0.25-0.67,0.89-1.14,1.64-1.14H18.38z M16.15,7.7c0.97,0,1.75,0.79,1.75,1.76v9.27 c0,0.97-0.79,1.75-1.75,1.75H3.5c-0.97,0-1.75-0.79-1.75-1.75V9.46c0-0.97,0.79-1.76,1.75-1.76H16.15z M16.14,8.85H3.51 c-0.38,0-0.68,0.3-0.68,0.68l0,0v9.13c0,0.38,0.3,0.68,0.68,0.68l0,0h12.62c0.38,0,0.68-0.3,0.68-0.68l0,0V9.53 C16.82,9.15,16.52,8.85,16.14,8.85L16.14,8.85z M8.46,12.41v3.37c0,0.18,0.21,0.28,0.35,0.18l2.31-1.69c0.12-0.09,0.12-0.27,0-0.35 L8.8,12.23C8.66,12.13,8.46,12.23,8.46,12.41"]}},function(e,t){e.exports={prefix:"cv",iconName:"white-wave",icon:["1200","244",[],"","M1104.19651,33.5198863 C1084.14716,45.4511816 1067.10689,82.9623447 1047.23647,124.40502 C1023.86518,173.149287 924.725009,160.996474 830.060105,199.668011 C735.395201,238.339548 706.121292,249.351671 618.615175,241.737466 C531.109058,234.12326 495.404437,207.34459 432.2827,199.668011 C370.933901,192.207048 283.214734,200.240922 234.995453,186.264588 C153.311618,162.588569 167.948341,80.4093241 122.421855,59.9864363 C102.62311,51.1048469 61.8158253,37.3273576 0,18.6539685 L0,0 L1200,0 C1161.79495,7.07406031 1129.86046,18.2473557 1104.19651,33.5198863 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"compass",icon:["24","24",[],"","M12,-1.71862524e-13 C13.3893905,-1.71862524e-13 14.5197317,1.12166968 14.5197317,2.50040137 C14.5197317,2.8215332 14.4594938,3.13263028 14.3442115,3.42156921 C16.2349366,3.84633285 17.9748233,4.78862459 19.3866372,6.17539419 L19.4316433,6.22680193 C21.3267651,8.11265804 22.5,10.713205 22.5,13.5805516 C22.5,19.3258216 17.7897333,24 12,24 L12,24 C6.21026669,24 1.5,19.3258216 1.5,13.5805516 L1.50006052,13.5243182 C1.50002021,13.5212739 1.5,13.5182249 1.5,13.5151711 L1.501,13.503 L1.50378159,13.2988768 C1.57785421,10.543134 2.73548466,8.05071265 4.56835673,6.22680193 L4.61336276,6.17539419 C6.02517671,4.78862459 7.76506343,3.84633285 9.65748913,3.42018903 C9.54056383,3.13263028 9.48031555,2.8215332 9.48031555,2.50040137 C9.48031555,1.12166968 10.6106095,-1.71862524e-13 12,-1.71862524e-13 Z M12,4.52624116 L11.6809164,4.53170146 C11.6454989,4.53291535 11.610132,4.53433052 11.5748169,4.53594584 L11.6816694,4.53162088 C11.5883913,4.53477816 11.4953516,4.53932139 11.4025747,4.54524062 L11.5748169,4.53594584 C11.4679256,4.54083509 11.3615084,4.54755809 11.2555967,4.55608379 L11.4025747,4.54524062 C11.3068176,4.55134999 11.2113405,4.55892518 11.1161702,4.56795525 L11.2555967,4.55608379 C11.095392,4.56897997 10.9363438,4.5860008 10.7785603,4.60703883 C10.7467123,4.6104578 10.7154515,4.61475211 10.6842289,4.61920452 L10.7785603,4.60703883 C10.6768565,4.62059949 10.5756781,4.63582921 10.4750543,4.65269924 L10.6842289,4.61920452 C10.600263,4.63117821 10.5165735,4.64429522 10.4331795,4.65854779 L10.4750543,4.65269924 C9.11485909,4.88074187 7.85598275,5.40850943 6.77005357,6.16492738 L8.00490498,7.39068924 C8.27354347,7.65726684 8.27354347,8.0894535 8.00490498,8.35612485 C7.87046765,8.48939021 7.69450873,8.55604633 7.5184081,8.55604633 C7.34230747,8.55604633 7.16634856,8.48943709 7.03200569,8.35612485 L5.70204148,7.03485023 C4.13204115,8.52299364 3.09475895,10.5601022 2.90659433,12.8322227 L4.30759576,12.8325787 C4.68743083,12.8325787 4.99546522,13.1382031 4.99546522,13.5151711 C4.99546522,13.892186 4.68747807,14.1977635 4.30764299,14.1977635 L2.89670934,14.1976473 C3.02371908,16.0609257 3.72135566,17.7714185 4.81716961,19.1579915 L4.97167812,19.3482139 C5.26113447,19.6949337 5.57609243,20.0199666 5.91367078,20.3204536 L7.03200569,19.2111609 C7.30069142,18.9445833 7.73612479,18.9445833 8.00490498,19.2111609 C8.27354347,19.4777385 8.27354347,19.9099252 8.00490498,20.1765497 L7.01386949,21.160078 C8.44796715,22.0922041 10.1613427,22.6346745 12,22.6346745 L12,22.6346745 C13.8583409,22.6346745 15.5887033,22.0805272 17.0320921,21.1300078 L16.0701299,20.1765497 C15.8014914,19.909972 15.8014914,19.4777854 16.0701299,19.2111609 C16.3388156,18.9445833 16.774249,18.9445833 17.042982,19.2111609 L18.1252566,20.2856043 C18.4481451,19.9948825 18.7500205,19.681572 19.0283219,19.3482139 L19.1828304,19.1579915 C20.2466397,17.8119151 20.9351906,16.1605635 21.0907063,14.3605101 L21.1032907,14.1976527 L21.1032907,14.1976527 L19.4302507,14.1977635 C19.0504157,14.1977635 18.7423813,13.8921391 18.7423813,13.5151711 C18.7423813,13.1381562 19.0504157,12.8325787 19.4302507,12.8325787 L21.0934057,12.8322227 C20.9067892,10.5787961 19.8849698,8.55653016 18.3366017,7.07169263 L17.0430292,8.35607798 C16.9085919,8.48943709 16.732633,8.55604633 16.5565323,8.55604633 C16.3804317,8.55604633 16.2044728,8.48943709 16.0701299,8.35612485 C15.8014914,8.08954725 15.8014914,7.65736059 16.0701299,7.39068924 L17.2742569,6.19598696 C16.1894526,5.4308071 14.9295636,4.89482891 13.5669368,4.65983993 C13.5528409,4.65615858 13.538853,4.65380129 13.5248569,4.65147595 L13.5669368,4.65983993 C13.4834378,4.64544029 13.3995531,4.63217086 13.3152992,4.62004816 L13.5248569,4.65147595 C13.4243139,4.63477151 13.3233471,4.61971567 13.2219896,4.60632197 L13.3152992,4.62004816 C13.1723723,4.59948341 13.0283832,4.58221861 12.8834131,4.56833442 C12.8374466,4.56355426 12.7909906,4.55949885 12.7444647,4.55579028 L12.8834131,4.56833442 C12.7886701,4.55926062 12.6935082,4.5516307 12.5979499,4.54546716 L12.7444647,4.55579028 C12.6381278,4.54731418 12.5314263,4.5406499 12.4243976,4.53581255 L12.5979499,4.54546716 C12.5053597,4.53949506 12.4123973,4.53489967 12.3190836,4.53170146 L12.4243976,4.53581255 C12.2834709,4.52944313 12.1419768,4.52624116 12,4.52624116 Z M12.2098775,18.4456908 C12.3524617,18.4551964 12.4902931,18.464702 12.6328773,18.4884661 C12.6851582,18.4932189 12.7421919,18.5074773 12.7944727,18.5169829 C12.8039783,18.5169829 12.813484,18.5169829 12.8229896,18.5217357 C12.8990345,18.5692638 12.984585,18.5740166 13.0701355,18.5930278 C13.0938996,18.5977806 13.1224164,18.6025334 13.1509332,18.612039 C13.1746973,18.6215447 13.1984613,18.6310503 13.2174725,18.6500615 C13.2364838,18.6690727 13.255495,18.6833311 13.2887647,18.688084 C13.3172815,18.6928368 13.3362927,18.7213536 13.3362927,18.7546232 C13.3362927,18.7831401 13.3315399,18.8116569 13.3267871,18.835421 C13.3077759,18.9304771 13.2887647,19.030286 13.2650006,19.1253422 C13.2602478,19.153859 13.2507422,19.1823759 13.2412366,19.2108927 C13.2174725,19.277432 13.2127197,19.3487241 13.1937085,19.4152634 C13.1794501,19.4532859 13.1746973,19.4960611 13.1556861,19.5340836 C13.1414276,19.5673532 13.131922,19.6006229 13.1034052,19.6386453 C13.0891468,19.6529038 13.084394,19.6766678 13.0796411,19.7004318 C13.0606299,19.7527127 13.0321131,19.7717239 12.9750794,19.7622183 L12.9750794,19.7622183 L12.960821,19.7622183 C12.8562592,19.7384543 12.7564503,19.7194431 12.6566413,19.6909262 C12.5473268,19.6624094 12.4380122,19.6529038 12.3286977,19.6576566 C12.3001808,19.6576566 12.271664,19.6671622 12.2431471,19.6766678 C12.2051247,19.6909262 12.1956191,19.7194431 12.1956191,19.7574655 C12.1956191,19.7764767 12.2003719,19.7907352 12.2193831,19.795488 C12.2811696,19.8287576 12.3382033,19.8620273 12.419001,19.8762857 C12.442765,19.8810385 12.4617762,19.8952969 12.4807875,19.9048025 C12.5045515,19.9190609 12.5235627,19.9285666 12.542574,19.9380722 C12.689911,20.0093643 12.8467536,20.0711508 12.9798322,20.1709597 C13.084394,20.2422518 13.1604389,20.3325551 13.2032141,20.4513753 L13.2032141,20.4513753 L13.3077759,20.7745662 C13.3410455,20.8933864 13.3362927,21.0217122 13.3315399,21.1452851 C13.3267871,21.2403413 13.3125287,21.3401502 13.279259,21.4304535 C13.2745062,21.4352064 13.2745062,21.4399592 13.2745062,21.4494648 C13.2840118,21.5587793 13.2507422,21.6585883 13.1889557,21.7441388 C13.084394,21.8962286 12.9513154,22.0293072 12.7897199,22.1291162 C12.6851582,22.1956555 12.5710908,22.2336779 12.4475178,22.257442 C12.3239448,22.281206 12.1956191,22.3144756 12.0672933,22.3287341 C11.9579787,22.3429925 11.8486642,22.3429925 11.7441024,22.3382397 C11.6157766,22.3239812 11.4922036,22.3002172 11.3638778,22.2764532 C11.3448666,22.2764532 11.3258554,22.2669476 11.3068442,22.2621948 C11.2165408,22.2194195 11.1262375,22.2051611 11.0311814,22.1956555 C10.9076084,22.1766442 10.7887882,22.1481274 10.6652152,22.1243634 C10.6366984,22.1196106 10.6081815,22.0958465 10.6081815,22.0625769 C10.6081815,21.9675207 10.5844175,21.8677118 10.5986759,21.7726556 C10.6129344,21.6015546 10.62244,21.4257007 10.6414512,21.2545997 C10.6509568,21.1642964 10.6747208,21.073993 10.6984849,20.9789369 C10.7127433,20.9219032 10.7507658,20.8981392 10.8125522,20.902892 C10.9028556,20.9123976 10.9931589,20.9171504 11.0787094,20.9314088 C11.188024,20.9456672 11.2925857,20.9599257 11.3971475,20.9931953 C11.4541812,21.0074537 11.5112149,21.0169593 11.5682485,21.0217122 C11.6633047,21.026465 11.753608,21.026465 11.8439113,21.026465 C11.8866866,21.026465 11.9294619,20.9836897 11.9342147,20.9456672 C11.9389675,20.9123976 11.9152034,20.8696223 11.8724282,20.8553639 C11.8391585,20.8458583 11.7963833,20.8363527 11.7583608,20.8315999 C11.7345968,20.8268471 11.7108328,20.8220943 11.6870687,20.8220943 C11.6015182,20.8173415 11.5254733,20.7935774 11.4446756,20.7650606 C11.3638778,20.7317909 11.2783273,20.7127797 11.1975296,20.6795101 C11.088215,20.6414876 10.9884061,20.5797011 10.8981028,20.508409 C10.817305,20.4466225 10.7792826,20.361072 10.7507658,20.2707687 C10.7079905,20.1234316 10.6937321,19.9713418 10.7127433,19.819252 C10.7270017,19.7051846 10.7317545,19.5911173 10.7507658,19.4818027 C10.793541,19.2441624 10.8885972,19.030286 11.0596982,18.859185 C11.2070352,18.711848 11.3876419,18.612039 11.5920126,18.5550054 C11.7060799,18.5217357 11.8249001,18.4932189 11.9437203,18.4694548 C12.0340236,18.4551964 12.124327,18.4551964 12.2098775,18.4456908 Z M14.7328664,9.61765309 C15.1590885,9.61765309 15.5675493,9.84298078 15.7988231,10.2056519 C16.0296718,10.5678544 16.0563136,11.0171504 15.8699625,11.4074308 L14.1147664,15.0838768 C13.9903906,15.3443138 13.7774449,15.5556727 13.5149472,15.6790944 L9.80998461,17.4209191 C9.63676546,17.5022939 9.45419332,17.5435907 9.2670864,17.5435907 C8.84086431,17.5435907 8.43240343,17.3182631 8.20112965,16.9555919 C7.97028099,16.5933895 7.94363916,16.1440935 8.12999028,15.753813 L9.88518638,12.077367 C10.0095622,11.81693 10.2225079,11.6055242 10.4850055,11.4821494 L14.1899681,9.74032473 C14.3631873,9.65894988 14.5457594,9.61765309 14.7328664,9.61765309 Z M14.4894526,11.1101033 L11.1110414,12.6984127 L9.51045294,16.050953 L12.8888641,14.4626436 L14.4894526,11.1101033 Z M13.0226075,6.1644377 C13.0938996,6.1691905 13.1651917,6.1691905 13.2364838,6.1691905 L13.2364838,6.1691905 L13.5121466,6.18344892 C13.5596746,6.18344892 13.5929443,6.21196577 13.5976971,6.26424664 C13.6309667,6.56842629 13.6547308,6.87260593 13.6357196,7.17678557 C13.5976971,7.72335837 13.6262139,8.27468397 13.6167083,8.82125677 C13.6167083,9.03513308 13.6214611,9.24900939 13.6452252,9.46763851 L13.6452252,9.46763851 L13.6452252,9.59121149 C13.6404724,9.6625036 13.6024499,9.69102044 13.5359106,9.68626763 C13.526405,9.68626763 13.5121466,9.69102044 13.502641,9.69102044 C13.4836297,9.69577324 13.4598657,9.70527886 13.4408545,9.70052605 C13.3695624,9.68626763 13.2935175,9.69102044 13.2222254,9.69102044 C13.1414276,9.68626763 13.0606299,9.69577324 12.9798322,9.70052605 C12.837248,9.71003166 12.689911,9.71953728 12.542574,9.72429009 C12.4997987,9.72904289 12.4760347,9.70527886 12.4570234,9.6672564 L12.4570234,9.6672564 L12.271664,9.34881834 C12.1195741,9.07315554 11.9532259,8.81175116 11.8201473,8.52658274 L11.8201473,8.52658274 L11.8011361,8.49331309 L11.8011361,8.53608835 C11.7916305,8.81650396 11.777372,9.09216676 11.7821249,9.37258237 C11.7821249,9.4628857 11.777372,9.55318904 11.7726192,9.64349237 C11.7678664,9.71478447 11.729844,9.75280693 11.6585519,9.76231254 L11.6585519,9.76231254 L11.5112149,9.77657096 C11.4066531,9.78607658 11.3068442,9.76231254 11.2070352,9.75280693 L11.2070352,9.75280693 L10.8077994,9.75280693 C10.7555186,9.75280693 10.6747208,9.78132377 10.6557096,9.72429009 C10.646204,9.70527886 10.6414512,9.69102044 10.646204,9.61972833 C10.646204,9.58170588 10.6509568,9.56269465 10.6509568,9.51991939 L10.6509568,9.51991939 L10.6604624,9.31079588 L10.6794736,8.66441414 C10.6889793,8.33171766 10.7032377,7.99902117 10.6937321,7.66632469 C10.6889793,7.45720118 10.6794736,7.24807768 10.669968,7.04370698 C10.669968,7.03420136 10.669968,7.01994294 10.6652152,7.01043733 C10.6319456,6.81081944 10.6366984,6.60644874 10.6557096,6.40207804 C10.6604624,6.39257243 10.6557096,6.37831401 10.6604624,6.36405559 C10.6604624,6.32603313 10.6984849,6.28801068 10.7365073,6.28325787 C10.769777,6.28325787 10.8077994,6.28801068 10.8410691,6.28801068 L10.8410691,6.28801068 L10.8838443,6.28801068 C11.0216757,6.26424664 11.1595071,6.24048261 11.3020914,6.24523541 L11.3020914,6.24523541 L11.458934,6.2357298 C11.5444845,6.23097699 11.630035,6.22622419 11.7155856,6.22622419 C11.729844,6.22622419 11.7488552,6.23097699 11.7631136,6.24048261 C11.7821249,6.25474103 11.8011361,6.25949384 11.8249001,6.25474103 C11.877181,6.24523541 11.9056978,6.25949384 11.9247091,6.30702191 C11.9864956,6.47812295 12.0767989,6.63971839 12.171855,6.79180821 C12.2478999,6.91538119 12.3001808,7.04370698 12.3477089,7.17678557 C12.3952369,7.29085294 12.4475178,7.4001675 12.5093043,7.50948206 L12.5093043,7.50948206 L12.5235627,7.52849329 C12.5235627,7.52849329 12.5283155,7.52849329 12.5330683,7.52374048 L12.5330683,7.52374048 L12.5330683,7.50472925 C12.5330683,7.28134733 12.5330683,7.0579654 12.5283155,6.83458347 C12.5283155,6.69199927 12.5188099,6.55416787 12.5188099,6.41633646 L12.5188099,6.41633646 L12.5188099,6.38781962 C12.5093043,6.30702191 12.5473268,6.24998822 12.6091133,6.20721296 C12.6328773,6.18344892 12.6613941,6.17394331 12.689911,6.17869612 C12.8039783,6.18344892 12.9132929,6.1644377 13.0226075,6.1644377 Z M12,1.36518483 C11.3691932,1.36518483 10.8560545,1.87443384 10.8560545,2.50035449 C10.8560545,2.7121822 10.9139202,2.91435368 11.0223297,3.09018146 C11.3472278,3.06046277 11.6746768,3.04536905 12,3.04536905 C12.3250871,3.04536905 12.6524415,3.06046277 12.977623,3.09027521 C13.0860798,2.91444743 13.1439455,2.7121822 13.1439455,2.50035449 C13.1439455,1.87438696 12.6308068,1.36518483 12,1.36518483 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"history",icon:["24","24",[],"","M12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 C0,5.372583 5.372583,0 12,0 Z M12,2.05714286 C6.50871163,2.05714286 2.05714286,6.50871163 2.05714286,12 C2.05714286,17.4912884 6.50871163,21.9428571 12,21.9428571 C17.4912884,21.9428571 21.9428571,17.4912884 21.9428571,12 C21.9428571,6.50871163 17.4912884,2.05714286 12,2.05714286 Z M12,5.82857143 C12.5680643,5.82857143 13.0285714,6.28907854 13.0285714,6.85714286 L13.0285714,11.5739518 L17.0130241,15.5584045 C17.4147062,15.9600866 17.4147062,16.611342 17.0130241,17.0130241 C16.611342,17.4147062 15.9600866,17.4147062 15.5584045,17.0130241 L11.2726902,12.7273098 C11.0797956,12.5344153 10.9714286,12.2727941 10.9714286,12 L10.9714286,6.85714286 C10.9714286,6.28907854 11.4319357,5.82857143 12,5.82857143 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file",icon:["24","24",[],"","M6 4h7l6 5v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm6.586 1H6v14h12V9.414L12.586 5zM13 10h3.5a.5.5 0 1 1 0 1h-4a.5.5 0 0 1-.5-.5v-4a.5.5 0 1 1 1 0V10z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-pdf",icon:["24","24",[],"","M9.833 15.006c-.328.765-.657 1.316-.997 1.619-.35.312-.762.394-1.138.15a1.345 1.345 0 0 1-.358-.322c-.298-.402-.194-.843.165-1.2.228-.227.563-.433.983-.63.226-.106.466-.204.706-.292.142-.358.286-.762.43-1.205a41.787 41.787 0 0 0 .866-3.123c-.435-.563-.75-1.057-.924-1.473-.28-.67-.211-1.242.372-1.494.56-.24 1.047-.086 1.307.391.17.312.234.736.231 1.26a7.96 7.96 0 0 1-.086 1.088c.158.195.33.398.513.606a30.903 30.903 0 0 0 1.73 1.81 14.011 14.011 0 0 0 .863.761c.464-.07.87-.106 1.213-.105.947.002 1.554.319 1.415 1.079-.107.585-.514.888-1.06.834-.365-.036-.781-.224-1.259-.532a8.753 8.753 0 0 1-.538-.38 21.15 21.15 0 0 0-.944.191c-.39.087-.798.188-1.22.3a45.345 45.345 0 0 0-2.27.667zM6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm4.43 8.39c-.07.21-.138.412-.207.606l.055-.016a46.181 46.181 0 0 1 1.608-.459 33.869 33.869 0 0 1 1.538-.37 15.994 15.994 0 0 1-.378-.35 31.732 31.732 0 0 1-1.882-1.98l-.083.32a38.471 38.471 0 0 1-.652 2.248zm-2.157 2.603c.12-.107.248-.279.382-.51a2.35 2.35 0 0 0-.553.37c-.092.092-.09.086-.083.096a.54.54 0 0 0 .138.116c.017.01.025.01.116-.072zm7.434-2.3c-.047 0-.095 0-.146.002.242.132.443.209.585.223.11.011.118.005.146-.145.005-.027-.095-.079-.585-.08zm-5.36-5.49c.065.156.16.334.283.53v-.05c.003-.393-.044-.696-.128-.85-.046-.086-.063-.091-.23-.02-.04.018-.05.092.075.39z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-img",icon:["24","24",[],"","M5 6v12h14V6H5zm0-1h14a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm2.4 10.3a.5.5 0 0 1-.8-.6l3-4a.5.5 0 0 1 .754-.054l.579.58 1.765-2.513a.5.5 0 0 1 .83.015l3.891 6a.5.5 0 0 1-.838.544l-3.49-5.379-1.682 2.394a.5.5 0 0 1-.763.067l-.592-.593L7.4 15.3zm.6-4.8a1.5 1.5 0 1 1 0-3 1.5 1.5 0 0 1 0 3zm0-1a.5.5 0 1 0 0-1 .5.5 0 0 0 0 1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-ppt",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.07 6.96h1.22c.18 0 .353-.013.52-.04a1.21 1.21 0 0 0 .44-.155.844.844 0 0 0 .305-.325c.077-.14.115-.323.115-.55 0-.227-.038-.41-.115-.55a.844.844 0 0 0-.305-.325 1.21 1.21 0 0 0-.44-.155 3.288 3.288 0 0 0-.52-.04h-1.22v2.14zM9.5 8.6h3.22c.447 0 .827.065 1.14.195.313.13.568.302.765.515.197.213.34.457.43.73a2.715 2.715 0 0 1 0 1.695c-.09.277-.233.522-.43.735a2.133 2.133 0 0 1-.765.515c-.313.13-.693.195-1.14.195h-1.65v2.56H9.5V8.6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-word",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm8.77 10.74h-1.56L12 10.88h-.02l-1.19 4.86H9.2L7.31 8.6h1.57l1.13 4.86h.02l1.24-4.86h1.47l1.22 4.92h.02l1.17-4.92h1.54l-1.92 7.14z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-zip",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5 0h1v1h-1V5zm1 1h1v1h-1V6zm-1 1h1v1h-1V7zm1 1h1v1h-1V8zm-1 1h1v1h-1V9zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1zm-1 1h1v1h-1v-1zm1 1h1v1h-1v-1z"]}},function(e,t){e.exports={prefix:"cv",iconName:"file-excel",icon:["24","24",[],"","M6 4h12a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1zm0 1v14h12V5H6zm5.09 7l-2.3-3.4h1.82l1.4 2.28 1.45-2.28h1.72l-2.29 3.41 2.49 3.73h-1.87l-1.56-2.47-1.59 2.47H8.6L11.09 12z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-240",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm1 4.818C4 9.644 4.94 8.8 6.261 8.8c1.272 0 2.182.777 2.182 1.81 0 .76-.45 1.334-1.285 2.178L5.58 14.347v.022h2.96v.932H4.062v-.769L6.407 12.2c.724-.737.923-1.064.923-1.54 0-.526-.473-.946-1.104-.946-.663 0-1.157.468-1.157 1.1v.017H4v-.013zm8.426 4.483v-1.206h-3.18v-.98c.553-1.043 1.264-2.178 2.646-4.187h1.62v4.235h.857v.932h-.856v1.206h-1.087zm-2.146-2.142v.03h2.164V9.773h-.018c-1.029 1.492-1.638 2.433-2.146 3.387zm7.234 2.27c-1.564 0-2.496-1.277-2.496-3.321 0-2.036.941-3.308 2.496-3.308 1.55 0 2.486 1.263 2.486 3.303s-.927 3.326-2.486 3.326zm0-.932c.843 0 1.333-.888 1.333-2.39 0-1.488-.499-2.375-1.333-2.375-.84 0-1.347.896-1.347 2.371 0 1.502.499 2.394 1.347 2.394z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-480",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm3.964 9.269v-1.2H3.8v-.976c.55-1.037 1.257-2.166 2.632-4.166h1.613v4.215h.853v.927h-.853v1.2h-1.08zm-2.136-2.132v.031h2.154V9.767h-.018c-1.024 1.485-1.63 2.421-2.136 3.37zm7.185 2.26c-1.467 0-2.47-.761-2.47-1.842 0-.822.58-1.468 1.442-1.63v-.022c-.72-.185-1.19-.743-1.19-1.433 0-.962.926-1.67 2.218-1.67 1.297 0 2.215.703 2.215 1.674 0 .681-.466 1.235-1.186 1.429v.022c.861.167 1.446.813 1.446 1.63 0 1.085-1.016 1.841-2.475 1.841zm0-.867c.76 0 1.297-.448 1.297-1.059 0-.62-.536-1.063-1.297-1.063-.76 0-1.296.448-1.296 1.063 0 .611.536 1.06 1.296 1.06zm0-2.988c.638 0 1.095-.395 1.095-.94 0-.55-.453-.945-1.095-.945-.646 0-1.098.395-1.098.945 0 .545.452.94 1.098.94zm5.709 3.854c-1.556 0-2.483-1.27-2.483-3.304 0-2.026.936-3.292 2.483-3.292 1.542 0 2.474 1.257 2.474 3.287 0 2.03-.923 3.31-2.474 3.31zm0-.927c.84 0 1.327-.883 1.327-2.377 0-1.481-.497-2.365-1.327-2.365-.835 0-1.34.892-1.34 2.36 0 1.494.496 2.382 1.34 2.382z"]}},function(e,t){e.exports={prefix:"cv",iconName:"quality-hd",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm2 2.25h1.31v2.976h3.406V8.25h1.31v7.482h-1.31v-3.374H6.31v3.374H5V8.25zm7.597 0H15.7c.573 0 1.069.098 1.488.293.42.196.762.463 1.027.802.266.339.463.735.592 1.19.13.454.194.939.194 1.456a5.3 5.3 0 0 1-.194 1.457 3.43 3.43 0 0 1-.592 1.189 2.765 2.765 0 0 1-1.027.802c-.419.195-.915.293-1.488.293h-3.102V8.25zm1.31 6.413h1.29c.51 0 .927-.068 1.251-.204.325-.136.58-.325.765-.566.185-.241.311-.524.378-.849.066-.325.1-.676.1-1.053 0-.377-.034-.728-.1-1.053a2.043 2.043 0 0 0-.378-.849 1.832 1.832 0 0 0-.765-.566c-.324-.136-.742-.204-1.252-.204h-1.289v5.344z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption",icon:["24","24",[],"","M3 5h18a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zm0 1v12h18V6H3zm5.486 9.759c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C6.635 8.337 7.548 8 8.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397zm7 0c-1.002 0-1.834-.372-2.495-1.114-.66-.743-.991-1.68-.991-2.81 0-1.208.327-2.149.981-2.823C13.635 8.337 14.548 8 15.719 8c.579 0 1.226.08 1.941.24v1.127c-.76-.223-1.38-.335-1.86-.335-.687 0-1.24.259-1.657.776-.417.517-.625 1.207-.625 2.068 0 .834.214 1.508.642 2.023.429.515.99.773 1.682.773.615 0 1.248-.157 1.9-.472v1.162c-.87.265-1.622.397-2.256.397z"]}},function(e,t){e.exports={prefix:"cv",iconName:"contract",icon:["24","24",[],"","M8.5 8.5V5H10v5H5V8.5h3.5zm0 7H5V14h5v5H8.5v-3.5zm7-7H19V10h-5V5h1.5v3.5zm0 7V19H14v-5h5v1.5h-3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"full-screen",icon:["24","24",[],"","M6.5 6.5V10H5V5h5v1.5H6.5zm0 11H10V19H5v-5h1.5v3.5zm11-11H14V5h5v5h-1.5V6.5zm0 11V14H19v5h-5v-1.5h3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"mute",icon:["24","24",[],"","M16.733 12.018l-1.57-1.57a.555.555 0 1 1 .785-.785l1.57 1.57 1.57-1.57a.555.555 0 1 1 .785.785l-1.57 1.57 1.57 1.57a.555.555 0 1 1-.785.785l-1.57-1.57-1.57 1.57a.555.555 0 1 1-.785-.785l1.57-1.57zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"next",icon:["24","24",[],"","M16 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11zm-10.86.005a.5.5 0 0 1 .761-.427l9.003 5.5a.5.5 0 0 1 0 .853l-9.003 5.5a.5.5 0 0 1-.76-.426v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play",icon:["24","24",[],"","M7.5 6.505v11l9.002-5.5-9.002-5.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"play-circle",icon:["24","24",[],"","M0,12 C0,5.372583 5.372583,0 12,0 C18.627417,0 24,5.372583 24,12 C24,18.627417 18.627417,24 12,24 C5.372583,24 0,18.627417 0,12 Z M23,12 C23,5.92486775 18.0751322,1 12,1 C5.92486775,1 1,5.92486775 1,12 C1,18.0751322 5.92486775,23 12,23 C18.0751322,23 23,18.0751322 23,12 Z M9,7.49836245 C9,6.94698209 9.38671875,6.74169922 9.84669815,7.02918634 L17.1533018,11.5958137 C17.6209203,11.8880752 17.6132812,12.3666992 17.1533018,12.6541863 L9.84669815,17.2208137 C9.37907967,17.5130752 9,17.2950531 9,16.7516375 L9,7.49836245 Z"]}},function(e,t){e.exports={prefix:"cv",iconName:"pause",icon:["24","24",[],"","M8 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 8 17.5v-11zm6 0c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01a.501.501 0 0 1-.495-.5v-11z"]}},function(e,t){e.exports={prefix:"cv",iconName:"previous",icon:["24","24",[],"","M5 6.5c0-.276.216-.5.495-.5h2.01c.273 0 .495.229.495.5v11c0 .276-.216.5-.495.5h-2.01A.501.501 0 0 1 5 17.5v-11zm13.602.005v11a.5.5 0 0 1-.76.426l-9.003-5.5a.5.5 0 0 1 0-.853l9.002-5.5a.5.5 0 0 1 .761.427z"]}},function(e,t){e.exports={prefix:"cv",iconName:"volume",icon:["24","24",[],"","M15.8 11.25c-.137-.815-.44-1.549-.727-2.009a.48.48 0 0 1 .167-.67.507.507 0 0 1 .687.163c.35.56.7 1.41.86 2.359.24 1.439.001 2.866-.866 4.183a.508.508 0 0 1-.691.147.48.48 0 0 1-.15-.674c.724-1.1.922-2.285.72-3.5zm1.86 5.959c1.856-3.7 1.676-7.108 0-10.416a.558.558 0 0 1 .201-.728.483.483 0 0 1 .678.215c1.828 3.61 2.028 7.398.001 11.438a.483.483 0 0 1-.677.218.557.557 0 0 1-.203-.727zM4 10.03c0-.557.443-1.01 1.01-1.01H8l4.284-4.246c.395-.393.716-.253.716.282v13.879c0 .548-.324.682-.721.303L7.814 14.97H5.002A1.003 1.003 0 0 1 4 13.96v-3.93z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm3.186 5.646l-4.723 5.18-1.683-1.615a.772.772 0 0 0-1.06 0 .7.7 0 0 0 0 1.018l2.25 2.16a.771.771 0 0 0 1.094-.035l5.25-5.76a.7.7 0 0 0-.07-1.016.772.772 0 0 0-1.058.068z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check-circle-o",icon:["24","24",[],"","M12 3c4.972 0 9 4.028 9 9s-4.028 9-9 9-9-4.028-9-9 4.028-9 9-9zm0 1.212a7.737 7.737 0 0 0-5.508 2.28A7.737 7.737 0 0 0 4.212 12c0 2.081.809 4.037 2.28 5.508A7.737 7.737 0 0 0 12 19.788a7.737 7.737 0 0 0 5.508-2.28A7.737 7.737 0 0 0 19.788 12a7.737 7.737 0 0 0-2.28-5.508A7.737 7.737 0 0 0 12 4.212zm3.186 4.434a.772.772 0 0 1 1.058-.068.7.7 0 0 1 .07 1.016l-5.25 5.76a.771.771 0 0 1-1.094.035l-2.25-2.16a.7.7 0 0 1 0-1.018.772.772 0 0 1 1.06 0l1.683 1.616 4.723-5.181z"]}},function(e,t){e.exports={prefix:"cv",iconName:"check",icon:["24","24",[],"","M16.247 7.341a1 1 0 0 1 1.506 1.318l-7 8a1 1 0 0 1-1.46.048l-3-3a1 1 0 0 1 1.414-1.414l2.244 2.244 6.296-7.196z"]}},function(e,t){e.exports={prefix:"cv",iconName:"close-caption-badge",icon:["24","24",[],"","M7.5 5A2.5 2.5 0 0 0 5 7.5v9A2.5 2.5 0 0 0 7.5 19h9a2.5 2.5 0 0 0 2.5-2.5v-9A2.5 2.5 0 0 0 16.5 5h-9zm0-1h9A3.5 3.5 0 0 1 20 7.5v9a3.5 3.5 0 0 1-3.5 3.5h-9A3.5 3.5 0 0 1 4 16.5v-9A3.5 3.5 0 0 1 7.5 4zM11 9a.5.5 0 1 1 0 1H9.5A1.5 1.5 0 0 0 8 11.5v1A1.5 1.5 0 0 0 9.5 14H11a.5.5 0 1 1 0 1H9.5A2.5 2.5 0 0 1 7 12.5v-1A2.5 2.5 0 0 1 9.5 9H11zm5 0a.5.5 0 1 1 0 1h-1.5a1.5 1.5 0 0 0-1.5 1.5v1a1.5 1.5 0 0 0 1.5 1.5H16a.5.5 0 1 1 0 1h-1.5a2.5 2.5 0 0 1-2.5-2.5v-1A2.5 2.5 0 0 1 14.5 9H16z"]}},function(e,t){e.exports={prefix:"cv",iconName:"question",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zM8.142 9.17c0 .247.103.476.309.687.206.212.46.318.76.318.508 0 .854-.303 1.036-.908.193-.579.428-1.017.707-1.314.278-.297.712-.446 1.302-.446.503 0 .914.147 1.233.442.319.294.478.656.478 1.085 0 .22-.052.423-.157.61a2.305 2.305 0 0 1-.385.51c-.153.153-.4.38-.744.68-.39.342-.701.638-.932.887-.23.25-.415.539-.554.868-.14.33-.209.72-.209 1.17 0 .358.095.629.285.81.19.183.425.274.703.274.536 0 .855-.279.956-.836a12.2 12.2 0 0 1 .133-.55c.03-.104.071-.209.125-.313.053-.105.135-.22.245-.346.11-.126.255-.272.438-.438a48.078 48.078 0 0 0 1.37-1.257c.254-.25.474-.545.658-.888.185-.343.278-.742.278-1.197a2.87 2.87 0 0 0-.486-1.608c-.325-.492-.784-.882-1.378-1.169-.595-.286-1.28-.43-2.057-.43-.836 0-1.567.172-2.194.515s-1.104.775-1.43 1.297c-.327.523-.49 1.038-.49 1.547zm3.868 9.579c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797a1.073 1.073 0 0 0-.793-.324c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"info",icon:["24","24",[],"","M21 11.88c.026 2.49-.824 4.62-2.552 6.387-1.727 1.768-3.837 2.679-6.327 2.732-2.491.027-4.62-.823-6.388-2.55C3.965 16.72 3.054 14.61 3 12.12c-.027-2.491.823-4.62 2.55-6.388C7.28 3.965 9.39 3.054 11.88 3c2.491-.027 4.62.823 6.388 2.55 1.767 1.73 2.678 3.84 2.732 6.33zm-10-.38V15a2.5 2.5 0 0 0 2.5 2.5h.75a1 1 0 0 0 0-2h-.75a.5.5 0 0 1-.5-.5v-3.75a1.75 1.75 0 0 0-1.75-1.75h-.75a1 1 0 1 0 0 2h.5zm.636-3.25c.294 0 .553-.1.778-.301.224-.2.336-.477.336-.828 0-.316-.107-.582-.321-.797A1.073 1.073 0 0 0 11.636 6c-.319 0-.588.108-.807.324a1.07 1.07 0 0 0-.329.797c0 .356.113.634.34.832.227.198.492.297.796.297z"]}},function(e,t){e.exports={prefix:"cv",iconName:"lock",icon:["24","24",[],"","M7.01 9.5C7.156 5.97 8.87 4 12 4s4.844 1.97 4.99 5.5h1.51a.5.5 0 0 1 .5.5v9.5a.5.5 0 0 1-.5.5h-13a.5.5 0 0 1-.5-.5V10a.5.5 0 0 1 .5-.5h1.51zm2 0h5.98C14.88 7.037 13.932 6 12 6c-1.933 0-2.88 1.037-2.99 3.5z"]}},function(e,t){e.exports={prefix:"cv",iconName:"verified",icon:["24","24",[],"","M10.407 12.368l-1.22-1.22a.49.49 0 0 0-.698.004l-.583.583a.494.494 0 0 0-.004.697l2.135 2.135c.107.108.25.154.388.142a.488.488 0 0 0 .352-.143l4.362-4.362a.494.494 0 0 0-.004-.698l-.582-.582a.495.495 0 0 0-.698-.004l-3.448 3.448zm7.922-.37l1.437 1.406c.208.194.277.437.208.728a.716.716 0 0 1-.541.531l-1.957.5.551 1.936a.671.671 0 0 1-.197.729.671.671 0 0 1-.73.198l-1.935-.552-.5 1.957a.716.716 0 0 1-.53.541 1.28 1.28 0 0 1-.199.021.686.686 0 0 1-.53-.229L12 18.328l-1.405 1.436c-.195.208-.437.278-.729.208a.696.696 0 0 1-.53-.541l-.5-1.957-1.937.552a.671.671 0 0 1-.728-.198.671.671 0 0 1-.198-.729l.551-1.936-1.957-.5a.716.716 0 0 1-.54-.53c-.07-.292 0-.535.207-.73l1.437-1.405-1.437-1.405c-.208-.194-.277-.437-.208-.729a.716.716 0 0 1 .541-.53l1.957-.5-.551-1.936a.671.671 0 0 1 .198-.73.671.671 0 0 1 .728-.197l1.936.552.5-1.957a.675.675 0 0 1 .531-.531.671.671 0 0 1 .729.198L12 5.68l1.405-1.447a.697.697 0 0 1 .73-.198c.284.07.46.246.53.53l.5 1.958L17.1 5.97a.671.671 0 0 1 .729.198.671.671 0 0 1 .197.729l-.551 1.936 1.957.5a.715.715 0 0 1 .541.53c.07.292 0 .535-.208.73l-1.437 1.404z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-off",icon:["24","24",[],"","M15.293 6.609l-.793.79A8.794 8.794 0 0 0 11.997 7C8.006 6.978 4 10.17 4 12c0 .925 1.062 2.216 2.63 3.254l-.715.714C4.174 14.76 3 13.228 3 12c0-2.44 4.5-6.025 9.003-6 1.119.006 2.239.234 3.29.609zm2.802 1.442C19.833 9.26 21 10.786 21 12c0 2.45-4.504 6-9 6-1.112 0-2.23-.223-3.279-.595l.794-.792A8.659 8.659 0 0 0 12 17c3.989 0 8-3.161 8-5 0-.911-1.055-2.196-2.62-3.235l.715-.714zm-7.65 7.635l.787-.785A3.005 3.005 0 0 0 15 12c0-.264-.034-.52-.098-.763l.787-.785a4 4 0 0 1-5.245 5.235zM8.318 13.57a4 4 0 0 1 5.257-5.246l-.785.782a3.003 3.003 0 0 0-3.687 3.68l-.785.784zm-3.466 6.285a.5.5 0 1 1-.706-.708l15-14.971a.5.5 0 1 1 .706.708l-15 14.97z"]}},function(e,t){e.exports={prefix:"cv",iconName:"visible-on",icon:["24","24",[],"","M3 12c0-2.44 4.5-6.025 9.003-6C16.494 6.025 21 9.614 21 12c0 2.45-4.504 6-9 6-4.466 0-9-3.586-9-6zm1 0c0 1.804 4.042 5 8 5 3.989 0 8-3.161 8-5 0-1.778-4.017-4.977-8.003-5C8.006 6.978 4 10.17 4 12zm8 4a4 4 0 1 1 0-8 4 4 0 0 1 0 8zm0-1a3 3 0 1 0 0-6 3 3 0 0 0 0 6z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning-o",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 5L3.5 19h17L12 5zm0 13a1 1 0 1 1 0-2 1 1 0 0 1 0 2zm.75-3.677a.689.689 0 0 1-.7.677.689.689 0 0 1-.7-.677V8.677c0-.374.313-.677.7-.677.387 0 .7.303.7.677v5.646z"]}},function(e,t){e.exports={prefix:"cv",iconName:"warning",icon:["24","24",[],"","M13.026 4.377l8.5 14A1.2 1.2 0 0 1 20.5 20.2h-17a1.2 1.2 0 0 1-1.026-1.823l8.5-14a1.2 1.2 0 0 1 2.052 0zM12 18a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm.75-3.677V8.677a.689.689 0 0 0-.7-.677c-.387 0-.7.303-.7.677v5.646c0 .374.313.677.7.677.387 0 .7-.303.7-.677z"]}},function(e,t,n){"use strict";t.__esModule=!0,t.stateify=t.TokenState=t.CharacterState=void 0;var r=n(85);var i=function(e){this.j=[],this.T=e||null};i.prototype={defaultTransition:!1,on:function(e,t){if(e instanceof Array){for(var n=0;n<e.length;n++)this.j.push([e[n],t]);return this}return this.j.push([e,t]),this},next:function(e){for(var t=0;t<this.j.length;t++){var n=this.j[t],r=n[0],i=n[1];if(this.test(e,r))return i}return this.defaultTransition},accepts:function(){return!!this.T},test:function(e,t){return e===t},emit:function(){return this.T}};var o=(0,r.inherits)(i,(function(e){this.j=[],this.T=e||null}),{test:function(e,t){return e===t||t instanceof RegExp&&t.test(e)}}),a=(0,r.inherits)(i,(function(e){this.j=[],this.T=e||null}),{jump:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new e(""));return n===this.defaultTransition?(n=new this.constructor(t),this.on(e,n)):t&&(n.T=t),n},test:function(e,t){return e instanceof t}});t.CharacterState=o,t.TokenState=a,t.stateify=function(e,t,n,r){for(var i=0,a=e.length,s=t,c=[],l=void 0;i<a&&(l=s.next(e[i]));)s=l,i++;if(i>=a)return[];for(;i<a-1;)l=new o(r),c.push(l),s.on(e[i],l),s=l,i++;return l=new o(n),c.push(l),s.on(e[a-1],l),c}},function(e,t,n){"use strict";t.__esModule=!0,t.createTokenClass=function(){return function(e){e&&(this.v=e)}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(0),i=n(6);function o(e){const t=i.a.getInstance(e);return r.useEffect(()=>()=>i.a.releaseInstance(e)),t}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+' partial-loading-background"></div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.content:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(e,t,n){e.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(e,t,n){"use strict";var r;n.d(t,"a",(function(){return r})),function(e){e[e.HostedLibrary=0]="HostedLibrary",e[e.Exchange=1]="Exchange",e[e.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(r||(r={}))},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="p-2"><a href="'+c("function"==typeof(o=null!=(o=n.url||(null!=t?t.url:t))?o:s)?o.call(a,{name:"url",hash:{},data:i}):o)+'">'+c("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:s)?o.call(a,{name:"name",hash:{},data:i}):o)+" - "+c("function"==typeof(o=null!=(o=n.libraryName||(null!=t?t.libraryName:t))?o:s)?o.call(a,{name:"libraryName",hash:{},data:i}):o)+"</a></div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<div class="direct-search-suggestion p-2"><span class="ignore-highlighting">'+c("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:s)?o.call(a,{name:"templateText",hash:{},data:i}):o)+'</span>\r\n <span class="query-text">'+c("function"==typeof(o=null!=(o=n.query||(null!=t?t.query:t))?o:s)?o.call(a,{name:"query",hash:{},data:i}):o)+"</span>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="tt-pending p-2">\r\n <div class="partial-text">'+e.escapeExpression("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:i}):o)+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="tt-not-found"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="suggestion-seperator border-bottom"></div>\r\n'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold px-2 pt-2 pb-1">'+e.escapeExpression("function"==typeof(o=null!=(o=n.dataset||(null!=t?t.dataset:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"dataset",hash:{},data:i}):o)+"</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold p-2">'+e.escapeExpression("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:i}):o)+"</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="no-libraries-suggestion p-2">\r\n <div class="ignore-highlighting">'+e.escapeExpression("function"==typeof(o=null!=(o=n.templateText||(null!=t?t.templateText:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"templateText",hash:{},data:i}):o)+"</div>\r\n</div>"},useData:!0})},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(2);class i extends r.a.Model{}},function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(0);function i(e){var t="".concat(e.webPlayerHost,"home/ev?vid=").concat(e.id);return r.createElement("div",{className:"embed-responsive ".concat(e.className?e.className:"")},r.createElement("iframe",{src:t,className:"embed-responsive-item",allowFullScreen:!0,allow:"autoplay; fullscreen"}))}},function(e,t,n){"use strict";var r=n(1),i=n(5),o=n(3),a=n(31),s=n(65),c=n(2),l=n(60),u=n(7),p=n(6),d=n(14),h=n(21),f=n(9),m=n(97),g=n(91),v=n(10);const y={showMask(e={}){const{targetSelector:t,additionalClasses:n,fade:r=!0}=e;if(!$(".mask").length){var i=$("<div>",{class:"mask "+(n||"")});return r&&i.addClass("fade show"),$(i).appendTo(y.getTarget(t)),$(y.getTarget(t)).addClass("mask-lock"),i}},hideMask(e){const t=e||$(".mask");if(!t.length)return;$(".mask-lock").removeClass("mask-lock"),t.remove()},getTarget(e){const t=$(e||"#app");if(t.length)return t}},b={libraries:{dataServiceName:f.a.Library,eventName:"libraries:sync",getData:e=>e.getLibraries(),getInstance:e=>p.a.getInstance(f.a.Library,e),beforeOnBeforeRender:!0}};var C,S,w;!function(e){e.Direct="direct-search",e.Recent="recent-searches"}(C||(C={})),function(e){e[e.Remote=0]="Remote",e[e.Local=1]="Local"}(S||(S={})),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"}(w||(w={}));const E={getContextualSearchQueryParams(e){if(!e||!e.get("filterParam"))return{};return{[e.get("filterParam")]:e.get("filterValue")}}};var x=n(228);const O={ActivationLength:1,SuggestionLimit:{Min:1,Default:3,Folder:3,Recent:3}},k=O.SuggestionLimit,L={prepareQuery:(e,t,n={})=>{const{model:r,libraryIds:i,presentationId:o}=n;r&&r.get("filterValue")&&(e+=` ${r.get("filterParam")}:"${r.get("filterValue")}"`);let a=`${t.url}?q=${e}`;return i&&(a+="&ids="+i),o&&(a+="&presentationId="+o),a},bloodhoundConfig:(e,t)=>({datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:r.partial(L.prepareQuery,r,r,t),transform:r.partial(L.handleResult,r,e)}}),handleResult:(e={},t,n={})=>t===w.Classification?L.processSubjectResult(e[t],t,n):t===w.Video?L.processVideoResult(e[t],t,n):n.showFolder&&t===w.Folder?L.processFolderResult(e[t],t,n):t===w.Series?L.processSeriesResult(e[t],t,n):t===w.Tags?L.processTagsResult(e[t],t,n):[],processSubjectResult:(e,t,n)=>e?(e=L.processCollection(e),r.map(e,e=>(e.cached||(e.thumbnail={url:e.coverUrl},e.cached=!0),e))):[],processVideoResult:(e,t,n)=>e?(e=L.processCollection(e),r.map(e,e=>(e.cached||(e.topics=r.map(e.topics,e=>({name:e})),e.series={id:e.seriesId,name:e.seriesName},e.thumbnail={url:e.thumbnailUrl},e.cached=!0),e))):[],processTagsResult(e,t,n){if(!e)return[];const i=p.a.getInstance(h.a.SEARCH,this);return e=L.processCollection(e),r.map(e,e=>(e.cached||(e.url=c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},i.appLinks.searchResults),{params:{tag:e.name}})),e.cached=!0),e))},processSeriesResult:(e,t,n)=>e?(e=L.processCollection(e),r.map(e,e=>{let t;return e.series?t=e.series:e.folder&&e.folder.length&&(t=r.first(e.folder)),r.extend({},e,{collectionType:void 0,collection:t})})):[],processFolderResult:(e,t,n={})=>e?(e=L.processCollection(e,{limit:k.Folder}),r.map(e,e=>{const{library:t={}}=e;return t.type===x.a.Exchange&&(t.name="Exchange"),r.extend({},e,{libraryId:t.id,libraryName:t.name,libraryType:t.type})})):[],processCollection(e,t={}){const{limit:n=k.Default}=t;return e.slice(0,n)}},A={getRecentSearches(e,t){let n=t.cacheGet(e);return r.isArray(n)||(n=[]),n},setRecentSearches(e,t,n){r.isArray(t)&&n.cacheSet(e,t)},updateRecentSearches(e,t,n){let{add:i,remove:o,query:a,limit:s=5}=n,c=A.getRecentSearches(e,t);const l=r.indexOf(c,a);return i&&-1===l&&c.unshift(a),o&&l>-1&&c.splice(l,1),c.length>s&&(c=c.slice(0,s)),A.setRecentSearches(e,c,t),c}};var T=n(115),N=n(251),R=n.n(N),P=n(105),I=n.n(P);class _ extends c.a.Component{constructor(e){super(e)}get name(){return"ConfirmSelectionComponent"}get template(){return R.a}get className(){return`suggestion-footer empty-suggestion px-2 ${I.a.selectionContainer} clearfix`}viewOptions(){return{styles:I.a,confirmSelectionText:u.a.getPhrase("shared.utils","confirmSelection",{svg:`<kbd><span class="${I.a.svgContainer}">${v.a.getSvg(v.b.Enter)}</span></kbd>`})}}}const D={handleQuery:(e,t)=>(n,r,i)=>{if(t||(t={}),n&&t.ignoreOnQuery)return r([]);const o=n&&n.length>=O.ActivationLength;return t.fetchType!==S.Local||o?o?e instanceof T?e.search.call(e,n,r,i):r([{query:n}]):void 0:r(e.index.all())},getTemplate(e,t={}){const{fallbackTemplate:n,templateText:i}=t;return t=>{const{query:o}=t;if(!o)return n(...arguments);if(o.length&&o.length<O.ActivationLength)return n(...arguments);const a=r.extend(t,{templateText:i});return e(a)}},getSearchSources:e=>r.map(e,(e,t)=>{const{typeaheadConfig:n,bloodhoundConfig:r,name:i,options:o}=e;let a;return r&&(a=D.buildBloodhound(r(i,o))),n({bloodhound:a,name:i},t,o)}),buildBloodhound:e=>new T(e),selectFirstResult(e,t,n,i){if(!n)return;if(this.$el.find(".tt-cursor").length)return;const o=r.first(t);if(!o||r.isEmpty(o))return void this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion");const a=this.$el.find(".add-new");!a||o.id?(a&&a.hasClass("tt-cursor")&&a.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):a.addClass("tt-cursor")},emitEventOnInput(e,t,n,o){if(e)return(a,s)=>{i.Radio.channel(e).trigger(t,a,n,r.extend({},o,s))}},resetAssociationOnBlur:e=>function(t,n){const o=this.model.get(n),a=r.isNumber(this.model.id);return e[n]||a?"string"==typeof o&&o.length?a?void(e.id===this.model.id&&(this.model.set(e),i.Radio.channel(t).trigger("typeahead:set:input",e[n]))):(i.Radio.channel(t).trigger("typeahead:clear:input"),void this.model.set(e)):void 0:(this.model.clear(),void i.Radio.channel(t).trigger("typeahead:clear:input"))},getConfirmSelectionTemplate:(e={})=>()=>new _(e).render().el,clearInputOnBlur(e){i.Radio.channel(e).trigger("typeahead:clear:input")}};var U;!function(e){e.auto="auto",e.top="top",e.bottom="bottom",e.left="left",e.right="right"}(U||(U={}));class j extends c.a.Behavior{get defaults(){return{title:"",placement:U.bottom,size:"popover-md"}}set defaults(e){}get ui(){return{popoverContainer:this.options.containerSelector}}set ui(e){let t={};this.view.ui&&(t=r.result(this.view,"ui")),this.view._ui=r.extend({},t,e)}events(){return{"click .popover":"onClickPopover","inserted.bs.popover":"onPopoverInserted","hidden.bs.popover":"onPopoverHidden"}}bindListeners(){this.options.toggleEventName&&this.listenTo(this.view.channelName,""+this.options.toggleEventName,this.toggle)}bindBodyClickListener(){$("body").one("click.popover"+this.view.cid,this.onClickOutside.bind(this))}bindDropdownListener(){$("body").one("show.bs.dropdown.popover"+this.view.cid,this.onClickOutside.bind(this))}onPopoverInserted(){this.bindBodyClickListener(),this.bindDropdownListener(),this.view.addRegion("content",{el:".popover-content",replaceElement:!0}),this.options.renderContent("content")}onPopoverHidden(){$("body").off("click.popover"+this.view.cid),$("body").off("show.bs.dropdown.popover"+this.view.cid)}toggle(){this.view.$el.popover("toggle")}hide(){this.view.$el.popover("hide")}onClickPopover(e){e.stopPropagation()}onClickOutside(e){this.hide()}getTrigger(){return this.options.toggleEventName?"manual":"click"}onAttach(){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)}}var M=n(252),z=n.n(M),F=n(253),V=n.n(F),H=n(106),q=n.n(H);class B extends c.a.Component{get name(){return"SearchTipComponentItem"}get template(){return V.a}get className(){return"py-2 "+q.a.tip}viewOptions(){return{styles:q.a}}}class J extends c.a.ComponentCollection{get name(){return"SearchTipComponentCollection"}get childView(){return B}}class G extends c.a.Component{initialize(){this.collection=new c.a.Collection([{term:[""+u.a.getPhrase(this.lang,"firstTerm")],description:""+u.a.getPhrase(this.lang,"firstDescription")},{term:[""+u.a.getPhrase(this.lang,"secondTerm")],description:""+u.a.getPhrase(this.lang,"secondDescription")},{term:[""+u.a.getPhrase(this.lang,"thirdTerm")],description:""+u.a.getPhrase(this.lang,"thirdDescription")},{term:[""+u.a.getPhrase(this.lang,"fourthTerm1"),""+u.a.getPhrase(this.lang,"fourthTerm2")],description:""+u.a.getPhrase(this.lang,"fourthDescription")},{term:[""+u.a.getPhrase(this.lang,"fifthTerm")],description:""+u.a.getPhrase(this.lang,"fifthDescription")}])}get name(){return"SearchTipsComponent"}get template(){return z.a}get lang(){return"search.searchTips"}get behaviors(){return[{behaviorClass:j,containerSelector:".popover-container",title:u.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:e=>this.renderTips(e)}]}renderTips(e){this.showChildView(e,new J({collection:this.collection}))}viewOptions(){return{styles:q.a,searchInfoSvg:v.a.getSvg(v.b.Info)}}}class K extends c.a.Behavior{get defaults(){return{placement:"top"}}set defaults(e){}get ui(){return this.options.selector?{tooltip:this.options.selector}:{}}set ui(e){let t={};this.view.ui&&(t=r.result(this.view,"ui")),this.view._ui=r.extend({},t,e)}getElement(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}getOptions(){const e={placement:this.options.placement};return this.options.title&&(e.title=this.options.title),e}onRender(){const e=this.getElement();e.length&&e.tooltip(this.getOptions())}onBeforeDetach(){const e=this.getElement();e instanceof jQuery&&e.tooltip("dispose")}}var W=n(254),Y=n.n(W),Q=n(61),X=n.n(Q);class Z extends c.a.Component{initialize(){this.listenTo(d.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}get name(){return"SearchContextComponent"}get template(){return Y.a}get tagName(){return"span"}get className(){return X.a.searchContextContainer}get behaviors(){return[{behaviorClass:K,selector:".tool-tip",placement:"left"}]}get elements(){return{contextTag:"."+X.a.searchContextTag,clearSvg:"."+X.a.svgContainer}}events(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}onClick(){i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context",{focus:!0}),this.model.set("preventTypeaheadClose",!1)}onMouseEnter(){this.model.set("preventTypeaheadClose",!0)}onMouseLeave(){this.model.set("preventTypeaheadClose",!1)}toggleFocus(e){const t=this.getUI("contextTag");t&&t.get&&(e.open?t.addClass(X.a.tagFocus):t.removeClass(X.a.tagFocus))}viewOptions(){return{styles:X.a,closeSvg:v.a.getSvg(v.b.Close)}}onBeforeRender(){return!!this.model.get("searchTag")}}var ee=n(255),te=n.n(ee),ne=n(256),re=n.n(ne);class ie extends c.a.Component{constructor(e){super(e)}get name(){return"RecentSearchResultComponent"}get template(){return te.a}get className(){return"text-capitalize p-2 container-fluid"}events(){return{"click .remove-recent":"onClick"}}viewOptions(){return{styles:re.a,closeSvg:v.a.getSvg(v.b.Close)}}onClick(e){return e.stopPropagation(),setTimeout(()=>{i.Radio.channel(this.options.channelName).trigger("remove:recent",this.model.get("name"))},0),this.destroy(),!1}}var oe=n(257),ae=n.n(oe);class se extends c.a.Component{get name(){return"SeriesSearchResultComponent"}get template(){return ae.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}}var ce=n(258),le=n.n(ce);class ue extends c.a.Component{get name(){return"TagSearchResultComponent"}get template(){return le.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}}const pe="lazy:load:behavior";var de=n(122),he=n(132),fe=n(259),me=n.n(fe),ge=n(73),ve=n.n(ge);class ye extends c.a.Component{constructor(e){super(e)}initialize(){this.options.channelName&&this.listenTo(this.options.channelName,"show:play:icon",this.showPlayIcon),this.listenTo(this.model,"change:thumbnail",this.render)}get name(){return"ThumbnailComponent"}get template(){return me.a}get tagName(){return"a"}get className(){if(this.options.classNameOverride)return this.options.classNameOverride;let e=ve.a.thumbnailContainer+" responsive-img";return this.options.onClickHandler&&(e+=" cursor-pointer"),e}get elements(){return{["."+ve.a.playSvgContainer]:"showPlayIcon",img:"img"}}events(){return{click:"onClick"}}get appLinks(){return this.options.appLink?{"[this]":this.options.appLink}:{}}get attributes(){return this.options.appLink||!this.options.href?{}:{href:this.options.href,target:"_blank"}}showPlayIcon(){this.$el.find("."+ve.a.playSvgContainer).show()}onClick(e){if(!this.options.appLink&&r.isFunction(this.options.onClickHandler))return this.options.onClickHandler.apply(this,arguments)}onImageLoad(){this.options.channelName&&i.Radio.channel(this.options.channelName).trigger("thumbnail:load")}viewOptions(){const e=this.model.get("duration");return{styles:ve.a,url:de.a.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:e&&he.a.ToDisplayDuration(e),playSvg:v.a.getSvg(v.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}onRender(){if(i.Radio.channel(pe).trigger("update:loader"),this.options.lazyload&&this.options.channelName){const e=this.getUI("img");e.length&&(e[0].onload=r.bind(this.onImageLoad,this))}}}var be=n(260),Ce=n.n(be);class Se extends c.a.Component{initialize(){this.appVariables=p.a.getInstance(h.a.SEARCH,this)}get name(){return"VideoSearchResultComponent"}get template(){return Ce.a}get className(){return"video-result p-2 container-fluid"}regions(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getCollection(){const{categories:e,series:t}=this.model;if(e&&e.length){return{name:e.first().get("name"),type:"Folder"}}if(t&&t.get("name"))return{name:t.get("name"),type:"Series"}}getUrl(){return c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[this.model.get("id")]}))}renderThumbnail(){const e=new ye({model:this.model});this.showChildView("thumbnail",e)}viewOptions(){return{collection:this.getCollection(),url:this.getUrl()}}onRender(){this.renderThumbnail()}}var we=n(116),Ee=n(261),xe=n.n(Ee);class Oe extends c.a.Component{initialize(){this.appVariables=p.a.getInstance(h.a.SEARCH,this)}get name(){return"ClassificationSearchResultComponent"}get template(){return xe.a}get className(){return"p-2 container-fluid"}regions(){return{cover:{replaceElement:!0,el:".cover-region"}}}events(){return{"click a":"onClick"}}onClick(e){return e.preventDefault(),!0}getUrl(){return c.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[this.model.get("id")]}))}renderThumbnail(){const e=new ye({model:this.model,classNameOverride:we.coverImage+" responsive-img"});this.showChildView("cover",e)}viewOptions(){return{url:this.getUrl(),styles:we}}onRender(){this.renderThumbnail()}}var ke=n(229),Le=n.n(ke),Ae=n(230),Te=n.n(Ae),Ne=n(231),Re=n.n(Ne),Pe=n(232),Ie=n.n(Pe),_e=n(233),De=n.n(_e),Ue=n(234),je=n.n(Ue),Me=n(235),ze=n.n(Me),Fe=n(236),Ve=n.n(Fe),He=n(262),qe=n.n(He),Be=n(107),$e=n.n(Be),Je=n(263),Ge=n.n(Je),Ke=n(264),We=n.n(Ke);n.d(t,"a",(function(){return Qe}));const{SuggestionLimit:Ye}=O;class Qe extends c.a.View{constructor(e){super(e),this.viewCache={}}initialize(){this.contextualSearchService=p.a.getInstance(f.b.ContextualSearch,this),this.appVariables=p.a.getInstance(h.a.SEARCH,this),this.storageHelper=l.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}get name(){return"SearchBarView"}get title(){return!1}get tagName(){return"form"}get template(){return qe.a}get lang(){return"search.searchBar"}get channelName(){return"searchbar:"+this.cid}get className(){return"search-query-container position-relative m-0 w-100 form-control p-0 "+$e.a.searchBar}get defaults(){return{showRecentSearch:!0}}get elements(){return{input:"#search",searchBarContainer:".search-bar-container"}}events(){return{submit:"onSubmit",["click ."+$e.a.searchSvgContainer]:"onClickSearch","click a":"onTypeaheadSelect",keydown:"onKeydown"}}get bindings(){return{"[name=search]":{observe:"query",setOptions:{validate:!0}}}}regions(){return{partial:{el:".search-partial-region",replaceElement:!1,partialLoading:{component:g.a.Component,options:{template:We.a,className:"w-100",viewOptions:{styles:Ge.a}}}},searchTips:{el:".search-tips-region",replaceElement:!1},searchContext:{el:".search-context-region",replaceElement:!0}}}get recentSearchKey(){return"recent:search:"+this.currentUser.id}bindListeners(){this.listenTo(d.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(d.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}getOrCacheView(e,t){const{ctor:n,viewOptions:r}=t;return this.viewCache[e]?this.viewCache[e]:this.viewCache[e]=new n(r)}clearViewCache(){r.each(this.viewCache,e=>e.destroy()),this.viewCache={}}getDynamicTemplate(e){return e===C.Recent?e=>this.getOrCacheView("recent:"+e,{ctor:ie,viewOptions:{model:new c.a.Model({name:e}),channelName:this.channelName}}).render().el:e===w.Classification?e=>this.getOrCacheView(e.id,{ctor:Oe,viewOptions:{model:new c.a.Model(e)}}).render().el:e===w.Video?e=>this.getOrCacheView(e.id,{ctor:Se,viewOptions:{model:new c.a.Model(e)}}).render().el:e===w.Folder?Le.a:e===w.Series?e=>this.getOrCacheView(e.id,{ctor:se,viewOptions:{model:new c.a.Model(e)}}).render().el:e===w.Tags?e=>this.getOrCacheView(e.id,{ctor:ue,viewOptions:{model:new c.a.Model(e)}}).render().el:void 0}getLimits(e){return w.Folder,Ye.Folder}updateSearchHistory(e){let{add:t,remove:n,query:r}=e;r=r.trim();const i=A.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:t,remove:n,query:r,limit:Ye.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(i),i}handleRecentSearch(e={}){if(!this.options.showRecentSearch)return;if(this.getUI("input").typeahead("val"))this.$el.find(".tt-menu").removeClass("hide-results");else{if(A.getRecentSearches(this.recentSearchKey,this.storageHelper).length)return;this.$el.find(".tt-menu").addClass("hide-results")}}onDeleteRecentSearch(e){return this.updateSearchHistory({remove:!0,query:e}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}getInstantSearchAppLink(e,t){return t===w.Series?Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:[e.id]}):t===w.Video?Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[e.id]}):t===w.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:e.name}}):t===w.Classification?Object.assign(Object.assign({},this.appVariables.appLinks.classification),{args:[e.id]}):void 0}onTypeaheadSelect(e,t,n){if(e.preventDefault(),e.stopImmediatePropagation(),this.clearViewCache(),"object"==typeof t&&t.id){const e=this.getInstantSearchAppLink(t,n);if(!e)return!1;const{data:r,action:l}=a.a.buildInstantSearchEvent(this.model.get("query"),t,n);return s.a.log(o.n.InstantSearch,r,l),this.model.clear(),this.getUI("input").typeahead("close"),i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),c.a.AppLinkHelper.trigger(e),!1}let r="string"==typeof t?t:t.query;this.model.set({query:r});const l=n===C.Recent?o.c.Recent:o.c.ShowAll;return this.submitQuery(l),!1}onClickSearch(e){return e.stopPropagation(),this.submitQuery(o.c.SearchIcon),!1}onSubmit(e){return e.preventDefault(),this.submitQuery(o.c.Submit),!1}submitQuery(e){this.updateInitialQuery();const t=this.model.get("query");if(!t)return;this.logSearch(t,e),this.updateSearchHistory({add:!0,query:t}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");const n=E.getContextualSearchQueryParams(this.searchContext);i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),c.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:t},n)}))}resetQuery(){this.model.set({query:this.model.get("initialQuery")})}updateInitialQuery(){this.model.set({initialQuery:this.model.get("query")})}logSearch(e,t){const{data:n,action:r}=a.a.buildSearchEvent(e,t);s.a.log(o.n.Search,n,r)}onTypeaheadOpen(e){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});const t=this.model.get("query");t&&t.length>=O.ActivationLength&&this.getUI("input").typeahead("val",t),this.alignTypeahead()}onBeforeTypeaheadClose(e){this.searchContext.get("preventTypeaheadClose")&&(e.preventDefault(),this.getUI("input").focus())}onTypeaheadClose(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}showMask(){this.options.disableMask||(this.$el.addClass("active"),y.showMask())}hideMask(){this.options.disableMask||y.hideMask()}alignTypeahead(){const e=$(".tt-menu");this.searchContext.get("title")?e.addClass("typeahead-shift"):e.hasClass("typeahead-shift")&&e.removeClass("typeahead-shift")}onTypeaheadRender(e,t,n,r){r===C.Recent&&this.handleRecentSearch()}initTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:select",r.bind(this.onTypeaheadSelect,this)),e.on("typeahead:render",r.bind(this.onTypeaheadRender,this)),e.on("typeahead:beforeclose",r.bind(this.onBeforeTypeaheadClose,this)),e.on("typeahead:close",r.bind(this.onTypeaheadClose,this)),e.on("typeahead:open",r.bind(this.onTypeaheadOpen,this))}initNoLibrariesTypeaheadListeners(){const e=this.getUI("input");e.on("typeahead:open",r.bind(this.showMask,this)),e.on("typeahead:close",r.bind(this.hideMask,this)),e.on("typeahead:select",r.bind(()=>{c.a.AppLinkHelper.trigger(this.appVariables.appLinks.newLibrary)},this))}onKeydown(e){8!==e.keyCode||this.model.get("query")||i.Radio.channel(d.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}onResetSearchContext(e){e&&e.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}getRecentSearchBloodhound(){const e=A.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:e})}getDynamicBloodhoundConfig(){return L.bloodhoundConfig}getDynamicTypeaheadConfig(){const e=D.getTemplate(je.a,{fallbackTemplate:Ie.a}),t=D.getTemplate(Re.a,{fallbackTemplate:Ie.a,templateText:u.a.getPhrase(this.lang,"findingResults")});return(n,r)=>({name:this.getConfigName(n.name),source:D.handleQuery(n.bloodhound,{fetchType:S.Remote}),limit:this.getLimits(n.name),display:e=>e.name,async:!0,templates:{header:e,pending:0===r?t:Ie.a,notFound:Ie.a,suggestion:this.getDynamicTemplate(n.name),footer:De.a}})}getConfigName(e){switch(e){case w.Classification:return u.a.getPhrase(this.lang,"classifications");case w.Video:return u.a.getPhrase(this.lang,"videos");case w.Tags:return u.a.getPhrase(this.lang,"tags");case w.Series:return u.a.getPhrase(this.lang,"series")}return e}getDynamicOptions(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext,presentationId:this.options.presentationId}}getRecentSearchSources(){return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:C.Recent,source:D.handleQuery(this.recentSearchEngine,{fetchType:S.Local,ignoreOnQuery:!0}),limit:Ye.Default,templates:{header:()=>ze.a({templateText:u.a.getPhrase(this.lang,"recentSearches")}),suggestion:this.getDynamicTemplate(C.Recent)}}]}getDirectSearchSources(){return[{name:C.Direct,source:D.handleQuery(),display:e=>e.query,templates:{suggestion:D.getTemplate(Te.a,{fallbackTemplate:Ie.a,templateText:u.a.getPhrase(this.lang,"allResults")}),footer:De.a}}]}getDynamicSearchSources(){const e=this.getDynamicBloodhoundConfig(),t=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return D.getSearchSources([{name:w.Classification,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:w.Series,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:w.Folder,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:w.Video,bloodhoundConfig:e,typeaheadConfig:t,options:n},{name:w.Tags,bloodhoundConfig:e,typeaheadConfig:t,options:n}])}getSources(){const e=[...this.getDirectSearchSources(),...this.getDynamicSearchSources()];return this.options.showRecentSearch&&e.push(...this.getRecentSearchSources()),e}getNoLibrariesSource(){return[{name:"NoLibrary",source:D.handleQuery(),display:e=>e.query,templates:{suggestion:D.getTemplate(Ve.a,{fallbackTemplate:Ie.a,templateText:u.a.getPhrase(this.lang,"noLibraries")})}}]}initializeTypeahead(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)}hasLibraries(){return!!this.libraryCollection.length}getLibraryIds(){return this.libraryCollection.map(e=>e.id)}viewOptions(){return{styles:$e.a,svg:v.a.getSvg(v.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,libraryText:u.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}get requiredResources(){return{currentUser:m.b.currentUser,libraryCollection:b.libraries}}renderSearchTips(){this.showChildView("searchTips",new G)}renderSearch(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),i.Validation.bind(this)}renderPartialSearch(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}renderSearchContext(){this.isRendered()&&this.showChildView("searchContext",new Z({model:this.searchContext}))}onRender(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}onClose(){this.getUI("input").off(),this.unstickit(),i.Validation.unbind(this)}}},function(e,t,n){"use strict";var r,i=n(121);!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={}));class o extends i.a{getSortTypeParam(){return r[this.sort]}}n.d(t,"a",(function(){return o}))},function(e,t){e.exports=m},function(e,t,n){e.exports=n(397).default},function(e,t){e.exports=g},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<span class="badge badge-danger badge-pill '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.unreadCount:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.unreadCount:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+"\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.unreadCount:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.heading:o,t))+"</h4>\r\n"},3:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return"<p>"+(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.description:o,t))?o:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<img src="'+s(a(null!=(o=null!=t?t.options:t)?o.imageUrl:o,t))+'" class="'+s(a(null!=(o=null!=t?t.options:t)?o.imageClass:o,t))+'"/>\r\n'+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.heading:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=n.if.call(c,null!=(o=null!=t?t.options:t)?o.description:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <span class="text-right pl-2 '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.actionText:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.actionText:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.icon:o,t))+" "+s(a(null!=(o=null!=t?t.options:t)?o.iconClass:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.icon:o,t))?o:"")+'</div><div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.contentContainer:o,t))+'">\r\n <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.content:o,t))+' pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.content:o,t))+"</div>\r\n"+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showActionText:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+' <div class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.notificationTime:o,t))+' pl-1">'+s(a(null!=(o=null!=t?t.options:t)?o.notificationTime:o,t))+"</div>\r\n</div>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="notifications-region"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,i){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:i}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,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:i}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.hasNotifications:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="notifications-status-region" data-toggle="dropdown"></div>\r\n<div class="notifications-region dropdown-menu dropdown-menu-right dropdown-arrow p-0 '+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.notificationsContainer:o,t))+'"></div>'},useData:!0})},function(e,t,n){e.exports={notificationsContainer:"_3BMCf"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.confirmSelectionText:o,t))?o:"")+"\r\n</span> "},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return'<div class="cursor-pointer svg-container '+e.escapeExpression(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+'" data-toggle="popover">\r\n '+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.searchInfoSvg:o,t))?o:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,i,o,a){e.propertyIsEnumerable;var s,c=e.lambda,l=e.escapeExpression;return' <span class="border rounded align-middle '+l(c(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.term:s,t))+'">'+l(c(t,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i,o,a){e.propertyIsEnumerable;var s,c,l=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<span class="d-inline-block '+l(e.lambda(null!=(s=null!=(s=null!=t?t.options:t)?s.styles:s)?s.termContainer:s,t))+'">\r\n'+(null!=(s=n.each.call(u,null!=t?t.term:t,{name:"each",hash:{},fn:e.program(1,i,0,o,a),inverse:e.noop,data:i}))?s:"")+"</span>\r\n<span>"+l("function"==typeof(c=null!=(c=n.description||(null!=t?t.description:t))?c:e.hooks.helperMissing)?c.call(u,{name:"description",hash:{},data:i}):c)+"</span>"},useData:!0,useDepths:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.lambda,c=e.escapeExpression,l=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchContextTag:o,t))+'" title="'+c("function"==typeof(a=null!=(a=n.title||(null!=t?t.title:t))?a:u)?a.call(l,{name:"title",hash:{},data:i}):a)+'">\r\n <span>'+c("function"==typeof(a=null!=(a=n.searchTag||(null!=t?t.searchTag:t))?a:u)?a.call(l,{name:"searchTag",hash:{},data:i}):a)+'</span>\r\n <span class="'+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+'">'+(null!=(o=s(null!=(o=null!=t?t.options:t)?o.closeSvg:o,t))?o:"")+"</span>\r\n</span>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.escapeExpression,c=e.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+s("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:i}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+s(c(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.removeRecent:o,t))+'">'+(null!=(o=c(null!=(o=null!=t?t.options:t)?o.closeSvg:o,t))?o:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(e,t,n){e.exports={removeRecent:"d1QVW"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(o=null!=(o=n.url||(null!=t?t.url:t))?o:s)?o.call(a,{name:"url",hash:{},data:i}):o)+'">'+c("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:s)?o.call(a,{name:"name",hash:{},data:i}):o)+"</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,c=e.escapeExpression;return'<a href="'+c("function"==typeof(o=null!=(o=n.url||(null!=t?t.url:t))?o:s)?o.call(a,{name:"url",hash:{},data:i}):o)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+c("function"==typeof(o=null!=(o=n.name||(null!=t?t.name:t))?o:s)?o.call(a,{name:"name",hash:{},data:i}):o)+"</span>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return"<img "+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.lazyload:o,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+'src="'+c(s(null!=(o=null!=t?t.options:t)?o.url:o,t))+'" class="img-fluid lazy-img w-100 '+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.thumbnail:o,t))+'" />\r\n'+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.playIcon:o,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?o:"")},2:function(e,t,n,r,i){return"data-"},4:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda;return'<div class="'+e.escapeExpression(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.playSvgContainer:o,t))+'" '+(null!=(o=n.if.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.lazyload:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+">"+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.playSvg:o,t))?o:"")+"</div>\r\n"},5:function(e,t,n,r,i){return'style="display: none;"'},7:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return'<span class="badge float-right '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.durationOverlay:o,t))+'">'+s(a(null!=(o=null!=t?t.options:t)?o.duration:o,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=null!=t?t:e.nullContext||{},s=e.lambda;return(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.url:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'<div class="'+e.escapeExpression(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.svgContainer:o,t))+'">'+(null!=(o=s(null!=(o=null!=t?t.options:t)?o.playSvg:o,t))?o:"")+"</div>\r\n"+(null!=(o=n.if.call(a,null!=(o=null!=t?t.options:t)?o.duration:o,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?o:"")},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,i){return"aligned"},3:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=e.escapeExpression;return' <div class="result-title collection"> '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.collection:o)?o.type:o,t))+": "+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.collection:o)?o.name:o,t))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<a class="row" href="'+s(e.lambda(null!=(o=null!=t?t.options:t)?o.url:o,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!=(o=n.unless.call(c,null!=(o=null!=t?t.options:t)?o.collection:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+'">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:i}):a)+"</div>\r\n"+(null!=(o=n.if.call(c,null!=(o=null!=(o=null!=t?t.options:t)?o.collection:o)?o.name:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+" </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a,s=e.lambda,c=e.escapeExpression;return'<a class="row" href="'+c(s(null!=(o=null!=t?t.options:t)?o.url:o,t))+'">\r\n <div class="'+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.coverContainer:o,t))+' px-2">\r\n <div class="cover-region"></div>\r\n </div>\r\n <div class="'+c(s(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.textContainer:o,t))+' px-2">\r\n <div class="result-title text-capitalize">'+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:i}):a)+"</div>\r\n </div>\r\n</a>"},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({1:function(e,t,n,r,i){e.propertyIsEnumerable;var o,a=e.lambda,s=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="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchInput:o,t))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+s(a(null!=(o=null!=t?t.options:t)?o.libraryText:o,t))+'" aria-label="Search">\r\n</div>\r\n<span class="'+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchSvgContainer:o,t))+'">'+(null!=(o=a(null!=(o=null!=t?t.options:t)?o.svg:o,t))?o:"")+'</span>\r\n<button type="submit" tabindex="-1" style="display:none"></button>\r\n<span class="search-tips-region '+s(a(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.tipsContainer:o,t))+'"></span>\r\n'},3:function(e,t,n,r,i){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.showPartial:o,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?o:""},useData:!0})},function(e,t,n){e.exports={searchBar:"_2oChq"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var o;e.propertyIsEnumerable;return'<div class="'+e.escapeExpression(e.lambda(null!=(o=null!=(o=null!=t?t.options:t)?o.styles:o)?o.searchBar:o,t))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(e,t,n){e.exports={avatar:"_3RyZE"}},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region position-relative"></div>\r\n<div id="dialog-region"></div>'},useData:!0})},function(e,t,n){var r=n(18);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){return'<div class="layout-region"></div>'},useData:!0})},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 i,o,a,s=t||[0],c=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<e.length;i+=1)o=(a=i+c)>>>2,s.length<=o&&s.push(0),s[o]|=e[i]<<8*(l+r*(a%4));return{value:s,binLen:8*e.length+n}}function r(e,r,i){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 i,o,a,s;if(0!=e.length%2)throw new Error("String of HEX type must be in byte increments");var c=t||[0],l=(n=n||0)>>>3,u=-1===r?3:0;for(i=0;i<e.length;i+=2){if(o=parseInt(e.substr(i,2),16),isNaN(o))throw new Error("String of HEX type contains invalid characters");for(a=(s=(i>>>1)+l)>>>2;c.length<=a;)c.push(0);c[a]|=o<<8*(u+r*(s%4))}return{value:c,binLen:4*e.length+n}}(e,t,n,i)};case"TEXT":return function(e,t,n){return function(e,t,n,r,i){var o,a,s,c,l,u,p,d,h=0,f=n||[0],m=(r=r||0)>>>3;if("UTF8"===t)for(p=-1===i?3:0,s=0;s<e.length;s+=1)for(a=[],128>(o=e.charCodeAt(s))?a.push(o):2048>o?(a.push(192|o>>>6),a.push(128|63&o)):55296>o||57344<=o?a.push(224|o>>>12,128|o>>>6&63,128|63&o):(s+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(s)),a.push(240|o>>>18,128|o>>>12&63,128|o>>>6&63,128|63&o)),c=0;c<a.length;c+=1){for(l=(u=h+m)>>>2;f.length<=l;)f.push(0);f[l]|=a[c]<<8*(p+i*(u%4)),h+=1}else for(p=-1===i?2:0,d="UTF16LE"===t&&1!==i||"UTF16LE"!==t&&1===i,s=0;s<e.length;s+=1){for(o=e.charCodeAt(s),!0===d&&(o=(c=255&o)<<8|o>>>8),l=(u=h+m)>>>2;f.length<=l;)f.push(0);f[l]|=o<<8*(p+i*(u%4)),h+=2}return{value:f,binLen:8*h+r}}(e,r,t,n,i)};case"B64":return function(e,n,r){return function(e,n,r,i){var o,a,s,c,l,u,p=0,d=n||[0],h=(r=r||0)>>>3,f=-1===i?3:0,m=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!==m&&m<e.length)throw new Error("Invalid '=' found in base-64 string");for(o=0;o<e.length;o+=4){for(c=e.substr(o,4),s=0,a=0;a<c.length;a+=1)s|=t.indexOf(c.charAt(a))<<18-6*a;for(a=0;a<c.length-1;a+=1){for(l=(u=p+h)>>>2;d.length<=l;)d.push(0);d[l]|=(s>>>16-8*a&255)<<8*(f+i*(u%4)),p+=1}}return{value:d,binLen:8*p+r}}(e,n,r,i)};case"BYTES":return function(e,t,n){return function(e,t,n,r){var i,o,a,s,c=t||[0],l=(n=n||0)>>>3,u=-1===r?3:0;for(o=0;o<e.length;o+=1)i=e.charCodeAt(o),a=(s=o+l)>>>2,c.length<=a&&c.push(0),c[a]|=i<<8*(u+r*(s%4));return{value:c,binLen:8*e.length+n}}(e,t,n,i)};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,i){return n(new Uint8Array(e),t,r,i)}(e,t,r,i)};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,i)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(e,n,r,i){switch(e){case"HEX":return function(e){return function(e,t,n,r){var i,o,a="",s=t/8,c=-1===n?3:0;for(i=0;i<s;i+=1)o=e[i>>>2]>>>8*(c+n*(i%4)),a+="0123456789abcdef".charAt(o>>>4&15)+"0123456789abcdef".charAt(15&o);return r.outputUpper?a.toUpperCase():a}(e,n,r,i)};case"B64":return function(e){return function(e,n,r,i){var o,a,s,c,l,u="",p=n/8,d=-1===r?3:0;for(o=0;o<p;o+=3)for(c=o+1<p?e[o+1>>>2]:0,l=o+2<p?e[o+2>>>2]:0,s=(e[o>>>2]>>>8*(d+r*(o%4))&255)<<16|(c>>>8*(d+r*((o+1)%4))&255)<<8|l>>>8*(d+r*((o+2)%4))&255,a=0;a<4;a+=1)u+=8*o+6*a<=n?t.charAt(s>>>6*(3-a)&63):i.b64Pad;return u}(e,n,r,i)};case"BYTES":return function(e){return function(e,t,n){var r,i,o="",a=t/8,s=-1===n?3:0;for(r=0;r<a;r+=1)i=e[r>>>2]>>>8*(s+n*(r%4))&255,o+=String.fromCharCode(i);return o}(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,i=t/8,o=new ArrayBuffer(i),a=new Uint8Array(o),s=-1===n?3:0;for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(s+n*(r%4))&255;return o}(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,i=t/8,o=-1===n?3:0,a=new Uint8Array(i);for(r=0;r<i;r+=1)a[r]=e[r>>>2]>>>8*(o+n*(r%4))&255;return a}(e,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(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 s(e,t,n){return e^t^n}function c(e,t,n){return e&t^e&n^t&n}function l(e,t){var n=(65535&e)+(65535&t);return(65535&(e>>>16)+(t>>>16)+(n>>>16))<<16|65535&n}function u(e,t,n,r,i){var o=(65535&e)+(65535&t)+(65535&n)+(65535&r)+(65535&i);return(65535&(e>>>16)+(t>>>16)+(n>>>16)+(r>>>16)+(i>>>16)+(o>>>16))<<16|65535&o}function p(e){return[1732584193,4023233417,2562383102,271733878,3285377520]}function d(e,t){var n,r,i,o,p,d,h,f,m=[];for(n=t[0],r=t[1],i=t[2],o=t[3],p=t[4],h=0;h<80;h+=1)m[h]=h<16?e[h]:a(m[h-3]^m[h-8]^m[h-14]^m[h-16],1),d=h<20?u(a(n,5),(f=r)&i^~f&o,p,1518500249,m[h]):h<40?u(a(n,5),s(r,i,o),p,1859775393,m[h]):h<60?u(a(n,5),c(r,i,o),p,2400959708,m[h]):u(a(n,5),s(r,i,o),p,3395469782,m[h]),p=o,o=i,i=a(r,30),r=n,n=d;return t[0]=l(n,t[0]),t[1]=l(r,t[1]),t[2]=l(i,t[2]),t[3]=l(o,t[3]),t[4]=l(p,t[4]),t}function h(e,t,n,r){for(var i,o=15+(t+65>>>9<<4),a=t+n;e.length<=o;)e.push(0);for(e[t>>>5]|=128<<24-t%32,e[o]=4294967295&a,e[o-1]=a/4294967296|0,i=0;i<e.length;i+=16)r=d(e.slice(i,i+16),r);return r}return function(t){function n(e,n,i){var o=this;if("SHA-1"!==e)throw new Error("Chosen SHA variant is not supported");var a=i||{};return(o=t.call(this,e,n,i)||this).t=!0,o.i=o.o,o.u=-1,o.s=r(o.h,o.v,o.u),o.A=d,o.p=function(e){return e.slice()},o.l=p,o.R=h,o.U=[1732584193,4023233417,2562383102,271733878,3285377520],o.T=512,o.m=160,o.F=!1,a.hmacKey&&o.B(function(e,t,n,i){var o="hmacKey must include a value and format";if(!t)throw new Error(o);if(void 0===t.value||!t.format)throw new Error(o);return r(t.format,t.encoding||"UTF8",n)(t.value)}(0,a.hmacKey,o.u)),o}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,i=this.s(e,this.Y,this.I),o=i.binLen,a=i.value,s=o>>>5;for(t=0;t<s;t+=r)n+this.T<=o&&(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=o%this.T,this.C=!0},e.prototype.getHash=function(e,t){var n,r,a=this.m,s=o(t);if(!0===this.F){if(-1===s.outputLen)throw new Error("Output length must be specified in options");a=s.outputLen}var c=i(e,a,this.u,s);if(!0===this.L&&this.i)return c(this.i(s));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 c(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 i=r(t,(n||{}).encoding||"UTF8",this.u);this.B(i(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=o(t);return i(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.11"}')},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){e.exports=JSON.parse("{}")},function(e){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){var r=function(e){"use strict";var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n,r){var i=t&&t.prototype instanceof u?t:u,o=Object.create(i.prototype),a=new w(r||[]);return o._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return x()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=s;var l={};function u(){}function p(){}function d(){}var h={};h[i]=function(){return this};var f=Object.getPrototypeOf,m=f&&f(f(E([])));m&&m!==t&&n.call(m,i)&&(h=m);var g=d.prototype=u.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function y(e){var t;this._invoke=function(r,i){function o(){return new Promise((function(t,o){!function t(r,i,o,a){var s=c(e[r],e,i);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"==typeof u&&n.call(u,"__await")?Promise.resolve(u.__await).then((function(e){t("next",e,o,a)}),(function(e){t("throw",e,o,a)})):Promise.resolve(u).then((function(e){l.value=e,o(l)}),(function(e){return t("throw",e,o,a)}))}a(s.arg)}(r,i,t,o)}))}return t=t?t.then(o,o):o()}}function b(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,b(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function w(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:x}}function x(){return{value:void 0,done:!0}}return p.prototype=g.constructor=d,d.constructor=p,d[a]=p.displayName="GeneratorFunction",e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,a in e||(e[a]="GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},v(y.prototype),y.prototype[o]=function(){return this},e.AsyncIterator=y,e.async=function(t,n,r,i){var o=new y(s(t,n,r,i));return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},v(g),g[a]="Generator",g[i]=function(){return this},g.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,w.prototype={constructor:w,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),c=n.call(o,"finallyLoc");if(s&&c){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},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(398));var i=r.tokenize,o=r.options.Options;function a(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function s(e){return e.replace(/"/g,"&quot;")}function c(e){if(!e)return"";var t=[];for(var n in e){var r=e[n]+"";t.push(n+'="'+s(r)+'"')}return t.join(" ")}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=new o(t);for(var n=i(e),r=[],l=0;l<n.length;l++){var u=n[l];if("nl"===u.type&&t.nl2br)r.push("<br>\n");else if(u.isLink&&t.check(u)){var p=t.resolve(u),d=p.formatted,h=p.formattedHref,f=p.tagName,m=p.className,g=p.target,v=p.attributes,y="<"+f+' href="'+s(h)+'"';m&&(y+=' class="'+s(m)+'"'),g&&(y+=' target="'+s(g)+'"'),v&&(y+=" "+c(v)),y+=">"+a(d)+"</"+f+">",r.push(y)}else r.push(a(u.toString()))}return r.join("")}if(!String.prototype.linkify)try{Object.defineProperty(String.prototype,"linkify",{set:function(){},get:function(){return function(e){return l(this,e)}}})}catch(e){String.prototype.linkify||(String.prototype.linkify=function(e){return l(this,e)})}t.default=l},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(85),i=s(n(399)),o=s(n(400)),a=s(n(401));function s(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 c=function(e){return a.run(o.run(e))};t.find=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e),r=[],i=0;i<n.length;i++){var o=n[i];!o.isLink||t&&o.type!==t||r.push(o.toObject())}return r},t.inherits=r.inherits,t.options=i,t.parser=a,t.scanner=o,t.test=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c(e);return 1===n.length&&n[0].isLink&&(!t||n[0].type===t)},t.tokenize=c},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},i={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 o(e){e=e||{},this.defaultProtocol=e.hasOwnProperty("defaultProtocol")?e.defaultProtocol:i.defaultProtocol,this.events=e.hasOwnProperty("events")?e.events:i.events,this.format=e.hasOwnProperty("format")?e.format:i.format,this.formatHref=e.hasOwnProperty("formatHref")?e.formatHref:i.formatHref,this.nl2br=e.hasOwnProperty("nl2br")?e.nl2br:i.nl2br,this.tagName=e.hasOwnProperty("tagName")?e.tagName:i.tagName,this.target=e.hasOwnProperty("target")?e.target:i.target,this.validate=e.hasOwnProperty("validate")?e.validate:i.validate,this.ignoreTags=[],this.attributes=e.attributes||e.linkAttributes||i.attributes,this.className=e.hasOwnProperty("className")?e.className:e.linkClass||i.className;for(var t=e.hasOwnProperty("ignoreTags")?e.ignoreTags:i.ignoreTags,n=0;n<t.length;n++)this.ignoreTags.push(t[n].toUpperCase())}function a(e){return e}t.defaults=i,t.Options=o,t.contains=function(e,t){for(var n=0;n<e.length;n++)if(e[n]===t)return!0;return!1},o.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 o=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(o=a.hasOwnProperty(n.type)?a[n.type]:i[e])?o(t,n.type):o}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(223),i=n(111),o=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}(i);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("|"),s="0123456789".split(""),c="0123456789abcdefghijklmnopqrstuvwxyz".split(""),l=[" ","\f","\r","\t","\v"," "," ","᠎"],u=[],p=function(e){return new r.CharacterState(e)},d=p(),h=p(i.NUM),f=p(i.DOMAIN),m=p(),g=p(i.WS);d.on("@",p(i.AT)).on(".",p(i.DOT)).on("+",p(i.PLUS)).on("#",p(i.POUND)).on("?",p(i.QUERY)).on("/",p(i.SLASH)).on("_",p(i.UNDERSCORE)).on(":",p(i.COLON)).on("{",p(i.OPENBRACE)).on("[",p(i.OPENBRACKET)).on("<",p(i.OPENANGLEBRACKET)).on("(",p(i.OPENPAREN)).on("}",p(i.CLOSEBRACE)).on("]",p(i.CLOSEBRACKET)).on(">",p(i.CLOSEANGLEBRACKET)).on(")",p(i.CLOSEPAREN)).on("&",p(i.AMPERSAND)).on([",",";","!",'"',"'"],p(i.PUNCTUATION)),d.on("\n",p(i.NL)).on(l,g),g.on(l,g);for(var v=0;v<a.length;v++){var y=(0,r.stateify)(a[v],d,i.TLD,i.DOMAIN);u.push.apply(u,y)}var b=(0,r.stateify)("file",d,i.DOMAIN,i.DOMAIN),C=(0,r.stateify)("ftp",d,i.DOMAIN,i.DOMAIN),S=(0,r.stateify)("http",d,i.DOMAIN,i.DOMAIN),w=(0,r.stateify)("mailto",d,i.DOMAIN,i.DOMAIN);u.push.apply(u,b),u.push.apply(u,C),u.push.apply(u,S),u.push.apply(u,w);var E=b.pop(),x=C.pop(),O=S.pop(),k=w.pop(),L=p(i.DOMAIN),A=p(i.PROTOCOL),T=p(i.MAILTO);x.on("s",L).on(":",A),O.on("s",L).on(":",A),u.push(L),E.on(":",A),L.on(":",A),k.on(":",T);var N=(0,r.stateify)("localhost",d,i.LOCALHOST,i.DOMAIN);u.push.apply(u,N),d.on(s,h),h.on("-",m).on(s,h).on(c,f),f.on("-",m).on(c,f);for(var R=0;R<u.length;R++)u[R].on("-",m).on(c,f);m.on("-",m).on(s,f).on(c,f),d.defaultTransition=p(i.SYM);var P=d;t.State=r.CharacterState,t.TOKENS=o,t.run=function(e){for(var t=e.replace(/[A-Z]/g,(function(e){return e.toLowerCase()})),n=e.length,r=[],i=0;i<n;){for(var o=d,a=null,s=0,c=null,l=-1;i<n&&(a=o.next(t[i]));)(o=a).accepts()?(l=0,c=o):l>=0&&l++,s++,i++;if(!(l<0)){i-=l,s-=l;var u=c.emit();r.push(new u(e.substr(i-s,s)))}}return r},t.start=P},function(e,t,n){"use strict";t.__esModule=!0,t.start=t.run=t.TOKENS=t.State=void 0;var r=n(223),i=n(402),o=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}(i),a=n(111);var s=function(e){return new r.TokenState(e)},c=s(),l=s(),u=s(),p=s(),d=s(),h=s(),f=s(),m=s(i.URL),g=s(),v=s(i.URL),y=s(i.URL),b=s(),C=s(),S=s(),w=s(),E=s(),x=s(i.URL),O=s(i.URL),k=s(i.URL),L=s(i.URL),A=s(),T=s(),N=s(),R=s(),P=s(),I=s(),_=s(i.EMAIL),D=s(),U=s(i.EMAIL),j=s(i.MAILTOEMAIL),M=s(),z=s(),F=s(),V=s(),H=s(i.NL);c.on(a.NL,H).on(a.PROTOCOL,l).on(a.MAILTO,u).on(a.SLASH,p),l.on(a.SLASH,p),p.on(a.SLASH,d),c.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,m).on(a.NUM,h),d.on(a.TLD,y).on(a.DOMAIN,y).on(a.NUM,y).on(a.LOCALHOST,y),h.on(a.DOT,f),P.on(a.DOT,I),f.on(a.TLD,m).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),I.on(a.TLD,_).on(a.DOMAIN,P).on(a.NUM,P).on(a.LOCALHOST,P),m.on(a.DOT,f),_.on(a.DOT,I),m.on(a.COLON,g).on(a.SLASH,y),g.on(a.NUM,v),v.on(a.SLASH,y),_.on(a.COLON,D),D.on(a.NUM,U);var q=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],B=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];y.on(a.OPENBRACE,C).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,E),b.on(a.OPENBRACE,C).on(a.OPENBRACKET,S).on(a.OPENANGLEBRACKET,w).on(a.OPENPAREN,E),C.on(a.CLOSEBRACE,y),S.on(a.CLOSEBRACKET,y),w.on(a.CLOSEANGLEBRACKET,y),E.on(a.CLOSEPAREN,y),x.on(a.CLOSEBRACE,y),O.on(a.CLOSEBRACKET,y),k.on(a.CLOSEANGLEBRACKET,y),L.on(a.CLOSEPAREN,y),A.on(a.CLOSEBRACE,y),T.on(a.CLOSEBRACKET,y),N.on(a.CLOSEANGLEBRACKET,y),R.on(a.CLOSEPAREN,y),C.on(q,x),S.on(q,O),w.on(q,k),E.on(q,L),C.on(B,A),S.on(B,T),w.on(B,N),E.on(B,R),x.on(q,x),O.on(q,O),k.on(q,k),L.on(q,L),x.on(B,x),O.on(B,O),k.on(B,k),L.on(B,L),A.on(q,x),T.on(q,O),N.on(q,k),R.on(q,L),A.on(B,A),T.on(B,T),N.on(B,N),R.on(B,R),y.on(q,y),b.on(q,y),y.on(B,b),b.on(B,b),u.on(a.TLD,j).on(a.DOMAIN,j).on(a.NUM,j).on(a.LOCALHOST,j),j.on(q,j).on(B,M),M.on(q,j).on(B,M);var $=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on($,z).on(a.AT,F),m.on($,z).on(a.AT,F),f.on($,z),z.on($,z).on(a.AT,F).on(a.DOT,V),V.on($,z),F.on(a.TLD,P).on(a.DOMAIN,P).on(a.LOCALHOST,_);t.State=r.TokenState,t.TOKENS=o,t.run=function(e){for(var t=e.length,n=0,r=[],o=[];n<t;){for(var a=c,s=null,l=null,u=0,p=null,d=-1;n<t&&!(s=a.next(e[n]));)o.push(e[n++]);for(;n<t&&(l=s||a.next(e[n]));)s=null,(a=l).accepts()?(d=0,p=a):d>=0&&d++,n++,u++;if(d<0)for(var h=n-u;h<n;h++)o.push(e[h]);else{o.length>0&&(r.push(new i.TEXT(o)),o=[]),n-=d,u-=d;var f=p.emit();r.push(new f(e.slice(n-u,n)))}}return o.length>0&&r.push(new i.TEXT(o)),r},t.start=c},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(224),i=n(85),o=n(111);function a(e){return e instanceof o.DOMAIN||e instanceof o.TLD}var s=(0,r.createTokenClass)();s.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 c=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0}),l=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),u=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"text"}),p=(0,i.inherits)(s,(0,r.createTokenClass)(),{type:"nl"}),d=(0,i.inherits)(s,(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,i=[],s=0;r[s]instanceof o.PROTOCOL;)t=!0,i.push(r[s].toString().toLowerCase()),s++;for(;r[s]instanceof o.SLASH;)n=!0,i.push(r[s].toString()),s++;for(;a(r[s]);)i.push(r[s].toString().toLowerCase()),s++;for(;s<r.length;s++)i.push(r[s].toString());return i=i.join(""),t||n||(i=e+"://"+i),i},hasProtocol:function(){return this.v[0]instanceof o.PROTOCOL}});t.Base=s,t.MAILTOEMAIL=c,t.EMAIL=l,t.NL=p,t.TEXT=u,t.URL=d},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,t,n){"use strict";n.r(t);n(270),n(271),n(272),n(273),n(274),n(275),n(276),n(277),n(278),n(279),n(280),n(281),n(282),n(283),n(284),n(285),n(286),n(287),n(288),n(289),n(290),n(291),n(292),n(293),n(294),n(295),n(296),n(297),n(298),n(299),n(300),n(301),n(302),n(303),n(304),n(305),n(306),n(307),n(308),n(309),n(310),n(311),n(312),n(313),n(314),n(315),n(316),n(317),n(318),n(319),n(320),n(321),n(322),n(323),n(324),n(325),n(326),n(327),n(328),n(329),n(330),n(331),n(332),n(333),n(334),n(335),n(336),n(337),n(338),n(339),n(340),n(341),n(342),n(343),n(344),n(345),n(346),n(347),n(348),n(349),n(350),n(351),n(352),n(353),n(354),n(355),n(356),n(357),n(358),n(359),n(360),n(361),n(362),n(363),n(364),n(365),n(366),n(367),n(368),n(369),n(370),n(371),n(372),n(373),n(374),n(375),n(376),n(377),n(378),n(379),n(380),n(381),n(382),n(383),n(384),n(385),n(386),n(387),n(388),n(389),n(390),n(391),n(392),n(393),n(394),n(395),n(396);var r=n(2),i=n(0),o=n.n(i),a=n(5),s=n(87),c=n(15);class l extends s.a{onShowAlert(e){if(!this.layoutOptions.options.alertRegion)return;const{ctor:t,collection:n}=e,r=n?n.toJSON():[];this.layout.showChildView(this.layoutOptions.options.alertRegion,i.createElement(t,{alerts:r,removeAlert:e=>a.Radio.channel(c.a.ALERT).trigger("remove:alert",e)}))}}const u="content",p="popup",d="alert";var h="TeacherLayout",f="EmbedLayout",m=n(4),g=n(3);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 y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function b(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,n){return t&&b(e.prototype,t),n&&b(e,n),e}function S(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 E(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 i=O(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return x(this,n)}}function x(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 O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){S(n,e);var t=E(n);function n(){return y(this,n),t.apply(this,arguments)}return C(n,[{key:"channelName",get:function(){return m.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"]}}]),n}(r.a.AppRouter),L=function(e){S(r,e);var t=E(r);function r(){return y(this,r),t.apply(this,arguments)}return C(r,[{key:"index",value:function(){var e=this;n.e(19).then(n.bind(null,657)).then((function(t){var n=t.ClassroomsView;e.layout.showChildView(u,o.a.createElement(n,null))}))}},{key:"classroom",value:function(e){var t=this;n.e(25).then(n.bind(null,655)).then((function(n){var r=n.ClassroomView;t.layout.showChildView(u,o.a.createElement(r,{id:e}))}))}},{key:"manageClassroom",value:function(e,t){var r=this,i=t.tab;["students","groups"].includes(i)||(i="students"),Promise.all([n.e(1),n.e(0),n.e(2),n.e(14)]).then(n.bind(null,651)).then((function(t){var n=t.ManageClassroomView;r.layout.showChildView(u,o.a.createElement(n,{id:e,activeTab:i}))}))}},{key:"newClassroom",value:function(){var e=this;Promise.all([n.e(1),n.e(31)]).then(n.bind(null,620)).then((function(t){var n=t.CreateClassroomView,r={actionType:g.n.Create,entity:g.d.Classroom,workflowPhase:g.o.Complete,location:g.j.Popup};e.layout.showChildView(p,o.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(32)]).then(n.bind(null,621)).then((function(n){var r=n.EditClassroomView,i={actionType:g.n.Edit,entity:g.d.Classroom,workflowPhase:g.o.Complete,location:g.j.Popup};t.layout.showChildView(p,o.a.createElement(r,{id:e,analyticsOptions:i,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"deleteClassroom",value:function(e){var t=this;n.e(47).then(n.bind(null,622)).then((function(n){var r=n.DeleteClassroomView,i={actionType:g.n.Delete,entity:g.d.Classroom,workflowPhase:g.o.Complete,location:g.j.Popup};t.layout.showChildView(p,o.a.createElement(r,{id:e,analyticsOptions:i,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(20)]).then(n.bind(null,623)).then((function(n){var r=n.AddStudentsToClassroomView,i={actionType:g.n.Associate,entity:g.d.Classroom,location:g.j.Popup,descriptor:g.a.User,workflowPhase:g.o.Complete};t.layout.showChildView(p,o.a.createElement(r,{classroomId:e,closePopup:function(){return t.layout.closePopup()},analyticsOptions:i}))}))}},{key:"removeStudents",value:function(e,t){var r=this,i=t.studentIds;n.e(48).then(n.bind(null,624)).then((function(t){var n=t.RemoveStudentsFromClassroomView,a={actionType:g.n.Dissociate,entity:g.d.Classroom,location:g.j.Popup,descriptor:g.a.User,workflowPhase:g.o.Complete};r.layout.showChildView(p,o.a.createElement(n,{classroomId:e,studentIds:i,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"newGroup",value:function(e,t){var r=this,i=t.addStudents,a=void 0===i?[]:i;Promise.all([n.e(1),n.e(17)]).then(n.bind(null,625)).then((function(t){var n=t.CreateClassroomGroupView,i={entity:g.d.ClassroomGroup,location:g.j.Popup,workflowPhase:g.o.Complete};r.layout.showChildView(p,o.a.createElement(n,{classroomId:e,studentIds:a,closePopup:function(){return r.layout.closePopup()},analyticsOptions:i}))}))}},{key:"editGroup",value:function(e,t){var r=this;Promise.all([n.e(1),n.e(18)]).then(n.bind(null,626)).then((function(n){var i=n.EditClassroomGroupView,a={entity:g.d.ClassroomGroup,actionType:g.n.Edit,location:g.j.Popup,workflowPhase:g.o.Complete};r.layout.showChildView(p,o.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"deleteGroup",value:function(e,t){var r=this;n.e(46).then(n.bind(null,627)).then((function(n){var i=n.DeleteClassroomGroupView,a={entity:g.d.ClassroomGroup,actionType:g.n.Delete,location:g.j.Popup,workflowPhase:g.o.Complete};r.layout.showChildView(p,o.a.createElement(i,{classroomId:e,groupId:t,closePopup:function(){return r.layout.closePopup()},analyticsOptions:a}))}))}},{key:"name",get:function(){return"Classrooms Application"}},{key:"channelName",get:function(){return m.a.CLASSROOMS}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0,alertRegion:d}}}}],[{key:"router",get:function(){return k}}]),r}(l),A=n(129),T=n(68),N="content",R="popup",P="alert",I=n(35),_=n(11),D={getVideoAppLink:function(e){return{application:m.a.DEFAULT,action:_.a.Default.PLAY_VIDEO,args:[e.id,I.a.slugify(e.name)]}},getSeriesAppLink:function(e){return{application:m.a.DEFAULT,action:_.a.Default.SERIES,args:[e.id,I.a.slugify(e.name)]}},getClassificationUpdateAppLink:function(e){return{application:m.a.CONTENT_UPDATES,action:_.a.ContentUpdates.CLASSIFICATION_UPDATE,args:[e.id,I.a.slugify(e.name)]}},getClassificationAppLink:function(e){return{application:m.a.SUBJECT,action:_.a.Subjects.CLASSIFICATION,args:[e.id,I.a.slugify(e.name)]}},getShareAppLink:function(e){return{application:m.a.DEFAULT,action:_.a.Default.SHARE,args:[e.id],params:{entityType:"video"}}},getAddToPlaylistAppLink:function(e){return{application:m.a.PLAYLISTS,action:_.a.Playlists.ADD_TO_PLAYLIST,args:[e.id]}},dashboardAppLink:{application:m.a.DASHBOARD,action:_.a.Dashboard.HOME},contentUpdatesAppLink:{application:m.a.CONTENT_UPDATES,action:_.a.ContentUpdates.CONTENT_UPDATES}};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 j(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 z(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),e}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&&V(e,t)}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=B(e);if(t){var i=B(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return q(this,n)}}function q(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 B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J=function(e){F(n,e);var t=H(n);function n(){return j(this,n),t.apply(this,arguments)}return z(n,[{key:"channelName",get:function(){return m.a.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"content-updates":"contentUpdates","content-updates/:id(/:slug)":"classificationUpdate"}}}]),n}(r.a.AppRouter),G=function(e){F(r,e);var t=H(r);function r(){return j(this,r),t.apply(this,arguments)}return z(r,[{key:"contentUpdates",value:function(){var e=this,t=[T.a.Share,T.a.AddToPlaylist],r=function(e,t){switch(t){case T.a.AddToPlaylist:return D.getAddToPlaylistAppLink(e);case T.a.Share:return D.getShareAppLink(e)}};Promise.all([n.e(0),n.e(22)]).then(n.bind(null,664)).then((function(n){var o=n.ContentUpdatesView;e.layout.showChildView(N,i.createElement(A.a.Provider,{value:{videoActions:t,getActionAppLink:r}},i.createElement(o,{appLinks:D})))}))}},{key:"classificationUpdate",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(23)]).then(n.bind(null,628)).then((function(t){var n=t.ClassificationUpdateView;r.layout.showChildView(N,i.createElement(n,{classificationId:e,appLinks:D}))}))}},{key:"name",get:function(){return"Content Updates Application"}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0,alertRegion:P}}}},{key:"channelName",get:function(){return m.a.CONTENT_UPDATES}}],[{key:"router",get:function(){return J}}]),r}(l);function K(e){return(K="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 W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Y(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,n){return t&&Y(e.prototype,t),n&&Y(e,n),e}function X(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&&Z(e,t)}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(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=ne(e);if(t){var i=ne(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return te(this,n)}}function te(e,t){return!t||"object"!==K(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 ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var re=function(e){X(n,e);var t=ee(n);function n(){return W(this,n),t.apply(this,arguments)}return Q(n,[{key:"channelName",get:function(){return m.a.DASHBOARD}},{key:"appRoutes",get:function(){return{"dashboard/:id(/:name/)":"dashboard","(/)":"index"}}}]),n}(r.a.AppRouter),ie=function(e){X(r,e);var t=ee(r);function r(){return W(this,r),t.apply(this,arguments)}return Q(r,[{key:"index",value:function(){var e=this;Promise.all([n.e(3),n.e(36)]).then(n.bind(null,654)).then((function(t){var n=t.DashboardView;e.layout.showChildView(N,i.createElement(n,null))}))}},{key:"name",get:function(){return"Dashboard Application"}},{key:"channelName",get:function(){return m.a.DASHBOARD}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0}}}}],[{key:"router",get:function(){return re}}]),r}(r.a.Application),oe=n(89);function ae(e){return(ae="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 le(e,t,n){return t&&ce(e.prototype,t),n&&ce(e,n),e}function ue(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&&pe(e,t)}function pe(e,t){return(pe=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=fe(e);if(t){var i=fe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return he(this,n)}}function he(e,t){return!t||"object"!==ae(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 fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var me=function(e){ue(n,e);var t=de(n);function n(){return se(this,n),t.apply(this,arguments)}return le(n,[{key:"channelName",get:function(){return m.a.DEFAULT}},{key:"appRoutes",get:function(){return{"videos/:id(/:slug)":"playVideo","my-uploads(/)":"myUploads","series/:id(/:slug)":"series","share/:shortCode(/)":"playSharedVideo","favourited-videos(/)":"favouriteVideos","*path":"catchAllRoutes"}}},{key:"appLinks",get:function(){return["devError","dialogError","error","notFound","editVideo","editUpload","share"]}}]),n}(r.a.AppRouter),ge=function(e){ue(o,e);var t=de(o);function o(){return se(this,o),t.apply(this,arguments)}return le(o,[{key:"share",value:function(e,t){var r=this;n.e(12).then(n.bind(null,656)).then((function(n){var o=n.ShareView;r.layout.showChildView(R,i.createElement(o,{entityId:e,entityType:t.entityType,closePopup:function(){return r.layout.closePopup()}}))}))}},{key:"playVideo",value:function(e,t){var r=this;Promise.all([n.e(0),n.e(4),n.e(56)]).then(n.bind(null,629)).then((function(t){var n=t.PlayView;r.layout.showChildView(N,i.createElement(n,{id:e}))}))}},{key:"playSharedVideo",value:function(e){var t=this;Promise.all([n.e(0),n.e(4),n.e(50)]).then(n.bind(null,630)).then((function(n){var r=n.PlaySharedView;t.layout.showChildView(N,i.createElement(r,{shortCode:e}))}))}},{key:"myUploads",value:function(e){var t=this;Promise.all([n.e(0),n.e(6)]).then(n.bind(null,658)).then((function(n){var r=n.MyUploadsView;t.layout.showChildView(N,i.createElement(r,{cursor:e.cursor}))}))}},{key:"editVideo",value:function(e){var t=this;Promise.all([n.e(1),n.e(35)]).then(n.bind(null,631)).then((function(n){var r=n.EditVideoView;t.layout.showChildView(R,i.createElement(r,{id:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(7)]).then(n.bind(null,632)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(R,i.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"series",value:function(e,t,r){var o=this;Promise.all([n.e(0),n.e(24)]).then(n.bind(null,666)).then((function(t){var n,a=t.SeriesView;o.layout.showChildView(N,i.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(30)]).then(n.bind(null,633)).then((function(n){var r=n.FavouriteVideosView;t.layout.showChildView(N,i.createElement(r,{cursor:e.cursor}))}))}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new oe.a)}},{key:"notFound",value:function(){var e=this;n.e(54).then(n.bind(null,634)).then((function(t){var n=t.NotFoundView;e.layout.showChildView(N,i.createElement(n,null))}))}},{key:"error",value:function(){var e=this,t=a.Radio.channel("error:view").request("current:error");n.e(53).then(n.bind(null,635)).then((function(n){var r=n.ErrorView;e.layout.showChildView(N,i.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(51).then(n.bind(null,636)).then((function(n){var o=n.DialogView;e.layout.showChildView(R,i.createElement(o,{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(52).then(n.bind(null,637)).then((function(n){var r=n.DevErrorView;e.layout.showChildView(N,i.createElement(r,{error:t}))}))}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0,alertRegion:P}}}},{key:"channelName",get:function(){return m.a.DEFAULT}}],[{key:"router",get:function(){return me}}]),o}(l);function ve(e){return(ve="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 ye(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 Ce(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&&we(e,t)}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ee(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=Oe(e);if(t){var i=Oe(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xe(this,n)}}function xe(e,t){return!t||"object"!==ve(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 Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ke=function(e){Se(n,e);var t=Ee(n);function n(){return ye(this,n),t.apply(this,arguments)}return Ce(n,[{key:"channelName",get:function(){return m.a.EMBED}},{key:"appRoutes",get:function(){return{"share/embed/:shortCode":"embedVideo"}}}]),n}(r.a.AppRouter),Le=function(e){Se(r,e);var t=Ee(r);function r(){return ye(this,r),t.apply(this,arguments)}return Ce(r,[{key:"embedVideo",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=r.a,a=void 0!==o&&o;n.e(44).then(n.bind(null,638)).then((function(n){var r=n.EmbedView;t.layout.showChildView(N,i.createElement(r,{id:e,autoplay:a}))}))}},{key:"name",get:function(){return"Embed Application"}},{key:"layoutOptions",get:function(){return{name:f}}},{key:"channelName",get:function(){return m.a.EMBED}}],[{key:"router",get:function(){return ke}}]),r}(l),Ae=n(72);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 Pe(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&&_e(e,t)}function _e(e,t){return(_e=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=je(e);if(t){var i=je(this).constructor;n=Reflect.construct(r,arguments,i)}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 je(e){return(je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Me=function(e){Ie(n,e);var t=De(n);function n(){return Ne(this,n),t.apply(this,arguments)}return Pe(n,[{key:"channelName",get:function(){return m.a.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"notifications(/)":"index"}}}]),n}(r.a.AppRouter),ze=function(e){Ie(r,e);var t=De(r);function r(){return Ne(this,r),t.apply(this,arguments)}return Pe(r,[{key:"index",value:function(e){var t=this;n.e(43).then(n.bind(null,667)).then((function(n){var r=n.NotificationsView;t.layout.showChildView(u,i.createElement(Ae.a,{view:r,options:{params:e}}))}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0,alertRegion:d}}}},{key:"channelName",get:function(){return m.a.NOTIFICATIONS}}],[{key:"router",get:function(){return Me}}]),r}(l),Fe=n(128),Ve=n(45);function He(e){return(He="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 qe(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 $e(e,t,n){return t&&Be(e.prototype,t),n&&Be(e,n),e}function Je(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 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=Ye(e);if(t){var i=Ye(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return We(this,n)}}function We(e,t){return!t||"object"!==He(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 Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Qe=function(e){Je(n,e);var t=Ke(n);function n(){return qe(this,n),t.apply(this,arguments)}return $e(n,[{key:"channelName",get:function(){return m.a.PLAYLISTS}},{key:"appRoutes",get:function(){return{"playlists(/)":"index","playlists/:id(/:slug)":"playlist"}}},{key:"appLinks",get:function(){return["newPlaylist","editPlaylist","deletePlaylist","addToPlaylist","removeVideoFromPlaylist"]}}]),n}(r.a.AppRouter),Xe=function(e){Je(r,e);var t=Ke(r);function r(){return qe(this,r),t.apply(this,arguments)}return $e(r,[{key:"getPopupProps",value:function(){var e=this;return{closePopup:function(){return e.layout.closePopup()},analyticsOptions:{location:g.j.Popup}}}},{key:"index",value:function(e){var t=this,r=function(e){return{application:m.a.PLAYLISTS,action:_.a.Playlists.PLAYLIST,args:[e.id,I.a.slugify(e.name)]}},o=function(e){return{application:m.a.PLAYLISTS,action:_.a.Playlists.HOME,params:{sort:e}}};this.setDefaultQueryParams({sort:e.sort||Ve.a.Newest}),n.e(11).then(n.bind(null,659)).then((function(n){var a=n.PlaylistsView;t.layout.showChildView(N,i.createElement(a,{getPlaylistAppLink:r,key:e.sort,getSortAppLink:o,sort:Fe.a.getSortTypeFromName(e.sort)}))}))}},{key:"playlist",value:function(e,t){var r=this,o=function(e){return{application:m.a.DEFAULT,action:_.a.Default.PLAY_VIDEO,args:[e.id,I.a.slugify(e.name)]}},a=function(e){return{application:m.a.PLAYLISTS,action:_.a.Playlists.HOME}};Promise.all([n.e(0),n.e(15)]).then(n.bind(null,652)).then((function(t){var n=t.PlaylistView;r.layout.showChildView(N,i.createElement(n,{key:e,playlistId:e,application:m.a.PLAYLISTS,getVideoAppLink:o,getSeriesAppLink:a,allowEdit:!0}))}))}},{key:"newPlaylist",value:function(){var e=this;Promise.all([n.e(1),n.e(29)]).then(n.bind(null,639)).then((function(t){var n=t.NewPlaylistView;e.layout.showChildView(R,i.createElement(n,Object.assign({application:m.a.PLAYLISTS},e.getPopupProps())))}))}},{key:"editPlaylist",value:function(e){var t=this;Promise.all([n.e(1),n.e(28)]).then(n.bind(null,640)).then((function(n){var r=n.EditPlaylistView;t.layout.showChildView(R,i.createElement(r,Object.assign({key:e,playlistId:e},t.getPopupProps())))}))}},{key:"deletePlaylist",value:function(e){var t=this;n.e(41).then(n.bind(null,641)).then((function(n){var r=n.DeletePlaylistView;t.layout.showChildView(R,i.createElement(r,Object.assign({key:e,playlistId:e,routeToOnDelete:{application:m.a.PLAYLISTS,action:_.a.Playlists.HOME}},t.getPopupProps())))}))}},{key:"addToPlaylist",value:function(e){var t=this;n.e(26).then(n.bind(null,660)).then((function(n){var r=n.AddToPlaylistView;t.layout.showChildView(R,i.createElement(r,{key:e,videoId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeVideoFromPlaylist",value:function(e,t){var r=this;n.e(42).then(n.bind(null,642)).then((function(n){var o=n.RemoveVideoFromPlaylistView;r.layout.showChildView(R,i.createElement(o,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:h,options:{showNav:!0,alertRegion:P}}}},{key:"channelName",get:function(){return m.a.PLAYLISTS}}],[{key:"router",get:function(){return Qe}}]),r}(l);function Ze(e){return(Ze="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,n){return t&&tt(e.prototype,t),n&&tt(e,n),e}function rt(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&&it(e,t)}function it(e,t){return(it=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ot(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=st(e);if(t){var i=st(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return at(this,n)}}function at(e,t){return!t||"object"!==Ze(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 st(e){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ct=function(e){rt(n,e);var t=ot(n);function n(){return et(this,n),t.apply(this,arguments)}return nt(n,[{key:"channelName",get:function(){return m.a.SEARCH}},{key:"appRoutes",get:function(){return{"search(/)":"index"}}}]),n}(r.a.AppRouter),lt=function(e){rt(r,e);var t=ot(r);function r(){return et(this,r),t.apply(this,arguments)}return nt(r,[{key:"index",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(16)]).then(n.bind(null,661)).then((function(n){var r=n.SearchResultsView;t.layout.showChildView(N,i.createElement(r,{queryParams:e}))}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0}}}},{key:"channelName",get:function(){return m.a.SEARCH}}],[{key:"router",get:function(){return ct}}]),r}(r.a.Application);function ut(e){return(ut="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 pt(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 ht(e,t,n){return t&&dt(e.prototype,t),n&&dt(e,n),e}function ft(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&&mt(e,t)}function mt(e,t){return(mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function gt(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 i=yt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return vt(this,n)}}function vt(e,t){return!t||"object"!==ut(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 bt=function(e){ft(n,e);var t=gt(n);function n(){return pt(this,n),t.apply(this,arguments)}return ht(n,[{key:"channelName",get:function(){return m.a.SUBJECT}},{key:"appRoutes",get:function(){return{"subjects/preferences?step=subjects":"preferences","subjects/:id(/:slug)/series":"classificationSeries","subjects/:id(/:slug)":"classification"}}}]),n}(r.a.AppRouter),Ct=function(e){ft(r,e);var t=gt(r);function r(){return pt(this,r),t.apply(this,arguments)}return ht(r,[{key:"classification",value:function(e,t){var r=this;Promise.all([n.e(3),n.e(9)]).then(n.bind(null,653)).then((function(t){var n=t.ClassificationView;r.layout.showChildView(u,i.createElement(n,{key:e,id:e}))}))}},{key:"classificationSeries",value:function(e,t,r){var o=this;n.e(10).then(n.bind(null,643)).then((function(t){var n=t.ClassificationSeriesListView;o.layout.showChildView(u,i.createElement(n,{id:e,queryParams:r}))}))}},{key:"preferences",value:function(e){var t=this,r=e.step,o=void 0===r?"subjects":r;n.e(13).then(n.bind(null,650)).then((function(e){var n=e.PreferencesView;t.layout.showChildView(u,i.createElement(n,{application:m.a.SUBJECT,step:o}))}))}},{key:"onShowAlert",value:function(){}},{key:"name",get:function(){return"Subject Application"}},{key:"channelName",get:function(){return m.a.SUBJECT}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0,alertRegion:d}}}}],[{key:"router",get:function(){return bt}}]),r}(l);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 wt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Et(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 xt(e,t,n){return t&&Et(e.prototype,t),n&&Et(e,n),e}function Ot(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&&kt(e,t)}function kt(e,t){return(kt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lt(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=Tt(e);if(t){var i=Tt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return At(this,n)}}function At(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 Tt(e){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nt=function(e){Ot(n,e);var t=Lt(n);function n(){return wt(this,n),t.apply(this,arguments)}return xt(n,[{key:"channelName",get:function(){return m.a.UPLOAD}},{key:"appRoutes",get:function(){return{"my-uploads(/)":"myUploads"}}},{key:"appLinks",get:function(){return["editUpload","cancelUpload"]}}]),n}(r.a.AppRouter),Rt=function(e){Ot(r,e);var t=Lt(r);function r(){return wt(this,r),t.apply(this,arguments)}return xt(r,[{key:"myUploads",value:function(e){var t=this;Promise.all([n.e(0),n.e(6)]).then(n.bind(null,658)).then((function(n){var r=n.MyUploadsView;t.layout.showChildView(u,i.createElement(r,{cursor:e.cursor}))}))}},{key:"editUpload",value:function(e){var t=this;Promise.all([n.e(1),n.e(7)]).then(n.bind(null,632)).then((function(n){var r=n.EditUploadView;t.layout.showChildView(p,i.createElement(r,{uploadId:e,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"cancelUpload",value:function(e,t){var r=this;n.e(49).then(n.bind(null,644)).then((function(n){var o=n.CancelUploadView;r.layout.showChildView(p,i.createElement(o,{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 m.a.UPLOAD}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0,alertRegion:d}}}}],[{key:"router",get:function(){return Nt}}]),r}(l);function Pt(e){return(Pt="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 _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 Dt(e,t,n){return t&&_t(e.prototype,t),n&&_t(e,n),e}function Ut(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 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=Ft(e);if(t){var i=Ft(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return zt(this,n)}}function zt(e,t){return!t||"object"!==Pt(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 Ft(e){return(Ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Vt=function(e){Ut(n,e);var t=Mt(n);function n(){return It(this,n),t.apply(this,arguments)}return Dt(n,[{key:"channelName",get:function(){return m.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"]}}]),n}(r.a.AppRouter),Ht=function(e){Ut(r,e);var t=Mt(r);function r(){return It(this,r),t.apply(this,arguments)}return Dt(r,[{key:"studentManager",value:function(e){var t=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(5),n.e(45)]).then(n.bind(null,668)).then((function(n){var r=n.SchoolStudentManagerView;t.layout.showChildView(u,i.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(5),n.e(55)]).then(n.bind(null,669)).then((function(n){var r=n.SchoolTeacherManagerView;t.layout.showChildView(u,i.createElement(r,{queryParams:e}))}))}},{key:"studentUploadReview",value:function(){var e=this;Promise.all([n.e(1),n.e(0),n.e(2),n.e(21)]).then(n.bind(null,662)).then((function(t){var n=t.StudentUploadReviewView,r={entity:g.d.User,location:g.j.StudentManager,actionType:g.n.Create};e.layout.showChildView(u,i.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(27)]).then(n.bind(null,663)).then((function(t){var n=t.TeacherUploadReviewView,r={entity:g.d.User,location:g.j.TeacherManager,actionType:g.n.Create};e.layout.showChildView(u,i.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(33)]).then(n.bind(null,645)).then((function(t){var n=t.CreateStudentView,r={actionType:g.n.Create,entity:g.d.User,workflowPhase:g.o.Complete,descriptor:g.k.Single,location:g.j.Popup};e.layout.showChildView(p,i.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(34)]).then(n.bind(null,646)).then((function(n){var r=n.EditStudentView,o={actionType:g.n.Edit,entity:g.d.User,workflowPhase:g.o.Complete,location:g.j.Popup};t.layout.showChildView(p,i.createElement(r,{id:e,analyticsOptions:o,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(38)]).then(n.bind(null,647)).then((function(t){var n=t.CreateTeacherView,r={actionType:g.n.Create,entity:g.d.User,workflowPhase:g.o.Complete,descriptor:g.k.Single,location:g.j.Popup};e.layout.showChildView(p,i.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(39)]).then(n.bind(null,648)).then((function(n){var r=n.EditTeacherView,o={actionType:g.n.Edit,entity:g.d.User,workflowPhase:g.o.Complete,location:g.j.Popup};t.layout.showChildView(p,i.createElement(r,{id:e,analyticsOptions:o,closePopup:function(){return t.layout.closePopup()}}))}))}},{key:"removeUsers",value:function(e){var t=this,r=e.userIds,o=void 0===r?[]:r,a=e.userType;Promise.all([n.e(1),n.e(0),n.e(2),n.e(40)]).then(n.bind(null,649)).then((function(e){var n=e.RemoveUserView,r={actionType:g.n.Delete,entity:g.d.User,workflowPhase:g.o.Complete,descriptor:1===o.length?g.k.Single:g.k.Bulk,location:g.j.Popup};t.layout.showChildView(p,i.createElement(n,{userIds:o,userType:a,closePopup:function(){return t.layout.closePopup()},analyticsOptions:r}))}))}},{key:"name",get:function(){return"User Manager Application"}},{key:"channelName",get:function(){return m.a.USER_MANAGER}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0,alertRegion:d}}}}],[{key:"router",get:function(){return Vt}}]),r}(l);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 Bt(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 Jt(e,t,n){return t&&$t(e.prototype,t),n&&$t(e,n),e}function Gt(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&&Kt(e,t)}function Kt(e,t){return(Kt=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=Qt(e);if(t){var i=Qt(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Yt(this,n)}}function Yt(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 Qt(e){return(Qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xt=function(e){Gt(n,e);var t=Wt(n);function n(){return Bt(this,n),t.apply(this,arguments)}return Jt(n,[{key:"channelName",get:function(){return m.a.SETTINGS}},{key:"appRoutes",get:function(){return{"settings(/)":"index"}}},{key:"appLinks",get:function(){return[]}}]),n}(r.a.AppRouter),Zt=function(e){Gt(r,e);var t=Wt(r);function r(){return Bt(this,r),t.apply(this,arguments)}return Jt(r,[{key:"index",value:function(){var e=this;n.e(37).then(n.bind(null,665)).then((function(t){var n=t.SettingsView;e.layout.showChildView(N,o.a.createElement(n,null))}))}},{key:"name",get:function(){return"Settings Application"}},{key:"layoutOptions",get:function(){return{name:h,options:{showNav:!0,alertRegion:P}}}},{key:"channelName",get:function(){return m.a.SETTINGS}}],[{key:"router",get:function(){return Xt}}]),r}(l);var en,tn=n(6),nn=n(1),rn=n(13);!function(e){e.Fifo="FifoMemoryCache"}(en||(en={}));var on=n(38),an=n(8);class sn extends on.a{constructor(e){super(),this.size=e.size,this.cache={},this.cachedkeys=[]}get name(){return en.Fifo}removeCacheKey(e){this.cachedkeys=nn.without(this.cachedkeys,e)}has(e){return!!this.cache[e]}get(e){return this.cache[e]}set(e,t){e&&t||an.c.throw(new rn.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()]}getOrSet(e,t){if(this.has(e))return this.get(e);const n=t();return this.set(e,n),n}remove(e){return!!this.has(e)&&(delete this.cache[e],this.removeCacheKey(e),!0)}invalidate(e,t){const n=nn.object(this.cachedkeys,this.cachedkeys);let r=[];nn.each(e,e=>{n[e]&&r.push(e);const t=new RegExp(e,"i"),i=nn.filter(n,e=>t.test(e));r.push(...i)}),r.length&&(r=nn.uniq(r),nn.each(r,e=>{delete this.cache[e],nn.isFunction(t)&&t(e)}),this.cachedkeys=nn.without(this.cachedkeys,...r))}}var cn,ln=n(22),un=n(63),pn=n(16),dn=n(55);!function(e){e.Ajax="AjaxDataProvider",e.Notifications="NotificationsSignalRDataProvider"}(cn||(cn={}));const hn={parseErrorMessage(e,t,n){if(!n||!n.errorCode)return e[t];let r=""+n.errorCode;return n.errorSubCode&&(r+="."+n.errorSubCode),e[r]||e[t]}};class fn extends ln.Object{constructor(e){super(e),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=e.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=e.defaultErrorMessageKey}get name(){return cn.Ajax}parseUrl(e){const t=document.createElement("a");return t.href=e,""===t.host&&(t.href=t.href),t}makeHttps(e){const t=this.parseUrl(e);return"http:"===t.protocol&&(t.protocol="https:"),t.href}base(e,t,n,r={}){n||(n=pn.a.GET);const i=nn.defaults(r,{forceHttps:!1}),o={url:e,method:n,type:n};t&&(o.data=n===pn.a.POST||n===pn.a.PUT?JSON.stringify(t):t),i.forceHttps&&(o.url=this.makeHttps(o.url)),i.traditional&&(o.traditional=i.traditional);const a=$.ajax(o);return nn.keys(this.successMiddleware).length&&a.done(nn.values(this.successMiddleware)),nn.keys(this.errorMiddleware).length&&a.fail(nn.values(this.errorMiddleware)),a}create(e,t,n){const{channel:r,successEvent:i,errorEvent:o}=n;this.base(e,t,pn.a.POST).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(o,e,t,n))}read(e,t){const{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,pn.a.GET).done((e,t,i)=>{n.trigger(r,e,t,i)}).fail((e,t,r)=>{n.trigger(i,e,t,r)})}update(e,t,n){const{channel:r,successEvent:i,errorEvent:o}=n;this.base(e,t,pn.a.PUT).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(o,e,t,n))}delete(e,t){const{channel:n,successEvent:r,errorEvent:i}=t;this.base(e,null,pn.a.DELETE).done((e,t,i)=>n.trigger(r,e,t,i)).fail((e,t,r)=>n.trigger(i,e,t,r))}useMiddleware(e,t){this.successMiddleware[e]||(this.successMiddleware[e]=t)}useErrorMiddleware(e,t){this.errorMiddleware[e]||(this.errorMiddleware[e]=t)}parseError(e,t,n){const r=e.responseJSON,i=un.a;switch(i.code=e.status,i.message=hn.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),e.status){case 400:i.type=dn.a.BadRequest;break;case 401:i.type=dn.a.Unauthorized;break;case 403:i.type=dn.a.Forbidden;break;case 404:i.type=dn.a.NotFound;break;case 500:i.type=dn.a.InternalServer}return i}}var mn=n(29),gn=n(37),vn=n(42),yn=n(9),bn=n(20),Cn=n(14);const Sn="locale",wn="phrases",En="version";var xn=n(41);class On extends vn.a{get name(){return yn.a.Config}get channelName(){return Cn.b.CONFIG}getConfig(e,t){return this.get({resource:"/api/config",eventPrefix:bn.a.CONFIG,expiryTime:xn.a.STANDARD,callback:e,errorCallback:t})}getVersion(e){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:En,callback:e,expiryTime:xn.a.STANDARD})}}yn.a.Config,Cn.b.CONFIG;var kn=n(97);class Ln extends vn.a{get name(){return yn.a.Language}get channelName(){return Cn.b.LANGUAGE}getLanguageConfig(e){const t={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:bn.a.LOCALE,expiryTime:xn.a.STANDARD,bootstrapName:Sn,callback:n=>{t.locale=n,t.phrases&&nn.isFunction(e)&&e(t)}}),this.get({resource:"/api/phrases",eventPrefix:bn.a.PHRASES,expiryTime:xn.a.STANDARD,bootstrapName:wn,callback:n=>{t.phrases=n,t.locale&&nn.isFunction(e)&&e(t)}})}}class An extends r.a.Model{}class Tn extends vn.a{get name(){return yn.a.NotificationSocket}get channelName(){return Cn.b.NOTIFICATIONS_SOCKET}receiveLatestNotifications(e){return this.get({callback:e,formatData:e=>new An(e),resource:"notify",eventPrefix:bn.a.NOTIFICATIONS+":new"})}receiveUnreadNotificationCount(e){return this.get({callback:e,resource:"notifyCount",eventPrefix:bn.a.NOTIFICATIONS+":count"})}}var Nn=n(53),Rn=n(7),Pn=n(59),In=n(56);class _n extends r.a.Collection{get model(){return An}parse(e){return e.data||e}}const Dn=(e,t)=>{let n=`/api/domain/v2/objects/${e}/notifications?query={orderbydesc:datecreated}`;if(!t)return n;const{limit:r,cursor:i,before:o}=t,a=[],s=Pn.a.buildFilter({limit:r,before:o});return s&&a.push("filter="+s),i&&a.push("cursor="+i),a.length?`${n}&${a.join("&")}`:n},Un=e=>"/api/notifications/v1/notifications/"+e,jn="/api/notifications/v1/notifications",Mn="/api/domain/v1/notifications";class zn extends vn.a{get name(){return yn.a.Notification}get channelName(){return Cn.b.NOTIFICATIONS}get lang(){return"notifications.services"}getNotifications(e,t,n,r){return this.get({resource:Dn(e,t),expiryTime:xn.a.STANDARD,eventPrefix:n,formatData:e=>new _n(e,{parse:!0}),callback:r})}markRead(e,t){return this.update({callback:t,data:{notificationStatus:In.a.Read},resource:Un(e),eventPrefix:bn.a.NOTIFICATIONS+":read"})}markSeen(e){const t=Nn().utc().toISOString();return this.update({callback:e,data:{notificationStatus:In.a.Seen},resource:`${jn}?to=${t}&notificationStatus=${In.a.Received}`,eventPrefix:bn.a.NOTIFICATIONS+":seen"})}getNotificationsCursors(e){return this.getCursors(e)}suggestEdit(e,t){return this.create({resource:""+Mn,eventPrefix:""+bn.a.SUGGEST_EDIT,callback:t,data:e,successHandler:this.alertService.success(Rn.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}var Fn=n(113),Vn=n(10),Hn=n(96),qn=n(33),Bn=n(34),$n=n(47),Jn=n.n($n);function Gn(e){const{alert:t,svgName:n,svgClassName:r,closeAlert:o}=e,{message:a,heading:s,appLink:c,appLinkText:l,appLinkClassName:u=""}=t,p=Object(Hn.sanitize)(a);return i.createElement(i.Fragment,null,i.createElement("div",{className:"d-inline-block "+Jn.a.icon},i.createElement(qn.a,{svgName:n,className:"svg-container "+r})),i.createElement("div",{className:"pl-2 d-inline-block "+Jn.a.alertContent},i.createElement("p",{className:"p-0 m-0 pb-1 "+Jn.a.heading},s),i.createElement("p",{className:"p-0 m-0 "+Jn.a.message,dangerouslySetInnerHTML:{__html:p}}),!!c&&i.createElement(Bn.a,{className:u,appLink:c},l)),i.createElement("div",{className:"close d-inline-block cursor-pointer",role:"button","aria-hidden":"true",onClick:o},"×"))}const Kn=e=>{switch(e.type){case mn.a.Success:return Vn.b.CheckCircleOutline;case mn.a.Fail:case mn.a.Warning:return Vn.b.Warning;case mn.a.Info:default:return Vn.b.Info}};function Wn({alert:e,closeAlert:t}){const[n,r]=i.useState(!0),o=i.useRef();i.useEffect(()=>{n?o.current=window.setTimeout(t,3e3):clearTimeout(o.current)},[n]);const a="text-"+e.type.toLowerCase();return i.createElement("li",{className:"bg-white mt-2 p-2 show clearfix "+Jn.a.alertItem,onMouseEnter:()=>r(!1),onMouseLeave:()=>r(!0)},i.createElement(Gn,{alert:e,svgName:Kn(e),svgClassName:a,closeAlert:t}))}function Yn({alerts:e,removeAlert:t}){return i.createElement("div",{className:Jn.a.alertBox},i.createElement(Fn.TransitionGroup,{component:"ul",className:Jn.a.alertList+" list-unstyled"},e&&e.map((e,n)=>i.createElement(Fn.CSSTransition,{key:n,timeout:200,classNames:"alert"},i.createElement(Wn,{alert:e,closeAlert:()=>t(e.id)})))))}var Qn=n(12),Xn=n(27);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)}}var er=function(e){return{url:"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary",key:"libraries",success:e,normalize:!1}},tr=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Xn.a.FOLDER),key:"folder:".concat(e),success:t}},nr=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,i;return t=e,(n=[{key:"getLibraries",value:function(e){var t=this,n=er((function(n){a.Radio.channel(t.channelName).trigger("libraries:sync",n),e&&e(new r.a.Collection(n))})),i=Qn.a.getResponse(this.store.getState(),n.key);return i.shouldFetch&&Qn.a.fetch(this.store.dispatch,n),i.data&&new r.a.Collection(i.data.map((function(e){return e.data})))}},{key:"getFolder",value:function(e,t){var n=tr(e,(function(e){return t&&t(new r.a.Model(e))})),i=Qn.a.getResponse(this.store.getState(),n.key);return i.shouldFetch&&Qn.a.fetch(this.store.dispatch,n),i.data&&new r.a.Model(i.data)}},{key:"name",get:function(){return yn.a.Library}},{key:"channelName",get:function(){return"library:data:service"}}])&&Zn(t.prototype,n),i&&Zn(t,i),e}();function rr(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 ir=function(e,t){return{url:"/api/domain/v2/objects/".concat(e,"?query=").concat(Xn.a.SERIES),key:"series:".concat(e),success:t}},or=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,i;return t=e,(n=[{key:"getSeries",value:function(e,t){var n=ir(e,(function(e){return t&&t(new r.a.Model(e))})),i=Qn.a.getResponse(this.store.getState(),n.key);return i.shouldFetch&&Qn.a.fetch(this.store.dispatch,n),i.data&&new r.a.Model(i.data)}},{key:"name",get:function(){return yn.a.Series}},{key:"channelName",get:function(){return Cn.b.SERIES}}])&&rr(t.prototype,n),i&&rr(t,i),e}(),ar="Success! 🙌",sr="Oops...";an.a;class cr extends r.a.SilentError{get name(){return"AlertError"}}class lr extends r.a.SilentError{get name(){return"ErrorPageError"}}class ur extends r.a.SilentError{constructor(e){super(e),this.dialogOptions||r.a.ErrorHelper.throw(new rn.a("Please provide DialogOptions for your implementation of DialogError"))}get name(){return"DialogError"}onDone(){}onFail(){}}function pr(e){tn.a.getInstance(gn.a.ALERT).createAlert({heading:sr,type:mn.a.Fail,message:e.message})}function dr(e){r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:_.a.Default.NOT_FOUND})}function hr(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:_.a.Default.ERROR})}function fr(e){a.Radio.channel("error:view").replyOnce("current:error",(function(){return e})),r.a.AppLinkHelper.trigger({application:m.a.DEFAULT,action:_.a.Default.DIALOG_ERROR})}var mr=n(57),gr=n(39),vr=n(88);class yr extends vr.a{isReactComponent(e){return i&&i.isValidElement(e)}showChildView(e,t){this.isReactComponent(t)&&this.showChildReactComponent(e,t)}showChildReactComponent(e,t){this.isAttached()?this.renderChildReactComponent(e,t):this.listenToOnce(this,"attach",()=>this.renderChildReactComponent(e,t))}renderChildReactComponent(e,t){const n=this.getRegion(e),r=this.$el.find(n.el);r&&r.length&&(n.trigger("before:show"),mr.render(t,r[0],()=>n.trigger("show")),this.listenToOnce(this,"unmount:"+e,()=>mr.unmountComponentAtNode(r[0])),this.listenToOnce(this,"before:destroy",()=>mr.unmountComponentAtNode(r[0])))}wrapWithStore(e){return i.createElement(gr.Provider,{store:this.options.store},e)}}var br=n(243),Cr=n(78),Sr=n(51),wr=n(31),Er=n(81),xr=n(79),Or=n(40),kr=n(120),Lr=n(21),Ar=n(244),Tr=n.n(Ar),Nr=n(103),Rr=n.n(Nr);class Pr extends r.a.Component{constructor(e){super(e)}get name(){return"NotificationStatusComponent"}get className(){return`notification-status mx-2 ${Rr.a.notificationIcon} ${Rr.a[this.options.color]}`}get template(){return Tr.a}initialize(){this.listenTo(this.model,"change:unreadCount",this.render)}viewOptions(){return{styles:Rr.a,svg:Vn.a.getSvg(Vn.b.Bell),unreadCount:this.model.get("unreadCount")}}}var Ir=n(94),_r=n(91),Dr=n(240),Ur=n(248),jr=n.n(Ur),Mr=n(226),zr=n.n(Mr),Fr=n(227),Vr=n.n(Fr);class Hr extends r.a.View{constructor(e){super(e)}get name(){return"NotificationPopoverView"}get title(){return!1}get lang(){return"notifications.notificationsPopover"}get className(){return"notifications-container"}get template(){return jr.a}regions(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:_r.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:zr.a,className:"px-1 py-2",viewOptions:{styles:Vr.a}}}}}}}get elements(){return{anchor:".see-all"}}get appLinks(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}initialize(){this.notificationService=tn.a.getInstance(yn.b.Notification,this),this.appVariables=tn.a.getInstance(Lr.a.NOTIFICATIONS,this)}onData(e){this.collection=e,this.render()}getCollectionIdentifier(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new Dr.a({collectionPrefix:bn.a.NOTIFICATIONS})}renderNotificationList(){const e=new Ir.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",e)}triggerSeen(){this.notificationService.markNotificationsSeen()}onBeforeRender(){return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),e=>this.onData(e)),!!this.collection}viewOptions(){return{hasNotifications:this.collection&&this.collection.length}}onRender(){this.renderNotificationList(),this.triggerSeen()}}var qr=n(249),Br=n.n(qr),$r=n(250),Jr=n.n($r);class Gr extends r.a.View{initialize(){this.appVariables=tn.a.getInstance(Lr.a.NOTIFICATIONS)}get name(){return"NotificationHeaderView"}get title(){return!1}get className(){return"d-flex align-items-center position-relative"}get template(){return Br.a}regions(){return{status:{el:".notifications-status-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!1}}}events(){return{"click .notifications-status-region":"renderNotificationList"}}renderNotificationList(){const e=new Hr({childType:Ir.a.Popover});this.showChildView("notifications",e)}renderNotificationStatus(){const e=tn.a.getInstance(yn.b.Notification),t=new Pr({model:e.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",t)}viewOptions(){return Jr.a}onRender(){this.renderNotificationStatus()}}var Kr=n(239),Wr=n(133),Yr=n(237),Qr=n(52),Xr=n(28),Zr=n(48),ei=n(135),ti=n(74),ni=n.n(ti),ri=i.memo((function(e){var t=e.user;if(!t)return i.createElement(Xr.Button,{variant:"primary",className:"mx-2 px-2"},"Log in");var n=t.avatar,r=t.displayName,o=t.customerName;return i.createElement(Zr.a.Provider,{value:"shared.userOptions"},i.createElement("div",{className:"cursor-pointer mx-2 px-2 position-relative","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},i.createElement(ei.a,{imageUrl:n}),i.createElement("nav",{className:"dropdown-menu dropdown-arrow dropdown-menu-right ".concat(ni.a.dropdownMenu)},i.createElement("div",{className:"dropdown-item"},i.createElement("div",{className:"m-0"},i.createElement("strong",null,r)),i.createElement("div",{className:"m-0 text-muted"},o)),i.createElement(Bn.a,{className:"dropdown-item",appLink:null},i.createElement("span",{className:"".concat(ni.a.iconPlaceholder," d-inline-block mr-2 align-middle")}),i.createElement(Zr.b,{phrase:"myProfile"})),i.createElement(Bn.a,{className:"dropdown-item",appLink:null},i.createElement("span",{className:"".concat(ni.a.iconPlaceholder," d-inline-block mr-2 align-middle")}),i.createElement(Zr.b,{phrase:"myPreferences"})),i.createElement(Bn.a,{className:"dropdown-item",appLink:null},i.createElement("span",{className:"".concat(ni.a.iconPlaceholder," d-inline-block mr-2 align-middle")}),i.createElement(Zr.b,{phrase:"signOut"})))))}),(function(e,t){var n,r,i,o,a,s,c,l;return(null===(n=e.user)||void 0===n?void 0:n.id)===(null===(r=t.user)||void 0===r?void 0:r.id)&&(null===(i=e.user)||void 0===i?void 0:i.avatar)===(null===(o=t.user)||void 0===o?void 0:o.avatar)&&(null===(a=e.user)||void 0===a?void 0:a.displayName)===(null===(s=t.user)||void 0===s?void 0:s.displayName)&&(null===(c=e.user)||void 0===c?void 0:c.customerName)===(null===(l=t.user)||void 0===l?void 0:l.customerName)})),ii=n(119),oi=n(32),ai=i.memo((function(e){var t=e.hideButtonText,n=void 0!==t&&t,r=Object(Cr.a)(oi.b.VideoUpload),o=i.useRef(null),a=i.useCallback((function(e){e&&(o.current=e)}),[]);return i.createElement(i.Fragment,null,i.createElement(ii.a,{svgName:Vn.b.Upload,className:"btn btn-secondary",onClick:function(e){o.current.value=null,o.current.click(null)}},!n&&i.createElement(Zr.b,{phrase:"uploadVideo",namespace:"shared.uploadFileSelect"})),i.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:g.d.Video,actionType:g.n.Upload,workflowPhase:g.o.Start,descriptor:wr.a.mapInteractionType(g.h.FileSelect)});var t}}))})),si=n(66),ci=n.n(si);function li(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,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return ui(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 ui(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 ui(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 pi(){return i.createElement("svg",{viewBox:"0 0 434 71"},i.createElement("g",null,i.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"}),i.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 di(e){var t,n=Qn.a.useBasicFetch(kr.a.currentUser,{optimize:!0}).data,r=Qn.a.useBasicFetch(Wr.a.presentation()),o=li(Object(Sr.a)(Qr.a.SEARCH_BAR_LOCATION,!0),1)[0];return i.createElement("nav",{className:"navbar navbar-expanded sticky-top ".concat(ci.a.nav)},i.createElement("div",{className:"justify-content-start"},e.showLeftNavToggle&&i.createElement(qn.a,{svgName:Vn.b.Handle,className:"".concat(ci.a.hamburger," ml-2 mr-3"),onClick:e.toggleLeftNav}),i.createElement("a",{className:"navbar-brand text-hide align-top ".concat(ci.a.logoContainer," d-inline-block'"),href:"/"},i.createElement(pi,null))),o&&i.createElement("div",{className:"justify-content-center"},i.createElement(Ae.a,{className:"container ".concat(ci.a.searchBarNavContainer),view:Kr.a,options:{model:Or.a.get("search",{ctor:Yr.a}),disableMask:!0,presentationId:null===(t=r.data)||void 0===t?void 0:t.id}})),i.createElement("div",{className:"d-flex align-items-center justify-content-end pr-1 ".concat(ci.a.actionButtons)},!!n&&i.createElement(ai,{hideButtonText:o}),i.createElement(Ae.a,{view:Gr,className:"ml-2 pl-2"}),i.createElement(ri,{user:n})))}var hi=n(92),fi=n(123),mi=n(26),gi=n(83);const vi="d-inline-block svg-container",yi="span";function bi(e){const{children:t,className:n=vi,tagName:r=yi,size:o=qn.b.Standard,onClick:a,title:s,tooltipPlacement:c="right"}=e,l=r,u={className:`${n} ${o}`,onClick:mi.a.isFunction(a)?a:null};return s?i.createElement(gi.a,{title:s,placement:c},i.createElement(l,Object.assign({},u),t)):i.createElement(l,Object.assign({},u),t)}var Ci=n(49),Si=n(17),wi=n.n(Si);function Ei(e){var t=e.application,n=e.action,r=Ci.a.getCurrentRoute();return r||(r=Ci.a.getCurrentContext()),t===r.appLink.application&&n===r.appLink.action}function xi(e){var t=Ei(e.appLink),n=!e.collapsed||t,r=e.collapsed&&t,i=e.icon;return o.a.createElement(Bn.a,{className:"".concat(wi.a.leftNavAnchor," ").concat(e.className," ").concat(n?wi.a.active:wi.a.iconGrey," mt-3"),appLink:e.appLink},o.a.createElement("span",{className:"".concat(wi.a.leftNavIcon)},e.icon?o.a.createElement(bi,{size:qn.b.Large},o.a.createElement(i,null)):o.a.createElement(qn.a,{svgName:e.svgName,size:qn.b.Large})),o.a.createElement("span",{className:"".concat(wi.a.leftNavText," ").concat(r?wi.a.highlightText:"")},e.name))}function Oi(){return o.a.createElement("div",{className:"".concat(wi.a.leftNavAnchor," mt-3")},o.a.createElement("span",{className:"".concat(wi.a.iconGrey," partial-loading-background")}),o.a.createElement("span",{className:"".concat(wi.a.leftNavText," ").concat(wi.a.partialLeftNavItem," mx-1 partial-loading-background")}))}var ki=Rn.a.encloseNamespace("shared.leftNav");function Li(){return o.a.createElement("svg",{viewBox:"0 0 24 24"},o.a.createElement("g",{fill:"none",fillRule:"evenodd"},o.a.createElement("g",{transform:"translate(0.000000, 2.000000)"},o.a.createElement("text",{id:"ABC",fontFamily:"Rubik-Black, Rubik Black",fontSize:"6.6",fontWeight:"700",fill:"#ffffff"},o.a.createElement("tspan",{x:"4.5",y:"10.8"},"ABC")),o.a.createElement("rect",{id:"Rectangle",stroke:"#ffffff",strokeWidth:"1.2",x:"3",y:"1.8",width:"18",height:"13.2",rx:"1.2"}),o.a.createElement("line",{x1:"0.6",y1:"15",x2:"23.4",y2:"15",id:"Line-2",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),o.a.createElement("circle",{id:"Oval",stroke:"#ffffff",strokeWidth:"1.2",fill:"#000000",cx:"12",cy:"1.2",r:"1"}),o.a.createElement("line",{x1:"11.4",y1:"15",x2:"7.8",y2:"18.6",id:"Line-3",stroke:"#ffffff",strokeWidth:"1.2",strokeLinecap:"round"}),o.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 Ai,Ti={discover:{application:m.a.DASHBOARD,action:_.a.Dashboard.HOME},playlists:{application:m.a.PLAYLISTS,action:_.a.Playlists.HOME},myUploads:{application:m.a.DEFAULT,action:_.a.Upload.MY_UPLOADS},favouritedVideos:{application:m.a.DEFAULT,action:_.a.Default.FAVOURITE_VIDEOS},classrooms:{application:m.a.CLASSROOMS,action:_.a.Classrooms.HOME},classroom:{application:m.a.CLASSROOMS,action:_.a.Classrooms.CLASSROOM},watchHistory:{application:m.a.DEFAULT,action:_.a.Default.WATCH_HISTORY},settings:{application:m.a.SETTINGS,action:_.a.Settings.HOME}},Ni=o.a.memo((function(){var e=Qn.a.useBasicFetch(fi.a.getStarredClassrooms());return o.a.createElement("nav",{className:"".concat(wi.a.leftNav," ").concat(wi.a.leftNavExpanded)},o.a.createElement(hi.Scrollbars,{height:"100%"},o.a.createElement(xi,{name:ki("discover"),appLink:Ti.discover,className:wi.a.discover,svgName:Vn.b.Compass}),o.a.createElement(xi,{name:ki("playlists"),appLink:Ti.playlists,className:wi.a.playlists,svgName:Vn.b.Playlist}),o.a.createElement(xi,{name:ki("myUploads"),appLink:Ti.myUploads,className:wi.a.myUploads,svgName:Vn.b.Upload}),o.a.createElement(xi,{name:ki("favouritedVideos"),appLink:Ti.favouritedVideos,className:wi.a.favouritedVideos,svgName:Vn.b.Heart}),o.a.createElement("hr",null),o.a.createElement(xi,{name:ki("classrooms"),appLink:Ti.classrooms,className:wi.a.classrooms,icon:Li}),e.data?e.data.map((function(e){return o.a.createElement(xi,{key:e.id,name:e.name,appLink:Object.assign(Object.assign({},Ti.classroom),{args:[e.id]}),className:wi.a.classroom,svgName:Vn.b.Star})})):o.a.createElement(Oi,null),o.a.createElement("div",{className:wi.a.leftNavBottom},o.a.createElement(xi,{name:ki("watchHistory"),appLink:Ti.watchHistory,className:wi.a.watchHistory,svgName:Vn.b.History}),o.a.createElement(xi,{name:ki("settings"),appLink:Ti.settings,className:wi.a.settings,svgName:Vn.b.Cog}))))})),Ri=Rn.a.encloseNamespace("shared.leftNav"),Pi={discover:{application:m.a.DASHBOARD,action:_.a.Dashboard.HOME},playlists:{application:m.a.PLAYLISTS,action:_.a.Playlists.HOME},myUploads:{application:m.a.DEFAULT,action:_.a.Upload.MY_UPLOADS},favouritedVideos:{application:m.a.DEFAULT,action:_.a.Default.FAVOURITE_VIDEOS},watchHistory:{application:m.a.DEFAULT,action:_.a.Default.WATCH_HISTORY}};function Ii(){return o.a.createElement("nav",{className:"".concat(wi.a.leftNav," ").concat(wi.a.leftNavCollapsed)},o.a.createElement(hi.Scrollbars,{height:"100%"},o.a.createElement(xi,{name:Ri("discover"),appLink:Pi.discover,className:wi.a.discover,svgName:Vn.b.Compass,collapsed:!0}),o.a.createElement(xi,{name:Ri("playlists"),appLink:Pi.playlists,className:wi.a.playlists,svgName:Vn.b.Playlist,collapsed:!0}),o.a.createElement(xi,{name:Ri("myUploads"),appLink:Pi.myUploads,className:wi.a.myUploads,svgName:Vn.b.Upload,collapsed:!0}),o.a.createElement(xi,{name:Ri("favouritedVideos"),appLink:Pi.favouritedVideos,className:wi.a.favouritedVideos,svgName:Ei(Pi.favouritedVideos)?Vn.b.Heart:Vn.b.HeartOutline,collapsed:!0}),o.a.createElement(xi,{name:Ri("watchHistory"),appLink:Pi.watchHistory,className:wi.a.watchHistory,svgName:Vn.b.History,collapsed:!0})))}function _i(e){return e.navState===Ai.Hidden?o.a.createElement(o.a.Fragment,null):e.navState===Ai.Collapsed?o.a.createElement(Ii,null):o.a.createElement(Ni,null)}!function(e){e[e.Open=0]="Open",e[e.Collapsed=1]="Collapsed",e[e.Hidden=2]="Hidden"}(Ai||(Ai={}));var Di=n(130),Ui=n(238),ji=n(126);function Mi(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,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zi(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 zi(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 zi(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 Fi=n(76),Vi=n.n(Fi);function Hi(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,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return qi(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 qi(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 qi(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 Bi(e){return{application:m.a.DEFAULT,action:_.a.Default.PLAY_VIDEO,args:[e.id,I.a.slugify(e.name)]}}function $i(e){var t,n=e.video;return i.createElement("h2",{className:"mb-0 h6"},!!n.series&&i.createElement(Di.a,{video:n,appLink:(t=n.series,{application:m.a.DEFAULT,action:_.a.Default.SERIES,args:[t.id,I.a.slugify(t.name)]})}),i.createElement(Bn.a,{appLink:Bi(n)},n.name))}function Ji(){var e;!function(){var e,t,n=Qn.a.useBasicFetch(ji.a.config),r=Mi(Object(Sr.a)(Qr.a.WEB_PLAYER_DATA,{webPlayerUrl:(null===(e=n.data)||void 0===e?void 0:e.webPlayerUrl)||"",video:null,viewportPosition:null,isOnPlayPage:!1}),2)[1];o.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=Hi(Object(Sr.a)(Qr.a.WEB_PLAYER_DATA),2),n=t[0],r=t[1];if(!(null===(e=n)||void 0===e?void 0:e.video))return i.createElement(i.Fragment,null);var a={},s=Vi.a.fixed;return n.viewportPosition&&(s=Vi.a.inline,a=n.viewportPosition),n.viewportPosition||(s+=" shadow"),i.createElement("div",{style:a,className:"".concat(s)},i.createElement(Ui.a,{id:n.video.id,webPlayerHost:n.webPlayerUrl,className:"embed-responsive-16by9",key:n.video.id}),!n.viewportPosition&&i.createElement("div",{className:"p-2 bg-white d-flex justify-content-between align-items-center"},i.createElement($i,{video:n.video}),i.createElement("span",{className:"".concat(Vi.a.buttons," flex-shrink-1")},i.createElement("span",{className:"cursor-pointer ml-1 float-right",role:"button",tabIndex:0,onClick:function(){wr.a.logUserAction({id:n.video.id},{location:g.j.FloatingPlayer,entity:g.d.Video,actionType:g.n.Click,descriptor:g.b.Close}),r("video",null)}},i.createElement(qn.a,{svgName:Vn.b.Close})),i.createElement(Bn.a,{onClick:function(){wr.a.logUserAction({id:n.video.id},{location:g.j.FloatingPlayer,entity:g.d.Video,actionType:g.n.Click,descriptor:g.b.Open})},appLink:Bi(n.video)},!n.isOnPlayPage&&i.createElement(qn.a,{svgName:Vn.b.NewWindow,className:"".concat(Vi.a.flippedIcon," d-inline-block svg-container float-right")})))))}var Gi=n(136),Ki=n(77),Wi=n.n(Ki);function Yi(){return i.createElement(i.Fragment,null,i.createElement("div",{className:Wi.a.dropMask}),i.createElement("div",{className:Wi.a.dropContent},i.createElement("div",{className:Wi.a.border},i.createElement("h1",null,i.createElement(Zr.b,{namespace:"shared.dragMask",phrase:"message"})))),i.createElement("div",{className:Wi.a.dropArea}))}var Qi=n(50),Xi=n.n(Qi);function Zi(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,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}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 to=function(e){var t,n=e.showNav,r=e.contentChild,o=e.popupChild,a=e.alertChild,s=Zi(i.useState(!1),2),c=s[0],l=s[1];Object(Gi.a)();var u=Object(Er.a)(xr.a.XS),p=Object(Er.a)(xr.a.SM),d=Object(Er.a)(xr.a.XXL),h=Zi(Object(Sr.a)(Qr.a.WEB_PLAYER_DATA),1)[0];i.useEffect((function(){l(!d)}),[d]);var f=function(e,t,n){return t?{state:e?Ai.Hidden:Ai.Open,showMask:!e,contentClass:Xi.a.hiddenNavContent}:n?{state:e?Ai.Collapsed:Ai.Open,showMask:!e,contentClass:Xi.a.collapsedNavContent}:{state:e?Ai.Collapsed:Ai.Open,showMask:!1,contentClass:e?Xi.a.collapsedNavContent:Xi.a.openNavContent}}(c,u,p),m=Object(Cr.a)(oi.b.VideoUpload),v=i.useCallback((function(e){m.addFiles(e,{entity:g.d.Video,actionType:g.n.Upload,workflowPhase:g.o.Start,descriptor:wr.a.mapInteractionType(g.h.DragDrop),location:g.j.VideoUpload})}),[]),y=Object(br.useDropzone)({onDrop:v,noClick:!0,noKeyboard:!0}),b=y.getRootProps,C=y.getInputProps,S=y.isDragActive,w="d-flex flex-column align-items-end",E="";return(null===(t=h)||void 0===t?void 0:t.viewportPosition)?E=Xi.a.fixedBottomRightContainer:w+=" ".concat(Xi.a.fixedBottomRightContainer),i.createElement("div",Object.assign({},b()),i.createElement(di,{toggleLeftNav:function(){l(!c)},showLeftNavToggle:n}),n&&i.createElement(_i,{navState:f.state}),i.createElement("div",{className:"".concat(Xi.a.content," ").concat(f.contentClass)},i.createElement("div",{className:"container overflow-hidden-x"},r)),o,f.showMask&&i.createElement("div",{className:"modal-backdrop show ".concat(Xi.a.mask)}),i.createElement("div",{className:w},!!a&&i.createElement("div",{className:E},a),i.createElement(Ji,null)),S&&i.createElement(Yi,null),i.createElement("input",Object.assign({},C())))};function no(e){return i.createElement(gr.Provider,{store:e.store},i.createElement(to,Object.assign({},e)))}var ro=n(266),io=n.n(ro);function oo(e){return(oo="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 ao(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 so(e,t,n){return(so="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=po(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function co(e,t){return(co=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function lo(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=po(e);if(t){var i=po(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return uo(this,n)}}function uo(e,t){return!t||"object"!==oo(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 po(e){return(po=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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&&co(e,t)}(a,e);var t,n,r,o=lo(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)).childComponents={},t}return t=a,r=[{key:"getCacheKey",value:function(e){return"".concat(h,":").concat(e.showNav)}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{showNav:this.options.showNav,contentChild:this.childComponents[N],popupChild:this.childComponents[R],alertChild:this.childComponents[P],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(R)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){so(po(a.prototype),"showChildView",this).call(this,"layout",i.createElement(no,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"TeacherLayoutView"}},{key:"template",get:function(){return io.a}}])&&ao(t.prototype,n),r&&ao(t,r),a}(yr);function fo(e){var t=e.contentChild;return i.createElement(i.Fragment,null,t)}function mo(e){var t=e.store;return i.createElement(gr.Provider,{store:t},i.createElement(fo,Object.assign({},e)))}var go=n(267),vo=n.n(go);function yo(e){return(yo="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 bo(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Co(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 So(e,t,n){return(So="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=Oo(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function wo(e,t){return(wo=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Eo(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=Oo(e);if(t){var i=Oo(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return xo(this,n)}}function xo(e,t){return!t||"object"!==yo(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 Oo(e){return(Oo=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ko=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&&wo(e,t)}(a,e);var t,n,r,o=Eo(a);function a(){var e;return bo(this,a),(e=o.apply(this,arguments)).childComponents={},e}return t=a,r=[{key:"getCacheKey",value:function(){return f}}],(n=[{key:"regions",value:function(){return{layout:{el:".layout-region",replaceEl:!0}}}},{key:"getChildComponents",value:function(){return{contentChild:this.childComponents[N],store:this.options.store}}},{key:"unsetRegion",value:function(e){delete this.childComponents[e],this.renderLayout()}},{key:"closePopup",value:function(){this.unsetRegion(R)}},{key:"showChildView",value:function(e,t){this.childComponents[e]=t,this.renderLayout()}},{key:"renderLayout",value:function(){So(Oo(a.prototype),"showChildView",this).call(this,"layout",i.createElement(mo,Object.assign({},this.getChildComponents())))}},{key:"title",get:function(){return!1}},{key:"name",get:function(){return"EmbedLayoutView"}},{key:"template",get:function(){return vo.a}}])&&Co(t.prototype,n),r&&Co(t,r),a}(yr);var Lo=n(46);class Ao{constructor(e){this.value=e}increment(){this.value+=1}decrement(){this.value-=1}getValue(){return this.value}}class To extends r.a.Model{get idAttribute(){return"masterVideoId"}}class No extends r.a.Collection{get model(){return To}}var Ro,Po=n(58);!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"}(Ro||(Ro={}));var Io=n(25);class _o extends r.a.Service{get name(){return yn.b.PendingItems}get channelName(){return Cn.c.PENDING_ITEMS}initialize(){this.videoDataService=tn.a.getInstance(yn.a.Video,this),this.videoUploadDataService=tn.a.getInstance(yn.a.VideoUpload,this)}clearPendingItem(e,t){switch(e.get("pendingProcessStatus")){case Po.a.Completed:case Po.a.Error:this.videoUploadDataService.clearPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.updateViewModel(),this.videoDataService.clearVideoCache(),nn.isFunction(t)&&t()});break;case Po.a.Processing:this.videoUploadDataService.cancelPendingItems([e.get("pendingProcessId")],()=>{e.set("clearing",!0),e.collection.remove(e),this.videoDataService.clearVideoCache(),this.updateViewModel(),nn.isFunction(t)&&t()})}}forceFetchPendingItems(e){this.fetchPendingItems(e)}retryPendingItem(e,t){this.videoUploadDataService.retryPendingItems([e.get("pendingProcessId")],()=>{this.fetchPendingItems({resetTimeout:!1,callback:t})})}itemStatusChanged(){a.Radio.channel(this.channelName).trigger(Io.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}getPendingItems(){return this.pendingItems||(this.pendingItems=new No,this.listenTo(this.pendingItems,"change:foregroundComplete",e=>{if(!e.get("foregroundComplete"))return;this.itemStatusChanged();e.get("video")&&a.Radio.channel(this.channelName).trigger(Io.a.PENDING_ITEM_READY_TO_WATCH,e)}),this.listenTo(this.pendingItems,"remove",e=>{e.get("clearing")||this.videoUploadDataService.getPendingItem(e.get("pendingProcessId"),e=>{e.get("status")===Po.a.Completed&&this.itemStatusChanged()})}),this.fetchPendingItems()),this.pendingItems}fetchPendingItems(e={resetTimeout:!0}){this.isDestroyed()||this.videoUploadDataService.getPendingItems(t=>{const n=nn.map(t,e=>e.masterVideoId.toString()),i=n=>{nn.each(t,e=>{const t=n.get(e.masterVideoId);t&&(e.video=t,e.foregroundProgress>=100&&t.get("status")===Ro.Processing&&t.set("status",Ro.Published))}),this.pendingItems.set(t),this.updateViewModel(),e.resetTimeout&&window.setTimeout(nn.bind(this.fetchPendingItems,this),this.getTimeoutLength()),nn.isFunction(e.callback)&&e.callback()};n.length?this.videoDataService.getVideos(n,i):i(new r.a.Collection)})}updateViewModel(){const e=Or.a.get("process:progress");if(!this.pendingItems||!this.pendingItems.length)return void e.set({progress:0,items:0});const t=this.pendingItems.where(e=>e.get("pendingProcessStatus")>=0);let n=0;nn.each(t,e=>n+=e.get("foregroundProgress"));const r=100*t.length;e.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==t.length})}getTimeoutLength(){return this.pendingItems.any(e=>e.get("pendingProcessStatus")===Po.a.Processing)?5e3:3e4}}var Do=n(102);class Uo extends r.a.Service{constructor(){super()}get name(){return yn.b.Notification}initDataServices(){this.notificationDataService=tn.a.getInstance(yn.a.Notification,this),this.notificationSocketService=tn.a.getInstance(yn.a.NotificationSocket,this),this.userDataService=tn.a.getInstance(yn.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}bindSocketListeners(){const e=bn.a.NOTIFICATIONS;this.listenTo(Cn.b.NOTIFICATIONS_SOCKET,e+":new:sync",this.addNewNotification),this.listenTo(Cn.b.NOTIFICATIONS_SOCKET,e+":count:sync",this.updateUnreadCount),this.listenTo(Cn.b.NOTIFICATIONS,e+":seen",this.updateUnreadCount)}bindAppListeners(){this.listenTo(Cn.a.NOTIFICATIONS,Do.a.Read,this.markNotificationRead)}getDataServices(){this.dataServicesExist()||this.initDataServices()}dataServicesExist(){return!!this.notificationSocketService&&!!this.notificationDataService}addNewNotification(e){this.userDataService.getCurrentUser(t=>{this.notificationDataService.getNotifications(t.id,null,bn.a.NOTIFICATIONS,t=>{t.add(e,{at:0})})})}updateUnreadCount(e=0){Or.a.get(bn.a.NOTIFICATIONS).set("unreadCount",e)}getNotifications(e,t,n){this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser(r=>{this.notificationDataService.getNotifications(r.id,e,t.toString(),n)})}getNotificationsMetadata(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),Or.a.get(bn.a.NOTIFICATIONS)}markNotificationsSeen(){this.notificationDataService.markSeen()}markNotificationRead(e){this.notificationDataService.markRead(e)}getNotificationsCursors(e){return this.notificationDataService.getNotificationsCursors(e.toString())}}class jo extends ln.Object{constructor(e){super(),this.subscribeEvent="subscribe",this.reconnectTimeout=5e3,this.reconnectAttempts=100,this.reconnectTries=0,this.connection=$.hubConnection(e.endpoint),this.hub=this.connection.createHubProxy(e.hubName),this.authEndpoint=e.authEndpoint,this.setProviderOptions(e),this.attachSocketEvents(),!1===e.lazy&&this.openConnection()}setProviderOptions(e){e.logging&&(this.connection.logging=!0),e.subscribeEvent&&(this.subscribeEvent=e.subscribeEvent),e.reconnectTimeout&&(this.reconnectTimeout=e.reconnectTimeout),e.reconnectAttempts&&(this.reconnectAttempts=e.reconnectAttempts)}openConnection(){if(!this.isConnectedOrConnecting())return this.setConnectionState(0),this.connect()}connect(){return $.when(this.getConnectionToken(),this.connection.start()).then(e=>this.start.apply(this,e),e=>this.onConnectionError.apply(this,e))}start(e){return this.hub.invoke(this.subscribeEvent,e.Token).done(()=>this.setConnectionState(1)).fail(e=>this.onConnectionError(e))}stop(e,t){this.isConnectedOrConnecting()&&this.connection.stop(e,t)}attachSocketEvents(){this.connection.disconnected(()=>this.onConnectionError),this.connection.reconnected(()=>this.onReconnect)}onReconnect(){this.reconnectTries=0}onConnectionError(e){e?console.log("Connection Error. Reason: "+e):this.connection.lastError?console.log("Connection Error. Reason: "+this.connection.lastError):console.log("Connection Error."),this.setConnectionState(4),!this.reconnectAttempts||this.reconnectTries>=this.reconnectAttempts||setTimeout(()=>(this.reconnectTries++,this.openConnection()),this.reconnectTimeout||5e3)}getConnectionToken(){const e={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(e)}setConnectionState(e){1===e&&console.log("Connected!"),4===e&&console.log("Disconnected!"),this.connectionState=e}isConnectedOrConnecting(){return 0===this.connectionState||1===this.connectionState||2===this.connectionState}create(e,t,n){this.openConnection(),this.rpc(e,t,n)}read(e,t){this.openConnection(),this.subscribe(e,t)}update(e,t,n){this.openConnection(),this.rpc(e,t,n)}delete(e,t){this.openConnection(),this.rpc(e,null,t)}parseError(...e){return un.a}rpc(e,t,n){const{channel:r,successEvent:i,errorEvent:o}=n;this.hub.invoke(e,t).done((e,t,n)=>r.trigger(i,e,t,n)).fail((e,t,n)=>r.trigger(o,e,t,n))}subscribe(e,t){const{channel:n,successEvent:r,errorEvent:i}=t;this.hub.on(e,(...e)=>{n.trigger(r,...e)})}}class Mo extends jo{get name(){return cn.Notifications}}class zo extends r.a.Service{initialize(){this.listenTo(c.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(Cn.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(Cn.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}get name(){return yn.b.ContextualSearch}get lang(){return"search.services"}getSearchContext(){return this.searchContext}onRouteChange(e,t){t.isAppRoute&&this.setSearchContext(e)}onTypeaheadToggle(e){if(e.open||this.searchContext.get("filterValue"))return;const t=Ci.a.getCurrentContext().appLink;this.setSearchContext(t)}setSearchContext(e){const t=this.isValidSearchContext(e);if(t)this.updateSearchContext(t,e.args);else if(!this.inSearchView(e)){a.Radio.channel(Cn.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}}updateSearchContext(e,t){e.appLink.args=t,this.searchContext.set(e),e.setFilterValue(e,this)}setFilterValue(e){const t={filterValue:e,title:e};this.searchContext.set(t)}resetSearchContext(){this.searchContext.clear({silent:!0})}isValidSearchContext(e){return this.appVariables||(this.appVariables=tn.a.getInstance(Lr.a.SEARCH,this)),nn.find(((e,t)=>{const n=[];return t.folder&&n.push({appLink:t.folder,searchTag:Rn.a.getPhrase(e,"folderTag"),filterParam:"folder",setFilterValue:(e,t)=>{tn.a.getInstance(yn.a.Library,t).getFolder(nn.first(e.appLink.args).toString(),e=>{t.setFilterValue(e.get("name")),tn.a.releaseInstance(yn.a.Library)})}}),t.series&&n.push({appLink:t.series,searchTag:Rn.a.getPhrase(e,"seriesTag"),filterParam:"series",setFilterValue:(e,t)=>{tn.a.getInstance(yn.a.Series,t).getSeries(nn.first(e.appLink.args).toString(),e=>{t.setFilterValue(e.name),tn.a.releaseInstance(yn.a.Series)})}}),n})(this.lang,this.appVariables.appLinks),t=>e.application===t.appLink.application&&e.action===t.appLink.action)}inSearchView(e){const t=this.appVariables.appLinks.searchResults;return e.application===t.application&&e.action===t.action}}var Fo=n(124);function Vo(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 Ho=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,i;return t=e,(n=[{key:"clearVideoCache",value:function(){this.store.dispatch({type:Qn.a.Actions.INVALIDATE,keys:["video"],request:null})}},{key:"getVideos",value:function(e,t){var n=function(e){mi.a.isFunction(t)&&t(new r.a.Collection(e))},i=Fo.a.videos(e,n),o=Qn.a.getResponse(this.store.getState(),i.key);return o.shouldFetch?Qn.a.fetch(this.store.dispatch,i):n(o.data),new r.a.Collection(o.data)}},{key:"name",get:function(){return oi.a.Video}}])&&Vo(t.prototype,n),i&&Vo(t,i),e}();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 Bo,$o,Jo=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:pn.a.DELETE}},Go=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:pn.a.DELETE}},Ko=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:pn.a.POST}},Wo=function(e,t){return{url:"/api/domain/v2/process/".concat(e),key:"pending:item:".concat(e),success:t,normalize:!1}},Yo=function(e){return{url:"/api/domain/v2/process?destination=2&status=1&status=-1",key:"pending",success:e,normalize:!1}},Qo=function(e,t){return{url:"/api/domain/v2/process",key:"complete:upload:".concat(e.id),type:pn.a.POST,success:t,data:e}},Xo=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,i;return t=e,(n=[{key:"clearPendingItems",value:function(e,t){Qn.a.fetch(this.store.dispatch,Jo(e,t))}},{key:"cancelPendingItems",value:function(e,t){Qn.a.fetch(this.store.dispatch,Go(e,t))}},{key:"retryPendingItems",value:function(e,t){Qn.a.fetch(this.store.dispatch,Ko(e,t))}},{key:"getPendingItem",value:function(e,t){Qn.a.fetch(this.store.dispatch,Wo(e,(function(e){t(new r.a.Model(e))})))}},{key:"getPendingItems",value:function(e){Qn.a.fetch(this.store.dispatch,Yo(e))}},{key:"completeVideoUpload",value:function(e,t){Qn.a.fetch(this.store.dispatch,Qo(e,t))}},{key:"name",get:function(){return oi.a.VideoUpload}}])&&qo(t.prototype,n),i&&qo(t,i),e}(),Zo=n(134);!function(e){e[e.Upload=1]="Upload",e[e.Tv=2]="Tv"}(Bo||(Bo={})),function(e){e[e.Permanent=0]="Permanent",e[e.Temporary=1]="Temporary"}($o||($o={}));const ea=["pdf"],ta=["doc","docx","dotx","dot","rtf","docm","odt"],na=["csv","txt"],ra=["xls","xlt","xlsx"],ia=["jpg","tif","png","bmp","gif","jpeg"],oa=["zip","rar"],aa=["ppt","pot","pps","pptx"],sa=["srt"],ca={IMAGES:"."+ia.join(",."),RESOURCES:"."+[...ta,...ra,...aa,...ea,...na,...ia,...oa].join(",."),SUBTITLES:"."+sa.join(",.")};class la extends ur{constructor(e,t,n){super(e)}get name(){return"FileTypeError"}get lang(){return"upload.fileType"}get dialogOptions(){return{title:Rn.a.getPhrase(this.lang,"heading"),text:Rn.a.getPhrase(this.lang,"body"),buttons:[{text:Rn.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:Rn.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}var ua=n(117);class pa extends ur{constructor(){super(Rn.a.getPhrase("upload.internetConnectivityError","title"))}get name(){return"InternetConnectivityError"}get dialogOptions(){return{title:Rn.a.getPhrase("upload.internetConnectivityError","heading"),text:Rn.a.getPhrase("upload.internetConnectivityError","body"),buttons:[{text:Rn.a.getPhrase("upload.internetConnectivityError","okay"),className:"btn",success:!0}]}}}const da=[];class ha extends r.a.Service{constructor(e){super(e)}get name(){return"DropzoneWrapper"}initialize(e){const{loggingEnabled:t}=this.options,n=a.Radio.channel(e.channelName),i=this;this.dropzone=new ua(document.createElement("div"),{url:e=>{const t=e[0],{ingestUrl:n}=t.cvUpload;return n},chunking:this.options.chunkingEnabled,chunkSize:this.options.chunkSize,forceChunking:!0,autoProcessQueue:!0,maxFilesize:this.options.maxFileSize,acceptedFiles:this.options.acceptedFiles,paramName:"content",init:function(){t&&(nn.each(da,e=>{this.on(e,(...t)=>{const n=t[0]instanceof File?t[0].name:t[0];console.info(e,n,t)})}),this.on("uploadprogress",(e,t,r)=>{const o=r/e.size*100;n.trigger("progress",i.getId(e),o,r)}),this.on("success",e=>{const t=e.upload.chunks,r=nn.last(t);let i=r.xhr;i||(i=r.file.xhr);const o=JSON.parse(i.response);e.cvUpload.fileUrl=o.url,n.trigger("upload:success",e,o)}),this.on("error",(e,t,n)=>{n&&0===n.status?r.a.ErrorHelper.throw(new pa):"canceled"!==e.status&&r.a.ErrorHelper.throw(new cr(Rn.a.getPhrase("upload.services","uploadError",{fileName:e.name,message:t.message})))}))},params:(e,t,n)=>{if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:()=>{},thumbnail:()=>{},uploadprogress:()=>{}})}getId(e){return e.upload.uuid}addFile(e){this.dropzone.addFile(e)}removeFile(e){this.dropzone.removeFile(e)}start(){this.dropzone.processQueue()}destroy(){this.dropzone.destroy()}static isValidFile(e,t){return ua.isValidFile(e,t)}}class fa extends vn.a{constructor(){super({dataProvider:tn.a.getInstance(cn.Ajax),cache:tn.a.getInstance(en.Fifo),alertService:tn.a.getInstance(gn.a.ALERT)})}get name(){return"UploadDataService"}get channelName(){return"private:upload:data:service"}requestUploads(e,t,n,r){const i=this.chain();nn.each(e,e=>{i.create({resource:"/api/upload",eventPrefix:"request:upload",data:this.getFileUploadRequest(e,t),callback:t=>{n(e,t)}})}),i.func(()=>{r()}).run()}cancelUpload(e,t,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:e,ingestUrl:t},callback:n})}getFileUploadRequest(e,t){const n=e.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:e.size,fileLifestyle:t}}onDestroy(){tn.a.releaseInstance(cn.Ajax).releaseInstance(en.Fifo)}}var ma;!function(e){e[e.Video=0]="Video",e[e.LearningResource=1]="LearningResource",e[e.Subtitle=2]="Subtitle"}(ma||(ma={}));const ga={[ma.Video]:"video/*",[ma.LearningResource]:ca.RESOURCES,[ma.Subtitle]:ca.SUBTITLES},va={[ma.Video]:Cn.c.VIDEO_UPLOAD,[ma.LearningResource]:Cn.c.RESOURCE_UPLOAD,[ma.Subtitle]:Cn.c.SUBTITLE_UPLOAD};class ya extends r.a.Service{initialize(){this.uploadDataService=new fa,this.progressViewModel=Or.a.get("upload:progress:"+this.uploadType),this.bindListeners()}get channelName(){return va[this.uploadType]}get lang(){return"upload.services"}initUploader(e,t){if(this.uploader)return;let n=4194304;e&&n<e&&(n=e),t&&n>t&&(n=t),this.uploader=new ha({chunkingEnabled:!0,loggingEnabled:!0,chunkSize:n,maxFileSize:53687091200,acceptedFiles:this.getAcceptedFiles(),channelName:this.channelName})}bindListeners(){this.listenTo(this.channelName,"progress",this.onProgress),this.listenTo(this.channelName,"upload:success",this.onSuccess)}onProgress(e,t,n){const r=this.collection.get(e);r&&(r.set({progress:t>100?100:t,totalUploaded:n}),this.setOverallProgress())}isUploading(){return!!this.getCollection().length}getCollection(){return this.collection||(this.collection=new r.a.Collection),this.collection}setOverallProgress(){let e=0,t=0;const n=this.getCollection();if(!n.length)return void this.progressViewModel.set({progress:0});n.each(n=>{e+=n.get("totalUploaded")||0,t+=n.get("file").size||0});const r=e/t*100,i=r>100;this.progressViewModel.set({progress:i?100:r,done:i})}isValidFile(e){return ha.isValidFile(e,this.getAcceptedFiles())}addFiles(e,t){nn.any(e,e=>!this.isValidFile(e))?r.a.ErrorHelper.throw(new la(Rn.a.getPhrase(this.lang,"invalidFileType"),e,this.getAcceptedFiles())):this.requestUploads(e,t)}requestUploads(e,t){const n=this.isUploading(),r=this.getCollection();this.uploadDataService.requestUploads(e,this.fileLifestyle,(e,t)=>{this.initUploader(1024*t.minChunkSize,1024*t.maxChunkSize),e.cvUpload={uploadId:t.uploadId,ingestUrl:t.ingestUrl},this.uploader.addFile(e);let n=e.name;this.uploadType===ma.Video&&(n=n.replace(/\.[^/.]+$/,"")),r.add({id:this.uploader.getId(e),file:e,name:n},{at:r.length-1})},()=>{t&&wr.a.logUserAction({uploadCount:e.length},t);a.Radio.channel(this.channelName).trigger(Io.a.FILES_ADDED,e,n)})}addFile(e,t){this.addFiles([e],t)}cancelUpload(e){const t=this.getCollection(),n=t.get(e);if(!n)return;const r=n.get("file");this.uploader.removeFile(r),t.remove(n),this.uploadDataService.cancelUpload(r.cvUpload.uploadId,r.cvUpload.ingestUrl,()=>{wr.a.logUserAction({id:r.cvUpload.uploadId},{entity:g.d.Video,actionType:g.n.Upload,workflowPhase:g.o.Discard,descriptor:g.k.Single,location:g.j.MyUploads}),a.Radio.channel(this.channelName).trigger(Io.a.UPLOAD_CANCELLED)}),this.setOverallProgress()}onSuccess(e,t){const n=this.uploader.getId(e),r=this.getCollection().get(n);r.set("fileInfo",t),wr.a.logUserAction({id:e.cvUpload.uploadId},{entity:g.d.Video,actionType:g.n.Upload,workflowPhase:g.o.Complete,descriptor:g.k.Single,location:g.j.VideoUpload});a.Radio.channel(this.channelName).trigger(Io.a.UPLOAD_COMPLETE,r)}cancelAllUploads(){const e=this.getCollection().map(e=>e.get("id"));nn.each(e,e=>this.cancelUpload(e))}getAcceptedFiles(){return ga[this.uploadType]}}class ba extends ya{get uploadType(){return ma.Video}get name(){return yn.b.VideoUpload}get fileLifestyle(){return $o.Temporary}}var Ca,Sa;function wa(e){return(wa="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 Ea(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xa(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 Oa(e,t,n){return(Oa="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=Ta(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function ka(e,t){return(ka=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=Ta(e);if(t){var i=Ta(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Aa(this,n)}}function Aa(e,t){return!t||"object"!==wa(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 Ta(e){return(Ta=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"}(Ca||(Ca={})),function(e){e[e.ExternalOnly=0]="ExternalOnly",e[e.EmbeddedOnly=1]="EmbeddedOnly"}(Sa||(Sa={}));var Na=Rn.a.encloseNamespace("upload.services"),Ra=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&&ka(e,t)}(o,e);var t,n,r,i=La(o);function o(){return Ea(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"initialize",value:function(){Oa(Ta(o.prototype),"initialize",this).call(this),this.videoUploadDataService=tn.a.getInstance(oi.a.VideoUpload,this),this.pendingItemsService=tn.a.getInstance(oi.b.PendingItems,this),this.userDataService=tn.a.getInstance(oi.a.User,this),this.alertService=tn.a.getInstance(gn.a.ALERT,this),this.listenTo(this.channelName,Io.a.FILES_ADDED,this.onUploadStart),this.listenTo(this.channelName,Io.a.UPLOAD_COMPLETE,this.unlockNav),this.listenTo(this.channelName,Io.a.UPLOAD_CANCELLED,this.unlockNav)}},{key:"onUploadStart",value:function(e){var t={type:mn.a.Success,heading:Na("startUploadAlertHeading"),message:1===e.length?Na("startUploadSingleAlertBody",{videoName:e[0].name}):Na("startUploadMultipleAlertBody",{uploadCount:e.length})};Ci.a.getCurrentContext().appLink.application===m.a.UPLOAD||(t.appLinkText=Na("startUploadAlertAppLinkText",{smartCount:e.length}),t.appLink={application:m.a.UPLOAD,action:_.a.Upload.MY_UPLOADS},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(Io.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(i){n.videoUploadDataService.completeVideoUpload({id:e.get("id"),userId:r.id,customerId:r.customerId,libraryId:i.id,categoryId:i.categoryTree.id,pendingProcessOrigin:Bo.Upload,origin:Ca.Lite,fileUrl:t.url,subtitleOptions:{SubtitleExtractOptions:Sa.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;Oa(Ta(o.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)}}])&&xa(t.prototype,n),r&&xa(t,r),o}(ba);class Pa extends r.a.Service{constructor(e){super(e),this.imageUrls=e.imageUrls}get name(){return yn.b.ImageUrl}getImageUrls(){return this.imageUrls}}var Ia={EmptyStates:{VIDEOS:""},ErrorViews:{DEFAULT:""}};var _a=n(109),Da=n(36),Ua=n(90);const ja={version:null};function Ma(e=ja,t){switch(t.type){case Ua.a.API_REPONSE:return function(e,t){return Da.a.isObject(t.xhr)?Object.assign(Object.assign({},e),{version:t.xhr.getResponseHeader("X-App-Version")}):e}(e,t)}return e}var za=n(99);function Fa(e={},t){switch(t.type){case za.a.UPDATE:return function(e,t){return"string"==typeof t.payload.dataOrKey&&void 0!==t.payload.keyData?Object.assign(Object.assign({},e),{[t.payload.viewModelKey]:Object.assign(Object.assign({},e[t.payload.viewModelKey]),{[t.payload.dataOrKey]:t.payload.keyData})}):Object.assign(Object.assign({},e),{[t.payload.viewModelKey]:t.payload.dataOrKey})}(e,t)}return e}var Va=n(93),Ha=n(86);function qa(e,t){var n=Object(_a.combineReducers)({flightData:Qn.a.FlightReducer,applicationData:Ma,viewModelData:Fa}),r=Qn.a.createMiddleware({fetchData:Qn.a.ajaxRequest,bootstrappedData:window.bootstrapData,defaultExpiryTime:xn.a.STANDARD}),i=function(e){const{oldVersionError:t,authenticationError:n}=e;return function(e){return r=>i=>{var o,a,s,c;if(i.type!==Va.Actions.API_REPONSE)return void r(i);const l=i,u=e.getState().applicationData.version,p=null===(a=null===(o=l)||void 0===o?void 0:o.xhr)||void 0===a?void 0:a.getResponseHeader("X-App-Version");t&&u&&p&&p!==u&&an.c.throw(t),n&&(null===(c=null===(s=l)||void 0===s?void 0:s.xhr)||void 0===c?void 0:c.status)===Ha.a.Unauthorized&&an.c.throw(n),r(i)}}}({oldVersionError:new rn.a("A new version is available"),authenticationError:new rn.a("Authentication Error")});var o,a=Object(_a.createStore)(n,Object(_a.applyMiddleware)(r,i));o=a,e.registerStore(o),t(),delete window.bootstrapData}var Ba=n(82);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 Ja(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ga(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 Ka(e,t){return(Ka=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Wa(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=Qa(e);if(t){var i=Qa(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return Ya(this,n)}}function Ya(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 Qa(e){return(Qa=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xa=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&&Ka(e,t)}(o,e);var t,n,r,i=Wa(o);function o(){return Ja(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{searchResults:{application:m.a.SEARCH,action:_.a.Search.HOME},series:{application:m.a.DEFAULT,action:_.a.Default.SERIES},videoDetails:{application:m.a.DEFAULT,action:_.a.Default.PLAY_VIDEO},tagSearch:{application:m.a.SEARCH,action:_.a.Search.HOME},classification:{application:m.a.SUBJECT,action:_.a.Subjects.CLASSIFICATION}}}}])&&Ga(t.prototype,n),r&&Ga(t,r),o}(Ba.b),Za=n(30);function es(e){return(es="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 ts(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ns(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 rs(e,t){return(rs=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function is(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=as(e);if(t){var i=as(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return os(this,n)}}function os(e,t){return!t||"object"!==es(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 as(e){return(as=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&&rs(e,t)}(o,e);var t,n,r,i=is(o);function o(){return ts(this,o),i.apply(this,arguments)}return t=o,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:m.a.DEFAULT,action:_.a.Default.PLAY_VIDEO},notifications:{application:m.a.NOTIFICATIONS,action:_.a.Notifications.HOME},pastReleases:{application:m.a.DASHBOARD,action:_.a.Dashboard.HOME},awaitingReview:{application:m.a.DASHBOARD,action:_.a.Dashboard.HOME},editStaffRequest:{application:m.a.DASHBOARD,action:_.a.Dashboard.HOME}}}},{key:"notificationTypesWithAppLinks",get:function(){return[Za.a.VideoReviewReminder,Za.a.VideoReviewAddedToLibrary,Za.a.CustomLibraryVideoAvailable,Za.a.WorkspaceVideoAvailable,Za.a.ExchangeVideoAvailable]}},{key:"notificationsEmptyStateUrl",get:function(){return""}},{key:"bellIconColor",get:function(){return"dark"}}])&&ns(t.prototype,n),r&&ns(t,r),o}(Ba.a);var cs=n(18);const ls={register(){cs.registerHelper("lang",(e,t)=>{if(!this.isValid(e,t))return;const n=t.data.root.languageNamespace;return Rn.a.getPhrase(n,e,t.hash)})},isValid:(e,t)=>"string"!=typeof e?(r.a.ErrorHelper.throw(new rn.a("No language key provided.")),!1):"object"!=typeof t?(r.a.ErrorHelper.throw(new rn.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!nn.isUndefined(t.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new rn.a("No `lang` property provided.")),!1)};var us,ps=n(84);!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"}(us||(us={}));const ds={curriculum:!1};class hs{constructor(e){this.options=Object.assign({onlineModules:ds},e)}get name(){return yn.b.AppOptions}get hasCurriculum(){return this.options.onlineModules.curriculum}get isTeacher(){return this.options.onlineRole===ps.a.Staff}get onlineRole(){return this.options.onlineRole}get onlineCustomerType(){return this.options.customerType}}n(54),n(101),n(100);r.a.Service;ln.Object;class fs extends r.a.Service{enrich(e,t){}isType(e){return e===fs.type}}fs.type="BaseAnalyticsEnricher";n(112);var ms="URLSearchParams"in self,gs="Symbol"in self&&"iterator"in Symbol,vs="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(e){return!1}}(),ys="FormData"in self,bs="ArrayBuffer"in self;if(bs)var Cs=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Ss=ArrayBuffer.isView||function(e){return e&&Cs.indexOf(Object.prototype.toString.call(e))>-1};function ws(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 Es(e){return"string"!=typeof e&&(e=String(e)),e}function xs(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return gs&&(t[Symbol.iterator]=function(){return t}),t}function Os(e){this.map={},e instanceof Os?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 ks(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function Ls(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function As(e){var t=new FileReader,n=Ls(t);return t.readAsArrayBuffer(e),n}function Ts(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function Ns(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:vs&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:ys&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:ms&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():bs&&vs&&((t=e)&&DataView.prototype.isPrototypeOf(t))?(this._bodyArrayBuffer=Ts(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):bs&&(ArrayBuffer.prototype.isPrototypeOf(e)||Ss(e))?this._bodyArrayBuffer=Ts(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):ms&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},vs&&(this.blob=function(){var e=ks(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?ks(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(As)}),this.text=function(){var e,t,n,r=ks(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=Ls(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)},ys&&(this.formData=function(){return this.text().then(Is)}),this.json=function(){return this.text().then(JSON.parse)},this}Os.prototype.append=function(e,t){e=ws(e),t=Es(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},Os.prototype.delete=function(e){delete this.map[ws(e)]},Os.prototype.get=function(e){return e=ws(e),this.has(e)?this.map[e]:null},Os.prototype.has=function(e){return this.map.hasOwnProperty(ws(e))},Os.prototype.set=function(e,t){this.map[ws(e)]=Es(t)},Os.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},Os.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),xs(e)},Os.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),xs(e)},Os.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),xs(e)},gs&&(Os.prototype[Symbol.iterator]=Os.prototype.entries);var Rs=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function Ps(e,t){var n,r,i=(t=t||{}).body;if(e instanceof Ps){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Os(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=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 Os(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),Rs.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)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function Is(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}})),t}function _s(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 Os(t.headers),this.url=t.url||"",this._initBody(e)}Ps.prototype.clone=function(){return new Ps(this,{body:this._bodyInit})},Ns.call(Ps.prototype),Ns.call(_s.prototype),_s.prototype.clone=function(){return new _s(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Os(this.headers),url:this.url})},_s.error=function(){var e=new _s(null,{status:0,statusText:""});return e.type="error",e};var Ds=[301,302,303,307,308];_s.redirect=function(e,t){if(-1===Ds.indexOf(t))throw new RangeError("Invalid status code");return new _s(null,{status:t,headers:{location:e}})};var Us=self.DOMException;try{new Us}catch(e){(Us=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),Us.prototype.constructor=Us}function js(e,t){return new Promise((function(n,r){var i=new Ps(e,t);if(i.signal&&i.signal.aborted)return r(new Us("Aborted","AbortError"));var o=new XMLHttpRequest;function a(){o.abort()}o.onload=function(){var e,t,r={status:o.status,statusText:o.statusText,headers:(e=o.getAllResponseHeaders()||"",t=new Os,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}})),t)};r.url="responseURL"in o?o.responseURL:r.headers.get("X-Request-URL");var i="response"in o?o.response:o.responseText;setTimeout((function(){n(new _s(i,r))}),0)},o.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},o.onabort=function(){setTimeout((function(){r(new Us("Aborted","AbortError"))}),0)},o.open(i.method,function(e){try{return""===e&&self.location.href?self.location.href:e}catch(t){return e}}(i.url),!0),"include"===i.credentials?o.withCredentials=!0:"omit"===i.credentials&&(o.withCredentials=!1),"responseType"in o&&(vs?o.responseType="blob":bs&&-1!==i.headers.get("Content-Type").indexOf("application/octet-stream")&&(o.responseType="arraybuffer")),i.headers.forEach((function(e,t){o.setRequestHeader(t,e)})),i.signal&&(i.signal.addEventListener("abort",a),o.onreadystatechange=function(){4===o.readyState&&i.signal.removeEventListener("abort",a)}),o.send(void 0===i._bodyInit?null:i._bodyInit)}))}js.polyfill=!0,self.fetch||(self.fetch=js,self.Headers=Os,self.Request=Ps,self.Response=_s);n(268),n(269);const Ms={isObject(e){var t=typeof e;return"function"===t||"object"===t&&!!e},isFunction:e=>"function"==typeof e};var zs;!function(e){e.CvApSoutheast1="cv-ap-southeast-1",e.CvApSoutheast2="cv-ap-southeast-2",e.CvEuWest1="cv-eu-west-1"}(zs||(zs={}));zs.CvApSoutheast1,zs.CvApSoutheast2,zs.CvEuWest1;var Fs;!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(Fs||(Fs={}));Fs.AU,zs.CvApSoutheast1,Fs.NZ,zs.CvApSoutheast2,Fs.UK,zs.CvEuWest1;class Vs extends r.a.Service{constructor(e){super(e)}shouldLog(e){return!0}log(e){}isType(e){return e===Vs.type}}Vs.type="BaseAnalyticsClient";const Hs={allow:()=>!0,restrict:()=>!1};function qs(e){const t={};return Object.keys(e).forEach(n=>{t[n]=((e,t)=>{switch(t){case"description":return g.e.ValueUpdated;case"channel":case"rating":case"series":case"distributor":case"producer":return e&&e.id||g.e.EntityRemoved;default:return e}})(e[n],n)}),t}const Bs={passthrough:e=>e,getEditData(e,t){const{entity:n,location:r,descriptor:i}=function(e){return Ms.isObject(e)&&Ms.isObject(e.actionContext)?{entity:e.actionContext.entity,location:e.actionContext.location,descriptor:e.actionContext.descriptor}:{}}(t);return n===g.d.Video&&r===g.j.EditVideoDetails?qs(e):e}};function $s(e){if(e&&e.code)return e.code}function Js(e,t={}){if(!e||!e.id)return;const n={id:e.id};return e.name&&!t.ignoreTitle&&(n.title=e.name),n}function Gs(e){if(!e||!e.length)return;const t=e[0];return{id:t.id,title:t.name}}const Ks={getVideoData(e){let{playbackStatus:t}=e;const n=e.model,r=function(e){if(!e||!e.id)throw new Error("Video model required. Checking logging.");return{id:e.id,title:e.name,trackingCode:e.trackingCode,duration:e.duration}}(n),i=Js(n.series),o=Gs(n.categories),a=Js(n.owner,{ignoreTitle:!0}),s=Js(n.playlist),c=$s(n.rating),l={video:r};return c&&(l.rating=c),i&&(l.series=i),o&&(l.folder=o),a&&(l.owner=a),s&&(l.playlist=s),t&&(l.playbackStatus=t),l},getLegacyVideoData(e){const t=e.model,n={id:t.id,year:t.productionYear,title:t.name,trackingCode:t.trackingCode},r=$s(t.rating),i=Js(t.series),o=Gs(t.categories),a=Js(t.owner,{ignoreTitle:!0}),s=Js(t.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),i&&(n.seriesId=i.id,n.series=i.title),o&&(n.category=o.title),s&&(n.playlist=s),n}},Ws={getUploadData(e,t){const{entity:n}=t.actionContext;if(n===g.d.Video)return Ws.formatVideoUpload(e,t);if(n===g.d.Resource||n===g.d.Subtitle)return Ws.formatResourceUpload(e);if(n===g.d.Banner||n===g.d.Thumbnail)return e;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload(e,t){const{workflowPhase:n}=t.actionContext;return n===g.o.Start?Ws.getStartVideoUploadData(e):n===g.o.Discard?Ws.getDiscardVideoUploadData(e):n===g.o.Complete?Ws.getCompleteUploadData(e):void 0},getStartVideoUploadData:e=>e&&e.length?(e instanceof FileList&&(e=Array.from(e)),e.map(t=>({fileName:t.name,size:t.size,type:t.type,count:e.length}))):[],getDiscardVideoUploadData(e){const t=t=>{const{type:n,name:r,status:i,cvUpload:o}=t.file,a={fileName:r,count:Array.isArray(e)?e.length:1,type:n,status:i};return t.progress&&(a.progress=t.progress.toFixed(2)),o&&(a.uploadId=o.uploadId),a};return Array.isArray(e)?e.map(e=>t(e)):[t(e)]},getCompleteUploadData:e=>e&&e.length?e.map(t=>{const{fileName:n,libraryId:r,folderId:i}=t;return{fileName:n,libraryId:r,folderId:i,count:e.length}}):[],formatResourceUpload(e){const{id:t,name:n}=e,r={id:t,name:n};return Ms.isObject(e.metadata)&&(r.type=e.metadata.type),r}};g.n.Navigate,g.n.Click,g.n.Search,g.n.InstantSearch,g.n.Play,g.n.Stream,g.n.Rename,g.n.Move,g.n.Create,g.n.Delete,g.n.Associate,g.n.Dissociate,g.n.Filter,g.n.Sort,g.n.Approve,g.n.Reject,g.n.Disable,g.n.Upload,g.n.Download,g.n.SetAccess,g.n.AddToLocalCache,g.n.Share,g.n.Edit,g.n.Suggest,g.n.ResolveWarning,g.n.DismissWarning,g.n.EditAssoc,g.n.Search,g.n.InstantSearch,g.n.Play,g.n.Stream,g.n.Click,g.n.Filter,g.n.Sort,g.n.SetAccess,g.n.Approve,g.n.Reject,g.n.Create,g.n.Delete,g.n.Rename,g.n.Move,g.n.Edit,g.n.Share,g.n.Disable,g.n.Suggest,g.n.Upload,Ws.getUploadData,g.n.ResolveWarning,g.n.DismissWarning,g.n.Search,g.n.InstantSearch;var Ys;!function(e){e.AU="au",e.NZ="nz",e.UK="uk"}(Ys||(Ys={}));var Qs=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({})});Qs.addInitializationStep(qa).addInitializationStep((function(e,t){e.registerLayout(h,ho).registerLayout(f,ko),t(e)})).addInitializationStep((function(e,t){tn.a.registerInstance(sn,{size:100}),t(e)})).addInitializationStep((function(e,t){tn.a.registerInstance(Xa).registerInstance(ss),t(e)})).addInitializationStep((function(e,t){tn.a.registerInstance(fn,{}),t(e)})).addInitializationStep(qa).addInitializationStep((function(e,t){var n={maxAlerts:3,defaultSuccessAlert:{heading:ar,type:mn.a.Success},defaultErrorAlert:{heading:sr,type:mn.a.Fail},alertViewCtor:Yn};tn.a.registerSingleton(new mn.b(n));var r=tn.a.getInstance(gn.a.ALERT),i={cache:en.Fifo,dataProvider:cn.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};tn.a.registerDataService(On,i).registerDataService(kn.a,i).registerDataService(Ln,i).registerDataService(zn,i);var o={store:e.store};tn.a.registerInstance(nr,o).registerInstance(or,o);var a={cache:en.Fifo,dataProvider:cn.Notifications,alertService:r};tn.a.registerDataService(Tn,a),t(e),delete window.bootstrapData})).addInitializationStep((function(e,t){var n=new zo;tn.a.registerInstance(Pa,{imageUrls:Ia}).registerInstance(Ra).registerInstance(Ho,{store:e.store}).registerInstance(Xo,{store:e.store}).registerInstance(_o).registerInstance(Zo.a).registerInstance(Uo).registerSingleton(n);var r=new Ao(2),i=function(){r.decrement(),r.getValue()>0||(tn.a.releaseInstance(yn.a.Language),tn.a.releaseInstance(yn.a.Config),t(e))};tn.a.getInstance(yn.a.Language).getLanguageConfig((function(e){Rn.a.setConfig(e),i()})),tn.a.getInstance(yn.a.Config).getConfig((function(e){tn.a.registerInstance(Mo,{endpoint:e.notificationServiceUrl,authEndpoint:"/api/notifications/v1/tokens",hubName:"notificationHub",logging:!0}),i()}))})).addInitializationStep((function(e,t){e.registerApplication(ge).registerApplication(Xe).registerApplication(ie).registerApplication(Ct).registerApplication(Le).registerApplication(ze).registerApplication(lt).registerApplication(G).registerApplication(Ht).registerApplication(Rt).registerApplication(L).registerApplication(Zt),t(e)})).addInitializationStep((function(e,t){t(e)})).addInitializationStep((function(e,t){r.a.View.AddViewDataExtension((function(e){return{languageNamespace:nn.result(e,"lang")}})),t(e)})).addInitializationStep((function(e,t){ls.register(),t(e)})).addInitializationStep((function(e,t){e.registerErrorHandler(lr,hr).registerErrorHandler(ur,fr).registerErrorHandler(cr,pr).registerErrorHandler(oe.a,dr),t()})).addInitializationStep((function(e,t){tn.a.registerSingleton(new hs({onlineRole:ps.a.Staff,customerType:us.Primary})),t(e)})),Qs.addStartUpStep((function(e,t,n){tn.a.getInstance(yn.a.Config).getConfig((function(r){Lo.a.setUpVariables({isDevelopment:!1}),n(e,t),tn.a.releaseInstance(yn.a.Config)}))})),Qs.start()},function(e,t){e.exports=v},function(e,t){e.exports=y},function(e,t){e.exports=b},function(e,t){e.exports=C},function(e,t){e.exports=S},function(e,t){e.exports=w}])}));