@clickview/library-editor 1.1.18-rc.0 ā 1.1.19-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/0.chunk.css +6 -0
- package/dist/css/1.chunk.css +2 -0
- package/dist/css/10.chunk.css +2 -0
- package/dist/css/12.chunk.css +14 -0
- package/dist/css/13.chunk.css +14 -0
- package/dist/css/14.chunk.css +8 -0
- package/dist/css/16.chunk.css +2 -0
- package/dist/css/17.chunk.css +2 -0
- package/dist/css/18.chunk.css +2 -0
- package/dist/css/2.chunk.css +4 -0
- package/dist/css/20.chunk.css +18 -0
- package/dist/css/21.chunk.css +18 -0
- package/dist/css/22.chunk.css +10 -0
- package/dist/css/23.chunk.css +12 -0
- package/dist/css/24.chunk.css +14 -0
- package/dist/css/25.chunk.css +10 -0
- package/dist/css/26.chunk.css +10 -0
- package/dist/css/27.chunk.css +8 -0
- package/dist/css/28.chunk.css +8 -0
- package/dist/css/29.chunk.css +8 -0
- package/dist/css/30.chunk.css +6 -0
- package/dist/css/31.chunk.css +6 -0
- package/dist/css/32.chunk.css +4 -0
- package/dist/css/36.chunk.css +4 -0
- package/dist/css/37.chunk.css +4 -0
- package/dist/css/38.chunk.css +2 -0
- package/dist/css/39.chunk.css +2 -0
- package/dist/css/4.chunk.css +6 -0
- package/dist/css/40.chunk.css +4 -0
- package/dist/css/41.chunk.css +4 -0
- package/dist/css/42.chunk.css +2 -0
- package/dist/css/43.chunk.css +2 -0
- package/dist/css/44.chunk.css +2 -0
- package/dist/css/45.chunk.css +2 -0
- package/dist/css/46.chunk.css +2 -0
- package/dist/css/47.chunk.css +2 -0
- package/dist/css/48.chunk.css +2 -0
- package/dist/css/5.chunk.css +16 -0
- package/dist/css/50.chunk.css +2 -0
- package/dist/css/51.chunk.css +2 -0
- package/dist/css/54.chunk.css +2 -0
- package/dist/css/55.chunk.css +2 -0
- package/dist/css/56.chunk.css +2 -0
- package/dist/css/57.chunk.css +2 -0
- package/dist/css/58.chunk.css +2 -0
- package/dist/css/59.chunk.css +2 -0
- package/dist/css/6.chunk.css +14 -0
- package/dist/css/61.chunk.css +2 -0
- package/dist/css/62.chunk.css +2 -0
- package/dist/css/7.chunk.css +2 -0
- package/dist/css/8.chunk.css +2 -0
- package/dist/css/9.chunk.css +4 -0
- package/dist/css/library-editor-app.css +124 -0
- package/dist/en.json +1 -1
- package/dist/libs/analytics/src/Analytics.d.ts +10 -0
- package/dist/libs/analytics/src/AnalyticsHelper.d.ts +30 -0
- package/dist/libs/analytics/src/AnalyticsService.d.ts +52 -0
- package/dist/libs/analytics/src/clients/BaseAnalyticsClient.d.ts +24 -0
- package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +48 -0
- package/dist/libs/analytics/src/clients/DebuggerClient.d.ts +7 -0
- package/dist/libs/analytics/src/clients/GoogleAnalyticsClient.d.ts +22 -0
- package/dist/libs/analytics/src/constants/ApplicationOptionsKey.d.ts +1 -0
- package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +7 -0
- package/dist/libs/analytics/src/constants/EventFirehose.d.ts +4 -0
- package/dist/libs/analytics/src/constants/GlobalChannels.d.ts +3 -0
- package/dist/libs/analytics/src/constants/Regions.d.ts +6 -0
- package/dist/libs/analytics/src/constants/Services.d.ts +4 -0
- package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +19 -0
- package/dist/libs/analytics/src/enrichers/CoreContextEnricher.d.ts +22 -0
- package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +10 -0
- package/dist/libs/analytics/src/enums/CountryCode.d.ts +5 -0
- package/dist/libs/analytics/src/enums/RegionName.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +214 -0
- package/dist/libs/analytics/src/interfaces/Config.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Folder.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/HashObject.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Owner.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Playlist.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Rating.d.ts +4 -0
- package/dist/libs/analytics/src/interfaces/Region.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/RegionalUrl.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/Resource.d.ts +5 -0
- package/dist/libs/analytics/src/interfaces/Series.d.ts +3 -0
- package/dist/libs/analytics/src/interfaces/Subtitle.d.ts +4 -0
- package/dist/libs/analytics/src/interfaces/User.d.ts +6 -0
- package/dist/libs/analytics/src/interfaces/VersionData.d.ts +4 -0
- package/dist/libs/analytics/src/interfaces/Video.d.ts +16 -0
- package/dist/libs/analytics/src/interfaces/index.d.ts +15 -0
- package/dist/libs/analytics/src/interfaces/primitives/BaseObject.d.ts +7 -0
- package/dist/libs/analytics/src/models/AnalyticsEvent.d.ts +49 -0
- package/dist/libs/analytics/src/models/CollectionEvent.d.ts +55 -0
- package/dist/libs/analytics/src/services/ContextService.d.ts +19 -0
- package/dist/libs/analytics/src/transport/EventTransport.d.ts +39 -0
- package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +6 -0
- package/dist/libs/analytics/src/utils/DataFormatHelper.d.ts +14 -0
- package/dist/libs/analytics/src/utils/EventWhitelistHelper.d.ts +19 -0
- package/dist/libs/analytics/src/utils/ObjectFormatHelper.d.ts +5 -0
- package/dist/libs/analytics/src/utils/TypeHelper.d.ts +4 -0
- package/dist/libs/analytics/src/utils/UploadDataFormatHelper.d.ts +10 -0
- package/dist/libs/analytics/src/utils/UserAgentHelper.d.ts +10 -0
- package/dist/libs/analytics/src/utils/VideoAnalyticsTracker.d.ts +50 -0
- package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +42 -0
- package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +5 -0
- package/dist/libs/common/src/backbone/constants/Caches.d.ts +3 -0
- package/dist/libs/common/src/backbone/constants/CommonChannels.d.ts +5 -0
- package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +5 -0
- package/dist/libs/common/src/backbone/constants/DataProviders.d.ts +4 -0
- package/dist/libs/common/src/backbone/constants/Webplayer.d.ts +65 -0
- package/dist/libs/common/src/backbone/core/AppLink.d.ts +37 -0
- package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +95 -0
- package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +76 -0
- package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +6 -0
- package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +7 -0
- package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +16 -0
- package/dist/libs/common/src/backbone/core/BaseError.d.ts +18 -0
- package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +11 -0
- package/dist/libs/common/src/backbone/core/BaseModel.d.ts +27 -0
- package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +21 -0
- package/dist/libs/common/src/backbone/core/BaseService.d.ts +10 -0
- package/dist/libs/common/src/backbone/core/BaseView.d.ts +127 -0
- package/dist/libs/common/src/backbone/core/EventNames.d.ts +16 -0
- package/dist/libs/common/src/backbone/core/LayoutService.d.ts +31 -0
- package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +3 -0
- package/dist/libs/common/src/backbone/core/LocationUtils.d.ts +23 -0
- package/dist/libs/common/src/backbone/core/Middleware.d.ts +10 -0
- package/dist/libs/common/src/backbone/core/Shell.d.ts +79 -0
- package/dist/libs/common/src/backbone/core/Types.d.ts +12 -0
- package/dist/libs/common/src/backbone/core/index.d.ts +18 -0
- package/dist/libs/common/src/backbone/enums/DataServiceErrorType.d.ts +8 -0
- package/dist/libs/common/src/backbone/enums/HttpVerbs.d.ts +6 -0
- package/dist/libs/common/src/backbone/errors/DevError.d.ts +4 -0
- package/dist/libs/common/src/backbone/errors/NotImplementedError.d.ts +5 -0
- package/dist/libs/common/src/backbone/index.d.ts +2 -0
- package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +18 -0
- package/dist/libs/common/src/backbone/interfaces/ChainableDataService.d.ts +9 -0
- package/dist/libs/common/src/backbone/interfaces/DataCache.d.ts +8 -0
- package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +15 -0
- package/dist/libs/common/src/backbone/interfaces/DataServiceError.d.ts +7 -0
- package/dist/libs/common/src/backbone/interfaces/DataServiceRequests.d.ts +218 -0
- package/dist/libs/common/src/backbone/interfaces/Pagination.d.ts +33 -0
- package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +38 -0
- package/dist/libs/common/src/backbone/interfaces/Xhr.d.ts +9 -0
- package/dist/libs/common/src/backbone/interfaces/index.d.ts +9 -0
- package/dist/libs/common/src/backbone/runtime/InputValidation.d.ts +2 -0
- package/dist/libs/common/src/backbone/services/BaseAlertService.d.ts +69 -0
- package/dist/libs/common/src/backbone/services/BaseDataService.d.ts +82 -0
- package/dist/libs/common/src/backbone/services/EnvironmentVariables.d.ts +13 -0
- package/dist/libs/common/src/backbone/services/InstanceManager.d.ts +33 -0
- package/dist/libs/common/src/backbone/services/LanguageService.d.ts +22 -0
- package/dist/libs/common/src/backbone/services/ScrollService.d.ts +19 -0
- package/dist/libs/common/src/backbone/services/ViewModelService.d.ts +68 -0
- package/dist/libs/common/src/backbone/services/caches/FifoMemoryCache.d.ts +20 -0
- package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +31 -0
- package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +46 -0
- package/dist/libs/common/src/backbone/utils/ConcurrencyHelper.d.ts +13 -0
- package/dist/libs/common/src/backbone/utils/DataServiceErrorHelper.d.ts +2 -0
- package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +8 -0
- package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +58 -0
- package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +13 -0
- package/dist/libs/common/src/backbone/utils/UserAgentHelper.d.ts +7 -0
- package/dist/libs/common/src/react/interfaces/HashObject.d.ts +3 -0
- package/dist/libs/common/src/react/utils/FetchHelper.d.ts +50 -0
- package/dist/libs/common/src/react/utils/ObjectHelper.d.ts +10 -0
- package/dist/libs/shared/src/apps/notifications/collections/NotificationCollection.d.ts +9 -0
- package/dist/libs/shared/src/apps/notifications/components/notification-items/notification-item/NotificationItemComponent.d.ts +23 -0
- package/dist/libs/shared/src/apps/notifications/components/notification-list/NotificationListComponent.d.ts +26 -0
- package/dist/libs/shared/src/apps/notifications/components/notification-status/NotificationStatusComponent.d.ts +15 -0
- package/dist/libs/shared/src/apps/notifications/enums/AppLinkReferrer.d.ts +3 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationActions.d.ts +3 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationAlertType.d.ts +7 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationAppLinkModules.d.ts +7 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationModules.d.ts +4 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationStatus.d.ts +5 -0
- package/dist/libs/shared/src/apps/notifications/enums/NotificationType.d.ts +16 -0
- package/dist/libs/shared/src/apps/notifications/interfaces/NotificationCollectionRequest.d.ts +5 -0
- package/dist/libs/shared/src/apps/notifications/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/apps/notifications/models/Notification.d.ts +6 -0
- package/dist/libs/shared/src/apps/notifications/services/NotificationDataService.d.ts +14 -0
- package/dist/libs/shared/src/apps/notifications/services/NotificationService.d.ts +33 -0
- package/dist/libs/shared/src/apps/notifications/services/NotificationSocketService.d.ts +8 -0
- package/dist/libs/shared/src/apps/notifications/services/data-providers/NotificationsSocketDataProvider.d.ts +4 -0
- package/dist/libs/shared/src/apps/notifications/utils/NotificationAppLinkHelper.d.ts +10 -0
- package/dist/libs/shared/src/apps/notifications/utils/NotificationsHelper.d.ts +18 -0
- package/dist/libs/shared/src/apps/notifications/views/header/NotificationHeaderView.d.ts +16 -0
- package/dist/libs/shared/src/apps/notifications/views/notifications/NotificationsView.d.ts +27 -0
- package/dist/libs/shared/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +34 -0
- package/dist/libs/shared/src/apps/search/components/confirm-selection/ConfirmSelectionComponent.d.ts +12 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/index.d.ts +4 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/recent-search/RecentSearchResultComponent.d.ts +15 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +9 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/tag/TagSearchResultComponent.d.ts +9 -0
- package/dist/libs/shared/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts +18 -0
- package/dist/libs/shared/src/apps/search/components/search-context/SearchContextComponent.d.ts +18 -0
- package/dist/libs/shared/src/apps/search/components/search-tips/SearchTipsComponent.d.ts +11 -0
- package/dist/libs/shared/src/apps/search/constants/TypeaheadConfiguration.d.ts +12 -0
- package/dist/libs/shared/src/apps/search/enums/FilterTypes.d.ts +14 -0
- package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +18 -0
- package/dist/libs/shared/src/apps/search/enums/SearchTypes.d.ts +8 -0
- package/dist/libs/shared/src/apps/search/interfaces/SearchTypes.d.ts +26 -0
- package/dist/libs/shared/src/apps/search/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/apps/search/services/ContextualSearchService.d.ts +34 -0
- package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +21 -0
- package/dist/libs/shared/src/apps/search/utils/RecentSearchHelper.d.ts +12 -0
- package/dist/libs/shared/src/apps/search/utils/SearchHelper.d.ts +5 -0
- package/dist/libs/shared/src/apps/search/utils/TypeaheadHelper.d.ts +75 -0
- package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +105 -0
- package/dist/libs/shared/src/apps/search/views/search-bar/templates/index.d.ts +9 -0
- package/dist/libs/shared/src/apps/upload/collections/PendingItemsCollection.d.ts +8 -0
- package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +39 -0
- package/dist/libs/shared/src/apps/upload/enums/FileLifestyle.d.ts +4 -0
- package/dist/libs/shared/src/apps/upload/enums/PendingItemStatus.d.ts +5 -0
- package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +15 -0
- package/dist/libs/shared/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +7 -0
- package/dist/libs/shared/src/apps/upload/services/BasePendingItemsService.d.ts +26 -0
- package/dist/libs/shared/src/apps/upload/services/DropzoneWrapper.d.ts +30 -0
- package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +65 -0
- package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +9 -0
- package/dist/libs/shared/src/apps/upload/utils/PendingItemsHelper.d.ts +9 -0
- package/dist/libs/shared/src/constants/AppVariables.d.ts +4 -0
- package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +5 -0
- package/dist/libs/shared/src/constants/DataPrefixes.d.ts +12 -0
- package/dist/libs/shared/src/constants/RadioChannels.d.ts +20 -0
- package/dist/libs/shared/src/constants/SharedServices.d.ts +25 -0
- package/dist/libs/shared/src/enums/ClassificationType.d.ts +4 -0
- package/dist/libs/shared/src/enums/CurationStatus.d.ts +12 -0
- package/dist/libs/shared/src/enums/CustomerType.d.ts +11 -0
- package/dist/libs/shared/src/enums/GlanceFormat.d.ts +3 -0
- package/dist/libs/shared/src/enums/Images.d.ts +26 -0
- package/dist/libs/shared/src/enums/LibraryType.d.ts +5 -0
- package/dist/libs/shared/src/enums/MediaQueries.d.ts +18 -0
- package/dist/libs/shared/src/enums/PartialLoading.d.ts +4 -0
- package/dist/libs/shared/src/enums/ThemeType.d.ts +3 -0
- package/dist/libs/shared/src/enums/UserRole.d.ts +15 -0
- package/dist/libs/shared/src/enums/VideoOrigin.d.ts +14 -0
- package/dist/libs/shared/src/enums/WidgetContents.d.ts +6 -0
- package/dist/libs/shared/src/errors/primitives/AlertError.d.ts +4 -0
- package/dist/libs/shared/src/errors/primitives/DialogError.d.ts +9 -0
- package/dist/libs/shared/src/errors/primitives/ErrorPageError.d.ts +7 -0
- package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +81 -0
- package/dist/libs/shared/src/images/svg/actions/index.d.ts +21 -0
- package/dist/libs/shared/src/images/svg/arrows/index.d.ts +9 -0
- package/dist/libs/shared/src/images/svg/index.d.ts +2 -0
- package/dist/libs/shared/src/images/svg/objects/index.d.ts +33 -0
- package/dist/libs/shared/src/images/svg/player/index.d.ts +14 -0
- package/dist/libs/shared/src/images/svg/settings.d.ts +1 -0
- package/dist/libs/shared/src/images/svg/status/index.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/AppLinkWithLabel.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/DialogOptions.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/ImageUrls.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/QueryParams.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/RegionalUrl.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/WidgetContext.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +16 -0
- package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +14 -0
- package/dist/libs/shared/src/interfaces/app-variables/index.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/collections/AudienceCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/CategoryCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ClipCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/CompanyCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/CustomerCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/FolderCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/LibraryCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/LinkCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/PersonCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/PlaylistCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/PresentationAudienceCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/ResourceCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/SeriesCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/TagCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/UserCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/VideoCollection.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/collections/WidgetCollection.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/collections/index.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/collections/primitives/BasePaginatedCollection.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/collections/primitives/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/index.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/models/Audience.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Banner.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Category.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Channel.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Classification.d.ts +20 -0
- package/dist/libs/shared/src/interfaces/models/Clip.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/Company.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Config.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Cover.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Customer.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Folder.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Following.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Glance.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/HeroBanner.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Image.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/Interactive.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/LanguageConfig.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Library.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Link.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Organisation.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Person.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +10 -0
- package/dist/libs/shared/src/interfaces/models/Poster.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/PresentationAudience.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/Rating.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Resource.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Restriction.d.ts +6 -0
- package/dist/libs/shared/src/interfaces/models/Season.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/models/Series.d.ts +10 -0
- package/dist/libs/shared/src/interfaces/models/Share.d.ts +9 -0
- package/dist/libs/shared/src/interfaces/models/Subject.d.ts +13 -0
- package/dist/libs/shared/src/interfaces/models/Tag.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/TallPoster.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/Theme.d.ts +11 -0
- package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
- package/dist/libs/shared/src/interfaces/models/User.d.ts +53 -0
- package/dist/libs/shared/src/interfaces/models/Video.d.ts +26 -0
- package/dist/libs/shared/src/interfaces/models/VideoWithRestrictions.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/models/Widget.d.ts +15 -0
- package/dist/libs/shared/src/interfaces/models/index.d.ts +42 -0
- package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +7 -0
- package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/props/ViewProps.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/props/index.d.ts +1 -0
- package/dist/libs/shared/src/interfaces/requests/ReorderRequest.d.ts +12 -0
- package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/requests/index.d.ts +2 -0
- package/dist/libs/shared/src/interfaces/services/BaseLibraryDataService.d.ts +10 -0
- package/dist/libs/shared/src/interfaces/services/BaseSeriesDataService.d.ts +4 -0
- package/dist/libs/shared/src/interfaces/services/BaseVideoDataService.d.ts +5 -0
- package/dist/libs/shared/src/interfaces/services/BaseVideoUploadDataService.d.ts +8 -0
- package/dist/libs/shared/src/interfaces/services/index.d.ts +4 -0
- package/dist/libs/shared/src/legacy/behaviors/empty-state/EmptyStateBehavior.d.ts +22 -0
- package/dist/libs/shared/src/legacy/behaviors/popover/PopoverBehavior.d.ts +40 -0
- package/dist/libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.d.ts +26 -0
- package/dist/libs/shared/src/legacy/components/empty-state/EmptyStateComponent.d.ts +24 -0
- package/dist/libs/shared/src/legacy/components/pagination/PaginationComponent.d.ts +29 -0
- package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +34 -0
- package/dist/libs/shared/src/legacy/constants/empty-state-components/EmptyStateComponents.d.ts +6 -0
- package/dist/libs/shared/src/legacy/enums/EmptyState.d.ts +3 -0
- package/dist/libs/shared/src/legacy/enums/SortType.d.ts +7 -0
- package/dist/libs/shared/src/legacy/interfaces/CollectionIdentifier.d.ts +7 -0
- package/dist/libs/shared/src/legacy/interfaces/index.d.ts +1 -0
- package/dist/libs/shared/src/legacy/utils/EmptyStateHelper.d.ts +4 -0
- package/dist/libs/shared/src/legacy/utils/LangHelper.d.ts +5 -0
- package/dist/libs/shared/src/services/ContextService.d.ts +38 -0
- package/dist/libs/shared/src/services/LanguageDataService.d.ts +7 -0
- package/dist/libs/shared/src/services/UserDataService.d.ts +23 -0
- package/dist/libs/shared/src/utils/EmbedHelper.d.ts +8 -0
- package/dist/libs/shared/src/utils/ImageHelper.d.ts +30 -0
- package/dist/libs/shared/src/utils/LibraryDataServiceHelper.d.ts +13 -0
- package/dist/libs/shared/src/utils/MaskHelper.d.ts +15 -0
- package/dist/libs/shared/src/utils/SvgHelper.d.ts +19 -0
- package/dist/libs/shared/src/utils/TextHelper.d.ts +3 -0
- package/dist/projects/library-editor/src/app.d.ts +224 -0
- package/dist/projects/library-editor/src/apps/content-updates/ContentUpdatesApplication.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/content-updates/collections/SubjectCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/content-updates/collections/VideoGroupCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeaderComponent.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeaderComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNavComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-filters/PastReleasesFiltersComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-header/PastReleasesHeaderComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.d.ts +37 -0
- package/dist/projects/library-editor/src/apps/content-updates/models/Subject.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/content-updates/models/VideoGroup.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/content-updates/services/ContentUpdatesDataService.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/add-to-library/AddToLibraryView.d.ts +47 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/awaiting-review/AwaitingReviewView.d.ts +36 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/disable-review/DisableReviewView.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/generate-past-releases-pdf/GeneratePastReleasesPdfView.d.ts +41 -0
- package/dist/projects/library-editor/src/apps/content-updates/views/past-releases/PastReleasesView.d.ts +55 -0
- package/dist/projects/library-editor/src/apps/dashboard/DashboardApplication.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-action-tile/DashboardActionTileComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-info-tile/DashboardInfoTileComponent.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-container/DashboardTileContainerComponent.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-list/DashboardTileListComponent.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/dashboard/views/DashboardView.d.ts +38 -0
- package/dist/projects/library-editor/src/apps/default/DefaultApplication.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/default/views/dev-error/DevErrorView.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/default/views/error-view/ErrorView.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/default/views/not-found/NotFoundView.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/index.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/library-editor/LibraryEditorApplication.d.ts +46 -0
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-folder/DraggableFolderBehavior.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/droppable/DroppableBehavior.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/DraggableItemComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/add-links/AddLinksComponent.d.ts +31 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/banner/BannerComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/chapter-form/ChapterFormComponent.d.ts +66 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterComponentCollection.d.ts +25 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterItemComponent.d.ts +37 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/chapters/ChaptersComponent.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/customer-logo/CustomerLogoComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-image/EditImageComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/LinkItemComponent.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/VideoLinksComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.d.ts +48 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/file-select/FileSelectComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +13 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/folder-actions/FolderActionsDropdownComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/folder-details/FolderDetailsComponent.d.ts +35 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/folder-select/FolderSelectComponent.d.ts +41 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/left-nav-libraries/LeftNavLibrariesComponent.d.ts +45 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/library-actions/LibraryActionsComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/library-folders/LibraryFolderListComponent.d.ts +31 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/library-select/LibrarySelectComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/save/SaveComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFolderComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFoldersComponent.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/suggest-edit/SuggestEditComponent.d.ts +31 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagComponentCollection.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagItemComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/tags/TagsComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-header/VideoHeaderComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/ResourceItemComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-sidebar-info/VideoSidebarInfoComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/SubtitleItemComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/constants/VideoCollectionTypes.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-empty/FolderEmptyError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-max-depth/FolderMaxDepthError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-empty/FolderNotEmptyError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-found/FolderNotFound.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-folder/ForbiddenFolderError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/image-dimensions-too-small/ImageDimensionsTooSmallError.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/library-has-subscribers/LibraryHasSubscribersError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/library-not-empty/LibraryNotEmptyError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/max-custom-libraries/MaxCustomLibrariesError.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/series-not-found/SeriesNotFoundError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/video-not-found/VideoNotFoundError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/errors/video-write-permission/VideoWritePermissionError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/library-editor/models/ChapterConcatenateRequest.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/ChapterDataService.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/CompanyDataService.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/ExportDataService.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/FieldsDataService.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/FolderDragDropService.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/LibraryDataService.d.ts +65 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/LinkDataService.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/PersonDataService.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/RatingsDataService.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/ResourceDataService.d.ts +13 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/SeriesDataService.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/SubtitleDataService.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/TagDataService.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/VideoDataService.d.ts +45 -0
- package/dist/projects/library-editor/src/apps/library-editor/services/VideoDragDropService.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/utils/ChapterHelper.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/library-editor/utils/EditVideoHelpers.d.ts +93 -0
- package/dist/projects/library-editor/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +17 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/add-to-exchange/AddToExchangeView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/banner-upload/BannerUploadView.d.ts +32 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/delete-folder/DeleteFolderView.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/delete-library/DeleteLibraryView.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/delete-videos/DeleteVideosView.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-chapters/EditChaptersView.d.ts +71 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-folder-images/EditFolderImagesView.d.ts +51 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-library/RenameLibraryView.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-link/EditLinkView.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-resource/EditResourceView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +92 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/edit-video/EditVideoView.d.ts +125 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/generate-pdf/GeneratePdfView.d.ts +35 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/left-navigation/LeftNavigationView.d.ts +33 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/library/LibraryView.d.ts +31 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/move-folder/MoveFolderView.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +50 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/new-folder/NewFolderView.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/new-library/NewLibraryView.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/no-library/NoLibraryView.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/publish-library/PublishLibraryView.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/rename-folder/RenameFolderView.d.ts +39 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/suggest-an-edit/SuggestAnEditView.d.ts +58 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/thumbnail-upload/ThumbnailUploadView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/video-collection/VideoCollectionView.d.ts +105 -0
- package/dist/projects/library-editor/src/apps/library-editor/views/video-details/VideoDetailsView.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +45 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/collections/HomeFolderCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/collections/SmartSelectVideoCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/banner/BannerComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/empty-video-list/EmptyVideoListComponent.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-actions/ErroredVideoActionsComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-footer/ErroredVideoFooterComponent.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-item/ErroredVideoItemComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-list/ErroredVideoListComponent.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-metadata/ErroredVideoMetadataComponent.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-preview/ErroredVideoPreviewComponent.d.ts +17 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report/GenerateReportComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report-button/GenerateReportButtonComponent.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/migration-video-item/MigrationVideoItemComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-bar/ProgressBarComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-circle/ProgressCircleComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/search-bar/SearchBarComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/selected-video-item/SelectedVideoItemComponent.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/sorting-row/SortingRowComponent.d.ts +35 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list/VideoListCollection.d.ts +36 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list-collection/VideoListCollectionComponent.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/already-migrated/AlreadyMigratedError.d.ts +6 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/backup-progress/BackupProgressError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/BackupToolBuild.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/CustomerMetadata.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/FinalisationTask.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/HomeFolder.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/MigrationOptions.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/SelectedVideo.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/SmartSelectVideo.d.ts +4 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/models/VideoCount.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/services/FolderCacheService.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/services/LocalOptionsService.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/services/MigrationVideoDataService.d.ts +56 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/services/SelectedVideoService.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/FolderHelper.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/utils/VideoHelper.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/current-section-header/CurrentSectionHeaderView.d.ts +28 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/generate-csv-report/GenerateCsvReportView.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-error/MigrationErrorView.d.ts +40 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-progress/MigrationProgressView.d.ts +32 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-banner/PublishLibraryBannerView.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-complete/PublishLibraryCompleteView.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-progress/PublishLibraryProgressView.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup/PublisherBackupView.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupCompleteView.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-progress/PublisherBackupProgressView.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcomeView.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/remigrate-video/RemigrateVideoView.d.ts +32 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/selected-videos/SelectedVideosView.d.ts +32 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/show-video-popup/ShowPublisherVideoPopupView.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/smart-migration/SmartMigrationView.d.ts +58 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/start/StartView.d.ts +40 -0
- package/dist/projects/library-editor/src/apps/migration-wizard/views/videos-added/VideosAddedView.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/notifications/NotificationsApplication.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/notifications/constants/NotificationsAppVariables.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/notifications/utils/NotificationsHelper.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/search/SearchApplication.d.ts +16 -0
- package/dist/projects/library-editor/src/apps/search/collections/FilterCollection.d.ts +9 -0
- package/dist/projects/library-editor/src/apps/search/collections/OptionCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/FiltersComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonItemComponent.d.ts +37 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonListComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterItemComponent.d.ts +17 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterListComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/FilterOptionsComponent.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/bool-filter-options/BoolFilterOptionsComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/duration-filter-options/DurationFilterOptionListComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionItemComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionsListComponent.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/range-filter-options/RangeFilterOptionListComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsListComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/search/components/filters/more-filters-button/MoreFiltersButtonComponent.d.ts +42 -0
- package/dist/projects/library-editor/src/apps/search/components/results/SearchResultsComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/apps/search/components/search-header/SearchHeaderComponent.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/search/models/Filter.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/search/models/Option.d.ts +4 -0
- package/dist/projects/library-editor/src/apps/search/models/Query.d.ts +3 -0
- package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +4 -0
- package/dist/projects/library-editor/src/apps/search/services/SearchDataService.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/search/utils/SearchHelper.d.ts +11 -0
- package/dist/projects/library-editor/src/apps/search/views/search/SearchView.d.ts +57 -0
- package/dist/projects/library-editor/src/apps/staff-requests/StaffRequestsApplication.d.ts +15 -0
- package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestMessageCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-actions/StaffRequestActionsComponent.d.ts +42 -0
- package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-details/StaffRequestDetailsComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-list/StaffRequestListComponent.d.ts +29 -0
- package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequest.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequestMessage.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/staff-requests/services/StaffRequestDataService.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/staff-requests/views/approve-staff-request/ApproveStaffRequestView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/staff-requests/views/reject-staff-request/RejectStaffRequestView.d.ts +34 -0
- package/dist/projects/library-editor/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +44 -0
- package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +23 -0
- package/dist/projects/library-editor/src/apps/upload/components/processing-progress/ProcessProgressComponentCollection.d.ts +38 -0
- package/dist/projects/library-editor/src/apps/upload/components/progress-info/ProgressInfoComponent.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-actions/UploadActionsComponent.d.ts +21 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-folder-select/UploadFolderSelectComponent.d.ts +35 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-progress/UploadProgressComponent.d.ts +10 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponent.d.ts +47 -0
- package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponentCollection.d.ts +19 -0
- package/dist/projects/library-editor/src/apps/upload/errors/no-libraries-upload/NoLibrariesUploadError.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/upload/services/ImageUploadDataService.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/upload/services/PendingItemsService.d.ts +7 -0
- package/dist/projects/library-editor/src/apps/upload/services/VideoUploadDataService.d.ts +17 -0
- package/dist/projects/library-editor/src/apps/upload/services/VideoUploadService.d.ts +8 -0
- package/dist/projects/library-editor/src/apps/upload/views/file-select/FileSelectView.d.ts +25 -0
- package/dist/projects/library-editor/src/apps/upload/views/progress-summary/ProgressSummaryView.d.ts +18 -0
- package/dist/projects/library-editor/src/apps/upload/views/upload-button/UploadButtonView.d.ts +26 -0
- package/dist/projects/library-editor/src/apps/upload/views/upload-complete/UploadCompleteView.d.ts +14 -0
- package/dist/projects/library-editor/src/apps/upload/views/upload-videos/UploadVideosView.d.ts +62 -0
- package/dist/projects/library-editor/src/apps/video-access/VideoAccessApplication.d.ts +12 -0
- package/dist/projects/library-editor/src/apps/video-access/views/restricted-video-list/RestrictedVideoListView.d.ts +34 -0
- package/dist/projects/library-editor/src/shared/alerts/VideoAlerts.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/behaviors/backbone-validation/BackboneValidationBehavior.d.ts +14 -0
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropBehavior.d.ts +19 -0
- package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropMaskBehavior.d.ts +19 -0
- package/dist/projects/library-editor/src/shared/behaviors/file-select/FileSelectBehavior.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/behaviors/image-select-behavior/ImageSelectBehavior.d.ts +23 -0
- package/dist/projects/library-editor/src/shared/behaviors/lazy-load/LazyLoadBehavior.d.ts +31 -0
- package/dist/projects/library-editor/src/shared/behaviors/lock-layout-file-drop/LockLayoutFileDropBehavior.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/behaviors/popup/PopupBehavior.d.ts +65 -0
- package/dist/projects/library-editor/src/shared/behaviors/stickit/StickitBehavior.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/ChannelCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/ChapterCollection.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/collections/DirectorCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/DistributorCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/FieldsCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/FolderCollection.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/collections/InteractivesCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/LibraryCollection.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/collections/LinkCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/LocalCacheDeviceCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/LocalCacheDownloadCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/MetadataCollection.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/collections/ProducerCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/ProductionCompanyCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/RatingCollection.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/collections/ResourceCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/RestrictedObjectCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/RestrictionCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/SeasonCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/SettingsCollection.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/collections/SubtitleCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/TagCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/collections/VideoCollection.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/components/alert/AlertComponentCollection.d.ts +11 -0
- package/dist/projects/library-editor/src/shared/components/alert/AlertItemComponent.d.ts +44 -0
- package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbComponentCollection.d.ts +18 -0
- package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbsComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/shared/components/bulk-video-actions/BulkVideoActionsComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/shared/components/checkbox/BulkCheckboxComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/shared/components/checkbox/CheckboxComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/components/clear-button/ClearButtonComponent.d.ts +18 -0
- package/dist/projects/library-editor/src/shared/components/date-picker/DatePickerComponent.d.ts +47 -0
- package/dist/projects/library-editor/src/shared/components/dialog/DialogView.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownButtonComponent.d.ts +36 -0
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownComponentCollection.d.ts +38 -0
- package/dist/projects/library-editor/src/shared/components/dropdown/DropdownItemComponent.d.ts +57 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +38 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.d.ts +32 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.d.ts +61 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoComponent.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.d.ts +17 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingCollectionComponent.d.ts +17 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingComponent.d.ts +40 -0
- package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/components/fields/FieldsComponent.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.d.ts +34 -0
- package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavNodeComponent.d.ts +48 -0
- package/dist/projects/library-editor/src/shared/components/page-footer/PageFooterComponent.d.ts +15 -0
- package/dist/projects/library-editor/src/shared/components/page-header/PageHeaderComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponent.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponentCollection.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/components/resizing-text-area/ResizingTextAreaComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/shared/components/select/SelectComponent.d.ts +54 -0
- package/dist/projects/library-editor/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +73 -0
- package/dist/projects/library-editor/src/shared/components/tabs/TabsComponent.d.ts +28 -0
- package/dist/projects/library-editor/src/shared/components/top-navigation/TopNavigationComponentCollection.d.ts +29 -0
- package/dist/projects/library-editor/src/shared/components/tree-dropdown/TreeDropdownComponent.d.ts +32 -0
- package/dist/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +74 -0
- package/dist/projects/library-editor/src/shared/components/typeahead-list/TypeaheadListComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/shared/components/user-options-dropdown/UserOptionsDropdownComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionComponentCollection.d.ts +31 -0
- package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionsComponent.d.ts +42 -0
- package/dist/projects/library-editor/src/shared/components/video-basic-info/VideoBasicInfoComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/shared/components/video-description/VideoDescriptionComponent.d.ts +33 -0
- package/dist/projects/library-editor/src/shared/components/video-item/VideoItemComponent.d.ts +58 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.d.ts +23 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.d.ts +26 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.d.ts +19 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.d.ts +27 -0
- package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.d.ts +22 -0
- package/dist/projects/library-editor/src/shared/components/video-item-preview/VideoItemPreviewComponent.d.ts +37 -0
- package/dist/projects/library-editor/src/shared/components/video-list/VideoListComponent.d.ts +44 -0
- package/dist/projects/library-editor/src/shared/components/video-preview/VideoPreviewComponent.d.ts +30 -0
- package/dist/projects/library-editor/src/shared/components/web-player/WebPlayerComponent.d.ts +53 -0
- package/dist/projects/library-editor/src/shared/constants/CacheDurations.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/constants/Services.d.ts +62 -0
- package/dist/projects/library-editor/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/errors/authentication/AuthenticationError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/customer-setting/CustomerSettingError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/email-not-verified/EmailNotVerifiedError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/forbidden-access/ForbiddenAccessError.d.ts +11 -0
- package/dist/projects/library-editor/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/errors/no-beta-access/NoBetaAccessError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/not-found/NotFoundError.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/errors/old-version/OldVersionError.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/errors/too-many-files/TooManyFilesError.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/index.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/interfaces/VideoCollectionIdentifier.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +47 -0
- package/dist/projects/library-editor/src/shared/models/Avatar.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Banner.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Channel.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Chapter.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Company.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Config.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Customer.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Director.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/DisabledSpinnerModel.d.ts +5 -0
- package/dist/projects/library-editor/src/shared/models/Distributor.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Folder.d.ts +14 -0
- package/dist/projects/library-editor/src/shared/models/Image.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Interactives.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/LanguageConfig.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/models/Library.d.ts +10 -0
- package/dist/projects/library-editor/src/shared/models/Link.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/LocalCacheDevice.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/LocalCacheDownload.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Logo.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Metadata.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Owner.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Person.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Phrases.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Playlist.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Producer.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/ProductionCompany.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Rating.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Resource.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/RestrictedObject.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Restriction.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Season.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Series.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/models/Setting.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/SharedResource.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Subtitle.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Tag.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/Thumbnail.d.ts +3 -0
- package/dist/projects/library-editor/src/shared/models/User.d.ts +10 -0
- package/dist/projects/library-editor/src/shared/models/Video.d.ts +49 -0
- package/dist/projects/library-editor/src/shared/services/AlertService.d.ts +15 -0
- package/dist/projects/library-editor/src/shared/services/ConfigDataService.d.ts +23 -0
- package/dist/projects/library-editor/src/shared/services/CustomerDataService.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/services/DownloadProxyDataServices.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/services/IntercomService.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/services/LocalCacheDataService.d.ts +12 -0
- package/dist/projects/library-editor/src/shared/services/NavigationLockService.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/services/PageTitleService.d.ts +8 -0
- package/dist/projects/library-editor/src/shared/services/PageVisibilityService.d.ts +14 -0
- package/dist/projects/library-editor/src/shared/services/PartialLoadingService.d.ts +10 -0
- package/dist/projects/library-editor/src/shared/services/RestrictedVideoDataService.d.ts +15 -0
- package/dist/projects/library-editor/src/shared/services/SettingsDataService.d.ts +12 -0
- package/dist/projects/library-editor/src/shared/services/UserDataService.d.ts +20 -0
- package/dist/projects/library-editor/src/shared/services/VideoMixinService.d.ts +18 -0
- package/dist/projects/library-editor/src/shared/utils/BulkCheckboxHelper.d.ts +18 -0
- package/dist/projects/library-editor/src/shared/utils/CancelProcessingHelper.d.ts +4 -0
- package/dist/projects/library-editor/src/shared/utils/CollectionHelper.d.ts +10 -0
- package/dist/projects/library-editor/src/shared/utils/DialogHelper.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/utils/DurationHelper.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/utils/FolderTreeHelpers.d.ts +36 -0
- package/dist/projects/library-editor/src/shared/utils/ImageHelper.d.ts +32 -0
- package/dist/projects/library-editor/src/shared/utils/LocalCacheHelper.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/utils/PartialLoadingHelper.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/utils/PermissionsHelper.d.ts +13 -0
- package/dist/projects/library-editor/src/shared/utils/RatingHelper.d.ts +6 -0
- package/dist/projects/library-editor/src/shared/utils/RestrictedAccessHelper.d.ts +13 -0
- package/dist/projects/library-editor/src/shared/utils/SortHelper.d.ts +16 -0
- package/dist/projects/library-editor/src/shared/utils/TabHelper.d.ts +9 -0
- package/dist/projects/library-editor/src/shared/utils/VideoHelper.d.ts +11 -0
- package/dist/projects/library-editor/src/shared/utils/search/RawSearchHelper.d.ts +25 -0
- package/dist/projects/library-editor/src/shared/views/download-to-local-cache/DownloadToLocalCacheView.d.ts +28 -0
- package/dist/projects/library-editor/src/shared/views/download-video/DownloadVideoView.d.ts +19 -0
- package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessComponent.d.ts +7 -0
- package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessGroupComponent.d.ts +24 -0
- package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessView.d.ts +67 -0
- package/dist/projects/library-editor/src/shared/views/share/ShareView.d.ts +48 -0
- package/dist/projects/library-editor/src/shared/views/top-navigation/TopNavigationView.d.ts +35 -0
- package/dist/projects/library-editor/src/shared/views/user-options/UserOptionsView.d.ts +18 -0
- package/dist/projects/library-editor/src/startup/ConsoleOutput.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterAjaxMiddleware.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterAnalytics.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterApplicationVariables.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterApplications.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterCaches.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterDataProviders.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterDataServices.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterErrorHandlers.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterHandlebarsHelpers.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterLayouts.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterRuntimeEnvironment.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterServices.d.ts +3 -0
- package/dist/projects/library-editor/src/startup/RegisterViewDataExtensions.d.ts +15 -0
- package/dist/projects/library-editor/src/startup/index.d.ts +14 -0
- package/dist/scripts/0-48b01028ea.chunk.js +1 -0
- package/dist/scripts/1-098c567081.chunk.js +1 -0
- package/dist/scripts/10-b4b24c05f8.chunk.js +1 -0
- package/dist/scripts/11-e79fc84dc9.chunk.js +11 -0
- package/dist/scripts/12-58284faf21.chunk.js +1 -0
- package/dist/scripts/13-2c4cd203ec.chunk.js +1 -0
- package/dist/scripts/14-2eeb73cd11.chunk.js +1 -0
- package/dist/scripts/15-6fa6f47a8b.chunk.js +1 -0
- package/dist/scripts/16-68c900303f.chunk.js +1 -0
- package/dist/scripts/17-af7eca54ed.chunk.js +1 -0
- package/dist/scripts/18-087b42c483.chunk.js +1 -0
- package/dist/scripts/2-c70309751f.chunk.js +1 -0
- package/dist/scripts/20-caf95bbe64.chunk.js +1 -0
- package/dist/scripts/21-5d5cda7f47.chunk.js +1 -0
- package/dist/scripts/22-f2b4962990.chunk.js +1 -0
- package/dist/scripts/23-d575c690b9.chunk.js +1 -0
- package/dist/scripts/24-dc5b027075.chunk.js +1 -0
- package/dist/scripts/25-956d1e9caf.chunk.js +1 -0
- package/dist/scripts/26-7a3d12d816.chunk.js +1 -0
- package/dist/scripts/27-dc6045c275.chunk.js +1 -0
- package/dist/scripts/28-e7ce349a42.chunk.js +1 -0
- package/dist/scripts/29-e281d8346a.chunk.js +1 -0
- package/dist/scripts/3-afb156ea3e.chunk.js +1 -0
- package/dist/scripts/30-d4b6c1cd1d.chunk.js +1 -0
- package/dist/scripts/31-c1d42342dd.chunk.js +1 -0
- package/dist/scripts/32-1b1e4c86f5.chunk.js +1 -0
- package/dist/scripts/33-7ef65d086d.chunk.js +1 -0
- package/dist/scripts/34-6d7e7405af.chunk.js +1 -0
- package/dist/scripts/35-7d7e41a203.chunk.js +1 -0
- package/dist/scripts/36-37f9fd0ad1.chunk.js +1 -0
- package/dist/scripts/37-06db9481cd.chunk.js +1 -0
- package/dist/scripts/38-528abd1bba.chunk.js +1 -0
- package/dist/scripts/39-80001e779c.chunk.js +1 -0
- package/dist/scripts/4-f8a4d0b62a.chunk.js +1 -0
- package/dist/scripts/40-d59ee7c3e1.chunk.js +1 -0
- package/dist/scripts/41-8c75d122fc.chunk.js +1 -0
- package/dist/scripts/42-a68ee26f34.chunk.js +1 -0
- package/dist/scripts/43-bde1af67cb.chunk.js +1 -0
- package/dist/scripts/44-abdd275e46.chunk.js +1 -0
- package/dist/scripts/45-6b745e57af.chunk.js +1 -0
- package/dist/scripts/46-bee29b02a3.chunk.js +1 -0
- package/dist/scripts/47-c142425de4.chunk.js +1 -0
- package/dist/scripts/48-81efa76f40.chunk.js +1 -0
- package/dist/scripts/49-cbd218d6e4.chunk.js +1 -0
- package/dist/scripts/5-1b6768e719.chunk.js +1 -0
- package/dist/scripts/50-ec2f179d8c.chunk.js +1 -0
- package/dist/scripts/51-9b91910fc0.chunk.js +1 -0
- package/dist/scripts/52-d2e93491a5.chunk.js +1 -0
- package/dist/scripts/53-1c8ff136ad.chunk.js +1 -0
- package/dist/scripts/54-34116d34e6.chunk.js +1 -0
- package/dist/scripts/55-02803101de.chunk.js +1 -0
- package/dist/scripts/56-19ec4b6ccd.chunk.js +1 -0
- package/dist/scripts/57-17e93c944c.chunk.js +1 -0
- package/dist/scripts/58-dd77463e63.chunk.js +1 -0
- package/dist/scripts/59-08e8830b9c.chunk.js +1 -0
- package/dist/scripts/6-e87b3c0be1.chunk.js +1 -0
- package/dist/scripts/60-720797bb78.chunk.js +1 -0
- package/dist/scripts/61-66e55ae6e1.chunk.js +1 -0
- package/dist/scripts/62-beb29b208b.chunk.js +1 -0
- package/dist/scripts/63-bbc787afe7.chunk.js +1 -0
- package/dist/scripts/64-b10c083c61.chunk.js +1 -0
- package/dist/scripts/65-40c1cc2f53.chunk.js +1 -0
- package/dist/scripts/66-32ae3ca73f.chunk.js +1 -0
- package/dist/scripts/67-1f082de6fd.chunk.js +1 -0
- package/dist/scripts/68-f53fbad25f.chunk.js +1 -0
- package/dist/scripts/69-984061e3b8.chunk.js +1 -0
- package/dist/scripts/7-7d12e809a2.chunk.js +1 -0
- package/dist/scripts/70-8edf7afb7b.chunk.js +1 -0
- package/dist/scripts/71-6365b9e3d4.chunk.js +1 -0
- package/dist/scripts/72-85505b2300.chunk.js +1 -0
- package/dist/scripts/8-76e9f1bbc7.chunk.js +1 -0
- package/dist/scripts/9-a04919dbb2.chunk.js +1 -0
- package/dist/scripts/bundle-f3260e8016.min.js +1 -0
- package/dist/scripts/bundles.json +3 -0
- package/package.json +99 -102
- package/typings/utils/globals.d.ts +1 -0
- package/dist/bundle.js +0 -11
- package/dist/library-editor-app.css +0 -312
- package/dist/src/apps/content-updates/ContentUpdatesApplication.d.ts +0 -18
- package/dist/src/apps/content-updates/collections/SubjectCollection.d.ts +0 -5
- package/dist/src/apps/content-updates/collections/VideoGroupCollection.d.ts +0 -5
- package/dist/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeaderComponent.d.ts +0 -14
- package/dist/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeaderComponent.d.ts +0 -19
- package/dist/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNavComponent.d.ts +0 -18
- package/dist/src/apps/content-updates/components/past-releases-filters/PastReleasesFiltersComponent.d.ts +0 -20
- package/dist/src/apps/content-updates/components/past-releases-header/PastReleasesHeaderComponent.d.ts +0 -24
- package/dist/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.d.ts +0 -36
- package/dist/src/apps/content-updates/models/Subject.d.ts +0 -3
- package/dist/src/apps/content-updates/models/VideoGroup.d.ts +0 -7
- package/dist/src/apps/content-updates/services/ContentUpdatesDataService.d.ts +0 -17
- package/dist/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +0 -7
- package/dist/src/apps/content-updates/views/add-to-library/AddToLibraryView.d.ts +0 -47
- package/dist/src/apps/content-updates/views/awaiting-review/AwaitingReviewView.d.ts +0 -36
- package/dist/src/apps/content-updates/views/disable-review/DisableReviewView.d.ts +0 -26
- package/dist/src/apps/content-updates/views/generate-past-releases-pdf/GeneratePastReleasesPdfView.d.ts +0 -41
- package/dist/src/apps/content-updates/views/index.d.ts +0 -5
- package/dist/src/apps/content-updates/views/past-releases/PastReleasesView.d.ts +0 -55
- package/dist/src/apps/dashboard/DashboardApplication.d.ts +0 -9
- package/dist/src/apps/dashboard/components/dashboard-action-tile/DashboardActionTileComponent.d.ts +0 -20
- package/dist/src/apps/dashboard/components/dashboard-info-tile/DashboardInfoTileComponent.d.ts +0 -7
- package/dist/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +0 -15
- package/dist/src/apps/dashboard/components/dashboard-tile-container/DashboardTileContainerComponent.d.ts +0 -11
- package/dist/src/apps/dashboard/components/dashboard-tile-list/DashboardTileListComponent.d.ts +0 -14
- package/dist/src/apps/dashboard/views/DashboardView.d.ts +0 -38
- package/dist/src/apps/default/DefaultApplication.d.ts +0 -21
- package/dist/src/apps/default/views/dev-error/DevErrorView.d.ts +0 -11
- package/dist/src/apps/default/views/error-view/ErrorView.d.ts +0 -12
- package/dist/src/apps/default/views/not-found/NotFoundView.d.ts +0 -11
- package/dist/src/apps/index.d.ts +0 -18
- package/dist/src/apps/library-editor/LibraryEditorApplication.d.ts +0 -46
- package/dist/src/apps/library-editor/behaviors/draggable-folder/DraggableFolderBehavior.d.ts +0 -9
- package/dist/src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.d.ts +0 -24
- package/dist/src/apps/library-editor/behaviors/droppable/DroppableBehavior.d.ts +0 -19
- package/dist/src/apps/library-editor/behaviors/shared/DraggableItemComponent.d.ts +0 -15
- package/dist/src/apps/library-editor/components/add-links/AddLinksComponent.d.ts +0 -31
- package/dist/src/apps/library-editor/components/banner/BannerComponent.d.ts +0 -19
- package/dist/src/apps/library-editor/components/chapter-form/ChapterFormComponent.d.ts +0 -66
- package/dist/src/apps/library-editor/components/chapter-list/ChapterComponentCollection.d.ts +0 -25
- package/dist/src/apps/library-editor/components/chapter-list/ChapterItemComponent.d.ts +0 -37
- package/dist/src/apps/library-editor/components/chapters/ChaptersComponent.d.ts +0 -21
- package/dist/src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.d.ts +0 -24
- package/dist/src/apps/library-editor/components/customer-logo/CustomerLogoComponent.d.ts +0 -19
- package/dist/src/apps/library-editor/components/edit-image/EditImageComponent.d.ts +0 -27
- package/dist/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent.d.ts +0 -23
- package/dist/src/apps/library-editor/components/edit-links/LinkItemComponent.d.ts +0 -16
- package/dist/src/apps/library-editor/components/edit-links/VideoLinksComponent.d.ts +0 -23
- package/dist/src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.d.ts +0 -22
- package/dist/src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.d.ts +0 -45
- package/dist/src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.d.ts +0 -24
- package/dist/src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.d.ts +0 -26
- package/dist/src/apps/library-editor/components/file-select/FileSelectComponent.d.ts +0 -30
- package/dist/src/apps/library-editor/components/file-uploads/FileUploadComponent.d.ts +0 -15
- package/dist/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +0 -13
- package/dist/src/apps/library-editor/components/folder-actions/FolderActionsDropdownComponent.d.ts +0 -18
- package/dist/src/apps/library-editor/components/folder-details/FolderDetailsComponent.d.ts +0 -34
- package/dist/src/apps/library-editor/components/folder-select/FolderSelectComponent.d.ts +0 -41
- package/dist/src/apps/library-editor/components/index.d.ts +0 -38
- package/dist/src/apps/library-editor/components/language-select/LanguageSelectComponent.d.ts +0 -28
- package/dist/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +0 -7
- package/dist/src/apps/library-editor/components/left-nav-libraries/LeftNavLibrariesComponent.d.ts +0 -45
- package/dist/src/apps/library-editor/components/library-actions/LibraryActionsComponent.d.ts +0 -26
- package/dist/src/apps/library-editor/components/library-folders/LibraryFolderListComponent.d.ts +0 -31
- package/dist/src/apps/library-editor/components/library-select/LibrarySelectComponent.d.ts +0 -27
- package/dist/src/apps/library-editor/components/save/SaveComponent.d.ts +0 -32
- package/dist/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +0 -29
- package/dist/src/apps/library-editor/components/sub-folders/SubFolderComponent.d.ts +0 -15
- package/dist/src/apps/library-editor/components/sub-folders/SubFoldersComponent.d.ts +0 -9
- package/dist/src/apps/library-editor/components/suggest-edit/SuggestEditComponent.d.ts +0 -31
- package/dist/src/apps/library-editor/components/tag-list/TagComponentCollection.d.ts +0 -21
- package/dist/src/apps/library-editor/components/tag-list/TagItemComponent.d.ts +0 -28
- package/dist/src/apps/library-editor/components/tags/TagsComponent.d.ts +0 -30
- package/dist/src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.d.ts +0 -24
- package/dist/src/apps/library-editor/components/video-header/VideoHeaderComponent.d.ts +0 -22
- package/dist/src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.d.ts +0 -34
- package/dist/src/apps/library-editor/components/video-resources/ResourceItemComponent.d.ts +0 -22
- package/dist/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +0 -44
- package/dist/src/apps/library-editor/components/video-sidebar-info/VideoSidebarInfoComponent.d.ts +0 -25
- package/dist/src/apps/library-editor/components/video-subtitles/SubtitleItemComponent.d.ts +0 -18
- package/dist/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +0 -26
- package/dist/src/apps/library-editor/constants/VideoCollectionTypes.d.ts +0 -2
- package/dist/src/apps/library-editor/errors/folder-empty/FolderEmptyError.d.ts +0 -8
- package/dist/src/apps/library-editor/errors/folder-max-depth/FolderMaxDepthError.d.ts +0 -7
- package/dist/src/apps/library-editor/errors/folder-not-empty/FolderNotEmptyError.d.ts +0 -7
- package/dist/src/apps/library-editor/errors/folder-not-found/FolderNotFound.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/forbidden-folder/ForbiddenFolderError.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/image-dimensions-too-small/ImageDimensionsTooSmallError.d.ts +0 -9
- package/dist/src/apps/library-editor/errors/library-has-subscribers/LibraryHasSubscribersError.d.ts +0 -7
- package/dist/src/apps/library-editor/errors/library-not-empty/LibraryNotEmptyError.d.ts +0 -7
- package/dist/src/apps/library-editor/errors/max-custom-libraries/MaxCustomLibrariesError.d.ts +0 -9
- package/dist/src/apps/library-editor/errors/series-not-found/SeriesNotFoundError.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
- package/dist/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
- package/dist/src/apps/library-editor/errors/video-not-found/VideoNotFoundError.d.ts +0 -6
- package/dist/src/apps/library-editor/errors/video-write-permission/VideoWritePermissionError.d.ts +0 -6
- package/dist/src/apps/library-editor/models/ChapterConcatenateRequest.d.ts +0 -3
- package/dist/src/apps/library-editor/services/ChapterDataService.d.ts +0 -15
- package/dist/src/apps/library-editor/services/CompanyDataService.d.ts +0 -7
- package/dist/src/apps/library-editor/services/ExportDataService.d.ts +0 -11
- package/dist/src/apps/library-editor/services/FieldsDataService.d.ts +0 -11
- package/dist/src/apps/library-editor/services/FolderDragDropService.d.ts +0 -27
- package/dist/src/apps/library-editor/services/LibraryDataService.d.ts +0 -61
- package/dist/src/apps/library-editor/services/LinkDataService.d.ts +0 -14
- package/dist/src/apps/library-editor/services/PersonDataService.d.ts +0 -7
- package/dist/src/apps/library-editor/services/RatingsDataService.d.ts +0 -7
- package/dist/src/apps/library-editor/services/ResourceDataService.d.ts +0 -13
- package/dist/src/apps/library-editor/services/SeriesDataService.d.ts +0 -15
- package/dist/src/apps/library-editor/services/SubtitleDataService.d.ts +0 -11
- package/dist/src/apps/library-editor/services/TagDataService.d.ts +0 -9
- package/dist/src/apps/library-editor/services/VideoDataService.d.ts +0 -39
- package/dist/src/apps/library-editor/services/VideoDragDropService.d.ts +0 -26
- package/dist/src/apps/library-editor/services/index.d.ts +0 -15
- package/dist/src/apps/library-editor/utils/ChapterHelper.d.ts +0 -18
- package/dist/src/apps/library-editor/utils/EditVideoHelpers.d.ts +0 -93
- package/dist/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +0 -16
- package/dist/src/apps/library-editor/views/add-to-exchange/AddToExchangeView.d.ts +0 -34
- package/dist/src/apps/library-editor/views/banner-upload/BannerUploadView.d.ts +0 -32
- package/dist/src/apps/library-editor/views/delete-folder/DeleteFolderView.d.ts +0 -28
- package/dist/src/apps/library-editor/views/delete-library/DeleteLibraryView.d.ts +0 -23
- package/dist/src/apps/library-editor/views/delete-videos/DeleteVideosView.d.ts +0 -29
- package/dist/src/apps/library-editor/views/edit-chapters/EditChaptersView.d.ts +0 -71
- package/dist/src/apps/library-editor/views/edit-folder-images/EditFolderImagesView.d.ts +0 -50
- package/dist/src/apps/library-editor/views/edit-library/RenameLibraryView.d.ts +0 -29
- package/dist/src/apps/library-editor/views/edit-link/EditLinkView.d.ts +0 -30
- package/dist/src/apps/library-editor/views/edit-resource/EditResourceView.d.ts +0 -34
- package/dist/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +0 -92
- package/dist/src/apps/library-editor/views/edit-video/EditVideoView.d.ts +0 -125
- package/dist/src/apps/library-editor/views/generate-pdf/GeneratePdfView.d.ts +0 -35
- package/dist/src/apps/library-editor/views/left-navigation/LeftNavigationView.d.ts +0 -33
- package/dist/src/apps/library-editor/views/library/LibraryView.d.ts +0 -31
- package/dist/src/apps/library-editor/views/move-folder/MoveFolderView.d.ts +0 -44
- package/dist/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +0 -49
- package/dist/src/apps/library-editor/views/new-folder/NewFolderView.d.ts +0 -44
- package/dist/src/apps/library-editor/views/new-library/NewLibraryView.d.ts +0 -26
- package/dist/src/apps/library-editor/views/no-library/NoLibraryView.d.ts +0 -10
- package/dist/src/apps/library-editor/views/publish-library/PublishLibraryView.d.ts +0 -19
- package/dist/src/apps/library-editor/views/rename-folder/RenameFolderView.d.ts +0 -39
- package/dist/src/apps/library-editor/views/suggest-an-edit/SuggestAnEditView.d.ts +0 -58
- package/dist/src/apps/library-editor/views/thumbnail-upload/ThumbnailUploadView.d.ts +0 -33
- package/dist/src/apps/library-editor/views/video-collection/VideoCollectionView.d.ts +0 -101
- package/dist/src/apps/library-editor/views/video-details/VideoDetailsView.d.ts +0 -44
- package/dist/src/apps/migration-wizard/MigrationWizardApplication.d.ts +0 -45
- package/dist/src/apps/migration-wizard/collections/HomeFolderCollection.d.ts +0 -6
- package/dist/src/apps/migration-wizard/collections/SmartSelectVideoCollection.d.ts +0 -5
- package/dist/src/apps/migration-wizard/components/banner/BannerComponent.d.ts +0 -18
- package/dist/src/apps/migration-wizard/components/empty-video-list/EmptyVideoListComponent.d.ts +0 -14
- package/dist/src/apps/migration-wizard/components/errored-video-actions/ErroredVideoActionsComponent.d.ts +0 -22
- package/dist/src/apps/migration-wizard/components/errored-video-footer/ErroredVideoFooterComponent.d.ts +0 -21
- package/dist/src/apps/migration-wizard/components/errored-video-item/ErroredVideoItemComponent.d.ts +0 -30
- package/dist/src/apps/migration-wizard/components/errored-video-list/ErroredVideoListComponent.d.ts +0 -12
- package/dist/src/apps/migration-wizard/components/errored-video-metadata/ErroredVideoMetadataComponent.d.ts +0 -8
- package/dist/src/apps/migration-wizard/components/errored-video-preview/ErroredVideoPreviewComponent.d.ts +0 -17
- package/dist/src/apps/migration-wizard/components/generate-report/GenerateReportComponent.d.ts +0 -25
- package/dist/src/apps/migration-wizard/components/generate-report-button/GenerateReportButtonComponent.d.ts +0 -10
- package/dist/src/apps/migration-wizard/components/migration-video-item/MigrationVideoItemComponent.d.ts +0 -30
- package/dist/src/apps/migration-wizard/components/progress-bar/ProgressBarComponent.d.ts +0 -19
- package/dist/src/apps/migration-wizard/components/progress-circle/ProgressCircleComponent.d.ts +0 -20
- package/dist/src/apps/migration-wizard/components/search-bar/SearchBarComponent.d.ts +0 -19
- package/dist/src/apps/migration-wizard/components/selected-video-item/SelectedVideoItemComponent.d.ts +0 -9
- package/dist/src/apps/migration-wizard/components/sorting-row/SortingRowComponent.d.ts +0 -35
- package/dist/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +0 -28
- package/dist/src/apps/migration-wizard/components/video-list/VideoListCollection.d.ts +0 -36
- package/dist/src/apps/migration-wizard/components/video-list-collection/VideoListCollectionComponent.d.ts +0 -16
- package/dist/src/apps/migration-wizard/errors/already-migrated/AlreadyMigratedError.d.ts +0 -6
- package/dist/src/apps/migration-wizard/errors/backup-progress/BackupProgressError.d.ts +0 -8
- package/dist/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts +0 -8
- package/dist/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts +0 -8
- package/dist/src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.d.ts +0 -9
- package/dist/src/apps/migration-wizard/filters/MigrationFilters.d.ts +0 -8
- package/dist/src/apps/migration-wizard/models/BackupToolBuild.d.ts +0 -3
- package/dist/src/apps/migration-wizard/models/CustomerMetadata.d.ts +0 -9
- package/dist/src/apps/migration-wizard/models/FinalisationTask.d.ts +0 -3
- package/dist/src/apps/migration-wizard/models/HomeFolder.d.ts +0 -8
- package/dist/src/apps/migration-wizard/models/MigrationOptions.d.ts +0 -3
- package/dist/src/apps/migration-wizard/models/SelectedVideo.d.ts +0 -3
- package/dist/src/apps/migration-wizard/models/SmartSelectVideo.d.ts +0 -4
- package/dist/src/apps/migration-wizard/models/VideoCount.d.ts +0 -3
- package/dist/src/apps/migration-wizard/services/FolderCacheService.d.ts +0 -22
- package/dist/src/apps/migration-wizard/services/LocalOptionsService.d.ts +0 -10
- package/dist/src/apps/migration-wizard/services/MigrationVideoDataService.d.ts +0 -56
- package/dist/src/apps/migration-wizard/services/SelectedVideoService.d.ts +0 -19
- package/dist/src/apps/migration-wizard/services/index.d.ts +0 -4
- package/dist/src/apps/migration-wizard/utils/FolderHelper.d.ts +0 -8
- package/dist/src/apps/migration-wizard/utils/VideoHelper.d.ts +0 -29
- package/dist/src/apps/migration-wizard/views/current-section-header/CurrentSectionHeaderView.d.ts +0 -28
- package/dist/src/apps/migration-wizard/views/generate-csv-report/GenerateCsvReportView.d.ts +0 -27
- package/dist/src/apps/migration-wizard/views/index.d.ts +0 -13
- package/dist/src/apps/migration-wizard/views/migration-error/MigrationErrorView.d.ts +0 -39
- package/dist/src/apps/migration-wizard/views/migration-progress/MigrationProgressView.d.ts +0 -32
- package/dist/src/apps/migration-wizard/views/publish-library-banner/PublishLibraryBannerView.d.ts +0 -30
- package/dist/src/apps/migration-wizard/views/publish-library-complete/PublishLibraryCompleteView.d.ts +0 -15
- package/dist/src/apps/migration-wizard/views/publish-library-progress/PublishLibraryProgressView.d.ts +0 -18
- package/dist/src/apps/migration-wizard/views/publisher-backup/PublisherBackupView.d.ts +0 -19
- package/dist/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupCompleteView.d.ts +0 -23
- package/dist/src/apps/migration-wizard/views/publisher-backup-progress/PublisherBackupProgressView.d.ts +0 -23
- package/dist/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcomeView.d.ts +0 -19
- package/dist/src/apps/migration-wizard/views/remigrate-video/RemigrateVideoView.d.ts +0 -32
- package/dist/src/apps/migration-wizard/views/selected-videos/SelectedVideosView.d.ts +0 -32
- package/dist/src/apps/migration-wizard/views/show-video-popup/ShowPublisherVideoPopupView.d.ts +0 -26
- package/dist/src/apps/migration-wizard/views/smart-migration/SmartMigrationView.d.ts +0 -58
- package/dist/src/apps/migration-wizard/views/start/StartView.d.ts +0 -40
- package/dist/src/apps/migration-wizard/views/videos-added/VideosAddedView.d.ts +0 -24
- package/dist/src/apps/notifications/NotificationsApplication.d.ts +0 -11
- package/dist/src/apps/notifications/constants/NotificationsAppVariables.d.ts +0 -7
- package/dist/src/apps/notifications/utils/NotificationsHelper.d.ts +0 -10
- package/dist/src/apps/search/SearchApplication.d.ts +0 -16
- package/dist/src/apps/search/collections/FilterCollection.d.ts +0 -9
- package/dist/src/apps/search/collections/OptionCollection.d.ts +0 -5
- package/dist/src/apps/search/components/filters/FiltersComponent.d.ts +0 -27
- package/dist/src/apps/search/components/filters/filter-button-list/FilterButtonItemComponent.d.ts +0 -37
- package/dist/src/apps/search/components/filters/filter-button-list/FilterButtonListComponent.d.ts +0 -19
- package/dist/src/apps/search/components/filters/filter-list/FilterItemComponent.d.ts +0 -17
- package/dist/src/apps/search/components/filters/filter-list/FilterListComponent.d.ts +0 -24
- package/dist/src/apps/search/components/filters/filter-options/FilterOptionsComponent.d.ts +0 -34
- package/dist/src/apps/search/components/filters/filter-options/bool-filter-options/BoolFilterOptionsComponent.d.ts +0 -15
- package/dist/src/apps/search/components/filters/filter-options/duration-filter-options/DurationFilterOptionListComponent.d.ts +0 -27
- package/dist/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionItemComponent.d.ts +0 -19
- package/dist/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionsListComponent.d.ts +0 -21
- package/dist/src/apps/search/components/filters/filter-options/range-filter-options/RangeFilterOptionListComponent.d.ts +0 -23
- package/dist/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsComponent.d.ts +0 -27
- package/dist/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsListComponent.d.ts +0 -19
- package/dist/src/apps/search/components/filters/more-filters-button/MoreFiltersButtonComponent.d.ts +0 -42
- package/dist/src/apps/search/components/results/SearchResultsComponent.d.ts +0 -22
- package/dist/src/apps/search/components/search-header/SearchHeaderComponent.d.ts +0 -11
- package/dist/src/apps/search/models/Filter.d.ts +0 -8
- package/dist/src/apps/search/models/Option.d.ts +0 -4
- package/dist/src/apps/search/models/Query.d.ts +0 -3
- package/dist/src/apps/search/models/SearchAppVariables.d.ts +0 -4
- package/dist/src/apps/search/services/SearchDataService.d.ts +0 -12
- package/dist/src/apps/search/utils/SearchHelper.d.ts +0 -11
- package/dist/src/apps/search/views/search/SearchView.d.ts +0 -57
- package/dist/src/apps/staff-requests/StaffRequestsApplication.d.ts +0 -15
- package/dist/src/apps/staff-requests/collections/StaffRequestCollection.d.ts +0 -5
- package/dist/src/apps/staff-requests/collections/StaffRequestMessageCollection.d.ts +0 -5
- package/dist/src/apps/staff-requests/components/staff-request-actions/StaffRequestActionsComponent.d.ts +0 -42
- package/dist/src/apps/staff-requests/components/staff-request-details/StaffRequestDetailsComponent.d.ts +0 -30
- package/dist/src/apps/staff-requests/components/staff-request-list/StaffRequestListComponent.d.ts +0 -29
- package/dist/src/apps/staff-requests/models/StaffRequest.d.ts +0 -14
- package/dist/src/apps/staff-requests/models/StaffRequestMessage.d.ts +0 -7
- package/dist/src/apps/staff-requests/services/StaffRequestDataService.d.ts +0 -14
- package/dist/src/apps/staff-requests/views/approve-staff-request/ApproveStaffRequestView.d.ts +0 -34
- package/dist/src/apps/staff-requests/views/reject-staff-request/RejectStaffRequestView.d.ts +0 -34
- package/dist/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +0 -44
- package/dist/src/apps/upload/UploadApplication.d.ts +0 -23
- package/dist/src/apps/upload/components/processing-progress/ProcessProgressComponentCollection.d.ts +0 -38
- package/dist/src/apps/upload/components/progress-info/ProgressInfoComponent.d.ts +0 -10
- package/dist/src/apps/upload/components/upload-actions/UploadActionsComponent.d.ts +0 -21
- package/dist/src/apps/upload/components/upload-folder-select/UploadFolderSelectComponent.d.ts +0 -35
- package/dist/src/apps/upload/components/upload-progress/UploadProgressComponent.d.ts +0 -10
- package/dist/src/apps/upload/components/upload-video/UploadVideoComponent.d.ts +0 -46
- package/dist/src/apps/upload/components/upload-video/UploadVideoComponentCollection.d.ts +0 -18
- package/dist/src/apps/upload/errors/no-libraries-upload/NoLibrariesUploadError.d.ts +0 -7
- package/dist/src/apps/upload/services/ImageUploadDataService.d.ts +0 -8
- package/dist/src/apps/upload/services/PendingItemsService.d.ts +0 -7
- package/dist/src/apps/upload/services/VideoUploadDataService.d.ts +0 -17
- package/dist/src/apps/upload/services/VideoUploadService.d.ts +0 -8
- package/dist/src/apps/upload/views/file-select/FileSelectView.d.ts +0 -25
- package/dist/src/apps/upload/views/progress-summary/ProgressSummaryView.d.ts +0 -18
- package/dist/src/apps/upload/views/upload-button/UploadButtonView.d.ts +0 -26
- package/dist/src/apps/upload/views/upload-complete/UploadCompleteView.d.ts +0 -14
- package/dist/src/apps/upload/views/upload-videos/UploadVideosView.d.ts +0 -61
- package/dist/src/apps/video-access/VideoAccessApplication.d.ts +0 -12
- package/dist/src/apps/video-access/views/restricted-video-list/RestrictedVideoListView.d.ts +0 -34
- package/dist/src/index.d.ts +0 -194
- package/dist/src/shared/alerts/VideoAlerts.d.ts +0 -8
- package/dist/src/shared/behaviors/backbone-validation/BackboneValidationBehavior.d.ts +0 -14
- package/dist/src/shared/behaviors/file-drop/FileDropBehavior.d.ts +0 -19
- package/dist/src/shared/behaviors/file-drop/FileDropMaskBehavior.d.ts +0 -19
- package/dist/src/shared/behaviors/file-select/FileSelectBehavior.d.ts +0 -16
- package/dist/src/shared/behaviors/image-select-behavior/ImageSelectBehavior.d.ts +0 -23
- package/dist/src/shared/behaviors/lazy-load/LazyLoadBehavior.d.ts +0 -31
- package/dist/src/shared/behaviors/lock-layout-file-drop/LockLayoutFileDropBehavior.d.ts +0 -7
- package/dist/src/shared/behaviors/popup/PopupBehavior.d.ts +0 -65
- package/dist/src/shared/behaviors/stickit/StickitBehavior.d.ts +0 -6
- package/dist/src/shared/collections/ChannelCollection.d.ts +0 -6
- package/dist/src/shared/collections/ChapterCollection.d.ts +0 -7
- package/dist/src/shared/collections/DirectorCollection.d.ts +0 -6
- package/dist/src/shared/collections/DistributorCollection.d.ts +0 -6
- package/dist/src/shared/collections/FieldsCollection.d.ts +0 -5
- package/dist/src/shared/collections/FolderCollection.d.ts +0 -7
- package/dist/src/shared/collections/InteractivesCollection.d.ts +0 -6
- package/dist/src/shared/collections/LibraryCollection.d.ts +0 -7
- package/dist/src/shared/collections/LinkCollection.d.ts +0 -6
- package/dist/src/shared/collections/LocalCacheDeviceCollection.d.ts +0 -5
- package/dist/src/shared/collections/LocalCacheDownloadCollection.d.ts +0 -5
- package/dist/src/shared/collections/MetadataCollection.d.ts +0 -4
- package/dist/src/shared/collections/ProducerCollection.d.ts +0 -6
- package/dist/src/shared/collections/ProductionCompanyCollection.d.ts +0 -6
- package/dist/src/shared/collections/RatingCollection.d.ts +0 -4
- package/dist/src/shared/collections/ResourceCollection.d.ts +0 -6
- package/dist/src/shared/collections/RestrictedObjectCollection.d.ts +0 -5
- package/dist/src/shared/collections/RestrictionCollection.d.ts +0 -5
- package/dist/src/shared/collections/SeasonCollection.d.ts +0 -6
- package/dist/src/shared/collections/SettingsCollection.d.ts +0 -5
- package/dist/src/shared/collections/SubtitleCollection.d.ts +0 -6
- package/dist/src/shared/collections/TagCollection.d.ts +0 -6
- package/dist/src/shared/collections/VideoCollection.d.ts +0 -6
- package/dist/src/shared/collections/index.d.ts +0 -23
- package/dist/src/shared/components/alert/AlertComponentCollection.d.ts +0 -11
- package/dist/src/shared/components/alert/AlertItemComponent.d.ts +0 -44
- package/dist/src/shared/components/breadcrumbs/BreadcrumbComponentCollection.d.ts +0 -18
- package/dist/src/shared/components/breadcrumbs/BreadcrumbsComponent.d.ts +0 -26
- package/dist/src/shared/components/bulk-video-actions/BulkVideoActionsComponent.d.ts +0 -26
- package/dist/src/shared/components/checkbox/BulkCheckboxComponent.d.ts +0 -27
- package/dist/src/shared/components/checkbox/CheckboxComponent.d.ts +0 -25
- package/dist/src/shared/components/clear-button/ClearButtonComponent.d.ts +0 -18
- package/dist/src/shared/components/date-picker/DatePickerComponent.d.ts +0 -47
- package/dist/src/shared/components/dialog/DialogView.d.ts +0 -22
- package/dist/src/shared/components/dropdown/DropdownButtonComponent.d.ts +0 -36
- package/dist/src/shared/components/dropdown/DropdownComponentCollection.d.ts +0 -38
- package/dist/src/shared/components/dropdown/DropdownItemComponent.d.ts +0 -57
- package/dist/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +0 -37
- package/dist/src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.d.ts +0 -32
- package/dist/src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.d.ts +0 -22
- package/dist/src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.d.ts +0 -24
- package/dist/src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.d.ts +0 -61
- package/dist/src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.d.ts +0 -33
- package/dist/src/shared/components/edit-video/extra-info/ExtraInfoComponent.d.ts +0 -16
- package/dist/src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.d.ts +0 -17
- package/dist/src/shared/components/edit-video/select-rating/SelectRatingCollectionComponent.d.ts +0 -17
- package/dist/src/shared/components/edit-video/select-rating/SelectRatingComponent.d.ts +0 -40
- package/dist/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +0 -20
- package/dist/src/shared/components/fields/FieldsComponent.d.ts +0 -9
- package/dist/src/shared/components/image-cropper/ImageCropperComponent.d.ts +0 -34
- package/dist/src/shared/components/index.d.ts +0 -44
- package/dist/src/shared/components/left-nav/LeftNavComponent.d.ts +0 -30
- package/dist/src/shared/components/left-nav/LeftNavNodeComponent.d.ts +0 -48
- package/dist/src/shared/components/page-footer/PageFooterComponent.d.ts +0 -15
- package/dist/src/shared/components/page-header/PageHeaderComponent.d.ts +0 -25
- package/dist/src/shared/components/partial-loading/PartialLoadingComponent.d.ts +0 -16
- package/dist/src/shared/components/partial-loading/PartialLoadingComponentCollection.d.ts +0 -20
- package/dist/src/shared/components/resizing-text-area/ResizingTextAreaComponent.d.ts +0 -23
- package/dist/src/shared/components/select/SelectComponent.d.ts +0 -54
- package/dist/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +0 -73
- package/dist/src/shared/components/tabs/TabsComponent.d.ts +0 -28
- package/dist/src/shared/components/top-navigation/TopNavigationComponentCollection.d.ts +0 -29
- package/dist/src/shared/components/tree-dropdown/TreeDropdownComponent.d.ts +0 -32
- package/dist/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +0 -74
- package/dist/src/shared/components/typeahead-list/TypeaheadListComponent.d.ts +0 -33
- package/dist/src/shared/components/user-options-dropdown/UserOptionsDropdownComponent.d.ts +0 -20
- package/dist/src/shared/components/video-actions/VideoActionComponentCollection.d.ts +0 -31
- package/dist/src/shared/components/video-actions/VideoActionsComponent.d.ts +0 -41
- package/dist/src/shared/components/video-basic-info/VideoBasicInfoComponent.d.ts +0 -32
- package/dist/src/shared/components/video-description/VideoDescriptionComponent.d.ts +0 -33
- package/dist/src/shared/components/video-item/VideoItemComponent.d.ts +0 -56
- package/dist/src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.d.ts +0 -23
- package/dist/src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.d.ts +0 -25
- package/dist/src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.d.ts +0 -26
- package/dist/src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.d.ts +0 -22
- package/dist/src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.d.ts +0 -24
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.d.ts +0 -21
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.d.ts +0 -20
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.d.ts +0 -24
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.d.ts +0 -19
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.d.ts +0 -22
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.d.ts +0 -22
- package/dist/src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.d.ts +0 -26
- package/dist/src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.d.ts +0 -22
- package/dist/src/shared/components/video-item-preview/VideoItemPreviewComponent.d.ts +0 -37
- package/dist/src/shared/components/video-list/VideoListComponent.d.ts +0 -43
- package/dist/src/shared/components/video-preview/VideoPreviewComponent.d.ts +0 -30
- package/dist/src/shared/components/web-player/WebPlayerComponent.d.ts +0 -53
- package/dist/src/shared/constants/Services.d.ts +0 -61
- package/dist/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +0 -6
- package/dist/src/shared/errors/authentication/AuthenticationError.d.ts +0 -7
- package/dist/src/shared/errors/customer-setting/CustomerSettingError.d.ts +0 -8
- package/dist/src/shared/errors/email-not-verified/EmailNotVerifiedError.d.ts +0 -8
- package/dist/src/shared/errors/forbidden-access/ForbiddenAccessError.d.ts +0 -11
- package/dist/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts +0 -6
- package/dist/src/shared/errors/no-beta-access/NoBetaAccessError.d.ts +0 -8
- package/dist/src/shared/errors/not-found/NotFoundError.d.ts +0 -5
- package/dist/src/shared/errors/old-version/OldVersionError.d.ts +0 -7
- package/dist/src/shared/errors/too-many-files/TooManyFilesError.d.ts +0 -6
- package/dist/src/shared/filters/BetaAccessFilter.d.ts +0 -3
- package/dist/src/shared/filters/CustomerSettingsFilter.d.ts +0 -8
- package/dist/src/shared/filters/RoleFilter.d.ts +0 -4
- package/dist/src/shared/filters/VerifiedEmailFilter.d.ts +0 -3
- package/dist/src/shared/index.d.ts +0 -14
- package/dist/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +0 -4
- package/dist/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +0 -20
- package/dist/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +0 -16
- package/dist/src/shared/interfaces/VideoCollectionIdentifier.d.ts +0 -4
- package/dist/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +0 -47
- package/dist/src/shared/models/Avatar.d.ts +0 -3
- package/dist/src/shared/models/Banner.d.ts +0 -3
- package/dist/src/shared/models/Channel.d.ts +0 -3
- package/dist/src/shared/models/Chapter.d.ts +0 -3
- package/dist/src/shared/models/Company.d.ts +0 -3
- package/dist/src/shared/models/Config.d.ts +0 -3
- package/dist/src/shared/models/Customer.d.ts +0 -3
- package/dist/src/shared/models/Director.d.ts +0 -3
- package/dist/src/shared/models/DisabledSpinnerModel.d.ts +0 -5
- package/dist/src/shared/models/Distributor.d.ts +0 -3
- package/dist/src/shared/models/Folder.d.ts +0 -12
- package/dist/src/shared/models/Image.d.ts +0 -3
- package/dist/src/shared/models/Interactives.d.ts +0 -3
- package/dist/src/shared/models/LanguageConfig.d.ts +0 -7
- package/dist/src/shared/models/Library.d.ts +0 -10
- package/dist/src/shared/models/Link.d.ts +0 -3
- package/dist/src/shared/models/LocalCacheDevice.d.ts +0 -3
- package/dist/src/shared/models/LocalCacheDownload.d.ts +0 -3
- package/dist/src/shared/models/Logo.d.ts +0 -3
- package/dist/src/shared/models/Metadata.d.ts +0 -3
- package/dist/src/shared/models/Owner.d.ts +0 -3
- package/dist/src/shared/models/Person.d.ts +0 -3
- package/dist/src/shared/models/Phrases.d.ts +0 -3
- package/dist/src/shared/models/Playlist.d.ts +0 -3
- package/dist/src/shared/models/Producer.d.ts +0 -3
- package/dist/src/shared/models/ProductionCompany.d.ts +0 -3
- package/dist/src/shared/models/Rating.d.ts +0 -3
- package/dist/src/shared/models/Resource.d.ts +0 -3
- package/dist/src/shared/models/RestrictedObject.d.ts +0 -3
- package/dist/src/shared/models/Restriction.d.ts +0 -3
- package/dist/src/shared/models/Season.d.ts +0 -3
- package/dist/src/shared/models/Series.d.ts +0 -7
- package/dist/src/shared/models/Setting.d.ts +0 -3
- package/dist/src/shared/models/SharedResource.d.ts +0 -3
- package/dist/src/shared/models/Subtitle.d.ts +0 -3
- package/dist/src/shared/models/Tag.d.ts +0 -3
- package/dist/src/shared/models/Thumbnail.d.ts +0 -3
- package/dist/src/shared/models/User.d.ts +0 -10
- package/dist/src/shared/models/Video.d.ts +0 -29
- package/dist/src/shared/models/index.d.ts +0 -38
- package/dist/src/shared/services/AlertService.d.ts +0 -15
- package/dist/src/shared/services/ConfigDataService.d.ts +0 -23
- package/dist/src/shared/services/CustomerDataService.d.ts +0 -7
- package/dist/src/shared/services/DownloadProxyDataServices.d.ts +0 -7
- package/dist/src/shared/services/IntercomService.d.ts +0 -8
- package/dist/src/shared/services/LocalCacheDataService.d.ts +0 -11
- package/dist/src/shared/services/NavigationLockService.d.ts +0 -17
- package/dist/src/shared/services/PageTitleService.d.ts +0 -10
- package/dist/src/shared/services/PageVisibilityService.d.ts +0 -14
- package/dist/src/shared/services/PartialLoadingService.d.ts +0 -12
- package/dist/src/shared/services/RestrictedVideoDataService.d.ts +0 -13
- package/dist/src/shared/services/SettingsDataService.d.ts +0 -12
- package/dist/src/shared/services/UserDataService.d.ts +0 -20
- package/dist/src/shared/services/VideoMixinService.d.ts +0 -16
- package/dist/src/shared/services/index.d.ts +0 -14
- package/dist/src/shared/utils/BulkCheckboxHelper.d.ts +0 -18
- package/dist/src/shared/utils/CancelProcessingHelper.d.ts +0 -4
- package/dist/src/shared/utils/CollectionHelper.d.ts +0 -10
- package/dist/src/shared/utils/DialogHelper.d.ts +0 -9
- package/dist/src/shared/utils/FolderTreeHelpers.d.ts +0 -36
- package/dist/src/shared/utils/ImageHelper.d.ts +0 -31
- package/dist/src/shared/utils/LocalCacheHelper.d.ts +0 -7
- package/dist/src/shared/utils/PartialLoadingHelper.d.ts +0 -6
- package/dist/src/shared/utils/PermissionsHelper.d.ts +0 -13
- package/dist/src/shared/utils/RatingHelper.d.ts +0 -6
- package/dist/src/shared/utils/RestrictedAccessHelper.d.ts +0 -13
- package/dist/src/shared/utils/SortHelper.d.ts +0 -16
- package/dist/src/shared/utils/TabHelper.d.ts +0 -9
- package/dist/src/shared/utils/VideoHelper.d.ts +0 -11
- package/dist/src/shared/utils/search/RawSearchHelper.d.ts +0 -21
- package/dist/src/shared/views/download-to-local-cache/DownloadToLocalCacheView.d.ts +0 -28
- package/dist/src/shared/views/download-video/DownloadVideoView.d.ts +0 -19
- package/dist/src/shared/views/index.d.ts +0 -9
- package/dist/src/shared/views/restrict-access/RestrictAccessComponent.d.ts +0 -7
- package/dist/src/shared/views/restrict-access/RestrictAccessGroupComponent.d.ts +0 -24
- package/dist/src/shared/views/restrict-access/RestrictAccessView.d.ts +0 -67
- package/dist/src/shared/views/share/ShareView.d.ts +0 -48
- package/dist/src/shared/views/top-navigation/TopNavigationView.d.ts +0 -35
- package/dist/src/shared/views/user-options/UserOptionsView.d.ts +0 -18
- /package/dist/{src/shared ā libs/shared/src}/constants/CacheDurations.d.ts +0 -0
- /package/dist/{src/shared ā libs/shared/src}/utils/DurationHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/collections/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/components/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/enums/PastReleaseFilterType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/enums/ReleaseDateType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/enums/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/models/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/services/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/utils/Constants.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/utils/PastReleasesHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/content-updates/utils/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/dashboard/components/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/behaviors/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/behaviors/shared/DragOptions.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/behaviors/shared/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/constants/CheckboxTypes.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/constants/EditVideoBackButtonBlacklist.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/constants/EditVideoBackButtonKey.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/constants/LibraryEditorActions.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/constants/LibraryEditorRadioChannels.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/constants/MetadataTypes.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/constants/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/enums/MediaConcatenateStatus.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/enums/ObjectOwnerType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/enums/TagBehavior.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/enums/TagOrientation.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/enums/VideoCollectionSource.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/enums/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/errors/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/models/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/utils/AddToLibraryCacheHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/utils/DownloadHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/utils/FolderValidation.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/utils/LanguageValidation.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/utils/LibraryValidation.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/utils/UploadVideoValidation.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/library-editor/utils/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/collections/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/components/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/contants/MigrationErrorActions.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/contants/MigrationViewModels.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/CloudSyncStatus.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/FinalisationTaskStatus.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/FinalisationType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/LocalOption.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/MigrationOption.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/MigrationReportType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/SortField.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/ValidationResult.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/ValidationResultErrorType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/VideoMigrationStatus.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/enums/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/errors/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/filters/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/interfaces/SelectedVideos.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/models/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/utils/KeyContactHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/utils/MigrationErrorHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/utils/MigrationHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/utils/MigrationRadioChannels.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/utils/MigrationWarningsSvgs.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/migration-wizard/utils/ReportHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/notifications/constants/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/notifications/utils/Constants.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/notifications/utils/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/collections/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/components/filters/filter-button-list/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/components/filters/filter-options/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/components/filters/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/constants/SearchRadioChannels.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/constants/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/models/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/services/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/utils/Constants.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/utils/Enums.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/utils/FilterHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/utils/FilterLabelGenerators.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/utils/FilterQueryGenerators.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/utils/FilterRouteQueryParamGenerators.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/search/utils/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/staff-requests/collections/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/staff-requests/enums/StaffRequestStatus.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/staff-requests/enums/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/staff-requests/models/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/staff-requests/services/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/staff-requests/utils/StaffRequestApprovalValidation.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/staff-requests/utils/StaffRequestRejectionValidation.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/staff-requests/utils/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/upload/components/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/upload/errors/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/apps/upload/services/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/alerts/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/behaviors/file-drop/FileDropHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/behaviors/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/partial-loading/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/typeahead-input/templates/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/video-item/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/video-item/utils/VideoItemBehaviors.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/video-item/utils/VideoItemComponentHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/video-item/utils/VideoItemComponentTypes.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/video-item/utils/VideoItemComponents.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/video-item/utils/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/video-item/video-item-actions/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/components/video-item/video-item-metadata/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/Actions.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/BootstrapKeys.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/DataPrefixes.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/DataServiceErrors.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/EventNames.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/FolderTreeIds.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/FormattedCustomerSettingNames.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/ImageSizes.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/ImageUrls.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/LayoutRegions.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/Layouts.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/LazyLoadBrowserSupport.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/MarketingSiteArticles.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/Misc.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/OnlineUrls.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/PartialLoadingComponents.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/RadioChannels.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/Search.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/SupportArticles.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/Webplayer.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/WithStatements.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/constants/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/CitationType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/CustomerRegions.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/EmptyStates.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/FileIdType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/ImageType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/MasterObjectTypes.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/MasterType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/PartialLoading.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/RestrictedObjectType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/SchoolTypes.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/Settings.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/SharedResourcePrivacy.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/SortTypes.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/StaffRequestOption.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/TimeType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/UploadInteractionType.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/UserRole.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/YearGroups.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/enums/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/errors/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/filters/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/interfaces/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/layouts/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/LazyLoadHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/RadioChannelHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/SettingsHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/SpinnerHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/SubtitleLanguageValidation.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/TextHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/TimeHelper.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/search/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/search/raw-search-components/add-new/AddNewSuggestion.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/search/raw-search-components/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/shared/utils/search/raw-search-templates/index.d.ts +0 -0
- /package/dist/{src ā projects/library-editor/src}/styles/index.d.ts +0 -0
- /package/dist/{typings ā projects/library-editor/typings}/libs/LazyLoad.d.ts +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("_"),require("Backbone"),require("Handlebars"),require("moment"),require("Marionette"),require("Bloodhound"),require("FontAwesome"),require("Polyglot"),require("DOMPurify"),require("CVEvents"),require("ClipboardJS")):"function"==typeof define&&define.amd?define(["_","Backbone","Handlebars","moment","Marionette","Bloodhound","FontAwesome","Polyglot","DOMPurify","CVEvents","ClipboardJS"],e):"object"==typeof exports?exports["@clickview/library-editor"]=e(require("_"),require("Backbone"),require("Handlebars"),require("moment"),require("Marionette"),require("Bloodhound"),require("FontAwesome"),require("Polyglot"),require("DOMPurify"),require("CVEvents"),require("ClipboardJS")):t["@clickview/library-editor"]=e(t._,t.Backbone,t.Handlebars,t.moment,t.Marionette,t.Bloodhound,t.FontAwesome,t.Polyglot,t.DOMPurify,t.CVEvents,t.ClipboardJS)}(window,(function(t,e,n,r,o,i,a,c,s,u,l){return function(t){function e(e){for(var n,r,i=e[0],a=e[1],c=0,s=[];c<i.length;c++)r=i[c],Object.prototype.hasOwnProperty.call(o,r)&&o[r]&&s.push(o[r][0]),o[r]=0;for(n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n]);for(u&&u(e);s.length;)s.shift()()}var n={},r={19:0},o={19:0};function i(e){if(n[e])return n[e].exports;var r=n[e]={i:e,l:!1,exports:{}};return t[e].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.e=function(t){var e=[];r[t]?e.push(r[t]):0!==r[t]&&{0:1,1:1,2:1,4:1,5:1,6:1,7:1,8:1,9:1,10:1,12:1,13:1,14:1,16:1,17:1,18:1,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:1,28:1,29:1,30:1,31:1,32:1,36:1,37:1,38:1,39:1,40:1,41:1,42:1,43:1,44:1,45:1,46:1,47:1,48:1,50:1,51:1,54:1,55:1,56:1,57:1,58:1,59:1,61:1,62:1}[t]&&e.push(r[t]=new Promise((function(e,n){for(var o="css/"+t+".chunk.css",a=i.p+o,c=document.getElementsByTagName("link"),s=0;s<c.length;s++){var u=(f=c[s]).getAttribute("data-href")||f.getAttribute("href");if("stylesheet"===f.rel&&(u===o||u===a))return e()}var l=document.getElementsByTagName("style");for(s=0;s<l.length;s++){var f;if((u=(f=l[s]).getAttribute("data-href"))===o||u===a)return e()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=e,p.onerror=function(e){var o=e&&e.target&&e.target.src||a,i=new Error("Loading CSS chunk "+t+" failed.\n("+o+")");i.code="CSS_CHUNK_LOAD_FAILED",i.request=o,delete r[t],p.parentNode.removeChild(p),n(i)},p.href=a,document.getElementsByTagName("head")[0].appendChild(p)})).then((function(){r[t]=0})));var n=o[t];if(0!==n)if(n)e.push(n[2]);else{var a=new Promise((function(e,r){n=o[t]=[e,r]}));e.push(n[2]=a);var c,s=document.createElement("script");s.charset="utf-8",s.timeout=120,i.nc&&s.setAttribute("nonce",i.nc),s.src=function(t){return i.p+"scripts/"+t+"-"+{0:"48b01028ea",1:"098c567081",2:"c70309751f",3:"afb156ea3e",4:"f8a4d0b62a",5:"1b6768e719",6:"e87b3c0be1",7:"7d12e809a2",8:"76e9f1bbc7",9:"a04919dbb2",10:"b4b24c05f8",11:"e79fc84dc9",12:"58284faf21",13:"2c4cd203ec",14:"2eeb73cd11",15:"6fa6f47a8b",16:"68c900303f",17:"af7eca54ed",18:"087b42c483",20:"caf95bbe64",21:"5d5cda7f47",22:"f2b4962990",23:"d575c690b9",24:"dc5b027075",25:"956d1e9caf",26:"7a3d12d816",27:"dc6045c275",28:"e7ce349a42",29:"e281d8346a",30:"d4b6c1cd1d",31:"c1d42342dd",32:"1b1e4c86f5",33:"7ef65d086d",34:"6d7e7405af",35:"7d7e41a203",36:"37f9fd0ad1",37:"06db9481cd",38:"528abd1bba",39:"80001e779c",40:"d59ee7c3e1",41:"8c75d122fc",42:"a68ee26f34",43:"bde1af67cb",44:"abdd275e46",45:"6b745e57af",46:"bee29b02a3",47:"c142425de4",48:"81efa76f40",49:"cbd218d6e4",50:"ec2f179d8c",51:"9b91910fc0",52:"d2e93491a5",53:"1c8ff136ad",54:"34116d34e6",55:"02803101de",56:"19ec4b6ccd",57:"17e93c944c",58:"dd77463e63",59:"08e8830b9c",60:"720797bb78",61:"66e55ae6e1",62:"beb29b208b",63:"bbc787afe7",64:"b10c083c61",65:"40c1cc2f53",66:"32ae3ca73f",67:"1f082de6fd",68:"f53fbad25f",69:"984061e3b8",70:"8edf7afb7b",71:"6365b9e3d4",72:"85505b2300"}[t]+".chunk.js"}(t);var u=new Error;c=function(e){s.onerror=s.onload=null,clearTimeout(l);var n=o[t];if(0!==n){if(n){var r=e&&("load"===e.type?"missing":e.type),i=e&&e.target&&e.target.src;u.message="Loading chunk "+t+" failed.\n("+r+": "+i+")",u.name="ChunkLoadError",u.type=r,u.request=i,n[1](u)}o[t]=void 0}};var l=setTimeout((function(){c({type:"timeout",target:s})}),12e4);s.onerror=s.onload=c,document.head.appendChild(s)}return Promise.all(e)},i.m=t,i.c=n,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i.oe=function(t){throw console.error(t),t};var a=window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[],c=a.push.bind(a);a.push=e,a=a.slice();for(var s=0;s<a.length;s++)e(a[s]);var u=c;return i(i.s=649)}([function(t,e,n){"use strict";var r,o,i=n(127),a=n(93),c=n(109),s=n(96),u={Filters:{OPTION_SELECTED:"option:selected",APPLY_FILTER:"apply:filter",FILTER_CHANGED:"filter:changed"},ContentUpdates:{DISABLE_REVIEW:"disable:review"},MigrationWizard:{SORT_VIDEOS:"sort:videos",TOGGLE_MIGRATED:"toggle:migrated",SELECTED_CHANGED:"selected:changed",CLOSE_BANNER:"close:banner"}};!function(t){t.Folder="folder",t.Exchange="exchange",t.HostedLibrary="hosted_library",t.CustomLibrary="custom_library",t.Workspace="workspace"}(r||(r={})),function(t){t.Video="videos",t.Folder="categories",t.Series="series",t.Channel="channels",t.Distributors="companies",t.Producers="people",t.Tags="tags",t.Language="languages",t.TagsRaw="tag",t.ChannelRaw="channel",t.Recent="recent",t.Direct="direct",t.ProductionCompanies="companies",t.Directors="people",t.Season="season"}(o||(o={}));var l,f=n(26),p=n(1),h=n(20),d=n(6),y=n(151),g=n.n(y),b=n(102),m=n.n(b),v=n(314),S=n.n(v),w=n(315),O=n.n(w),E=n(161),C=n.n(E),R=n(162),k=n.n(R),P=n(316),_=n.n(P),x=n(152),T=n.n(x),D=n(317),L=n.n(D),A=n(163),N=n.n(A),I=n(318),j=n.n(I),V=n(319),M=n.n(V),U=n(191),F=n.n(U),H=n(320),z=n.n(H),B=n(321),q=n.n(B),G=n(164),W=n.n(G),Y=n(165),J=n.n(Y),$=n(322),K=n.n($),Q=n(323),Z=n.n(Q),X=n(324),tt=n.n(X),et=n(325),nt=n.n(et),rt=n(326),ot=n.n(rt),it=n(327),at=n.n(it),ct=n(328),st=n.n(ct),ut=n(329),lt=n.n(ut),ft=n(330),pt=n.n(ft),ht=n(331),dt=n.n(ht),yt=n(332),gt=n.n(yt),bt=n(333),mt=n.n(bt),vt=n(334),St=n.n(vt),wt=n(335),Ot=n.n(wt),Et=n(336),Ct=n.n(Et),Rt=n(337),kt=n.n(Rt),Pt=n(338),_t=n.n(Pt),xt=n(339),Tt=n.n(xt),Dt=n(340),Lt=n.n(Dt),At=n(166),Nt=n.n(At),It=n(192),jt=n.n(It),Vt=n(341),Mt=n.n(Vt),Ut=n(342),Ft=n.n(Ut),Ht=n(193),zt=n.n(Ht),Bt=n(194),qt=n.n(Bt),Gt=n(343),Wt=n.n(Gt),Yt=n(344),Jt=n.n(Yt),$t=n(345),Kt=n.n($t),Qt=n(346),Zt=n.n(Qt),Xt=n(347),te=n.n(Xt),ee=n(160),ne=n.n(ee),re=n(195),oe=n.n(re),ie=n(348),ae=n.n(ie),ce=n(349),se=n.n(ce),ue=n(350),le=n.n(ue),fe=n(351),pe=n.n(fe),he=n(352),de=n.n(he),ye=n(353),ge=n.n(ye),be=n(354),me=n.n(be),ve=n(355),Se=n.n(ve),we=n(356),Oe=n.n(we),Ee=n(357),Ce=n.n(Ee),Re=n(358),ke=n.n(Re),Pe=n(359),_e=n.n(Pe);function xe(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Te,De=(xe(l={},d.j.VideoList,{component:h.a.ComponentCollection,options:{childOptions:{template:g.a,className:"border-bottom position-relative px-3",viewOptions:{styles:m.a}}}}),xe(l,d.j.VideoListWithBulkActions,{component:h.a.ComponentCollection,options:{childOptions:{template:g.a,className:"".concat(m.a.contentContainerWithBulkActions," border-bottom position-relative px-3"),viewOptions:{styles:m.a}}}}),xe(l,d.j.VideoGroupList,{component:h.a.ComponentCollection,options:{className:S.a.videoGroupList,childOptions:{template:g.a,className:"".concat(m.a.partialVideoItem," border-bottom position-relative px-3"),viewOptions:{styles:m.a}}}}),xe(l,d.j.SubFolder,{component:h.a.ComponentCollection,options:{collectionLength:1,className:"p-3 border-bottom",childOptions:{template:"<div></div>",className:"".concat(O.a.partialSubFolder," d-inline-block rounded mr-3 partial-loading-background")}}}),xe(l,d.j.NotificationPopover,{component:h.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:C.a,className:"px-1 py-2",viewOptions:{styles:k.a}}}}),xe(l,d.j.StaffRequestList,{component:h.a.ComponentCollection,options:{className:T.a.list,collectionLength:6,childOptions:{template:_.a,className:"p-3 border-bottom ".concat(T.a.item),viewOptions:{styles:T.a}}}}),xe(l,d.j.StaffRequestDetails,{component:h.a.Component,options:{template:L.a,className:"p-3 border-bottom ".concat(N.a.actions),viewOptions:{styles:N.a}}}),xe(l,d.j.DashboardNotifications,{component:h.a.ComponentCollection,options:{collectionLength:7,childOptions:{template:C.a,className:"py-2",viewOptions:{styles:k.a}}}}),xe(l,d.j.DashboardActionTile,{component:h.a.Component,options:{template:j.a,className:"d-flex flex-column align-items-end",viewOptions:{styles:M.a}}}),xe(l,d.j.Banner,{component:h.a.Component,options:{template:"<div></div>",className:"".concat(F.a.banner," partial-loading-background")}}),xe(l,d.j.VideoListHeader,{component:h.a.Component,options:{template:z.a,className:"px-3 py-2 border-bottom clearfix",viewOptions:{styles:q.a}}}),xe(l,d.j.SearchFilter,{component:h.a.ComponentCollection,options:{collectionLength:6,childOptions:{template:W.a,tagName:"li",className:"d-inline-block rounded m-1 partial-loading-background",viewOptions:{styles:J.a}}}}),xe(l,d.j.PastReleasesSearchFilter,{component:h.a.ComponentCollection,options:{collectionLength:3,childOptions:{template:W.a,tagName:"li",className:"d-inline-block rounded m-1 partial-loading-background",viewOptions:{styles:J.a}}}}),xe(l,d.j.AwaitingReviewHeader,{component:h.a.Component,options:{template:ae.a,className:"p-3 border-bottom text-right",viewOptions:{styles:se.a}}}),xe(l,d.j.VideoHeader,{component:h.a.Component,options:{template:tt.a,className:"w-100 p-2",viewOptions:{styles:nt.a}}}),xe(l,d.j.VideoBasicInfo,{component:h.a.Component,options:{template:ot.a,viewOptions:{styles:at.a}}}),xe(l,d.j.VideoSidebarInfo,{component:h.a.Component,options:{template:K.a,className:"pt-3 pb-3 pl-2 pr-3",viewOptions:{styles:Z.a}}}),xe(l,d.j.EditVideoTabs,{component:h.a.Component,options:{template:st.a,className:"w-100",viewOptions:{styles:lt.a}}}),xe(l,d.j.EditVideoDetails,{component:h.a.Component,options:{template:pt.a,className:"w-100",viewOptions:{styles:dt.a}}}),xe(l,d.j.EditVideoChapterList,{component:h.a.Component,options:{template:gt.a,className:"w-100",viewOptions:{styles:mt.a}}}),xe(l,d.j.EditVideoChaptersForm,{component:h.a.Component,options:{template:St.a,className:"w-100 mt-3",viewOptions:{styles:Ot.a}}}),xe(l,d.j.WebPlayer,{component:h.a.Component,options:{template:Ct.a,className:"w-100",viewOptions:{styles:kt.a}}}),xe(l,d.j.EditVideoUploadArea,{component:h.a.Component,options:{template:_t.a,className:"mt-3",viewOptions:{styles:Tt.a}}}),xe(l,d.j.Share,{component:h.a.Component,options:{template:Lt.a,className:Nt.a.container,viewOptions:{styles:Nt.a}}}),xe(l,d.j.PublisherArchiveSearchBar,{component:h.a.Component,options:{template:'<div><h5 class="m-0">Add videos from Publisher Archive</h5></div>',className:"container col-12 m-0 p-3 ".concat(jt.a.containerWithBottomBorder)}}),xe(l,d.j.PublisherArchiveSectionHeader,{component:h.a.Component,options:{template:Wt.a,className:"row no-gutters ".concat(oe.a.currentHeader),viewOptions:{styles:Jt.a}}}),xe(l,d.j.PublisherArchiveLeftNav,{component:h.a.ComponentCollection,options:{collectionLength:10,childOptions:{template:Kt.a,viewOptions:{styles:Zt.a}}}}),xe(l,d.j.PublisherArchiveVideoList,{component:h.a.Component,options:{template:Mt.a,viewOptions:{styles:p.extend({},Ft.a,zt.a,qt.a),videoItems:new Array(19).fill("")}}}),xe(l,d.j.PublisherArchiveStatusBar,{component:h.a.Component,options:{template:te.a,className:"p-2 w-100 ".concat(ne.a.statusBar),viewOptions:{styles:ne.a}}}),xe(l,d.j.LeftNav,{component:h.a.Component,options:{template:le.a,viewOptions:{styles:pe.a}}}),xe(l,d.j.LibraryFolders,{component:h.a.ComponentCollection,options:{collectionLength:7,className:"row mt-4 pt-2",noExtraClass:!0,tagName:"div",childOptions:{template:de.a,className:"col-3 p-2",viewOptions:{styles:ge.a}}}}),xe(l,d.j.VideoItemPreview,{component:h.a.Component,options:{className:"w-100",template:me.a,viewOptions:{styles:Se.a}}}),xe(l,d.j.EditResourcesCVContent,{component:h.a.Component,options:{className:"w-100",template:Oe.a,viewOptions:{styles:Ce.a}}}),xe(l,d.j.TagFilter,{component:h.a.Component,options:{template:ke.a,viewOptions:{styles:_e.a}}}),l),Le=n(33),Ae=n(15),Ne={LIBRARY_EDITOR:"hc/sections/360001974533",VIDEO_ACCESS:"hc/articles/360000153947",ADD_FROM_ONLINE:"hc/articles/360011718234",UPLOAD:"hc/articles/360012069334",PUBLISHER_ARCHIVE:"hc/articles/360011150174",PBT_ERROR_CODES:"hc/articles/360012421153",MANUAL_REVIEW:"hc/en-us/articles/360020004534",LIBRARY_REVIEW:"hc/articles/360000163788",PUBLISHER_SERVER:"hc/en-us/articles/360023108873",MIGRATION_OPTIONS:"hc/en-us/articles/360023109033"};function Ie(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var je,Ve=(Ie(Te={},d.f.Thumbnails,{width:640,height:360}),Ie(Te,d.f.Banners,{width:1200,height:222}),Te),Me=Ie({},d.f.Thumbnails,{width:1280,height:720}),Ue={EmptyStates:{Default:"/images/empty-states/illo-empty@2x.png",LibraryEditor:"/images/empty-states/no-library@2x.png",Library:"/images/empty-states/pointing-boy@2x.png",Folder:"/images/empty-states/illo-emptyfolder@2x.png",Search:"/images/empty-states/illo-no-results@2x.png",VideoAccess:"/images/empty-states/illo-empty3@2x.png",AwaitingReview:"/images/empty-states/illo-empty2@2x.png",PastReleases:"/images/empty-states/illo-empty-past-releases-large@2x.png",StaffRequests:"/images/empty-states/illo-empty@2x.png",StaffRequestsDashboardTile:"/images/empty-states/illo-empty-staffreq@2x.png",ContentUpdatesDashboardTile:"/images/empty-states/illo-empty-past-releases@2x.png"},Shared:{GeneratePdf:"/images/pdf-email-filled@2x.png",GenerateCsv:"/images/csv-email-filled.png"}},Fe=n(3),He=n(30),ze=n.n(He);function Be(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var qe,Ge=(Be(je={},d.c.Default,(function(t){return{imageUrl:Ue.EmptyStates.Default,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(je,d.c.LibraryEditor,(function(t){return{imageUrl:Ue.EmptyStates.LibraryEditor,heading:t.options.componentOptions.heading,description:'<button class="add-library btn btn-secondary position-relative '.concat(ze.a.addLibraryButton,'">\n <span class="d-inline-block position-absolute ').concat(ze.a.addLibraryPlus,'">\n ').concat(t.options.componentOptions.plusSvg,"</span> ").concat(t.options.componentOptions.btnText,"</button>"),appLink:{".add-library":{application:a.a.LIBRARY_EDITOR,action:s.a.LibraryEditor.NEW_LIBRARY}},customClass:"".concat(ze.a.paddedContainer," bg-white"),customImageClass:ze.a.imageLarge}})),Be(je,d.c.Library,(function(t){return{imageUrl:Ue.EmptyStates.Library,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,appLink:{".add-folder":{application:a.a.LIBRARY_EDITOR,action:s.a.Shared.NEW_FOLDER,args:[t.options.componentOptions.libraryId]}},customClass:"".concat(ze.a.paddedContainer," bg-white"),customImageClass:ze.a.imageLarge}})),Be(je,d.c.Folder,(function(t){return{imageUrl:Ue.EmptyStates.Folder,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(je,d.c.Series,(function(t){return{imageUrl:Ue.EmptyStates.Folder,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(je,d.c.Search,(function(t){return{imageUrl:Ue.EmptyStates.Search,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(je,d.c.AwaitingReview,(function(t){return{imageUrl:Ue.EmptyStates.AwaitingReview,heading:t.options.componentOptions.heading,description:t.options.componentOptions.description,appLink:{".disable-review":{application:a.a.CONTENT_UPDATES,action:s.a.ContentUpdates.DISABLE_REVIEW}},customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(je,d.c.PastReleases,(function(t){return{imageUrl:Ue.EmptyStates.PastReleases,heading:t.options.componentOptions.heading,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(je,d.c.StaffRequests,(function(t){return{imageUrl:Ue.EmptyStates.StaffRequests,heading:t.options.componentOptions.emptyState,description:t.options.componentOptions.description,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(je,d.c.VideoAccess,(function(t){return{imageUrl:Ue.EmptyStates.VideoAccess,heading:t.options.componentOptions.heading,customClass:ze.a.paddedContainer,customImageClass:ze.a.imageLarge}})),Be(je,d.c.StaffRequestsDashboardTile,(function(t){return{imageUrl:Ue.EmptyStates.StaffRequestsDashboardTile,customImageClass:"".concat(t.options.componentOptions.imageClass," ").concat(ze.a.imageLarge)}})),Be(je,d.c.ContentUpdatesDashboardTile,(function(t){return{imageUrl:Ue.EmptyStates.ContentUpdatesDashboardTile,customImageClass:"".concat(t.options.componentOptions.imageClass," ").concat(ze.a.imageLarge)}})),Be(je,d.c.ManualReviewVideos,(function(t){var e=Fe.a.getPhrase("shared.emptyState","migrationWarnings");return{imageUrl:Ue.EmptyStates.Default,heading:e,customClass:"p-3",customImageClass:ze.a.imageLarge}})),je);function We(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ye=(We(qe={},d.m.StudentWorkspaceSharing,(function(){return Fe.a.getPhrase("shared.constants","studentWorkspaceSharing")})),We(qe,d.m.StudentToStudentMessaging,(function(){return Fe.a.getPhrase("shared.constants","studentMessaging")})),We(qe,d.m.HideResourcesForStudents,(function(){return Fe.a.getPhrase("shared.constants","hideResources")})),We(qe,d.m.LibraryReview,(function(){return Fe.a.getPhrase("shared.constants","libraryReview")})),We(qe,d.m.SchoolMessaging,(function(){return Fe.a.getPhrase("shared.constants","schoolMessaging")})),We(qe,d.m.StaffRequest,(function(){return Fe.a.getPhrase("shared.constants","staffRequests")})),qe),Je=n(106),$e={NAME:"Webplayer"},Ke=n(64),Qe={UploadingUserContent:"terms-and-conditions/#uploading-user-content"},Ze={VERIFY_EMAIL:"/settings/account",UPLOAD_LOGO:"/settings/school"},Xe=n(14),tn=(n(110),{edge:16});n.d(e,"o",(function(){return i.a})),n.d(e,"e",(function(){return a.b})),n.d(e,"w",(function(){return a.c})),n.d(e,"b",(function(){return a.a})),n.d(e,"A",(function(){return c.a})),n.d(e,"a",(function(){return s.a})),n.d(e,"i",(function(){return u})),n.d(e,"q",(function(){return r})),n.d(e,"v",(function(){return o})),n.d(e,"f",(function(){return f.a})),n.d(e,"u",(function(){return De})),n.d(e,"n",(function(){return Le.a})),n.d(e,"x",(function(){return Ae.b})),n.d(e,"g",(function(){return Ae.a})),n.d(e,"y",(function(){return Ne})),n.d(e,"k",(function(){return Ve})),n.d(e,"m",(function(){return Me})),n.d(e,"l",(function(){return Ue})),n.d(e,"h",(function(){return Ge})),n.d(e,"y",(function(){return Ne})),n.d(e,"j",(function(){return Ye})),n.d(e,"s",(function(){return Je.a})),n.d(e,"z",(function(){return $e})),n.d(e,"c",(function(){return Ke.a})),n.d(e,"r",(function(){return Qe})),n.d(e,"c",(function(){return Ke.a})),n.d(e,"t",(function(){return Ze})),n.d(e,"d",(function(){return Xe.a})),n.d(e,"p",(function(){return tn}))},function(e,n){e.exports=t},function(t,e,n){"use strict";var r={};n.r(r),n.d(r,"AppLinkHelper",(function(){return y})),n.d(r,"AppLinkUtility",(function(){return h})),n.d(r,"Application",(function(){return v})),n.d(r,"AppRouter",(function(){return E})),n.d(r,"Behavior",(function(){return C})),n.d(r,"Collection",(function(){return R.a})),n.d(r,"CollectionView",(function(){return k})),n.d(r,"ComponentCollection",(function(){return k})),n.d(r,"Error",(function(){return m.a})),n.d(r,"ErrorHelper",(function(){return m.c})),n.d(r,"SilentError",(function(){return m.d})),n.d(r,"LayoutView",(function(){return L})),n.d(r,"NestedModel",(function(){return A.a})),n.d(r,"Service",(function(){return N.a})),n.d(r,"Model",(function(){return I.a})),n.d(r,"View",(function(){return T})),n.d(r,"Component",(function(){return D})),n.d(r,"EventNames",(function(){return a.a})),n.d(r,"LayoutService",(function(){return j})),n.d(r,"Middleware",(function(){return S})),n.d(r,"LocationUtils",(function(){return s})),n.d(r,"Shell",(function(){return M}));var o=n(1),i=n(7),a=n(27),c=n(10);const s={GetQuery:()=>s.DeserializeQueryParams(window.location.search.substring(1)),UpdateQuery(t){if(!t)return;const e=s.GetQuery();let n=s.SerializeQueryParams(o.extend(e,t));n&&(n="?"+n),s.UpdateUrl(`${s.GetCurrentPath()}${n}`,null,{replace:!0,trigger:!1})},UpdateUrl(t,e,n){const r=y.buildRoute(t,e);i.history.navigate(r,n),i.Radio.channel(c.a.SHELL).trigger(a.a.URL_CHANGE,e,n)},SerializeQueryParams:t=>t?"string"==typeof t?t:$.param(t,!0):"",DeserializeQueryParams:t=>t?o.reduce(t.split("&"),(t,e)=>{const n=e.split("="),r=n[0],o=n.length>0?decodeURIComponent(n[1]):"";return t[r]?t[r]instanceof Array?(t[r].push(o),t):(t[r]=[t[r],o],t):(t[r]=o,t)},{}):{},StartHistory(){i.History.started&&i.history.stop(),i.history.start({pushState:!0})},PageLoad(t,e=!1){e?window.open(t,"_blank"):window.location.href=t},Redirect(t,e=!0){const n=()=>e?window.location.replace(t):window.location.href=t;h.hasActiveRoute()?i.Radio.channel(c.a.SHELL).once("routing:end",n):n()},Reload(t=!0){window.location.reload(t)},GetCurrentPath:()=>window.location.pathname,GetCurrentQueryString:()=>window.location.search,GetCurrentUrl:()=>window.location.href,GetCurrentReferrer:()=>document.referrer,SetPageTitle(t){document.title=t}},u=/((\(\?)?:\w+)|(\*\w+)/,l=/[\(\)]/g,f=/\(\/\)/g,p=/\/$/,h={routingStarted(){i.Radio.channel(c.a.SHELL).trigger(a.a.ROUTING_START)},routingEnded(){if(!h.hasActiveRoute())return;i.Radio.channel(c.a.SHELL).trigger(a.a.ROUTING_END)},hasActiveRoute:()=>i.Radio.channel(c.a.SHELL).request(a.a.HAS_ACTIVE_ROUTE)},d=(t,e={})=>{e.usedHelper=!0;const{application:n,action:r}=t;i.Radio.channel(n).trigger(r,t,e)},y={getHref(t){if(!t)return"";const{application:e,action:n,args:r,params:o}=t;return"/"+i.Radio.channel(c.a.SHELL).request(a.a.ROUTE_LOOKUP,`${e}:${n}`,r,o)},buildRoute(t,e){if(!e)return t;let n=e.args,r=e.params;if(o.each(n,e=>{t=t.replace(u,e||"")}),t=(t=(t=t.replace(f,"")).replace(l,"")).replace(p,""),!r)return t;const i=s.SerializeQueryParams(r);return i.length?`${t}?${i}`:t},trigger(t,e){if(!t)return;if(!h.hasActiveRoute())return void d(t,e);i.Radio.channel(c.a.SHELL).once("routing:end",()=>{d(t,e)})},getCurrentAppLink:()=>i.Radio.channel(c.a.SHELL).request(a.a.CURRENT_ROUTE)};var g=n(36),b=n(41),m=n(9);class v extends g.Application{constructor(t){super(t),this.mergeOptions(t,[...this.defaultProps,...this.props||[]]),o.result(this,"name")||m.c.throw(new m.b("BaseApplication must define a name")),o.result(this,"channelName")||m.c.throw(new m.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(t){const e=this.shell.getGlobalRadioChannels()[t.toUpperCase()];return e||m.c.throw(new m.b(`Global channel ${e} does not exist`)),i.Radio.channel(e)}onLoadLayout(){if(this.layoutOptions&&this.layoutOptions.name){var t=o.extend({},this.layoutOptions.options||{},{store:this.shell.store});this.layout=this.layoutService.getLayout(o.extend(this.layoutOptions,{options:t})),this.layout||m.c.throw(new m.b(`Layout: ${this.layoutOptions.name} does not exist or was not registered`)),this.shell.showView(this.layout),this.triggerMethod("layout:loaded")}}onShowPopup(t){this.layout.getRegion("popup")||m.c.throw(new m.b("Your application layout must define a popup region")),this.layout.showChildView("popup",t)}onShowAlert(t){const{ctor:e,collection:n}=t,r=this.layout.getRegion("alert");r||m.c.throw(new m.b("Your application layout must define an alert region")),r.hasView()||this.layout.showChildView("alert",new e({collection:n}))}setDefaultQueryParams(t){this.defaultQueryParams&&(t=o.extend(this.defaultQueryParams,t)),this.defaultQueryParams=t}getAndClearDefaultQueryParams(){const t=this.defaultQueryParams;return delete this.defaultQueryParams,t||{}}listenTo(...t){return b.a.call(this,t[0],t[1],t[2],super.listenTo)}}class S{use(t){var e;this.go=(e=this.go,(n,r)=>e(n,()=>t(n,r)))}go(t,e){e(t)}}const w=/([A-Z])/g,O=/(^|:)(\w)/gi;class E extends g.AppRouter{constructor(t){super(t),this.bindDisposal(),this.processAppEvents()}bindDisposal(){this.listenTo(c.a.SHELL,a.a.ROUTE,t=>{t.application!==this.channelName&&this.destroyApp()})}processAppEvents(){this.appRoutes&&o.keys(this.appRoutes).length||m.c.throw(new m.b("Implementations of Core.AppRouter must define at least 1 appRoute")),o.each(o.keys(this.appRoutes),t=>{const e=this.appRoutes[t],n=this.toEventName(e);this.options.shell.addRouteLookup(`${this.channelName}:${n}`,(e,r)=>y.buildRoute(t,{application:this.channelName,action:n,args:e,params:r})),this.listenTo(this.channelName,n,(e,n)=>{n&&n.usedHelper||m.c.throw(new m.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),this.executeRoute(e,{isAppRoute:!0},()=>{const r=o.extend({},this.controller.getAndClearDefaultQueryParams(),e.params);e.params=r,s.UpdateUrl(t,e,n)})})}),this.appLinks&&o.each(this.appLinks,t=>{const e=this.toEventName(t);this.listenTo(this.channelName,e,(t,e)=>{e&&e.usedHelper||m.c.throw(new m.b("Please use Core.AppLinkHelper.trigger({}) to trigger appLinks.")),this.executeRoute(t,{isAppRoute:!1})})})}executeRoute(t,e,n){this.validateAppLink(t);const r=this.toMethodName(t.action);h.routingStarted();const s=i.Radio.channel(c.a.SHELL);if(this.options.shell.isNavLocked())return s.trigger(a.a.NAV_IS_LOCKED,t),void h.routingEnded();const u=new S;o.each(this.filters,t=>u.use(t)),u.go(t,()=>{s.trigger(a.a.ROUTE,t,e),this.createApp();const i=this.controller;if(o.isFunction(i[r])||(h.routingEnded(),m.c.throw(new m.b(`${r} does not exist on the ${o.result(i,"name")}.`))),!1===i.triggerMethod("before:action"))return i.triggerMethod("action:cancelled"),void h.routingEnded();i.triggerMethod("load:layout"),i[r].apply(i,[...t.args||[],t.params||{}]),o.isFunction(n)&&n(),h.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(t,e,n){this.route(e,n,(...t)=>{const e={application:this.channelName,action:this.toEventName(n),args:t.slice(0,t.length-1),params:s.DeserializeQueryParams(t[t.length-1])};this.executeRoute(e,{isAppRoute:!0},()=>{s.UpdateQuery(o.extend(this.controller.getAndClearDefaultQueryParams(),e.params))})})}toEventName(t){return t.replace(w,":$1").toLowerCase()}toMethodName(t){const e=t.replace(O,(t,e,n)=>n.toUpperCase());return e[0].toLowerCase()+e.slice(1,e.length)}validateAppLink(t){t.application&&t.action||(h.routingEnded(),m.c.throw(new m.b("Invalid AppLink")))}listenTo(...t){return b.a.call(this,t[0],t[1],t[2],super.listenTo)}}class C extends g.Behavior{listenTo(...t){return b.a.call(this,t[0],t[1],t[2],super.listenTo)}}var R=n(92);class k extends g.CollectionView{constructor(t){super(t),o.result(this,"name")||m.c.throw(new m.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(...t){return b.a.call(this,t[0],t[1],t[2],super.listenTo)}}var P=n(16),_=n(45);class x extends g.View{constructor(t){super(t);const e=[...this.defaultProps,...this.props||[]];this.mergeOptions(t,e),o.result(this,"name")||m.c.throw(new m.b(`Error: View with cid:${this.cid} requires a name.`))}get defaultProps(){return["shell","layoutService"]}_setOptions(t){this.options=o.extend({},o.result(this,"defaults"),t)}_setAttributes(t){_.a.isDevelopment&&o.extend(t,{"cv-classname":this.name}),this.$el.attr(t)}get ui(){return this.uiStorage||(this.uiStorage=this.elements),this.uiStorage}set ui(t){this.uiStorage=t}get elements(){return null}static AddViewDataExtension(t){x.ViewDataExtensions.push(t)}serializeModel(){return this.model?this.model.toJSON():{}}serializeCollection(){return this.collection?this.collection.toJSON():[]}resetClassName(){this.$el.attr("class",o.result(this,"className"))}serializeData(){const t=super.serializeData(),e=o.result(this,"viewOptions"),n=o.extend({},t,{options:e});return x.ViewDataExtensions.length?o.extend(n,...o.map(x.ViewDataExtensions,t=>t instanceof Function?t(this):t)):n}viewOptions(){return this.options}undelegateAppLinks(){this.$el&&this.$el.off(".appLinks"+this.cid)}renderAppLinks(){let t=this.appLinks;t&&(t=this.normalizeUIKeys(t),this.undelegateAppLinks(),o.each(o.keys(t),e=>{let n=e;const r=t[e],o=y.getHref(r);"[this]"===n&&(n=null);const i=n?this.$el.find(e):this.$el;(i.is("a")||i.is("button"))&&(o&&"/"!==o&&i.attr("href",o),this.delegate("click.appLinks"+this.cid,n,(function(t){t.preventDefault(),y.trigger(r)})))}))}hasPartialLoadingRegions(){const t=this;return void 0!==t._hasPartialLoadingRegions||(t._hasPartialLoadingRegions=o.some(t.regions,t=>o.has(t,"partialLoading"))),t._hasPartialLoadingRegions}renderPartialLoading(t){i.Radio.channel(c.a.SHELL).trigger("render:partial:loading",this,t)}listenTo(...t){return b.a.call(this,t[0],t[1],t[2],super.listenTo)}render(){const t=this;if(t._isDestroyed)return this;let e=this.processRequriedResources(!0);return e&&(e=t.triggerMethod("before:render",this)),!1!==e&&(e=!0),e=e&&this.processRequriedResources(!1),!1===e?(t._partialLoadingRendered||!t.hasPartialLoadingRegions()||(t._partialLoadingRendered=!0,t._reInitRegions(),t._renderTemplate(),t.renderPartialLoading()),this):((t._isRendered||t._partialLoadingRendered)&&t._reInitRegions(),this.setTitle(),t._renderTemplate(),t.bindUIElements(),this.renderAppLinks(),t._partialLoadingRendered=!1,t._isRendered=!0,t.triggerMethod("render",this),this)}processRequriedResources(t){return!0}setTitle(){}}x.ViewDataExtensions=[];class T extends x{constructor(t){super(t),this.boundListeners={},this.resourceInstances={}}processRequriedResources(t){const e=o.keys(this.requiredResources);if(!e.length)return!0;const n=this;let r=!0;return o.each(e,e=>{const o=this.requiredResources[e];if(o.beforeOnBeforeRender!==t)return;const i=o.dataServiceName;this.resourceInstances[i]||(this.resourceInstances[i]=o.getInstance(this)),this.boundListeners[`${i}:${o.eventName}`]||(this.listenTo(this.resourceInstances[i].channelName,o.eventName,this.render),this.boundListeners[`${i}:${o.eventName}`]=!0),n[e]=o.getData(this.resourceInstances[i]),r=r&&!!n[e]}),r}setTitle(){o.isString(this.title)||!1===this.title||m.c.throw(new P.a(`Must define a title for ${this.name}.`));i.Radio.channel(c.a.SHELL).trigger("set:page:title",this.title)}}class D extends x{}class L extends T{constructor(t){super(t)}static getCacheKey(t){m.c.throw(new P.a(`Must define getCacheKey for ${this.name}.`))}unmountRegion(t){this.trigger("unmount:"+t)}}var A=n(108),N=n(44),I=n(53);class j extends g.Object{constructor(t){super(t),this.layouts={},this.requiredRegions=t.requiredRegions}clearLayout(){this.currentLayout&&(this.currentLayout.destroy(),delete this.currentLayout,delete this.currentLayoutCacheKey)}registerLayout(t,e){return this.checkRequiredRegions(e),this.layouts[t]=e,this}getLayout(t){const{name:e,options:n={}}=t;this.layouts[e]||m.c.throw(new m.b(e+" was not registered as a template."));const r=this.layouts[e].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[e](n),this.listenToOnce(this.currentLayout,"destroy",this.clearLayout),this.currentLayout)}checkRequiredRegions(t){o.each(this.requiredRegions,e=>{o.has(o.result(t.prototype,"regions"),e)||m.c.throw(new m.b(`Layout: ${t.prototype.name} must define an ${e} region.`))})}listenTo(...t){return b.a.call(this,t[0],t[1],t[2],super.listenTo)}}class V{constructor(t,e){this.application=t,this.options=e||{}}get Application(){return this.application}get Options(){return this.options}}class M extends g.Application{initialize(t){this.mergeOptions(t,["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(c.a.SHELL,a.a.LOCK_NAV,()=>this.shellState.navLock=!0),this.listenTo(c.a.SHELL,a.a.UNLOCK_NAV,()=>this.shellState.navLock=!1)}bindAppLinkListeners(){this.listenTo(c.a.SHELL,a.a.ROUTING_START,()=>this.shellState.activeRoute=!0),this.listenTo(c.a.SHELL,a.a.ROUTING_END,()=>this.shellState.activeRoute=!1),this.listenTo(c.a.SHELL,a.a.ROUTE,t=>this.shellState.currentAppLink=t);const t=i.Radio.channel(c.a.SHELL);t.reply(a.a.HAS_ACTIVE_ROUTE,o.bind(this.hasActiveRoute,this)),t.reply(a.a.CURRENT_ROUTE,()=>this.shellState.currentAppLink)}bindErrorHandlers(){window.addEventListener("error",()=>{h.routingEnded()})}bindErrorListener(){const t=i.Radio.channel(c.a.SHELL);this.listenTo(t,a.a.ERROR,this.handleError)}bindRouteLookup(){i.Radio.channel(c.a.SHELL).reply(a.a.ROUTE_LOOKUP,(t,e,n)=>this.routeLookup[t]?this.routeLookup[t](e,n):"",this)}addRouteLookup(t,e){this.routeLookup[t]=e}registerApplication(t,e){return this.applications.push(new V(t,e)),this}getGlobalRadioChannels(){return c.a}isNavLocked(){return this.shellState.navLock}start(t){t||(t={}),this.runInitializationSteps(this,(e,n)=>{this.runStartUpSteps(this,t,(e,n,r)=>{super.start(t)})})}hasActiveRoute(){return this.shellState.activeRoute}onStart(){o.each(this.applications,t=>{const e={appConstructor:t.Application,shell:this,appOptions:Object.assign({region:"",shell:this,layoutService:this.layoutService},t.Options)};new t.Application.router(e)}),this.bindListeners(),s.StartHistory()}addInitializationStep(t){var e;return this.runInitializationSteps=(e=this.runInitializationSteps,(n,r)=>e(n,()=>t(n,r))),this}runInitializationSteps(t,e){e(t)}addStartUpStep(t){var e;return this.runStartUpSteps=(e=this.runStartUpSteps,(n,r,o)=>e(n,r,()=>t(n,r,o))),this}runStartUpSteps(t,e,n){n(t,e)}registerLayout(t,e){return this.layoutService.registerLayout(t,e),this}registerErrorHandler(t,e){return t||m.c.throw(new m.b("An error must have a name in order to register a handler for it.")),o.any(this.errorHandlers,e=>e.errorType===t)&&m.c.throw(new m.b(`An error handler for ${t.prototype.name} has already been defined.`)),this.errorHandlers.push({errorType:t,handler:e}),this}handleError(t){const e=o.find(this.errorHandlers,e=>t instanceof e.errorType);e&&e.handler&&e.handler(t)}registerStore(t){this.store=t}listenTo(...t){return b.a.call(this,t[0],t[1],t[2],super.listenTo)}}n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(360),o=n(1),i=n(361),a=n(44),c=n(9),s=n(69),u=n(16),l=n(45);class f extends a.a{static get Instance(){return this.instance||(this.instance=new this)}get name(){return s.a.LANGUAGE}setConfig(t){this.polyglot=new r({locale:t.locale,phrases:t.phrases.rootElement||t.phrases}),this.cache={}}getPhrase(t,e,n){const r=`${t}.${e}`;if(this.polyglot||c.c.throw(new u.a("LanguageService config must be set.")),!this.polyglot.has(r)){if(!l.a.isDevelopment){const t=window.trackJs;return t&&t.console.error(`No phrase set for ${r} in language config`),""}c.c.throw(new u.a(`No phrase set for ${r} in language config.`))}if(!n||o.isEmpty(n)){const t=this.cache[r];if(t)return t;const e=this.polyglot.t(r);return this.cache[r]=e,e}const a=o.omit(n,"smartCount");let s={};for(let t in a)s[t]=i.sanitize(a[t]);o.isNumber(n.smartCount)&&(s.smart_count=n.smartCount);const f=`${r}:${o.values(Object.assign({},s)).join(":")}`,p=this.cache[f];if(p)return p;const h=this.polyglot.t(r,s);return this.cache[f]=h,h}encloseNamespace(t){return(e,n)=>this.getPhrase(t,e,n)}}const p=f.Instance},function(t,e,n){"use strict";var r,o,i,a,c,s,u,l,f,p,h,d,y,g,b,m,v,S,w;!function(t){t.Stream="cv_product_stream",t.WebPlayerStream="cv_product_webplayer_stream",t.Login="cv_product_login",t.LoginSsoRedirect="cv_product_login_sso_redirect",t.LoginFailed="cv_product_login_failed",t.Search="cv_product_search",t.InstantSearch="cv_product_search",t.SearchEmptyResult="cv_product_search_empty_result",t.Filter="cv_product_search_filter",t.SearchLanding="cv_product_search_landing",t.Share="cv_product_share",t.WorkspaceAdd="cv_product_tv_add",t.Rename="cv_product_rename",t.Move="cv_product_move",t.Sort="cv_product_sort",t.Create="cv_product_create",t.Delete="cv_product_delete",t.Associate="cv_product_associate",t.Dissociate="cv_product_dissociate",t.Edit="cv_product_edit",t.Approve="cv_product_approve",t.Reject="cv_product_reject",t.Disable="cv_product_disable",t.Upload="cv_product_upload",t.Download="cv_product_download",t.Navigate="cv_product_navigate",t.Click="cv_product_click",t.Suggest="cv_product_suggest",t.EditAssoc="cv_product_edit_assoc",t.Play="cv_product_play",t.SetAccess="cv_product_set_access",t.AddToLocalCache="cv_product_add_to_lc",t.ResolveWarning="cv_product_resolve_warning",t.DismissWarning="cv_product_dismiss_warning"}(r||(r={})),function(t){t.Folder="folder",t.Video="video",t.Rating="rating",t.Series="series",t.Library="library",t.Resource="resource",t.Tag="tag",t.Subtitle="subtitle",t.Chapter="chapter",t.Restriction="restriction",t.Interactive="interactive",t.PDF="pdf",t.CustomerSetting="customer_setting",t.StaffRequest="staff_request",t.Logo="logo",t.Pagination="pagination",t.Thumbnail="thumbnail",t.Banner="banner",t.Link="link",t.Playlist="playlist",t.Person="person",t.Company="company"}(o||(o={})),function(t){t.TopNav="top_nav",t.LeftNav="left_nav",t.Popup="popup",t.Banner="banner",t.VideoList="video_list",t.VideoListItem="video_list_item",t.VideoListHeader="video_header",t.VideoItemPreview="video_item_preview",t.VideoDetails="video_details",t.VideoDetailsHeader="video_details_header",t.EditVideoDetails="edit_video_details",t.EditVideoChapters="edit_video_chapters",t.EditVideoResources="edit_video_resources",t.VideoUpload="video_upload",t.VideoRequest="video_request",t.Pagination="pagination",t.SearchBar="search_bar",t.InstantSearch="instant_search",t.SearchFilters="search_filters",t.LibraryHeader="library_header",t.LibraryTiles="library_tiles",t.StaffRequestDetails="staff_request_details",t.SubFolderList="sub_folder_list",t.AwaitingReviewVideoListHeader="awaiting_review_video_list_header",t.AwaitingReviewVideoItem="awaiting_review_video_item",t.PastReleasesHeader="past_releases_header",t.MigrationWarnings="migration_warnings",t.PlaylistListHeader="playlist_list_header",t.PlaylistListItem="playlist_list_item"}(i||(i={})),function(t){t.Start="start",t.Complete="complete",t.Save="save",t.Discard="discard"}(a||(a={})),function(t){t.PageLoad="page_load"}(c||(c={})),function(t){t.Single="single",t.Bulk="bulk",t.All="all"}(s||(s={})),function(t){t.ProductionYear="production_year",t.Alphabetical="alphabetical"}(u||(u={})),function(t){t.Content="content",t.Quality="quality",t.Duration="duration",t.Reset="reset"}(l||(l={})),function(t){t.Submit="submit",t.ShowAll="show_all",t.Recent="recent",t.SearchIcon="search_icon"}(f||(f={})),function(t){t.Start="start",t.Finish="finish",t.Terminate="terminate",t.Play="play",t.Pause="pause",t.Playback="playback",t.NextChapter="next_chapter",t.PreviousChapter="previous_chapter",t.FullScreenEnter="full_screen_enter",t.FullScreenExit="full_screen_exit"}(p||(p={})),function(t){t.TogglePreview="toggle_preview",t.NavigateHome="navigate_home",t.OpenInStaffView="open_in_staff_view",t.Thumbnail="thumbnail",t.Title="title"}(h||(h={})),function(t){t.LibraryReview="library_review"}(d||(d={})),function(t){t.FileSelect="file_select",t.DragDrop="drag_drop"}(y||(y={})),function(t){t.Edit="edit"}(g||(g={})),function(t){t.Image="image"}(b||(b={})),function(t){t.EntityRemoved="cv_entity_removed",t.ValueUpdated="cv_value_updated"}(m||(m={})),function(t){t.FileSelect="file_select",t.DragDrop="drag_drop"}(v||(v={})),function(t){t.Video="videos",t.Folder="categories",t.Series="series",t.Tags="tags"}(S||(S={})),function(t){t[t.V1=1]="V1"}(w||(w={})),n.d(e,"q",(function(){return r})),n.d(e,"e",(function(){return o})),n.d(e,"k",(function(){return i})),n.d(e,"r",(function(){return a})),n.d(e,"m",(function(){return c})),n.d(e,"l",(function(){return s})),n.d(e,"h",(function(){return l})),n.d(e,"d",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"b",(function(){return h})),n.d(e,"c",(function(){return d})),n.d(e,"j",(function(){return y})),n.d(e,"p",(function(){return g})),n.d(e,"a",(function(){return b})),n.d(e,"f",(function(){return m})),n.d(e,"i",(function(){return v})),n.d(e,"o",(function(){return S})),n.d(e,"g",(function(){return w}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(1),o=n(16),i=n(44),a=n(9);class c extends i.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(t,e){this.validateConstructor(t);const n=t.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new t({dataProvider:this.getInstance(e.dataProvider),cache:this.getInstance(e.cache),bootstrapData:e.bootstrapData,defaultErrorHandler:e.defaultErrorHandler,alertService:e.alertService}),this.destructors[n]=()=>{this.instances[n]?this.instances[n].destroy():a.c.throw(new o.a(`Trying to destroy a ${n} instance that has already been destroyed`)),this.releaseInstance(e.dataProvider),this.releaseInstance(e.cache)},this}registerInstance(t,e){this.validateConstructor(t);const n=t.prototype.name;return this.referenceCounts[n]=0,this.constructors[n]=()=>new t(e),this.destructors[n]=()=>r.isFunction(this.instances[n].destroy)&&this.instances[n].destroy(),this}registerSingleton(t){const e=t.name;return this.singletonInstances[e]=t,this}getInstance(t,e){return this.singletonInstances[t]?this.singletonInstances[t]:(this.constructors[t]||a.c.throw(new o.a(`${t} was not registered with ${this.name}`)),this.referenceCounts[t]++,e&&this.listenTo(e,"destroy",()=>this.releaseInstance(t)),this.instances[t]||(this.instances[t]=this.constructors[t]()),this.instances[t])}releaseInstance(t){if(this.instances[t])return window.setTimeout(()=>{this.referenceCounts[t]--,this.referenceCounts[t]<1&&(this.destructors[t](),delete this.instances[t])},0),this}validateConstructor(t){const e=t.prototype.name;e||a.c.throw(new o.a(`Classes registered with ${this.name} must have a unique name property.`)),this.constructors[e]&&a.c.throw(new o.a(`A class with the name: ${e} has already been registered with ${this.name}`))}}const s=c.Instance},function(t,e,n){"use strict";var r,o,i,a,c;function s(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t[t.MostRecent=0]="MostRecent",t[t.LeastRecent=1]="LeastRecent",t[t.AtoZ=2]="AtoZ",t[t.ZtoA=3]="ZtoA",t[t.OrderIndex=4]="OrderIndex",t[t.ProductionYear=5]="ProductionYear",t[t.Newest=6]="Newest",t[t.SeriesSort=7]="SeriesSort"}(r||(r={})),function(t){t[t.Banner=0]="Banner",t[t.VideoListHeader=1]="VideoListHeader",t[t.VideoList=2]="VideoList",t[t.VideoListWithBulkActions=3]="VideoListWithBulkActions",t[t.VideoGroupList=4]="VideoGroupList",t[t.SubFolder=5]="SubFolder",t[t.NotificationPopover=6]="NotificationPopover",t[t.StaffRequestList=7]="StaffRequestList",t[t.StaffRequestDetails=8]="StaffRequestDetails",t[t.DashboardNotifications=9]="DashboardNotifications",t[t.DashboardActionTile=10]="DashboardActionTile",t[t.SearchBar=11]="SearchBar",t[t.SearchFilter=12]="SearchFilter",t[t.PastReleasesSearchFilter=13]="PastReleasesSearchFilter",t[t.AwaitingReviewHeader=14]="AwaitingReviewHeader",t[t.VideoSidebarInfo=15]="VideoSidebarInfo",t[t.VideoBasicInfo=16]="VideoBasicInfo",t[t.VideoHeader=17]="VideoHeader",t[t.EditVideoTabs=18]="EditVideoTabs",t[t.EditVideoDetails=19]="EditVideoDetails",t[t.EditVideoChapterList=20]="EditVideoChapterList",t[t.EditVideoChaptersForm=21]="EditVideoChaptersForm",t[t.EditVideoUploadArea=22]="EditVideoUploadArea",t[t.WebPlayer=23]="WebPlayer",t[t.Share=24]="Share",t[t.PublisherArchiveSearchBar=25]="PublisherArchiveSearchBar",t[t.PublisherArchiveSectionHeader=26]="PublisherArchiveSectionHeader",t[t.PublisherArchiveLeftNav=27]="PublisherArchiveLeftNav",t[t.PublisherArchiveVideoList=28]="PublisherArchiveVideoList",t[t.PublisherArchiveStatusBar=29]="PublisherArchiveStatusBar",t[t.LeftNav=30]="LeftNav",t[t.LibraryFolders=31]="LibraryFolders",t[t.EditResourcesCVContent=32]="EditResourcesCVContent",t[t.TagFilter=33]="TagFilter",t[t.VideoItemPreview=34]="VideoItemPreview",t[t.Unselected=35]="Unselected"}(o||(o={})),function(t){t.AU="AU",t.UK="UK",t.NZ="NZ"}(i||(i={})),function(t){t[t.Unclassified=0]="Unclassified",t[t.Primary=1]="Primary",t[t.Secondary=2]="Secondary",t[t.K12=3]="K12",t[t.Tertiary=4]="Tertiary",t[t.NonEducational=5]="NonEducational",t[t.Partners=6]="Partners",t[t.Internal=7]="Internal",t[t.Other=8]="Other",t[t.HostedLibrary=9]="HostedLibrary"}(c||(c={}));var u,l,f,p,h,d;s(a={},c.Unclassified,{hasYearGroups:!0}),s(a,c.Primary,{hasYearGroups:!0}),s(a,c.Secondary,{hasYearGroups:!0}),s(a,c.K12,{hasYearGroups:!0}),s(a,c.Tertiary,{hasYearGroups:!1}),s(a,c.NonEducational,{hasYearGroups:!1}),s(a,c.Partners,{hasYearGroups:!0}),s(a,c.Internal,{hasYearGroups:!0}),s(a,c.Other,{hasYearGroups:!0}),s(a,c.HostedLibrary,{hasYearGroups:!0});!function(t){t[t.All=0]="All",t[t.Kindergarten=1]="Kindergarten",t[t.Year1=2]="Year1",t[t.Year2=3]="Year2",t[t.Year3=4]="Year3",t[t.Year4=5]="Year4",t[t.Year5=6]="Year5",t[t.Year6=7]="Year6",t[t.Year7=8]="Year7",t[t.Year8=9]="Year8",t[t.Year9=10]="Year9",t[t.Year10=11]="Year10",t[t.Year11=12]="Year11",t[t.Year12=13]="Year12",t[t.Year13=14]="Year13",t[t.Students=15]="Students",t[t.Staff=16]="Staff"}(u||(u={})),function(t){t[t.Permanent=0]="Permanent",t[t.Temporary=1]="Temporary"}(l||(l={})),function(t){t.StudentWorkspaceSharing="student_ws_sharing",t.StudentToStudentMessaging="student_to_student_messaging",t.HideResourcesForStudents="hide_resources_for_students",t.LibraryReview="library_review",t.SchoolMessaging="school_messaging",t.LegacyTvNaming="legacy_tv_naming",t.LegacyAlbertCustomer="legacy_albert_customer",t.HideHostedLibraries="hide_hosted_libraries",t.StaffRequest="staff_request",t.MaxCustomLibraries="max_custom_libraries",t.CustomLibrariesBetaAccess="custom_libraries_beta_access"}(f||(f={})),function(t){t[t.Private=1]="Private",t[t.SchoolOnly=2]="SchoolOnly",t[t.Public=3]="Public"}(p||(p={})),function(t){t[t.Default=0]="Default",t[t.LibraryEditor=1]="LibraryEditor",t[t.Library=2]="Library",t[t.Folder=3]="Folder",t[t.Series=4]="Series",t[t.Search=5]="Search",t[t.Notifications=6]="Notifications",t[t.VideoAccess=7]="VideoAccess",t[t.AwaitingReview=8]="AwaitingReview",t[t.PastReleases=9]="PastReleases",t[t.StaffRequests=10]="StaffRequests",t[t.StaffRequestsDashboardTile=11]="StaffRequestsDashboardTile",t[t.ContentUpdatesDashboardTile=12]="ContentUpdatesDashboardTile",t[t.ManualReviewVideos=13]="ManualReviewVideos"}(h||(h={})),function(t){t[t.Video=11]="Video",t[t.CustomMediaObjectCollection=19]="CustomMediaObjectCollection"}(d||(d={}));var y,g,b,m=n(46);!function(t){t[t.AdminOnly=0]="AdminOnly",t[t.StaffRequest=1]="StaffRequest",t[t.Teachers=2]="Teachers"}(y||(y={})),function(t){t[t.Thumbnails=0]="Thumbnails",t[t.Banners=1]="Banners",t[t.Avatars=2]="Avatars"}(g||(g={})),function(t){t[t.None=0]="None",t[t.ImageAPIv1=1]="ImageAPIv1",t[t.FileAPIv1=2]="FileAPIv1"}(b||(b={}));var v,S,w,O,E=n(47);!function(t){t.FULL_YEAR="D MMMM YYYY",t.YEAR="YYYY"}(v||(v={})),function(t){t.FileSelect="file-select",t.DragDrop="drag-drop"}(S||(S={})),function(t){t[t.TermUpdate=1]="TermUpdate",t[t.RestrictedByAdmin=2]="RestrictedByAdmin"}(w||(w={})),function(t){t.Producer="producers",t.Director="directors",t.ProductionCompany="productionCompanies",t.Distributor="distributors"}(O||(O={})),n.d(e,"d",(function(){return r})),n.d(e,"j",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"r",(function(){return u})),n.d(e,"l",(function(){return l})),n.d(e,"m",(function(){return f})),n.d(e,"n",(function(){return p})),n.d(e,"c",(function(){return h})),n.d(e,"i",(function(){return d})),n.d(e,"h",(function(){return m.a})),n.d(e,"o",(function(){return y})),n.d(e,"f",(function(){return g})),n.d(e,"e",(function(){return b})),n.d(e,"q",(function(){return E.a})),n.d(e,"p",(function(){return v})),n.d(e,"g",(function(){return S})),n.d(e,"k",(function(){return w})),n.d(e,"a",(function(){return O}))},function(t,n){t.exports=e},function(t,e){t.exports=n},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return l}));var r=n(7),o=n(10),i=n(45),a=n(27);class c extends Error{constructor(t){super(t)}}class s extends c{get name(){return"SilentError"}}class u extends Error{get name(){return"CoreError"}}const l={throw(t){if(r.Radio.channel(o.a.SHELL).trigger(a.a.ERROR,t),!(t instanceof s||i.a.isDevelopment))throw t}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={SHELL:"global:shell",ALERT:"global:alert",POPUP:"global:popup"}},function(t,e,n){"use strict";var r=n(137),o=n(24),i=n(1),a={GetViewModel:function(t,e){var n=o.a.get("current:bulkactions");return n.get(e)!==t&&o.a.clear(t),n.set(e,t),o.a.get(t)},GetSelectedIds:function(t){return i.map(a.GetSelectedModels(t),(function(t){return t.get("id")}))},GetSelectedModels:function(t){var e=a.GetViewModel(t.key,t.type).toJSON(),n={};if(i.isFunction(t.excludePredicate)&&(n=i.groupBy(t.collection.filter(t.excludePredicate),(function(t){return t.id}))),e.all){var r=t.collection.filter((function(t){return!1!==e[t.id]}));return i.filter(r,(function(t){return!n[t.id]}))}var o=t.collection.filter((function(t){return!0===e[t.id]}));return i.filter(o,(function(t){return!n[t.id]}))}},c=n(2),s=n(3),u=n(28),l=n(6),f="shared.utils",p={GetCurrentSortType:function(){var t=p.GetSortViewModel();return p.GetSortTypeFromName(t.get("sortName"))},GetSortViewModel:function(){return o.a.get("video:sorting",p.GetDefaultSort())},GetFilterFromSort:function(t){switch(t){case u.a.MostRecent:return"orderbydesc:timestamp";case u.a.AtoZ:return"orderby:name";case u.a.ProductionYear:return"orderbydesc:productionyear";case u.a.Newest:return"orderbydesc:datecreated";case u.a.SeriesSort:return"orderby:seriessort";default:return""}},GetDefaultSort:function(){return p.CreateSortObject(u.a.MostRecent)},CreateSortObject:function(t){return{sortType:t,name:p.GetSortName(t),sortName:u.a[t].toLowerCase()}},CreateSortCollection:function(){var t=new c.a.Collection;for(var e in u.a)"number"==typeof u.a[e]&&t.push(new c.a.Model(p.CreateSortObject(u.a[e])));return t},GetSortName:function(t){switch(t){case u.a.MostRecent:return s.a.getPhrase(f,"recentlyAdded");case u.a.AtoZ:return s.a.getPhrase(f,"atoz");case u.a.ProductionYear:return s.a.getPhrase(f,"productionYear");case u.a.Newest:return s.a.getPhrase(f,"newest");case u.a.SeriesSort:return s.a.getPhrase(f,"seriesTitle");default:return""}},GetSortTypeFromName:function(t){switch(t){case"mostrecent":return u.a.MostRecent;case"atoz":return u.a.AtoZ;case"productionyear":return u.a.ProductionYear;case"newest":return u.a.Newest;case"seriessort":return u.a.SeriesSort;default:return u.a.MostRecent}},MapSortTypeToExportServiceSortType:function(t){switch(t){case u.a.MostRecent:return l.d.MostRecent;case u.a.AtoZ:return l.d.AtoZ;case u.a.ProductionYear:return l.d.ProductionYear;case u.a.Newest:return l.d.Newest;case u.a.SeriesSort:return l.d.SeriesSort;default:return l.d.MostRecent}}},h=n(23),d={mapYearGroupToName:function(t){var e=l.r[t],n=e.split(/(\d+)/);return n[1]?"".concat(n[0]," ").concat(n[1]," ").concat(s.a.getPhrase("shared.utils","andBelow")):t===l.r.All?s.a.getPhrase("shared.utils","studentsAndStaff"):e},hasRestriction:function(t){return!i.isUndefined(t.get("restrictions"))},hasAdminRestriction:function(t){var e=t.restrictions;return!!e&&!e.last().get("expiresOn")},isAwaitingReview:function(t){var e=t.restrictions;return!!e&&!!e.last().get("expiresOn")},getRestrictionMessage:function(t){return t.includes("Year")||t.includes("Kindergarten")?s.a.getPhrase("shared.utils","students",{yearGroup:t}):s.a.getPhrase("shared.utils","nonStudents",{group:t})},getReviewBadgeClassName:function(t,e,n){if(!t.restrictions||!t.restrictions.length)return"";var r=h().add(7,"days"),o=t.restrictions.first().get("expiresOn");return h(o).isSameOrBefore(r)?n:e},getRestrictionTooltipMessage:function(t){if(!t.restrictions)return"";if(d.isAwaitingReview(t))return d.getReviewTimeMessage(t);var e=t.restrictions.last(),n=d.mapYearGroupToName(e.get("groupId"));return d.getRestrictionMessage(n)},getReviewTimeMessage:function(t){var e=t.restrictions.first().get("expiresOn"),n=h(e).fromNow(!0);return"".concat(n," ").concat(s.a.getPhrase("shared.utils","leftToReview"))}},y={trimToMinutes:function(t){for(;("0"===t.charAt(0)||":"===t.charAt(0))&&t.length>5;)t=t.substr(1);return t},toSeconds:function(t){return h.duration(t).asSeconds()},secondsToHoursFormatted:function(t){return h.utc(1e3*t).format("HH:mm:ss")},getHoursComponent:function(t){return h.duration(t,"seconds").hours()},getMinutesComponent:function(t){return h.duration(t,"seconds").minutes()},getSecondsComponent:function(t){return h.duration(t,"seconds").seconds()},millisecondsToSeconds:function(t){return t/1e3},parseTime:function(t){var e=y.validateRawTime(t),n=e.hours,r=e.minutes,o=e.seconds,a=parseInt(n,10),c=parseInt(r,10),s=parseInt(o,10);return i.isNumber(a)||i.isNumber(c)||i.isNumber(s)?a<0||c<0||s<0?-1:y.toSeconds("".concat(a,":").concat(c,":").concat(s)):-1},validateRawTime:function(t){var e=t.hours,n=t.minutes,r=t.seconds;return(i.isUndefined(e)||i.isNaN(e))&&(e=0),(i.isUndefined(n)||i.isNaN(e))&&(n=0),(i.isUndefined(r)||i.isNaN(e))&&(r=0),{hours:e,minutes:n,seconds:r}}},g={getLibraryReviewOptions:function(t){return{kind:l.l.Permanent,name:l.m.LibraryReview,value:t}}},b=n(34),m=n(190),v=n(46),S=n(63),w=n(0),O=n(105);function E(t){return t.libraries&&t.libraries.every((function(t){return t.get("type")===v.a.CustomLibrary}))}var C,R={canEditVideo:function(t){return E(t)},canPublicShare:function(t){return E(t)},canDownloadVideo:function(t){return t.libraries&&t.libraries.every((function(t){return t.get("type")!==v.a.HostedLibrary}))},canAddToExchange:function(t){return t.libraries&&t.libraries.every((function(t){return t.get("type")!==v.a.HostedLibrary&&t.get("type")!==v.a.Exchange}))},canShareVideo:function(t,e){return e===w.b.CONTENT_UPDATES||t.libraries&&!!t.libraries.where({type:v.a.CustomLibrary,status:S.a.Published}).length},getSuggestAnEditPermissionsMessage:function(t){if(!R.canEditVideo(t))return s.a.getPhrase("shared.utils","suggestEdit")},getSharePermissionsMessage:function(t,e){if(!R.canShareVideo(t,e))return e===w.b.LIBRARY_EDITOR?s.a.getPhrase("shared.utils","share"):""},filterObjectsByOwnerType:function(t,e,n){var r=t.filter((function(t){var r=t.get("customer")&&t.get("customer").id;return!r&&e===O.b.ClickView||r===n&&e===O.b.Customer}));return new c.a.Collection(r)}},k=n(56),P=n(99);function _(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var x,T={size:"small",bgColor:"000"};!function(t){t.Avatar="avatar",t.Banner="banner",t.Thumbnail="thumbnail"}(x||(x={}));var D=(_(C={},l.f.Avatars,x.Avatar),_(C,l.f.Banners,x.Banner),_(C,l.f.Thumbnails,x.Thumbnail),C),L=function(t){return"v1/category-map/".concat(t)},A={createUrl:function(t,e){return A._createUrl(t,e)},Rfc3986EncodeURIComponent:function(t){return encodeURIComponent(t).replace(/[!'()*]/g,escape)},createThumbnailUrl:function(t,e){var n=t instanceof k.a?t.get("url"):t;if(n){var r=i.extend({},T,e);return A._createUrl(n,r)}},createBannerUrl:function(t,e,n){var r=t instanceof P.a?t.get("url"):t;return r?A._createUrl(r,n):A._createCategoryMappedUrl(e,n)},createFolderThumbnailUrl:function(t,e,n){return"string"==typeof t||t instanceof k.a&&t.get("url")?A.createThumbnailUrl(t,n):A._createCategoryMappedUrl(e,i.extend({},T,n))},_createCategoryMappedUrl:function(t,e){var n=t.fallbackBaseUrl,r=t.fallbackCategoryName,o=t.type,a="".concat(n).concat(L(D[o])),c=i.extend({name:A.Rfc3986EncodeURIComponent(r)},e);return A._createUrl(a,c)},_createUrl:function(t,e){if(t){if(i.isEmpty(e))return t;var n=$.param(e),r=-1===t.indexOf("?")?"?":"&";return"".concat(t).concat(r).concat(n)}}},N={setRating:function(t,e){if(e)if(t&&t.id){var n=e.findWhere({selected:!0}),r=e.findWhere({id:t.id});J.deselectAll(e,{silent:!1}),(n||r)&&(n?r.id!==n.id&&r.set("selected",!0):r.set("selected",!0))}else J.deselectAll(e)}},I=n(150),j={getDevicesUserCanManage:function(t,e){return t&&new I.a(t.where({customerId:e}))},getNewestDeviceUserCanManage:function(t,e){var n=j.getDevicesUserCanManage(t,e);if(n||n.length)return n.max((function(t){return new Date(t.get("dateCreated"))}))},customerHasLocalCache:function(t,e){return t&&!!j.getDevicesUserCanManage(t,e).length}},V={generateUniqueChannelName:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"customCid",n=t[e]||t.cid||(t[e]=i.uniqueId("custom"));return"".concat(t.name).concat(n)}},M=function(t,e,n){var r=e-(t=t.toString()).length;return r<=0?t:new Array(r+1).join(n)+t},U={ToDisplayDuration:function(t){if(!i.isNumber(t))return"";var e=new Date(t),n=e.getUTCHours(),r=M(e.getUTCMinutes(),2,"0"),o=M(e.getUTCSeconds(),2,"0");return n>0?"".concat(n,":").concat(r,":").concat(o):"".concat(r,":").concat(o)}},F=n(7),H=(n(10),{name:[{required:!0,msg:function(){return s.a.getPhrase("shared.utils","selectLanguage")}}]}),z=n(179),B=n(60),q=n(118),G={getEditVideoTabs:function(t,e){return[{name:function(){return s.a.getPhrase("shared.utils","videoDetails")},link:{selector:".edit-video-applink",appLink:{application:w.b.LIBRARY_EDITOR,action:w.a.LibraryEditor.EDIT_VIDEO,args:[t]}}},{name:function(){return s.a.getPhrase("shared.utils","chapters")},link:{selector:".edit-chapters-applink",appLink:{application:w.b.LIBRARY_EDITOR,action:w.a.LibraryEditor.EDIT_VIDEO_CHAPTERS,args:[t]}},hide:e&&e.hideChaptersTab},{name:function(){return s.a.getPhrase("shared.utils","resourcesSubtitlesLinks")},link:{selector:".edit-resources-subtitles-applink",appLink:{application:w.b.LIBRARY_EDITOR,action:w.a.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t]}}}]},initBackButton:function(){var t=B.a.getPreviousRoute();t&&!i.contains(q.b,t.appLink.action)&&o.a.get(q.c).set({appLink:t.appLink})},getBackButton:function(t){var e={application:w.b.LIBRARY_EDITOR,action:w.a.LibraryEditor.VIDEO_DETAILS,args:[t]},n=o.a.get(q.c).get("appLink")||e;return{name:this.getBackButtonText(n),link:{selector:".go-back-applink",appLink:n}}},getBackButtonText:function(t){if(!t)return s.a.getPhrase("shared.utils","backToVideoDetails");switch(t.action){case w.a.LibraryEditor.FOLDER:return s.a.getPhrase("shared.utils","backFolder");case w.a.LibraryEditor.SERIES:return s.a.getPhrase("shared.utils","backSeries");case w.a.Search.HOME:return s.a.getPhrase("shared.utils","backSearch");case w.a.ContentUpdates.PAST_RELEASES:return s.a.getPhrase("shared.utils","backPastReleases");case w.a.LibraryEditor.VIDEO_DETAILS:return s.a.getPhrase("shared.utils","backDetails");default:return s.a.getPhrase("shared.utils","back")}}},W={hasLibraryOfType:function(t,e){var n=t.libraries;return!(!n||!n.length)&&n.any((function(t){return t.get("type")===e}))},hasCustomLibrary:function(t){return W.hasLibraryOfType(t,l.h.CustomLibrary)},getSourceTypes:function(t){return t.libraries?t.libraries.map((function(t){return t.get("type")})):[]},isExchangeVideo:function(t){return t.libraries&&t.libraries.any((function(t){return t.get("type")===l.h.Exchange}))}},Y={generateDialog:function(t,e,n,o){new r.a({title:s.a.getPhrase("shared.utils","cancelProcessingHeading"),text:s.a.getPhrase("shared.utils","cancelProcessingBody",{videoTitle:t}),buttons:[{text:s.a.getPhrase("shared.utils","yes"),className:"btn btn-primary",success:!0},{text:s.a.getPhrase("shared.utils","no"),className:"btn btn-link",close:!0}]}).render().done((function(){return F.Radio.channel(e).trigger(n,o)}))}},J={setSelected:function(t,e){if(e&&t){J.deselectAll(e);var n=e.findWhere({id:t});n&&n.set("selected",!0)}},getSelected:function(t){return t.findWhere({selected:!0})},deselectAll:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.silent,r=void 0===n||n;t.each((function(t){return t.set("selected",!1,{silent:r})}))},findModelByName:function(t,e){return e.find((function(e){return e.get("name").toLowerCase()===t.toLowerCase()}))},getIds:function(t){return t.map((function(t){return t.get("id")}))}},K=n(115),Q={isLazyLoadSupported:function(t){if(!t)return!1;var e=K.a.getBrowser(),n=e.browser&&e.browser.toLowerCase(),r=e.version&&parseInt(e.version);return!(n&&r&&i.isNumber(r)&&i.has(t,n))||r>=t[n]}},Z=n(112);n.d(e,"d",(function(){return r.a})),n.d(e,"a",(function(){return a})),n.d(e,"p",(function(){return p})),n.d(e,"n",(function(){return d})),n.d(e,"w",(function(){return y})),n.d(e,"o",(function(){return g})),n.d(e,"f",(function(){return b.a})),n.d(e,"v",(function(){return m.a})),n.d(e,"j",(function(){return R})),n.d(e,"g",(function(){return A})),n.d(e,"l",(function(){return N})),n.d(e,"i",(function(){return j})),n.d(e,"k",(function(){return V})),n.d(e,"e",(function(){return U})),n.d(e,"t",(function(){return H})),n.d(e,"m",(function(){return z.a})),n.d(e,"u",(function(){return G})),n.d(e,"x",(function(){return W})),n.d(e,"b",(function(){return Y})),n.d(e,"c",(function(){return J})),n.d(e,"h",(function(){return Q})),n.d(e,"r",(function(){return Z.b})),n.d(e,"s",(function(){return Z.c})),n.d(e,"q",(function(){return Z.a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(1),o=n(7),i=n(44),a=n(9),c=n(16);class s extends i.a{constructor(t){super(t),r.result(this,"name")||a.c.throw(new c.a("Must provide a name when extending BaseDataService")),r.result(this,"channelName")||a.c.throw(new c.a("Must provide a channelName for "+r.result(this,"name")));const e=[...this.defaultProps,...this.props||[]];this.dataRequestSignatures={},this.mergeOptions(t,e)}get defaultProps(){return["dataProvider","cache","bootstrapData","defaultErrorHandler","alertService"]}getCursors(t){const e=this.cache.get(t);return e?e.cursors:{}}clearCacheAndGet(t){const{callback:e,errorCallback:n,eventPrefix:o}=t,{syncEvent:i,errorEvent:a}=this.getEventNames(o),c=this.cache.get(o);if(c&&c.openRequest){const t=t=>{r.isFunction(n)&&this.stopListening(this.getChannel(),a,n),r.isFunction(e)&&e(t)},o=()=>{r.isFunction(e)&&this.stopListening(this.getChannel(),i,e),r.isFunction(n)&&n()};return this.listenToOnce(this.getChannel(),i,t),void this.listenToOnce(this.getChannel(),a,o)}this.cache.remove(t.eventPrefix),this.get(t)}get(t){const{callback:e,errorCallback:n,eventPrefix:o,resource:i,formatData:a,expiryTime:c,successHandler:s,errorHandler:u,bootstrapName:l}=t,{syncEvent:f,requestEvent:p,successEvent:h,errorEvent:d}=this.getEventNames(o),y=this.getChannel(),g=this.currentTimestamp();this.bootstrapData&&this.bootstrapData[l]&&(this.cacheData(o,this.bootstrapData[l],a,{openRequest:!1,timestamp:g}),delete this.bootstrapData[l]);const b=this.cache.get(o);let m;b&&(m=b.data);const v=b&&b.openRequest,S=this.isExpired(o,c);if(v){const t=t=>{r.isFunction(n)&&this.stopListening(this.getChannel(),d,n),r.isFunction(e)&&e(t)},o=()=>{r.isFunction(e)&&this.stopListening(this.getChannel(),f,e),r.isFunction(n)&&n()};this.listenToOnce(y,f,t),this.listenToOnce(y,d,o)}if(this.cache.has(o)&&!S||(y.trigger(p),this.listenToResponse({eventPrefix:o,formatData:a,cacheOptions:{timestamp:g},callback:e,errorCallback:n,successHandler:s,errorHandler:u}),this.cacheData(o,null,null,{openRequest:!0,timestamp:g}),this.dataProvider.read(i,{channel:this.getTransportChannel(),successEvent:h,errorEvent:d})),m&&r.isFunction(e)&&!S&&e(m),m)return m}create(t){const{eventPrefix:e,resource:n,data:r,formatData:o,callback:i,errorCallback:a,invalidationKeys:c,successHandler:s,errorHandler:u}=t,{requestEvent:l,successEvent:f,errorEvent:p}=this.getEventNames(t.eventPrefix),h=this.getChannel(),d=this.getTransportChannel();h.trigger(l),this.listenToResponse({eventPrefix:e,formatData:o,invalidationKeys:c,callback:i,errorCallback:a,successHandler:s,errorHandler:u}),this.dataProvider.create(n,r,{channel:d,successEvent:f,errorEvent:p})}update(t){const{data:e,callback:n,errorCallback:r,resource:o,formatData:i,eventPrefix:a,invalidationKeys:c,errorHandler:s,successHandler:u}=t,{requestEvent:l,successEvent:f,errorEvent:p}=this.getEventNames(t.eventPrefix),h=this.getChannel(),d=this.getTransportChannel();h.trigger(l),this.listenToResponse({eventPrefix:a,formatData:i,invalidationKeys:c,callback:n,errorCallback:r,successHandler:u,errorHandler:s}),this.dataProvider.update(o,e,{channel:d,successEvent:f,errorEvent:p})}delete(t){const{eventPrefix:e,resource:n,callback:r,errorCallback:o,invalidationKeys:i,successHandler:a,errorHandler:c}=t,{successEvent:s,errorEvent:u}=this.getEventNames(e),l=this.getTransportChannel();this.listenToResponse({eventPrefix:e,invalidationKeys:i,callback:r,errorCallback:o,cacheOptions:{noCache:!0,clearCacheKey:!0},successHandler:a,errorHandler:c}),this.dataProvider.delete(n,{channel:l,successEvent:s,errorEvent:u})}listenToResponse(t){const{eventPrefix:e,formatData:n,callback:o,errorCallback:i,successHandler:a,errorHandler:c,invalidationKeys:s,cacheOptions:u={}}=t,{syncEvent:l,requestEvent:f,successEvent:p,errorEvent:h,successAlertEvent:d,errorAlertEvent:y}=this.getEventNames(e),g=this.getChannel(),b=this.getTransportChannel(),m=this.getAlertChannel();if(r.isFunction(o)&&this.listenToOnce(g,l,o),r.isFunction(i)&&this.listenToOnce(g,h,i),this.stopListening(m,d),this.stopListening(m,y),r.isFunction(a)&&this.listenToOnce(m,d,a),r.isFunction(c)&&this.listenToOnce(m,y,c),!r.isFunction(c)&&!1!==c&&r.isFunction(this.defaultErrorHandler)&&this.listenToOnce(m,y,this.defaultErrorHandler),this.hasRequestSignature(e))return;this.setRequestSignature(e);this.listenTo(b,p,(t,...r)=>{this.stopListening(g,h,i),m.trigger(d,t,...r);const o=u.noCache?this.formatData(t,n):this.cacheData(e,t,n);u.clearCacheKey&&this.cache.remove(e),g.trigger(l,o),s&&s.length&&this.cache.invalidate(s,t=>g.trigger(t+":invalidate"))}),this.listenTo(b,h,(...t)=>{this.stopListening(g,l,o);const n=this.dataProvider.parseError(...t);m.trigger(y,n),g.trigger(h,n),u.noCache||this.cacheData(e,null,null)})}cacheData(t,e,n,r={}){let{openRequest:o=!1,timestamp:i}=r;i||(i=this.currentTimestamp());const a=this.processPagination(e),c=this.formatData(e,n);return this.cache.set(t,{data:c,timestamp:i,cursors:a,openRequest:o}),c}processPagination(t){if(!t)return;const{pagination:e}=t;return e?e.cursors?e.cursors:r.isUndefined(e.offset)||r.isUndefined(e.pageSize)?e.page?this.convertLegacyPaginationToCursors(e):void 0:this.convertOffsetPaginationToCursors(e):void 0}formatData(t,e){return r.isFunction(e)?e(t):t}chain(){const t=[],e=(t,e)=>{r.isFunction(t)&&t(e)},n=(n,r)=>(t.push(()=>{const o=n.callback;n.callback=n=>{e(o,n),e(t.shift())},this[r](n)}),o),o={func:e=>(t.push(()=>{e(t.shift()||(()=>{}))}),o),get:t=>n(t,"get"),create:t=>n(t,"create"),update:t=>n(t,"update"),delete:t=>n(t,"delete"),run(){e(t.shift())}};return o}invalidateCache(t){t&&t.length&&this.cache.invalidate(t)}currentTimestamp(){return(new Date).valueOf()}isExpired(t,e){if(!e)return!1;const n=this.cache.get(t);if(!n||!n.timestamp)return!0;const r=1e3*e;return n.timestamp<this.currentTimestamp()-r}getEventNames(t){return{syncEvent:t+":sync",requestEvent:t+":request",successEvent:t+":success",errorEvent:t+":error",successAlertEvent:t+":success:alert",errorAlertEvent:t+":error:alert"}}getTransportChannel(){return o.Radio.channel(this.channelName+":transport")}getAlertChannel(){return o.Radio.channel(this.channelName+":alert")}setRequestSignature(t){this.dataRequestSignatures[t]=t}hasRequestSignature(t){return!!this.dataRequestSignatures[t]}convertOffsetPaginationToCursors(t){const{offset:e,pageSize:n,totalItems:o}=t,i=o>0&&e<o&&e+n,a=o>0&&e>0&&Math.max(e-n,0);let c={};if(i&&i<o&&(c.next=i.toString()),r.isNumber(a)&&(c.previous=a.toString()),!r.isEmpty(c))return c}convertLegacyPaginationToCursors(t){const{page:e,totalPages:n}=t,o=r.isNumber(e)&&e>0&&e<n&&e+1,i=r.isNumber(e)&&e>1&&e-1;let a={};if(o&&o<=n&&(a.next=o.toString()),i&&(a.previous=i.toString()),!r.isEmpty(a))return a}}},function(t,e,n){"use strict";var r=n(100),o=n(1),i=n(211),a=n.n(i),c=n(212),s=n.n(c),u=n(213),l=n.n(u),f=n(214),p=n.n(f),h=(n(215),n(216),n(217)),d=n.n(h),y=n(218),g=n.n(y),b=n(219),m=n.n(b),v=n(220),S=n.n(v),w=n(221),O=n.n(w),E=n(222),C=n.n(E),R=n(223),k=n.n(R),P=n(224),_=n.n(P),x=n(225),T=n.n(x),D=n(226),L=n.n(D),A=n(227),N=n.n(A),I=n(228),j=n.n(I),V=n(229),M=n.n(V),U=n(230),F=n.n(U),H=n(231),z=n.n(H),B=n(232),q=n.n(B),G=n(233),W=n.n(G),Y=n(234),J=n.n(Y),$=n(235),K=n.n($),Q=n(236),Z=n.n(Q),X=(n(237),n(238)),tt=n.n(X),et=n(239),nt=n.n(et),rt=n(240),ot=n.n(rt),it=(n(241),n(242),n(243)),at=n.n(it),ct=n(244),st=n.n(ct),ut=n(245),lt=n.n(ut),ft=n(246),pt=n.n(ft),ht=n(247),dt=n.n(ht),yt=n(248),gt=n.n(yt),bt=(n(249),n(250)),mt=n.n(bt),vt=n(251),St=n.n(vt),wt=n(252),Ot=n.n(wt),Et=n(253),Ct=n.n(Et),Rt=n(254),kt=n.n(Rt),Pt=n(255),_t=n.n(Pt),xt=n(256),Tt=n.n(xt),Dt=(n(257),n(258)),Lt=n.n(Dt),At=n(259),Nt=n.n(At),It=n(260),jt=n.n(It),Vt=n(261),Mt=n.n(Vt),Ut=n(262),Ft=n.n(Ut),Ht=n(263),zt=n.n(Ht),Bt=n(264),qt=n.n(Bt),Gt=n(265),Wt=n.n(Gt),Yt=n(266),Jt=n.n(Yt),$t=n(267),Kt=n.n($t),Qt=n(268),Zt=n.n(Qt),Xt=n(269),te=n.n(Xt),ee=n(270),ne=n.n(ee),re=(n(271),n(272),n(273),n(274)),oe=n.n(re),ie=(n(275),n(276),n(277),n(278),n(279)),ae=n.n(ie),ce=n(280),se=n.n(ce),ue=(n(281),n(282),n(283),n(284)),le=n.n(ue),fe=n(285),pe=n.n(fe),he=n(286),de=n.n(he),ye=n(287),ge=n.n(ye),be=n(288),me=n.n(be),ve=n(289),Se=n.n(ve),we=n(290),Oe=n.n(we),Ee=(n(291),n(292),n(293),n(294)),Ce=n.n(Ee),Re=n(295),ke=n.n(Re);const Pe=[a.a,l.a,p.a,d.a,S.a,O.a,C.a,k.a,m.a,s.a,_.a,T.a,L.a,N.a,j.a,g.a,M.a,F.a,z.a,Z.a,q.a,W.a,J.a,K.a,tt.a,lt.a,qt.a,Jt.a,Wt.a,ne.a,Kt.a,Zt.a,te.a,Ct.a,_t.a,kt.a,nt.a,ot.a,St.a,Ot.a,mt.a,at.a,pt.a,Nt.a,jt.a,dt.a,gt.a,Mt.a,st.a,Lt.a,Ft.a,zt.a,Tt.a,ae.a,se.a,oe.a,de.a,pe.a,le.a,ge.a,Se.a,me.a,Oe.a,ke.a,Ce.a];var _e;!function(t){t.AddToPlaylists="add-to-playlist",t.Caret="caret",t.Delete="delete",t.Edit="edit",t.NoEdit="no-edit",t.Close="close",t.Folder="folder",t.Resources="resources",t.More="more",t.Bell="bell",t.Plus="plus",t.Search="search",t.Share="share",t.Upload="upload",t.Preview="preview",t.CircleCheck="circle-check",t.Down="down",t.Right="right",t.UpDown="up-down",t.ChevronUp="chevron-up",t.ChevronDown="chevron-down",t.ChevronLeft="chevron-left",t.ChevronRight="chevron-right",t.VisibleOff="visible-off",t.VisibleOn="visible-on",t.PublisherArchive="publisher-archive",t.Play="play",t.PlayCircle="play-circle",t.ArrowLeft="arrow-left",t.CheckCircleOutline="check-circle-o",t.CheckCircle="check-circle",t.Check="check",t.Lock="lock",t.Link="link",t.Info="info",t.Question="question",t.Star="star",t.StarOutline="star-o",t.Archive="archive",t.Warning="warning",t.WarningOutline="warning-o",t.NewWindow="new-window",t.File="file",t.FilePDF="file-pdf",t.FileExcel="file-excel",t.FilePowerpoint="file-ppt",t.FileWord="file-word",t.FileImg="file-img",t.FileZip="file-zip",t.Enter="enter",t.Calendar="calendar",t.CloseCaption="close-caption",t.CloseCaptionBadge="close-caption-badge",t.Playlist="playlist",t.Handle="handle",t.Subject="subject",t.Series="series",t.EditClickView="edit-clickview",t.Heart="heart",t.HeartOutline="heart-outline",t.WhiteWave="white-wave",t.Cog="cog",t.Video="video",t.Compass="compass",t.History="history",t.Tag="tag"}(_e||(_e={}));o.extend(r.config,{autoReplaceSvg:!1,autoAddCss:!1,familyPrefix:"cv",autoA11y:!0,observeMutations:!1,replacementClass:"cv-svg",keepOriginalSource:!1}),r.library.add(...Pe),n.d(e,"a",(function(){return Te})),n.d(e,"b",(function(){return De}));const xe="cv";const Te=class{constructor(){}static get Instance(){return this.instance||(this.instance=new this)}getSvg(t,e={}){const n=this.faIconLookup(t,e),r=this.getIcon(n,e);if(r&&(!r||r.html.length))return r.html.pop()}getIcon(t,e){return r.icon(t,e.iconOptions||{})}faIconLookup(t,e){let{prefix:n=xe}=e;return r.findIconDefinition({prefix:n,iconName:t})}}.Instance,De=_e},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={SHORT:120,STANDARD:600}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return i}));var r=n(18),o=Object.assign({Notifications:"NotificationService",PartialLoading:"PartialLoadingService",NavLock:"NavLockService",DialogHelper:"DialogHelper",Analytics:"AnalyticsService",VideoDragDrop:"VideoDragDropService",FolderDragDrop:"FolderDragDropService",SelectedVideo:"SelectedVideoService",FolderCache:"FolderCacheService",LocalOptions:"LocalOptionsService",ContextService:"ContextService",VideoMixin:"VideoMixinService",PageVisibility:"PageVisibility",PageTitle:"PageTitle",Language:"LanguageService",ContextualSearch:"ContextualSearchService",Intercom:"IntercomService"},r.b),i=Object.assign({Config:"ConfigDataService",User:"UserDataService",Customer:"CustomerDataService",Library:"LibraryDataService",Search:"SearchDataService",Notifications:"NotificationDataService",NotificationsSocket:"NotificationSocketService",Settings:"SettingsDataService",StaffRequests:"StaffRequestDataService",MigrationVideo:"MigrationVideoDataService",Tags:"TagDataService",Series:"SeriesDataService",ImageUpload:"ImageUploadDataService",Chapter:"ChapterDataService",Export:"ExportDataService",LocalCache:"LocalCacheDataService",RestrictedVideo:"RestrictedVideoDataService",Ratings:"RatingsDataService",Language:"LanguageDataService",ContentUpdates:"ContentUpdatesDataService",DownloadProxy:"DownloadProxyDataService",Resource:"ResourceDataService",Subtitle:"SubtitleDataService",Link:"LinkDataService",Company:"CompanyDataService",Person:"PersonDataService",Fields:"FieldsDataService"},r.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(9);class o extends r.a{get name(){return"DevError"}}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Sources="libraries",t.Folder="folder",t.Tags="tag",t.Ratings="ratings",t.Interactives="interactives",t.Resources="resources",t.Subtitles="subtitles",t.ProductionYear="productionYear",t.ProducedByClickView="producedByClickView",t.HD="hd",t.Duration="duration",t.Series="series"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}));const r={Config:"ConfigDataService",User:"UserDataService",Language:"LanguageDataService",Video:"VideoDataService",VideoUpload:"VideoUpload",Library:"LibraryDataService",Search:"SearchDataService",Series:"SeriesDataService",Notification:"NotificationDataService",NotificationSocket:"NotificationSocketService"},o={ImageUrl:"ImageUrlService",PendingItems:"PendingItemsService",Alerts:"AlertService",VideoUpload:"VideoUploadService",ResourceUpload:"ResourceUploadService",SubtitleUpload:"SubtitleUploadService",VideoMixin:"VideoMixinService",ContextualSearch:"ContextualSearchService",Context:"ContextService",Notification:"NotificationService",AppOptions:"AppOptionsService"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return i}));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"},o={PENDING_ITEMS:"pending:items:service",VIDEO_UPLOAD:"video:upload:service",SUBTITLE_UPLOAD:"subtitle:upload:service",RESOURCE_UPLOAD:"resource:upload:service",CONTEXTUAL_SEARCH:"contextual:search:service"},i={NOTIFICATIONS:"notifications:application"}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Component=1]="Component",t[t.ComponentCollection=2]="ComponentCollection"}(r||(r={}))},function(t,e,n){"use strict";var r,o;!function(t){t.Libraries="libraries",t.Subjects="subjects",t.ReleaseDate="release-date"}(r||(r={})),function(t){t.ThisMonth="this-month",t.LastMonth="last-month",t.Last3Months="last-3-months",t.Last6Months="last-6-months"}(o||(o={})),n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Video="videos",t.Folder="categories",t.Series="series",t.Channel="channels",t.Distributors="companies",t.Producers="people",t.Tags="tags",t.Language="languages",t.TagsRaw="tag",t.ChannelRaw="channel",t.Recent="recent",t.Direct="direct",t.ProductionCompanies="companies",t.Directors="people",t.Season="season",t.Topics="topics"}(r||(r={}))},function(t,e){t.exports=r},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(1),o=n(66),i=n(16),a=n(44),c=n(53),s=n(108),u=n(9);class l extends a.a{constructor(){super(),this.viewObjects={}}static get Instance(){return this.instance||(this.instance=new this)}get name(){return"ViewModelService"}updateViewModel(t,e){const n=this.mergeData(e,t.toJSON());return t instanceof s.a&&t.set(n,{silent:!0}),t instanceof c.a&&!(t instanceof s.a)&&t.set(n,{silent:!0}),t}get(t,e={},n={}){const{update:r=!1}=n,o=this.viewObjects[t];if(o&&r)return this.updateViewModel(o,e);if(o)return o;const i=this.getLocalData(t,n);return this.set(t,e,i,n)}set(t,e={},n,r){const{ctor:o,storage:i}=r,a=this.mergeData(e,n),s=o?new o(a):new c.a(a);return this.viewObjects[t]=s,i&&!n?(this.setLocalData(t,s,null,r),this.setupChangeListeners(t,s,r)):i&&n&&this.setupChangeListeners(t,s,r),s}clear(t){const e=this.viewObjects[t];return!!e&&(this.stopListening(e),e.trigger("destroy"),delete this.viewObjects[t],!0)}getLocalData(t,e){const{storage:n}=e;if(!n)return;return this.getStorageHelper(n.type).get(t)}setLocalData(t,e,n,r){const{storage:o}=r;if(!o||o&&!o.persistProps)return;let i;"string"==typeof o.persistProps&&(o.persistProps=[o.persistProps]),e instanceof c.a&&(i=e.pick(o.persistProps));this.getStorageHelper(o.type).set(t,i)}setupChangeListeners(t,e,n){const{storage:o}=n;!o||o&&!o.persistProps||("string"==typeof o.persistProps&&(o.persistProps=[o.persistProps]),r.each(o.persistProps,o=>{this.listenTo(e,"change:"+o,r.partial(this.setLocalData,t,r,r,n))}))}mergeData(t,e){return e?r.isObject(t)&&r.isObject(e)?r.extend(t,e):void u.c.throw(new i.a("defaultValues and existingData are not of the same datatype and cannot be merged")):t}getStorageHelper(t){switch(t){case o.c.LocalStorage:return o.a;case o.c.SessionStorage:return o.b}}}const f=l.Instance},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(2),o=n(16);class i extends r.a.SilentError{constructor(t){super(t),this.dialogOptions||r.a.ErrorHelper.throw(new o.a("Please provide DialogOptions for your implementation of DialogError"))}get name(){return"DialogError"}onDone(){}onFail(){}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={FOLDER:"folder",FOLDER_VIDEOS:"folder:videos",VIDEOS:"videos",SERIES:"series",LIBRARY:"library",MOVE_VIDEOS:"move:videos",VIDEOS_BY_ID:"videos:by:id",VIDEOS_TO_REVIEW:"videos:to:review",RECENT_VIDEOS:"recent:videos",RECENT_VIDEOS_ALL_PAGES:"recent:videos:all:pages",RECENT_SUBJECTS:"recent:subjects",RESTRICTED_VIDEOS:"restricted:videos",RESTRICTED_OBJECTS:"restricted:objects",RATINGS:"ratings",CHANNELS:"channels",PRODUCERS:"producers",NOTIFICATIONS:"notifications",DISTRIBUTORS:"distributors",UPDATE_VIDEO:"update:video",UPDATE_VIDEO_THUMBNAIL:"update:video:thumbnail",DELETE_VIDEO_THUMBNAIL:"delete:video:thumbnail",UPDATE_FOLDER_BANNER:"update:folder:banner",DELETE_FOLDER_BANNER:"delete:folder:banner",DELETE_VIDEO:"delete:video",DISSOC_VIDEO:"dissoc:video",UPDATE_FIELD:"update:field",ADD_FIELD:"add:field",DELETE_FIELD:"delete:field",ASSOC_RATING:"assoc:video",DISSOC_RATING:"dissoc:rating",SEARCH_VIDEOS:"search:videos",SEARCH_FILTERS:"search:filters",SHARED_RESOURCE:"shared:resource",UPDATE_VIDEO_RESTRICTION:"update:video:restriction",SETTINGS:"settings",UPDATE_SETTING:"update:setting",GENERATE_PDF:"generate:pdf",GENERATE_COLLECTION_PDF:"generate:collection:pdf",GENERATE_CUSTOM_PDF:"generate:custom:pdf",STAFF_REQUESTS:"staff:requests",CUSTOMER_VIDEO:"customer:video",CUSTOMER_FOLDERS:"customer:folders",CUSTOMER_VIDEOS:"customer:videos",CUSTOMER_SMART_VIDEOS:"customer:smart:videos",CUSTOMER_METADATA:"customer:metadata",CLOUD_SYNC_STATUS:"cloud:sync:status",STAFF_REQUEST_BY_ID:"staff:requests:by:id",STAFF_REQUEST_MESSAGES:"staff:requests:messages",GET_TAGS:"get:tags",CREATE_TAG:"create:tag",ASSOC_TAG:"assoc:tag",DISSOC_TAG:"dissoc:tag",CREATE_SERIES:"create:series",CURRENT_USER:"currentuser",USER_BY_ID:"user:by:id",CREATE_CHAPTER:"create:chapter",UPDATE_CHAPTER:"update:chapter",DELETE_CHAPTER:"delete:chapter",CONCATENATE_CHAPTERS:"concatenate:chapters",CONCATENATE_STATUS:"concatenate:status",VIDEO_HAS_PHYSICAL_CHAPTERS:"video:has:physical:chapters",UPLOAD_IMAGE:"upload:image",FINALISATION:"finalisation",CUSTOMER:"customer",BACKUP_TOOL:"backup:tool",LOCAL_CACHE_DEVICES:"local:cache:devices",LOCAL_CACHE_DOWNLOADS:"local:cache:downloads",ADD_VIDEO_TO_LOCAL_CACHE:"add:video:to:local:cache",LOCALE:"locale",PHRASES:"phrases",SUGGEST_EDIT:"suggest:edit",UPDATE_FOLDER_THUMBNAIL:"update:folder:thumbnail",DELETE_FOLDER_THUMBNAIL:"delete:folder:thumbnail",LIBRARY_FOLDERS:"library:folders",RESOURCE:"resource",CREATE_RESOURCE:"create:resource",UPDATE_RESOURCE:"update:resource",DELETE_RESOURCE:"delete:resource",CREATE_SUBTITLE:"create:subtitle",DELETE_SUBTITLE:"delete:subtitle",LINK:"link",CREATE_LINK:"create:link",UPDATE_LINK:"update:link",DELETE_LINK:"delete:link",CREATE_COMPANY:"create:company",CREATE_PERSON:"create:person",BULK_DISSOC:"bulk:dissoc",CREATE_SEASON:"create:season"}},function(t,e,n){"use strict";n.d(e,"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(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.MostRecent=1]="MostRecent",t[t.AtoZ=2]="AtoZ",t[t.ProductionYear=3]="ProductionYear",t[t.Newest=4]="Newest",t[t.SeriesSort=5]="SeriesSort"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);class o extends r.a.SilentError{get name(){return"ErrorPageError"}}},function(t,e,n){t.exports={addLibraryButton:"fXaTF",addLibraryPlus:"_3Ygal",paddedContainer:"_1uVUJ",imageLarge:"_2-GAI",imageSmall:"_36Ljd"}},function(t,e,n){"use strict";n.d(e,"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(t,e,n){"use strict";var r,o,i,a,c,s,u;!function(t){t.Title="title",t.Views="viewsLast3Years"}(r||(r={})),function(t){t[t.None=0]="None",t[t.NoPublisher=5]="NoPublisher",t[t.BackupToolProcessesing=1]="BackupToolProcessesing",t[t.BackupToolCompleteWithError=2]="BackupToolCompleteWithError",t[t.BackupToolComplete=3]="BackupToolComplete",t[t.BackupCompleteWithError=8]="BackupCompleteWithError",t[t.BackupComplete=9]="BackupComplete",t[t.PublishingLibrary=6]="PublishingLibrary",t[t.LibraryPublished=7]="LibraryPublished"}(o||(o={})),function(t){t[t.None=0]="None",t[t.Smart=1]="Smart",t[t.Scratch=2]="Scratch",t[t.Full=3]="Full"}(i||(i={})),function(t){t.MigratedHidden="migratedHidden"}(a||(a={})),function(t){t[t.Valid=1]="Valid",t[t.BinaryRemoved=2]="BinaryRemoved",t[t.CloudFileNotFound=8]="CloudFileNotFound",t[t.CloudEmptyChapter=32]="CloudEmptyChapter",t[t.MediaProbingFailure=128]="MediaProbingFailure",t[t.CloudLocalChecksumNotMatch=16384]="CloudLocalChecksumNotMatch",t[t.CloudLocalDurationNotMatch=32768]="CloudLocalDurationNotMatch",t[t.CloudLocalChapterCountNotMatch=65536]="CloudLocalChapterCountNotMatch",t[t.TrackingCodeNotFound=536870912]="TrackingCodeNotFound",t[t.Exception=134217728]="Exception",t[t.CloudDurationDirty=1073741824]="CloudDurationDirty",t[t.LocalFileNotFound=16]="LocalFileNotFound",t[t.DbEmptyChapter=64]="DbEmptyChapter",t[t.DbChapterChecksumNotFound=256]="DbChapterChecksumNotFound",t[t.DbChapterDurationNotFound=512]="DbChapterDurationNotFound",t[t.DbChapterFileSizeNotFound=1024]="DbChapterFileSizeNotFound",t[t.DbChapterChecksumNotMatch=2048]="DbChapterChecksumNotMatch",t[t.DbChapterDurationNotMatch=4096]="DbChapterDurationNotMatch",t[t.DbChapterFileSizeNotMatch=8192]="DbChapterFileSizeNotMatch",t[t.SubtitleUploadFailure=131072]="SubtitleUploadFailure",t[t.ResourceUploadFailure=262144]="ResourceUploadFailure",t[t.ResourceFileNotFound=524288]="ResourceFileNotFound",t[t.ResourceFileInvalid=1048576]="ResourceFileInvalid",t[t.DbResourceChecksumNotFound=2097152]="DbResourceChecksumNotFound",t[t.DbResourceExtensionNotFound=4194304]="DbResourceExtensionNotFound",t[t.DbResourceFileSizeNotFound=8388608]="DbResourceFileSizeNotFound",t[t.DbResourceChecksumNotMatch=16777216]="DbResourceChecksumNotMatch",t[t.DbResourceFileSizeNotMatch=33554432]="DbResourceFileSizeNotMatch",t[t.CoverImageUploadFailure=67108864]="CoverImageUploadFailure",t[t.BackupIgnored=268435456]="BackupIgnored"}(c||(c={})),function(t){t[t.Valid=1]="Valid",t[t.Warning=2]="Warning",t[t.Error=3]="Error"}(s||(s={})),function(t){t.Migrated="migrated",t.Remaining="remaining",t.Errored="errored",t.ContentMatched="content-matched"}(u||(u={})),n.d(e,"e",(function(){return r})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"f",(function(){return c})),n.d(e,"d",(function(){return u}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={CONTENT:"content",TOP_NAV:"topNav",PAGE_HEADER:"pageHeader",LEFT_NAV:"leftNav",POPUP:"popup",ALERT:"alert",PAGE_FOOTER:"pageFooter",HIDDEN:"hidden",TOP_BANNER:"topBanner"};r.ALERT,r.POPUP,r.HIDDEN},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(2),o=n(51),i=n(54),a=n(46),c=n(24),s={isSelected:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=s.getSelectedViewModel(t),r=n.get("selected")||"";return r.toString()===e.toString()},isParent:function(t,e){var n=s.getSelectedViewModel(t).get("parents");return!!n&&!!n[e]},getSelectedViewModel:function(t){return c.a.get("foldertreehelper:".concat(t))},deselectAll:function(t,e){e&&s.getSelectedViewModel(t).clear()},setSelected:function(t,e,n,o){if(n&&(e instanceof r.a.Model||(e=s.getModelFromCollection(e,n)),e)){var i=s.getSelectedViewModel(t);o||(s.deselectAll(t,n),i.set("selected",e.get("id")));var a={};e.collection&&function t(e){if(e){var n=e.get("id");n!==i.get("id")&&(a[n]=!0),e.collection&&t(e.collection.parent)}}(e),i.set("parents",a)}},getSelected:function(t,e){var n=s.getSelectedViewModel(t).get("selected");return n?s.getModelFromCollection(n,e):null},newFolder:function(){return new i.a},getModelFromCollection:function(t,e){if(!e)return null;for(var n=function e(n){if(n.get("id")&&t&&n.get("id").toString()===t.toString())return n;var r=n.children;if(!r||!r.length)return null;for(var o=0;o<r.length;o++){var i=e(r.at(o));if(i)return i}},r=0;r<e.length;r++){var o=n(e.at(r));if(o)return o}return null},getParent:function(t,e){var n=s.getModelFromCollection(t,e);if(!n||!n.collection||!n.collection.parent)return null;var r=n.collection.parent;return r.get("type")===a.a.CategoryTree?r.collection.parent:r},addFolder:function(t,e,n){var r,o=n;e&&(r=s.getModelFromCollection(e,o)),r&&(r.children||r.set("children",[]),o=r.children),o.add(t.toJSON())},addFolderToLibrary:function(t,e,n){var r=n.get(e);r&&s.addFolder(t,r.get("id"),n)},flatten:function(t){var e=new o.a(t.toJSON()),n=new r.a.Collection,i=-1;return e.each((function t(e){var r=e.get("type")===a.a.Folder||e.get("type")===a.a.CustomLibrary;r&&(n.add(e),e.set("depth",++i)),e.children&&e.children.length&&e.children.each(t),r&&i--})),n},getFirstType:function(t,e){var n;return t.find((function t(r){return r.get("type")===e?(n=r,!0):!(!r.children||!r.children.length)&&!!r.children.find(t)})),n},getLibrary:function(t,e){var n,r=s.getModelFromCollection(t,e);if(!r)return null;return function t(e){return e.get("type")===a.a.CustomLibrary?(n=e,!0):!(!e.collection||!e.collection.parent)&&t(e.collection.parent)}(r),n},isSubFolder:function(t){return!!(t&&t.collection&&t.collection.parent)&&t.collection.parent.get("type")===a.a.Folder},getFolderDepth:function(t,e){for(var n=s.getModelFromCollection(t,e),r=-1;n;)n=n.collection&&n.collection.parent,r++;return r},getFolderChord:function(t){var e=t,n=[];do{n.unshift(e.get("name")),e=e.collection?e.collection.parent:null}while(e);return n.join("->")},getDepthOfChildren:function(t){var e=0;if(!t.children||!t.children.length)return e;e++;for(var n=0,r=0;r<t.children.length;r++){var o=t.children.models[r],i=s.getDepthOfChildren(o);i>n&&(n=i)}return e+=n},calculateDestinationFolderDepth:function(t,e,n){var r=t&&s.getDepthOfChildren(t)||0;return(n&&s.getFolderDepth(e,n)||0)+1+r}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(61);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,r,i=u(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e){t.exports=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return p}));var r,o,i=n(1),a=n(7),c=n(92),s=n(53),u=n(44),l=n(10),f=n(69);!function(t){t.Success="success",t.Warning="warning",t.Fail="danger",t.Info="info"}(r||(r={})),function(t){t.Success="Success! š",t.Warning="Whoops...",t.Fail="Oops...",t.Info="FYI"}(o||(o={}));class p extends u.a{constructor(t){super(t)}initialize(){this.alertCollection=new c.a,this.listenTo(l.a.ALERT,"remove:alert",this.removeAlert),this.showAlerts()}get name(){return f.a.ALERT}get defaults(){return{maxAlerts:3}}showAlerts(){const t=a.Radio.channel(l.a.ALERT);let e={collection:this.alertCollection};this.options.alertViewCtor&&(e=i.extend({},e,{ctor:this.options.alertViewCtor})),t.trigger("show:alert",e)}removeAlert(t){this.alertCollection.remove(t),this.showAlerts()}createAlert(t){this.alertCollection.length===this.options.maxAlerts&&this.alertCollection.shift(),t.id||(t=i.extend({},t,{id:this.generateUniqueAlertId()})),this.alertCollection.push(new s.a(t)),this.showAlerts()}clearAllAlerts(){this.alertCollection.reset(null)}success(t){return"string"==typeof t?i.bind(()=>this.createAlert(i.extend({},this.options.defaultSuccessAlert,{message:t})),this):t.useXHR?i.bind((t,e)=>this.createAlert(i.extend({},this.options.defaultSuccessAlert,{message:e})),this):i.bind(()=>this.createAlert(i.extend({},this.options.defaultSuccessAlert,t)),this)}error(t){return"string"==typeof t?i.bind(()=>this.createAlert(i.extend({},this.options.defaultErrorAlert,{message:t})),this):t.useXHR?i.bind(t=>this.createAlert(i.extend({},this.options.defaultErrorAlert,{message:t.message})),this):i.bind(()=>this.createAlert(i.extend({},this.options.defaultErrorAlertIL_DEFAULT,t)),this)}generateUniqueAlertId(){return i.uniqueId("alert_")}}},function(t,e,n){"use strict";n.d(e,"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(t,e,n){"use strict";var r=n(1),o=n(2),i=n(16),a=n(4),c=n(10),s=n(139);class u extends o.a.Service{constructor(){super(...arguments),this.contextHistory=[]}get name(){return s.a.Context}static get Instance(){return this.instance||(this.instance=new this)}initialize(){this.listenTo(c.a.SHELL,o.a.EventNames.ROUTE,this.setContext)}setContext(t){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:t})}getCurrentContext(){if(this.contextHistory.length)return this.contextHistory[this.contextHistory.length-1]}fromPageLoad(){return 1===this.contextHistory.length}}const l=new u;var f=n(73);function p(){const{appLink:t}=l.getCurrentContext();return r.isObject(t)||o.a.ErrorHelper.throw(new i.a("Applink does not exist. Check current context.")),t.application.replace(":","-")}function h(t={}){const{location:e,entity:n,workflowPhase:r=null,descriptor:a=null}=t;return e||o.a.ErrorHelper.throw(new i.a("location must be set.")),n||o.a.ErrorHelper.throw(new i.a("entity must be set.")),{productArea:p(),location:e,entity:n,descriptor:a,workflowPhase:r}}function d(){return o.a.LocationUtils.GetCurrentPath()+o.a.LocationUtils.GetCurrentQueryString()}n.d(e,"a",(function(){return y}));const y={logUserAction(t,e){if(!function(t){return!(!r.isArray(t)||!r.every(t,t=>r.isObject(t)))||!!r.isObject(t)}(t)||!r.isObject(e))return;const{userAction:n,action:o,eventVersion:i}=y.buildUserActionEvent(e);f.a.log(n,t,o,i)},logNavigate(t,e){const n=Object.assign({currentLocation:d(),appLink:t},e);f.a.log(a.q.Navigate,n)},mergeOptions:(t,e)=>r.extend({},t,e),buildActionContext:(t={})=>h(t),buildUserActionEvent(t={}){const{actionType:e,eventVersion:n}=t;return{userAction:e,action:h(t),eventVersion:n}},buildCurrentLocation:()=>d(),buildSearchEvent:(t,e)=>({data:{query:t},action:h({entity:a.e.Video,location:a.k.SearchBar,descriptor:e})}),buildInstantSearchEvent(t,e,n){let r;n===a.o.Series&&(r=a.e.Series),n===a.o.Folder&&(r=a.e.Folder),n===a.o.Tags&&(r=a.e.Tag),n===a.o.Video&&(r=a.e.Video);const o={instant:{},query:t};return e.id&&(o.instant.selectedId=e.id),e.name&&(o.instant.selectedName=e.name),{data:o,action:h({entity:r,location:a.k.SearchBar})}},mapInteractionType(t){switch(t){case a.i.DragDrop:return a.j.DragDrop;case a.i.FileSelect:return a.j.FileSelect;default:return}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={SEARCH:"search:app:variables",NOTIFICATIONS:"notifications:app:variables"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(7);function o(t,e,n,o){let i=t;return"string"==typeof t&&(i=r.Radio.channel(t)),o.call(this,i,e,n)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(32),o=n(296),i={isPublishingLibraries:function(t){return a(r.a.PublishingLibrary,t)},librariesPublished:function(t){return a(r.a.LibraryPublished,t)},isInitialMigration:function(t){return c(r.c.None,t)&&!a(r.a.NoPublisher,t)},migrationInitialized:function(t){return!c(r.c.None,t)},backupProcessing:function(t){return a(r.a.BackupToolProcessesing,t)||a(r.a.BackupToolCompleteWithError,t)||a(r.a.BackupToolComplete,t)},backupCompleteWithoutError:function(t){return a(r.a.BackupComplete,t)},backupComplete:function(t){return a(r.a.BackupComplete,t)||a(r.a.BackupCompleteWithError,t)},backupCompleteWithError:function(t){return a(r.a.BackupCompleteWithError,t)},backupNotStarted:function(t){return a(r.a.None,t)},showPublisherArchive:function(t){return!i.noPublisher(t)},noPublisher:function(t){return a(r.a.NoPublisher,t)},fullMigrationInitialized:function(t){return i.migrationInitialized(t)&&t.get("migrationOption")===r.c.Full},isCurrentlyMigratingAll:function(t){return t&&t.finalisationTask&&t.finalisationTask.get("type")===o.a.MigrateAllPhase1}};function a(t,e){return e&&e.get("cloudSyncStatus")===t}function c(t,e){return e&&e.get("migrationOption")===t}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.ExchangeVideoAvailable="exchange-video-available",t.WorkspaceVideoAvailable="workspace-video-available",t.Marketing="marketing",t.EditedVideoAvailable="edited-video-available",t.VideoRequestAvailable="pay-tv-video-available",t.VideoRequestDenied="pay-tv-video-denied",t.VideoReviewReminder="term-update-review-reminder",t.VideoReviewAddedToLibrary="term-update-review-videos-added-to-library",t.CustomLibraryVideoAvailable="custom-library-video-available",t.VideoProcessingFailed="video-processing-failed",t.StaffRequest="new-staff-request",t.StaffRequestFulfilled="staff-request-fulfilment",t.ChapterMergeSuccess="media-concatenate-success",t.SuggestEdit="suggest-an-edit"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(36),o=n(41),i=n(9);class a extends r.Object{constructor(t){super(t),this.name||i.c.throw(new i.b("Your service must be named."))}listenTo(...t){return o.a.call(this,t[0],t[1],t[2],super.listenTo)}}},function(t,e,n){"use strict";n.d(e,"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(t){return this.variables[t]}setUpVariables(t){this.variables=t}}.Instance},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Folder="category",t.CategoryTree="category_tree",t.CustomLibrary="custom_library",t.HostedLibrary="hosted_library",t.Exchange="exchange",t.Workspace="workspace"}(r||(r={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Guest="Guest",t.User="User",t.Admin="Admin",t.SuperAdmin="SuperAdmin",t.System="System"}(r||(r={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Ajax="AjaxDataProvider",t.Notifications="NotificationsSignalRDataProvider"}(r||(r={}))},function(t,e,n){"use strict";var r,o;n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return o})),function(t){t.Direct="direct-search",t.Recent="recent-searches"}(r||(r={})),function(t){t[t.Remote=0]="Remote",t[t.Local=1]="Local"}(o||(o={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Other=0]="Other",t[t.Alert=1]="Alert",t[t.Warning=2]="Warning",t[t.Info=3]="Info",t[t.Success=4]="Success"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(54);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,r,i=u(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}},{key:"comparator",get:function(){return"name"}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){"use strict";n(129),n(130);var r=n(131),o=(n(128),n(25)),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="shared.tooManyFiles",h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(a,t);var e,n,r,o=u(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,i.a.getPhrase(p,"title"))}return e=a,(n=[{key:"name",get:function(){return"TooManyFilesError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"okay"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),r&&c(e,r),a}(o.a),d=n(29),y=n(0);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=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(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(a,t);var e,n,r,o=v(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,i.a.getPhrase("shared.customerSetting","title"))).settingName=t,e}return e=a,(n=[{key:"name",get:function(){return"CustomerSettingError"}},{key:"heading",get:function(){return i.a.getPhrase("shared.customerSetting","heading",{settingName:y.j[this.settingName]})}}])&&b(e.prototype,n),r&&b(e,r),a}(d.a);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function R(t,e){return(R=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function k(t){var e=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(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&R(t,e)}(a,t);var e,n,r,o=k(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),o.call(this,i.a.getPhrase("shared.localCacheDeviceNotFound","title"))}return e=a,(n=[{key:"name",get:function(){return"LocalCacheDeviceNotFoundError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase("shared.localCacheDeviceNotFound","heading"),text:i.a.getPhrase("shared.localCacheDeviceNotFound","body")}}}])&&C(e.prototype,n),r&&C(e,r),a}(o.a),T=n(58);function D(t){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A(t,e){return(A=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function N(t){var e=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(t){return!1}}();return function(){var n,r=j(t);if(e){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(t,e){return!e||"object"!==D(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var V=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A(t,e)}(a,t);var e,n,r,o=N(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,i.a.getPhrase("shared.emailNotVerified","title"))).onlineUrl=t,e}return e=a,(n=[{key:"name",get:function(){return"EmailNotVerifiedError"}},{key:"heading",get:function(){return i.a.getPhrase("shared.emailNotVerified","heading")}},{key:"description",get:function(){var t=T.a.safeUrlConcat(this.onlineUrl,y.t.VERIFY_EMAIL);return i.a.getPhrase("shared.emailNotVerified","verify",{url:t,linkClasses:"info-link"})}}])&&L(e.prototype,n),r&&L(e,r),a}(d.a);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F(t,e){return(F=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function H(t){var e=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(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&F(t,e)}(a,t);var e,n,r,o=H(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=o.call(this,i.a.getPhrase("shared.noBetaAccess","title"))).marketingSiteUrl=t,e}return e=a,(n=[{key:"name",get:function(){return"NoBetaAccessError"}},{key:"heading",get:function(){return i.a.getPhrase("shared.noBetaAccess","heading")}},{key:"description",get:function(){return"".concat(i.a.getPhrase("shared.noBetaAccess","body"),'\n <a href="').concat(this.marketingSiteUrl,'library-editor">').concat(i.a.getPhrase("shared.noBetaAccess","findOutMore"),"</a>")}}])&&U(e.prototype,n),r&&U(e,r),a}(d.a);n.d(e,"e",(function(){return r.a})),n.d(e,"f",(function(){return h})),n.d(e,"a",(function(){return O})),n.d(e,"c",(function(){return x})),n.d(e,"b",(function(){return V})),n.d(e,"d",(function(){return q}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(1),o=n(7),i=n(41);class a extends o.Model{mixin(t){const e=this;for(let n in t){if(e.hasOwnProperty(n)){const o=e[n];return void(e[n]=r.extend({},o,t[n]))}e[n]=t[n]}}addValidation(t){this.mixin({validation:t})}validate(t,e){super.validate.call(this,t,e)}listenTo(...t){return i.a.call(this,t[0],t[1],t[2],super.listenTo)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var r=n(2),o=n(35),i=n(51),a=n(99),c=n(56);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=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(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(h,t);var e,n,r,s=p(h);function h(){return u(this,h),s.apply(this,arguments)}return e=h,(n=[{key:"parse",value:function(t){if(!t.data)return t;var e=t.data;return e.children=t.children,e}},{key:"associations",get:function(){return{banner:a.a,thumbnail:c.a,children:i.a,videos:o.a}}}])&&l(e.prototype,n),r&&l(e,r),h}(r.a.NestedModel)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"idAttribute",get:function(){return"videoId"}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Model),v=n(72);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t){var e=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(t){return!1}}();return function(){var n,r=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(n,t);var e=E(n);function n(){return w(this,n),e.apply(this,arguments)}return n}(r.a.Model);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=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(t){return!1}}();return function(){var n,r=A(t);if(e){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L(this,n)}}function L(t,e){return!e||"object"!==P(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(i,t);var e,n,r,o=D(i);function i(){return _(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"associations",get:function(){return{keyContact:v.a,finalisationTask:k}}}])&&x(e.prototype,n),r&&x(e,r),i}(r.a.NestedModel),I=n(54),j=n(145),V=n(1);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function H(t,e,n){return(H="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=G(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function z(t,e){return(z=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function B(t){var e=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(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var W=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&z(t,e)}(i,t);var e,n,r,o=B(i);function i(){return U(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.id=t.chord,t.children&&!t.children.length&&(t.children=null),t}},{key:"associations",get:function(){return V.extend({},H(G(i.prototype),"associations",this),{children:j.a})}}])&&F(e.prototype,n),r&&F(e,r),i}(I.a);function Y(t){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function J(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $(t,e){return($=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function K(t){var e=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(t){return!1}}();return function(){var n,r=Z(t);if(e){var o=Z(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Q(this,n)}}function Q(t,e){return!e||"object"!==Y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Z(t){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var X=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$(t,e)}(n,t);var e=K(n);function n(){return J(this,n),e.apply(this,arguments)}return n}(r.a.Model);function tt(t){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function et(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function nt(t,e){return(nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rt(t){var e=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(t){return!1}}();return function(){var n,r=it(t);if(e){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(t,e){return!e||"object"!==tt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function it(t){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var at=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nt(t,e)}(n,t);var e=rt(n);function n(){return et(this,n),e.apply(this,arguments)}return n}(r.a.Model);function ct(t){return(ct="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function st(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ut(t,e){return(ut=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lt(t){var e=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(t){return!1}}();return function(){var n,r=pt(t);if(e){var o=pt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ft(this,n)}}function ft(t,e){return!e||"object"!==ct(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pt(t){return(pt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ht=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ut(t,e)}(n,t);var e=lt(n);function n(){return st(this,n),e.apply(this,arguments)}return n}(r.a.Model);n.d(e,"a",(function(){return l})),n.d(e,"g",(function(){return m})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return k})),n.d(e,"d",(function(){return W})),n.d(e,"e",(function(){return X})),n.d(e,"f",(function(){return at})),n.d(e,"h",(function(){return ht}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={LIBRARY_EDITOR:"library:editor",MIGRATION_WIZARD:"migration:wizard"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(1);const o={urlBuilder(t,e){const n=r.map(e,(t,e)=>{if(e&&Array.isArray(t)){return t.map(t=>`${e}=${encodeURIComponent(t)}`).join("&")}return e&&void 0!==t?`${e}=${encodeURIComponent(t)}`:""}),o=r.reduce(n,(t,e)=>e?t?`${t}&${e}`:e:t);return o?`${t}?${o}`:t},buildFilter(t){let e=[];if(t.limit&&e.push("limit:"+t.limit),t.cursor&&e.push("page:"+t.cursor),t.before&&e.push("dateCreated:..."+t.before),e.length)return e.join(",")},makeHttps:t=>r.isString(t)?-1===t.indexOf("http://")?t:t=t.replace("http://","https://"):t,safeUrlConcat(t,e){if(!t)return;let n=t;return t.endsWith("/")||(n+="/"),e?(n+=e.startsWith("/")?e.slice(1):e,n):n}}},function(t,e,n){"use strict";var r=n(1),o=n(7),i=n(82),a=n(49),c=n(77),s=n(2),u=n(3),l=n(13),f=n(383),p=n.n(f),h=n(155),d=n.n(h);class y extends s.a.Component{constructor(t){super(t)}get name(){return"ConfirmSelectionComponent"}get template(){return p.a}get className(){return`suggestion-footer empty-suggestion px-2 ${d.a.selectionContainer} clearfix`}viewOptions(){return{styles:d.a,confirmSelectionText:u.a.getPhrase("shared.utils","confirmSelection",{svg:`<kbd><span class="${d.a.svgContainer}">${l.a.getSvg(l.b.Enter)}</span></kbd>`})}}}n.d(e,"a",(function(){return g}));const g={handleQuery:(t,e)=>(n,r,o)=>{if(e||(e={}),n&&e.ignoreOnQuery)return r([]);const s=n&&n.length>=c.a.ActivationLength;return e.fetchType!==a.a.Local||s?s?t instanceof i?t.search.call(t,n,r,o):r([{query:n}]):void 0:r(t.index.all())},getTemplate(t,e={}){const{fallbackTemplate:n,templateText:o}=e;return e=>{const{query:i}=e;if(!i)return n(...arguments);if(i.length&&i.length<c.a.ActivationLength)return n(...arguments);const a=r.extend(e,{templateText:o});return t(a)}},getSearchSources:t=>r.map(t,(t,e)=>{const{typeaheadConfig:n,bloodhoundConfig:r,name:o,options:i}=t;let a;return r&&(a=g.buildBloodhound(r(o,i))),n({bloodhound:a,name:o},e,i)}),buildBloodhound:t=>new i(t),selectFirstResult(t,e,n,o){if(!n)return;if(this.$el.find(".tt-cursor").length)return;const i=r.first(e);if(!i||r.isEmpty(i))return void this.$el.find(".tt-not-found").removeClass("tt-selectable tt-suggestion");const a=this.$el.find(".add-new");!a||i.id?(a&&a.hasClass("tt-cursor")&&a.removeClass("tt-cursor"),this.$el.find(".result:first").addClass("tt-cursor")):a.addClass("tt-cursor")},emitEventOnInput(t,e,n,i){if(t)return(a,c)=>{o.Radio.channel(t).trigger(e,a,n,r.extend({},i,c))}},resetAssociationOnBlur:t=>function(e,n){const i=this.model.get(n),a=r.isNumber(this.model.id);return t[n]||a?"string"==typeof i&&i.length?a?void(t.id===this.model.id&&(this.model.set(t),o.Radio.channel(e).trigger("typeahead:set:input",t[n]))):(o.Radio.channel(e).trigger("typeahead:clear:input"),void this.model.set(t)):void 0:(this.model.clear(),void o.Radio.channel(e).trigger("typeahead:clear:input"))},getConfirmSelectionTemplate:(t={})=>()=>new y(t).render().el,clearInputOnBlur(t){o.Radio.channel(t).trigger("typeahead:clear:input")}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(2),o=n(10),i=n(18);class a extends r.a.Service{constructor(){super(...arguments),this.routeHistory=[],this.contextHistory=[]}get name(){return i.b.Context}static get Instance(){return this.instance||(this.instance=new this)}initialize(){this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.setContext),this.listenTo(o.a.SHELL,r.a.EventNames.ROUTE,this.updateRouteHistory)}setContext(t){this.contextHistory.length>=5&&this.contextHistory.unshift(),this.contextHistory.push({pageLoad:!this.contextHistory.length,appLink:t})}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(t){(r.a.AppLinkHelper.getHref(t)||"/"===r.a.LocationUtils.GetCurrentPath())&&(this.routeHistory.length>=3&&this.routeHistory.unshift(),this.routeHistory.push({pageLoad:!this.routeHistory.length,appLink:t}))}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 c=new a},function(t,e,n){"use strict";var r=n(2),o=n(56),i=n(116),a=n(196),c=n(197);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(n,t);var e=f(n);function n(){return u(this,n),e.apply(this,arguments)}return n}(r.a.Model);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t){var e=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(t){return!1}}();return function(){var n,r=S(t);if(e){var o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return v(this,n)}}function v(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function S(t){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(n,t);var e=m(n);function n(){return g(this,n),e.apply(this,arguments)}return n}(r.a.Model),O=n(98),E=n(51),C=n(90),R=n(313),k=n(312),P=n(311),_=n(310),x=n(107);function T(t){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function D(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function A(t,e){return(A=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function N(t){var e=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(t){return!1}}();return function(){var n,r=j(t);if(e){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return I(this,n)}}function I(t,e){return!e||"object"!==T(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var V=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A(t,e)}(i,t);var e,n,r,o=N(i);function i(){return D(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return x.a}}])&&L(e.prototype,n),r&&L(e,r),i}(r.a.Collection);function M(t){return(M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function F(t,e){return(F=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function H(t){var e=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(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(t,e){return!e||"object"!==M(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&F(t,e)}(n,t);var e=H(n);function n(){return U(this,n),e.apply(this,arguments)}return n}(r.a.Model);function G(t){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function W(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function J(t,e){return(J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $(t){var e=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(t){return!1}}();return function(){var n,r=Q(t);if(e){var o=Q(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return K(this,n)}}function K(t,e){return!e||"object"!==G(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Q(t){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Z=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}(i,t);var e,n,r,o=$(i);function i(){return W(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return q}}])&&Y(e.prototype,n),r&&Y(e,r),i}(r.a.Collection),X=n(198),tt=n(199),et=n(142);function nt(t){return(nt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function it(t,e){return(it=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function at(t){var e=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(t){return!1}}();return function(){var n,r=st(t);if(e){var o=st(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ct(this,n)}}function ct(t,e){return!e||"object"!==nt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function st(t){return(st=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ut=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&it(t,e)}(i,t);var e,n,r,o=at(i);function i(){return rt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return et.a}}])&&ot(e.prototype,n),r&&ot(e,r),i}(r.a.Collection),lt=n(200);function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ht(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function dt(t,e){return(dt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function yt(t){var e=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(t){return!1}}();return function(){var n,r=bt(t);if(e){var o=bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gt(this,n)}}function gt(t,e){return!e||"object"!==ft(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bt(t){return(bt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var mt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&dt(t,e)}(i,t);var e,n,r,o=yt(i);function i(){return pt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return lt.a}}])&&ht(e.prototype,n),r&&ht(e,r),i}(r.a.Collection),vt=n(148);function St(t){return(St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function wt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ot(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Et(t,e){return(Et=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ct(t){var e=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(t){return!1}}();return function(){var n,r=kt(t);if(e){var o=kt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rt(this,n)}}function Rt(t,e){return!e||"object"!==St(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function kt(t){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Et(t,e)}(a,t);var e,n,o,i=Ct(a);function a(){return wt(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return r.a.Model}}])&&Ot(e.prototype,n),o&&Ot(e,o),a}(r.a.Collection),_t=n(114);function xt(t){return(xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Lt(t,e){return(Lt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function At(t){var e=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(t){return!1}}();return function(){var n,r=It(t);if(e){var o=It(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Nt(this,n)}}function Nt(t,e){return!e||"object"!==xt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function It(t){return(It=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var jt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Lt(t,e)}(i,t);var e,n,r,o=At(i);function i(){return Tt(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return _t.a}}])&&Dt(e.prototype,n),r&&Dt(e,r),i}(r.a.Collection);function Vt(t){return(Vt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ut(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ft(t,e){return(Ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ht(t){var e=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(t){return!1}}();return function(){var n,r=Bt(t);if(e){var o=Bt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return zt(this,n)}}function zt(t,e){return!e||"object"!==Vt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Bt(t){return(Bt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return qt}));var qt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ft(t,e)}(u,t);var e,n,r,s=Ht(u);function u(){return Mt(this,u),s.apply(this,arguments)}return e=u,(n=[{key:"associations",get:function(){return{rating:a.a,series:i.a,season:O.a,categories:E.a,libraries:C.a,resources:V,interactives:Z,chapters:X.a,thumbnail:o.a,producers:R.a,distributors:k.a,productionCompanies:P.a,directors:_.a,channel:c.a,tags:tt.a,subtitles:ut,restrictions:mt,localCacheDownloads:vt.a,owner:d,playlist:w,fields:Pt,links:jt}}}])&&Ut(e.prototype,n),r&&Ut(e,r),u}(r.a.NestedModel)},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(17),a=n(88);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,o,c=f(p);function p(){return s(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"modelId",value:function(t){return t.type}},{key:"parse",value:function(t){var e=this;return r.map(r.keys(t),(function(n){var o=t[n],i=e.getType(n);return{id:i,type:i,options:r.map(o,(function(t){return{id:t,name:t,value:t}}))}}))}},{key:"getType",value:function(t){return"categories"===t?i.a.Folder:"tags"===t?i.a.Tags:t}},{key:"model",get:function(){return a.a}}])&&u(e.prototype,n),o&&u(e,o),p}(o.a.Collection);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=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(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(i,t);var e,n,r,o=v(i);function i(){return g(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return a.b}}])&&b(e.prototype,n),r&&b(e,r),i}(o.a.Collection);n.d(e,"a",(function(){return d})),n.d(e,"b",(function(){return O}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Draft=0]="Draft",t[t.Published=1]="Published",t[t.Archive=2]="Archive",t[t.Pending=3]="Pending",t[t.Rejected=4]="Rejected",t[t.Processing=5]="Processing"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={CURRENT_USER:"currentUser",CONFIG:"config",VERSION:"version",LOCALE:"locale",PHRASES:"phrases",CUSTOMER_META:"customerMeta"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return c}));var r=n(23),o=n(3),i=n(79);const a="upload.utils",c={getStatus(t){if(c.hasError(t))return o.a.getPhrase(a,"videoProcessingError");if(!t.get("foregroundComplete")){const e=c.getProgress(t);return 0===e?o.a.getPhrase(a,"waiting"):o.a.getPhrase(a,"processing",{progress:e})}return c.isDone(t)?o.a.getPhrase(a,"complete"):o.a.getPhrase(a,"readyToWatch")},hasError:t=>t.get("pendingProcessStatus")===i.a.Error,isDone:t=>2===t.get("pendingProcessStatus"),getProgress:t=>t.get("foregroundProgress"),hasExpired(t,e){const n=t.get("timeInitialized");return r().diff(n,"days")>=e}}},function(t,e,n){"use strict";var r;n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return a})),function(t){t.LocalStorage="localStorage",t.SessionStorage="sesstionStorage"}(r||(r={}));class o{constructor(t){this.cachePrefix="_cv:",this.expireTime=3600,this.hasSupport=this.hasBrowserSupport(),this.type=t.type,this.hasSupport&&(this.storage=window[this.type])}get(t){if(!this.hasSupport)return;const e=this.storage.getItem(t);try{return JSON.parse(e)}catch(t){return e}}set(t,e){if(this.hasSupport)try{return this.storage.removeItem(t),"string"!=typeof e?(this.storage.setItem(t,JSON.stringify(e)),!0):(this.storage.setItem(t,e),!0)}catch(t){return!1}}remove(t){if(this.hasSupport)return this.storage.removeItem(t)}length(){if(this.hasSupport)return this.storage.length}clear(){if(this.hasSupport)return this.storage.clear()}cacheSet(t,e,n=this.expireTime){this.cacheClean();const r={time:this.getCurrentTime()+1e3*n,data:null!=e&&e};return this.set(`${this.cachePrefix}${t}`,r)}cacheGet(t){const e=`${this.cachePrefix}${t}`,n=this.get(e);return n?this.isExpired(n)?(this.remove(e),null):n.data:null}cacheExists(t){const e=`${this.cachePrefix}${t}`,n=this.get(e);return!!n&&(!this.isExpired(n)||(this.remove(e),!1))}cacheRemove(t){return this.remove(`${this.cachePrefix}${t}`)}cacheFlush(){this.cacheClean()}cacheClean(){if(this.hasSupport)for(let t=0;t<this.storage.length;t++){const e=this.storage.key(t);if(0===e.indexOf(this.cachePrefix)){const t=this.get(e);t&&t.time&&this.isExpired(t)&&this.remove(e)}}}isExpired(t){return t.time<this.getCurrentTime()}getCurrentTime(){return(new Date).getTime()}hasBrowserSupport(){try{return this.type in window&&null!==window[this.type]}catch(t){return!1}}}const i=class extends o{static get Instance(){return this.instance||(this.instance=new this({type:r.LocalStorage}))}}.Instance,a=class extends o{static get Instance(){return this.instance||(this.instance=new this({type:r.SessionStorage}))}}.Instance},function(t,e,n){t.exports={alertItem:"_6L-Rn",fadeIn:"_2ISjU",icon:"_3X3sP",alertContent:"_2_sUY",heading:"_2nrzl",message:"_1UIK0",link:"_2xwcl",svgContainer:"_2yj4z",alertList:"_1O_xv",removing:"_3pw7F",fadeOut:"eLPSS",removed:"OqzPi"}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Unknown=0]="Unknown",t[t.BadRequest=1]="BadRequest",t[t.Unauthorized=2]="Unauthorized",t[t.Forbidden=3]="Forbidden",t[t.NotFound=4]="NotFound",t[t.InternalServer=5]="InternalServer"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={ALERT:"AlertService",SCROLL:"ScrollService",LANGUAGE:"LanguageService"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={LAZY_LOAD:"lazy:load:behavior",POPUP:"popup:behavior",IMAGE_SELECT:"image:select:behavior"}},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model),f=n(35);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=g(i);function i(){return h(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"associations",get:function(){return{videos:f.a}}}])&&d(e.prototype,n),r&&d(e,r),i}(r.a.NestedModel);n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return v}))},function(t,e,n){"use strict";var r=n(1),o=n(2);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(n,t);var e=s(n);function n(){return a(this,n),e.apply(this,arguments)}return n}(o.a.Model);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(n,t);var e=y(n);function n(){return h(this,n),e.apply(this,arguments)}return n}(o.a.Model);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t){var e=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(t){return!1}}();return function(){var n,r=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return k}));var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(a,t);var e,n,o,i=E(a);function a(){return S(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"parse",value:function(t){var e=["avatar","customerLogo"],n=r.omit(t,e);return r.each(e,(function(e){r.isObject(t[e])?n[e]=t[e]:t[e]&&(n[e]={url:t[e]})})),n}},{key:"associations",get:function(){return{avatar:f,customerLogo:m}}}])&&w(e.prototype,n),o&&w(e,o),a}(o.a.NestedModel)},function(t,e,n){"use strict";var r=n(7),o=n(74),i=n(138),a=n(2),c=n(16);const s=n(4).g.V1;class u{constructor(t,e,n,r){this.type=t,this.data=e,this.actionContext=n,this.eventVersion=r||s}isType(t){return t===this.type}enrich(t,e){this.validateKey(t),this[t]=e}get(t){if(t&&this[t])return this[t]}validateKey(t){"type"!==t&&"data"!==t||a.a.ErrorHelper.throw(new c.a(t+" is not a valid key")),this[t]&&a.a.ErrorHelper.throw(new c.a("Event already contains an enrichment named "+t))}}n.d(e,"a",(function(){return l}));const l={log(t,e,n,a){r.Radio.channel(i.a.ANALYTICS).trigger(o.a.Inlet,new u(t,e,n,a))}}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Inlet="event:inlet",t.Outlet="event:outlet"}(r||(r={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Fifo="FifoMemoryCache"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={SHORT:120,STANDARD:600}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={ActivationLength:1,SuggestionLimit:{Min:1,Default:3,Folder:3,Recent:3}}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Received=1]="Received",t[t.Seen=2]="Seen",t[t.Read=3]="Read"}(r||(r={}))},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.Error=-1]="Error",t[t.Processing=1]="Processing",t[t.Completed=2]="Completed"}(r||(r={}))},function(t,e,n){"use strict";var r,o,i,a=n(3),c="search.utils",s=(new Date).getFullYear(),u={DURATION:[{id:"0",value:"0",start:0,end:599999,name:function(){return a.a.getPhrase(c,"short")},description:function(){return a.a.getPhrase(c,"lessThan10Min")}},{id:"600000",value:"600000",start:6e5,end:2399999,name:function(){return a.a.getPhrase(c,"medium")},description:function(){return a.a.getPhrase(c,"11To40Min")}},{id:"2400000",value:"2400000",start:24e5,end:Number.MAX_VALUE,name:function(){return a.a.getPhrase(c,"long")},description:function(){return a.a.getPhrase(c,"greaterThan40Min")}}],PRODUCTION_YEAR:[{id:"...",from:0,to:0,value:"...",name:function(){return a.a.getPhrase(c,"anyYear")},active:!0,isDefault:!0},{id:"".concat(s,"..."),from:s,to:0,value:"".concat(s,"..."),name:function(){return a.a.getPhrase(c,"thisYear")}},{id:"".concat(s-3,"..."),from:s-3,to:0,value:"".concat(s-3,"..."),name:function(){return a.a.getPhrase(c,"last3Years")}},{id:"".concat(s-10,"..."),from:s-10,to:0,value:"".concat(s-10,"..."),name:function(){return a.a.getPhrase(c,"last10Years")}}]};!function(t){t.Video="video",t.Folder="folder",t.Series="series",t.HostedLibrary="hosted_library",t.CustomLibrary="custom_library"}(r||(r={})),function(t){t.Since="since-",t.Before="before-",t.LongerThan="longer-than-",t.ShorterThan="shorter-than-",t.To="-to-",t.Libraries="libraries",t.Ratings="ratings"}(o||(o={})),function(t){t.Inclusive="inclusive",t.Exclusive="exclusive",t.Boolean="boolean",t.Range="range",t.Tag="tag"}(i||(i={}));var l,f=n(1),p=n(23),h=n(17),d=n(62),y=n(0);function g(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var b,m=(g(l={},h.a.Ratings,(function(t){var e=t.options.filter((function(t){return t.get("active")})),n=f.map(e,(function(t){return t.get("value")}));if(!n.length)return null;var r=f.min(n);r===t.options.first().get("value")&&(r=0);var o=f.max(n),i="".concat(r,"...").concat(o);return"rating:".concat(i)})),g(l,h.a.ProductionYear,(function(t){var e=t.options.find((function(t){return t.get("active")}));if(!e)return null;var n=e.get("from")||"",r=e.get("to")||"";if(!n&&!r)return null;var o="".concat(n,"...").concat(r);return"productionYear:".concat(o)})),g(l,h.a.Duration,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!e.length)return null;var n=e.map((function(t){return t.get("start")})),r=e.map((function(t){return t.get("end")})),o=f.min(n),i=f.max(r);i===Number.MAX_VALUE&&(i="");var a="".concat(o,"...").concat(i);return"duration:".concat(a)})),g(l,"boolean",(function(t){return t.get("active")?"".concat(t.get("type"),":true"):""})),l);function v(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var S,w=(v(b={},h.a.Sources,(function(t,e){if(t.options.any((function(t){return t.get("dry")}))){var n=[];return t.options.each((function(t){return n.push(t.get("id"))})),{sources:"".concat(n.join(","))}}var r=f.map(t.options.filter((function(t){return t.get("active")})),(function(t){return t.get("id")}));if(r.length||(r=t.options.models),r.length===e.length)return{};var i=[];f.every(P.getLibraries(e),(function(t){return f.contains(r,t.id)}))?i.push(o.Libraries):f.each(P.getLibraries(e),(function(t){f.contains(r,t.id)&&i.push("library-".concat(t.id))}));var a=P.getExchange(e),c=P.getWorkspace(e);return a&&f.contains(r,a.id)&&i.push("exchange"),c&&f.contains(r,c.id)&&i.push("workspace"),{libraries:"".concat(i.join(","))}})),v(b,h.a.Ratings,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!f.map(e,(function(t){return t.get("value")})).length)return{};var n=f.min(e,(function(t){return t.get("value")})),r=f.max(e,(function(t){return t.get("value")})),i="".concat(n.get("name")).concat(o.To).concat(r.get("name"));return n.get("name")===r.get("name")&&(i=n.get("name")),{ratings:i}})),v(b,h.a.ProductionYear,(function(t){var e=t.options.find((function(t){return t.get("active")}));if(!e)return{};var n=e.get("from"),r=e.get("to");if(!n&&!r)return{};return{productionYear:n&&!r?"".concat(o.Since).concat(n):r&&!n?"".concat(o.Before).concat(r):"".concat(n).concat(o.To).concat(r)}})),v(b,h.a.Duration,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!e.length||e.length===t.options.length)return{};var n=f.min(e,(function(t){return t.get("start")})),r=f.max(e,(function(t){return t.get("end")})),i=P.toISOString(n.get("start")),a=P.toISOString(r.get("end"));return{duration:i&&!a?"".concat(o.LongerThan).concat(i.toLowerCase()):a&&!i?"".concat(o.ShorterThan).concat(a.toLowerCase()):"".concat(i.toLowerCase()).concat(o.To).concat(a.toLowerCase())}})),v(b,h.a.Tags,(function(t){var e=f.map(t.options.filter((function(t){return t.get("active")})),(function(t){return t.get("name")}));if(e.length)return{tag:f.map(e,(function(t){return t}))}})),v(b,"boolean",(function(t){return t.get("active")?v({},t.get("type"),!0):{}})),v(b,"default",(function(t){var e=t.options.find((function(t){return t.get("active")}));return e?v({},t.get("type"),e.get("value")):{}})),b),O=n(21);function E(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var C=(E(S={},h.a.Sources,(function(t){var e=f.map(t.options.filter((function(t){return t.get("active")})),(function(t){return t.get("name")}));return 1===e.length?e[0]:a.a.getPhrase("search.utils","librariesLabel",{count:e.length})})),E(S,h.a.Ratings,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!f.map(e,(function(t){return t.get("value")})).length)return"";var n=f.min(e,(function(t){return t.get("value")})),r=f.max(e,(function(t){return t.get("value")})),o="".concat(n.get("name")," to ").concat(r.get("name"));return n.get("name")===r.get("name")&&(o=n.get("name")),a.a.getPhrase("search.utils","ratingLabel",{ratings:o})})),E(S,h.a.ProductionYear,(function(t){var e=t.options.find((function(t){return t.get("active")}));if(!e)return"";var n=e.get("from"),r=e.get("to");return n||r?n&&!r?a.a.getPhrase("search.utils","productionYearLabelFrom",{from:n}):r&&!n?a.a.getPhrase("search.utils","productionYearLabelTo",{to:r}):a.a.getPhrase("search.utils","productionYearLabelFromTo",{from:n,to:r}):""})),E(S,h.a.Duration,(function(t){var e=t.options.filter((function(t){return t.get("active")}));if(!e.length)return"";var n=f.min(e,(function(t){return t.get("start")})),r=f.max(e,(function(t){return t.get("end")})),o=P.toISOString(n.get("start")),i=P.toISOString(r.get("end"));return o&&!i?a.a.getPhrase("search.utils","durationLabelLonger",{start:o.toLowerCase()}):i&&!o?a.a.getPhrase("search.utils","durationLabelShorter",{end:i.toLowerCase()}):a.a.getPhrase("search.utils","durationLabelFromTo",{start:o.toLowerCase(),end:i.toLowerCase()})})),E(S,h.a.Tags,(function(t){var e=f.map(t.options.filter((function(t){return t.get("active")})),(function(t){return t.get("name")}));return 1===e.length?e[0]:a.a.getPhrase("search.utils","tagLabel",{count:e.length})})),E(S,O.a.ReleaseDate,(function(t){var e=t.options.find((function(t){return t.get("active")}));return e?e.get("name"):t.get("title")})),S);function R(t){return function(t){if(Array.isArray(t))return k(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return k(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(t,e)}(t)||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 k(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var P={getFilterCollection:function(t,e){return new d.a([{title:a.a.getPhrase("search.utils","library"),type:h.a.Sources,behavior:i.Inclusive,isDynamic:!1,showInMoreFilters:!1,selectAllWhenNoneSelected:!0,minNumOptions:2,prefixWhenActive:!1,options:P.getSourceOptions(t)},{title:a.a.getPhrase("search.utils","folder"),type:h.a.Folder,behavior:i.Exclusive,isDynamic:!0,showInMoreFilters:!1,defaultOptionLabel:"All Folders",showWhenOnlyOneOption:!1,minNumOptions:0,prefixWhenActive:!0,options:[]},{title:a.a.getPhrase("search.utils","series"),type:h.a.Series,behavior:i.Exclusive,isDynamic:!0,showInMoreFilters:!1,defaultOptionLabel:"All Series",showWhenOnlyOneOption:!1,minNumOptions:1,prefixWhenActive:!0,options:[]},{title:a.a.getPhrase("search.utils","tag"),type:h.a.Tags,behavior:i.Tag,isDynamic:!0,showInMoreFilters:!1,showWhenOnlyOneOption:!0,minNumOptions:0,prefixWhenActive:!0,options:[]},{title:a.a.getPhrase("search.utils","rating"),type:h.a.Ratings,behavior:i.Range,isDynamic:!1,showInMoreFilters:!1,showWhenOnlyOneOption:!0,minNumOptions:1,prefixWhenActive:!1,options:P.getRatings(e)},{title:a.a.getPhrase("search.utils","interactives"),description:"Only display videos with interactives",type:h.a.Interactives,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","resources"),description:a.a.getPhrase("search.utils","resourcesDescription"),type:h.a.Resources,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","subtitles"),description:a.a.getPhrase("search.utils","subtitlesDescription"),type:h.a.Subtitles,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!1,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","productionYear"),type:h.a.ProductionYear,behavior:i.Exclusive,isDynamic:!1,showInMoreFilters:!0,minNumOptions:1,prefixWhenActive:!1,options:u.PRODUCTION_YEAR},{title:a.a.getPhrase("search.utils","clickViewContent"),description:a.a.getPhrase("search.utils","clickViewContentDescription"),type:h.a.ProducedByClickView,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!0,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","hdVideo"),description:a.a.getPhrase("search.utils","hdVideoDescription"),type:h.a.HD,behavior:i.Boolean,isDynamic:!1,showInMoreFilters:!0,active:!1,prefixWhenActive:!1},{title:a.a.getPhrase("search.utils","duration"),type:h.a.Duration,behavior:i.Exclusive,showInMoreFilters:!0,minNumOptions:1,isDynamic:!1,prefixWhenActive:!1,options:u.DURATION}])},getSourceOptions:function(t){return t.map((function(t){return{id:t.get("id"),name:t.get("name"),type:t.get("type"),value:t.get("id")}}))},getRatings:function(t){return t.filter((function(t){return!!t.get("value")})).map((function(t){return{value:t.get("value"),name:t.get("code"),fullName:t.get("name")}}))},getDynamicFiltersQueryString:function(t){var e,n=[],r=t.where({isDynamic:!0});return r?(f.each(r,(function(t){(e=t.options.filter((function(t){return t.get("active")}))).length&&e.forEach((function(e){return n.push("".concat(t.get("type"),':"').concat(e.get("value"),'"'))}))})),n.join(" ")):""},getSourceFilterQueryString:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"libraryIds",n=t.get(h.a.Sources),r=n.options.filter((function(t){return t.get("active")}));return r.length||(r=n.options.models),"".concat(e,"=").concat(f.map(r,(function(t){return t.get("id")})).join(","))},getTagFilterQueryString:function(t){var e=t.get(h.a.Tags).options.filter((function(t){return t.get("active")}));return e.length?"".concat(f.map(e,(function(t){return'tags:"'.concat(t.get("name"),'"')})).join(" ")):""},getQueryString:function(t){return t.map((function(t){return P.getFilterQueryString(t)})).filter((function(t){return t})).join(",")},getFilterQueryString:function(t){return P.isBooleanType(t)?m.boolean(t):f.isFunction(m[t.get("type")])?m[t.get("type")](t):""},getRouteQueryParams:function(t,e){var n=w,r={};return t.each((function(t){var o={};o=t.get("type")===h.a.Sources?n[h.a.Sources](t,e):f.isFunction(n[t.get("type")])?n[t.get("type")](t):P.isBooleanType(t)?n.boolean(t):n.default(t),r=f.extend(r,o)})),r},getFilterLabel:function(t){var e=P.createLabel(t);return e=P.truncateLabel(e),e=P.prefixLabel(e,t)},createLabel:function(t){if(t.get("behavior")===i.Boolean)return t.get("title");if(f.isFunction(C[t.get("type")]))return C[t.get("type")](t);var e=t.options.find((function(t){return t.get("active")}));return e?e.get("value"):""},prefixLabel:function(t,e){return e.get("prefixWhenActive")?P.getSelectedOptions(e.get("options")).length>1?t:"".concat(e.get("title"),": ").concat(t):t},truncateLabel:function(t){if(!t||t.length<20)return t;var e=t.slice(0,17);return"".concat(e,"...")},setFilters:function(t,e){f.each(f.keys(t),(function(n){var r=t[n],o=e.findWhere({type:n});o&&(P.isBooleanType(o)&&P.selectBoolean(n,r,e),n===h.a.Sources&&P.selectSources(r,e),n===h.a.Duration&&P.selectDurations(r,e),n===h.a.Folder&&P.selectFolder(r,e),n===h.a.ProductionYear&&P.selectProductionYear(r,e),n===h.a.Ratings&&P.selectRating(r,e),n===h.a.Series&&P.selectSeries(r,e),n===h.a.Tags&&P.selectTags(r,e))})),e.each((function(e){e.get("selectAllWhenNoneSelected")&&(f.contains(f.keys(t),e.get("type"))||P.selectAllOptions(e))}))},selectBoolean:function(t,e,n){n.get(t).set({active:e})},selectSources:function(t,e){var n=t.split(","),i=e.get(h.a.Sources);i.options.length?f.each(n,(function(t){var e=i.options.find((function(e){return e.get("type").toLowerCase()===t.toLowerCase()}));if(e)e.set("active",!0);else if(t!==o.Libraries){var n=t.split("-")[1];if(n){var a=i.options.findWhere({id:+n});a&&a.set("active",!0)}}else{var c=i.options.where({type:r.CustomLibrary});f.each(c,(function(t){return t.set("active",!0)}))}})):f.each(n,(function(t){i.options.add({id:t,name:t,dry:!0,active:!0,type:t})}))},selectDurations:function(t,e){var n,r,i,c=e.get(h.a.Duration),s=0;if(t.indexOf(o.LongerThan)>=0&&(n=t.replace(o.LongerThan,"")),t.indexOf(o.ShorterThan)>=0&&(r=t.replace(o.ShorterThan,"")),t.indexOf(o.To)>=0){var l=t.split(o.To);n=l[0],r=l[1]}i=n?p.duration("PT".concat(n.toString().toUpperCase())).asMilliseconds():0,s=r?p.duration("PT".concat(r.toString().toUpperCase())).asMilliseconds():Number.MAX_VALUE,c.options.each((function(t){var e=t.get("start"),n=t.get("end");i<=e+1001&&i>=e-1001&&s>=n-1001&&s<=n+1001&&t.set("active",!0)})),c.options.any((function(t){return t.get("active")}))||c.options.add([{id:"custom",start:i,end:s,name:a.a.getPhrase("search.utils","custom"),description:"".concat(t.replace(/-/g," ")),active:!0}].concat(R(u.DURATION)))},selectFolder:function(t,e){var n=e.get(h.a.Folder),r=n.options.find((function(e){return e.get("id").toLowerCase()===t.toLowerCase()}));r?r.set("active",!0):n.options.add([].concat(R(n.options.toJSON()),[{id:t,value:t,name:t,active:!0}]))},selectProductionYear:function(t,e){var n,r,i=e.get(h.a.ProductionYear);if(P.clearOptions(i),t.indexOf(o.Since)>=0&&(n=+t.replace(o.Since,"")),t.indexOf(o.Before)>=0&&(r=+t.replace(o.Before,"")),t.indexOf(o.To)>=0){var c=t.split(o.To);n=+c[0],r=+c[1]}i.options.each((function(t){+t.get("from")===n&&t.set("active",!0)})),i.options.any((function(t){return t.get("active")}))||i.options.add([{id:t,from:n,to:r,name:a.a.getPhrase("search.utils","custom"),value:t,active:!0}].concat(R(u.PRODUCTION_YEAR)))},selectRating:function(t,e){var n=e.get(h.a.Ratings),r=t.split(o.To);r[0]&&(r[0]=r[0].trim().toLowerCase()),r[1]&&(r[1]=r[1].trim().toLowerCase());var i=n.options.find((function(t){return t.get("name").toLowerCase()===r[0]})),a=n.options.find((function(t){return t.get("name").toLowerCase()===r[1]})),c=i&&i.get("value"),s=a&&a.get("value")||c,u=n.options.filter((function(t){return t.get("value")>=c&&t.get("value")<=s}));f.each(u,(function(t){return t.set("active",!0)}))},selectSeries:function(t,e){e.get(h.a.Series).options.add({id:t,value:t,name:t,count:0,active:!0})},selectTags:function(t,e){var n=e.get(h.a.Tags);if(!n.options.length){var r=f.isArray(t)?t:[t];f.each(r,(function(t){n.options.add({id:t,name:t,value:t,active:!0})}))}},showFilter:function(t){return t.get("behavior")===i.Boolean||t.options.length>=t.get("minNumOptions")},getExchange:function(t){return P.getSource(t,y.q.Exchange)},getWorkspace:function(t){return P.getSource(t,y.q.Workspace)},getLibraries:function(t){return[].concat(R(P.getSources(t,y.q.CustomLibrary)),R(P.getSources(t,y.q.HostedLibrary)))},getHostedLibraries:function(t){return P.getSources(t,y.q.HostedLibrary)},getCustomLibraries:function(t){return P.getSources(t,y.q.CustomLibrary)},getSource:function(t,e){return t.find((function(t){return t.get("type")===e}))},getSources:function(t,e){return t.filter((function(t){return t.get("type")===e}))},hasFilterChanged:function(t,e){return t.get("behavior")===i.Boolean?t.get("active")!==e.get("active"):P.isInclusiveType(t)||P.isTagType(t)?P.haveOptionsChanged(t,e):P.hasOptionChanged(t,e)},haveOptionsChanged:function(t,e){var n=e.options.where({active:!0}),r=t.options.where({active:!0});return!n||!r||(n.length!==r.length||!n.every((function(t,e){return t.get("value")===r[e].get("value")})))},hasOptionChanged:function(t,e){var n=P.getSelectedOption(e.options,t.get("behavior")),r=P.getSelectedOption(t.options,t.get("behavior"));return!(!n&&!r)&&(!!(!n&&r||n&&!r)||n.get("value")!==r.get("value"))},clearFilters:function(t){t.each((function(t){t.get("selectAllWhenNoneSelected")?P.selectAllOptions(t):t.get("behavior")===i.Boolean?t.set("active",!1):P.clearOptions(t,!0)}))},clearOptions:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.options.each((function(t){e&&t.get("isDefault")?t.set("active",!0):t.set("active",!1)}))},selectAllOptions:function(t){t.options.each((function(t){return t.set("active",!0)}))},getSelectedOption:function(t,e){return e===i.Range?P.getSelectedOptionInRange(t):t.findWhere({active:!0})},getSelectedOptions:function(t){return new d.b(t.filter((function(t){return t.get("active")})))},getSelectedOptionInRange:function(t){var e=t.where({active:!0});return f.last(e)},isInclusiveType:function(t){return t.get("behavior")===i.Inclusive},isBooleanType:function(t){return t.get("behavior")===i.Boolean},isTagType:function(t){return t.get("behavior")===i.Tag},isSelected:function(t){return P.isBooleanType(t)?t.get("active"):P.isInclusiveType(t)?!P.allOptionsSelected(t):P.hasOptionSelected(t)},hasOptionSelected:function(t){return t.options.any((function(t){return!t.get("isDefault")&&t.get("active")}))},allOptionsSelected:function(t){return t.options.every((function(t){return t.get("active")}))},toISOString:function(t){if(!t||t===Number.MAX_VALUE)return"";var e=Math.ceil(t/1e3);return p.duration(1e3*e).toISOString().replace("PT","")},getFilterSelectedOptionsAnalyticsData:function(t){if(P.isBooleanType(t))return t.get("active");if(P.isInclusiveType(t))return P.getInclusiveFilterSelectedOptionsAnalyticsData(t);var e=P.getSelectedOption(t.options,t.get("behavior"));return e&&e.get("name")},getInclusiveFilterSelectedOptionsAnalyticsData:function(t){var e=t.options.where({active:!0});return e.length||(e=t.options.toArray()),t.get("type")===h.a.Sources?e.map((function(t){return t.get("id")})).join(","):e.map((function(t){return t.get("name")})).join(",")}},_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(n[r[o]]=t[r[o]])}return n},x={setQueryParams:function(t,e,n){var r=t.query,o=_(t,["query"]);e.set({query:r,initialQuery:r}),P.setFilters(o,n)},getQueryString:function(t,e,n){var r="",o=x.encodeURL(t.get("query"))||"",i=P.getDynamicFiltersQueryString(e),a=P.getSourceFilterQueryString(e);(o||i)&&(r+="q=".concat(o)),i&&(r+=" ".concat(i)),r&&a&&(r+="&".concat(a));var c=[],s=P.getQueryString(e);return s&&c.push(s),n&&c.push("page:".concat(n)),c.length&&(r+="&filter={".concat(c.join(","),"}")),r},getDynamicFilterQueryString:function(t,e){var n="",r=t.get("query")?x.encodeURL(t.get("query")):"",o=P.getTagFilterQueryString(e),i=P.getSourceFilterQueryString(e,"ids");return(r||o)&&(n+="q=".concat(r)),o&&(n+=" ".concat(o)),i&&(n+="&".concat(i)),n},getRouteQueryParams:function(t,e,n){var r=t.get("query")?{query:t.get("query")}:{};return f.extend(r,P.getRouteQueryParams(e,n))},encodeURL:function(t){return t?t.replace("&","%26").replace("#","%23"):""}};n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return x})),n.d(e,"b",(function(){return P}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(51);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(f,t);var e,n,i,l=u(f);function f(){return a(this,f),l.apply(this,arguments)}return e=f,(n=[{key:"defaults",value:function(){return{children:[],categoryTree:{}}}},{key:"parse",value:function(t){if(!t.data)return t;var e=t.data;return e.children=t.children,e}},{key:"associations",get:function(){return{children:o.a,categoryTree:r.a.Model}}}])&&c(e.prototype,n),i&&c(e,i),f}(r.a.NestedModel)},function(t,e){t.exports=i},function(t,e,n){"use strict";var r=n(207),o=n.n(r);n.d(e,"d",(function(){return o.a}));var i=n(208),a=n.n(i);n.d(e,"b",(function(){return a.a}));var c=n(209),s=n.n(c);n.d(e,"c",(function(){return s.a}));var u=n(210),l=n.n(u);n.d(e,"a",(function(){return l.a}))},function(t,e,n){t.exports={svgContainer:"_1ZcbC",searchContextTag:"_1RLqh",tagFocus:"_179a5",searchContextContainer:"_3nPVB"}},function(t,e,n){t.exports={actions:"_1n37b",spinner:"_3Fpix",cancel:"_2ZmdX",hiddenCancel:"_1PypJ",processProgress:"_3dASy",errorMargin:"_3GfnF"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return m}));var r=n(5),o=n(12),i=n(72),a=n(15),c=n(0),s=n(64),u=n(14);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(l,t);var e,n,r,o=d(l);function l(){return f(this,l),o.apply(this,arguments)}return e=l,(n=[{key:"getCurrentUser",value:function(t,e){return this.get({resource:"/api/currentuser",formatData:function(t){return new i.a(t,{parse:!0})},eventPrefix:c.f.CURRENT_USER,bootstrapName:s.a.CURRENT_USER,expiryTime:u.a.STANDARD,callback:t,errorCallback:e})}},{key:"name",get:function(){return a.a.User}},{key:"channelName",get:function(){return c.e.USER}}])&&p(e.prototype,n),r&&p(e,r),l}(o.a),m={currentUser:{dataServiceName:a.a.User,eventName:"".concat(c.f.CURRENT_USER,":sync"),getData:function(t){return t.getCurrentUser()},getInstance:function(t){return r.a.getInstance(a.a.User,t)},beforeOnBeforeRender:!0}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(1),o=n(2);class i extends o.a.Behavior{get defaults(){return{placement:"top"}}set defaults(t){}get ui(){return this.options.selector?{tooltip:this.options.selector}:{}}set ui(t){let e={};this.view.ui&&(e=r.result(this.view,"ui")),this.view._ui=r.extend({},e,t)}getElement(){return this.options.selector?this.view.getUI("tooltip"):this.view.$el}getOptions(){const t={placement:this.options.placement};return this.options.title&&(t.title=this.options.title),t}onRender(){const t=this.getElement();t.length&&t.tooltip(this.getOptions())}onBeforeDetach(){const t=this.getElement();t instanceof jQuery&&t.tooltip("dispose")}}},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model),f=n(62);function p(t){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(i,t);var e,n,r,o=g(i);function i(){return h(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"idAttribute",get:function(){return"type"}},{key:"associations",get:function(){return{options:f.b}}}])&&d(e.prototype,n),r&&d(e,r),i}(r.a.NestedModel);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function w(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=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(t){return!1}}();return function(){var n,r=k(t);if(e){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(i,t);var e,n,r,o=C(i);function i(){return w(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"idAttribute",get:function(){return"value"}}])&&O(e.prototype,n),r&&O(e,r),i}(r.a.Model);n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return v})),n.d(e,"b",(function(){return P}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return Z})),n.d(e,"b",(function(){return X}));var r=n(1),o=n(7),i=n(5),a=n(12),c=n(144),s=n(63),u=n(0),l=n(54),f=n(81),p=n(99),h=n(56),d=n(51),y=n(90),g=n(34),b=n(15),m=n(6),v=n(14),S=n(57),w=n(11),O=n(3);function E(t){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function C(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function k(t,e){return(k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=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(t){return!1}}();return function(){var n,r=x(t);if(e){var o=x(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return _(this,n)}}function _(t,e){return!e||"object"!==E(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function x(t){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(){return"/api/domain/v2/me/libraries?type=customlibrary&type=unpublishedcustomlibrary"},D=function(){return"/api/domain/v2/me/libraries?type=2"},L=function(t){return"/api/domain/v2/me/libraries?type=exchange&maxCategoryDepth=".concat(t)},A=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(u.A.FOLDER)},N=function(t,e){return"/api/domain/v2/collections/".concat(t,"/categories").concat(e?"?parentCategoryId=".concat(e):"")},I=function(t){return"/api/domain/v2/objects/".concat(t)},j=function(t){return"/api/domain/v2/objects/".concat(t)},V=function(){return"/api/domain/v2/objects/move"},M=function(t){return"/api/domain/v2/objects/".concat(t,"/customlibraries")},U=function(t){return"/api/domain/v2/objects/".concat(t)},F=function(t){return"/api/domain/v2/objects/".concat(t,"/banner")},H=function(t,e){return"/api/domain/v2/objects/".concat(t,"/banner/").concat(e)},z=function(t){return"/api/domain/v2/objects/".concat(t,"/thumbnail")},B=function(t,e){return"/api/domain/v2/objects/".concat(t,"/thumbnail/").concat(e)},q=function(t,e,n){var r=["query={".concat(e,"}").concat(u.A.LIBRARY_FOLDERS)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(t,"/categories?").concat(r.join("&"))},G=function(){return"libraries"},W=function(){return"hosted:libraries"},Y=function(t){return"exchange:".concat(t)},J=function(t){return"".concat(u.f.FOLDER,":").concat(t)},$=function(t){return"library:".concat(t)},K=function(t){return"library:status:".concat(t)},Q={libraries:function(t){return new y.a(t,{parse:!0})},folders:function(t){return new d.a(t.data)},folder:function(t){return new l.a(t)},library:function(t){return new f.a(t)}},Z=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}(c,t);var e,n,i,a=P(c);function c(){return C(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"clearLibrariesCache",value:function(){this.invalidateCache([G()])}},{key:"getLibraries",value:function(t){return this.get({expiryTime:v.a.STANDARD,callback:t,resource:T(),formatData:Q.libraries,eventPrefix:G()})}},{key:"getHostedLibraries",value:function(t){return this.get({expiryTime:v.a.STANDARD,callback:t,resource:D(),formatData:Q.libraries,eventPrefix:W()})}},{key:"getExchange",value:function(t,e){return this.get({expiryTime:v.a.STANDARD,callback:e,resource:L(t),formatData:Q.libraries,eventPrefix:Y(t)})}},{key:"getFolder",value:function(t,e){return this.get({callback:e,expiryTime:v.a.STANDARD,resource:A(t),formatData:Q.folder,eventPrefix:J(t)})}},{key:"getFolderFromLibraries",value:function(t,e){this.getLibraries((function(n){e(g.a.getModelFromCollection(t,n))}))}},{key:"addFolder",value:function(t,e,n,r){var i,a=this,c=t.pick("name");this.chain().create({expiryTime:v.a.STANDARD,data:c,resource:N(e,n),formatData:Q.folder,eventPrefix:J(),callback:function(t){return i=t}}).func((function(){a.invalidateCache([u.f.LIBRARY_FOLDERS]),a.getLibraries((function(t){n?g.a.addFolder(i,n,t):g.a.addFolderToLibrary(i,e,t),o.Radio.channel(a.channelName).trigger("folder:created",i),r(i)}))})).run()}},{key:"updateFolder",value:function(t,e){var n=this,o=t.get("id"),i=t.pick(["id","name"]);this.getFolder(o,(function(a){var c,s=a.banner;n.chain().update({resource:I(o),data:i,callback:function(t){(c=t).banner=s},formatData:Q.folder,expiryTime:v.a.STANDARD,eventPrefix:J(o)}).func((function(){n.clearLibraryFoldersCache(),n.getLibraries((function(n){g.a.getModelFromCollection(t.get("id"),n).set(i),r.isFunction(e)&&e(c)}))})).run()}))}},{key:"moveFolder",value:function(t,e,n,o){var i,a=this,c="folder:delete:".concat(t);this.chain().create({resource:V(),eventPrefix:c,formatData:Q.folder,data:{oldCollectionId:n,newCollectionId:e,assocType:"has",objectIds:[t]},callback:function(t){return i=t},successHandler:this.alertService.success(O.a.getPhrase(this.lang,"folderMoveSuccess"))}).func((function(){a.clearLibraryFoldersCache(),a.getLibraries((function(a){var c=g.a.getModelFromCollection(n,a),s=g.a.getModelFromCollection(e,a),u=g.a.getModelFromCollection(t,a);c&&c.children.remove(u),s?s.children.add(u):a.add(u),r.isFunction(o)&&o(i)}))})).run()}},{key:"deleteFolder",value:function(t,e){var n=this;this.chain().delete({resource:j(t),eventPrefix:"".concat(J(t),":delete")}).func((function(){n.clearLibraryFoldersCache(),n.getLibraries((function(r){var i=g.a.getModelFromCollection(t,r);i&&i.collection&&i.collection.remove(i),o.Radio.channel(n.channelName).trigger("library:deleted"),e()}))})).run()}},{key:"getLibraryFolders",value:function(t,e){var n=w.p.GetFilterFromSort(t.sort),r=q(t.id,n,t.cursor);return this.get({resource:r,formatData:Q.folders,expiryTime:v.a.STANDARD,eventPrefix:t.toString(),callback:e})}},{key:"clearLibraryFoldersCache",value:function(){this.invalidateCache([u.f.LIBRARY_FOLDERS]),o.Radio.channel(u.e.LIBRARY).trigger("clear:library:folder:cache")}},{key:"getLibraryFoldersCursors",value:function(t){return this.getCursors(t.toString())}},{key:"createLibrary",value:function(t,e,n){var i=this,a=e.pick(["name"]);a.status=s.a.Draft,this.create({resource:M(t),eventPrefix:$(),formatData:Q.library,data:a,callback:function(t){i.getLibraries((function(e){e.add(t),o.Radio.channel(i.channelName).trigger("library:created"),r.isFunction(n)&&n(t)}))},successHandler:this.alertService.success(O.a.getPhrase(this.lang,"libraryCreateSuccess")),errorHandler:this.alertService.error(O.a.getPhrase(this.lang,"libraryCreateError"))})}},{key:"updateLibrary",value:function(t,e){var n=this,o=t.pick(["id","name"]),i=t.get("id");this.update({resource:U(i),eventPrefix:$(i),formatData:Q.library,data:o,successHandler:this.alertService.success(O.a.getPhrase(this.lang,"libraryUpdateSuccess")),errorHandler:this.alertService.error(O.a.getPhrase(this.lang,"libraryUpdateError")),callback:function(i){n.getLibraries((function(n){g.a.getModelFromCollection(t.get("id"),n).set(o),r.isFunction(e)&&e(i)}))}})}},{key:"deleteLibrary",value:function(t,e){var n=this;this.chain().delete({resource:j(t),eventPrefix:"".concat($(t),":delete")}).func((function(){n.getLibraries((function(r){var i=g.a.getModelFromCollection(t,r);i&&i.collection&&i.collection.remove(i),o.Radio.channel(n.channelName).trigger("library:deleted"),e()}))})).run()}},{key:"publishLibrary",value:function(t,e){var n=this,o={status:1};this.update({resource:U(t),eventPrefix:K(t),data:o,successHandler:this.alertService.success(O.a.getPhrase(this.lang,"libraryAvailableSuccess")),errorHandler:this.alertService.error(O.a.getPhrase(this.lang,"libraryAvailableError")),callback:function(){n.getLibraries((function(n){var i=n.get(t);i&&i.set(o),r.isFunction(e)&&e()}))}})}},{key:"addOrUpdateBanner",value:function(t,e){var n=t.folderId,r=t.imageModel,o=t.currentImageId,i={fileId:r.id.toString(),fileIdType:m.e.ImageAPIv1},a=this.chain();o&&a.delete({resource:H(n,o),eventPrefix:u.f.DELETE_FOLDER_BANNER}),a.create({resource:F(n),eventPrefix:"".concat(u.f.UPDATE_FOLDER_BANNER,":").concat(n),data:i,formatData:function(t){return new p.a(t)},invalidationKeys:[J(n)],successHandler:this.alertService.success(O.a.getPhrase(this.lang,"bannerUpdateSuccess")),callback:e}),a.run()}},{key:"deleteBanner",value:function(t,e){this.delete({resource:H(t.folderId,t.imageId),eventPrefix:u.f.DELETE_FOLDER_BANNER,successHandler:this.alertService.success(O.a.getPhrase(this.lang,"bannerRemoveSuccess")),invalidationKeys:[J(t.folderId)],callback:e})}},{key:"addOrUpdateThumbnail",value:function(t,e){var n=this,r=(t.libraryId,t.folderId),o=t.imageModel,i=t.currentImageId,a={fileId:o.id.toString(),fileIdType:m.e.ImageAPIv1},c=this.chain();i&&c.delete({resource:B(r,i),eventPrefix:u.f.DELETE_FOLDER_THUMBNAIL}),c.create({resource:z(r),eventPrefix:"".concat(u.f.UPDATE_FOLDER_THUMBNAIL,":").concat(r),data:a,formatData:function(t){return new h.a(t)},invalidationKeys:[J(r)],successHandler:this.alertService.success(O.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:e}),c.func((function(){n.clearLibraryFoldersCache()})),c.run()}},{key:"deleteThumbnail",value:function(t,e){var n=this;this.delete({resource:B(t.folderId,t.imageId),eventPrefix:u.f.DELETE_FOLDER_THUMBNAIL,successHandler:this.alertService.success(O.a.getPhrase(this.lang,"thumbnailRemoveSuccess")),invalidationKeys:[J(t.folderId)],callback:function(t){n.clearLibraryFoldersCache(),r.isFunction(e)&&e(t)}})}},{key:"deselectAll",value:function(){this.getLibraries((function(t){g.a.deselectAll(S.a.LIBRARY_EDITOR,t)}))}},{key:"setSelected",value:function(t){this.getLibraries((function(e){g.a.setSelected(S.a.LIBRARY_EDITOR,t,e)}))}},{key:"getSelected",value:function(t,e){this.getLibraries((function(t){var n=g.a.getSelected(S.a.LIBRARY_EDITOR,t);e(n)}))}},{key:"name",get:function(){return b.a.Library}},{key:"channelName",get:function(){return u.e.LIBRARY}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&R(e.prototype,n),i&&R(e,i),c}(a.a),X=Object.assign(Object.assign({},c.a),{exchanges:{dataServiceName:b.a.Library,eventName:"".concat(Y(0),":sync"),getData:function(t){return t.getExchange(0)},getInstance:function(t){return i.a.getInstance(b.a.Library,t)},beforeOnBeforeRender:!0}})},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(81);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,r,i=u(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}},{key:"comparator",get:function(){return"name"}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){t.exports={droppable:"_1OOL3",hover:"sCq0c"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(7),o=n(41);class i extends r.Collection{listenTo(...t){return o.a.call(this,t[0],t[1],t[2],super.listenTo)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"a",(function(){return a}));var r=n(19),o={LIBRARY:"library:data:service",VIDEO:"video:data:service",MIGRATION:"migration:data:service",TAG:"tag:data:service",CHAPTER:"chapter:data:service",SERIES:"series:data:service",SEARCH:"search:data:service",STAFF_REQUEST:"staff:request:data:service",CONFIG:"config:data:service",USER:"user:data:service",NOTIFICATIONS:"notifications:data:service",NOTIFICATIONS_SOCKET:"notifications:socket:service",SETTINGS:"settings:data:service",VIDEO_UPLOAD:"video:upload:data:service",IMAGE_UPLOAD:"image:upload:data:service",CUSTOMER:"customer:data:service",EXPORT:"export:data:service",LOCAL_CACHE:"local:cache:data:service",RESTRICTED_VIDEO:"restricted:video:data:service",RATINGS:"ratings:data:service",LANGUAGE:"language:data:service",CONTENT_UPDATES:"content:updates:data:service",DOWNLOAD_PROXY:"download:proxy:data:service",RESOURCE:"resource:data:service",SUBTITLE:"subtitle:data:service",LINK:"link:data:service",COMPANY:"company:data:service",PERSON:"person:data:service",FIELDS:"fields:data:service"},i=Object.assign({PENDING_ITEMS:"pending:items:service",VIDEO_DRAG_DROP:"video:drag:drop:service",FOLDER_DRAG_DROP:"folder:drag:drop:service",SELECTED_VIDEO:"selected:video:service",FOLDER_CACHE:"folder:cache:service",LOCAL_OPTIONS:"local:options:service",VIDEO_MIXIN:"video:mixin:service",PAGE_VISIBILITY:"page:visibility:service",PAGE_TITLE:"page:title:service",CONTEXTUAL_SEARCH:"contextual:search:service"},r.c),a={DEFAULT:"default:application",LIBRARY_EDITOR:"library:editor:application",MIGRATION_WIZARD:"migration:wizard:application",SEARCH:"search:application",NOTIFICATIONS:"notifications:application",VIDEO_ACCESS:"video:access:application",CONTENT_UPDATES:"content:updates:application",STAFF_REQUESTS:"staff:requests:application",DASHBOARD:"dashboard:application",UPLOAD:"upload:application"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={type:n(68).a.Unknown,message:"",code:0}},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(61),a=n(72),c=n(81),s=n(54),u=n(143);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(y,t);var e,n,o,l=d(y);function y(){return f(this,y),l.apply(this,arguments)}return e=y,(n=[{key:"parse",value:function(t){var e=r.omit(t,["sourceCategory","destinationCategory"]);return e.sourceFolder=t.sourceCategory,e.destinationFolder=t.destinationCategory,e}},{key:"associations",get:function(){return{video:i.a,sourceLibrary:c.a,sourceFolder:s.a,destinationLibrary:c.a,destinationFolder:s.a,user:a.a,senderCustomer:u.a}}}])&&p(e.prototype,n),o&&p(e,o),y}(o.a.NestedModel);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=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(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(i,t);var e,n,r,o=O(i);function i(){return v(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"associations",get:function(){return{user:a.a}}}])&&S(e.prototype,n),r&&S(e,r),i}(o.a.NestedModel);n.d(e,"a",(function(){return b})),n.d(e,"b",(function(){return R}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={Dashboard:{HOME:"index"},LibraryEditor:{HOME:"index",LIBRARY:"library",NEW_SUB_FOLDER:"new:sub:folder",RENAME_FOLDER:"rename:folder",MOVE_FOLDER:"move:folder",DELETE_FOLDER:"delete:folder",FOLDER:"folder",SERIES:"series",EDIT_VIDEO:"edit:video",VIDEO_DETAILS:"video:details",SAVE_VIDEO:"save:video",EDIT_VIDEO_CHAPTERS:"edit:video:chapters",EDIT_VIDEO_RESOURCES:"edit:video:resources",EDIT_RESOURCE:"edit:resource",NEW_LIBRARY:"new:library",DELETE_LIBRARY:"delete:library",RENAME_LIBRARY:"rename:library",UPLOAD_THUMBNAIL:"upload:thumbnail",UPLOAD_BANNER:"upload:banner",GENERATE_PDF:"generate:pdf",SUGGEST_AN_EDIT:"suggest:an:edit",EDIT_FOLDER_IMAGES:"edit:folder:images",SHOW_PUBLISHER_VIDEO:"show:publisher:video",EDIT_LINK:"edit:link",NEW_SEASON:"new:season",ADD_TO_EXCHANGE:"add:to:exchange"},VideoAccess:{HOME:"index"},Search:{HOME:"index"},MigrationWizard:{HOME:"index",SHOW_PUBLISHER_VIDEO:"show:publisher:video",FOLDER:"folder",SEARCH:"search",SELECTED:"selected",SMART:"smart",PROGRESS:"progress",BACKUP_WELCOME:"backup:welcome",BACKUP_DOWNLOAD:"backup:download",BACKUP_PROGRESS:"backup:progress",BACKUP_COMPLETE:"backup:complete",START_MIGRATION:"start:migration",VIDEOS_ADDED:"videos:added",REMIGRATE_VIDEO:"remigrate:video",PUBLISH_LIBRARY_PROGRESS:"publish:library:progress",PUBLISH_LIBRARY_COMPLETE:"publish:library:complete",MIGRATION_ERRORS:"migration:errors",GENERATE_CSV_REPORT:"generate:csv:report"},ContentUpdates:{HOME:"index",AWAITING_REVIEW:"awaiting:review",PAST_RELEASES:"past:releases",DISABLE_REVIEW:"disable:review",GENERATE_PDF:"generate:pdf",ADD_TO_LIBRARY:"add:to:library"},StaffRequests:{HOME:"index",EDIT_REQUEST:"edit:request",APPROVE_REQUEST:"approve:request",REJECT_REQUEST:"reject:request"},Upload:{FILE_SELECTION:"file:selection",UPLOAD_DETAILS:"upload:details",UPLOAD_COMPLETE:"upload:complete"},Default:{HOME:"index",ERROR:"error",NOT_FOUND:"not:found",DEV_ERROR:"dev:error"},Shared:{SHARE_VIDEO:"share:video",MOVE_VIDEOS:"move:videos",DELETE_VIDEOS:"delete:videos",BULK_CHECKBOX_CHANGE:"bulk:checkbox:change",NEW_FOLDER:"new:folder",MANAGE_VIDEO_ACCESS:"manage:video:access",DOWNLOAD_VIDEO:"download:video",DOWNLOAD_TO_LOCAL_CACHE:"download:to:local:cache",MAKE_LIBRARY_AVAILABLE:"make:library:available"},Notifications:{HOME:"index"}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));class r{constructor(t){this.value=t}increment(){this.value+=1}decrement(){this.value-=1}getValue(){return this.value}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e){t.exports=a},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var r=n(3),o=n(13),i=n(43),a=n(50);const c="notifications.utils",s=/^marketing-/,u={getIconColor:t=>{switch(t){case a.a.Success:return"success";case a.a.Alert:return"danger";case a.a.Warning:return"warning";case a.a.Info:case a.a.Other:default:return"dark"}},getIcon:t=>{switch(t){case a.a.Success:return o.b.CheckCircle;case a.a.Alert:case a.a.Warning:return o.b.Warning;case a.a.Info:case a.a.Other:default:return o.b.Info}},getIconColorByNotificationType:t=>t===i.a.VideoProcessingFailed||t===i.a.VideoRequestDenied?"danger":t.match(s)?"warning":void 0,getIconByNotificationType:t=>{if(t.match(s))return o.b.Star},getNotificationAction:t=>{switch(t){case i.a.VideoReviewAddedToLibrary:case i.a.WorkspaceVideoAvailable:case i.a.ExchangeVideoAvailable:case i.a.EditedVideoAvailable:return r.a.getPhrase(c,"viewVideo");case i.a.VideoReviewReminder:return r.a.getPhrase(c,"reviewVideos");case i.a.VideoReviewAddedToLibrary:return r.a.getPhrase(c,"viewNewContent");case i.a.CustomLibraryVideoAvailable:return r.a.getPhrase(c,"viewVideoDetails");case i.a.StaffRequest:return r.a.getPhrase(c,"reviewVideo");default:return r.a.getPhrase(c,"seeNow")}}}},function(t,e,n){t.exports={contentContainerWithBulkActions:"_1OZCN",thumbnailContainer:"_35XrM",metaContainer:"_1-L5x",titleContainer:"_3nfiJ"}},function(t,e,n){t.exports={dropMask:"ZO89K",dropContent:"_1EbzE",dropArea:"_3ucfy",dragOver:"_2D_ox",border:"_3sQtM"}},function(t,e,n){t.exports={leftNav:"_2r3wp",topNav:"_2tPrC",contentBox:"gzfZN",leftNavContentBox:"_1yUOQ",sizingBox:"_2Rol1",alertBox:"_1TUsf",alertBoxWithIntercom:"QDngA",lockedWidth:"_1XHqq"}},function(t,e,n){"use strict";var r,o,i,a,c;!function(t){t[t.SingleFile=1]="SingleFile",t[t.HasChapters=2]="HasChapters",t[t.Concatenating=3]="Concatenating",t[t.ConcatenationFailed=4]="ConcatenationFailed",t[t.New=5]="New",t[t.MediaNotFound=6]="MediaNotFound"}(r||(r={})),function(t){t[t.Link=1]="Link",t[t.Edit=2]="Edit",t[t.Disabled=3]="Disabled",t[t.Filter=4]="Filter"}(o||(o={})),function(t){t[t.Flex=1]="Flex",t[t.Vertical=2]="Vertical"}(i||(i={})),function(t){t[t.Customer=1]="Customer",t[t.ClickView=2]="ClickView"}(a||(a={})),function(t){t[t.Folder=0]="Folder",t[t.Series=1]="Series"}(c||(c={})),n.d(e,"a",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"d",(function(){return i})),n.d(e,"b",(function(){return a})),n.d(e,"e",(function(){return c}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={MAX_FOLDER_DEPTH:7,POPUP_FADE_TIMEOUT:0}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(1),o=n(53),i=n(92);class a extends o.a{set(t,e,n){let o,i;if(null===t)return this;for(o in"object"==typeof t?(i=t,n=e):(i={},i[t]=e),n||(n={}),i)r.has(this.associations,o)&&(i[o]=this.setAssociation(o,i[o],n));return super.set.call(this,i,n)}get(t){var e=t.indexOf(".");if(-1===e)return super.get.call(this,t);const n=t.substr(0,e),o=this.attributes[n];if(!o||!r.isFunction(o.get))return super.get.call(this,t);const i=t.substr(e+1);return o.get(i)}setAssociation(t,e,n){const a=this.associations[t],c=this.attributes[t];if(!r.isFunction(a))return e;if(n.unset)return c&&delete c.parent,delete this[t],c;if(c)return c instanceof o.a&&c.set(e,n),c instanceof i.a&&c.set(e,n),n.silent||this.trigger("change:"+t,this,e,n),c;const s=e instanceof o.a?e:new a(e,{parse:!0});return s.parent=this,this[t]=s,s}toJSON(...t){const e=super.toJSON.apply(this,t);return r.each(this.associations,(t,n)=>{r.has(e,n)&&r.isFunction(e[n].toJSON)?e[n]=e[n].toJSON():e[n]=(new t).toJSON()}),e}toFlatJSON(...t){return r.omit(super.toJSON.apply(this,t),r.keys(this.associations))}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(6),o="categories{libraries.typeid:".concat(r.i.CustomMediaObjectCollection,"}"),i={VIDEO_COLLECTION:"series,season,rating,thumbnail,".concat(o,",libraries,interactives{limit:1},")+"subtitles{limit:1},resources{limit:1},links{limit:1}",HOSTED_VIDEO_COLLECTION:"series,season,rating,thumbnail,categories,libraries,channel,interactives{limit:1},subtitles{limit:1},resources{limit:1},links{limit:1}",VIDEO:"series[seasons{orderby:number}],season,rating,thumbnail,".concat(o,",producers,distributors,libraries,")+"channel,chapters{limit:100},interactives{limit:100},resources[customer],subtitles[customer],tags[customer],productionCompanies,directors,links[customer],fields",FOLDER:"banner,thumbnail",SERIES:"seasons{orderby:number}",LIBRARY_FOLDERS:"thumbnail"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(3),o="generic",i="shared.constants",a={generic:function(){return r.a.getPhrase(i,"dataServiceErrorGeneric")},"video_forbidden.rating_access":function(){return r.a.getPhrase(i,"dataServiceErrorForbiddenRatingAccess")}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return p})),n.d(e,"a",(function(){return h}));var r=n(1);const o=["pdf"],i=["doc","docx","dotx","dot","rtf","docm","odt"],a=["csv","txt"],c=["xls","xlt","xlsx"],s=["jpg","tif","png","bmp","gif","jpeg"],u=["zip","rar"],l=["ppt","pot","pps","pptx"],f=["srt"],p={IMAGES:"."+s.join(",."),RESOURCES:"."+[...i,...c,...l,...o,...a,...s,...u].join(",."),SUBTITLES:"."+f.join(",.")},h={getResourceType(t){const e=t.toLowerCase();return r.contains(i,e)?"document":r.contains(c,e)?"excel":r.contains(l,e)?"powerpoint":r.contains(o,e)?"pdf":r.contains(a,e)?"text":r.contains(s,e)?"image":r.contains(u,e)?"archive":r.contains(f,e)?"subtitle":""}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return s}));var r,o,i=n(1);function a(t,e){var n="spinner";return t===r.Small&&(n="".concat(n,"-sm")),t===r.Medium&&(n="".concat(n,"-md")),t===r.Large&&(n="".concat(n,"-lg")),e===o.Standard&&(n="".concat(n,"-std")),e===o.Light&&(n="".concat(n,"-light")),e===o.LightBgDark&&(n="".concat(n,"-light-bg-dark")),n}!function(t){t.Small="sm",t.Medium="md",t.Large="lg"}(r||(r={})),function(t){t.Standard="std",t.Light="light",t.LightBgDark="light-bg-dark"}(o||(o={}));var c={size:r.Medium,type:o.Standard,tag:"div"},s={getSpinner:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=i.extend({},c,t),n=e.tag,r=e.size,o=e.type,s=e.extraClasses,u=a(r,o);return s&&(u="".concat(u," ").concat(s)),"<".concat(n,' class="spinner ').concat(u,'"></').concat(n,">")}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"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 o(t,e,n){const r=e.exec(n)||[];let[o,i,a]=r;return a||(a="Unknown"),{browser:t,version:a}}function i(t,e,n){if(!e)return{os:t,version:"Unknown"};const r=e.exec(n);return{os:t,version:r&&r.length?r[0].trim():"Unknown"}}const a={getDeviceType(){const t=window.navigator.userAgent;return r.mobileDevice.test(t)?r.iphone.test(t)?"iPhone":r.ipad.test(t)?"iPad":r.android.test(t)?"Android":r.blackberry.test(t)?"Blackberry":r.windowsPhone.test(t)?"Windows Phone":"Unknown":"Desktop"},getOperatingSystem(){const t=window.navigator.userAgent;return r.linux.test(t)?i("Linux",null,t):r.unix.test(t)?i("Unix",null,t):r.mac.test(t)?i("Macintosh",r.osxVersion,t):r.windows.test(t)?function(t,e){const n={os:t};return r.win2000.test(e)&&(n.version="2000"),r.winXP.test(e)&&(n.version="XP"),r.winVista.test(e)&&(n.version="Vista"),r.win7.test(e)&&(n.version="7"),r.win8.test(e)&&(n.version="8"),r.win81.test(e)&&(n.version="8.1"),r.win10.test(e)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",t):r.iphone.test(t)||r.ipad.test(t)?i("iOS",r.iosVersion,t):r.android.test(t)?i("Android",r.androidVersion,t):r.blackberry.test(t)?i("Android",r.blackberryVersion,t):r.windowsPhone.test(t)?i("Android",r.windowsPhoneVersion,t):{os:"Unknown",version:"Unknown"}},getBrowser(){const t=window.navigator.userAgent;return r.chrome.test(t)?o("Chrome",r.generalVersion,t):r.firefox.test(t)?o("Firefox",r.generalVersion,t):r.safari.test(t)?o("Safari",r.generalVersion,t):r.ie.test(t)?o("Internet Explorer",r.ieVersion,t):r.edge.test(t)?o("Edge",r.edgeVersion,t):r.opera.test(t)?o("Opera",r.operaVersion,t):{browser:"Unknown",version:"Unknown"}},isTouchScreen:()=>!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(184);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,r,i=u(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"associations",get:function(){return{seasons:o.a}}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.NestedModel)},function(t,e,n){t.exports={thumbnailContainer:"_1u9bn",thumbnail:"_1CQyt",svgContainer:"_2L1Hd",playSvgContainer:"_17LPb",durationOverlay:"_15X7K"}},function(t,e,n){"use strict";var r,o={CreateChapter:"create:chapter",UpdateChapter:"update:chapter",DeleteChapter:"delete:chapter",CancelChapterEdit:"cancel:chapter:edit",UpdateChapterTime:"update:chapter:time",SortChapters:"sort:chapters",ToggleEdit:"toggle:edit",MergeChapters:"merge:chapters",SeekToChapter:"seek:to:chapter",Save:"save:changes",Undo:"undo:changes",CancelSave:"save:cancel",DisableSave:"disable:save",EnableSave:"enable:save",DetectInput:"detect:input",DetectAssocChange:"detect:assoc:change"},i={VIDEO_LIST:"video:list",MIGRATION_VIDEO_LIST:"migration:video:list"};!function(t){t.VideoTitle="Video Title",t.Description="Description",t.Rating="Rating",t.SeriesTitle="Series Title",t.Season="Season Number",t.EpisodeNumber="Episode Number",t.BroadcastDate="Broadcast Date",t.Channel="Channel",t.ProductionYear="Production Year",t.Distributors="Distributors",t.ProductionCompanies="Production Companies",t.Directors="Directors",t.Producers="Producers",t.Other="Other"}(r||(r={}));var a={VideoTitle:{id:"0",name:r.VideoTitle,property:"name"},Description:{id:"1",name:r.Description,property:"description"},Rating:{id:"2",name:r.Rating,property:"rating.name"},SeriesTitle:{id:"3",name:r.SeriesTitle,property:"series.name"},Season:{id:"4",name:r.Season,property:"season.number"},EpisodeNumber:{id:"5",name:r.EpisodeNumber,property:"episodeNumber"},BroadcastDate:{id:"6",name:r.BroadcastDate,property:"dateBroadcast"},Channel:{id:"7",name:r.Channel,property:"channel.name"},ProductionYear:{id:"8",name:r.ProductionYear,property:"productionYear"},Distributors:{id:"9",name:r.Distributors,property:"distributors",collection:!0},ProductionCompanies:{id:"10",name:r.ProductionCompanies,property:"productionCompanies",collection:!0},Directors:{id:"11",name:r.Directors,property:"directors",collection:!0},Producers:{id:"12",name:r.Producers,property:"producers",collection:!0},Other:{id:"13",name:r.Other}},c=n(0),s=[c.a.LibraryEditor.EDIT_VIDEO,c.a.LibraryEditor.EDIT_VIDEO_CHAPTERS,c.a.LibraryEditor.EDIT_VIDEO_RESOURCES];n.d(e,"d",(function(){return o})),n.d(e,"a",(function(){return i})),n.d(e,"e",(function(){return r})),n.d(e,"f",(function(){return a})),n.d(e,"c",(function(){return"edit:video:back:button"})),n.d(e,"b",(function(){return s}))},function(t,e,n){"use strict";var r=n(12),o=n(5),i=n(0),a=n(6);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(n,t);var e=l(n);function n(){return s(this,n),e.apply(this,arguments)}return n}(n(2).a.Model),d=n(15),y=n(64),g=n(14);function b(t){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=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(t){return!1}}();return function(){var n,r=E(t);if(e){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(t,e){return!e||"object"!==b(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return R}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(c,t);var e,n,r,o=w(c);function c(){return m(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"getConfig",value:function(t){return this.get({resource:"/api/config",formatData:function(t){return new h(t)},eventPrefix:"config",bootstrapName:y.a.CONFIG,callback:t,expiryTime:g.a.STANDARD})}},{key:"getVersion",value:function(t){return this.get({resource:"/api/version",eventPrefix:"version",bootstrapName:y.a.VERSION,callback:t,expiryTime:g.a.STANDARD})}},{key:"getCustomerYearGroups",value:function(t){var e=[a.r.Year1,a.r.Year2,a.r.Year3,a.r.Year4,a.r.Year5,a.r.Year6,a.r.Year7,a.r.Year8,a.r.Year9,a.r.Year10,a.r.Year11,a.r.Year12];switch(t){case a.b.AU:return[a.r.Kindergarten].concat(e);case a.b.UK:case a.b.NZ:return[].concat(e,[a.r.Year13]);default:return e}}},{key:"name",get:function(){return d.a.Config}},{key:"channelName",get:function(){return i.e.CONFIG}}])&&v(e.prototype,n),r&&v(e,r),c}(r.a),R={config:{dataServiceName:i.e.CONFIG,eventName:"config:sync",getData:function(t){return t.getConfig()},getInstance:function(t){return o.a.getInstance(d.a.Config,t)},beforeOnBeforeRender:!0}}},function(t,e,n){"use strict";var r=n(9),o=n(16);n(94);var i=n(28);class a extends class{constructor(t){this.setData(t)}setData(t){const{collectionPrefix:e,id:n,sort:r,cursor:o}=t;n&&(this.id=n),r&&(this.sort=r),o&&(this.cursor=o),e&&(this.collectionPrefix=e)}toString(){return[this.collectionPrefix,this.id,this.sort,this.cursor].filter(Boolean).join(":")}toParams(){const t={};return this.sort&&(t.sort=this.getSortTypeParam().toLowerCase()),this.cursor&&(t.cursor=this.cursor),t}getSortTypeParam(){return r.c.throw(new o.a("getSortTypeParam must be implemented when extending BaseCollectionIdentifier")),""}}{getSortTypeParam(){return i.a[this.sort]}}n.d(e,"a",(function(){return a}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(120),o=n(0);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(n,t);var e=s(n);function n(t,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return a(this,n),e.call(this,{collectionPrefix:"".concat(o.f.VIDEOS,":collection"),id:t,sort:r,cursor:i})}return n}(r.a)},function(t,e,n){"use strict";var r=n(25),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f="libraryEditor.errors.folderEmpty",p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(u,t);var e,n,r,i=s(u);function u(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),(e=i.call(this,"Folder is empty")).action=t,e}return e=u,(n=[{key:"name",get:function(){return"FolderEmptyError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase(f,"folderNoVideosTitle"),text:o.a.getPhrase(f,"folderNoVideosBody",{action:this.action}),buttons:[{text:o.a.getPhrase(f,"close"),className:"btn btn-link",close:!0}]}}}])&&a(e.prototype,n),r&&a(e,r),u}(r.a);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(a,t);var e,n,r,i=g(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Folder is not empty")}return e=a,(n=[{key:"name",get:function(){return"FolderNotEmptyError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.folderNotEmpty","title"),text:o.a.getPhrase("libraryEditor.errors.folderNotEmpty","instructions"),buttons:[{text:o.a.getPhrase("libraryEditor.errors.folderNotEmpty","close"),className:"btn btn-link",close:!0}]}}}])&&d(e.prototype,n),r&&d(e,r),a}(r.a),S=n(0);function w(t){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function O(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=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(t){return!1}}();return function(){var n,r=k(t);if(e){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==w(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function k(t){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var P=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(a,t);var e,n,r,i=C(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Subfolder cannot be added")}return e=a,(n=[{key:"name",get:function(){return"FolderMaxDepthError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.folderMaxDepth","title"),text:o.a.getPhrase("libraryEditor.errors.folderMaxDepth","instructions",{maxDepth:S.s.MAX_FOLDER_DEPTH}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.folderMaxDepth","close"),className:"btn btn-link",close:!0}]}}}])&&O(e.prototype,n),r&&O(e,r),a}(r.a),_=n(29);function x(t){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function L(t){var e=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(t){return!1}}();return function(){var n,r=N(t);if(e){var o=N(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return A(this,n)}}function A(t,e){return!e||"object"!==x(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}(a,t);var e,n,r,i=L(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Folder not found")}return e=a,(n=[{key:"name",get:function(){return"FolderNotFoundError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.folderNotFound","info")}}])&&T(e.prototype,n),r&&T(e,r),a}(_.a);function j(t){return(j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function V(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function U(t){var e=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(t){return!1}}();return function(){var n,r=H(t);if(e){var o=H(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return F(this,n)}}function F(t,e){return!e||"object"!==j(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function H(t){return(H=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var z=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M(t,e)}(a,t);var e,n,r,i=U(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"User does not have access to this folder")}return e=a,(n=[{key:"name",get:function(){return"ForbiddenFolderError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.forbiddenFolder","info")}}])&&V(e.prototype,n),r&&V(e,r),a}(_.a),B=n(180);function q(t){return(q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function G(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function W(t,e){return(W=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=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(t){return!1}}();return function(){var n,r=$(t);if(e){var o=$(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return J(this,n)}}function J(t,e){return!e||"object"!==q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $(t){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var K=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&W(t,e)}(a,t);var e,n,r,i=Y(a);function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,"Image too small")).minWidth=t,n.minHeight=e,n}return e=a,(n=[{key:"name",get:function(){return"ImageDimensionsTooSmallError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","title"),text:o.a.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","body",{minWidth:this.minWidth,minHeight:this.minHeight}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.imageDimensionsTooSmall","close"),className:"btn btn-link",close:!0}]}}}])&&G(e.prototype,n),r&&G(e,r),a}(r.a);function Q(t){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Z(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function X(t,e){return(X=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function tt(t){var e=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(t){return!1}}();return function(){var n,r=nt(t);if(e){var o=nt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return et(this,n)}}function et(t,e){return!e||"object"!==Q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function nt(t){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var rt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&X(t,e)}(a,t);var e,n,r,i=tt(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Series not found")}return e=a,(n=[{key:"name",get:function(){return"SeriesNotFound"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.seriesNotFound","title")}}])&&Z(e.prototype,n),r&&Z(e,r),a}(_.a);function ot(t){return(ot="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function it(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function at(t,e){return(at=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ct(t){var e=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(t){return!1}}();return function(){var n,r=ut(t);if(e){var o=ut(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return st(this,n)}}function st(t,e){return!e||"object"!==ot(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ut(t){return(ut=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&at(t,e)}(a,t);var e,n,r,i=ct(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,"Cannot add that many resources")).resourceLimit=t,e}return e=a,(n=[{key:"name",get:function(){return"TooManyResourcesError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.tooManyResources","heading"),text:o.a.getPhrase("libraryEditor.errors.tooManyResources","body",{resourceLimit:this.resourceLimit}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.tooManyResources","okay"),className:"btn btn-primary",success:!0}]}}}])&&it(e.prototype,n),r&&it(e,r),a}(r.a);function ft(t){return(ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function pt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ht(t,e){return(ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dt(t){var e=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(t){return!1}}();return function(){var n,r=gt(t);if(e){var o=gt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yt(this,n)}}function yt(t,e){return!e||"object"!==ft(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gt(t){return(gt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ht(t,e)}(a,t);var e,n,r,i=dt(a);function a(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(e=i.call(this,"Cannot add that many subtitles")).subtileLimit=t,e}return e=a,(n=[{key:"name",get:function(){return"TooManySubtitlesError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.tooManySubtitles","heading"),text:o.a.getPhrase("libraryEditor.errors.tooManySubtitles","body",{subtitleLimit:this.subtileLimit}),buttons:[{text:o.a.getPhrase("libraryEditor.errors.tooManySubtitles","okay"),className:"btn btn-primary",success:!0}]}}}])&&pt(e.prototype,n),r&&pt(e,r),a}(r.a),mt=n(181);function vt(t){return("function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function St(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wt(t,e){return(Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ot(t){var e=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(t){return!1}}();return function(){var n,r=Ct(t);if(e){var o=Ct(this).constructor;Reflect.construct(r,arguments,o)}else r.apply(this,arguments);return Et(this,n)}}function Et(t,e){return!e||"object"!==vt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ct(t){return(Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}_.a;function Rt(t){return(Rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Pt(t,e){return(Pt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function _t(t){var e=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(t){return!1}}();return function(){var n,r=Tt(t);if(e){var o=Tt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return xt(this,n)}}function xt(t,e){return!e||"object"!==Rt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Tt(t){return(Tt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Dt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Pt(t,e)}(a,t);var e,n,r,i=_t(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Library has subscribers so it cannot be deleted")}return e=a,(n=[{key:"name",get:function(){return"LibraryHasSubscribersError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.libraryHasSubscribers","title"),text:o.a.getPhrase("libraryEditor.errors.libraryHasSubscribers","body"),buttons:[{text:o.a.getPhrase("libraryEditor.errors.libraryHasSubscribers","close"),className:"btn btn-link",close:!0}]}}}])&&kt(e.prototype,n),r&&kt(e,r),a}(r.a);function Lt(t){return(Lt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function At(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nt(t,e){return(Nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function It(t){var e=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(t){return!1}}();return function(){var n,r=Vt(t);if(e){var o=Vt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jt(this,n)}}function jt(t,e){return!e||"object"!==Lt(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vt(t){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Mt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nt(t,e)}(a,t);var e,n,r,i=It(a);function a(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,"Library is not empty")}return e=a,(n=[{key:"name",get:function(){return"LibraryNotEmptyError"}},{key:"dialogOptions",get:function(){return{title:o.a.getPhrase("libraryEditor.errors.libraryNotEmpty","title"),text:o.a.getPhrase("libraryEditor.errors.libraryNotEmpty","body"),buttons:[{text:o.a.getPhrase("libraryEditor.errors.libraryNotEmpty","close"),className:"btn btn-link",close:!0}]}}}])&&At(e.prototype,n),r&&At(e,r),a}(r.a);function Ut(t){return(Ut="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ft(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ht(t,e){return(Ht=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zt(t){var e=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(t){return!1}}();return function(){var n,r=qt(t);if(e){var o=qt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bt(this,n)}}function Bt(t,e){return!e||"object"!==Ut(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qt(t){return(qt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Gt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ht(t,e)}(a,t);var e,n,r,i=zt(a);function a(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),(n=i.call(this,"Cannot create any more custom libraries.")).libraryCount=t,n.maxCustomLibraries=e,n}return e=a,(n=[{key:"pluralise",value:function(t){return o.a.getPhrase("libraryEditor.errors.maxCustomLibraries","library",{smartCount:t})}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.maxCustomLibraries","title")}},{key:"description",get:function(){return o.a.getPhrase("libraryEditor.errors.maxCustomLibraries","info",{libraryCount:this.pluralise(this.libraryCount),maxCustomLibraries:this.pluralise(this.maxCustomLibraries)})}}])&&Ft(e.prototype,n),r&&Ft(e,r),a}(_.a);n.d(e,"a",(function(){return p})),n.d(e,"c",(function(){return v})),n.d(e,"b",(function(){return P})),n.d(e,"d",(function(){return I})),n.d(e,"e",(function(){return z})),n.d(e,"f",(function(){return B.a})),n.d(e,"g",(function(){return K})),n.d(e,"k",(function(){return rt})),n.d(e,"l",(function(){return lt})),n.d(e,"m",(function(){return bt})),n.d(e,"n",(function(){return mt.a})),n.d(e,"h",(function(){return Dt})),n.d(e,"i",(function(){return Mt})),n.d(e,"j",(function(){return Gt}))},function(t,e,n){"use strict";var r,o,i,a;n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return o})),function(t){t.Small="small",t.Medium="medium",t.Large="large"}(r||(r={})),function(t){t[t.Thumbnails=0]="Thumbnails",t[t.Banners=1]="Banners",t[t.Avatars=2]="Avatars",t[t.Logos=3]="Logos",t[t.Covers=4]="Covers",t[t.Posters=5]="Posters",t[t.TallPosters=6]="TallPosters",t[t.HeroBanners=7]="HeroBanners"}(o||(o={})),function(t){t[t.Crop=0]="Crop",t[t.Stretched=1]="Stretched",t[t.Cover=2]="Cover"}(i||(i={})),function(t){t[t.None=0]="None",t[t.ImageAPIv1=1]="ImageAPIv1",t[t.FileAPIv1=2]="FileAPIv1",t[t.ImageAPIv2=3]="ImageAPIv2"}(a||(a={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return g}));var r=n(2),o=n(7),i=n(52),a=n(141),c=n(6),s=n(31);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(y,t);var e,n,u,d=h(y);function y(){return l(this,y),d.apply(this,arguments)}return e=y,(n=[{key:"initialize",value:function(){this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock),!1!==this.options.acceptMultiple&&(this.options.acceptMultiple=!0)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(t){if(!this.locked){t.preventDefault();var e=t.originalEvent;if(a.a.isFileDrag(t)){var n=[];if(e.dataTransfer.items)for(var u=0;u<e.dataTransfer.items.length;u++)"file"===e.dataTransfer.items[u].kind&&n.push(e.dataTransfer.items[u].getAsFile());else for(var l=0;l<e.dataTransfer.files.length;l++){var f=e.dataTransfer.files[l];n.push(f)}n.length>1&&!this.options.acceptMultiple&&r.a.ErrorHelper.throw(new i.f),o.Radio.channel(this.options.channelName).trigger(s.a.FILES_SELECTED,n,c.g.DragDrop),e.dataTransfer.items?e.dataTransfer.items.clear():e.dataTransfer.clearData()}}}},{key:"events",get:function(){return{drop:"onDrop",drag:"onDrag"}}}])&&f(e.prototype,n),u&&f(e,u),y}(r.a.Behavior)},function(t,e,n){"use strict";n.d(e,"a",(function(){return b}));var r=n(2),o=n(7),i=n(366),a=n.n(i),c=n(6),s=n(31);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function f(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(u,t);var e,n,r,i=d(u);function u(){return f(this,u),i.apply(this,arguments)}return e=u,(n=[{key:"events",value:function(){var t;return l(t={},"click ".concat(this.options.buttonSelector),"onClickSelect"),l(t,"change .file-select","onChangeFileSelect"),t}},{key:"onClickSelect",value:function(t){this.view.$el.find(".file-select").val(null),this.view.$el.find(".file-select").click()}},{key:"onChangeFileSelect",value:function(t){var e=t.originalEvent.target.files;e&&e.length&&o.Radio.channel(this.options.channelName).trigger(s.a.FILES_SELECTED,e,c.g.FileSelect)}},{key:"onRender",value:function(){this.$el.find(this.options.buttonSelector).after(a()(this.options))}}])&&p(e.prototype,n),r&&p(e,r),u}(r.a.Behavior)},function(t,e,n){"use strict";e.__esModule=!0,e.inherits=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Object.create(t.prototype);for(var o in n)r[o]=n[o];return r.constructor=e,e.prototype=r,e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={ManageLayout:"ManageLayout"}},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(2),o=n(25),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="shared.oldVersion",h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,o,a=u(l);function l(t,e){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase(p,"title",{oldVersion:t,newVersion:e}))}return e=l,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"OldVersionError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),o&&c(e,o),l}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(2),o=n(25),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="shared.authentication",h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,o,a=u(l);function l(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,i.a.getPhrase(p,"title"))}return e=l,(n=[{key:"onDone",value:function(){r.a.LocationUtils.Reload()}},{key:"name",get:function(){return"AuthenticationError"}},{key:"dialogOptions",get:function(){return{title:i.a.getPhrase(p,"heading"),text:i.a.getPhrase(p,"body"),buttons:[{text:i.a.getPhrase(p,"reload"),className:"btn btn-primary",success:!0}]}}}])&&c(e.prototype,n),o&&c(e,o),l}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return h}));var r=n(1),o=n(29),i=n(3);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p="shared.forbiddenAccess",h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,o,a=u(l);function l(t,e){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(n=a.call(this,i.a.getPhrase(p,"title"))).acceptedRoles=t,n.redirectUrl=e,n}return e=l,(n=[{key:"getRolesString",value:function(){if(1===this.acceptedRoles.length)return i.a.getPhrase(p,"acceptedRole",{role:this.acceptedRoles[0]});if(2===this.acceptedRoles.length)return i.a.getPhrase(p,"acceptedRoles",{role1:this.acceptedRoles[0],role2:this.acceptedRoles[1]});var t="";return r.each(this.acceptedRoles.slice(0,this.acceptedRoles.length-1),(function(e){t+=i.a.getPhrase(p,"rolesJoin",{role:e})})),"\n ".concat(t," ").concat(i.a.getPhrase(p,"and")," ").concat(this.acceptedRoles[this.acceptedRoles.length-1]).concat(i.a.getPhrase(p,"s"),"\n ")}},{key:"name",get:function(){return"ForbiddenAccessError"}},{key:"heading",get:function(){return i.a.getPhrase(p,"heading",{roles:this.getRolesString()})}},{key:"description",get:function(){return i.a.getPhrase(p,"goToClickView",{redirectUrl:this.redirectUrl,linkClasses:"info-link"})}}])&&c(e.prototype,n),o&&c(e,o),l}(o.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(2),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(u,t);var e,n,r,i=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,o.a.getPhrase("shared.notFound","title"))}return e=u,(n=[{key:"name",get:function(){return"NotFoundError"}}])&&a(e.prototype,n),r&&a(e,r),u}(r.a.SilentError)},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(2),o=n(103),i=n.n(o),a=n(365),c=n.n(a),s=n(141),u=n(3),l=n(31);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(a,t);var e,n,r,o=y(a);function a(){return p(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,l.a.FILES_SELECTED,this.onDragLeave),this.listenTo("file:drop:lock","lock",this.lock),this.listenTo("file:drop:lock","unlock",this.unlock)}},{key:"lock",value:function(){this.locked=!0}},{key:"unlock",value:function(){this.locked=!1}},{key:"onDrop",value:function(){this.locked||this.$el.removeClass(i.a.dragOver)}},{key:"onDragOver",value:function(t){this.locked||s.a.isFileDrag(t)&&(this.$el.addClass(i.a.dragOver),t.preventDefault())}},{key:"onDragLeave",value:function(){this.locked||this.$el.removeClass(i.a.dragOver)}},{key:"onRender",value:function(){this.$el.append(c()({styles:i.a,fileDropText:u.a.getPhrase(this.lang,"fileDrop")}))}},{key:"events",get:function(){var t,e,n,r="dragleave .".concat(i.a.dropArea);return n="onDragLeave",(e=r)in(t={drop:"onDrop",dragover:"onDragOver"})?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},{key:"lang",get:function(){return"shared.behaviors.fileDrop"}}])&&h(e.prototype,n),r&&h(e,r),a}(r.a.Behavior)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.NestedModel)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(71);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(l,t);var e,n,o,u=s(l);function l(){return i(this,l),u.apply(this,arguments)}return e=l,(n=[{key:"model",get:function(){return r.a}}])&&a(e.prototype,n),o&&a(e,o),l}(n(2).a.Collection)},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var r=n(37),o=n(3),i=n(0),a=n(11),c="shared.alerts",s={updatedVideoAlert:function(t){return{heading:o.a.getPhrase(c,"updateVideoHeading"),message:o.a.getPhrase(c,"updateVideoMessage",{videoName:t}),type:r.a.Success}},updatedChaptersAlert:function(t){return{heading:o.a.getPhrase(c,"updateChaptersHeading"),message:o.a.getPhrase(c,"updateChaptersMessage",{videoName:t}),type:r.a.Success}},moveVideoAlert:function(t,e,n,s,u){return{heading:o.a.getPhrase(c,"moveVideoHeading",{smartCount:s}),message:o.a.getPhrase(c,"moveVideoMessage",{smartCount:s,sourceFolder:a.v.escapeExpression(t),destinationFolder:a.v.escapeExpression(e),videoName:a.v.escapeExpression(u)}),type:r.a.Success,appLinkText:o.a.getPhrase(c,"appLink",{destinationFolder:e}),appLink:{application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.FOLDER,args:[n]}}},addVideoToLibraryAlert:function(t,e){var n=t.get("name"),s=e.get("name");return{heading:o.a.getPhrase(c,"addVideoHeading"),message:o.a.getPhrase(c,"addVideoMessage",{videoName:a.v.escapeExpression(n),folderName:a.v.escapeExpression(s)}),type:r.a.Success,appLinkText:o.a.getPhrase(c,"appLink",{destinationFolder:s}),appLink:{application:i.b.LIBRARY_EDITOR,action:i.a.LibraryEditor.FOLDER,args:[e.get("id")]}}}}},function(t,e,n){"use strict";var r,o=n(2),i=n(3),a=n(178);!function(t){t[t.Notifications=0]="Notifications"}(r||(r={}));var c=n(5),s=n(40),u=n(154),l=n.n(u);const f={[r.Notifications]:t=>{const e={imageUrl:c.a.getInstance(s.a.NOTIFICATIONS).notificationsEmptyStateUrl,heading:t.options.componentOptions.noNotificationsText,customClass:`${l.a.paddedContainer} ${t.options.componentOptions.customClass}`,customImageClass:"sm"===t.options.componentOptions.imageSize?l.a.imageSmall:l.a.imageLarge};return c.a.releaseInstance(s.a.NOTIFICATIONS),e}};var p,h,d=n(7),y=n(23),g=n(13),b=n(19),m=n(101),v=n(78),S=n(146),w=n(50),O=n(1),E=n(299);function C(){return c.a.getInstance(s.a.NOTIFICATIONS,this)}function R(t,e,n){return t===h.Module?function(t,e){const n=C();return e===p.ContentUpdates?n.appLinks.pastReleases:e===p.LibraryReview?n.appLinks.awaitingReview:void 0}(0,e):t===h.Video?function(t,e,n){return Object.assign(Object.assign({},C().appLinks.videoDetails),{args:[e]})}(0,e):t===h.StaffRequest?function(t,e,n){return Object.assign(Object.assign({},C().appLinks.editStaffRequest),{args:[e],params:{referrer:E.a.Notification}})}(0,e):void 0}!function(t){t.LibraryReview="libraryreview",t.ContentUpdates="newcontent"}(p||(p={})),function(t){t.Video="video",t.Url="url",t.Module="module",t.App="app",t.StaffRequest="staff_request"}(h||(h={}));const k=t=>O.contains(C().notificationTypesWithAppLinks,t),P=(t,e)=>{if(!t||!e)return;const[n,r]=t.split(":");return R(n,r)};var _=n(167),x=n.n(_),T=n(378),D=n.n(T);class L extends o.a.Component{constructor(t){super(t)}initialize(){this.listenTo(this.model,"change:notificationStatus",this.updateReadStatus)}get name(){return"NotificationItemComponent"}get template(){return D.a}get tagName(){return"a"}get attributes(){return this.getAppLink()?{}:{href:this.model.get("link"),target:"_blank"}}get className(){return`notification ${x.a.item} px-1 py-2 ${this.getReadStatus()}`}events(){return{click:"onClick"}}onClick(t){return d.Radio.channel(b.a.NOTIFICATIONS).trigger(S.a.Read,this.model.get("id")),this.model.set("notificationStatus",v.a.Read),!0}get appLinks(){const t=this.getAppLink();return t?{"[this]":t}:{}}getAppLink(){const t=this.model.get("appLink");if(!t)return null;const e=this.model.get("notificationType");return k(e)?P(t,e):null}updateReadStatus(){this.$el.removeClass("unread read").addClass(this.getReadStatus())}getReadStatus(){switch(this.model.get("notificationStatus")){case v.a.Read:return"read";default:case v.a.Received:return"unread"}}viewOptions(){const t=m.a.getIconColorByNotificationType(this.model.get("notificationType"))||m.a.getIconColor(this.model.get("alertType")),e=m.a.getIconByNotificationType(this.model.get("notificationType"))||m.a.getIcon(this.model.get("alertType"));return{content:this.model.get("body")||this.model.get("name"),notificationTime:y(this.model.get("dateCreated")).fromNow(),icon:g.a.getSvg(e),iconClass:"text-"+t,styles:x.a,showActionText:this.options.showActionText&&this.model.get("alertType")!==w.a.Warning,actionText:m.a.getNotificationAction(this.model.get("notificationType"))}}}var A,N=n(379),I=n.n(N);n.d(e,"a",(function(){return A})),n.d(e,"b",(function(){return V})),function(t){t[t.Default=0]="Default",t[t.Popover=1]="Popover"}(A||(A={}));class j extends o.a.ComponentCollection{constructor(t){super(t)}get name(){return"NotificationComponentCollection"}get className(){return this.options.isPopover&&"popover-list-body-sm"}get childView(){return L}get childViewOptions(){return{showActionText:!this.options.isPopover}}}class V extends o.a.Component{constructor(t){super(t)}get name(){return"NotificationListComponent"}get template(){return I.a}get lang(){return"notifications.notificationList"}regions(){return{notifications:{el:".notifications-region",replaceElement:!0}}}get behaviors(){return[{behaviorClass:a.a,region:"notifications",type:r.Notifications,componentOptions:this.getEmptyStateComponentOptions(),emptyStateComponents:f}]}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 j(this.options))}}},function(t,e,n){"use strict";var r=n(7),o=n(2),i=n(10),a=n(1),c=n(173),s=n(369),u=n.n(s);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e){return(p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&p(t,e)}(i,t);var e,n,r,o=h(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"events",value:function(){this.createClickHandlers();var t={};return a.each(this.options.buttons,(function(e,n){t["click .dialog-button-".concat(n)]="onClickButton".concat(n)})),t}},{key:"createClickHandlers",value:function(){var t=this;this.clickHandlersCreated||(a.each(this.options.buttons,(function(e,n){t["onClickButton".concat(n)]=e.success?function(){return t.onDone(e)}:function(){return t.onFail()}})),this.clickHandlersCreated=!0)}},{key:"reject",value:function(){"pending"===this.options.result.state()&&this.options.result.reject()}},{key:"onDone",value:function(t){this.options.result.resolve(t)}},{key:"onFail",value:function(){this.reject()}},{key:"onDestroy",value:function(){this.reject()}},{key:"template",get:function(){return u.a}},{key:"name",get:function(){return"DialogView"}},{key:"title",get:function(){return!1}},{key:"behaviors",get:function(){var t=a.map(this.options.buttons,(function(t,e){var n=a.pick(t,["text","type","className","close"]);return n.className+=" dialog-button-".concat(e),n}));return[{behaviorClass:c.f,title:this.options.title,buttons:t}]}}])&&f(e.prototype,n),r&&f(e,r),i}(o.a.View),b=n(0);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function S(t,e){return(S=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function w(t){var e=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(t){return!1}}();return function(){var n,r=E(t);if(e){var o=E(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function E(t){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&S(t,e)}(s,t);var e,n,a,c=w(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=c.call(this)).dialogOptions=t,e.dialogOptions.result||(e.dialogOptions.result=$.Deferred()),e}return e=s,(n=[{key:"render",value:function(){var t=this,e=this.dialogOptions.result,n=new g(this.dialogOptions);return r.Radio.channel(i.a.POPUP).trigger(o.a.EventNames.SHOW_POPUP,n),e.always((function(){n.triggerMethod("hide"),t.destroy()}))}},{key:"name",get:function(){return b.x.DialogHelper}}])&&v(e.prototype,n),a&&v(e,a),s}(o.a.Service)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={ANALYTICS:"global:analytics"}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Analytics="AnalyticsService",t.Context="ContextService"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);class o extends r.a.Service{constructor(t){super(t)}shouldLog(t){return!0}log(t){}isType(t){return t===o.type}}o.type="BaseAnalyticsClient"},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(1),o={isFileDrag:function(t){return t&&t.originalEvent&&t.originalEvent.dataTransfer&&t.originalEvent.dataTransfer.types&&r.any(t.originalEvent.dataTransfer.types,(function(t){return"Files"===t}))}}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(5),o=n(18);const i={libraries:{dataServiceName:o.a.Library,eventName:"libraries:sync",getData:t=>t.getLibraries(),getInstance:t=>r.a.getInstance(o.a.Library,t),beforeOnBeforeRender:!0}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(51),o=n(55);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,r,i=u(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.d}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a)},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Read="notification:read"}(r||(r={}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(2);class o extends r.a.SilentError{get name(){return"AlertError"}}},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r;!function(t){t[t.Approved=1]="Approved",t[t.Pending=2]="Pending",t[t.Rejected=3]="Rejected"}(r||(r={})),n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row mx-0">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnailContainer:i,e))+' partial-loading-background pr-0 my-3"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.metaContainer:i,e))+' pl-3 my-3">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.titleContainer:i,e))+' partial-loading-background"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={list:"_35CAt",item:"_1r5u9",title:"_1ttnP",requestedBy:"_3Tq3M",date:"_33-LZ"}},function(t,e,n){t.exports={notificationIcon:"_3SkbQ",light:"_2TvQg",dark:"_3taGb",unreadCount:"_1u6ig"}},function(t,e,n){t.exports={paddedContainer:"_1cCVc",imageLarge:"_3Wy1u",imageSmall:"_3t8Qq"}},function(t,e,n){t.exports={selectionContainer:"_3m62c",svgContainer:"_1XxEl"}},function(t,e,n){t.exports={svgContainer:"ecsrN",tip:"IwYkF",termContainer:"_1BqAi",term:"_1NEsr"}},function(t,e,n){t.exports={searchSvgContainer:"_1-crd",tipsContainer:"_15HAy",searchInput:"_1qca6",searchBar:"_3XQHi"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return y})),n.d(e,"c",(function(){return g})),n.d(e,"a",(function(){return b}));var r=n(1),o=n(7),i=n(2),a=n(11),c=n(367),s=n.n(c);function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function p(t){var e=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(t){return!1}}();return function(){var n,r=d(t);if(e){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==u(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function d(t){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y={ShowSpinner:"show:spinner",HideSpinner:"hide:spinner",ToggleSpinner:"toggle:spinner",Enable:"enable",Disable:"disable",ManageDimensions:"manage:dimensions"},g={ShowSpinner:"showSpinner",Disabled:"disabled"},b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&f(t,e)}(h,t);var e,n,c,u=p(h);function h(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,h),u.call(this,t)}return e=h,(n=[{key:"events",value:function(){return{click:"onClick"}}},{key:"initialize",value:function(){this.model||(this.model=new i.a.Model({showSpinner:this.options.showSpinner,disabled:this.options.disabled})),this.bindSpinnerListeners(),this.bindDisableListeners(),this.listenTo(this.model,"change:".concat(g.ShowSpinner),this.render),this.listenTo(this.model,"change:".concat(g.Disabled),this.render)}},{key:"bindSpinnerListeners",value:function(){this.listenTo(this,y.ShowSpinner,this.showSpinner),this.listenTo(this,y.HideSpinner,this.hideSpinner),this.listenTo(this,y.ToggleSpinner,this.toggleSpinner),this.listenTo(this,y.ManageDimensions,this.manageDimensions),this.options.channelName&&(this.listenTo(this.options.channelName,y.ShowSpinner,this.showSpinner),this.listenTo(this.options.channelName,y.HideSpinner,this.hideSpinner),this.listenTo(this.options.channelName,y.ToggleSpinner,this.toggleSpinner))}},{key:"bindDisableListeners",value:function(){this.listenTo(this,y.Enable,this.enableButton),this.listenTo(this,y.Disable,this.disableButton),this.options.channelName&&(this.listenTo(this.options.channelName,y.Enable,this.enableButton),this.listenTo(this.options.channelName,y.Disable,this.disableButton))}},{key:"getButtonText",value:function(){return r.isFunction(this.options.buttonText)?this.options.buttonText():this.options.buttonText}},{key:"getTooltipOptions",value:function(){var t=this.options.tooltip;return r.isFunction(t)?t():t}},{key:"onClick",value:function(t){if(t.preventDefault(),!(this.options.disabled||this.model.get(g.Disabled)||this.model.get(g.ShowSpinner)))return o.Radio.channel(this.options.channelName).trigger(this.options.saveEvent),!1}},{key:"toggleSpinner",value:function(){this.model.get("showSpinner")?this.hideSpinner():this.showSpinner()}},{key:"showSpinner",value:function(){this.model.set("showSpinner",!0)}},{key:"hideSpinner",value:function(){this.model.set("showSpinner",!1)}},{key:"enableButton",value:function(){this.model.set("disabled",!1)}},{key:"disableButton",value:function(){this.model.set("disabled",!0)}},{key:"manageDimensions",value:function(){this.isAttached()&&(this.model.get("showSpinner")?this.applyDimensions():this.storeDimensions())}},{key:"storeDimensions",value:function(){this.options.detectWidth&&this.model.set("buttonWidth",this.$el.outerWidth()),this.options.detectHeight&&this.model.set("buttonHeight",this.$el.outerHeight())}},{key:"applyDimensions",value:function(){this.options.detectWidth&&this.model.get("buttonWidth")&&this.$el.css({width:this.model.get("buttonWidth")+"px"}),this.options.detectHeight&&this.model.get("buttonHeight")&&this.$el.css({height:this.model.get("buttonHeight")+"px"})}},{key:"renderTooltip",value:function(){var t=this.getTooltipOptions();r.isUndefined(t)||r.isEmpty(t)?this.$el.tooltip("dispose"):this.$el.tooltip(t)}},{key:"viewOptions",value:function(){var t={buttonText:this.getButtonText()};if(!this.model.get("showSpinner"))return t;var e=this.options.spinnerOptions||{};return r.extend(t,{spinnerEl:a.q.getSpinner(e)})}},{key:"onAttach",value:function(){this.manageDimensions()}},{key:"onRender",value:function(){this.resetClassName(),this.manageDimensions(),this.renderTooltip()}},{key:"onBeforeDestroy",value:function(){this.getTooltipOptions()&&this.$el.tooltip("dispose")}},{key:"name",get:function(){return"SpinnerButtonComponent"}},{key:"tagName",get:function(){return"button"}},{key:"attributes",get:function(){return{type:this.options.buttonType}}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){var t="btn",e=this.options.extraButtonClass||"";return this.model&&this.model.get("disabled")&&(t="".concat(t," disabled")),"".concat(t," ").concat(e)}},{key:"defaults",get:function(){return{showSpinner:!1,detectWidth:!0,detectHeight:!0,buttonText:"Submit",buttonType:"button",preventMultiClick:!0,spinnerOptions:{size:a.r.Small,extraClasses:"mx-auto"}}}}])&&l(e.prototype,n),c&&l(e,c),h}(i.a.Component)},function(t,e,n){"use strict";e.__esModule=!0,e.AMPERSAND=e.CLOSEPAREN=e.CLOSEANGLEBRACKET=e.CLOSEBRACKET=e.CLOSEBRACE=e.OPENPAREN=e.OPENANGLEBRACKET=e.OPENBRACKET=e.OPENBRACE=e.WS=e.TLD=e.SYM=e.UNDERSCORE=e.SLASH=e.MAILTO=e.PROTOCOL=e.QUERY=e.POUND=e.PLUS=e.NUM=e.NL=e.LOCALHOST=e.PUNCTUATION=e.DOT=e.COLON=e.AT=e.DOMAIN=e.Base=void 0;var r=n(206),o=n(126),i=(0,r.createTokenClass)();function a(t){var e=t?{v:t}:{};return(0,o.inherits)(i,(0,r.createTokenClass)(),e)}i.prototype={toString:function(){return this.v+""}};var c=a(),s=a("@"),u=a(":"),l=a("."),f=a(),p=a(),h=a("\n"),d=a(),y=a("+"),g=a("#"),b=a(),m=a("mailto:"),v=a("?"),S=a("/"),w=a("_"),O=a(),E=a(),C=a(),R=a("{"),k=a("["),P=a("<"),_=a("("),x=a("}"),T=a("]"),D=a(">"),L=a(")"),A=a("&");e.Base=i,e.DOMAIN=c,e.AT=s,e.COLON=u,e.DOT=l,e.PUNCTUATION=f,e.LOCALHOST=p,e.NL=h,e.NUM=d,e.PLUS=y,e.POUND=g,e.QUERY=v,e.PROTOCOL=b,e.MAILTO=m,e.SLASH=S,e.UNDERSCORE=w,e.SYM=O,e.TLD=E,e.WS=C,e.OPENBRACE=R,e.OPENBRACKET=k,e.OPENANGLEBRACKET=P,e.OPENPAREN=_,e.CLOSEBRACE=x,e.CLOSEBRACKET=T,e.CLOSEANGLEBRACKET=D,e.CLOSEPAREN=L,e.AMPERSAND=A},function(t,e,n){t.exports={statusBar:"_3qlXe",statusBarMessage:"_1ul9Z",button:"_3HS1V"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+' partial-loading-background"></div><div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.contentContainer:i,e))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.notificationTime:i,e))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={content:"_3KP84",notificationTime:"_1MR01",icon:"_1GUmS",contentContainer:"_34ETn"}},function(t,e,n){t.exports={actions:"_1cCHt",badge:"_2x-so",button:"_2y4ng",selectButton:"_1uCMl"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="'+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.filterButton:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={filterButton:"_10tNq"}},function(t,e,n){t.exports={container:"_11___",input:"_3RRYx"}},function(t,e,n){t.exports={item:"_3CmnQ",icon:"YYvWW",contentContainer:"_1w1Jg",notificationTime:"_11n-Y",content:"_3JkbY",actionText:"_3D1fr"}},function(t,e,n){t.exports={avatar:"_1SfF-",arrow:"_2C5x6",popoverOffset:"_3FIw8"}},function(t,e,n){t.exports={progressDropdown:"_3mx9H",upload:"t6ngq",uploadButtonSvg:"_35apo"}},function(t,e,n){t.exports={progressInfo:"_1fkFK",svgContainer:"_2uMkl",itemCount:"_1oXJj"}},function(t,e,n){t.exports={active:"_3fIrz",icon:"_1RDxv"}},function(t,e,n){"use strict";(function(t){var e=function(){function t(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}();function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(){r(this,t)}return e(t,[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){this._callbacks=this._callbacks||{};var e=this._callbacks[t];if(e){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=e,a=!0,c=0;for(i=a?i:i[Symbol.iterator]();;){var s;if(a){if(c>=i.length)break;s=i[c++]}else{if((c=i.next()).done)break;s=c.value}var u=s;u.apply(this,r)}}return this}},{key:"off",value:function(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var r=0;r<n.length;r++){var o=n[r];if(o===e){n.splice(r,1);break}}return this}}]),t}(),i=function(t){function i(t,e){r(this,i);var o,a=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this)),c=void 0;if(a.element=t,a.version=i.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.");i.instances.push(a),a.element.dropzone=a;var s,u=null!=(o=i.optionsForElement(a.element))?o:{};if(a.options=i.extend({},a.defaultOptions,u,null!=e?e:{}),a.options.forceFallback||!i.isBrowserSupported())return s=a.options.fallback.call(a),n(a,s);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(t){return a.options.renameFilename.call(a,t.name,t)}),a.options.method=a.options.method.toUpperCase(),(c=a.getExistingFallback())&&c.parentNode&&c.parentNode.removeChild(c),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=i.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=i.getElements(a.options.clickable,"clickable")),a.init(),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(i,t),e(i,null,[{key:"initClass",value:function(){this.prototype.Emitter=o,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(t,e,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(t,e){return e()},chunksUploaded:function(t,e){e()},fallback:function(){var t=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var e=0,n=n=this.element.getElementsByTagName("div");;){if(e>=n.length)break;var r=n[e++];if(/(^| )dz-message($| )/.test(r.className)){t=r,r.className="dz-message";break}}t||(t=i.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var o=t.getElementsByTagName("span")[0];return o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t,e,n,r){var o={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},i=t.width/t.height;null==e&&null==n?(e=o.srcWidth,n=o.srcHeight):null==e?e=n*i:null==n&&(n=e/i);var a=(e=Math.min(e,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>e||o.srcHeight>n)if("crop"===r)i>a?(o.srcHeight=t.height,o.srcWidth=o.srcHeight*a):(o.srcWidth=t.width,o.srcHeight=o.srcWidth/a);else{if("contain"!==r)throw new Error("Unknown resizeMethod '"+r+"'");i>a?n=e/i:e=n*i}return o.srcX=(t.width-o.srcWidth)/2,o.srcY=(t.height-o.srcHeight)/2,o.trgWidth=e,o.trgHeight=n,o},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},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(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=i.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);for(var n=0,r=r=t.previewElement.querySelectorAll("[data-dz-name]");;){if(n>=r.length)break;var o=r[n++];o.textContent=t.name}for(var a=0,c=c=t.previewElement.querySelectorAll("[data-dz-size]");!(a>=c.length);)(o=c[a++]).innerHTML=this.filesize(t.size);this.options.addRemoveLinks&&(t._removeLink=i.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),t.previewElement.appendChild(t._removeLink));for(var s=function(n){return n.preventDefault(),n.stopPropagation(),t.status===i.UPLOADING?i.confirm(e.options.dictCancelUploadConfirmation,(function(){return e.removeFile(t)})):e.options.dictRemoveFileConfirmation?i.confirm(e.options.dictRemoveFileConfirmation,(function(){return e.removeFile(t)})):e.removeFile(t)},u=0,l=l=t.previewElement.querySelectorAll("[data-dz-remove]");;){if(u>=l.length)break;l[u++].addEventListener("click",s)}}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");for(var n=0,r=r=t.previewElement.querySelectorAll("[data-dz-thumbnail]");;){if(n>=r.length)break;var o=r[n++];o.alt=t.name,o.src=e}return setTimeout((function(){return t.previewElement.classList.add("dz-image-preview")}),1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"String"!=typeof e&&e.error&&(e=e.error);for(var n=0,r=r=t.previewElement.querySelectorAll("[data-dz-errormessage]");;){if(n>=r.length)break;r[n++].textContent=e}}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,n){if(t.previewElement)for(var r=0,o=o=t.previewElement.querySelectorAll("[data-dz-uploadprogress]");;){if(r>=o.length)break;var i=o[r++];"PROGRESS"===i.nodeName?i.value=e:i.style.width=e+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){},canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.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(t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];var o=n,i=!0,a=0;for(o=i?o:o[Symbol.iterator]();;){var c;if(i){if(a>=o.length)break;c=o[a++]}else{if((a=o.next()).done)break;c=a.value}var s=c;for(var u in s){var l=s[u];t[u]=l}}return t}}]),e(i,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(t){return t.accepted})).map((function(t){return t}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(t){return!t.accepted})).map((function(t){return t}))}},{key:"getFilesWithStatus",value:function(t){return this.files.filter((function(e){return e.status===t})).map((function(t){return t}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(i.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(i.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(i.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(t){return t.status===i.UPLOADING||t.status===i.QUEUED})).map((function(t){return t}))}},{key:"init",value:function(){var t=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(i.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length){!function e(){return t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null===t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!==t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!==t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",i.getElement(t.options.hiddenInputContainer,"hiddenInputContainer").appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",(function(){var n=t.hiddenFileInput.files;if(n.length)for(var r=0,o=o=n;;){if(r>=o.length)break;var i=o[r++];t.addFile(i)}return t.emit("addedfiles",n),e()}))}()}this.URL=null!==window.URL?window.URL:window.webkitURL;for(var e=0,n=n=this.events;;){if(e>=n.length)break;var r=n[e++];this.on(r,this.options[r])}this.on("uploadprogress",(function(){return t.updateTotalUploadProgress()})),this.on("removedfile",(function(){return t.updateTotalUploadProgress()})),this.on("canceled",(function(e){return t.emit("complete",e)})),this.on("complete",(function(e){if(0===t.getAddedFiles().length&&0===t.getUploadingFiles().length&&0===t.getQueuedFiles().length)return setTimeout((function(){return t.emit("queuecomplete")}),0)}));var o=function(t){return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(e){return t.emit("dragstart",e)},dragenter:function(e){return o(e),t.emit("dragenter",e)},dragover:function(e){var n=void 0;try{n=e.dataTransfer.effectAllowed}catch(t){}return e.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",o(e),t.emit("dragover",e)},dragleave:function(e){return t.emit("dragleave",e)},drop:function(e){return o(e),t.drop(e)},dragend:function(e){return t.emit("dragend",e)}}}],this.clickableElements.forEach((function(e){return t.listeners.push({element:e,events:{click:function(n){return(e!==t.element||n.target===t.element||i.elementInside(n.target,t.element.querySelector(".dz-message")))&&t.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,i.instances.splice(i.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t=void 0,e=0,n=0;if(this.getActiveFiles().length){for(var r=0,o=o=this.getActiveFiles();;){if(r>=o.length)break;var i=o[r++];e+=i.upload.bytesSent,n+=i.upload.total}t=100*e/n}else t=100;return this.emit("totaluploadprogress",t,n,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):this.options.paramName+(this.options.uploadMultiple?"["+t+"]":"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,e=void 0;if(t=this.getExistingFallback())return t;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=i.createElement(n);return"FORM"!==this.element.tagName?(e=i.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!=e?e:r}},{key:"getExistingFallback",value:function(){for(var t=function(t){for(var e=0,n=n=t;;){if(e>=n.length)break;var r=n[e++];if(/(^| )fallback($| )/.test(r.className))return r}},e=["div","form"],n=0;n<e.length;n++){var r,o=e[n];if(r=t(this.element.getElementsByTagName(o)))return r}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var r=t.events[n];e.push(t.element.addEventListener(n,r,!1))}return e}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var r=t.events[n];e.push(t.element.removeEventListener(n,r,!1))}return e}()}))}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach((function(t){return t.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(e){return t.cancelUpload(e)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(t){return t.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,n="b";if(t>0){for(var r=["tb","gb","mb","kb","b"],o=0;o<r.length;o++){var i=r[o];if(t>=Math.pow(this.options.filesizeBase,4-o)/10){e=t/Math.pow(this.options.filesizeBase,4-o),n=i;break}}e=Math.round(10*e)/10}return"<strong>"+e+"</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(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],n=0;n<t.dataTransfer.files.length;n++)e[n]=t.dataTransfer.files[n];if(this.emit("addedfiles",e),e.length){var r=t.dataTransfer.items;r&&r.length&&null!=r[0].webkitGetAsEntry?this._addFilesFromItems(r):this.handleFiles(e)}}}},{key:"paste",value:function(t){if(null!=(e=null!=t?t.clipboardData:void 0,n=function(t){return t.items},null!=e?n(e):void 0)){var e,n;this.emit("paste",t);var r=t.clipboardData.items;return r.length?this._addFilesFromItems(r):void 0}}},{key:"handleFiles",value:function(t){for(var e=0,n=n=t;;){if(e>=n.length)break;var r=n[e++];this.addFile(r)}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){for(var n=[],r=0,o=o=t;;){if(r>=o.length)break;var i,a=o[r++];null!=a.webkitGetAsEntry&&(i=a.webkitGetAsEntry())?i.isFile?n.push(e.addFile(a.getAsFile())):i.isDirectory?n.push(e._addFilesFromDirectory(i,i.name)):n.push(void 0):null!=a.getAsFile&&(null==a.kind||"file"===a.kind)?n.push(e.addFile(a.getAsFile())):n.push(void 0)}return n}()}},{key:"_addFilesFromDirectory",value:function(t,e){var n=this,r=t.createReader(),o=function(t){return e=console,n="log",r=function(e){return e.log(t)},null!=e&&"function"==typeof e[n]?r(e,n):void 0;var e,n,r};return function t(){return r.readEntries((function(r){if(r.length>0){for(var o=0,i=i=r;;){if(o>=i.length)break;var a=i[o++];a.isFile?a.file((function(t){if(!n.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath=e+"/"+t.name,n.addFile(t)})):a.isDirectory&&n._addFilesFromDirectory(a,e+"/"+a.name)}t()}return null}),o)}()}},{key:"accept",value:function(t,e){return this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):i.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var e=this;return t.upload={uuid:i.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t),chunked:this.options.chunking&&(this.options.forceChunking||t.size>this.options.chunkSize),totalChunkCount:Math.ceil(t.size/this.options.chunkSize)},this.files.push(t),t.status=i.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(function(n){return n?(t.accepted=!1,e._errorProcessing([t],n)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(t){for(var e=0,n=n=t;;){if(e>=n.length)break;var r=n[e++];this.enqueueFile(r)}return null}},{key:"enqueueFile",value:function(t){var e=this;if(t.status!==i.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=i.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return e.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout((function(){return e._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return t.emit("thumbnail",e,n),t._processingThumbnail=!1,t._processThumbnailQueue()}))}}},{key:"removeFile",value:function(t){if(t.status===i.UPLOADING&&this.cancelUpload(t),this.files=a(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);for(var e=0,n=n=this.files.slice();;){if(e>=n.length)break;var r=n[e++];(r.status!==i.UPLOADING||t)&&this.removeFile(r)}return null}},{key:"resizeImage",value:function(t,e,n,r,o){var a=this;return this.createThumbnail(t,e,n,r,!0,(function(e,n){if(null==n)return o(t);var r=a.options.resizeMimeType;null==r&&(r=t.type);var c=n.toDataURL(r,a.options.resizeQuality);return"image/jpeg"!==r&&"image/jpg"!==r||(c=u.restore(t.dataURL,c)),o(i.dataURItoBlob(c))}))}},{key:"createThumbnail",value:function(t,e,n,r,o,i){var a=this,c=new FileReader;return c.onload=function(){if(t.dataURL=c.result,"image/svg+xml"!==t.type)return a.createThumbnailFromUrl(t,e,n,r,o,i);null!=i&&i(c.result)},c.readAsDataURL(t)}},{key:"createThumbnailFromUrl",value:function(t,e,n,r,o,i,a){var c=this,u=document.createElement("img");return a&&(u.crossOrigin=a),u.onload=function(){var a=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(a=function(t){return EXIF.getData(u,(function(){return t(EXIF.getTag(this,"Orientation"))}))}),a((function(o){t.width=u.width,t.height=u.height;var a=c.options.resize.call(c,t,e,n,r),l=document.createElement("canvas"),f=l.getContext("2d");switch(l.width=a.trgWidth,l.height=a.trgHeight,o>4&&(l.width=a.trgHeight,l.height=a.trgWidth),o){case 2:f.translate(l.width,0),f.scale(-1,1);break;case 3:f.translate(l.width,l.height),f.rotate(Math.PI);break;case 4:f.translate(0,l.height),f.scale(1,-1);break;case 5:f.rotate(.5*Math.PI),f.scale(1,-1);break;case 6:f.rotate(.5*Math.PI),f.translate(0,-l.width);break;case 7:f.rotate(.5*Math.PI),f.translate(l.height,-l.width),f.scale(-1,1);break;case 8:f.rotate(-.5*Math.PI),f.translate(-l.height,0)}s(f,u,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 p=l.toDataURL("image/png");if(null!=i)return i(p,l)}))},null!=i&&(u.onerror=i),u.src=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,n=e;if(!(e>=t)){var r=this.getQueuedFiles();if(r.length>0){if(this.options.uploadMultiple)return this.processFiles(r.slice(0,t-e));for(;n<t;){if(!r.length)return;this.processFile(r.shift()),n++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){for(var e=0,n=n=t;;){if(e>=n.length)break;var r=n[e++];r.processing=!0,r.status=i.UPLOADING,this.emit("processing",r)}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter((function(e){return e.xhr===t})).map((function(t){return t}))}},{key:"cancelUpload",value:function(t){if(t.status===i.UPLOADING){for(var e=this._getFilesWithXhr(t.xhr),n=0,r=r=e;;){if(n>=r.length)break;r[n++].status=i.CANCELED}void 0!==t.xhr&&t.xhr.abort();for(var o=0,a=a=e;;){if(o>=a.length)break;var c=a[o++];this.emit("canceled",c)}this.options.uploadMultiple&&this.emit("canceledmultiple",e)}else t.status!==i.ADDED&&t.status!==i.QUEUED||(t.status=i.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){if("function"==typeof t){for(var e=arguments.length,n=Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return t.apply(this,n)}return t}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(t){var e=this;this._transformFiles(t,(function(n){if(t[0].upload.chunked){var r=t[0],o=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*e.options.chunkSize,c=Math.min(a+e.options.chunkSize,r.size),s={name:e._getParamName(0),data:o.webkitSlice?o.webkitSlice(a,c):o.slice(a,c),filename:r.upload.filename,chunkIndex:n};r.upload.chunks[n]={file:r,index:n,dataBlock:s,status:i.UPLOADING,progress:0,retries:0},e._uploadData(t,[s])}};if(r.upload.finishedChunkUpload=function(n){var o=!0;n.status=i.SUCCESS,n.dataBlock=null,n.xhr=null;for(var c=0;c<r.upload.totalChunkCount;c++){if(void 0===r.upload.chunks[c])return a();r.upload.chunks[c].status!==i.SUCCESS&&(o=!1)}o&&e.options.chunksUploaded(r,(function(){e._finished(t,"",null)}))},e.options.parallelChunkUploads)for(var c=0;c<r.upload.totalChunkCount;c++)a();else a()}else{for(var s=[],u=0;u<t.length;u++)s[u]={name:e._getParamName(u),data:n[u],filename:t[u].upload.filename};e._uploadData(t,s)}}))}},{key:"_getChunk",value:function(t,e){for(var n=0;n<t.upload.totalChunkCount;n++)if(void 0!==t.upload.chunks[n]&&t.upload.chunks[n].xhr===e)return t.upload.chunks[n]}},{key:"_uploadData",value:function(t,e){for(var n=this,r=new XMLHttpRequest,o=0,a=a=t;;){if(o>=a.length)break;a[o++].xhr=r}t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=r);var c=this.resolveOption(this.options.method,t),s=this.resolveOption(this.options.url,t);r.open(c,s,!0),r.timeout=this.resolveOption(this.options.timeout,t),r.withCredentials=!!this.options.withCredentials,r.onload=function(e){n._finishedUploading(t,r,e)},r.onerror=function(){n._handleUploadError(t,r)},(null!=r.upload?r.upload:r).onprogress=function(e){return n._updateFilesUploadProgress(t,r,e)};var u={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var l in this.options.headers&&i.extend(u,this.options.headers),u){var f=u[l];f&&r.setRequestHeader(l,f)}var p=new FormData;if(this.options.params){var h=this.options.params;for(var d in"function"==typeof h&&(h=h.call(this,t,r,t[0].upload.chunked?this._getChunk(t[0],r):null)),h){var y=h[d];p.append(d,y)}}for(var g=0,b=b=t;;){if(g>=b.length)break;var m=b[g++];this.emit("sending",m,r,p)}this.options.uploadMultiple&&this.emit("sendingmultiple",t,r,p),this._addFormElementData(p);for(var v=0;v<e.length;v++){var S=e[v];p.append(S.name,S.data,S.filename)}this.submitRequest(r,p,t)}},{key:"_transformFiles",value:function(t,e){for(var n=this,r=[],o=0,i=function(i){n.options.transformFile.call(n,t[i],(function(n){r[i]=n,++o===t.length&&e(r)}))},a=0;a<t.length;a++)i(a)}},{key:"_addFormElementData",value:function(t){if("FORM"===this.element.tagName)for(var e=0,n=n=this.element.querySelectorAll("input, textarea, select, button");;){if(e>=n.length)break;var r=n[e++],o=r.getAttribute("name"),i=r.getAttribute("type");if(i&&(i=i.toLowerCase()),null!=o)if("SELECT"===r.tagName&&r.hasAttribute("multiple"))for(var a=0,c=c=r.options;;){if(a>=c.length)break;var s=c[a++];s.selected&&t.append(o,s.value)}else(!i||"checkbox"!==i&&"radio"!==i||r.checked)&&t.append(o,r.value)}}},{key:"_updateFilesUploadProgress",value:function(t,e,n){var r=void 0;if(void 0!==n){if(r=100*n.loaded/n.total,t[0].upload.chunked){var o=t[0],i=this._getChunk(o,e);i.progress=r,i.total=n.total,i.bytesSent=n.loaded;o.upload.progress=0,o.upload.total=0,o.upload.bytesSent=0;for(var a=0;a<o.upload.totalChunkCount;a++)void 0!==o.upload.chunks[a]&&void 0!==o.upload.chunks[a].progress&&(o.upload.progress+=o.upload.chunks[a].progress,o.upload.total+=o.upload.chunks[a].total,o.upload.bytesSent+=o.upload.chunks[a].bytesSent);o.upload.progress=o.upload.progress/o.upload.totalChunkCount}else for(var c=0,s=s=t;;){if(c>=s.length)break;var u=s[c++];u.upload.progress=r,u.upload.total=n.total,u.upload.bytesSent=n.loaded}for(var l=0,f=f=t;;){if(l>=f.length)break;var p=f[l++];this.emit("uploadprogress",p,p.upload.progress,p.upload.bytesSent)}}else{var h=!0;r=100;for(var d=0,y=y=t;;){if(d>=y.length)break;var g=y[d++];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 b=0,m=m=t;;){if(b>=m.length)break;var v=m[b++];this.emit("uploadprogress",v,r,v.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(t,e,n){var r=void 0;if(t[0].status!==i.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(r=e.responseText,e.getResponseHeader("content-type")&&~e.getResponseHeader("content-type").indexOf("application/json")))try{r=JSON.parse(r)}catch(t){n=t,r="Invalid JSON response from server."}this._updateFilesUploadProgress(t),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e)):this._finished(t,r,n):this._handleUploadError(t,e,r)}}},{key:"_handleUploadError",value:function(t,e,n){if(t[0].status!==i.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var r=this._getChunk(t[0],e);if(r.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[r.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var o=0,a=a=t;;){if(o>=a.length)break;a[o++];this._errorProcessing(t,n||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}}},{key:"submitRequest",value:function(t,e,n){t.send(e)}},{key:"_finished",value:function(t,e,n){for(var r=0,o=o=t;;){if(r>=o.length)break;var a=o[r++];a.status=i.SUCCESS,this.emit("success",a,e,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,n){for(var r=0,o=o=t;;){if(r>=o.length)break;var a=o[r++];a.status=i.ERROR,this.emit("error",a,e,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}}]),i}(o);i.initClass(),i.version="5.5.1",i.options={},i.optionsForElement=function(t){return t.getAttribute("id")?i.options[c(t.getAttribute("id"))]:void 0},i.instances=[],i.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.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 t.dropzone},i.autoDiscover=!0,i.discover=function(){var t=void 0;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){for(var n=[],r=0,o=o=e;;){if(r>=o.length)break;var i=o[r++];/(^| )dropzone($| )/.test(i.className)?n.push(t.push(i)):n.push(void 0)}return n}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){for(var e=[],n=0,r=r=t;;){if(n>=r.length)break;var o=r[n++];!1!==i.optionsForElement(o)?e.push(new i(o)):e.push(void 0)}return e}()},i.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],i.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var e=0,n=n=i.blacklistedBrowsers;;){if(e>=n.length)break;n[e++].test(navigator.userAgent)&&(t=!1)}else t=!1;else t=!1;return t},i.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],r=new ArrayBuffer(e.length),o=new Uint8Array(r),i=0,a=e.length,c=0<=a;c?i<=a:i>=a;c?i++:i--)o[i]=e.charCodeAt(i);return new Blob([r],{type:n})};var a=function(t,e){return t.filter((function(t){return t!==e})).map((function(t){return t}))},c=function(t){return t.replace(/[\-_](\w)/g,(function(t){return t.charAt(1).toUpperCase()}))};i.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},i.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},i.getElement=function(t,e){var n=void 0;if("string"==typeof t?n=document.querySelector(t):null!=t.nodeType&&(n=t),null==n)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},i.getElements=function(t,e){var n=void 0,r=void 0;if(t instanceof Array){r=[];try{for(var o=0,i=i=t;!(o>=i.length);)n=i[o++],r.push(this.getElement(n,e))}catch(t){r=null}}else if("string"==typeof t){r=[];for(var a=0,c=c=document.querySelectorAll(t);!(a>=c.length);)n=c[a++],r.push(n)}else null!=t.nodeType&&(r=[t]);if(null==r||!r.length)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return r},i.confirm=function(t,e,n){return window.confirm(t)?e():null!=n?n():void 0},i.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");for(var n=t.type,r=n.replace(/\/.*$/,""),o=0,i=i=e;;){if(o>=i.length)break;var a=i[o++];if("."===(a=a.trim()).charAt(0)){if(-1!==t.name.toLowerCase().indexOf(a.toLowerCase(),t.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(t){return this.each((function(){return new i(this,t)}))}),null!==t?t.exports=i:window.Dropzone=i,i.ADDED="added",i.QUEUED="queued",i.ACCEPTED=i.QUEUED,i.UPLOADING="uploading",i.PROCESSING=i.UPLOADING,i.CANCELED="canceled",i.ERROR="error",i.SUCCESS="success";var s=function(t,e,n,r,o,i,a,c,s,u){var l=function(t){t.naturalWidth;var e=t.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=e;var r=n.getContext("2d");r.drawImage(t,0,0);for(var o=r.getImageData(1,0,1,e).data,i=0,a=e,c=e;c>i;){0===o[4*(c-1)+3]?a=c:i=c,c=a+i>>1}var s=c/e;return 0===s?1:s}(e);return t.drawImage(e,n,r,o,i,a,c,s,u/l)},u=function(){function t(){r(this,t)}return e(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",n=void 0,r=void 0,o="",i=void 0,a=void 0,c=void 0,s="",u=0;i=(n=t[u++])>>2,a=(3&n)<<4|(r=t[u++])>>4,c=(15&r)<<2|(o=t[u++])>>6,s=63&o,isNaN(r)?c=s=64:isNaN(o)&&(s=64),e=e+this.KEY_STR.charAt(i)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(c)+this.KEY_STR.charAt(s),n=r=o="",i=a=c=s="",u<t.length;);return e}},{key:"restore",value:function(t,e){if(!t.match("data:image/jpeg;base64,"))return e;var n=this.decode64(t.replace("data:image/jpeg;base64,","")),r=this.slice2Segments(n),o=this.exifManipulation(e,r);return"data:image/jpeg;base64,"+this.encode64(o)}},{key:"exifManipulation",value:function(t,e){var n=this.getExifArray(e),r=this.insertExif(t,n);return new Uint8Array(r)}},{key:"getExifArray",value:function(t){for(var e=void 0,n=0;n<t.length;){if(255===(e=t[n])[0]&225===e[1])return e;n++}return[]}},{key:"insertExif",value:function(t,e){var n=t.replace("data:image/jpeg;base64,",""),r=this.decode64(n),o=r.indexOf(255,3),i=r.slice(0,o),a=r.slice(o),c=i;return c=(c=c.concat(e)).concat(a)}},{key:"slice2Segments",value:function(t){for(var e=0,n=[];;){if(255===t[e]&218===t[e+1])break;if(255===t[e]&216===t[e+1])e+=2;else{var r=e+(256*t[e+2]+t[e+3])+2,o=t.slice(e,r);n.push(o),e=r}if(e>t.length)break}return n}},{key:"decode64",value:function(t){var e=void 0,n=void 0,r="",o=void 0,i=void 0,a="",c=0,s=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(t)&&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."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=this.KEY_STR.indexOf(t.charAt(c++))<<2|(o=this.KEY_STR.indexOf(t.charAt(c++)))>>4,n=(15&o)<<4|(i=this.KEY_STR.indexOf(t.charAt(c++)))>>2,r=(3&i)<<6|(a=this.KEY_STR.indexOf(t.charAt(c++))),s.push(e),64!==i&&s.push(n),64!==a&&s.push(r),e=n=r="",o=i=a="",c<t.length;);return s}}]),t}();u.initClass();i._autoDiscoverFunction=function(){if(i.autoDiscover)return i.discover()},function(t,e){var n=!1,r=!0,o=t.document,i=o.documentElement,a=o.addEventListener?"addEventListener":"attachEvent",c=o.addEventListener?"removeEventListener":"detachEvent",s=o.addEventListener?"":"on",u=function r(i){if("readystatechange"!==i.type||"complete"===o.readyState)return("load"===i.type?t:o)[c](s+i.type,r,!1),!n&&(n=!0)?e.call(t,i.type||i):void 0};if("complete"!==o.readyState){if(o.createEventObject&&i.doScroll){try{r=!t.frameElement}catch(t){}r&&function t(){try{i.doScroll("left")}catch(e){return void setTimeout(t,50)}return u("poll")}()}o[a](s+"DOMContentLoaded",u,!1),o[a](s+"readystatechange",u,!1),t[a](s+"load",u,!1)}}(window,i._autoDiscoverFunction)}).call(this,n(648)(t))},function(t,e,n){"use strict";n(124),n(132);var r=n(125),o=n(7),i=n(2),a=n(0),c=n(11),s=n(122),u=n(31),l=n(111);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(b,t);var e,n,f,g=y(b);function b(){return p(this,b),g.apply(this,arguments)}return e=b,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,u.a.FILES_SELECTED,this.onFilesSelected)}},{key:"onFilesSelected",value:function(t){var e=this;!t&&t.length||(this.reader=new FileReader,this.reader.addEventListener("load",(function(){return e.onReaderLoad()})),this.reader.readAsDataURL(t[0]))}},{key:"onReaderLoad",value:function(){var t=this,e=new Image;e.src=this.reader.result;var n=a.k[this.options.imageType].width,r=a.k[this.options.imageType].height;e.addEventListener("load",(function(){t.isImageValid(e)?t.isImageLowQuality(e)?t.onImageLowQuality(e):t.onImageLoad(e):t.onImageTooSmall(n,r)}))}},{key:"onImageLowQuality",value:function(t){var e=this;o.Radio.channel(this.options.channelName).trigger("image:error"),window.setTimeout((function(){var n=a.m[e.options.imageType];new c.d({title:"Low quality image detected",text:'<p>We\'ve detected a low quality image which may appear stretched or distorted within ClickView.</p>\n <p class="text-muted mb-0"><em>We recommend a size of at least\n '.concat(n.width,"px by ").concat(n.height,"px.</em></p>"),buttons:[{text:"Continue anyway",className:"btn btn-primary",success:!0}]}).render().done((function(){e.onImageLoad(t,!0)}))}),300)}},{key:"onImageTooSmall",value:function(t,e){o.Radio.channel(this.options.channelName).trigger("image:error"),window.setTimeout((function(){i.a.ErrorHelper.throw(new s.g(t,e))}),300)}},{key:"isImageValid",value:function(t){var e=a.k[this.options.imageType].width,n=a.k[this.options.imageType].height;return!(e&&t.width<e||n&&t.height<n)}},{key:"isImageLowQuality",value:function(t){var e=a.m[this.options.imageType];return!!e&&(t.width<e.width||t.height<e.height)}},{key:"onImageLoad",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.options.saveImage(t.src,e),o.Radio.channel(this.options.channelName).trigger("image:load"),this.options.appLink&&i.a.AppLinkHelper.trigger(this.options.appLink)}},{key:"behaviors",get:function(){return[{behaviorClass:r.a,buttonSelector:this.options.buttonSelector,channelName:this.options.channelName,acceptMultiple:!1,mimeType:l.b.IMAGES}]}}])&&h(e.prototype,n),f&&h(e,f),b}(i.a.Behavior);function v(t){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e){return(O=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function E(t){var e=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(t){return!1}}();return function(){var n,r=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==v(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&O(t,e)}(a,t);var e,n,r,i=E(a);function a(){return S(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.lockLayoutFileDrop()}},{key:"lockLayoutFileDrop",value:function(){o.Radio.channel("file:drop:lock").trigger("lock")}},{key:"unlockLayoutFileDrop",value:function(){o.Radio.channel("file:drop:lock").trigger("unlock")}},{key:"onDestroy",value:function(){this.unlockLayoutFileDrop()}}])&&w(e.prototype,n),r&&w(e,r),a}(i.a.Behavior);function P(t){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function x(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function T(t,e){return(T=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=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(t){return!1}}();return function(){var n,r=A(t);if(e){var o=A(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return L(this,n)}}function L(t,e){return!e||"object"!==P(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function A(t){return(A=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var N=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&T(t,e)}(a,t);var e,n,r,i=D(a);function a(){return _(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"getModel",value:function(){return this.options.bindViewModel?this.view.viewModel:this.view.model}},{key:"bindModelValidation",value:function(){this.getModel().addValidation(this.options.modelValidation)}},{key:"onRender",value:function(){this.options.modelValidation&&this.bindModelValidation(),o.Validation.bind(this.view,{model:this.getModel()})}},{key:"onBeforeDestroy",value:function(){o.Validation.unbind(this.view,{model:this.getModel()})}}])&&x(e.prototype,n),r&&x(e,r),a}(i.a.Behavior),I=n(70),j=n(16);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function U(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function F(t,e){return(F=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function H(t){var e=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(t){return!1}}();return function(){var n,r=B(t);if(e){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function B(t){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&F(t,e)}(a,t);var e,n,r,o=H(a);function a(){return M(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.validateOptions(),this.listenTo(I.a.LAZY_LOAD,"update:loader",this.updateLoader)}},{key:"updateLoader",value:function(){this.loader&&this.loader.update()}},{key:"onAttach",value:function(){c.h.isLazyLoadSupported(this.options.minBrowserSupportVersion)&&(this.loader=new LazyLoad({data_src:this.options.attribute,elements_selector:this.options.selector,class_loading:this.options.loadingClass,callback_load:this.options.callback,class_error:"d-none"}))}},{key:"onRender",value:function(){this.updateLoader()}},{key:"onBeforeDestroy",value:function(){this.loader&&this.loader.destroy()}},{key:"validateOptions",value:function(){this.options.selector||i.a.ErrorHelper.throw(new j.a("Must pass an image selector from ".concat(this.view.name," when using LazyLoadBehaviour.")))}},{key:"defaults",get:function(){return{loadingClass:"lazyload-loading",attribute:"src"}},set:function(t){}}])&&U(e.prototype,n),r&&U(e,r),a}(i.a.Behavior),G=n(1),W=n(10),Y=n(158),J=n(112),$=n(368),K=n.n($);function Q(t){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Z(t){return function(t){if(Array.isArray(t))return X(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return X(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return X(t,e)}(t)||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 X(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function tt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function et(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function nt(t,e){return(nt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function rt(t){var e=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(t){return!1}}();return function(){var n,r=it(t);if(e){var o=it(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ot(this,n)}}function ot(t,e){return!e||"object"!==Q(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function it(t){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var at={saveEvent:"save",extraButtonClass:"btn-primary",spinnerOptions:{size:J.b.Small,type:J.c.Light,extraClasses:"mx-auto"}},ct=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&nt(t,e)}(c,t);var e,n,r,a=rt(c);function c(){return tt(this,c),a.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.validateOptions(),this.setUpTemplateWrapper(),this.handleCloseOnRoute(),this.handleRendersDuringTransition()}},{key:"validateOptions",value:function(){this.options.title||i.a.ErrorHelper.throw(new j.a("Must pass a title from ".concat(this.view.name," when using PopupBehavior.")))}},{key:"handleCloseOnRoute",value:function(){var t=this;!1!==this.options.closeOnRoute&&(this.routeOnHide=!0,this.listenTo(W.a.SHELL,"route",(function(){t.routeOnHide=!1,t.view.$el.modal("hide")})))}},{key:"handleRendersDuringTransition",value:function(){var t=this,e=this.view.render;this.view.render=function(){var n=t.view.$el.data("bs.modal");return n&&n._isTransitioning?(t.view.$(".modal-dialog").one("bsTransitionEnd",(function(){return e.call(t.view)})),t):e.call(t.view)}}},{key:"onHide",value:function(){this.hide()}},{key:"setUpTemplateWrapper",value:function(){var t=this,e=this.view.getTemplate;this.view.getTemplate=function(){return function(n){var r=e.call(t.view),o=t.options.hideCloseButton,i=r(n),a=Z(t.options.buttons||[]);return G.each(a,(function(t){G.isFunction(t.getClassName)&&(t.className=t.getClassName())})),G.some(a,(function(t){return t.close}))||o||a.unshift({text:"Close",className:"btn btn-link",close:!0}),a=G.sortBy(G.map(a,(function(t){return G.extend({type:"button",className:"btn btn-primary"},t)})),"close"),K()({content:i,size:t.options.size,title:t.getTitle(),buttons:a,spinnerButton:!!t.options.spinnerButtonOptions})}}}},{key:"getTitle",value:function(){return G.isFunction(this.options.title)?this.options.title.apply(this.view):this.options.title}},{key:"getSpinnerButtonOptions",value:function(){return G.isFunction(this.options.spinnerButtonOptions)?this.options.spinnerButtonOptions.apply(this.view):this.options.spinnerButtonOptions}},{key:"renderSpinnerButton",value:function(){var t=this.getSpinnerButtonOptions();t&&!G.isEmpty(t)&&(t=G.extend({},at,t),this.view.addRegion("spinnerButton",{el:".spinner-button-region",replaceElement:!0}),this.spinnerButtonListenerBound||(this.spinnerButtonListenerBound=!0,this.view.listenTo(t.channelName,t.saveEvent,t.onClick)),this.spinnerComponent=new Y.a(G.omit(t,"onClickSpinnerButton")),this.view.showChildView("spinnerButton",this.spinnerComponent))}},{key:"onRender",value:function(){this.renderSpinnerButton();var t="modal fade";this.options.modalClasses&&(t+=" ".concat(this.options.modalClasses)),this.view.$el.addClass(t),this.view.$el.attr("tabindex","-1"),o.Radio.channel(I.a.POPUP).trigger("popup:render")}},{key:"onAttach",value:function(){this.modalInitialized||(this.view.$el.modal(this.options.modalOptions||{}),this.modalInitialized=!0)}},{key:"hide",value:function(){this.view.$el.modal("hide"),this.routeOnHide||this.view.$el.modal("_removeBackdrop")}},{key:"onBeforeDetach",value:function(){this.hide()}},{key:"onModalHidden",value:function(){this.view.isDestroyed()||this.view.destroy();var t=this.options.appLink;this.routeOnHide&&t&&i.a.AppLinkHelper.trigger(t)}},{key:"onModalShown",value:function(){this.view.$el.find("[autofocus]").focus(),this.spinnerComponent&&this.spinnerComponent.trigger(Y.b.ManageDimensions)}},{key:"events",get:function(){return{"hidden.bs.modal":"onModalHidden","shown.bs.modal":"onModalShown"}}}])&&et(e.prototype,n),r&&et(e,r),c}(i.a.Behavior);function st(t){return(st="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ut(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function lt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ft(t,e){return(ft=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function pt(t){var e=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(t){return!1}}();return function(){var n,r=dt(t);if(e){var o=dt(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ht(this,n)}}function ht(t,e){return!e||"object"!==st(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function dt(t){return(dt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var yt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ft(t,e)}(i,t);var e,n,r,o=pt(i);function i(){return ut(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"onRender",value:function(){this.view.stickit(this.options.bindViewModel?this.view.viewModel:this.view.model)}},{key:"onBeforeDestroy",value:function(){this.view.unstickit()}}])&<(e.prototype,n),r&<(e,r),i}(i.a.Behavior);n.d(e,"b",(function(){return r.a})),n.d(e,"c",(function(){return m})),n.d(e,"e",(function(){return k})),n.d(e,"a",(function(){return N})),n.d(e,"d",(function(){return q})),n.d(e,"f",(function(){return ct})),n.d(e,"g",(function(){return yt}))},function(t,e,n){"use strict";var r=n(1),o=n(23),i=n(0),a=n(62),c=n(80),s=n(21),u=(n(134),n(2)),l=n(71);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m,v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return l.b}}])&&h(e.prototype,n),r&&h(e,r),i}(u.a.Collection),S=n(3);function w(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function O(t){return function(t){if(Array.isArray(t))return E(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E(t,e)}(t)||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 E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var C="contentUpdates.utils",R={getFilterCollection:function(t,e,n){var r=new a.a([{title:function(){return S.a.getPhrase(C,"libraryFilter")},type:s.a.Libraries,behavior:c.a.Inclusive,selectAllWhenNoneSelected:!0,minNumOptions:2,options:c.b.getSourceOptions(t)},{title:function(){return S.a.getPhrase(C,"subjectFilter")},type:s.a.Subjects,behavior:c.a.Exclusive,defaultOptionLabel:function(){return S.a.getPhrase(C,"subjectFilterLabel")},minNumOptions:0,options:e},{title:function(){return S.a.getPhrase(C,"releaseDateFilter")},type:s.a.ReleaseDate,behavior:c.a.Exclusive,minNumOptions:1,options:T}]);return n&&R.setFilters(r,n),r},getLibraryIds:function(t,e){var n=e.map((function(t){return t.get("id").toString()}));if(!t)return n;var o=[];return t.split(",").forEach((function(t){var e=t.split("-")[1];e&&r.contains(n,e)&&o.push(e)})),o},getSubjectOptions:function(t){var e={};return t.each((function(t){if(e[t.get("name")]){e[t.get("name")].subjectIds.push(t.get("id").toString());var n=[].concat(O(e[t.get("name")].libraryIds),O(t.get("libraryIds").map((function(t){return t.toString()}))));e[t.get("name")].libraryIds=r.uniq(n)}else e[t.get("name")]={subjectIds:[t.get("id").toString()],libraryIds:t.get("libraryIds").map((function(t){return t.toString()}))}})),r.keys(e).sort().map((function(t){return{name:t,value:t,subjectIds:e[t].subjectIds,libraryIds:e[t].libraryIds}}))},setFilters:function(t,e){r.keys(e).forEach((function(n){var r=e[n];if(r){var o=t.findWhere({type:n});o&&(n===s.a.Libraries&&R.setLibraryFilter(r,o),n===s.a.Subjects&&R.setSubjectFilter(r,o),n===s.a.ReleaseDate&&R.setReleaseDateFilter(r,o))}})),t.each((function(t){t.get("selectAllWhenNoneSelected")&&(r.contains(r.keys(e),t.get("type"))||c.b.selectAllOptions(t))}))},setLibraryFilter:function(t,e){t.split(",").forEach((function(t){var n=t.split("-")[1];if(n){var r=e.options.findWhere({id:+n});r&&r.set("active",!0)}}))},setSubjectFilter:function(t,e){if(-1!==t.indexOf("-")){var n=t.split("-")[1].split(","),o=e.options.find((function(t){return!!r.intersection(t.get("subjectIds"),n).length}));if(o)o.set("active",!0);else{var i=t.split("-")[0];e.options.add({name:i,value:i,subjectIds:n,active:!0})}}},setReleaseDateFilter:function(t,e){c.b.clearOptions(e);var n=e.options.findWhere({queryString:t});if(n)n.set("active",!0);else{var r=e.options.findWhere({isDefault:!0});r&&r.set("active")}},getSelectedSubjects:function(t){return t.findWhere({type:s.a.Subjects}).options.where({active:!0})},groupVideosByReleaseMonth:function(t){var e=[],n=t.groupBy((function(t){return o(t.get("dateReleased")).format("YYYY-MM")}));return r.each(n,(function(t,n){e.push(new l.b({id:n,videos:t,groupTitle:o(n).format("MMMM YYYY")}))})),new v(r.sortBy(e,"id").reverse())},getFirstDayInMonthNumMonthsAgo:function(t){return o().startOf("month").subtract(t,"month").format("YYYY-MM-DD")},getLastDayInMonthNumMonthsAgo:function(t){return o().endOf("month").subtract(t,"month").format("YYYY-MM-DD")},getSelectedReleaseDate:function(t){return t.findWhere({type:s.a.ReleaseDate}).options.findWhere({active:!0})},getRouteQueryParams:function(t){var e=R.RouteQueryParamGenerators,n={};return t.each((function(t){var o={};r.isFunction(e[t.get("type")])&&(o=e[t.get("type")](t)),n=r.extend(n,o)})),n},RouteQueryParamGenerators:(m={},w(m,s.a.Libraries,(function(t){var e=t.options.where({active:!0});return e.length&&e.length!==t.options.length?w({},s.a.Libraries,e.map((function(t){return"library-".concat(t.id)})).join(",")):{}})),w(m,s.a.Subjects,(function(t){var e=t.options.where({active:!0}),n=t.options.length>1&&t.options.length===e.length;return!e.length||n?{}:w({},s.a.Subjects,e.map((function(t){return"".concat(t.get("name"),"-").concat(t.get("subjectIds").join(","))})).join(","))})),w(m,s.a.ReleaseDate,(function(t){var e=t.options.findWhere({active:!0});if(!e)return{};var n=e.get("queryString");return n?w({},s.a.ReleaseDate,n):{}})),m)},k="contentUpdates.utils",P={AwaitingReview:function(){return S.a.getPhrase(k,"awaitingReview")},PastReleases:function(){return S.a.getPhrase(k,"pastReleases")}},_={AwaitingReview:".awaiting-review-applink",PastReleases:".past-releases-applink"},x=[{name:P.AwaitingReview,link:{selector:_.AwaitingReview,appLink:{application:i.b.CONTENT_UPDATES,action:i.a.ContentUpdates.AWAITING_REVIEW}}},{name:P.PastReleases,link:{selector:_.PastReleases,appLink:{application:i.b.CONTENT_UPDATES,action:i.a.ContentUpdates.PAST_RELEASES}}}],T=[{id:s.b.ThisMonth,value:s.b.ThisMonth,from:R.getFirstDayInMonthNumMonthsAgo(0),to:o().format("YYYY-MM-DD"),name:function(){return S.a.getPhrase(k,"thisMonth")},queryString:s.b.ThisMonth},{id:s.b.LastMonth,value:s.b.LastMonth,from:R.getFirstDayInMonthNumMonthsAgo(1),to:R.getLastDayInMonthNumMonthsAgo(1),name:function(){return S.a.getPhrase(k,"lastMonth")},queryString:s.b.LastMonth},{id:s.b.Last3Months,value:s.b.Last3Months,from:R.getFirstDayInMonthNumMonthsAgo(2),to:o().format("YYYY-MM-DD"),queryString:s.b.Last3Months,name:function(){return S.a.getPhrase(k,"last3Months")}},{id:s.b.Last6Months,value:s.b.Last6Months,from:R.getFirstDayInMonthNumMonthsAgo(5),to:o().format("YYYY-MM-DD"),queryString:s.b.Last6Months,name:function(){return S.a.getPhrase(k,"last6Months")}}],D=r.last(T),L=n(46),A={groupVideosByHostedLibrary:function(t){return A.groupVideosByLibrary(t,L.a.HostedLibrary,!0)},groupVideosByLibrary:function(t,e,n){if(!t||!t.length)return new v;var o=[],i=t.groupBy((function(t){var r=t.libraries.findWhere({type:e});return r||n&&(r=t.libraries.first())?r.get("name"):"Unknown Library"}));return r.each(i,(function(t,e){o.push(new l.b({id:e,videos:t,groupTitle:e}))})),new v(r.sortBy(o,"id"))}};n.d(e,"a",(function(){return P})),n.d(e,"b",(function(){return _})),n.d(e,"d",(function(){return x})),n.d(e,"g",(function(){return T})),n.d(e,"e",(function(){return D})),n.d(e,"c",(function(){return A})),n.d(e,"f",(function(){return R}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(29),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f="migrationWizard.alreadyMigratedError",p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(u,t);var e,n,r,i=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,o.a.getPhrase(f,"title"))}return e=u,(n=[{key:"name",get:function(){return"AlreadyMigratedError"}},{key:"heading",get:function(){return o.a.getPhrase(f,"heading")}}])&&a(e.prototype,n),r&&a(e,r),u}(r.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(1),o=n(7),i=n(2),a=n(16),c=n(87),s=n(397),u=n.n(s);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(t)))return;var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=t[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){o=!0,i=t}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return p(t,e)}(t,e)||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 p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(p,t);var e,n,s,l=y(p);function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),l.call(this,t)}return e=p,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:option:selected",this.render)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"hasTooltip",value:function(){if(!r.isFunction(this.options.getTooltip))return!1;var t=this.getTooltip();return!!r.isObject(t)&&t.title}},{key:"getTooltip",value:function(){if(r.isFunction(this.options.getTooltip))return this.options.getTooltip.apply(this,arguments)}},{key:"isDisabled",value:function(){return!!this.model.get("divider")||!!r.isFunction(this.options.isDisabled)&&this.options.isDisabled.apply(this,arguments)}},{key:"onClick",value:function(t){var e=this.model.get("eventName")||this.options.eventName;this.model.get("stopPropagation")&&t.stopPropagation(),this.isDisabled()?t.stopPropagation():(this.logAction(),e&&o.Radio.channel(this.options.channelName).trigger(e,this.model))}},{key:"logAction",value:function(){var t=this.model.get("appLink");if(t){var e=f(t.args,1)[0];this.options.analyticsHelper.logUserAction({id:e},this.model.get("analyticsOptions"))}}},{key:"buildPrefix",value:function(){if(r.isFunction(this.options.prefixHandler))return this.options.prefixHandler.apply(this,arguments)}},{key:"getTitle",value:function(){if(!this.model.get("divider")){var t=this.model.get(this.options.titleProperty);return t||i.a.ErrorHelper.throw(new a.a("titleProperty has not been correctly set. Or the model does not contain the property.")),t}}},{key:"viewOptions",value:function(){return{title:this.getTitle(),prefix:this.buildPrefix(),iconSvg:this.model.get("icon")}}},{key:"onRender",value:function(){this.resetClassName()}},{key:"template",get:function(){return u.a}},{key:"behaviors",get:function(){var t=[];return this.hasTooltip()&&t.push(Object.assign({behaviorClass:c.a},this.getTooltip())),t}},{key:"name",get:function(){return"DropdownItemComponent"}},{key:"tagName",get:function(){return this.model.get("divider")?"div":this.model.get("appLink")||this.model.get("href")?"a":"span"}},{key:"className",get:function(){if(this.model.get("divider"))return"dropdown-divider";var t=this.model.get("classes")||this.options.extraClasses,e="dropdown-item text-truncate";return this.options.truncateOptionNames?e+=" d-block text-truncate":e+=" d-flex justify-content-between",this.model.get("selected")&&(e+=" active"),this.isDisabled()?this.hasTooltip()?e+=" cursor-default":e+=" disabled cursor-default":e+=" cursor-pointer",t&&(e+=" ".concat(t)),e}},{key:"appLinks",get:function(){return this.model.get("appLink")?{"[this]":this.model.get("appLink")}:{}}},{key:"defaults",get:function(){return{titleProperty:"title"}}},{key:"attributes",get:function(){if(this.options.truncateOptionNames)return{title:this.model.get("name")};var t=this.hasTooltip()?this.getTooltip().title:"";return this.model.get("href")?{href:this.model.get("href"),title:this.options.currentSelectedMessage||t,target:this.model.get("external")?"_blank":""}:{title:t}}}])&&h(e.prototype,n),s&&h(e,s),p}(i.a.Component)},function(t,e,n){"use strict";var r=n(1),o=n(7),i=n(2),a=n(70),c=n(13),s=n(58);const u={isEmpty:t=>r.isEmpty(t),values:t=>r.values(t),keys:t=>r.keys(t),deepClone:t=>(r.isArray(t)?r.map:r.mapObject)(t,t=>r.isObject(t)||r.isArray(t)?u.deepClone(t):t),getEnumKeys:t=>Object.keys(t).filter(t=>!(parseInt(t)>=0)),isObject:t=>r.isObject(t),isEqual:(t,e)=>r.isEqual(t,e),omit:(t,e)=>r.omit(t,e)};var l,f=n(123);!function(t){t.Banner="banner",t.Thumbnail="thumbnail"}(l||(l={}));const p={[f.b.Banners]:l.Banner,[f.b.Thumbnails]:l.Thumbnail},h=t=>"/v1/category-map/"+t,d={createUrl:(t,e)=>d._createUrl(t,e),createBannerUrl:(t,e,n)=>t&&t.url?d._createUrl(t.url,n):d._createCategoryMappedUrl(e,n),Rfc3986EncodeURIComponent:t=>encodeURIComponent(t).replace(/[!'()*]/g,escape),_createCategoryMappedUrl(t,e){const{fallbackBaseUrl:n,fallbackCategoryName:r,type:o}=t,i=s.a.safeUrlConcat(n,""+h(p[o])),a=Object.assign({name:d.Rfc3986EncodeURIComponent(r)},e);return d._createUrl(i,a)},_createUrl(t,e){if(!t)return;if(u.isEmpty(e))return t;const n=$.param(e),r=-1===t.indexOf("?")?"?":"&";return s.a.safeUrlConcat(t,`${r}${n}`)},legacyCreateThumbnailUrl(t,e){if(!t)return"";let n;if(!t)return;if(n=t instanceof i.a.Model?t.get("url"):"string"==typeof t?t:t.url,!n)return;const r=Object.assign({size:f.a.Small,bgColor:"000"},e);return d._createUrl(n,r)}},y=(t,e,n)=>{var r=e-(t=t.toString()).length;return r<=0?t:new Array(r+1).join(n)+t},g={ToDisplayDuration(t){if(!r.isNumber(t))return"";const e=new Date(t),n=e.getUTCHours(),o=y(e.getUTCMinutes(),2,"0"),i=y(e.getUTCSeconds(),2,"0");return n>0?`${n}:${o}:${i}`:`${o}:${i}`}};var b=n(391),m=n.n(b),v=n(117),S=n.n(v);n.d(e,"a",(function(){return w}));class w extends i.a.Component{constructor(t){super(t)}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 m.a}get tagName(){return"a"}get className(){let t=S.a.thumbnailContainer+" responsive-img";return this.options.onClickHandler&&(t+=" cursor-pointer"),t}get elements(){return{["."+S.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("."+S.a.playSvgContainer).show()}onClick(t){if(!this.options.appLink&&r.isFunction(this.options.onClickHandler))return this.options.onClickHandler.apply(this,arguments)}onImageLoad(){this.options.channelName&&o.Radio.channel(this.options.channelName).trigger("thumbnail:load")}viewOptions(){const t=this.model.get("duration");return{styles:S.a,url:d.legacyCreateThumbnailUrl(this.model.get("thumbnail"),this.options.thumbnailOptions),duration:t&&g.ToDisplayDuration(t),playSvg:c.a.getSvg(c.b.Play),playIcon:this.options.playIcon,lazyload:this.options.lazyload}}onRender(){if(o.Radio.channel(a.a.LAZY_LOAD).trigger("update:loader"),this.options.lazyload&&this.options.channelName){const t=this.getUI("img");t.length&&(t[0].onload=r.bind(this.onImageLoad,this))}}}},function(t,e,n){"use strict";var r=n(1),o=n(2),i=n(377),a=n.n(i);class c extends o.a.Component{constructor(t){super(t)}get name(){return"EmptyStateComponent"}get className(){let t="d-flex flex-column justify-content-center align-items-center text-center h-100";return this.options.customClass&&(t+=" "+this.options.customClass),t}get template(){return a.a}get defaults(){return{imageSize:"lg",paddedContainer:!0}}get appLinks(){return this.options.appLink||{}}getImageClass(){return this.options.customImageClass}getHeading(){return r.isFunction(this.options.heading)?this.options.heading():this.options.heading}getDescription(){return r.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()}}}var s=n(298);n.d(e,"a",(function(){return u}));class u extends o.a.Behavior{get defaults(){return{type:0,shouldRender:s.a.isCollectionEmpty.bind(null,this.view)}}set defaults(t){}shouldRender(){return!!r.isFunction(this.options.shouldRender)&&this.options.shouldRender()}getComponent(){const t=this.options.emptyStateComponents[this.options.type](this);return new c(t)}renderEmptyState(){if(!this.shouldRender())return;const t=this.getComponent();this.view.showChildView(this.options.region,t)}onRender(){this.renderEmptyState()}}},function(t,e,n){"use strict";var r=n(1),o=n(82),i=n(2),a=n(16),c=n(49),s=n(22),u=n(83),l=n(13),f=n(3),p=n(371),h=n.n(p),d=n(372),y=n.n(d);n.d(e,"a",(function(){return g}));var g={handleQuery:function(t,e){return function(n,i,a){if(n&&t instanceof o){return t.search.call(t,n,i,(function(t){var o=[];if("empty-suggestion"===e.name)return a.call(this,[{}]);if("add-new"===e.name){var i=r.find(t,(function(t){return t.name.toLowerCase()===n.toLowerCase()}));i||(i={name:n}),i.type=e.newType,o.push(i)}else o=t;a.call(this,o)}))}}},getSuggestionTemplate:function(t){return"add-new"===t?function(t){return function(t){var e=r.extend({},t,{options:{styles:h.a,svg:l.a.getSvg(l.b.Plus),createText:f.a.getPhrase("shared.utils","create")}});return y()(e)}(t)}:"empty-suggestion"===t?u.a:u.d},getPendingTemplate:function(t){return"add-new"===t||"empty-suggestion"===t?u.a:u.b},getNotFoundTemplate:function(t,e){return"add-new"===t||e?u.a:u.c},getFooterTemplate:function(t){return r.isFunction(t)?t:null},prepareQuery:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.libraryIds;return"".concat(e.url,"?q=").concat(t).concat(r?"&ids=".concat(r):"")},prepareUrl:function(t,e){var n=g.mapRawSearchType(t,e);return"/api/domain/v1/search/".concat(n,"/instant/raw")},mapRawSearchType:function(t,e){switch(t){case s.a.TagsRaw:return s.a.TagsRaw;case s.a.Series:return s.a.Series;case s.a.Producers:return s.a.Producers;case s.a.Distributors:return s.a.Distributors;case s.a.ChannelRaw:return s.a.ChannelRaw;case s.a.Directors:return s.a.Directors;case s.a.ProductionCompanies:return s.a.ProductionCompanies;case s.a.Season:return s.a.Season;case"add-new":case"empty-suggestion":return e.newType;default:i.a.ErrorHelper.throw(new a.a("Raw search type ".concat(t," is not supported.")))}},getBloodhoundConfig:function(){return function(t,e){return{datumTokenizer:o.tokenizers.obj.whitespace("name"),queryTokenizer:o.tokenizers.whitespace,remote:{url:g.prepareUrl(t,e),prepare:r.partial(g.prepareQuery,r,r,e),cache:!1}}}},getTypeaheadConfig:function(){return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return{name:t.name,source:g.handleQuery(t.bloodhound,Object.assign({fetchType:c.a.Remote,name:t.name},n)),async:!0,limit:5,display:function(t){return t.name},templates:{suggestion:g.getSuggestionTemplate(t.name),pending:g.getPendingTemplate(t.name),notFound:g.getNotFoundTemplate(t.name,n.hideEmptyResults),footer:g.getFooterTemplate(n.footerTemplate)}}}}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(29),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(u,t);var e,n,r,i=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,"User does not have access to this video")}return e=u,(n=[{key:"name",get:function(){return"ForbiddenVideoError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.forbiddenVideo","info")}}])&&a(e.prototype,n),r&&a(e,r),u}(r.a)},function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var r=n(29),o=n(3);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=l(t);if(e){var o=l(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(u,t);var e,n,r,i=s(u);function u(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,"Video not found")}return e=u,(n=[{key:"name",get:function(){return"VideoNotFoundError"}},{key:"heading",get:function(){return o.a.getPhrase("libraryEditor.errors.videoNotFound","heading")}}])&&a(e.prototype,n),r&&a(e,r),u}(r.a)},function(t,e,n){"use strict";var r=n(135);n.d(e,"a",(function(){return r.a}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(98);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,r,i=u(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){"use strict";n.d(e,"a",(function(){return C}));var r=n(7),o=n(2),i=n(3),a=n(65),c=n(11),s=n(0),u=n(400),l=n.n(u),f=n(85),p=n.n(f);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),t}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&v(t,e)}function v(t,e){return(v=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=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(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var E=function(t){m(n,t);var e=S(n);function n(t){return y(this,n),e.call(this,t)}return b(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:video change:pendingProcessStatus",this.render),this.listenTo(this.model,"change:foregroundProgress change:backgroundProgress",this.update)}},{key:"events",value:function(){var t;return d(t={},"click .".concat(p.a.cancel),"onClickCancel"),d(t,"click .retry","onClickRetry"),t}},{key:"onClickCancel",value:function(t){t.preventDefault(),t.stopPropagation();var e=this.model.get("video").get("name");c.b.generateDialog(e,this.options.channelName,"clear:pending:item",this.model)}},{key:"onClickRetry",value:function(t){t.preventDefault(),t.stopPropagation(),r.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.model)}},{key:"viewOptions",value:function(){var t=this.model.get("video");return{status:a.a.getStatus(this.model),progress:a.a.getProgress(this.model),name:t?t.get("name"):i.a.getPhrase(this.lang,"videoNotFound"),isDone:a.a.isDone(this.model),hasError:a.a.hasError(this.model),styles:p.a,spinnerEl:c.q.getSpinner({size:c.r.Medium,tag:"span",extraClasses:p.a.spinner})}}},{key:"onRender",value:function(){this.$el.find(".".concat(p.a.cancel,",.retry")).tooltip({placement:"left"})}},{key:"onDestroy",value:function(){this.$el.find(".".concat(p.a.cancel,",.retry")).tooltip("dispose")}},{key:"update",value:function(){var t=a.a.getStatus(this.model),e=a.a.getProgress(this.model),n=this.getUI("progressBar");n&&n.get(0)&&$(n.get(0)).css("width","".concat(e,"%")),this.getUI("progressText").html(t)}},{key:"name",get:function(){return"ProcessProgressComponent"}},{key:"template",get:function(){return l.a}},{key:"lang",get:function(){return"upload.processProgress"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return"d-block my-2 cursor-pointer ".concat(p.a.processProgress)}},{key:"attributes",get:function(){return{title:this.model.get("statusMessageHeader")}}},{key:"elements",get:function(){return{progressBar:".progress-bar",progressText:".progress-text"}}},{key:"appLinks",get:function(){return{"[this]":{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.FOLDER,args:[this.model.get("categoryId")]}}}}]),n}(o.a.Component),C=function(t){m(n,t);var e=S(n);function n(t){return y(this,n),e.call(this,t)}return b(n,[{key:"name",get:function(){return"ProcessProgressComponentCollection"}},{key:"childView",get:function(){return E}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}},{key:"className",get:function(){return"px-2 popover-list-body-md"}},{key:"viewComparator",get:function(){return function(t){return-t.get("pendingProcessStatus")}}}]),n}(o.a.ComponentCollection)},function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var r=n(2),o=n(24),i=n(13),a=n(31),c=n(0),s=n(11),u=n(170),l=n.n(u),f=n(403),p=n.n(f);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var S=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(f,t);var e,n,r,u=b(f);function f(){return d(this,f),u.apply(this,arguments)}return e=f,(n=[{key:"initialize",value:function(){this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:progress change:items change:hasErrors",this.render),this.listenTo(c.w.PENDING_ITEMS,a.a.PENDING_ITEM_STATUS_CHANGE,this.render)}},{key:"viewOptions",value:function(){return{warningSvg:i.a.getSvg(i.b.Warning),spinnerEl:s.q.getSpinner({size:s.r.Medium,type:s.s.LightBgDark}),styles:l.a}}},{key:"onBeforeRender",value:function(){return!!this.model.get("items")}},{key:"name",get:function(){return"ProgressInfoComponent"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return l.a.progressInfo}}])&&y(e.prototype,n),r&&y(e,r),f}(r.a.Component)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var r={LIBRARY_STATUS:"library:status"}},function(t,e,n){"use strict";var r,o=n(1),i=n(7),a=n(2),c=n(3),s=n(5),u=n(24),l=n(12),f=n(48),p=n(75),h=n(69);!function(t){t[t.Permanent=0]="Permanent",t[t.Temporary=1]="Temporary"}(r||(r={}));var d=n(111),y=n(31),g=n(25);class b extends g.a{constructor(t,e,n){super(t)}get name(){return"FileTypeError"}get lang(){return"upload.fileType"}get dialogOptions(){return{title:c.a.getPhrase(this.lang,"heading"),text:c.a.getPhrase(this.lang,"body"),buttons:[{text:c.a.getPhrase(this.lang,"okay"),className:"btn btn-primary",success:!0},{text:c.a.getPhrase(this.lang,"close"),className:"btn btn-link",close:!0}]}}}var m=n(172);const v="upload.internetConnectivityError";class S extends g.a{constructor(){super(c.a.getPhrase(v,"title"))}get name(){return"InternetConnectivityError"}get dialogOptions(){return{title:c.a.getPhrase(v,"heading"),text:c.a.getPhrase(v,"body"),buttons:[{text:c.a.getPhrase(v,"okay"),className:"btn",success:!0}]}}}var w=n(147);const O=[];class E extends a.a.Service{constructor(t){super(t)}get name(){return"DropzoneWrapper"}initialize(t){const{loggingEnabled:e}=this.options,n=i.Radio.channel(t.channelName),r=this;this.dropzone=new m(document.createElement("div"),{url:t=>{const e=t[0],{ingestUrl:n}=e.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(){e&&(o.each(O,t=>{this.on(t,(...e)=>{const n=e[0]instanceof File?e[0].name:e[0];console.info(t,n,e)})}),this.on("uploadprogress",(t,e,o)=>{const i=o/t.size*100;n.trigger("progress",r.getId(t),i,o)}),this.on("success",t=>{const e=t.upload.chunks,r=o.last(e);let i=r.xhr;i||(i=r.file.xhr);const a=JSON.parse(i.response);t.cvUpload.fileUrl=a.url,n.trigger("upload:success",t,a)}),this.on("error",(t,e,n)=>{n&&0===n.status?a.a.ErrorHelper.throw(new S):"canceled"!==t.status&&a.a.ErrorHelper.throw(new w.a(c.a.getPhrase("upload.services","uploadError",{fileName:t.name,message:e.message})))}))},params:(t,e,n)=>{if(n)return{chunk_index:n.index,upload_length:n.file.size}},addedfile:()=>{},thumbnail:()=>{},uploadprogress:()=>{}})}getId(t){return t.upload.uuid}addFile(t){this.dropzone.addFile(t)}removeFile(t){this.dropzone.removeFile(t)}start(){this.dropzone.processQueue()}destroy(){this.dropzone.destroy()}static isValidFile(t,e){return m.isValidFile(t,e)}}var C,R=n(19),k=n(18);n.d(e,"d",(function(){return C})),n.d(e,"a",(function(){return D})),n.d(e,"c",(function(){return L})),n.d(e,"b",(function(){return A}));class P extends l.a{constructor(){super({dataProvider:s.a.getInstance(f.a.Ajax),cache:s.a.getInstance(p.a.Fifo),alertService:s.a.getInstance(h.a.ALERT)})}get name(){return"UploadDataService"}get channelName(){return"private:upload:data:service"}requestUploads(t,e,n,r){const i=this.chain();o.each(t,t=>{i.create({resource:"/api/upload",eventPrefix:"request:upload",data:this.getFileUploadRequest(t,e),callback:e=>{n(t,e)}})}),i.func(()=>{r()}).run()}cancelUpload(t,e,n){this.create({resource:"/api/upload/cancel",eventPrefix:"cancel:upload",data:{uploadId:t,ingestUrl:e},callback:n})}getFileUploadRequest(t,e){const n=t.name.split(".");return{name:n.join("."),extension:n.length>1?n.pop():"",fileSize:t.size,fileLifestyle:e}}onDestroy(){s.a.releaseInstance(f.a.Ajax).releaseInstance(p.a.Fifo)}}!function(t){t[t.Video=0]="Video",t[t.LearningResource=1]="LearningResource",t[t.Subtitle=2]="Subtitle"}(C||(C={}));const _={[C.Video]:"video/*",[C.LearningResource]:d.b.RESOURCES,[C.Subtitle]:d.b.SUBTITLES},x={[C.Video]:R.c.VIDEO_UPLOAD,[C.LearningResource]:R.c.RESOURCE_UPLOAD,[C.Subtitle]:R.c.SUBTITLE_UPLOAD};class T extends a.a.Service{initialize(){this.uploadDataService=new P,this.progressViewModel=u.a.get("upload:progress:"+this.uploadType),this.bindListeners()}get channelName(){return x[this.uploadType]}get lang(){return"upload.services"}initUploader(t,e){if(this.uploader)return;let n=4194304;t&&n<t&&(n=t),e&&n>e&&(n=e),this.uploader=new E({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(t,e,n){const r=this.collection.get(t);r&&(r.set({progress:e>100?100:e,totalUploaded:n}),this.setOverallProgress())}isUploading(){return!!this.getCollection().length}getCollection(){return this.collection||(this.collection=new a.a.Collection),this.collection}setOverallProgress(){let t=0,e=0;const n=this.getCollection();if(!n.length)return void this.progressViewModel.set({progress:0});n.each(n=>{t+=n.get("totalUploaded")||0,e+=n.get("file").size||0});const r=t/e*100,o=r>100;this.progressViewModel.set({progress:o?100:r,done:o})}isValidFile(t){return E.isValidFile(t,this.getAcceptedFiles())}addFiles(t){o.any(t,t=>!this.isValidFile(t))?a.a.ErrorHelper.throw(new b(c.a.getPhrase(this.lang,"invalidFileType"),t,this.getAcceptedFiles())):this.requestUploads(t)}requestUploads(t){const e=this.isUploading(),n=this.getCollection();this.uploadDataService.requestUploads(t,this.fileLifestyle,(t,e)=>{this.initUploader(1024*e.minChunkSize,1024*e.maxChunkSize),t.cvUpload={uploadId:e.uploadId,ingestUrl:e.ingestUrl},this.uploader.addFile(t);let r=t.name;this.uploadType===C.Video&&(r=r.replace(/\.[^/.]+$/,"")),n.add({id:this.uploader.getId(t),file:t,name:r},{at:n.length-1})},()=>{i.Radio.channel(this.channelName).trigger(y.a.FILES_ADDED,t,e)})}addFile(t){this.addFiles([t])}cancelUpload(t){const e=this.getCollection(),n=e.get(t);if(!n)return;const r=n.get("file");this.uploader.removeFile(r),e.remove(n),this.uploadDataService.cancelUpload(r.cvUpload.uploadId,r.cvUpload.ingestUrl,()=>{i.Radio.channel(this.channelName).trigger(y.a.UPLOAD_CANCELLED)}),this.setOverallProgress()}onSuccess(t,e){const n=this.uploader.getId(t),r=this.getCollection().get(n);r.set("fileInfo",e);i.Radio.channel(this.channelName).trigger(y.a.UPLOAD_COMPLETE,r)}cancelAllUploads(){const t=this.getCollection().map(t=>t.get("id"));o.each(t,t=>this.cancelUpload(t))}getAcceptedFiles(){return _[this.uploadType]}}class D extends T{get uploadType(){return C.Video}get name(){return k.b.VideoUpload}get fileLifestyle(){return r.Temporary}}class L extends T{get uploadType(){return C.Subtitle}get name(){return k.b.SubtitleUpload}get fileLifestyle(){return r.Permanent}}class A extends T{get uploadType(){return C.LearningResource}get name(){return k.b.ResourceUpload}get fileLifestyle(){return r.Permanent}}},function(t,e,n){"use strict";var r=n(2),o=n(97),i=n(1),a=n(3),c=n(5),s=n(12),u=n(35),l=n(0),f=n(34),p=n(32),h=n(145),d=n(55);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function g(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=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(t){return!1}}();return function(){var n,r=w(t);if(e){var o=w(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function w(t){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var O=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(i,t);var e,n,r,o=v(i);function i(){return g(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return d.g}}])&&b(e.prototype,n),r&&b(e,r),i}(r.a.Collection),E=n(14),C=n(57);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function x(t,e){return(x=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function T(t){var e=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(t){return!1}}();return function(){var n,r=L(t);if(e){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function L(t){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return et})),n.d(e,"b",(function(){return nt}));var A=function(t){var e={categoryChord:t};return"/api/homemigrator/v1/customers/categories/videos?".concat($.param(e,!0))},N=function(){return"/api/homemigrator/v1/customers/categories"},I=function(){return"/api/homemigrator/v1/customer-meta"},j=function(t){return"/api/homemigrator/v1/synced-videos/publisher-metadata?trackingCode=".concat(t)},V=function(t){return"/api/homemigrator/v1/synced-videos/publisher-metadata?masterId=".concat(t)},M=function(){return"/api/homemigrator/v1/backup/progress"},U=function(t){return"/api/homemigrator/v1/customer-meta/options/".concat(t)},F=function(){return"/api/homemigrator/v1/finalise/smart"},H=function(){return"/api/homemigrator/v1/finalise/full"},z=function(t){return"/api/homemigrator/v1/finalise/".concat(t)},B=function(t){return"/api/homemigrator/v1/backup-tools/head?channel=".concat(t)},q=function(){return"/api/homemigrator/v1/finalise/phase2"},G=function(t){return"/api/homemigrator/v1/finalise?type=".concat(t)},W=function(){return"/api/homemigrator/v1/customers/reviewvideos"},Y=function(){return"/api/homemigrator/v1/customers/reviewvideos/count"},J=function(){return"/api/homemigrator/v1/synced-videos/migrationstatus"},K=function(t){return"/api/homemigrator/v1/reports/".concat(t)},Q=function(){return"/api/homemigrator/v1/reports"},Z=function(t){return"/api/homemigrator/v2/customers/videos/smart?limit=987".concat(t?"&cursor=".concat(t):"")},X={video:function(t){return new r.a.Model(t[0],{parse:!0})},videos:function(t){return new u.a(t,{parse:!0})},smartSelectVideos:function(t){return new O(t)},videoCount:function(t){return new d.h(t)},folders:function(t){return new h.a(t,{parse:!0})},customerMetadata:function(t){return new d.b(t)},finalisationTask:function(t){return new d.c(t)},backupTool:function(t){return new d.a(t)}},tt=l.f,et=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&x(t,e)}(y,t);var e,n,s,h=T(y);function y(){return P(this,y),h.apply(this,arguments)}return e=y,(n=[{key:"initialize",value:function(){this.folderCacheService=c.a.getInstance(l.x.FolderCache,this)}},{key:"clearVideoCache",value:function(){this.invalidateCache([tt.CUSTOMER_VIDEOS])}},{key:"getCustomerFolders",value:function(t){return this.get({callback:t,expiryTime:E.a.STANDARD,formatData:X.folders,resource:N(),eventPrefix:"".concat(tt.CUSTOMER_FOLDERS)})}},{key:"getCustomerVideos",value:function(t,e){return this.get({callback:e,expiryTime:E.a.STANDARD,formatData:function(e){return i.each(e,(function(e){return e.categoryChord=t})),new u.a(e)},resource:A(t),eventPrefix:"".concat(tt.CUSTOMER_VIDEOS,":").concat(escape(t))})}},{key:"clearCacheAndgetCustomerSmartSelect",value:function(t,e){var n=this,r=function(t,e){n.clearCacheAndGet({expiryTime:E.a.STANDARD,resource:Z(t),eventPrefix:"".concat(tt.CUSTOMER_SMART_VIDEOS),errorHandler:n.alertService.error({useXHR:!0}),callback:e})},o=[];r("",(function n(i){i.data.length&&o.push.apply(o,i.data),t(o.length),null===i.cursor?e(new O(o)):r(i.cursor,n)}))}},{key:"getCustomerMetadata",value:function(t){return this.get({callback:t,expiryTime:E.a.STANDARD,formatData:X.customerMetadata,resource:I(),eventPrefix:"".concat(tt.CUSTOMER_METADATA),bootstrapName:l.c.CUSTOMER_META})}},{key:"clearCacheAndGetCustomerMetadata",value:function(t){return this.clearCacheAndGet({callback:t,formatData:X.customerMetadata,resource:I(),eventPrefix:"".concat(tt.CUSTOMER_METADATA)})}},{key:"getCustomerVideoByTrackingCode",value:function(t,e){return this.get({callback:e,expiryTime:E.a.STANDARD,formatData:X.video,resource:j(t),eventPrefix:"".concat(tt.CUSTOMER_VIDEO,":").concat(t)})}},{key:"getCustomerVideoByMasterId",value:function(t,e){return this.get({callback:e,expiryTime:E.a.STANDARD,formatData:X.video,resource:V(t),eventPrefix:"".concat(tt.CUSTOMER_VIDEO,":").concat(t),errorHandler:!1})}},{key:"getCustomerVideoCount",value:function(t){this.clearCacheAndGet({callback:t,expiryTime:E.a.STANDARD,formatData:X.videoCount,resource:M(),eventPrefix:"".concat(tt.CUSTOMER_VIDEO,":count")})}},{key:"getCustomerVideoCountCached",value:function(t){return this.get({callback:t,expiryTime:E.a.STANDARD,formatData:X.videoCount,resource:M(),eventPrefix:"".concat(tt.CUSTOMER_VIDEO,":count")})}},{key:"updateCustomerMigrationOption",value:function(t,e){return this.update({data:{},resource:U(t),eventPrefix:"".concat(tt.CUSTOMER_METADATA,":update"),callback:e,invalidationKeys:["".concat(tt.CUSTOMER_METADATA),"libraries"]})}},{key:"finaliseCustomerVideos",value:function(t,e,n){var r=this,o=t.map((function(t){return{category:t.get("folderChord"),videoIds:t.get("videoIds"),forceMigrateWarnings:e}}));this.create({data:o,callback:function(t){r.clearVideoCache(),i.isFunction(n)&&n(t)},resource:F(),eventPrefix:"".concat(tt.CUSTOMER_VIDEOS,":finalise"),invalidationKeys:["manual:review:videos","manual:review:video:count",tt.VIDEOS],formatData:function(t){return new d.c(t)}})}},{key:"finaliseAllVideos",value:function(t){var e=this;this.create({data:{},callback:function(n){e.clearVideoCache(),i.isFunction(t)&&t(n)},resource:H(),eventPrefix:"".concat(tt.CUSTOMER_VIDEOS,":finalise:all"),formatData:function(t){return new d.c(t)}})}},{key:"getFinalisationTask",value:function(t,e){this.clearCacheAndGet({callback:e,expiryTime:E.a.STANDARD,formatData:X.finalisationTask,resource:z(t),eventPrefix:"".concat(tt.FINALISATION,":").concat(t)})}},{key:"deselectAll",value:function(){this.getCustomerFolders((function(t){f.a.deselectAll(C.a.MIGRATION_WIZARD,t)}))}},{key:"setSelected",value:function(t){var e=this;this.getCustomerFolders((function(n){f.a.setSelected(C.a.MIGRATION_WIZARD,e.folderCacheService.getFolderByChord(t,n),n)}))}},{key:"getSelected",value:function(t){this.getCustomerFolders((function(e){var n=f.a.getSelected(C.a.MIGRATION_WIZARD,e);t(n)}))}},{key:"getBackupTool",value:function(t,e){return this.get({resource:B(t),formatData:X.backupTool,eventPrefix:tt.BACKUP_TOOL,callback:e})}},{key:"publishLibraries",value:function(t){return this.create({data:{},resource:q(),eventPrefix:"publish:libraries",callback:t})}},{key:"getPublishLibrariesProgress",value:function(t,e){this.clearCacheAndGet({resource:G(t),eventPrefix:"current:finalisation:task",formatData:X.finalisationTask,callback:e})}},{key:"clearCacheAndGetManualReviewVideoCount",value:function(t){this.clearCacheAndGet({resource:Y(),eventPrefix:"manual:review:video:count",formatData:function(t){return new r.a.Model(t)},callback:t})}},{key:"getManualReviewVideoCount",value:function(t){return this.get({resource:Y(),eventPrefix:"manual:review:video:count",formatData:function(t){return new r.a.Model(t)},callback:t})}},{key:"getManualReviewVideos",value:function(t){return this.get({resource:W(),eventPrefix:"manual:review:videos",formatData:function(t){return new r.a.Collection(t)},callback:t})}},{key:"updateMigrationStatus",value:function(t,e,n){this.update({data:{videoIds:t,migrationStatus:e},resource:J(),eventPrefix:"update:migration:status",invalidationKeys:["manual:review:videos","manual:review:video:count"],callback:n})}},{key:"getMigrationReportOptions",value:function(t){return this.get({resource:Q(),eventPrefix:"get:migration:report:options",callback:t})}},{key:"generateMigrationReportCsv",value:function(t,e){var n,r=this,c=(k(n={},p.d.Migrated,"homemigrator.le.migration.migrated.report"),k(n,p.d.Remaining,"homemigrator.le.migration.remaining.videos.report"),k(n,p.d.Errored,"homemigrator.le.migration.error.report"),k(n,p.d.ContentMatched,"homemigrator.le.migration.content.matched.report"),n),s=new o.a(t.length),u=function(){s.decrement(),0===s.getValue()&&(r.alertService.success(a.a.getPhrase(r.lang,"generateCsvSuccess"))(),e())};i.each(t,(function(t){r.create({callback:u,resource:K(c[t]),data:{},eventPrefix:"generate:migration:report:csv:".concat(t),errorHandler:r.alertService.error(a.a.getPhrase(r.lang,"generateCsvFail"))})}))}},{key:"name",get:function(){return"MigrationVideoDataService"}},{key:"channelName",get:function(){return l.e.MIGRATION}},{key:"lang",get:function(){return"migrationWizard.services"}}])&&_(e.prototype,n),s&&_(e,s),y}(s.a),nt={customerMetaData:{dataServiceName:l.e.MIGRATION,eventName:"".concat(tt.CUSTOMER_METADATA,":sync"),getData:function(t){return t.getCustomerMetadata()},getInstance:function(t){return c.a.getInstance(l.g.MigrationVideo,t)},beforeOnBeforeRender:!0}}},function(t,e,n){"use strict";var r=n(1),o=n(370),i=n.n(o),a=n(8);const c={escapeExpression:t=>a.escapeExpression(t)};n.d(e,"a",(function(){return p}));var s=/&/g,u=/\W*/g,l=/\s+/g,f={className:"info-link"},p={wordsHighlighter:function(t,e){if(!t||!e||!e.length)return t;var n=p.escapeRegExp(e.join("%&%")).split("%&%");return t.replace(new RegExp("\\b("+n.join("|")+")\\b","gi"),'<span class="highlight">$&</span>')},escapeExpression:function(t){return c.escapeExpression(t)},escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},slugify:function(t){if(t)return t.toLowerCase().replace(s,"and").replace(u," ").trim().replace(l,"-").substr(0,80)},linkifyText:function(t,e){if(t){var n=e?r.extend({},f,e):f;return i()(t,n)}},extractKeyPhrases:function(t,e,n,o){if(!t||!e||!e.length)return[];var i,a=t.toLowerCase(),c=[],s=function(e,r){var o=e-Math.floor(n/2-r),i=o;if(i<=0)return 0;for(;" "!==t[i-1]&&i<e;)i++;if(i<e)return i;for(i=o;" "!==t[i-1]&&i>0;)i--;return i},u=function(e,r){var o=t.length,i=e+Math.floor(n/2-r),a=i;if(a>=o)return o;for(;" "!==t[a+1]&&a>e;)a--;if(a>e)return a+1;for(a=i;" "!==t[a+1]&&a<o;)a++;return a+1};r.each(e,(function(t){for(var e=t.toLowerCase(),n=a.indexOf(e);-1!==n;)c.push([s(n,t.length),u(n+t.length,t.length)]),n=a.indexOf(e,n+1)})),c=r.uniq(r.sortBy(c,(function(t){return t[0]})),!0,(function(t){return"".concat(t[0],":").concat(t[1])})),o&&(c=c.slice(0,o));do{i=!1;for(var l=0;l<c.length-1;l++)c[l][1]<c[l+1][0]||(c[l][1]=c[l+1][0]-1,i=!0)}while(i);var f=[];return r.each(c,(function(e){var n=t.slice(e[0],e[1]).trim();e[0]>0&&(n="...".concat(n)),e[1]<t.length&&(n="".concat(n,"...")),f.push(n)})),f.filter((function(t){return r.some(e,(function(e){return-1!==t.toLowerCase().indexOf(e.toLowerCase())}))}))}}},function(t,e,n){t.exports={banner:"_16p9Y",actions:"KoZV-"}},function(t,e,n){t.exports={containerWithBottomBorder:"_3pMnf",tabContainer:"_3DDqe",publisherArchiveAppLink:"WtJIT",reviewErroredAppLink:"_2P6wN",none:"_36_Ky",publisherArchive:"oHXCU",migrationErrors:"_Ztdf",svgContainer:"edUQE"}},function(t,e,n){t.exports={svgContainer:"O3FnZ",sortingRow:"Rbj8Y",bulkCheckbox:"_2mKzS",sortOption:"_3ajGP"}},function(t,e,n){t.exports={viewLink:"_2s0QU",viewCount:"_1ncwl",faded:"_2G1C1",bulkCheckbox:"_225JZ",videoRow:"fFRMW",videoTitle:"_3YCJO",errorIconContainer:"_37_lU",categoryName:"_3gjN2"}},function(t,e,n){t.exports={currentHeader:"b4Mqw",header:"_2OV3l",subheader:"_6H8te",back:"_3RKrR",backSvgContainer:"_1T015",checkSvgContainer:"_3Q3UJ",checkSvgContainerChecked:"ZsxkB",svg:"uKtsP"}},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(113);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,r,i=u(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}},{key:"comparator",get:function(){return"startTime"}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(2),o=n(133);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(l,t);var e,n,r,i=u(l);function l(){return a(this,l),i.apply(this,arguments)}return e=l,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return o.a}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.Collection)},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Model)},function(t,e,n){"use strict";e.__esModule=!0;e.default={nbsp:"Ā "}},function(t,e,n){"use strict";function r(t){this.named=t}e.__esModule=!0;var o=/^#[xX]([A-Fa-f0-9]+)$/,i=/^#([0-9]+)$/,a=/^([A-Za-z0-9]+)$/;r.prototype.parse=function(t){if(t){var e=t.match(o);return e?"&#x"+e[1]+";":(e=t.match(i))?"&#"+e[1]+";":(e=t.match(a))?this.named[e[1]]||"&"+e[1]+";":void 0}},e.default=r},function(t,e,n){"use strict";e.__esModule=!0;var r=n(641);function o(t,e){this.delegate=t,this.entityParser=e,this.state=null,this.input=null,this.index=-1,this.line=-1,this.column=-1,this.tagLine=-1,this.tagColumn=-1,this.reset()}o.prototype={reset:function(){this.state="beforeData",this.input="",this.index=0,this.line=1,this.column=0,this.tagLine=-1,this.tagColumn=-1,this.delegate.reset()},tokenize:function(t){this.reset(),this.tokenizePart(t),this.tokenizeEOF()},tokenizePart:function(t){for(this.input+=(0,r.preprocessInput)(t);this.index<this.input.length;)this.states[this.state].call(this)},tokenizeEOF:function(){this.flushData()},flushData:function(){"data"===this.state&&(this.delegate.finishData(),this.state="beforeData")},peek:function(){return this.input.charAt(this.index)},consume:function(){var t=this.peek();return this.index++,"\n"===t?(this.line++,this.column=0):this.column++,t},consumeCharRef:function(){var t=this.input.indexOf(";",this.index);if(-1!==t){var e=this.input.slice(this.index,t),n=this.entityParser.parse(e);if(n){for(var r=e.length;r;)this.consume(),r--;return this.consume(),n}}},markTagStart:function(){this.tagLine=this.line,this.tagColumn=this.column,this.delegate.tagOpen&&this.delegate.tagOpen()},states:{beforeData:function(){"<"===this.peek()?(this.state="tagOpen",this.markTagStart(),this.consume()):(this.state="data",this.delegate.beginData())},data:function(){var t=this.peek();"<"===t?(this.delegate.finishData(),this.state="tagOpen",this.markTagStart(),this.consume()):"&"===t?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(t))},tagOpen:function(){var t=this.consume();"!"===t?this.state="markupDeclaration":"/"===t?this.state="endTagOpen":(0,r.isAlpha)(t)&&(this.state="tagName",this.delegate.beginStartTag(),this.delegate.appendToTagName(t.toLowerCase()))},markupDeclaration:function(){"-"===this.consume()&&"-"===this.input.charAt(this.index)&&(this.consume(),this.state="commentStart",this.delegate.beginComment())},commentStart:function(){var t=this.consume();"-"===t?this.state="commentStartDash":">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData(t),this.state="comment")},commentStartDash:function(){var t=this.consume();"-"===t?this.state="commentEnd":">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("-"),this.state="comment")},comment:function(){var t=this.consume();"-"===t?this.state="commentEndDash":this.delegate.appendToCommentData(t)},commentEndDash:function(){var t=this.consume();"-"===t?this.state="commentEnd":(this.delegate.appendToCommentData("-"+t),this.state="comment")},commentEnd:function(){var t=this.consume();">"===t?(this.delegate.finishComment(),this.state="beforeData"):(this.delegate.appendToCommentData("--"+t),this.state="comment")},tagName:function(){var t=this.consume();(0,r.isSpace)(t)?this.state="beforeAttributeName":"/"===t?this.state="selfClosingStartTag":">"===t?(this.delegate.finishTag(),this.state="beforeData"):this.delegate.appendToTagName(t)},beforeAttributeName:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():"/"===t?(this.state="selfClosingStartTag",this.consume()):">"===t?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeName",this.delegate.beginAttribute(),this.consume(),this.delegate.appendToAttributeName(t))},attributeName:function(){var t=this.peek();(0,r.isSpace)(t)?(this.state="afterAttributeName",this.consume()):"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===t?(this.state="beforeAttributeValue",this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeName(t))},afterAttributeName:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():"/"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="selfClosingStartTag"):"="===t?(this.consume(),this.state="beforeAttributeValue"):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.state="attributeName",this.delegate.beginAttribute(),this.delegate.appendToAttributeName(t))},beforeAttributeValue:function(){var t=this.peek();(0,r.isSpace)(t)?this.consume():'"'===t?(this.state="attributeValueDoubleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):"'"===t?(this.state="attributeValueSingleQuoted",this.delegate.beginAttributeValue(!0),this.consume()):">"===t?(this.delegate.beginAttributeValue(!1),this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.state="attributeValueUnquoted",this.delegate.beginAttributeValue(!1),this.consume(),this.delegate.appendToAttributeValue(t))},attributeValueDoubleQuoted:function(){var t=this.consume();'"'===t?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef('"')||"&"):this.delegate.appendToAttributeValue(t)},attributeValueSingleQuoted:function(){var t=this.consume();"'"===t?(this.delegate.finishAttributeValue(),this.state="afterAttributeValueQuoted"):"&"===t?this.delegate.appendToAttributeValue(this.consumeCharRef("'")||"&"):this.delegate.appendToAttributeValue(t)},attributeValueUnquoted:function(){var t=this.peek();(0,r.isSpace)(t)?(this.delegate.finishAttributeValue(),this.consume(),this.state="beforeAttributeName"):"&"===t?(this.consume(),this.delegate.appendToAttributeValue(this.consumeCharRef(">")||"&")):">"===t?(this.delegate.finishAttributeValue(),this.consume(),this.delegate.finishTag(),this.state="beforeData"):(this.consume(),this.delegate.appendToAttributeValue(t))},afterAttributeValueQuoted:function(){var t=this.peek();(0,r.isSpace)(t)?(this.consume(),this.state="beforeAttributeName"):"/"===t?(this.consume(),this.state="selfClosingStartTag"):">"===t?(this.consume(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},selfClosingStartTag:function(){">"===this.peek()?(this.consume(),this.delegate.markTagAsSelfClosing(),this.delegate.finishTag(),this.state="beforeData"):this.state="beforeAttributeName"},endTagOpen:function(){var t=this.consume();(0,r.isAlpha)(t)&&(this.state="tagName",this.delegate.beginEndTag(),this.delegate.appendToTagName(t.toLowerCase()))}}},e.default=o},function(t,e,n){"use strict";e.__esModule=!0;var r,o=n(203),i=(r=o)&&r.__esModule?r:{default:r};function a(t,e){this.token=null,this.startLine=1,this.startColumn=0,this.options=e||{},this.tokenizer=new i.default(this,t)}a.prototype={tokenize:function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},tokenizePart:function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},tokenizeEOF:function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},reset:function(){this.token=null,this.startLine=1,this.startColumn=0},addLocInfo:function(){this.options.loc&&(this.token.loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},beginData:function(){this.token={type:"Chars",chars:""},this.tokens.push(this.token)},appendToData:function(t){this.token.chars+=t},finishData:function(){this.addLocInfo()},beginComment:function(){this.token={type:"Comment",chars:""},this.tokens.push(this.token)},appendToCommentData:function(t){this.token.chars+=t},finishComment:function(){this.addLocInfo()},beginStartTag:function(){this.token={type:"StartTag",tagName:"",attributes:[],selfClosing:!1},this.tokens.push(this.token)},beginEndTag:function(){this.token={type:"EndTag",tagName:""},this.tokens.push(this.token)},finishTag:function(){this.addLocInfo()},markTagAsSelfClosing:function(){this.token.selfClosing=!0},appendToTagName:function(t){this.token.tagName+=t},beginAttribute:function(){this._currentAttribute=["","",null],this.token.attributes.push(this._currentAttribute)},appendToAttributeName:function(t){this._currentAttribute[0]+=t},beginAttributeValue:function(t){this._currentAttribute[2]=t},appendToAttributeValue:function(t){this._currentAttribute[1]=this._currentAttribute[1]||"",this._currentAttribute[1]+=t},finishAttributeValue:function(){}},e.default=a},function(t,e,n){"use strict";e.__esModule=!0,e.stateify=e.TokenState=e.CharacterState=void 0;var r=n(126);var o=function(t){this.j=[],this.T=t||null};o.prototype={defaultTransition:!1,on:function(t,e){if(t instanceof Array){for(var n=0;n<t.length;n++)this.j.push([t[n],e]);return this}return this.j.push([t,e]),this},next:function(t){for(var e=0;e<this.j.length;e++){var n=this.j[e],r=n[0],o=n[1];if(this.test(t,r))return o}return this.defaultTransition},accepts:function(){return!!this.T},test:function(t,e){return t===e},emit:function(){return this.T}};var i=(0,r.inherits)(o,(function(t){this.j=[],this.T=t||null}),{test:function(t,e){return t===e||e instanceof RegExp&&e.test(t)}}),a=(0,r.inherits)(o,(function(t){this.j=[],this.T=t||null}),{jump:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=this.next(new t(""));return n===this.defaultTransition?(n=new this.constructor(e),this.on(t,n)):e&&(n.T=e),n},test:function(t,e){return t instanceof e}});e.CharacterState=i,e.TokenState=a,e.stateify=function(t,e,n,r){for(var o=0,a=t.length,c=e,s=[],u=void 0;o<a&&(u=c.next(t[o]));)c=u,o++;if(o>=a)return[];for(;o<a-1;)u=new i(r),s.push(u),c.on(t[o],u),c=u,o++;return u=new i(n),s.push(u),c.on(t[a-1],u),s}},function(t,e,n){"use strict";e.__esModule=!0,e.createTokenClass=function(){return function(t){t&&(this.v=t)}}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="result px-2 py-1"><span class="query-text">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+"</span></div>>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="tt-pending p-2"><div class="partial-text">Searching...</div></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="tt-not-found p-2">Could not find any matches</div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="tt-not-found empty"></div>'},useData:!0})},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.exports={prefix:"cv",iconName:"minus",icon:["24","24",[],"",""]}},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.exports={prefix:"cv",iconName:"down",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(t,e){t.exports={prefix:"cv",iconName:"right",icon:["24","24",[],"","M8 10l8 .014L12 14z"]}},function(t,e){t.exports={prefix:"cv",iconName:"up-down",icon:["24","24",[],"","M8 14l8 .014L12 18l-4-4zm0-4l4-4 4 3.986L8 10z"]}},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.exports={prefix:"cv",iconName:"caret",icon:["24","24",[],"","M8 10 16 10.0136253 12 14z"]}},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.exports={prefix:"cv",iconName:"play",icon:["24","24",[],"","M7.5 6.505v11l9.002-5.5-9.002-5.5z"]}},function(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e){t.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(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t[t.SmartPhase1=1]="SmartPhase1",t[t.MigrateAllPhase1=2]="MigrateAllPhase1",t[t.Phase2=3]="Phase2",t[t.PostFinalisation=4]="PostFinalisation"}(r||(r={}))},function(t,e,n){"use strict";function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function a(t){var e=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(t){return!1}}();return function(){var n,r=s(t);if(e){var o=s(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function s(t){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return u}));var u=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&i(t,e)}(n,t);var e=a(n);function n(){return o(this,n),e.apply(this,arguments)}return n}(n(2).a.Collection)},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));const r={isCollectionEmpty:(t,e="collection")=>t[e]&&!t[e].length}},function(t,e,n){"use strict";var r;n.d(e,"a",(function(){return r})),function(t){t.Notification="notification"}(r||(r={}))},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+' partial-loading-background"></div><div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.contentContainer:i,e))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+' partial-loading-background ml-1 mt-1"></div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.notificationTime:i,e))+' partial-loading-background ml-1 mt-1"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={icon:"_1FlbK",contentContainer:"_1RJPc",content:"_4fHKQ",notificationTime:"_3hBwJ"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,s=t.escapeExpression;return'<div class="p-2"><a href="'+s("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+s("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+" - "+s("function"==typeof(i=null!=(i=n.libraryName||(null!=e?e.libraryName:e))?i:c)?i.call(a,{name:"libraryName",hash:{},data:o}):i)+"</a></div>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,s=t.escapeExpression;return'<div class="direct-search-suggestion p-2"><span class="ignore-highlighting">'+s("function"==typeof(i=null!=(i=n.templateText||(null!=e?e.templateText:e))?i:c)?i.call(a,{name:"templateText",hash:{},data:o}):i)+'</span>\r\n <span class="query-text">'+s("function"==typeof(i=null!=(i=n.query||(null!=e?e.query:e))?i:c)?i.call(a,{name:"query",hash:{},data:o}):i)+"</span>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="tt-pending p-2">\r\n <div class="partial-text">'+t.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=e?e.templateText:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="tt-not-found"></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="suggestion-seperator border-bottom"></div>\r\n'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold px-2 pt-2 pb-1">'+t.escapeExpression("function"==typeof(i=null!=(i=n.dataset||(null!=e?e.dataset:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"dataset",hash:{},data:o}):i)+"</div>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="suggestion-header text-uppercase font-weight-bold p-2">'+t.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=e?e.templateText:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="no-libraries-suggestion p-2">\r\n <div class="ignore-highlighting">'+t.escapeExpression("function"==typeof(i=null!=(i=n.templateText||(null!=e?e.templateText:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"templateText",hash:{},data:o}):i)+"</div>\r\n</div>"},useData:!0})},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){"use strict";var r=n(2);function o(t){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=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(t){return!1}}();return function(){var n,r=u(t);if(e){var o=u(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==o(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var l=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,t);var e=c(n);function n(){return i(this,n),e.apply(this,arguments)}return n}(r.a.Model);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function y(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return m}));var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(i,t);var e,n,r,o=y(i);function i(){return p(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"parse",value:function(t){return t.data||t}},{key:"model",get:function(){return l}}])&&h(e.prototype,n),r&&h(e,r),i}(r.a.Collection)},function(t,e,n){t.exports={videoGroupList:"_38Usa"}},function(t,e,n){t.exports={partialSubFolder:"_1ltue"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<h6 class="mb-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.title:i,e))+'"></h6>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.requestedBy:i,e))+'"></p>\r\n<p class="my-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.date:i,e))+'"></p>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5"><span class="badge d-inline-block p-1 mr-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.badge:i,e))+'"></span></div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>\r\n <button class="btn btn-light btn-sm partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"></div>\r\n <div class="col-5">\r\n <button class="dropdown-toggle form-control btn-block partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.selectButton:i,e))+'" type="button" disabled></button>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+'"></div>\r\n<button class="btn btn-light partial-loading-background w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>'},useData:!0})},function(t,e,n){t.exports={content:"_3_8yg"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<button class="btn partial-loading-background float-right '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>'},useData:!0})},function(t,e,n){t.exports={button:"_3owCz"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.video:i,e))+' partial-loading-background responsive-img mb-3"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+' partial-loading-background"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+' partial-loading-background mt-1"></div>\r\n<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subSubText:i,e))+' partial-loading-background mt-1"></div>'},useData:!0})},function(t,e,n){t.exports={video:"oGPHd",text:"_1tn1v",subText:"_1OlIS",subSubText:"_3xERx"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background align-middle d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoTitle:i,e))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoAction:i,e))+'"></div>\r\n<div class="partial-loading-background align-middle float-right d-inline-block m-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.videoAction:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={videoTitle:"rJRCI",videoAction:"_3O5I3"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n\r\n <div class="d-block w-100">\r\n <div class="m-1 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n </div>\r\n\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-3 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-6 partial-loading-background m-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n</div>\r\n'},useData:!0})},function(t,e,n){t.exports={text:"z4_PP",subText:"_1CvDv"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="mb-2">\r\n <div class="partial-loading-background d-inline-block p-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.back:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right p-2"></div>\r\n</div>\r\n<div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.detailsTab:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.chaptersTab:i,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block p-2 pb-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.learningTab:i,e))+'"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={tab:"_1K9wl",detailsTab:"_31qrm",chaptersTab:"_1VUMk",learningTab:"_35o6Z",back:"_2SZ3v"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row mt-3">\r\n <div class="col-4">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnailContainer:i,e))+'"></div>\r\n <button class="btn my-3 w-100 partial-loading-background"> </button>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.textbox:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n\r\n <div class="partial-loading-background mb-2 mt-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subHeader:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={header:"_1JGs8",subHeader:"_11o1N",thumbnailContainer:"ebrIQ",input:"_2xpxP",textbox:"_3OIzb"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.line:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.line:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_1Yt1j",input:"tJ4KG",line:"_2BFZB"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n <div class="col-6">\r\n <div class="partial-loading-background mb-1 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>\r\n </div>\r\n</div>\r\n<div class="row">\r\n <div class="col-3">\r\n <div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'"></div>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={header:"_2KAd_",input:"_2ai1L",button:"crdSU"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background d-block '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.player:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={player:"H6oUk"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.upload:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_15fBJ",text:"_2OP4S",upload:"_17wos"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<label class="mb-0 h6">Share link</label>\r\n<div class="partial-loading-background border rounded '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.input:i,e))+'"></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,s=t.lambda,u=t.escapeExpression;return' <div class="col-12 pr-3 py-1 '+u(s(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.videoRow:c,e))+'">\r\n <div class="custom-control custom-checkbox">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label"> </label>\r\n <div class="partial-loading-background d-inline-block '+u(s(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.text:c,e))+'"></div>\r\n <div class="partial-loading-background d-inline-block float-right '+u(s(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.views:c,e))+'"></div>\r\n </div>\r\n </div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,s=t.lambda,u=t.escapeExpression;return'<div class="row no-gutters px-2 py-1 '+u(s(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortingRow:c,e))+'">\r\n <div class="col-8">\r\n <div class="custom-control custom-checkbox d-inline-block '+u(s(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.bulkCheckbox:c,e))+'">\r\n <input type="checkbox" class="custom-control-input"/>\r\n <label class="custom-control-label"> </label>\r\n </div>\r\n <div class="align-middle position-relative d-inline-block">\r\n <span class="cursor-pointer sort sort-title '+u(s(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortOption:c,e))+'">\r\n <span>Title</span>\r\n </span>\r\n </div>\r\n </div>\r\n <div class="col-4 text-right">\r\n <span class="cursor-pointer sort mr-3 sort-views '+u(s(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.sortOption:c,e))+'">\r\n <span class="mr-2">Views</span>\r\n </span>\r\n </div>\r\n</div>\r\n\r\n<div class="'+u(s(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.videoList:c,e))+'">\r\n'+(null!=(c=n.each.call(null!=e?e:t.nullContext||{},null!=(c=null!=e?e.options:e)?c.videoItems:c,{name:"each",hash:{},fn:t.program(1,o,0,i,a),inverse:t.noop,data:o}))?c:"")+"</div>"},useData:!0,useDepths:!0})},function(t,e,n){t.exports={videoList:"_2YEbA",text:"_1-Tvp",views:"_3BDvT",bulkCheckbox:"_2ew2h"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background d-inline-block ml-2 mt-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background d-inline-block mr-2 mt-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.toggle:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_1S3_p",toggle:"_1pAWe"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background m-2 '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={row:"rShIv"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row">\r\n <div class="col-4">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" disabled> </button>\r\n </div>\r\n <div class="col-6">\r\n </div>\r\n <div class="col-2 text-right">\r\n <button class="btn btn-light partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" disabled> </button>\r\n </div>\r\n</div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<button class="btn partial-loading-background '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.button:i,e))+'" type="button"> </button>'},useData:!0})},function(t,e,n){t.exports={button:"_1CETN"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>\r\n<div class="partial-loading-background pl-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.row:i,e))+'">\r\n <div class="partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={logo:"_3QS4m",row:"_1odt6",text:"JJCF1"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="partial-loading-background '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={text:"_3hPOj",folder:"_2zGvZ"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="row w-100 mt-0">\r\n <div class="col-8 border-right p-3">\r\n <div class="mb-3 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n <div class="my-2 w-80 h-20 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.multilineSubText:i,e))+'"></div>\r\n <div class="my-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnail:i,e))+'"></div>\r\n </div>\r\n\r\n <div class="col-4">\r\n <div class="partial-loading-background ml-2 my-3 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+'"></div>\r\n\r\n <div class="row ml-2">\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n <div class="col-5 partial-loading-background mr-4 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n <div class="col-5 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n\r\n </div>\r\n <div class="my-3 ml-2 partial-loading-background '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.subText:i,e))+'"></div>\r\n </div>\r\n</div>\r\n'},useData:!0})},function(t,e,n){t.exports={text:"_3b-w5",subText:"k49US",multilineSubText:"_1QGdP",thumbnail:"_2V8gJ"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.header:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>\r\n<div class="partial-loading-background mb-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.item:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={header:"_2x-al",item:"hFvEo"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="tags d-flex flex-wrap">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth1:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth2:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth3:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tagWidth2:i,e))+' badge-pill tag py-1 px-2 my-1 mr-1 partial-loading-background"> </div>\r\n</div>'},useData:!0})},function(t,e,n){t.exports={tagWidth1:"cy-sv",tagWidth2:"_35_iB",tagWidth3:"_2sYuD"}},function(t,e){t.exports=c},function(t,e){t.exports=s},function(t,e,n){t.exports=function(){"use strict";var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)},e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(t,e,n,r){var o,i,a,c=e||[0],s=(n=n||0)>>>3,u=-1===r?3:0;for(o=0;o<t.length;o+=1)i=(a=o+s)>>>2,c.length<=i&&c.push(0),c[i]|=t[o]<<8*(u+r*(a%4));return{value:c,binLen:8*t.length+n}}function r(t,r,o){switch(r){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(t){case"HEX":return function(t,e,n){return function(t,e,n,r){var o,i,a,c;if(0!=t.length%2)throw new Error("String of HEX type must be in byte increments");var s=e||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(o=0;o<t.length;o+=2){if(i=parseInt(t.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(a=(c=(o>>>1)+u)>>>2;s.length<=a;)s.push(0);s[a]|=i<<8*(l+r*(c%4))}return{value:s,binLen:4*t.length+n}}(t,e,n,o)};case"TEXT":return function(t,e,n){return function(t,e,n,r,o){var i,a,c,s,u,l,f,p,h=0,d=n||[0],y=(r=r||0)>>>3;if("UTF8"===e)for(f=-1===o?3:0,c=0;c<t.length;c+=1)for(a=[],128>(i=t.charCodeAt(c))?a.push(i):2048>i?(a.push(192|i>>>6),a.push(128|63&i)):55296>i||57344<=i?a.push(224|i>>>12,128|i>>>6&63,128|63&i):(c+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(c)),a.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),s=0;s<a.length;s+=1){for(u=(l=h+y)>>>2;d.length<=u;)d.push(0);d[u]|=a[s]<<8*(f+o*(l%4)),h+=1}else for(f=-1===o?2:0,p="UTF16LE"===e&&1!==o||"UTF16LE"!==e&&1===o,c=0;c<t.length;c+=1){for(i=t.charCodeAt(c),!0===p&&(i=(s=255&i)<<8|i>>>8),u=(l=h+y)>>>2;d.length<=u;)d.push(0);d[u]|=i<<8*(f+o*(l%4)),h+=2}return{value:d,binLen:8*h+r}}(t,r,e,n,o)};case"B64":return function(t,n,r){return function(t,n,r,o){var i,a,c,s,u,l,f=0,p=n||[0],h=(r=r||0)>>>3,d=-1===o?3:0,y=t.indexOf("=");if(-1===t.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(t=t.replace(/=/g,""),-1!==y&&y<t.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<t.length;i+=4){for(s=t.substr(i,4),c=0,a=0;a<s.length;a+=1)c|=e.indexOf(s.charAt(a))<<18-6*a;for(a=0;a<s.length-1;a+=1){for(u=(l=f+h)>>>2;p.length<=u;)p.push(0);p[u]|=(c>>>16-8*a&255)<<8*(d+o*(l%4)),f+=1}}return{value:p,binLen:8*f+r}}(t,n,r,o)};case"BYTES":return function(t,e,n){return function(t,e,n,r){var o,i,a,c,s=e||[0],u=(n=n||0)>>>3,l=-1===r?3:0;for(i=0;i<t.length;i+=1)o=t.charCodeAt(i),a=(c=i+u)>>>2,s.length<=a&&s.push(0),s[a]|=o<<8*(l+r*(c%4));return{value:s,binLen:8*t.length+n}}(t,e,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t,e,r){return function(t,e,r,o){return n(new Uint8Array(t),e,r,o)}(t,e,r,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t,e,r){return n(t,e,r,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(t,n,r,o){switch(t){case"HEX":return function(t){return function(t,e,n,r){var o,i,a="",c=e/8,s=-1===n?3:0;for(o=0;o<c;o+=1)i=t[o>>>2]>>>8*(s+n*(o%4)),a+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return r.outputUpper?a.toUpperCase():a}(t,n,r,o)};case"B64":return function(t){return function(t,n,r,o){var i,a,c,s,u,l="",f=n/8,p=-1===r?3:0;for(i=0;i<f;i+=3)for(s=i+1<f?t[i+1>>>2]:0,u=i+2<f?t[i+2>>>2]:0,c=(t[i>>>2]>>>8*(p+r*(i%4))&255)<<16|(s>>>8*(p+r*((i+1)%4))&255)<<8|u>>>8*(p+r*((i+2)%4))&255,a=0;a<4;a+=1)l+=8*i+6*a<=n?e.charAt(c>>>6*(3-a)&63):o.b64Pad;return l}(t,n,r,o)};case"BYTES":return function(t){return function(t,e,n){var r,o,i="",a=e/8,c=-1===n?3:0;for(r=0;r<a;r+=1)o=t[r>>>2]>>>8*(c+n*(r%4))&255,i+=String.fromCharCode(o);return i}(t,n,r)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t){return function(t,e,n){var r,o=e/8,i=new ArrayBuffer(o),a=new Uint8Array(i),c=-1===n?3:0;for(r=0;r<o;r+=1)a[r]=t[r>>>2]>>>8*(c+n*(r%4))&255;return i}(t,n,r)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t){return function(t,e,n){var r,o=e/8,i=-1===n?3:0,a=new Uint8Array(o);for(r=0;r<o;r+=1)a[r]=t[r>>>2]>>>8*(i+n*(r%4))&255;return a}(t,n,r)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(t){var e={outputUpper:!1,b64Pad:"=",outputLen:-1},n=t||{},r="Output length must be a multiple of 8";if(e.outputUpper=n.outputUpper||!1,n.b64Pad&&(e.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(r);e.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(r);e.outputLen=n.shakeLen}if("boolean"!=typeof e.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof e.b64Pad)throw new Error("Invalid b64Pad formatting option");return e}function a(t,e){return t<<e|t>>>32-e}function c(t,e,n){return t^e^n}function s(t,e,n){return t&e^t&n^e&n}function u(t,e){var n=(65535&t)+(65535&e);return(65535&(t>>>16)+(e>>>16)+(n>>>16))<<16|65535&n}function l(t,e,n,r,o){var i=(65535&t)+(65535&e)+(65535&n)+(65535&r)+(65535&o);return(65535&(t>>>16)+(e>>>16)+(n>>>16)+(r>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function f(t){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(t,e){var n,r,o,i,f,p,h,d,y=[];for(n=e[0],r=e[1],o=e[2],i=e[3],f=e[4],h=0;h<80;h+=1)y[h]=h<16?t[h]:a(y[h-3]^y[h-8]^y[h-14]^y[h-16],1),p=h<20?l(a(n,5),(d=r)&o^~d&i,f,1518500249,y[h]):h<40?l(a(n,5),c(r,o,i),f,1859775393,y[h]):h<60?l(a(n,5),s(r,o,i),f,2400959708,y[h]):l(a(n,5),c(r,o,i),f,3395469782,y[h]),f=i,i=o,o=a(r,30),r=n,n=p;return e[0]=u(n,e[0]),e[1]=u(r,e[1]),e[2]=u(o,e[2]),e[3]=u(i,e[3]),e[4]=u(f,e[4]),e}function h(t,e,n,r){for(var o,i=15+(e+65>>>9<<4),a=e+n;t.length<=i;)t.push(0);for(t[e>>>5]|=128<<24-e%32,t[i]=4294967295&a,t[i-1]=a/4294967296|0,o=0;o<t.length;o+=16)r=p(t.slice(o,o+16),r);return r}return function(e){function n(t,n,o){var i=this;if("SHA-1"!==t)throw new Error("Chosen SHA variant is not supported");var a=o||{};return(i=e.call(this,t,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=r(i.h,i.v,i.u),i.A=p,i.p=function(t){return t.slice()},i.l=f,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,a.hmacKey&&i.B(function(t,e,n,o){var i="hmacKey must include a value and format";if(!e)throw new Error(i);if(void 0===e.value||!e.format)throw new Error(i);return r(e.format,e.encoding||"UTF8",n)(e.value)}(0,a.hmacKey,i.u)),i}return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}(n,e),n}(function(){function t(t,e,n){var r=n||{};if(this.h=e,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=t,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return t.prototype.update=function(t){var e,n=0,r=this.T>>>5,o=this.s(t,this.Y,this.I),i=o.binLen,a=o.value,c=i>>>5;for(e=0;e<c;e+=r)n+this.T<=i&&(this.U=this.A(a.slice(e,e+r),this.U),n+=this.T);this.H+=n,this.Y=a.slice(n>>>5),this.I=i%this.T,this.C=!0},t.prototype.getHash=function(t,e){var n,r,a=this.m,c=i(e);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");a=c.outputLen}var s=o(t,a,this.u,c);if(!0===this.L&&this.i)return s(this.i(c));for(r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),a),n=1;n<this.numRounds;n+=1)!0===this.F&&a%32!=0&&(r[r.length-1]&=16777215>>>24-a%32),r=this.R(r,a,0,this.l(this.g),a);return s(r)},t.prototype.setHMACKey=function(t,e,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var o=r(e,(n||{}).encoding||"UTF8",this.u);this.B(o(t))},t.prototype.B=function(t){var e,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<t.binLen/8&&(t.value=this.R(t.value,t.binLen,0,this.l(this.g),this.m));t.value.length<=r;)t.value.push(0);for(e=0;e<=r;e+=1)this.N[e]=909522486^t.value[e],this.S[e]=1549556828^t.value[e];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},t.prototype.getHMAC=function(t,e){var n=i(e);return o(t,this.m,this.u,n)(this.o())},t.prototype.o=function(){var t;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var e=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return t=this.A(this.S,this.l(this.g)),this.R(e,this.m,this.T,t,this.m)},t}())}()},function(t){t.exports=JSON.parse('{"a":"1.0.11"}')},function(t,e,n){"use strict";(function(t){n.d(e,"a",(function(){return u}));var r=n(1),o=n(4),i=n(140);const a=["query","libraries","ratings","interactives","resources","subtitles","productionYear","producedByClickView","hd","duration"],c=["sort"],s=["release-date","subjects"];class u extends i.a{constructor(t){super(t)}initialize(){this.bootstrap(this.options.trackingId,this.options.userId)}get name(){return"GoogleAnalyticsClient"}shouldLog(t){const e=u.eventWhitelist[t.type];return r.isBoolean(e)?e:!!r.isFunction(e)&&e(t)}log(t){this.logPageView(t)}logPageView(t){if(!t||r.isArray(t.data))return;const e=t.data.currentLocation;e&&this.ga("set","page",e),this.ga("send","pageview")}bootstrap(e,n){this.ga||(t.GoogleAnalytics(),this.ga=window.ga,this.ga("create",{trackingId:e,userId:n.toString(),cookieDomain:"auto"}),this.ga("require","cleanUrlTracker",{stripQuery:!0,queryParamsWhitelist:u.queryParamWhitelist,trailingSlash:"remove"}),this.logPageView(null))}static get queryParamWhitelist(){return[...a,...s,...c]}static get eventWhitelist(){return{[o.q.Navigate]:t=>!r.isArray(t.data)&&t.data.currentLocation}}}}).call(this,n(638))},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,s=t.escapeExpression;return'<div class="drop-area-container">\r\n <div class="'+s(c(null!=(i=null!=e?e.styles:e)?i.dropMask:i,e))+'"></div>\r\n <div class="'+s(c(null!=(i=null!=e?e.styles:e)?i.dropContent:i,e))+'">\r\n <div class="'+s(c(null!=(i=null!=e?e.styles:e)?i.border:i,e))+'">\r\n <h1>'+s("function"==typeof(a=null!=(a=n.fileDropText||(null!=e?e.fileDropText:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"fileDropText",hash:{},data:o}):a)+'</h1>\r\n </div>\r\n </div>\r\n <div class="'+s(c(null!=(i=null!=e?e.styles:e)?i.dropArea:i,e))+'"></div>\r\n</div>\r\n'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"multiple"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'accept="'+t.escapeExpression("function"==typeof(i=null!=(i=n.mimeType||(null!=e?e.mimeType:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"mimeType",hash:{},data:o}):i)+'"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return'<input type="file" autocomplete="off" class="file-select d-none" '+(null!=(i=n.if.call(a,null!=e?e.acceptMultiple:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" "+(null!=(i=n.if.call(a,null!=e?e.mimeType:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+" />"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.buttonText:i,e))+"\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.spinnerEl:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return(null!=(i=n.each.call(a,null!=e?e.buttons:e,{name:"each",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+(null!=(i=n.if.call(a,null!=e?e.spinnerButton:e,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,u=t.escapeExpression;return' <button type="'+u("function"==typeof(a=null!=(a=n.type||(null!=e?e.type:e))?a:s)?a.call(c,{name:"type",hash:{},data:o}):a)+'" class="'+u("function"==typeof(a=null!=(a=n.className||(null!=e?e.className:e))?a:s)?a.call(c,{name:"className",hash:{},data:o}):a)+'" '+(null!=(i=n.if.call(c,null!=e?e.close:e,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+">"+u("function"==typeof(a=null!=(a=n.text||(null!=e?e.text:e))?a:s)?a.call(c,{name:"text",hash:{},data:o}):a)+"</button>\r\n"},3:function(t,e,n,r,o){return'data-dismiss="modal"'},5:function(t,e,n,r,o){return' <div class="spinner-button-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,u=t.escapeExpression;return'<div class="modal-dialog '+u("function"==typeof(a=null!=(a=n.size||(null!=e?e.size:e))?a:s)?a.call(c,{name:"size",hash:{},data:o}):a)+'" role="document">\r\n <div class="modal-content">\r\n <div class="modal-header">\r\n <h5 class="modal-title">'+u("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:s)?a.call(c,{name:"title",hash:{},data:o}):a)+'</h5>\r\n <button type="button" class="close" data-dismiss="modal" aria-label="Close">\r\n <span aria-hidden="true">×</span>\r\n </button>\r\n </div>\r\n <div class="modal-body">\r\n '+(null!=(i="function"==typeof(a=null!=(a=n.content||(null!=e?e.content:e))?a:s)?a.call(c,{name:"content",hash:{},data:o}):a)?i:"")+'\r\n </div>\r\n\r\n <div class="modal-footer">\r\n'+(null!=(i=n.if.call(c,null!=e?e.buttons:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" </div>\r\n\r\n </div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.text:i,e))?i:""},useData:!0})},function(t,e,n){t.exports=n(639).default},function(t,e,n){t.exports={svgContainer:"_1nWzn"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,s=t.escapeExpression,u=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="add-new px-2 py-1 border-top">\r\n <span class="add-tag ignore-highlighting">\r\n <span class="'+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"</span> "+s(c(null!=(i=null!=e?e.options:e)?i.createText:i,e))+" "+s("function"==typeof(a=null!=(a=n.type||(null!=e?e.type:e))?a:l)?a.call(u,{name:"type",hash:{},data:o}):a)+': \r\n </span>\r\n <span class="query-text">'+s("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:l)?a.call(u,{name:"name",hash:{},data:o}):a)+"</span>\r\n</div>>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression;return' <a class="info-link d-inline-block pt-1 '+c(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.link:i,e))+'">'+c("function"==typeof(a=null!=(a=n.appLinkText||(null!=e?e.appLinkText:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"appLinkText",hash:{},data:o}):a)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,s=t.escapeExpression,u=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="d-inline-block '+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+'">\r\n <span class=" d-inline-block '+s(c(null!=(i=null!=e?e.options:e)?i.svgClass:i,e))+" "+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.typeSvg:i,e))?i:"")+'</span>\r\n</div>\r\n<div class="pl-2 d-inline-block '+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertContent:i,e))+'">\r\n <p class="p-0 m-0 pb-1 '+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.heading:i,e))+'">'+s("function"==typeof(a=null!=(a=n.heading||(null!=e?e.heading:e))?a:l)?a.call(u,{name:"heading",hash:{},data:o}):a)+'</p>\r\n <p class="p-0 m-0 '+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.message:i,e))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.message||(null!=e?e.message:e))?a:l)?a.call(u,{name:"message",hash:{},data:o}):a)?i:"")+"</p>\r\n"+(null!=(i=n.if.call(u,null!=e?e.appLink:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'</div>\r\n<div class="close d-inline-block" aria-hidden="true">×</div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return' <div class="left-nav-region '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.leftNav:i,e))+'"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="top-banner-region"></div>\r\n<div class="page-header-region"></div>\r\n<div class="top-nav-region bg-white '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.topNav:i,e))+'"></div>\r\n<div class="container-fluid clearfix px-0 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.sizingBox:i,e))+'">\r\n'+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showLeftNav:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=e?e.options:e)?i.contentBoxClassName:i,e))+'">\r\n <div class="content-region container px-0 '+c(a(null!=(i=null!=e?e.options:e)?i.contentContainerClassName:i,e))+'"></div>\r\n <div class="container page-footer-region"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="popup-region"></div>\r\n<div class="alert-region '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertBox:i,e))+" "+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.alertBoxWithIntercom:i,e))+'"></div>\r\n<div class="hidden-region d-none"></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.escapeExpression,c=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing;return"ClickView "+a(t.lambda(null!=(i=null!=e?e.options:e)?i.currentYear:i,e))+" | "+a((n.lang||e&&e.lang||s).call(c,"footer",{name:"lang",hash:{},data:o}))+" | "+a((n.lang||e&&e.lang||s).call(c,"version",{name:"lang",hash:{version:null!=(i=null!=e?e.options:e)?i.version:i},data:o}))},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.unreadCount:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.unreadCount:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.unreadCount:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<h4 class="mt-3 text-muted">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.heading:i,e))+"</h4>\r\n"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return"<p>"+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.description:i,e))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression,s=null!=e?e:t.nullContext||{};return'<img src="'+c(a(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" class="'+c(a(null!=(i=null!=e?e.options:e)?i.imageClass:i,e))+'"/>\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=e?e.options:e)?i.heading:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+(null!=(i=n.if.call(s,null!=(i=null!=e?e.options:e)?i.description:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return' <span class="text-right pl-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actionText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.actionText:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+" "+c(a(null!=(i=null!=e?e.options:e)?i.iconClass:i,e))+'">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.icon:i,e))?i:"")+'</div><div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.contentContainer:i,e))+'">\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.content:i,e))+' pl-1">'+c(a(null!=(i=null!=e?e.options:e)?i.content:i,e))+"</div>\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showActionText:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+' <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.notificationTime:i,e))+' pl-1">'+c(a(null!=(i=null!=e?e.options:e)?i.notificationTime:i,e))+"</div>\r\n</div>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="notifications-region"></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;return'<div class="py-2 border-top text-right px-2">\r\n <a class="see-all">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"seeAll",{name:"lang",hash:{},data:o}))+"</div>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{};return'<h5 class="header p-2 m-0 border-bottom">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(a,"notifications",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="list-region"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasNotifications:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.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 '+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.notificationsContainer:i,e))+'"></div>'},useData:!0})},function(t,e,n){t.exports={notificationsContainer:"_3BMCf"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="float-right">\r\n '+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.confirmSelectionText:i,e))?i:"")+"\r\n</span> "},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<div class="cursor-pointer svg-container '+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'" data-toggle="popover">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.searchInfoSvg:i,e))?i:"")+'\r\n</div>\r\n<div class="popover-container"></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,s=t.lambda,u=t.escapeExpression;return' <span class="border rounded align-middle '+u(s(null!=(c=null!=(c=null!=a[1]?a[1].options:a[1])?c.styles:c)?c.term:c,e))+'">'+u(s(e,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,a){t.propertyIsEnumerable;var c,s,u=t.escapeExpression,l=null!=e?e:t.nullContext||{};return'<span class="d-inline-block '+u(t.lambda(null!=(c=null!=(c=null!=e?e.options:e)?c.styles:c)?c.termContainer:c,e))+'">\r\n'+(null!=(c=n.each.call(l,null!=e?e.term:e,{name:"each",hash:{},fn:t.program(1,o,0,i,a),inverse:t.noop,data:o}))?c:"")+"</span>\r\n<span>"+u("function"==typeof(s=null!=(s=n.description||(null!=e?e.description:e))?s:t.hooks.helperMissing)?s.call(l,{name:"description",hash:{},data:o}):s)+"</span>"},useData:!0,useDepths:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,s=t.escapeExpression,u=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<span class="d-inline-block tool-tip '+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchContextTag:i,e))+'" title="'+s("function"==typeof(a=null!=(a=n.title||(null!=e?e.title:e))?a:l)?a.call(u,{name:"title",hash:{},data:o}):a)+'">\r\n <span>'+s("function"==typeof(a=null!=(a=n.searchTag||(null!=e?e.searchTag:e))?a:l)?a.call(u,{name:"searchTag",hash:{},data:o}):a)+'</span>\r\n <span class="'+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n</span>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression,s=t.lambda;return'<div class="row">\r\n <div class="recent-text col-11 recent">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+'</div>\r\n <div class="col-1 text-center">\r\n <span aria-hidden="true" class="remove-recent '+c(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.removeRecent:i,e))+'">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.closeSvg:i,e))?i:"")+"</span>\r\n </div>\r\n</div>"},useData:!0})},function(t,e,n){t.exports={removeRecent:"d1QVW"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,s=t.escapeExpression;return'<a href="'+s("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">'+s("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</a>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,s=t.escapeExpression;return'<a href="'+s("function"==typeof(i=null!=(i=n.url||(null!=e?e.url:e))?i:c)?i.call(a,{name:"url",hash:{},data:o}):i)+'">\r\n <span class="text-capitalize badge-pill tag py-1 px-2 my-1 mr-1">'+s("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:c)?i.call(a,{name:"name",hash:{},data:o}):i)+"</span>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,s=t.escapeExpression;return"<img "+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.lazyload:i,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")+'src="'+s(c(null!=(i=null!=e?e.options:e)?i.url:i,e))+'" class="img-fluid lazy-img w-100 '+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.thumbnail:i,e))+'" />\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.playIcon:i,{name:"if",hash:{},fn:t.program(4,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){return"data-"},4:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<div class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.playSvgContainer:i,e))+'" '+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.lazyload:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.noop,data:o}))?i:"")+">"+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.playSvg:i,e))?i:"")+"</div>\r\n"},5:function(t,e,n,r,o){return'style="display: none;"'},7:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="badge float-right '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.durationOverlay:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.duration:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda;return(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.url:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'<div class="'+t.escapeExpression(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+'">'+(null!=(i=c(null!=(i=null!=e?e.options:e)?i.playSvg:i,e))?i:"")+"</div>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.duration:i,{name:"if",hash:{},fn:t.program(7,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"aligned"},3:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return' <div class="result-title collection"> '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.type:i,e))+": "+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.name:i,e))+" </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression,s=null!=e?e:t.nullContext||{};return'<a class="row" href="'+c(t.lambda(null!=(i=null!=e?e.options:e)?i.url:i,e))+'">\r\n <div class="video-img col-2">\r\n <div class="thumbnail-region"></div>\r\n </div>\r\n <div class="col-10">\r\n <div class="result-title text-capitalize '+(null!=(i=n.unless.call(s,null!=(i=null!=e?e.options:e)?i.collection:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(s,{name:"name",hash:{},data:o}):a)+"</div>\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=(i=null!=e?e.options:e)?i.collection:i)?i.name:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+" </div>\r\n</a>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="w-100 h-100 align-items-center search-bar-container">\r\n <span class="search-context-region"></span>\r\n <input name="search" type="text" class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchInput:i,e))+'" id="search" autocomplete="off" type="Search within your libraries..." placeholder="'+c(a(null!=(i=null!=e?e.options:e)?i.libraryText:i,e))+'" aria-label="Search">\r\n</div>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchSvgContainer:i,e))+'">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<button type="submit" tabindex="-1" style="display:none"></button>\r\n<span class="search-tips-region '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.tipsContainer:i,e))+'"></span>\r\n'},3:function(t,e,n,r,o){return'<div class="search-partial-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.showPartial:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){t.exports={searchBar:"_2oChq"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="'+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBar:i,e))+' partial-loading-background dark-partial"></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div\r\n class="cursor-pointer mx-2"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n>\r\n <div class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.avatar:i,e))+'" style="background-image: url(\''+c(a(null!=(i=null!=e?e.options:e)?i.avatar:i,e))+'\')">\r\n  \r\n </div>\r\n <div class="d-inline-block svg-container '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.arrow:i,e))+'">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.arrowSvg:i,e))?i:"")+'\r\n </div>\r\n</div>\r\n<div class="options-region"></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="svg-container d-inline-block text-muted ml-2">'+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.iconSvg:i,e))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return(null!=(i=a(null!=(i=null!=e?e.options:e)?i.prefix:i,e))?i:"")+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.title:i,e))+"\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.iconSvg:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){t.exports={heading:"_2xsqU",displayName:"_3tg2v"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,s=t.escapeExpression,u=null!=e?e:t.nullContext||{},l=t.hooks.helperMissing;return'<div class="dropdown-item '+s(c(null!=(i=null!=e?e.options:e)?i.heading:i,e))+'">\r\n <div class="m-0 '+s(c(null!=(i=null!=e?e.options:e)?i.displayName:i,e))+'"><strong>'+s("function"==typeof(a=null!=(a=n.displayName||(null!=e?e.displayName:e))?a:l)?a.call(u,{name:"displayName",hash:{},data:o}):a)+'</strong></div>\r\n <div class="m-0 text-muted">'+s("function"==typeof(a=null!=(a=n.customerName||(null!=e?e.customerName:e))?a:l)?a.call(u,{name:"customerName",hash:{},data:o}):a)+'</div>\r\n</div>\r\n<div class="dropdown-divider"></div>\r\n<div class="items-region"></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return"text-danger "+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.errorMargin:i,e))},3:function(t,e,n,r,o){return"mr-3"},5:function(t,e,n,r,o){return"text-danger"},7:function(t,e,n,r,o){return"text-muted"},9:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<div class="progress mt-1" style="height: 5px;">\r\n <div class="progress-bar bg-info" style="width: '+c(a(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'%" aria-valuenow="'+c(a(null!=(i=null!=e?e.options:e)?i.progress:i,e))+'" aria-valuemin="0" aria-valuemax="100"></div>\r\n</div>\r\n'},11:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,s=t.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.isDone:i,{name:"unless",hash:{},fn:t.program(12,o,0),inverse:t.noop,data:o}))?i:"")+' <span class="'+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.cancel:i,e))+" "+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.hiddenCancel:i,e))+'" title="'+s((n.lang||e&&e.lang||t.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">×</span>\r\n'},12:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return" "+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n"},14:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.hooks.helperMissing,s=t.escapeExpression;return' <span class="align-middle text-underline cursor-pointer retry" title="'+s((n.lang||e&&e.lang||c).call(a,"retryProcessing",{name:"lang",hash:{},data:o}))+'">'+s((n.lang||e&&e.lang||c).call(a,"retry",{name:"lang",hash:{},data:o}))+'</span>\r\n <span class="'+s(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.cancel:i,e))+' align-middle" title="'+s((n.lang||e&&e.lang||c).call(a,"cancel",{name:"lang",hash:{},data:o}))+'">×</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=null!=e?e:t.nullContext||{},c=t.lambda,s=t.escapeExpression;return'<div class="h6 mb-0 '+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:"")+'">\r\n '+s(c(null!=(i=null!=e?e.options:e)?i.name:i,e))+'\r\n</div>\r\n<div class="'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"if",hash:{},fn:t.program(5,o,0),inverse:t.program(7,o,0),data:o}))?i:"")+' progress-text">'+s(c(null!=(i=null!=e?e.options:e)?i.status:i,e))+"</div>\r\n"+(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"unless",hash:{},fn:t.program(9,o,0),inverse:t.noop,data:o}))?i:"")+'<div class="'+s(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actions:i,e))+'">\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=e?e.options:e)?i.hasError:i,{name:"unless",hash:{},fn:t.program(11,o,0),inverse:t.program(14,o,0),data:o}))?i:"")+"</div>"},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;return'<h5 class="header p-2 m-0 border-bottom">'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"uploadProgress",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="upload-progress-region"></div>\r\n<div class="processing-progress-region"></div>'},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="d-inline-block h-100 position-relative pb-1">\r\n <div class="progress-info-region" data-toggle="dropdown"></div>\r\n <div class="progress-summary-region dropdown-menu dropdown-menu-right dropdown-arrow '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.progressDropdown:i,e))+'"></div>\r\n</span>\r\n<a class="btn btn-primary mx-2 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.upload:i,e))+'"><span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.uploadButtonSvg:i,e))+' d-inline-block text-white">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.uploadSvg:i,e))?i:"")+"</span>"+c((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"upload",{name:"lang",hash:{},data:o}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasLibraries:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<div class="mr-2 pr-1">\r\n '+(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\r\n</div>\r\n"+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.items:e,{name:"if",hash:{},fn:t.program(2,o,0),inverse:t.noop,data:o}))?i:"")},2:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.escapeExpression;return'<span class="badge badge-danger badge-pill '+c(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.itemCount:i,e))+'">'+c("function"==typeof(a=null!=(a=n.items||(null!=e?e.items:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"items",hash:{},data:o}):a)+"</span>\r\n"},4:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return' <span class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mx-2 text-danger">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.warningSvg:i,e))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=e?e.hasErrors:e,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(4,o,0),data:o}))?i:""},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<a class="navbar-brand text-hide align-top '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.logoContainer:i,e))+' d-inline-block" href="/">\r\n <svg viewBox="0 0 434 71">\r\n <g>\r\n <path fill="#FFFFFF" 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"/>\r\n <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"/>\r\n </g>\r\n </svg>\r\n</a>\r\n<div class="w-100 '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBarContainer:i,e))+'">\r\n <div class="search-bar-region container '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.searchBar:i,e))+'"></div>\r\n</div>\r\n<div class="d-flex align-items-center pr-1 position-absolute '+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.actionButtons:i,e))+'">\r\n <div class="upload-region"></div>\r\n <div class="notifications-region"></div>\r\n <div class="user-options-region"></div>\r\n</div>\r\n\r\n'},useData:!0})},function(t,e,n){t.exports={logoContainer:"_1T4m8",upload:"_2CcDj",uploadButtonSvg:"_2N6Io",searchBar:"Ds2gb",actionButtons:"_3OcPu"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="items-region"></div>\r\n<div class="migration-error-region"></div>'},useData:!0})},function(t,e,n){t.exports={topNav:"_3xqNh"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i,a;t.propertyIsEnumerable;return'<span class="d-inline-block align-middle '+t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.icon:i,e))+'">'+(null!=(i="function"==typeof(a=null!=(a=n.icon||(null!=e?e.icon:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"icon",hash:{},data:o}):a)?i:"")+"</span>"},3:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<span class="badge badge-danger badge-pill">'+t.escapeExpression(t.lambda(null!=(i=null!=e?e.options:e)?i.count:i,e))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=null!=e?e:t.nullContext||{};return(null!=(i=n.if.call(c,null!=e?e.icon:e,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+" "+t.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:o}):a)+" \r\n"+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.count:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")},useData:!0})},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<svg width="30px" height="30px" viewBox="0 0 30 30" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\r\n <title>'+t.escapeExpression(t.lambda(e,e))+'</title>\r\n <g id="archive-error" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\r\n <g id="Group" transform="translate(3.000000, 5.000000)">\r\n <path d="M20.7658476,-7.68274333e-14 C21.8942931,-7.68274333e-14 22.831971,0.85292295 22.831971,1.93646516 L22.831971,4.55330997 C22.831971,4.90016841 22.5509477,5.18135273 22.2042879,5.18135273 L0.627683051,5.18135273 C0.281023274,5.18135273 -8.22453217e-13,4.90016841 -8.22453217e-13,4.55330997 L-8.22453217e-13,1.93646516 C-8.22104783e-13,0.85292295 0.937677893,-7.68274333e-14 2.06612338,-7.68274333e-14 L20.7658476,-7.68274333e-14 Z M21.5766049,1.93646516 C21.5766049,1.57476389 21.2262594,1.25608551 20.7658476,1.25608551 L2.06612338,1.25608551 C1.60571155,1.25608551 1.2553661,1.57476389 1.2553661,1.93646516 L1.2553661,3.92526722 L21.5766049,3.92526722 L21.5766049,1.93646516 Z M1.36991826,7.19207086 C1.36991826,6.81377838 1.67658491,6.50711173 2.05487739,6.50711173 C2.43316987,6.50711173 2.73983652,6.81377838 2.73983652,7.19207086 L2.73983652,14.6126666 C2.73983652,15.8105928 3.71094757,16.7817038 4.90887376,16.7817038 L10.037037,16.7817038 C10.4153295,16.7817038 10.7219961,17.0883705 10.7219961,17.466663 C10.7219961,17.8449555 10.4153295,18.1516221 10.037037,18.1516221 L4.90887376,18.1516221 C2.95436261,18.1516221 1.36991826,16.5671778 1.36991826,14.6126666 L1.36991826,7.19207086 Z M13.2081514,6.50711173 C13.5864439,6.50711173 13.8931105,6.81377838 13.8931105,7.19207086 C13.8931105,7.57036334 13.5864439,7.87702999 13.2081514,7.87702999 L9.87482745,7.87702999 C9.52805934,7.87702999 9.24694825,8.15814108 9.24694825,8.50490919 C9.24694825,8.8516773 9.52805934,9.13278839 9.87482745,9.13278839 L12.0665528,9.13278839 C12.4448453,9.13278839 12.751512,9.43945504 12.751512,9.81774752 C12.751512,10.19604 12.4448453,10.5027067 12.0665528,10.5027067 L9.87482745,10.5027067 C8.77147438,10.5027067 7.87702999,9.60826226 7.87702999,8.50490919 C7.87702999,7.40155612 8.77147438,6.50711173 9.87482745,6.50711173 L13.2081514,6.50711173 Z M20.2062943,7.077911 C20.2062943,6.76266727 20.4618499,6.50711173 20.7770936,6.50711173 C21.0923373,6.50711173 21.3478929,6.76266727 21.3478929,7.077911 L21.3478929,7.99118984 C21.3478929,8.30643358 21.0923373,8.56198912 20.7770936,8.56198912 C20.4618499,8.56198912 20.2062943,8.30643358 20.2062943,7.99118984 L20.2062943,7.077911 Z" id="Combined-Shape" fill="currentColor"></path>\r\n <path d="M24.6713093,17.6624402 C25.0188138,18.3578403 24.9815158,19.1834207 24.5728024,19.8445217 C24.164089,20.5056227 23.4422327,20.9079876 22.6650348,20.9079404 L15.2429296,20.9079404 C14.4656901,20.9079876 13.7438338,20.5056227 13.3351204,19.8445217 C12.926407,19.1834207 12.8891089,18.3578403 13.2366135,17.6624402 L16.9475765,10.2405144 C17.3273453,9.48029103 18.1041591,9 18.9539614,9 C19.8037637,9 20.5805775,9.48029103 20.9602358,10.2402933 L24.6713093,17.6624402 Z M19.9682278,17.9178304 C19.9682278,17.3576665 19.5141253,16.903564 18.9534845,16.9035641 C18.3935398,16.9038217 17.939695,17.3578255 17.939695,17.9178304 C17.939695,18.4779942 18.3937975,18.9320968 18.9539614,18.9320968 C19.5141253,18.9320968 19.9682278,18.4779942 19.9682278,17.9178304 Z M19.6389205,15.6126794 L19.6389205,12.9782213 C19.6389205,12.5999288 19.3322539,12.2932621 18.9539614,12.2932621 C18.5756689,12.2932621 18.2690023,12.5999288 18.2690023,12.9782213 L18.2690023,15.6126794 C18.2690023,15.9909719 18.5756689,16.2976386 18.9539614,16.2976386 C19.3322539,16.2976386 19.6389205,15.9909719 19.6389205,15.6126794 Z" id="Path" fill="#FFCD52"></path>\r\n </g>\r\n </g>\r\n</svg>'},useData:!0})},function(t,e,n){t.exports={banner:"_1kvBB"}},function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){return"disabled"},3:function(t,e,n,r,o){t.propertyIsEnumerable;return'title="'+t.escapeExpression((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"cannotMakeAvailable",{name:"lang",hash:{},data:o}))+'"'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.escapeExpression,c=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing;return'<div class="py-2 '+a(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.banner:i,e))+'">\r\n '+a((n.lang||e&&e.lang||s).call(c,"previewingNew",{name:"lang",hash:{},data:o}))+' <button class="btn btn-primary ml-2 make-available '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(3,o,0),inverse:t.noop,data:o}))?i:"")+">"+a((n.lang||e&&e.lang||s).call(c,"makeAvailable",{name:"lang",hash:{},data:o}))+"</button>\r\n</div>"},useData:!0})},function(t,e,n){"use strict";n.r(e);var r=n(2),o=n(24),i=n(5),a=n(18),c=n(40),s=n(13),u=n(376),l=n.n(u),f=n(153),p=n.n(f);class h extends r.a.Component{constructor(t){super(t)}get name(){return"NotificationStatusComponent"}get className(){return`notification-status mx-2 ${p.a.notificationIcon} ${p.a[this.options.color]}`}get template(){return l.a}initialize(){this.listenTo(this.model,"change:unreadCount",this.render)}viewOptions(){return{styles:p.a,svg:s.a.getSvg(s.b.Bell),unreadCount:this.model.get("unreadCount")}}}var d=n(136),y=n(38),g=n(20),b=n(120),m=n(380),v=n.n(m),S=n(300),w=n.n(S),O=n(301),E=n.n(O);class C extends r.a.View{constructor(t){super(t)}get name(){return"NotificationPopoverView"}get title(){return!1}get lang(){return"notifications.notificationsPopover"}get className(){return"notifications-container"}get template(){return v.a}regions(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:g.a.ComponentCollection,options:{collectionLength:5,childOptions:{template:w.a,className:"px-1 py-2",viewOptions:{styles:E.a}}}}}}}get elements(){return{anchor:".see-all"}}get appLinks(){return{"@ui.anchor":this.appVariables.appLinks.notifications}}initialize(){this.notificationService=i.a.getInstance(a.b.Notification,this),this.appVariables=i.a.getInstance(c.a.NOTIFICATIONS,this)}onData(t){this.collection=t,this.render()}getCollectionIdentifier(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new b.a({collectionPrefix:y.a.NOTIFICATIONS})}renderNotificationList(){const t=new d.b({collection:this.collection,childType:this.options.childType,isPopover:!0});this.showChildView("notifications",t)}triggerSeen(){this.notificationService.markNotificationsSeen()}onBeforeRender(){return this.collection||this.notificationService.getNotifications(null,this.getCollectionIdentifier(),t=>this.onData(t)),!!this.collection}viewOptions(){return{hasNotifications:this.collection&&this.collection.length}}onRender(){this.renderNotificationList(),this.triggerSeen()}}var R=n(381),k=n.n(R),P=n(382),_=n.n(P);class x extends r.a.View{initialize(){this.appVariables=i.a.getInstance(c.a.NOTIFICATIONS)}get name(){return"NotificationHeaderView"}get title(){return!1}get className(){return"d-flex align-items-center position-relative"}get template(){return k.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 t=new C({childType:d.a.Popover});this.showChildView("notifications",t)}renderNotificationStatus(){const t=i.a.getInstance(a.b.Notification),e=new h({model:t.getNotificationsMetadata(),color:this.appVariables.bellIconColor});this.showChildView("status",e)}viewOptions(){return _.a}onRender(){this.renderNotificationStatus()}}var T=n(1),D=n(7),L=n(4),A=n(39),N=n(73),I=n(66),j=n(3),V=n(19),M=n(12);n(76);M.a;const U={dataServiceName:a.a.User,dataChannelName:V.b.USER},F={getCurrentUserFetchOptions:(t,e)=>Object.assign(Object.assign({},U),{eventPrefix:y.a.CURRENT_USER,fetchData:t=>t.getCurrentUser(),setData:t,onError:e}),currentUser:{dataServiceName:a.a.User,eventName:y.a.CURRENT_USER+":sync",getData:t=>t.getCurrentUser(),getInstance:t=>i.a.getInstance(a.a.User,t),beforeOnBeforeRender:!0}},H={showMask(t={}){const{targetSelector:e,additionalClasses:n,fade:r=!0}=t;if(!$(".mask").length){var o=$("<div>",{class:"mask "+(n||"")});return r&&o.addClass("fade show"),$(o).appendTo(H.getTarget(e)),$(H.getTarget(e)).addClass("mask-lock"),o}},hideMask(t){const e=t||$(".mask");if(!e.length)return;$(".mask-lock").removeClass("mask-lock"),e.remove()},getTarget(t){const e=$(t||"#app");if(e.length)return e}};var z=n(144),B=n(49),q=n(22);const G={getContextualSearchQueryParams(t){if(!t||!t.get("filterParam"))return{};return{[t.get("filterParam")]:t.get("filterValue")}}};var W;!function(t){t[t.HostedLibrary=0]="HostedLibrary",t[t.Exchange=1]="Exchange",t[t.MoviesAndTvLibrary=2]="MoviesAndTvLibrary"}(W||(W={}));var Y=n(77);const J=Y.a.SuggestionLimit,K={prepareQuery:(t,e,n={})=>{const{model:r,libraryIds:o}=n;return r&&r.get("filterValue")&&(t+=` ${r.get("filterParam")}:"${r.get("filterValue")}"`),`${e.url}?q=${t}${o?"&ids="+o:""}`},bloodhoundConfig:(t,e)=>({datumTokenizer:Bloodhound.tokenizers.obj.nonword("label"),queryTokenizer:Bloodhound.tokenizers.whitespace,remote:{url:"/api/domain/v1/search/instant",prepare:T.partial(K.prepareQuery,T,T,e),transform:T.partial(K.handleResult,T,t)}}),handleResult:(t={},e,n={})=>e===q.a.Video?K.processVideoResult(t[e],e,n):n.showFolder&&e===q.a.Folder?K.processFolderResult(t[e],e,n):e===q.a.Series?K.processSeriesResult(t[e],e,n):e===q.a.Tags?K.processTagsResult(t[e],e,n):[],processVideoResult:(t,e,n)=>t?(t=K.processCollection(t),T.map(t,t=>(t.cached||(t.topics=T.map(t.topics,t=>({name:t})),t.series={id:t.seriesId,name:t.seriesName},t.thumbnail={url:t.thumbnailUrl},t.cached=!0),t))):[],processTagsResult(t,e,n){if(!t)return[];const o=i.a.getInstance(c.a.SEARCH,this);return t=K.processCollection(t),T.map(t,t=>(t.cached||(t.url=r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},o.appLinks.searchResults),{params:{tag:t.name}})),t.cached=!0),t))},processSeriesResult:(t,e,n)=>t?(t=K.processCollection(t),T.map(t,t=>{let e;return t.series?e=t.series:t.folder&&t.folder.length&&(e=T.first(t.folder)),T.extend({},t,{collectionType:void 0,collection:e})})):[],processFolderResult:(t,e,n={})=>t?(t=K.processCollection(t,{limit:J.Folder}),T.map(t,t=>{const{library:e={}}=t;return e.type===W.Exchange&&(e.name="Exchange"),T.extend({},t,{libraryId:e.id,libraryName:e.name,libraryType:e.type})})):[],processCollection(t,e={}){const{limit:n=J.Default}=e;return t.slice(0,n)}},Q={getRecentSearches(t,e){let n=e.cacheGet(t);return T.isArray(n)||(n=[]),n},setRecentSearches(t,e,n){T.isArray(e)&&n.cacheSet(t,e)},updateRecentSearches(t,e,n){let{add:r,remove:o,query:i,limit:a=5}=n,c=Q.getRecentSearches(t,e);const s=T.indexOf(c,i);return r&&-1===s&&c.unshift(i),o&&s>-1&&c.splice(s,1),c.length>a&&(c=c.slice(0,a)),Q.setRecentSearches(t,c,e),c}};var Z,X=n(59);!function(t){t.auto="auto",t.top="top",t.bottom="bottom",t.left="left",t.right="right"}(Z||(Z={}));class tt extends r.a.Behavior{get defaults(){return{title:"",placement:Z.bottom,size:"popover-md"}}set defaults(t){}get ui(){return{popoverContainer:this.options.containerSelector}}set ui(t){let e={};this.view.ui&&(e=T.result(this.view,"ui")),this.view._ui=T.extend({},e,t)}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(t){t.stopPropagation()}onClickOutside(t){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 et=n(384),nt=n.n(et),rt=n(385),ot=n.n(rt),it=n(156),at=n.n(it);class ct extends r.a.Component{get name(){return"SearchTipComponentItem"}get template(){return ot.a}get className(){return"py-2 "+at.a.tip}viewOptions(){return{styles:at.a}}}class st extends r.a.ComponentCollection{get name(){return"SearchTipComponentCollection"}get childView(){return ct}}class ut extends r.a.Component{initialize(){this.collection=new r.a.Collection([{term:[""+j.a.getPhrase(this.lang,"firstTerm")],description:""+j.a.getPhrase(this.lang,"firstDescription")},{term:[""+j.a.getPhrase(this.lang,"secondTerm")],description:""+j.a.getPhrase(this.lang,"secondDescription")},{term:[""+j.a.getPhrase(this.lang,"thirdTerm")],description:""+j.a.getPhrase(this.lang,"thirdDescription")},{term:[""+j.a.getPhrase(this.lang,"fourthTerm1"),""+j.a.getPhrase(this.lang,"fourthTerm2")],description:""+j.a.getPhrase(this.lang,"fourthDescription")},{term:[""+j.a.getPhrase(this.lang,"fifthTerm")],description:""+j.a.getPhrase(this.lang,"fifthDescription")}])}get name(){return"SearchTipsComponent"}get template(){return nt.a}get lang(){return"search.searchTips"}get behaviors(){return[{behaviorClass:tt,containerSelector:".popover-container",title:j.a.getPhrase(this.lang,"heading"),size:"popover-lg",renderContent:t=>this.renderTips(t)}]}renderTips(t){this.showChildView(t,new st({collection:this.collection}))}viewOptions(){return{styles:at.a,searchInfoSvg:s.a.getSvg(s.b.Info)}}}var lt=n(87),ft=n(386),pt=n.n(ft),ht=n(84),dt=n.n(ht);class yt extends r.a.Component{initialize(){this.listenTo(V.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.toggleFocus)}get name(){return"SearchContextComponent"}get template(){return pt.a}get tagName(){return"span"}get className(){return dt.a.searchContextContainer}get behaviors(){return[{behaviorClass:lt.a,selector:".tool-tip",placement:"left"}]}get elements(){return{contextTag:"."+dt.a.searchContextTag,clearSvg:"."+dt.a.svgContainer}}events(){return{"click @ui.clearSvg":this.onClick,"mouseenter @ui.clearSvg":this.onMouseEnter,"mouseleave @ui.clearSvg":this.onMouseLeave}}onClick(){D.Radio.channel(V.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(t){const e=this.getUI("contextTag");e&&e.get&&(t.open?e.addClass(dt.a.tagFocus):e.removeClass(dt.a.tagFocus))}viewOptions(){return{styles:dt.a,closeSvg:s.a.getSvg(s.b.Close)}}onBeforeRender(){return!!this.model.get("searchTag")}}var gt=n(387),bt=n.n(gt),mt=n(388),vt=n.n(mt);class St extends r.a.Component{constructor(t){super(t)}get name(){return"RecentSearchResultComponent"}get template(){return bt.a}get className(){return"text-capitalize p-2 container-fluid"}events(){return{"click .remove-recent":"onClick"}}viewOptions(){return{styles:vt.a,closeSvg:s.a.getSvg(s.b.Close)}}onClick(t){return t.stopPropagation(),setTimeout(()=>{D.Radio.channel(this.options.channelName).trigger("remove:recent",this.model.get("name"))},0),this.destroy(),!1}}var wt=n(389),Ot=n.n(wt);class Et extends r.a.Component{get name(){return"SeriesSearchResultComponent"}get template(){return Ot.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(t){return t.preventDefault(),!0}}var Ct=n(390),Rt=n.n(Ct);class kt extends r.a.Component{get name(){return"TagSearchResultComponent"}get template(){return Rt.a}get className(){return"text-capitalize p-2"}events(){return{"click a":"onClick"}}onClick(t){return t.preventDefault(),!0}}var Pt=n(177),_t=n(392),xt=n.n(_t);class Tt extends r.a.Component{initialize(){this.appVariables=i.a.getInstance(c.a.SEARCH,this)}get name(){return"VideoSearchResultComponent"}get template(){return xt.a}get className(){return"video-result p-2 container-fluid"}regions(){return{thumbnail:{replaceElement:!0,el:".thumbnail-region"}}}events(){return{"click a":"onClick"}}onClick(t){return t.preventDefault(),!0}getCollection(){const{categories:t,series:e}=this.model;if(t&&t.length){return{name:t.first().get("name"),type:"Folder"}}if(e&&e.get("name"))return{name:e.get("name"),type:"Series"}}getUrl(){return r.a.AppLinkHelper.getHref(Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[this.model.get("id")]}))}renderThumbnail(){const t=new Pt.a({model:this.model});this.showChildView("thumbnail",t)}viewOptions(){return{collection:this.getCollection(),url:this.getUrl()}}onRender(){this.renderThumbnail()}}var Dt=n(302),Lt=n.n(Dt),At=n(303),Nt=n.n(At),It=n(304),jt=n.n(It),Vt=n(305),Mt=n.n(Vt),Ut=n(306),Ft=n.n(Ut),Ht=n(307),zt=n.n(Ht),Bt=n(308),qt=n.n(Bt),Gt=n(309),Wt=n.n(Gt),Yt=n(393),Jt=n.n(Yt),$t=n(157),Kt=n.n($t),Qt=n(394),Zt=n.n(Qt),Xt=n(395),te=n.n(Xt);const{SuggestionLimit:ee}=Y.a;class ne extends r.a.View{constructor(t){super(t),this.viewCache={}}initialize(){this.contextualSearchService=i.a.getInstance(a.b.ContextualSearch,this),this.appVariables=i.a.getInstance(c.a.SEARCH,this),this.storageHelper=I.a,this.searchContext=this.contextualSearchService.getSearchContext(),this.bindListeners()}get name(){return"SearchBarView"}get title(){return!1}get tagName(){return"form"}get template(){return Jt.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 "+Kt.a.searchBar}get defaults(){return{showRecentSearch:!0}}get elements(){return{input:"#search",searchBarContainer:".search-bar-container"}}events(){return{submit:"onSubmit",["click ."+Kt.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:te.a,className:"w-100",viewOptions:{styles:Zt.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(V.b.LIBRARY,"library:created library:deleted",this.render),this.options.showRecentSearch&&(this.listenTo(this.channelName,"remove:recent",this.onDeleteRecentSearch),this.listenTo(this.searchContext,"change:filterValue",this.renderSearchContext),this.listenTo(V.c.CONTEXTUAL_SEARCH,"reset:search:context",this.onResetSearchContext))}getOrCacheView(t,e){const{ctor:n,viewOptions:r}=e;return this.viewCache[t]?this.viewCache[t]:this.viewCache[t]=new n(r)}clearViewCache(){T.each(this.viewCache,t=>t.destroy()),this.viewCache={}}getDynamicTemplate(t){return t===B.b.Recent?t=>this.getOrCacheView("recent:"+t,{ctor:St,viewOptions:{model:new r.a.Model({name:t}),channelName:this.channelName}}).render().el:t===q.a.Video?t=>this.getOrCacheView(t.id,{ctor:Tt,viewOptions:{model:new r.a.Model(t)}}).render().el:t===q.a.Folder?Lt.a:t===q.a.Series?t=>this.getOrCacheView(t.id,{ctor:Et,viewOptions:{model:new r.a.Model(t)}}).render().el:t===q.a.Tags?t=>this.getOrCacheView(t.id,{ctor:kt,viewOptions:{model:new r.a.Model(t)}}).render().el:void 0}getLimits(t){return q.a.Folder,ee.Folder}updateSearchHistory(t){let{add:e,remove:n,query:r}=t;r=r.trim();const o=Q.updateRecentSearches(this.recentSearchKey,this.storageHelper,{add:e,remove:n,query:r,limit:ee.Recent});return this.recentSearchEngine.clear(),this.recentSearchEngine.add(o),o}handleRecentSearch(t={}){if(!this.options.showRecentSearch)return;if(this.getUI("input").typeahead("val"))this.$el.find(".tt-menu").removeClass("hide-results");else{if(Q.getRecentSearches(this.recentSearchKey,this.storageHelper).length)return;this.$el.find(".tt-menu").addClass("hide-results")}}onDeleteRecentSearch(t){return this.updateSearchHistory({remove:!0,query:t}).length||(this.$el.find(".tt-dataset-recent-searches").empty(),this.handleRecentSearch()),!1}getInstantSearchAppLink(t,e){return e===q.a.Series?Object.assign(Object.assign({},this.appVariables.appLinks.series),{args:[t.id]}):e===q.a.Video?Object.assign(Object.assign({},this.appVariables.appLinks.videoDetails),{args:[t.id]}):e===q.a.Tags?Object.assign(Object.assign({},this.appVariables.appLinks.tagSearch),{params:{tag:t.name}}):e===q.a.Topics?Object.assign(Object.assign({},this.appVariables.appLinks.topic),{args:[t.id]}):void 0}onTypeaheadSelect(t,e,n){if(t.preventDefault(),t.stopImmediatePropagation(),this.clearViewCache(),"object"==typeof e&&e.id){const t=this.getInstantSearchAppLink(e,n);if(!t)return!1;const{data:o,action:i}=A.a.buildInstantSearchEvent(this.model.get("query"),e,n);return N.a.log(L.q.InstantSearch,o,i),this.model.clear(),this.getUI("input").typeahead("close"),D.Radio.channel(V.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(t),!1}let o="string"==typeof e?e:e.query;this.model.set({query:o});const i=n===B.b.Recent?L.d.Recent:L.d.ShowAll;return this.submitQuery(i),!1}onClickSearch(t){return t.stopPropagation(),this.submitQuery(L.d.SearchIcon),!1}onSubmit(t){return t.preventDefault(),this.submitQuery(L.d.Submit),!1}submitQuery(t){this.updateInitialQuery();const e=this.model.get("query");if(!e)return;this.logSearch(e,t),this.updateSearchHistory({add:!0,query:e}),this.preventToggleEvent=!0,this.getUI("input").typeahead("close");const n=G.getContextualSearchQueryParams(this.searchContext);D.Radio.channel(V.c.CONTEXTUAL_SEARCH).trigger("reset:search:context"),r.a.AppLinkHelper.trigger(Object.assign(Object.assign({},this.appVariables.appLinks.searchResults),{params:Object.assign({query:e},n)}))}resetQuery(){this.model.set({query:this.model.get("initialQuery")})}updateInitialQuery(){this.model.set({initialQuery:this.model.get("query")})}logSearch(t,e){const{data:n,action:r}=A.a.buildSearchEvent(t,e);N.a.log(L.q.Search,n,r)}onTypeaheadOpen(t){this.$(".twitter-typeahead").css({position:"static"}),this.showMask(),D.Radio.channel(V.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!0});const e=this.model.get("query");e&&e.length>=Y.a.ActivationLength&&this.getUI("input").typeahead("val",e),this.alignTypeahead()}onBeforeTypeaheadClose(t){this.searchContext.get("preventTypeaheadClose")&&(t.preventDefault(),this.getUI("input").focus())}onTypeaheadClose(){this.hideMask(),this.handleRecentSearch(),this.preventToggleEvent||D.Radio.channel(V.c.CONTEXTUAL_SEARCH).trigger("typeahead:toggle",{open:!1})}showMask(){this.options.disableMask||(this.$el.addClass("active"),H.showMask())}hideMask(){this.options.disableMask||H.hideMask()}alignTypeahead(){const t=$(".tt-menu");this.searchContext.get("title")?t.addClass("typeahead-shift"):t.hasClass("typeahead-shift")&&t.removeClass("typeahead-shift")}onTypeaheadRender(t,e,n,r){r===B.b.Recent&&this.handleRecentSearch()}initTypeaheadListeners(){const t=this.getUI("input");t.on("typeahead:select",T.bind(this.onTypeaheadSelect,this)),t.on("typeahead:render",T.bind(this.onTypeaheadRender,this)),t.on("typeahead:beforeclose",T.bind(this.onBeforeTypeaheadClose,this)),t.on("typeahead:close",T.bind(this.onTypeaheadClose,this)),t.on("typeahead:open",T.bind(this.onTypeaheadOpen,this))}initNoLibrariesTypeaheadListeners(){const t=this.getUI("input");t.on("typeahead:open",T.bind(this.showMask,this)),t.on("typeahead:close",T.bind(this.hideMask,this)),t.on("typeahead:select",T.bind(()=>{r.a.AppLinkHelper.trigger(this.appVariables.appLinks.newLibrary)},this))}onKeydown(t){8!==t.keyCode||this.model.get("query")||D.Radio.channel(V.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}onResetSearchContext(t){t&&t.focus&&this.getUI("input").focus(),$(".tt-menu").removeClass("typeahead-shift"),this.renderSearchContext()}getRecentSearchBloodhound(){const t=Q.getRecentSearches(this.recentSearchKey,this.storageHelper);return new Bloodhound({datumTokenizer:Bloodhound.tokenizers.whitespace,queryTokenizer:Bloodhound.tokenizers.whitespace,local:t})}getDynamicBloodhoundConfig(){return K.bloodhoundConfig}getDynamicTypeaheadConfig(){const t=X.a.getTemplate(zt.a,{fallbackTemplate:Mt.a}),e=X.a.getTemplate(jt.a,{fallbackTemplate:Mt.a,templateText:j.a.getPhrase(this.lang,"findingResults")});return(n,r)=>({name:n.name,source:X.a.handleQuery(n.bloodhound,{fetchType:B.a.Remote}),limit:this.getLimits(n.name),display:t=>t.name,async:!0,templates:{header:t,pending:0===r?e:Mt.a,notFound:Mt.a,suggestion:this.getDynamicTemplate(n.name),footer:Ft.a}})}getDynamicOptions(){return{libraryIds:this.getLibraryIds().join(","),model:this.searchContext}}getRecentSearchSources(){return this.recentSearchEngine=this.getRecentSearchBloodhound(),[{name:B.b.Recent,source:X.a.handleQuery(this.recentSearchEngine,{fetchType:B.a.Local,ignoreOnQuery:!0}),limit:ee.Default,templates:{header:()=>qt.a({templateText:j.a.getPhrase(this.lang,"recentSearches")}),suggestion:this.getDynamicTemplate(B.b.Recent)}}]}getDirectSearchSources(){return[{name:B.b.Direct,source:X.a.handleQuery(),display:t=>t.query,templates:{suggestion:X.a.getTemplate(Nt.a,{fallbackTemplate:Mt.a,templateText:j.a.getPhrase(this.lang,"allResults")}),footer:Ft.a}}]}getDynamicSearchSources(){const t=this.getDynamicBloodhoundConfig(),e=this.getDynamicTypeaheadConfig(),n=this.getDynamicOptions();return X.a.getSearchSources([{name:q.a.Series,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:q.a.Folder,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:q.a.Video,bloodhoundConfig:t,typeaheadConfig:e,options:n},{name:q.a.Tags,bloodhoundConfig:t,typeaheadConfig:e,options:n}])}getSources(){const t=[...this.getDirectSearchSources(),...this.getDynamicSearchSources()];return this.options.showRecentSearch&&t.push(...this.getRecentSearchSources()),t}getNoLibrariesSource(){return[{name:"NoLibrary",source:X.a.handleQuery(),display:t=>t.query,templates:{suggestion:X.a.getTemplate(Wt.a,{fallbackTemplate:Mt.a,templateText:j.a.getPhrase(this.lang,"noLibraries")})}}]}initializeTypeahead(t){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"}},t)}hasLibraries(){return!!this.libraryCollection.length}getLibraryIds(){return this.libraryCollection.map(t=>t.id)}viewOptions(){return{styles:Kt.a,svg:s.a.getSvg(s.b.Search),showPartial:!this.libraryCollection||!this.currentUser||!this.libraryCollection,libraryText:j.a.getPhrase(this.lang,"placeholder",{smartCount:this.libraryCollection&&this.libraryCollection.length||1})}}get requiredResources(){return{currentUser:F.currentUser,libraryCollection:z.a.libraries}}renderSearchTips(){this.showChildView("searchTips",new ut)}renderSearch(){this.stickit(),this.initializeTypeahead(this.getSources()),this.initTypeaheadListeners(),D.Validation.bind(this)}renderPartialSearch(){this.initializeTypeahead(this.getNoLibrariesSource()),this.initNoLibrariesTypeaheadListeners()}renderSearchContext(){this.isRendered()&&this.showChildView("searchContext",new yt({model:this.searchContext}))}onRender(){this.hasLibraries()?(this.renderSearchTips(),this.renderSearch(),this.renderSearchContext()):this.renderPartialSearch()}onClose(){this.getUI("input").off(),this.unstickit(),D.Validation.unbind(this)}}var re=n(88),oe=n(58),ie=n(0),ae=n(396),ce=n.n(ae),se=n(168),ue=n.n(se),le=n(119),fe=n(86),pe=n(11),he=n(176),de=n(398),ye=n.n(de),ge=n(399),be=n.n(ge);function me(t){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Se(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function we(t,e,n){return e&&Se(t.prototype,e),n&&Se(t,n),t}function Oe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ee(t,e)}function Ee(t,e){return(Ee=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ce(t){var e=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(t){return!1}}();return function(){var n,r=ke(t);if(e){var o=ke(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Re(this,n)}}function Re(t,e){return!e||"object"!==me(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ke(t){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pe=function(t){Oe(n,t);var e=Ce(n);function n(t){return ve(this,n),e.call(this,t)}return we(n,[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,r=t.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"viewOptions",value:function(){return ye.a}},{key:"onRender",value:function(){this.showChildView("items",new _e({collection:this.collection,childOptions:this.options.childOptions}))}},{key:"name",get:function(){return"UserOptionsDropdownComponent"}},{key:"className",get:function(){return"dropdown-menu dropdown-arrow ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"template",get:function(){return be.a}}]),n}(r.a.Component),_e=function(t){Oe(n,t);var e=Ce(n);function n(t){return ve(this,n),e.call(this,t)}return we(n,[{key:"name",get:function(){return"UserOptionsDropdownComponentCollection"}},{key:"childView",get:function(){return he.a}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection);function xe(t){return(xe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Te(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function De(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Le(t,e){return(Le=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ae(t){var e=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(t){return!1}}();return function(){var n,r=Ie(t);if(e){var o=Ie(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ne(this,n)}}function Ne(t,e){return!e||"object"!==xe(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ie(t){return(Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var je=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Le(t,e)}(a,t);var e,n,o,i=Ae(a);function a(){return Te(this,a),i.apply(this,arguments)}return e=a,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new Pe({model:this.currentUser,collection:new r.a.Collection([{title:j.a.getPhrase(this.lang,"staffView"),href:this.config.get("onlineUrl"),external:!0,icon:s.a.getSvg(s.b.NewWindow)},{title:j.a.getPhrase(this.lang,"settings"),href:oe.a.safeUrlConcat(this.config.get("onlineUrl"),"/settings"),external:!0,icon:s.a.getSvg(s.b.NewWindow)},{title:j.a.getPhrase(this.lang,"helpCentre"),href:oe.a.safeUrlConcat(this.config.get("supportSiteUrl"),ie.y.LIBRARY_EDITOR),external:!0,icon:s.a.getSvg(s.b.NewWindow)},{divider:!0},{title:j.a.getPhrase(this.lang,"signOut"),href:"/logout"}]),displayOptions:{alignment:"right"},childOptions:{channelName:this.channelName}}))}},{key:"viewOptions",value:function(){return this.currentUser?(this.currentUser.avatar&&(t=pe.g.createUrl(this.currentUser.avatar.get("url"),{size:"small"})),{styles:ue.a,avatar:t,arrowSvg:s.a.getSvg(s.b.ChevronDown)}):{};var t}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"UserOptionsView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return ce.a}},{key:"lang",get:function(){return"shared.userOptions"}},{key:"className",get:function(){return"d-inline-flex align-items-center position-relative position-relative ".concat(ue.a.popoverOffset)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:le.b.config,currentUser:fe.b.currentUser}}}])&&De(e.prototype,n),o&&De(e,o),a}(r.a.View),Ve=n(31),Me=n(6),Ue=n(185),Fe=n(401),He=n.n(Fe);function ze(t){return(ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Be(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ge(t,e){return(Ge=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function We(t){var e=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(t){return!1}}();return function(){var n,r=Je(t);if(e){var o=Je(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ye(this,n)}}function Ye(t,e){return!e||"object"!==ze(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Je(t){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $e=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ge(t,e)}(a,t);var e,n,r,o=We(a);function a(){return Be(this,a),o.apply(this,arguments)}return e=a,(n=[{key:"initialize",value:function(){this.pendingItemsService=i.a.getInstance(ie.x.PendingItems,this),this.listenTo(V.c.PENDING_ITEMS,Ve.a.PENDING_ITEM_STATUS_CHANGE,this.render),this.listenTo(this.channelName,"clear:pending:item",this.onClearPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.onRetryPendingItem)}},{key:"regions",value:function(){return{processingProgress:{el:".processing-progress-region",replaceElement:!0,partialLoading:Me.j.NotificationPopover},uploading:{el:".upload-progress-region",replaceElement:!0}}}},{key:"onClearPendingItem",value:function(t){var e=this;this.pendingItemsService.clearPendingItem(t,(function(){e.render()}))}},{key:"onRetryPendingItem",value:function(t){var e=this;this.pendingItemsService.retryPendingItem(t,(function(){e.render()}))}},{key:"onBeforeRender",value:function(){return this.pendingItems=this.pendingItemsService.getPendingItems(),!!this.pendingItems}},{key:"onRender",value:function(){this.showChildView("processingProgress",new Ue.a({collection:this.pendingItems,channelName:this.channelName}))}},{key:"name",get:function(){return"ProgressSummaryView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return He.a}},{key:"lang",get:function(){return"upload.progressSummary"}},{key:"className",get:function(){return"progress-summary"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&qe(e.prototype,n),r&&qe(e,r),a}(r.a.View),Ke=n(169),Qe=n.n(Ke),Ze=n(402),Xe=n.n(Ze),tn=n(186),en=n(89);function nn(t){return(nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function on(t,e){return(on=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function an(t){var e=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(t){return!1}}();return function(){var n,r=sn(t);if(e){var o=sn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cn(this,n)}}function cn(t,e){return!e||"object"!==nn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sn(t){return(sn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var un=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&on(t,e)}(c,t);var e,n,r,a=an(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"initialize",value:function(){var t=this;this.pendingItemsService=i.a.getInstance(ie.x.PendingItems,this),this.listenTo(ie.e.LIBRARY,"library:created library:deleted",this.render),this.model=o.a.get("process:progress"),this.listenTo(this.model,"change:items",(function(){t.model.get("items")||t.render()}))}},{key:"regions",value:function(){return{progressInfo:{el:".progress-info-region",replaceElement:!1},progressSummary:{el:".progress-summary-region",replaceElement:!1}}}},{key:"hasLibraries",value:function(){return!!this.libraries.length}},{key:"renderProgressInfo",value:function(){this.hasLibraries()&&this.showChildView("progressInfo",new tn.a)}},{key:"renderProgressSummary",value:function(){this.hasLibraries()&&this.showChildView("progressSummary",new $e)}},{key:"viewOptions",value:function(){return{styles:Qe.a,uploadSvg:s.a.getSvg(s.b.Upload),hasLibraries:this.hasLibraries()}}},{key:"onRender",value:function(){this.pendingItemsService.getPendingItems(),this.renderProgressInfo(),this.renderProgressSummary()}},{key:"lang",get:function(){return"upload.uploadButton"}},{key:"appLinks",get:function(){return t={},e=".".concat(Qe.a.upload),n={application:ie.b.UPLOAD,action:ie.a.Upload.FILE_SELECTION},e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"channelName",get:function(){return ie.w.VIDEO_UPLOAD}},{key:"name",get:function(){return"UploadButtonView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"d-flex align-items-center position-relative h-100"}},{key:"template",get:function(){return Xe.a}},{key:"requiredResources",get:function(){return{libraries:en.b.libraries}}}])&&rn(e.prototype,n),r&&rn(e,r),c}(r.a.View),ln=n(404),fn=n.n(ln),pn=n(405),hn=n.n(pn);function dn(t){return(dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function gn(t,e){return(gn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function bn(t){var e=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(t){return!1}}();return function(){var n,r=vn(t);if(e){var o=vn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mn(this,n)}}function mn(t,e){return!e||"object"!==dn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function vn(t){return(vn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"PageHeaderComponent",(function(){return Sn}));var Sn=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&gn(t,e)}(a,t);var e,n,r,i=bn(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"regions",value:function(){return{search:{el:".search-bar-region",replaceElement:!1},notifications:{el:".notifications-region",replaceElement:!0},upload:{el:".upload-region",replaceElement:!1},userOptions:{el:".user-options-region",replaceElement:!0},migrationError:{el:".migration-error-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .navbar-brand":"onClick"}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t={actionType:L.q.Click,descriptor:L.b.NavigateHome,location:L.k.TopNav,entity:L.e.Logo},e={currentLocation:A.a.buildCurrentLocation()};A.a.logUserAction(e,t)}},{key:"getSearchModel",value:function(){return o.a.get("search",{ctor:re.c})}},{key:"renderSearchBar",value:function(){var t=new ne({model:this.getSearchModel()});this.showChildView("search",t)}},{key:"renderUpload",value:function(){if(!this.options.onlyShowProfile){var t=new un;this.showChildView("upload",t)}}},{key:"renderNotificationsStatus",value:function(){var t=new x;this.showChildView("notifications",t)}},{key:"renderUserDropdown",value:function(){this.showChildView("userOptions",new je)}},{key:"viewOptions",value:function(){return{styles:hn.a}}},{key:"onRender",value:function(){this.renderUserDropdown(),this.options.onlyShowProfile||(this.renderSearchBar(),this.renderUpload(),this.renderNotificationsStatus())}},{key:"name",get:function(){return"PageHeaderComponent"}},{key:"template",get:function(){return fn.a}},{key:"tagName",get:function(){return"nav"}},{key:"className",get:function(){return"navbar navbar-expand navbar-dark bg-dark"}}])&&yn(e.prototype,n),r&&yn(e,r),a}(r.a.Component)},function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(2),i=n(3),a=n(13),c=n(406),s=n.n(c),u=n(407),l=n.n(u),f=n(6),p=n(408),h=n.n(p),d=n(171),y=n.n(d);function g(t){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function v(t,e,n){return e&&m(t.prototype,e),n&&m(t,n),t}function S(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=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(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){S(n,t);var e=O(n);function n(t){return b(this,n),e.call(this,t)}return v(n,[{key:"isSelected",value:function(){return!!this.options.selected&&(this.options.selected.application===this.model.get("application")&&this.options.selected.action===this.model.get("action"))}},{key:"getCount",value:function(){var t=this.model.get("getCount");if(r.isFunction(t))return t()}},{key:"viewOptions",value:function(){return{styles:y.a,count:this.getCount()}}},{key:"name",get:function(){return"TopNavigationItemComponent"}},{key:"tagName",get:function(){return"a"}},{key:"className",get:function(){return this.isSelected()?"border-bottom border-primary text-primary nav-link ".concat(y.a.active):"nav-link"}},{key:"appLinks",get:function(){return{"[this]":{application:this.model.get("application"),action:this.model.get("action")}}}},{key:"template",get:function(){return h.a}}]),n}(o.a.Component),k=function(t){S(n,t);var e=O(n);function n(t){return b(this,n),e.call(this,t)}return v(n,[{key:"name",get:function(){return"TopNavigationComponentCollection"}},{key:"className",get:function(){return"nav"}},{key:"childView",get:function(){return R}},{key:"childViewOptions",get:function(){return{selected:this.options.selected}}}]),n}(o.a.ComponentCollection),P=n(42),_=n(0),x=n(86),T=n(5),D={warningPublisherArchive:n(409)};function L(t){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function A(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function N(t,e){return(N=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function I(t){var e=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(t){return!1}}();return function(){var n,r=V(t);if(e){var o=V(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==L(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function V(t){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"TopNavigationView",(function(){return M}));var M=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&N(t,e)}(p,t);var e,n,c,u=I(p);function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,t)}return e=p,(n=[{key:"initialize",value:function(){this.initializeDataServices(),this.bindListeners()}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0},migrationErrors:{el:".migration-error-region",replaceElement:!0}}}},{key:"initializeDataServices",value:function(){this.contentUpdatesDataService=T.a.getInstance(_.g.ContentUpdates,this),this.settingsDataService=T.a.getInstance(_.g.Settings,this),this.migrationVideoDataService=T.a.getInstance(_.g.MigrationVideo,this),this.staffRequestDataService=T.a.getInstance(_.g.StaffRequests,this)}},{key:"bindListeners",value:function(){this.listenTo(_.e.SETTINGS,"".concat(_.f.SETTINGS,":sync"),this.render),this.listenTo(_.e.VIDEO,"".concat(_.f.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(_.e.STAFF_REQUEST,"".concat(_.f.STAFF_REQUESTS,":sync"),this.render),this.listenTo(_.e.MIGRATION,"".concat(_.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(_.e.MIGRATION,"manual:review:video:count:sync",this.render)}},{key:"initNavCollection",value:function(){var t=this,e=[{name:i.a.getPhrase(this.lang,"libraryEditor"),application:_.b.LIBRARY_EDITOR,action:_.a.LibraryEditor.HOME},{name:i.a.getPhrase(this.lang,"staffRequests"),application:_.b.STAFF_REQUESTS,action:_.a.StaffRequests.HOME,getCount:function(){return t.staffRequestCollection&&t.staffRequestCollection.length},requiredSetting:{name:f.m.StaffRequest,value:f.o.StaffRequest}},{name:i.a.getPhrase(this.lang,"contentUpdates"),application:_.b.CONTENT_UPDATES,action:_.a.ContentUpdates.AWAITING_REVIEW,getCount:function(){return t.contentUpdatesCollection&&t.contentUpdatesCollection.length}},{name:i.a.getPhrase(this.lang,"videoAccess"),application:_.b.VIDEO_ACCESS,action:_.a.VideoAccess.HOME}];this.collection=new o.a.Collection(this.filterNavItems(e)),P.a.showPublisherArchive(this.migrationMetadata)&&this.collection.add({name:i.a.getPhrase(this.lang,"publisherArchive"),icon:this.getPublisherArchiveIcon(),application:_.b.MIGRATION_WIZARD,action:_.a.MigrationWizard.HOME})}},{key:"getPublisherArchiveIcon",value:function(){return this.errorCount&&this.errorCount.get("count")?D.warningPublisherArchive(i.a.getPhrase("migrationWizard.utils","errorsTitle")):a.a.getSvg(a.b.PublisherArchive)}},{key:"filterNavItems",value:function(t){var e=this;return t.filter((function(t){if(!r.has(t,"requiredSetting"))return!0;var n=e.settings.findWhere({name:t.requiredSetting.name});return!!n&&n.get("value")===t.requiredSetting.value}))}},{key:"onBeforeRender",value:function(){return this.contentUpdatesCollection=this.contentUpdatesDataService.getVideosToReview(),this.staffRequestCollection=this.staffRequestDataService.getStaffRequests(),this.settings=this.settingsDataService.getSettings(this.currentUser.get("customerId")),this.migrationMetadata=this.migrationVideoDataService.getCustomerMetadata(),this.errorCount=this.migrationVideoDataService.getManualReviewVideoCount(),!!this.settings&&!!this.migrationMetadata}},{key:"onRender",value:function(){this.initNavCollection(),this.showChildView("items",new k({collection:this.collection,selected:this.options.selected}))}},{key:"name",get:function(){return"TopNavigationView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white ".concat(l.a.topNav," container")}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"shared.topNavigation"}},{key:"requiredResources",get:function(){return{currentUser:x.b.currentUser}}}])&&A(e.prototype,n),c&&A(e,c),p}(o.a.View)},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t){t.exports=JSON.parse("{}")},function(t,e,n){var r=function(t){"use strict";var e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",i=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function c(t,e,n,r){var o=e&&e.prototype instanceof l?e:l,i=Object.create(o.prototype),a=new O(r||[]);return i._invoke=function(t,e,n){var r="suspendedStart";return function(o,i){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===o)throw i;return C()}for(n.method=o,n.arg=i;;){var a=n.delegate;if(a){var c=v(a,n);if(c){if(c===u)continue;return c}}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 l=s(t,e,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===u)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}(t,n,a),i}function s(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var u={};function l(){}function f(){}function p(){}var h={};h[o]=function(){return this};var d=Object.getPrototypeOf,y=d&&d(d(E([])));y&&y!==e&&n.call(y,o)&&(h=y);var g=p.prototype=l.prototype=Object.create(h);function b(t){["next","throw","return"].forEach((function(e){t[e]=function(t){return this._invoke(e,t)}}))}function m(t){var e;this._invoke=function(r,o){function i(){return new Promise((function(e,i){!function e(r,o,i,a){var c=s(t[r],t,o);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==typeof l&&n.call(l,"__await")?Promise.resolve(l.__await).then((function(t){e("next",t,i,a)}),(function(t){e("throw",t,i,a)})):Promise.resolve(l).then((function(t){u.value=t,i(u)}),(function(t){return e("throw",t,i,a)}))}a(c.arg)}(r,o,e,i)}))}return e=e?e.then(i,i):i()}}function v(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,v(t,e),"throw"===e.method))return u;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return u}var r=s(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,u;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,u):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,u)}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function w(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function E(t){if(t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,i=function e(){for(;++r<t.length;)if(n.call(t,r))return e.value=t[r],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:C}}function C(){return{value:void 0,done:!0}}return f.prototype=g.constructor=p,p.constructor=f,p[a]=f.displayName="GeneratorFunction",t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===f||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,p):(t.__proto__=p,a in t||(t[a]="GeneratorFunction")),t.prototype=Object.create(g),t},t.awrap=function(t){return{__await:t}},b(m.prototype),m.prototype[i]=function(){return this},t.AsyncIterator=m,t.async=function(e,n,r,o){var i=new m(c(e,n,r,o));return t.isGeneratorFunction(n)?i:i.next().then((function(t){return t.done?t.value:i.next()}))},b(g),g[a]="Generator",g[o]=function(){return this},g.toString=function(){return"[object Generator]"},t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var r=e.pop();if(r in t)return n.value=r,n.done=!1,n}return n.done=!0,n}},t.values=E,O.prototype={constructor:O,reset:function(t){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(w),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function r(n,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=void 0),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(c&&s){if(this.prev<i.catchLoc)return r(i.catchLoc,!0);if(this.prev<i.finallyLoc)return r(i.finallyLoc)}else if(c){if(this.prev<i.catchLoc)return r(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return r(i.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,u):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),u},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),w(n),u}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;w(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),u}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,e,n){},function(t,e){t.exports={GoogleAnalytics:function(){window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)},ga.l=+new Date}}},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.default.tokenize(t),o=[],a=[];for(n=new s(n),e=0;e<r.length;e++){var p=r[e];if("StartTag"!==p.type)if("Chars"===p.type){var h=u(p.chars,n);o.push.apply(o,h)}else o.push(p);else{o.push(p);var d=p.tagName.toUpperCase(),y="A"===d||c.contains(n.ignoreTags,d);if(!y)continue;var g=o.length;l(d,r,++e,o),e+=o.length-g-1}}for(e=0;e<o.length;e++){var b=o[e];switch(b.type){case"StartTag":var m="<"+b.tagName;if(b.attributes.length>0){var v=f(b.attributes);m+=" "+v.join(" ")}m+=">",a.push(m);break;case"EndTag":a.push("</"+b.tagName+">");break;case"Chars":a.push(b.chars);break;case"Comment":a.push("\x3c!--"+b.chars+"--\x3e")}}return a.join("")};var r,o=n(640),i=(r=o)&&r.__esModule?r:{default:r},a=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(643));var c=a.options,s=c.Options;function u(t,e){for(var n=a.tokenize(t),r=[],o=0;o<n.length;o++){var i=n[o];if("nl"===i.type&&e.nl2br)r.push({type:"StartTag",tagName:"br",attributes:[],selfClosing:!0});else if(i.isLink&&e.check(i)){var c=e.resolve(i),s=c.formatted,u=c.formattedHref,l=c.tagName,f=c.className,p=c.target,h=c.attributes,d=[["href",u]];for(var y in f&&d.push(["class",f]),p&&d.push(["target",p]),h)d.push([y,h[y]]);r.push({type:"StartTag",tagName:l,attributes:d,selfClosing:!1}),r.push({type:"Chars",chars:s}),r.push({type:"EndTag",tagName:l})}else r.push({type:"Chars",chars:i.toString()})}return r}function l(t,e,n,r){for(var o=1;n<e.length&&o>0;){var i=e[n];"StartTag"===i.type&&i.tagName.toUpperCase()===t?o++:"EndTag"===i.type&&i.tagName.toUpperCase()===t&&o--,r.push(i),n++}return r}function f(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],o=r[0],i=r[1];e.push(o+'="'+(i.replace(/"/g,""")+'"'))}return e}},function(t,e,n){"use strict";e.__esModule=!0;var r=s(n(201)),o=s(n(202)),i=s(n(203)),a=s(n(204)),c=s(n(642));function s(t){return t&&t.__esModule?t:{default:t}}var u={HTML5NamedCharRefs:r.default,EntityParser:o.default,EventedTokenizer:i.default,Tokenizer:a.default,tokenize:c.default};e.default=u},function(t,e,n){"use strict";e.__esModule=!0,e.isSpace=function(t){return r.test(t)},e.isAlpha=function(t){return o.test(t)},e.preprocessInput=function(t){return t.replace(i,"\n")};var r=/[\t\n\f ]/,o=/[A-Za-z]/,i=/\r\n?/g},function(t,e,n){"use strict";e.__esModule=!0,e.default=function(t,e){return new r.default(new o.default(i.default),e).tokenize(t)};var r=a(n(204)),o=a(n(202)),i=a(n(201));function a(t){return t&&t.__esModule?t:{default:t}}},function(t,e,n){"use strict";e.__esModule=!0,e.tokenize=e.test=e.scanner=e.parser=e.options=e.inherits=e.find=void 0;var r=n(126),o=c(n(644)),i=c(n(645)),a=c(n(646));function c(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)});var s=function(t){return a.run(i.run(t))};e.find=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(t),r=[],o=0;o<n.length;o++){var i=n[o];!i.isLink||e&&i.type!==e||r.push(i.toObject())}return r},e.inherits=r.inherits,e.options=o,e.parser=a,e.scanner=i,e.test=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=s(t);return 1===n.length&&n[0].isLink&&(!e||n[0].type===e)},e.tokenize=s},function(t,e,n){"use strict";e.__esModule=!0;var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o={defaultProtocol:"http",events:null,format:a,formatHref:a,nl2br:!1,tagName:"a",target:function(t,e){return"url"===e?"_blank":null},validate:!0,ignoreTags:[],attributes:null,className:"linkified"};function i(t){t=t||{},this.defaultProtocol=t.hasOwnProperty("defaultProtocol")?t.defaultProtocol:o.defaultProtocol,this.events=t.hasOwnProperty("events")?t.events:o.events,this.format=t.hasOwnProperty("format")?t.format:o.format,this.formatHref=t.hasOwnProperty("formatHref")?t.formatHref:o.formatHref,this.nl2br=t.hasOwnProperty("nl2br")?t.nl2br:o.nl2br,this.tagName=t.hasOwnProperty("tagName")?t.tagName:o.tagName,this.target=t.hasOwnProperty("target")?t.target:o.target,this.validate=t.hasOwnProperty("validate")?t.validate:o.validate,this.ignoreTags=[],this.attributes=t.attributes||t.linkAttributes||o.attributes,this.className=t.hasOwnProperty("className")?t.className:t.linkClass||o.className;for(var e=t.hasOwnProperty("ignoreTags")?t.ignoreTags:o.ignoreTags,n=0;n<e.length;n++)this.ignoreTags.push(e[n].toUpperCase())}function a(t){return t}e.defaults=o,e.Options=i,e.contains=function(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return!0;return!1},i.prototype={resolve:function(t){var e=t.toHref(this.defaultProtocol);return{formatted:this.get("format",t.toString(),t),formattedHref:this.get("formatHref",e,t),tagName:this.get("tagName",e,t),className:this.get("className",e,t),target:this.get("target",e,t),events:this.getObject("events",e,t),attributes:this.getObject("attributes",e,t)}},check:function(t){return this.get("validate",t.toString(),t)},get:function(t,e,n){var i=void 0,a=this[t];if(!a)return a;switch(void 0===a?"undefined":r(a)){case"function":return a(e,n.type);case"object":return"function"==typeof(i=a.hasOwnProperty(n.type)?a[n.type]:o[t])?i(e,n.type):i}return a},getObject:function(t,e,n){var r=this[t];return"function"==typeof r?r(e,n.type):r}}},function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(205),o=n(159),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o);var a="aaa|aarp|abarth|abb|abbott|abbvie|abc|able|abogado|abudhabi|ac|academy|accenture|accountant|accountants|aco|active|actor|ad|adac|ads|adult|ae|aeg|aero|aetna|af|afamilycompany|afl|africa|ag|agakhan|agency|ai|aig|aigo|airbus|airforce|airtel|akdn|al|alfaromeo|alibaba|alipay|allfinanz|allstate|ally|alsace|alstom|am|americanexpress|americanfamily|amex|amfam|amica|amsterdam|analytics|android|anquan|anz|ao|aol|apartments|app|apple|aq|aquarelle|ar|arab|aramco|archi|army|arpa|art|arte|as|asda|asia|associates|at|athleta|attorney|au|auction|audi|audible|audio|auspost|author|auto|autos|avianca|aw|aws|ax|axa|az|azure|ba|baby|baidu|banamex|bananarepublic|band|bank|bar|barcelona|barclaycard|barclays|barefoot|bargains|baseball|basketball|bauhaus|bayern|bb|bbc|bbt|bbva|bcg|bcn|bd|be|beats|beauty|beer|bentley|berlin|best|bestbuy|bet|bf|bg|bh|bharti|bi|bible|bid|bike|bing|bingo|bio|biz|bj|black|blackfriday|blanco|blockbuster|blog|bloomberg|blue|bm|bms|bmw|bn|bnl|bnpparibas|bo|boats|boehringer|bofa|bom|bond|boo|book|booking|boots|bosch|bostik|boston|bot|boutique|box|br|bradesco|bridgestone|broadway|broker|brother|brussels|bs|bt|budapest|bugatti|build|builders|business|buy|buzz|bv|bw|by|bz|bzh|ca|cab|cafe|cal|call|calvinklein|cam|camera|camp|cancerresearch|canon|capetown|capital|capitalone|car|caravan|cards|care|career|careers|cars|cartier|casa|case|caseih|cash|casino|cat|catering|catholic|cba|cbn|cbre|cbs|cc|cd|ceb|center|ceo|cern|cf|cfa|cfd|cg|ch|chanel|channel|chase|chat|cheap|chintai|chloe|christmas|chrome|chrysler|church|ci|cipriani|circle|cisco|citadel|citi|citic|city|cityeats|ck|cl|claims|cleaning|click|clinic|clinique|clothing|cloud|club|clubmed|cm|cn|co|coach|codes|coffee|college|cologne|com|comcast|commbank|community|company|compare|computer|comsec|condos|construction|consulting|contact|contractors|cooking|cookingchannel|cool|coop|corsica|country|coupon|coupons|courses|cr|credit|creditcard|creditunion|cricket|crown|crs|cruise|cruises|csc|cu|cuisinella|cv|cw|cx|cy|cymru|cyou|cz|dabur|dad|dance|data|date|dating|datsun|day|dclk|dds|de|deal|dealer|deals|degree|delivery|dell|deloitte|delta|democrat|dental|dentist|desi|design|dev|dhl|diamonds|diet|digital|direct|directory|discount|discover|dish|diy|dj|dk|dm|dnp|do|docs|doctor|dodge|dog|doha|domains|dot|download|drive|dtv|dubai|duck|dunlop|duns|dupont|durban|dvag|dvr|dz|earth|eat|ec|eco|edeka|edu|education|ee|eg|email|emerck|energy|engineer|engineering|enterprises|epost|epson|equipment|er|ericsson|erni|es|esq|estate|esurance|et|etisalat|eu|eurovision|eus|events|everbank|exchange|expert|exposed|express|extraspace|fage|fail|fairwinds|faith|family|fan|fans|farm|farmers|fashion|fast|fedex|feedback|ferrari|ferrero|fi|fiat|fidelity|fido|film|final|finance|financial|fire|firestone|firmdale|fish|fishing|fit|fitness|fj|fk|flickr|flights|flir|florist|flowers|fly|fm|fo|foo|food|foodnetwork|football|ford|forex|forsale|forum|foundation|fox|fr|free|fresenius|frl|frogans|frontdoor|frontier|ftr|fujitsu|fujixerox|fun|fund|furniture|futbol|fyi|ga|gal|gallery|gallo|gallup|game|games|gap|garden|gb|gbiz|gd|gdn|ge|gea|gent|genting|george|gf|gg|ggee|gh|gi|gift|gifts|gives|giving|gl|glade|glass|gle|global|globo|gm|gmail|gmbh|gmo|gmx|gn|godaddy|gold|goldpoint|golf|goo|goodhands|goodyear|goog|google|gop|got|gov|gp|gq|gr|grainger|graphics|gratis|green|gripe|grocery|group|gs|gt|gu|guardian|gucci|guge|guide|guitars|guru|gw|gy|hair|hamburg|hangout|haus|hbo|hdfc|hdfcbank|health|healthcare|help|helsinki|here|hermes|hgtv|hiphop|hisamitsu|hitachi|hiv|hk|hkt|hm|hn|hockey|holdings|holiday|homedepot|homegoods|homes|homesense|honda|honeywell|horse|hospital|host|hosting|hot|hoteles|hotels|hotmail|house|how|hr|hsbc|ht|htc|hu|hughes|hyatt|hyundai|ibm|icbc|ice|icu|id|ie|ieee|ifm|ikano|il|im|imamat|imdb|immo|immobilien|in|industries|infiniti|info|ing|ink|institute|insurance|insure|int|intel|international|intuit|investments|io|ipiranga|iq|ir|irish|is|iselect|ismaili|ist|istanbul|it|itau|itv|iveco|iwc|jaguar|java|jcb|jcp|je|jeep|jetzt|jewelry|jio|jlc|jll|jm|jmp|jnj|jo|jobs|joburg|jot|joy|jp|jpmorgan|jprs|juegos|juniper|kaufen|kddi|ke|kerryhotels|kerrylogistics|kerryproperties|kfh|kg|kh|ki|kia|kim|kinder|kindle|kitchen|kiwi|km|kn|koeln|komatsu|kosher|kp|kpmg|kpn|kr|krd|kred|kuokgroup|kw|ky|kyoto|kz|la|lacaixa|ladbrokes|lamborghini|lamer|lancaster|lancia|lancome|land|landrover|lanxess|lasalle|lat|latino|latrobe|law|lawyer|lb|lc|lds|lease|leclerc|lefrak|legal|lego|lexus|lgbt|li|liaison|lidl|life|lifeinsurance|lifestyle|lighting|like|lilly|limited|limo|lincoln|linde|link|lipsy|live|living|lixil|lk|loan|loans|locker|locus|loft|lol|london|lotte|lotto|love|lpl|lplfinancial|lr|ls|lt|ltd|ltda|lu|lundbeck|lupin|luxe|luxury|lv|ly|ma|macys|madrid|maif|maison|makeup|man|management|mango|map|market|marketing|markets|marriott|marshalls|maserati|mattel|mba|mc|mckinsey|md|me|med|media|meet|melbourne|meme|memorial|men|menu|meo|merckmsd|metlife|mg|mh|miami|microsoft|mil|mini|mint|mit|mitsubishi|mk|ml|mlb|mls|mm|mma|mn|mo|mobi|mobile|mobily|moda|moe|moi|mom|monash|money|monster|mopar|mormon|mortgage|moscow|moto|motorcycles|mov|movie|movistar|mp|mq|mr|ms|msd|mt|mtn|mtr|mu|museum|mutual|mv|mw|mx|my|mz|na|nab|nadex|nagoya|name|nationwide|natura|navy|nba|nc|ne|nec|net|netbank|netflix|network|neustar|new|newholland|news|next|nextdirect|nexus|nf|nfl|ng|ngo|nhk|ni|nico|nike|nikon|ninja|nissan|nissay|nl|no|nokia|northwesternmutual|norton|now|nowruz|nowtv|np|nr|nra|nrw|ntt|nu|nyc|nz|obi|observer|off|office|okinawa|olayan|olayangroup|oldnavy|ollo|om|omega|one|ong|onl|online|onyourside|ooo|open|oracle|orange|org|organic|origins|osaka|otsuka|ott|ovh|pa|page|panasonic|panerai|paris|pars|partners|parts|party|passagens|pay|pccw|pe|pet|pf|pfizer|pg|ph|pharmacy|phd|philips|phone|photo|photography|photos|physio|piaget|pics|pictet|pictures|pid|pin|ping|pink|pioneer|pizza|pk|pl|place|play|playstation|plumbing|plus|pm|pn|pnc|pohl|poker|politie|porn|post|pr|pramerica|praxi|press|prime|pro|prod|productions|prof|progressive|promo|properties|property|protection|pru|prudential|ps|pt|pub|pw|pwc|py|qa|qpon|quebec|quest|qvc|racing|radio|raid|re|read|realestate|realtor|realty|recipes|red|redstone|redumbrella|rehab|reise|reisen|reit|reliance|ren|rent|rentals|repair|report|republican|rest|restaurant|review|reviews|rexroth|rich|richardli|ricoh|rightathome|ril|rio|rip|rmit|ro|rocher|rocks|rodeo|rogers|room|rs|rsvp|ru|rugby|ruhr|run|rw|rwe|ryukyu|sa|saarland|safe|safety|sakura|sale|salon|samsclub|samsung|sandvik|sandvikcoromant|sanofi|sap|sapo|sarl|sas|save|saxo|sb|sbi|sbs|sc|sca|scb|schaeffler|schmidt|scholarships|school|schule|schwarz|science|scjohnson|scor|scot|sd|se|search|seat|secure|security|seek|select|sener|services|ses|seven|sew|sex|sexy|sfr|sg|sh|shangrila|sharp|shaw|shell|shia|shiksha|shoes|shop|shopping|shouji|show|showtime|shriram|si|silk|sina|singles|site|sj|sk|ski|skin|sky|skype|sl|sling|sm|smart|smile|sn|sncf|so|soccer|social|softbank|software|sohu|solar|solutions|song|sony|soy|space|spiegel|spot|spreadbetting|sr|srl|srt|st|stada|staples|star|starhub|statebank|statefarm|statoil|stc|stcgroup|stockholm|storage|store|stream|studio|study|style|su|sucks|supplies|supply|support|surf|surgery|suzuki|sv|swatch|swiftcover|swiss|sx|sy|sydney|symantec|systems|sz|tab|taipei|talk|taobao|target|tatamotors|tatar|tattoo|tax|taxi|tc|tci|td|tdk|team|tech|technology|tel|telecity|telefonica|temasek|tennis|teva|tf|tg|th|thd|theater|theatre|tiaa|tickets|tienda|tiffany|tips|tires|tirol|tj|tjmaxx|tjx|tk|tkmaxx|tl|tm|tmall|tn|to|today|tokyo|tools|top|toray|toshiba|total|tours|town|toyota|toys|tr|trade|trading|training|travel|travelchannel|travelers|travelersinsurance|trust|trv|tt|tube|tui|tunes|tushu|tv|tvs|tw|tz|ua|ubank|ubs|uconnect|ug|uk|unicom|university|uno|uol|ups|us|uy|uz|va|vacations|vana|vanguard|vc|ve|vegas|ventures|verisign|versicherung|vet|vg|vi|viajes|video|vig|viking|villas|vin|vip|virgin|visa|vision|vista|vistaprint|viva|vivo|vlaanderen|vn|vodka|volkswagen|volvo|vote|voting|voto|voyage|vu|vuelos|wales|walmart|walter|wang|wanggou|warman|watch|watches|weather|weatherchannel|webcam|weber|website|wed|wedding|weibo|weir|wf|whoswho|wien|wiki|williamhill|win|windows|wine|winners|wme|wolterskluwer|woodside|work|works|world|wow|ws|wtc|wtf|xbox|xerox|xfinity|xihuan|xin|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--30rr7y|xn--3bst00m|xn--3ds443g|xn--3e0b707e|xn--3hcrj9c|xn--3oq18vl8pn36a|xn--3pxu8k|xn--42c2d9a|xn--45br5cyl|xn--45brj9c|xn--45q11c|xn--4gbrim|xn--54b7fta0cc|xn--55qw42g|xn--55qx5d|xn--5su34j936bgsg|xn--5tzm5g|xn--6frz82g|xn--6qq986b3xl|xn--80adxhks|xn--80ao21a|xn--80aqecdr1a|xn--80asehdb|xn--80aswg|xn--8y0a063a|xn--90a3ac|xn--90ae|xn--90ais|xn--9dbq2a|xn--9et52u|xn--9krt00a|xn--b4w605ferd|xn--bck1b9a5dre4c|xn--c1avg|xn--c2br7g|xn--cck2b3b|xn--cg4bki|xn--clchc0ea0b2g2a9gcd|xn--czr694b|xn--czrs0t|xn--czru2d|xn--d1acj3b|xn--d1alf|xn--e1a4c|xn--eckvdtc9d|xn--efvy88h|xn--estv75g|xn--fct429k|xn--fhbei|xn--fiq228c5hs|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--fjq720a|xn--flw351e|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--fzys8d69uvgm|xn--g2xx48c|xn--gckr3f0f|xn--gecrj9c|xn--gk3at1e|xn--h2breg3eve|xn--h2brj9c|xn--h2brj9c8c|xn--hxt814e|xn--i1b6b1a6a2e|xn--imr513n|xn--io0a7i|xn--j1aef|xn--j1amh|xn--j6w193g|xn--jlq61u9w7b|xn--jvr189m|xn--kcrx77d1x4a|xn--kprw13d|xn--kpry57d|xn--kpu716f|xn--kput3i|xn--l1acc|xn--lgbbat1ad8j|xn--mgb9awbf|xn--mgba3a3ejt|xn--mgba3a4f16a|xn--mgba7c0bbn0a|xn--mgbaakc7dvf|xn--mgbaam7a8h|xn--mgbab2bd|xn--mgbai9azgqp6j|xn--mgbayh7gpa|xn--mgbb9fbpob|xn--mgbbh1a|xn--mgbbh1a71e|xn--mgbc0a9azcg|xn--mgbca7dzdo|xn--mgberp4a5d4ar|xn--mgbgu82a|xn--mgbi4ecexp|xn--mgbpl2fh|xn--mgbt3dhd|xn--mgbtx2b|xn--mgbx4cd0ab|xn--mix891f|xn--mk1bu44c|xn--mxtq1m|xn--ngbc5azd|xn--ngbe9e0a|xn--ngbrx|xn--node|xn--nqv7f|xn--nqv7fs00ema|xn--nyqy26a|xn--o3cw4h|xn--ogbpf8fl|xn--p1acf|xn--p1ai|xn--pbt977c|xn--pgbs0dh|xn--pssy2u|xn--q9jyb4c|xn--qcka1pmc|xn--qxam|xn--rhqv96g|xn--rovu88b|xn--rvc1e0am3e|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--tckwe|xn--tiq49xqyj|xn--unup4y|xn--vermgensberater-ctb|xn--vermgensberatung-pwb|xn--vhquv|xn--vuq861b|xn--w4r85el8fhu5dnra|xn--w4rs40l|xn--wgbh1c|xn--wgbl6a|xn--xhq521b|xn--xkc2al3hye2a|xn--xkc2dl3a5ee0h|xn--y9a3aq|xn--yfro4i67o|xn--ygbi2ammx|xn--zfr164b|xperia|xxx|xyz|yachts|yahoo|yamaxun|yandex|ye|yodobashi|yoga|yokohama|you|youtube|yt|yun|za|zappos|zara|zero|zip|zippo|zm|zone|zuerich|zw".split("|"),c="0123456789".split(""),s="0123456789abcdefghijklmnopqrstuvwxyz".split(""),u=[" ","\f","\r","\t","\v","Ā ","į","į "],l=[],f=function(t){return new r.CharacterState(t)},p=f(),h=f(o.NUM),d=f(o.DOMAIN),y=f(),g=f(o.WS);p.on("@",f(o.AT)).on(".",f(o.DOT)).on("+",f(o.PLUS)).on("#",f(o.POUND)).on("?",f(o.QUERY)).on("/",f(o.SLASH)).on("_",f(o.UNDERSCORE)).on(":",f(o.COLON)).on("{",f(o.OPENBRACE)).on("[",f(o.OPENBRACKET)).on("<",f(o.OPENANGLEBRACKET)).on("(",f(o.OPENPAREN)).on("}",f(o.CLOSEBRACE)).on("]",f(o.CLOSEBRACKET)).on(">",f(o.CLOSEANGLEBRACKET)).on(")",f(o.CLOSEPAREN)).on("&",f(o.AMPERSAND)).on([",",";","!",'"',"'"],f(o.PUNCTUATION)),p.on("\n",f(o.NL)).on(u,g),g.on(u,g);for(var b=0;b<a.length;b++){var m=(0,r.stateify)(a[b],p,o.TLD,o.DOMAIN);l.push.apply(l,m)}var v=(0,r.stateify)("file",p,o.DOMAIN,o.DOMAIN),S=(0,r.stateify)("ftp",p,o.DOMAIN,o.DOMAIN),w=(0,r.stateify)("http",p,o.DOMAIN,o.DOMAIN),O=(0,r.stateify)("mailto",p,o.DOMAIN,o.DOMAIN);l.push.apply(l,v),l.push.apply(l,S),l.push.apply(l,w),l.push.apply(l,O);var E=v.pop(),C=S.pop(),R=w.pop(),k=O.pop(),P=f(o.DOMAIN),_=f(o.PROTOCOL),x=f(o.MAILTO);C.on("s",P).on(":",_),R.on("s",P).on(":",_),l.push(P),E.on(":",_),P.on(":",_),k.on(":",x);var T=(0,r.stateify)("localhost",p,o.LOCALHOST,o.DOMAIN);l.push.apply(l,T),p.on(c,h),h.on("-",y).on(c,h).on(s,d),d.on("-",y).on(s,d);for(var D=0;D<l.length;D++)l[D].on("-",y).on(s,d);y.on("-",y).on(c,d).on(s,d),p.defaultTransition=f(o.SYM);var L=p;e.State=r.CharacterState,e.TOKENS=i,e.run=function(t){for(var e=t.replace(/[A-Z]/g,(function(t){return t.toLowerCase()})),n=t.length,r=[],o=0;o<n;){for(var i=p,a=null,c=0,s=null,u=-1;o<n&&(a=i.next(e[o]));)(i=a).accepts()?(u=0,s=i):u>=0&&u++,c++,o++;if(!(u<0)){o-=u,c-=u;var l=s.emit();r.push(new l(t.substr(o-c,c)))}}return r},e.start=L},function(t,e,n){"use strict";e.__esModule=!0,e.start=e.run=e.TOKENS=e.State=void 0;var r=n(205),o=n(647),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(o),a=n(159);var c=function(t){return new r.TokenState(t)},s=c(),u=c(),l=c(),f=c(),p=c(),h=c(),d=c(),y=c(o.URL),g=c(),b=c(o.URL),m=c(o.URL),v=c(),S=c(),w=c(),O=c(),E=c(),C=c(o.URL),R=c(o.URL),k=c(o.URL),P=c(o.URL),_=c(),x=c(),T=c(),D=c(),L=c(),A=c(),N=c(o.EMAIL),I=c(),j=c(o.EMAIL),V=c(o.MAILTOEMAIL),M=c(),U=c(),F=c(),H=c(),z=c(o.NL);s.on(a.NL,z).on(a.PROTOCOL,u).on(a.MAILTO,l).on(a.SLASH,f),u.on(a.SLASH,f),f.on(a.SLASH,p),s.on(a.TLD,h).on(a.DOMAIN,h).on(a.LOCALHOST,y).on(a.NUM,h),p.on(a.TLD,m).on(a.DOMAIN,m).on(a.NUM,m).on(a.LOCALHOST,m),h.on(a.DOT,d),L.on(a.DOT,A),d.on(a.TLD,y).on(a.DOMAIN,h).on(a.NUM,h).on(a.LOCALHOST,h),A.on(a.TLD,N).on(a.DOMAIN,L).on(a.NUM,L).on(a.LOCALHOST,L),y.on(a.DOT,d),N.on(a.DOT,A),y.on(a.COLON,g).on(a.SLASH,m),g.on(a.NUM,b),b.on(a.SLASH,m),N.on(a.COLON,I),I.on(a.NUM,j);var B=[a.DOMAIN,a.AT,a.LOCALHOST,a.NUM,a.PLUS,a.POUND,a.PROTOCOL,a.SLASH,a.TLD,a.UNDERSCORE,a.SYM,a.AMPERSAND],q=[a.COLON,a.DOT,a.QUERY,a.PUNCTUATION,a.CLOSEBRACE,a.CLOSEBRACKET,a.CLOSEANGLEBRACKET,a.CLOSEPAREN,a.OPENBRACE,a.OPENBRACKET,a.OPENANGLEBRACKET,a.OPENPAREN];m.on(a.OPENBRACE,S).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,E),v.on(a.OPENBRACE,S).on(a.OPENBRACKET,w).on(a.OPENANGLEBRACKET,O).on(a.OPENPAREN,E),S.on(a.CLOSEBRACE,m),w.on(a.CLOSEBRACKET,m),O.on(a.CLOSEANGLEBRACKET,m),E.on(a.CLOSEPAREN,m),C.on(a.CLOSEBRACE,m),R.on(a.CLOSEBRACKET,m),k.on(a.CLOSEANGLEBRACKET,m),P.on(a.CLOSEPAREN,m),_.on(a.CLOSEBRACE,m),x.on(a.CLOSEBRACKET,m),T.on(a.CLOSEANGLEBRACKET,m),D.on(a.CLOSEPAREN,m),S.on(B,C),w.on(B,R),O.on(B,k),E.on(B,P),S.on(q,_),w.on(q,x),O.on(q,T),E.on(q,D),C.on(B,C),R.on(B,R),k.on(B,k),P.on(B,P),C.on(q,C),R.on(q,R),k.on(q,k),P.on(q,P),_.on(B,C),x.on(B,R),T.on(B,k),D.on(B,P),_.on(q,_),x.on(q,x),T.on(q,T),D.on(q,D),m.on(B,m),v.on(B,m),m.on(q,v),v.on(q,v),l.on(a.TLD,V).on(a.DOMAIN,V).on(a.NUM,V).on(a.LOCALHOST,V),V.on(B,V).on(q,M),M.on(B,V).on(q,M);var G=[a.DOMAIN,a.NUM,a.PLUS,a.POUND,a.QUERY,a.UNDERSCORE,a.SYM,a.AMPERSAND,a.TLD];h.on(G,U).on(a.AT,F),y.on(G,U).on(a.AT,F),d.on(G,U),U.on(G,U).on(a.AT,F).on(a.DOT,H),H.on(G,U),F.on(a.TLD,L).on(a.DOMAIN,L).on(a.LOCALHOST,N);e.State=r.TokenState,e.TOKENS=i,e.run=function(t){for(var e=t.length,n=0,r=[],i=[];n<e;){for(var a=s,c=null,u=null,l=0,f=null,p=-1;n<e&&!(c=a.next(t[n]));)i.push(t[n++]);for(;n<e&&(u=c||a.next(t[n]));)c=null,(a=u).accepts()?(p=0,f=a):p>=0&&p++,n++,l++;if(p<0)for(var h=n-l;h<n;h++)i.push(t[h]);else{i.length>0&&(r.push(new o.TEXT(i)),i=[]),n-=p,l-=p;var d=f.emit();r.push(new d(t.slice(n-l,n)))}}return i.length>0&&r.push(new o.TEXT(i)),r},e.start=s},function(t,e,n){"use strict";e.__esModule=!0,e.URL=e.TEXT=e.NL=e.EMAIL=e.MAILTOEMAIL=e.Base=void 0;var r=n(206),o=n(126),i=n(159);function a(t){return t instanceof i.DOMAIN||t instanceof i.TLD}var c=(0,r.createTokenClass)();c.prototype={type:"token",isLink:!1,toString:function(){for(var t=[],e=0;e<this.v.length;e++)t.push(this.v[e].toString());return t.join("")},toHref:function(){return this.toString()},toObject:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http";return{type:this.type,value:this.toString(),href:this.toHref(t)}}};var s=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0}),u=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"email",isLink:!0,toHref:function(){return"mailto:"+this.toString()}}),l=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"text"}),f=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"nl"}),p=(0,o.inherits)(c,(0,r.createTokenClass)(),{type:"url",isLink:!0,toHref:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"http",e=!1,n=!1,r=this.v,o=[],c=0;r[c]instanceof i.PROTOCOL;)e=!0,o.push(r[c].toString().toLowerCase()),c++;for(;r[c]instanceof i.SLASH;)n=!0,o.push(r[c].toString()),c++;for(;a(r[c]);)o.push(r[c].toString().toLowerCase()),c++;for(;c<r.length;c++)o.push(r[c].toString());return o=o.join(""),e||n||(o=t+"://"+o),o},hasProtocol:function(){return this.v[0]instanceof i.PROTOCOL}});e.Base=c,e.MAILTOEMAIL=s,e.EMAIL=u,e.NL=f,e.TEXT=l,e.URL=p},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";n.r(e);n(414),n(415),n(416),n(417),n(418),n(419),n(420),n(421),n(422),n(423),n(424),n(425),n(426),n(427),n(428),n(429),n(430),n(431),n(432),n(433),n(434),n(435),n(436),n(437),n(438),n(439),n(440),n(441),n(442),n(443),n(444),n(445),n(446),n(447),n(448),n(449),n(450),n(451),n(452),n(453),n(454),n(455),n(456),n(457),n(458),n(459),n(460),n(461),n(462),n(463),n(464),n(465),n(466),n(467),n(468),n(469),n(470),n(471),n(472),n(473),n(474),n(475),n(476),n(477),n(478),n(479),n(480),n(481),n(482),n(483),n(484),n(485),n(486),n(487),n(488),n(489),n(490),n(491),n(492),n(493),n(494),n(495),n(496),n(497),n(498),n(499),n(500),n(501),n(502),n(503),n(504),n(505),n(506),n(507),n(508),n(509),n(510),n(511),n(512),n(513),n(514),n(515),n(516),n(517),n(518),n(519),n(520),n(521),n(522),n(523),n(524),n(525),n(526),n(527),n(528),n(529),n(530),n(531),n(532),n(533),n(534),n(535),n(536),n(537),n(538),n(539),n(540),n(541),n(542),n(543),n(544),n(545),n(546),n(547),n(548),n(549),n(550),n(551),n(552),n(553),n(554),n(555),n(556),n(557),n(558),n(559),n(560),n(561),n(562),n(563),n(564),n(565),n(566),n(567),n(568),n(569),n(570),n(571),n(572),n(573),n(574),n(575),n(576),n(577),n(578),n(579),n(580),n(581),n(582),n(583),n(584),n(585),n(586),n(587),n(588),n(589),n(590),n(591),n(592),n(593),n(594),n(595),n(596),n(597),n(598),n(599),n(600),n(601),n(602),n(603),n(604),n(605),n(606),n(607),n(608),n(609),n(610),n(611),n(612),n(613),n(614),n(615),n(616),n(617),n(618),n(619),n(620),n(621),n(622),n(623),n(624),n(625),n(626),n(627),n(628),n(629),n(630),n(631),n(632),n(633),n(634),n(635),n(636),n(637);var r=n(2),o=n(7),i=n(1);var a=n(0);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=h(t);if(e){var o=h(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function h(t){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,r,c=f(p);function p(){return s(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"initialize",value:function(){this.detectVisibilityApi(),this.bindEventListeners()}},{key:"detectVisibilityApi",value:function(){var t=document;void 0!==document.hidden?(this.hiddenPropertyName="hidden",this.visibilityChangeEventName="visibilitychange"):void 0!==t.msHidden?(this.hiddenPropertyName="msHidden",this.visibilityChangeEventName="msvisibilitychange"):void 0!==t.webkitHidden&&(this.hiddenPropertyName="webkitHidden",this.visibilityChangeEventName="webkitvisibilitychange")}},{key:"bindEventListeners",value:function(){void 0!==document.addEventListener&&void 0!==this.hiddenPropertyName&&(this.onVisibilityChange=i.bind(this.onVisibilityChange,this),document.addEventListener(this.visibilityChangeEventName,this.onVisibilityChange,!1))}},{key:"onVisibilityChange",value:function(){o.Radio.channel(this.channelName).trigger("visbility:change",document[this.hiddenPropertyName])}},{key:"addVisibilityChangeListener",value:function(t){this.listenTo(this.channelName,"visbility:change",t)}},{key:"removeVisibilityChangeListener",value:function(t){this.stopListening(o.Radio.channel(this.channelName),"visbility:change",t)}},{key:"onDestroy",value:function(){document.removeEventListener(this.visibilityChangeEventName,this.onVisibilityChange)}},{key:"name",get:function(){return a.x.PageVisibility}},{key:"channelName",get:function(){return a.w.PAGE_VISIBILITY}}])&&u(e.prototype,n),r&&u(e,r),p}(r.a.Service),y=n(33),g=n(5),b=n(48),m=n(15),v=n(128),S=n(129);var w=n(97),O=n(16),E=n(10),C=n(24);const R={debounce:(t,e,n)=>i.debounce(t,e,n),throttle:(t,e,n)=>i.throttle(t,e,n),isFunction:t=>i.isFunction(t),useIdentity:()=>i.identity,memoize:(t,e)=>i.memoize(t,e)};var k=n(74),P=n(138),_=n(139);var x=n(39);class T extends r.a.Service{constructor(t){super(),this.clients={},this.enrichers={};C.a.get("application:options").set(t),this.bindNavigationListener()}get name(){return _.a.Analytics}registerTransport(t,e){return this.transport=new t(e),this.bindTransportListeners(),this}bindTransportListeners(){this.listenTo(P.a.ANALYTICS,k.a.Inlet,this.onEvent)}registerClient(t,e){return this.validateConstructor(t),this.clients[t.prototype.name]=t.prototype.name,this.transport.subscribe(new t(e)),this}registerEnricher(t,e){this.validateConstructor(t);const n=new t(e);return this.enrichers[t.name]=n,this.registerMiddleware(i.bind(n.enrich,n)),this}onEvent(t){this.executeMiddleware(t,t=>{this.transport.publish(t)})}validateConstructor(t){const e=t.prototype.name;e||r.a.ErrorHelper.throw(new O.a(`Classes registered with ${this.name} must have a unique name property.`));const n=e=>R.isFunction(t.prototype.isType)&&t.prototype.isType(e);(n("BaseAnalyticsClient")||"CollectionApiClient"===e)&&this.clients[e]&&r.a.ErrorHelper.throw(new O.a(`A client class with the name: ${e} has already been registered with ${this.name}`)),n("BaseAnalyticsEnricher")&&this.enrichers[e]&&r.a.ErrorHelper.throw(new O.a(`An enricher class named: ${e} has already been registered with ${this.name}`))}registerMiddleware(t){var e;this.executeMiddleware=(e=this.executeMiddleware,(n,r)=>e(n,()=>t(n,r)))}executeMiddleware(t,e){e(t)}bindNavigationListener(){this.listenTo(E.a.SHELL,r.a.EventNames.URL_CHANGE,this.logNavigate)}logNavigate(t,e){x.a.logNavigate(t,e)}}var D=n(36);class L extends D.Object{}class A extends L{get name(){return"EventTransport"}get channelName(){return"event:transport"}publish(t){this.getChannel().trigger(k.a.Outlet,t)}subscribe(t){const e=t,n=n=>{R.isFunction(e.shouldLog)&&!e.shouldLog(n)||t.log(n)};i.isFunction(e.listenTo)?e.listenTo(this.getChannel(),k.a.Outlet,n):this.listenTo(this.getChannel(),k.a.Outlet,n)}}class N extends r.a.Service{enrich(t,e){}isType(t){return t===N.type}}N.type="BaseAnalyticsEnricher";class I extends N{get name(){return"UserDataEnricher"}initialize(){this.user=C.a.get("application:options").get("user")}shouldEnrich(t){return!0}enrich(t,e){this.shouldEnrich(t)||e(t),t.enrich("user",this.getUser(this.user)),e(t)}getUser(t){return{country:t.countryCode,customerId:t.customerId,id:t.id,role:t.role}}}var j="URLSearchParams"in self,V="Symbol"in self&&"iterator"in Symbol,M="FileReader"in self&&"Blob"in self&&function(){try{return new Blob,!0}catch(t){return!1}}(),U="FormData"in self,F="ArrayBuffer"in self;if(F)var H=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],z=ArrayBuffer.isView||function(t){return t&&H.indexOf(Object.prototype.toString.call(t))>-1};function B(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function q(t){return"string"!=typeof t&&(t=String(t)),t}function G(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return V&&(e[Symbol.iterator]=function(){return e}),e}function W(t){this.map={},t instanceof W?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function Y(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function J(t){return new Promise((function(e,n){t.onload=function(){e(t.result)},t.onerror=function(){n(t.error)}}))}function K(t){var e=new FileReader,n=J(e);return e.readAsArrayBuffer(t),n}function Q(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function Z(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:M&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:U&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:j&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():F&&M&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=Q(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F&&(ArrayBuffer.prototype.isPrototypeOf(t)||z(t))?this._bodyArrayBuffer=Q(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):j&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},M&&(this.blob=function(){var t=Y(this);if(t)return t;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?Y(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(K)}),this.text=function(){var t,e,n,r=Y(this);if(r)return r;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,n=J(e),e.readAsText(t),n;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),n=new Array(e.length),r=0;r<e.length;r++)n[r]=String.fromCharCode(e[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},U&&(this.formData=function(){return this.text().then(et)}),this.json=function(){return this.text().then(JSON.parse)},this}W.prototype.append=function(t,e){t=B(t),e=q(e);var n=this.map[t];this.map[t]=n?n+", "+e:e},W.prototype.delete=function(t){delete this.map[B(t)]},W.prototype.get=function(t){return t=B(t),this.has(t)?this.map[t]:null},W.prototype.has=function(t){return this.map.hasOwnProperty(B(t))},W.prototype.set=function(t,e){this.map[B(t)]=q(e)},W.prototype.forEach=function(t,e){for(var n in this.map)this.map.hasOwnProperty(n)&&t.call(e,this.map[n],n,this)},W.prototype.keys=function(){var t=[];return this.forEach((function(e,n){t.push(n)})),G(t)},W.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),G(t)},W.prototype.entries=function(){var t=[];return this.forEach((function(e,n){t.push([n,e])})),G(t)},V&&(W.prototype[Symbol.iterator]=W.prototype.entries);var X=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function tt(t,e){var n,r,o=(e=e||{}).body;if(t instanceof tt){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new W(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,o||null==t._bodyInit||(o=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new W(e.headers)),this.method=(n=e.method||this.method||"GET",r=n.toUpperCase(),X.indexOf(r)>-1?r:n),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(o)}function et(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var n=t.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(o))}})),e}function nt(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"",this.headers=new W(e.headers),this.url=e.url||"",this._initBody(t)}tt.prototype.clone=function(){return new tt(this,{body:this._bodyInit})},Z.call(tt.prototype),Z.call(nt.prototype),nt.prototype.clone=function(){return new nt(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new W(this.headers),url:this.url})},nt.error=function(){var t=new nt(null,{status:0,statusText:""});return t.type="error",t};var rt=[301,302,303,307,308];nt.redirect=function(t,e){if(-1===rt.indexOf(e))throw new RangeError("Invalid status code");return new nt(null,{status:e,headers:{location:t}})};var ot=self.DOMException;try{new ot}catch(t){(ot=function(t,e){this.message=t,this.name=e;var n=Error(t);this.stack=n.stack}).prototype=Object.create(Error.prototype),ot.prototype.constructor=ot}function it(t,e){return new Promise((function(n,r){var o=new tt(t,e);if(o.signal&&o.signal.aborted)return r(new ot("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var t,e,r={status:i.status,statusText:i.statusText,headers:(t=i.getAllResponseHeaders()||"",e=new W,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var n=t.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();e.append(r,o)}})),e)};r.url="responseURL"in i?i.responseURL:r.headers.get("X-Request-URL");var o="response"in i?i.response:i.responseText;setTimeout((function(){n(new nt(o,r))}),0)},i.onerror=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.ontimeout=function(){setTimeout((function(){r(new TypeError("Network request failed"))}),0)},i.onabort=function(){setTimeout((function(){r(new ot("Aborted","AbortError"))}),0)},i.open(o.method,function(t){try{return""===t&&self.location.href?self.location.href:t}catch(e){return t}}(o.url),!0),"include"===o.credentials?i.withCredentials=!0:"omit"===o.credentials&&(i.withCredentials=!1),"responseType"in i&&(M?i.responseType="blob":F&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(i.responseType="arraybuffer")),o.headers.forEach((function(t,e){i.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){4===i.readyState&&o.signal.removeEventListener("abort",a)}),i.send(void 0===o._bodyInit?null:o._bodyInit)}))}it.polyfill=!0,self.fetch||(self.fetch=it,self.Headers=W,self.Request=tt,self.Response=nt);var at=n(362),ct=n.n(at),st=n(363);const ut={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 lt(t,e,n){const r=e.exec(n)||[];let[o,i,a]=r;return a||(a="Unknown"),{name:t,version:a}}function ft(t,e,n){if(!e)return{name:t,version:"Unknown"};const r=e.exec(n);return{name:t,version:r&&r.length?r[0].trim():"Unknown"}}const pt={getDeviceType(){const t=window.navigator.userAgent;return ut.mobileDevice.test(t)?ut.iphone.test(t)?"iPhone":ut.ipad.test(t)?"iPad":ut.android.test(t)?"Android":ut.blackberry.test(t)?"Blackberry":ut.windowsPhone.test(t)?"Windows Phone":"Unknown":"Desktop"},getOperatingSystem(){const t=window.navigator.userAgent;return ut.linux.test(t)?ft("Linux",null,t):ut.unix.test(t)?ft("Unix",null,t):ut.mac.test(t)?ft("Macintosh",ut.osxVersion,t):ut.windows.test(t)?function(t,e){const n={name:t,version:null};return ut.win2000.test(e)&&(n.version="2000"),ut.winXP.test(e)&&(n.version="XP"),ut.winVista.test(e)&&(n.version="Vista"),ut.win7.test(e)&&(n.version="7"),ut.win8.test(e)&&(n.version="8"),ut.win81.test(e)&&(n.version="8.1"),ut.win10.test(e)&&(n.version="10"),n.version||(n.version="Unknown"),n}("Windows",t):ut.iphone.test(t)||ut.ipad.test(t)?ft("iOS",ut.iosVersion,t):ut.android.test(t)?ft("Android",ut.androidVersion,t):ut.blackberry.test(t)?ft("Android",ut.blackberryVersion,t):ut.windowsPhone.test(t)?ft("Android",ut.windowsPhoneVersion,t):{name:"Unknown",version:"Unknown"}},getBrowser(){const t=window.navigator.userAgent;return ut.chrome.test(t)?lt("Chrome",ut.generalVersion,t):ut.firefox.test(t)?lt("Firefox",ut.generalVersion,t):ut.safari.test(t)?lt("Safari",ut.generalVersion,t):ut.ie.test(t)?lt("Internet Explorer",ut.ieVersion,t):ut.edge.test(t)?lt("Edge",ut.edgeVersion,t):ut.opera.test(t)?lt("Opera",ut.operaVersion,t):{name:"Unknown",version:"Unknown"}},isTouchScreen:()=>!(!("ontouchstart"in window)&&!navigator.maxTouchPoints)},ht={isObject(t){var e=typeof t;return"function"===e||"object"===e&&!!t},isFunction:t=>"function"==typeof t};var dt;!function(t){t.CvApSoutheast1="cv-ap-southeast-1",t.CvApSoutheast2="cv-ap-southeast-2",t.CvEuWest1="cv-eu-west-1"}(dt||(dt={}));const yt={CvApSoutheast1:{displayName:"ClickView Asia Pacific (AU)",systemName:dt.CvApSoutheast1},CvApSoutheast2:{displayName:"ClickView Asia Pacific (NZ)",systemName:dt.CvApSoutheast2},CvEuWest1:{displayName:"ClickView EU West (UK)",systemName:dt.CvEuWest1}};var gt;!function(t){t.AU="au",t.NZ="nz",t.UK="uk"}(gt||(gt={}));const bt={[gt.AU]:dt.CvApSoutheast1,[gt.NZ]:dt.CvApSoutheast2,[gt.UK]:dt.CvEuWest1};var mt=function(t,e,n,r){return new(n||(n=Promise))((function(o,i){function a(t){try{s(r.next(t))}catch(t){i(t)}}function c(t){try{s(r.throw(t))}catch(t){i(t)}}function s(t){var e;t.done?o(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,c)}s((r=r.apply(t,e||[])).next())}))};class vt{constructor(t){this.options=t,this.initialize()}initialize(){this.validateOptions()}get name(){return"CollectionApiClient"}log(t){return mt(this,void 0,void 0,(function*(){this.shouldLog(t)&&(this.validateEvent(t),yield this.postData(yield this.formatData(t)))}))}validateOptions(){if(!ht.isFunction(this.options.getUser))throw new Error("getUser option is required.")}shouldLog(t){return!ht.isFunction(this.options.shouldLog)||this.options.shouldLog(t)}postData(t){return mt(this,void 0,void 0,(function*(){const e=yield this.getRegionalUrl(this.options.collectionApiUrls),n=JSON.stringify(t),r=Object.assign({"Content-Type":"application/json"},this.getSignatureHeader(n));yield fetch(e+"/v1/ingest",{method:"POST",mode:"cors",headers:r,body:n})}))}getSignatureHeader(t){const e=new ct.a("SHA-1","TEXT",{hmacKey:{value:"zXJL9nOHxzDlMUDjiP41",format:"TEXT",encoding:"UTF8"}});return e.update(t),{"cv-analytics-signature":`${this.options.collectionApiClientId}.${e.getHash("B64")}`}}getRegionalUrl(t){return mt(this,void 0,void 0,(function*(){switch((yield this.getRegion()).systemName){case dt.CvEuWest1:return t.cvEuWest1;case dt.CvApSoutheast2:return t.cvApSoutheast2;case dt.CvApSoutheast1:default:return t.cvApSoutheast1}}))}validateEvent(t){if("string"!=typeof t.type)throw new Error("Event type is required.");if(!ht.isObject(t.actionContext))throw new Error("Event actionContext is required.");if(!t.actionContext.entity)throw new Error("Event actionContext entity is required.")}formatData(t){return mt(this,void 0,void 0,(function*(){return{type:t.type,data:yield this.getEventData(t),metadata:this.getEventMetadata(t)}}))}getEventData(t){return mt(this,void 0,void 0,(function*(){const e=t.actionContext,n=yield this.getUserData();return Object.assign(Object.assign({},this.extractData(t)),{user:n,action:e,platform:this.getPlatformMetadata(),product:{name:this.options.productName,version:this.options.productVersion}})}))}extractData(t){return ht.isFunction(this.options.formatData)?this.options.formatData(t):{[t.actionContext.entity]:t.data}}getUserData(){var t;return mt(this,void 0,void 0,(function*(){const e=yield this.options.getUser();if(null===(t=e)||void 0===t?void 0:t.id)return{id:e.id,role:e.role,customer:{id:e.customerId,country:e.countryCode,region:yield this.getRegion()}}}))}getRegion(){var t,e;return mt(this,void 0,void 0,(function*(){const n=yield this.options.getUser(),r=null===(e=null===(t=n)||void 0===t?void 0:t.countryCode)||void 0===e?void 0:e.toLowerCase(),o=r?bt[r]:this.options.regionName;return this.getRegionByName(o)}))}getPlatformMetadata(){return{browser:pt.getBrowser(),os:pt.getOperatingSystem(),request:{url:window.location.href,referrer:document.referrer},screenResolution:`${window.screen.width}x${window.screen.height}`}}getEventMetadata(t){return{client:{name:this.name+".ts",version:st.a,region:this.getRegionByName(this.options.regionName)},timestamp:(new Date).toISOString(),eventVersion:t.eventVersion}}getRegionByName(t){let e;return Object.values(yt).forEach(n=>{n.systemName===t&&(e=n)}),e}}var St=n(364),wt=n(45),Ot=n(140);class Et extends Ot.a{get name(){return"DebuggerClient"}shouldLog(){return wt.a.isDevelopment}log(t){const e=i.clone(t);for(let n in t){let t=e[n];(t instanceof r.a.Model||t instanceof r.a.Collection)&&(e[n]=t.toJSON())}console.log("Event Debugger: ",e)}}var Ct=n(23),Rt=n(115);class kt extends N{constructor(t){super(t),this.productName=t.productName,this.productVersion=t.productVersion}get name(){return"CoreContextEnricher"}shouldEnrich(t){return!0}enrich(t,e){this.shouldEnrich(t)||e(t),t.enrich("coreContext",this.getCoreContext()),e(t)}getCoreContext(){return{timestamp:this.getTimestamp(),product:this.getProductInfo(),request:this.getRequestInfo(),client:this.getClientInfo()}}getTimestamp(){return Ct.utc().toISOString()}getProductInfo(){return{name:this.productName,version:this.productVersion}}getRequestInfo(){return{referrer:r.a.LocationUtils.GetCurrentReferrer(),requestUrl:r.a.LocationUtils.GetCurrentUrl()}}getClientInfo(){const t=Rt.a.getOperatingSystem(),e=Rt.a.getBrowser();return{os:t.os,osVersion:t.version,browser:e.browser,browserVersion:e.version,screenResolution:`${window.screen.width}x${window.screen.height}`}}}var Pt=n(4);const _t={allow:()=>!0,restrict:()=>!1};function xt(t){const e={};return Object.keys(t).forEach(n=>{e[n]=((t,e)=>{switch(e){case"description":return Pt.f.ValueUpdated;case"channel":case"rating":case"series":case"distributor":case"producer":return t&&t.id||Pt.f.EntityRemoved;default:return t}})(t[n],n)}),e}const Tt={passthrough:t=>t,getEditData(t,e){const{entity:n,location:r,descriptor:o}=function(t){return ht.isObject(t)&&ht.isObject(t.actionContext)?{entity:t.actionContext.entity,location:t.actionContext.location,descriptor:t.actionContext.descriptor}:{}}(e);return n===Pt.e.Video&&r===Pt.k.EditVideoDetails?xt(t):t}};function Dt(t){if(t&&t.code)return t.code}function Lt(t,e={}){if(!t||!t.id)return;const n={id:t.id};return t.name&&!e.ignoreTitle&&(n.title=t.name),n}function At(t){if(!t||!t.length)return;const e=t[0];return{id:e.id,title:e.name}}const Nt={getVideoData(t){let{playbackStatus:e}=t;const n=t.model,r=function(t){if(!t||!t.id)throw new Error("Video model required. Checking logging.");return{id:t.id,title:t.name,trackingCode:t.trackingCode,duration:t.duration}}(n),o=Lt(n.series),i=At(n.categories),a=Lt(n.owner,{ignoreTitle:!0}),c=Lt(n.playlist),s=Dt(n.rating),u={video:r};return s&&(u.rating=s),o&&(u.series=o),i&&(u.folder=i),a&&(u.owner=a),c&&(u.playlist=c),e&&(u.playbackStatus=e),u},getLegacyVideoData(t){const e=t.model,n={id:e.id,year:e.productionYear,title:e.name,tokenId:e.trackingCode},r=Dt(e.rating),o=Lt(e.series),i=At(e.categories),a=Lt(e.owner,{ignoreTitle:!0}),c=Lt(e.playlist);return r&&(n.rating=r),a&&(n.ownerId=a.id),o&&(n.seriedId=o.id,n.series=o.title),i&&(n.category=i.title),c&&(n.playlist=c),{video:n}}},It={getUploadData(t,e){const{entity:n}=e.actionContext;if(n===Pt.e.Video)return It.formatVideoUpload(t,e);if(n===Pt.e.Resource||n===Pt.e.Subtitle)return It.formatResourceUpload(t);if(n===Pt.e.Banner||n===Pt.e.Thumbnail)return t;throw new Error("Upload data event not correctly formatted.")},formatVideoUpload(t,e){const{workflowPhase:n}=e.actionContext;return n===Pt.r.Start?It.getStartVideoUploadData(t):n===Pt.r.Discard?It.getDiscardVideoUploadData(t):n===Pt.r.Complete?It.getCompleteUploadData(t):void 0},getStartVideoUploadData:t=>t&&t.length?t.map(e=>({fileName:e.name,size:e.size,type:e.type,count:t.length})):[],getDiscardVideoUploadData(t){const e=e=>{const{type:n,name:r,status:o,cvUpload:i}=e.file,a={fileName:r,count:Array.isArray(t)?t.length:1,type:n,status:o};return e.progress&&(a.progress=e.progress.toFixed(2)),i&&(a.uploadId=i.uploadId),a};return Array.isArray(t)?t.map(t=>e(t)):[e(t)]},getCompleteUploadData:t=>t&&t.length?t.map(e=>{const{fileName:n,libraryId:r,folderId:o}=e;return{fileName:n,libraryId:r,folderId:o,count:t.length}}):[],formatResourceUpload(t){const{id:e,name:n}=t,r={id:e,name:n};return ht.isObject(t.metadata)&&(r.type=t.metadata.type),r}},jt={[Pt.q.Navigate]:_t.restrict,[Pt.q.Click]:_t.allow,[Pt.q.Search]:_t.allow,[Pt.q.InstantSearch]:_t.allow,[Pt.q.Play]:_t.allow,[Pt.q.Stream]:_t.allow,[Pt.q.Rename]:_t.allow,[Pt.q.Move]:_t.allow,[Pt.q.Create]:_t.allow,[Pt.q.Delete]:_t.allow,[Pt.q.Associate]:_t.allow,[Pt.q.Dissociate]:_t.allow,[Pt.q.Filter]:_t.allow,[Pt.q.Sort]:_t.allow,[Pt.q.Approve]:_t.allow,[Pt.q.Reject]:_t.allow,[Pt.q.Disable]:_t.allow,[Pt.q.Upload]:_t.allow,[Pt.q.Download]:_t.restrict,[Pt.q.SetAccess]:_t.allow,[Pt.q.AddToLocalCache]:_t.restrict,[Pt.q.Share]:_t.allow,[Pt.q.Edit]:_t.allow,[Pt.q.Suggest]:_t.allow,[Pt.q.ResolveWarning]:_t.allow,[Pt.q.DismissWarning]:_t.allow,[Pt.q.EditAssoc]:_t.allow},Vt={[Pt.q.Search]:Tt.passthrough,[Pt.q.InstantSearch]:Tt.passthrough,[Pt.q.Play]:Tt.passthrough,[Pt.q.Stream]:Nt.getLegacyVideoData,[Pt.q.Click]:Tt.passthrough,[Pt.q.Filter]:Tt.passthrough,[Pt.q.Sort]:Tt.passthrough,[Pt.q.SetAccess]:Tt.passthrough,[Pt.q.Approve]:Tt.passthrough,[Pt.q.Reject]:Tt.passthrough,[Pt.q.Create]:Tt.passthrough,[Pt.q.Delete]:Tt.passthrough,[Pt.q.Rename]:Tt.passthrough,[Pt.q.Move]:Tt.passthrough,[Pt.q.Edit]:Tt.passthrough,[Pt.q.Share]:Tt.passthrough,[Pt.q.Disable]:Tt.passthrough,[Pt.q.Suggest]:Tt.passthrough,[Pt.q.Upload]:It.getUploadData,[Pt.q.ResolveWarning]:Tt.passthrough,[Pt.q.DismissWarning]:Tt.passthrough},Mt={[Pt.q.Search]:"search",[Pt.q.InstantSearch]:"search"},Ut={shouldLog:t=>!!jt[t.type](t),formatData(t){const e=Vt[t.type],n=ht.isFunction(e)?e(t.data,t):t.data;let r=t.actionContext.entity;return Mt[t.type]&&(r=Mt[t.type]),{[r]:n}}};var Ft=n(52);function Ht(t){return(Ht="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bt(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qt(t,e,n){return e&&Bt(t.prototype,e),n&&Bt(t,n),t}function Gt(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Wt(t,e)}function Wt(t,e){return(Wt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Yt(t){var e=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(t){return!1}}();return function(){var n,r=$t(t);if(e){var o=$t(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Jt(this,n)}}function Jt(t,e){return!e||"object"!==Ht(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function $t(t){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Kt=function(t){Gt(n,t);var e=Yt(n);function n(){return zt(this,n),e.apply(this,arguments)}return qt(n,[{key:"channelName",get:function(){return a.b.DEFAULT}},{key:"appRoutes",get:function(){return{"":"index","*path":"catchAllRoutes",logout:"logOut"}}},{key:"appLinks",get:function(){return["devError","error","notFound"]}}]),n}(r.a.AppRouter),Qt=function(t){Gt(o,t);var e=Yt(o);function o(){return zt(this,o),e.apply(this,arguments)}return qt(o,[{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME},{replace:!0})}},{key:"catchAllRoutes",value:function(){r.a.ErrorHelper.throw(new Ft.e)}},{key:"notFound",value:function(){var t=this;n.e(51).then(n.bind(null,1032)).then((function(e){var n=e.NotFoundView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"error",value:function(){var t=this;n.e(50).then(n.bind(null,1033)).then((function(e){var n=e.ErrorView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"devError",value:function(){var t=this;n.e(70).then(n.bind(null,1034)).then((function(e){var n=e.DevErrorView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"logOut",value:function(){r.a.LocationUtils.PageLoad("/logout")}},{key:"name",get:function(){return"Default Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.DEFAULT,showFullHeader:!1,showTopNav:!1,allowBanner:!1}}}},{key:"channelName",get:function(){return a.b.DEFAULT}}],[{key:"router",get:function(){return Kt}}]),o}(r.a.Application),Zt=n(60),Xt=n(11),te=n(121),ee=n(47);var ne=n(130);function re(t){return function(e,n){var o=g.a.getInstance(a.g.User),c=g.a.getInstance(a.g.Config);o.getCurrentUser((function(o){g.a.releaseInstance(a.g.User),i.contains(t,o.get("role"))?n(e):c.getConfig((function(e){g.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new ne.a(t,e.get("onlineUrl")))}))}))}}function oe(t,e){var n=g.a.getInstance(a.g.User),o=g.a.getInstance(a.g.Config);n.getCurrentUser((function(n){g.a.releaseInstance(a.g.User),n.get("emailVerified")?e(t):o.getConfig((function(t){g.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new Ft.b(t.get("onlineUrl")))}))}))}var ie=n(6);function ae(t,e){if(wt.a.isDevelopment)e(t);else{var n=g.a.getInstance(a.g.Settings);g.a.getInstance(a.g.User).getCurrentUser((function(o){g.a.releaseInstance(a.g.User),n.getSetting(o.get("customerId"),ie.m.CustomLibrariesBetaAccess,(function(n){(g.a.releaseInstance(a.g.Settings),n.get("value"))?e(t):g.a.getInstance(a.g.Config).getConfig((function(t){g.a.releaseInstance(a.g.Config),r.a.AppLinkUtility.routingEnded(),r.a.ErrorHelper.throw(new Ft.d(t.get("marketingSiteUrl")))}))}))}))}}var ce=n(34),se=n(42),ue=n(175);function le(t,e){g.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(n){if(g.a.releaseInstance(a.g.MigrationVideo),se.a.noPublisher(n))return r.a.ErrorHelper.throw(new Ft.e),void r.a.AppLinkUtility.routingEnded();var o=se.a.isInitialMigration(n),c=[a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.BACKUP_DOWNLOAD,a.a.MigrationWizard.START_MIGRATION];if(!o&&i.contains(c,t.action))return r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new ue.a);var s=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.BACKUP_WELCOME,a.a.MigrationWizard.BACKUP_DOWNLOAD];if(se.a.backupNotStarted(n)&&!i.contains(s,t.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME}),void r.a.AppLinkUtility.routingEnded();var u=[a.a.MigrationWizard.BACKUP_PROGRESS,a.a.MigrationWizard.BACKUP_COMPLETE];if(o&&se.a.backupProcessing(n)&&!i.contains(u,t.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_PROGRESS}),void r.a.AppLinkUtility.routingEnded();var l=[a.a.MigrationWizard.BACKUP_COMPLETE,a.a.MigrationWizard.START_MIGRATION,a.a.MigrationWizard.SMART,a.a.MigrationWizard.SEARCH,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.VIDEOS_ADDED,a.a.MigrationWizard.PROGRESS,a.a.MigrationWizard.HOME];if(o&&se.a.backupComplete(n)&&!i.contains(l,t.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.START_MIGRATION}),void r.a.AppLinkUtility.routingEnded();e(t)}))}function fe(t,e){wt.a.isDevelopment?e(t):g.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(n){if(g.a.releaseInstance(a.g.MigrationVideo),se.a.isCurrentlyMigratingAll(n)&&t.application!==a.b.MIGRATION_WIZARD&&t.action!==a.a.MigrationWizard.PROGRESS)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PROGRESS,args:[n.finalisationTask.get("id")],params:{initialMigration:!0}},{replace:!0}),void r.a.AppLinkUtility.routingEnded();if(se.a.isInitialMigration(n)&&t.application!==a.b.MIGRATION_WIZARD)return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.BACKUP_WELCOME},{replace:!0}),void r.a.AppLinkUtility.routingEnded();var o=[a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS,a.a.MigrationWizard.PUBLISH_LIBRARY_COMPLETE];if(se.a.isPublishingLibraries(n)&&!i.contains(o,t.action))return r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS},{replace:!0}),void r.a.AppLinkUtility.routingEnded();e(t)}))}var pe=function(){var t=docCookies.getItem("clear-video-cache");t&&(g.a.getInstance(a.g.Video).clearVideoCache(),g.a.releaseInstance(a.g.Video),docCookies.removeItem("clear-video-cache","/",t))};function he(t){return(he="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function de(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ye(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ge(t,e,n){return e&&ye(t.prototype,e),n&&ye(t,n),t}function be(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&me(t,e)}function me(t,e){return(me=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ve(t){var e=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(t){return!1}}();return function(){var n,r=we(t);if(e){var o=we(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Se(this,n)}}function Se(t,e){return!e||"object"!==he(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function we(t){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Oe=function(t){be(n,t);var e=ve(n);function n(){return de(this,n),e.apply(this,arguments)}return ge(n,[{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}},{key:"appRoutes",get:function(){return{"manage/libraries(/)":"index","manage/libraries/:id(/)":"library","manage/libraries/folders/:id(/)":"folder","manage/libraries/series/:id(/)":"series","manage/libraries/videos/:id(/)":"videoDetails","manage/libraries/videos/:id/edit(/)":"editVideo","manage/libraries/videos/:id/edit/chapters(/)":"editVideoChapters","manage/libraries/videos/:id/edit/resources(/)":"editVideoResources"}}},{key:"appLinks",get:function(){return["newFolder","newSubFolder","renameFolder","moveFolder","deleteFolder","shareVideo","deleteVideos","moveVideos","manageVideoAccess","newLibrary","renameLibrary","deleteLibrary","editResource","uploadThumbnail","uploadBanner","downloadVideo","generatePdf","makeLibraryAvailable","downloadToLocalCache","suggestAnEdit","showPublisherVideo","editFolderImages","editLink","addToExchange"]}},{key:"filters",get:function(){return[ae,re([ee.a.Admin]),oe,fe]}}]),n}(r.a.AppRouter),Ee=function(t){be(o,t);var e=ve(o);function o(){return de(this,o),e.apply(this,arguments)}return ge(o,[{key:"initialize",value:function(){this.libraryDataService=g.a.getInstance(m.a.Library,this),g.a.getInstance(m.b.VideoDragDrop,this),g.a.getInstance(m.b.FolderDragDrop,this),this.pageVisibilityService=g.a.getInstance(m.b.PageVisibility,this),this.pageVisibilityService.addVisibilityChangeListener((function(t){t||pe()})),pe()}},{key:"index",value:function(){var t=this;this.libraryDataService.deselectAll(),this.libraryDataService.getLibraries((function(e){var o=e.first();o?(t.renderLeftNav(o.id),r.a.AppLinkHelper.trigger({application:t.channelName,action:a.a.LibraryEditor.LIBRARY,args:[o.id]},{replace:!0})):(t.renderLeftNav(),n.e(72).then(n.bind(null,1035)).then((function(e){var n=new(0,e.NoLibraryView);t.layout.showChildView(a.n.CONTENT,n)})))}))}},{key:"library",value:function(t){var e=this;this.libraryDataService.deselectAll(),this.renderLeftNav(t),n.e(24).then(n.bind(null,1091)).then((function(n){var r=new(0,n.LibraryView)({libraryId:t});e.layout.showChildView(a.n.CONTENT,r)}))}},{key:"folder",value:function(t,e){var r=this,o=e.sort||Xt.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o}),this.libraryDataService.setSelected(t),Promise.all([n.e(1),n.e(2),n.e(4),n.e(5),n.e(14)]).then(n.bind(null,1081)).then((function(n){var i=new(0,n.FolderView)({collectionIdentifier:new te.a(t,Xt.p.GetSortTypeFromName(o),e.cursor),analyticsOptions:{entity:Pt.e.Folder}});r.layout.showChildView(a.n.CONTENT,i)})),this.libraryDataService.getLibraries((function(e){var n=ce.a.getLibrary(t,e);r.renderLeftNav(n.id)}))}},{key:"renameFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(39)]).then(n.bind(null,1036)).then((function(n){var r=new(0,n.RenameFolderView)({folderId:t,analyticsOptions:{location:Pt.k.Popup,actionType:Pt.q.Rename,entity:Pt.e.Folder,workflowPhase:Pt.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"moveFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(38)]).then(n.bind(null,1037)).then((function(n){var r=new(0,n.MoveFolderView)({folderId:t,analyticsOptions:{location:Pt.k.Popup,actionType:Pt.q.Move,entity:Pt.e.Folder,workflowPhase:Pt.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"newFolder",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1038)).then((function(e){var n=new(0,e.NewFolderView)({libraryId:t,routeToFolderOnCreate:!0,analyticsOptions:{location:Pt.k.Popup,actionType:Pt.q.Create,entity:Pt.e.Folder,workflowPhase:Pt.r.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"newSubFolder",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1038)).then((function(e){var n=new(0,e.NewFolderView)({parentId:t,routeToFolderOnCreate:!0,analyticsOptions:{location:Pt.k.Popup,actionType:Pt.q.Create,entity:Pt.e.Folder,workflowPhase:Pt.r.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"deleteFolder",value:function(t){var e=this;n.e(65).then(n.bind(null,1039)).then((function(n){var r=new(0,n.DeleteFolderView)({folderId:t,analyticsOptions:{location:Pt.k.Popup,actionType:Pt.q.Delete,entity:Pt.e.Folder,workflowPhase:Pt.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"series",value:function(t,e){var r=this,o=e.sort||Xt.p.GetSortViewModel().get("sortName");this.setDefaultQueryParams({sort:o});var i=new te.a(t,Xt.p.GetSortTypeFromName(o),e.cursor);Promise.all([n.e(1),n.e(2),n.e(4),n.e(5),n.e(14)]).then(n.bind(null,1081)).then((function(t){var e=new(0,t.SeriesView)({collectionIdentifier:i,analyticsOptions:{entity:Pt.e.Series}});r.layout.showChildView(a.n.CONTENT,e)})),this.renderLeftNav()}},{key:"moveVideos",value:function(t,e){var r=this,o=t.split(",");Promise.all([n.e(0),n.e(32)]).then(n.bind(null,1040)).then((function(t){var n=new(0,t.MoveVideoView)({videoIds:o,folderId:e,analyticsOptions:{descriptor:o.length>1?Pt.l.Bulk:Pt.l.Single,location:Pt.k.Popup,actionType:Pt.q.Move,entity:Pt.e.Video,workflowPhase:Pt.r.Complete}});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"deleteVideos",value:function(t,e,r){var o=this;n.e(66).then(n.bind(null,1041)).then((function(n){var i=new(0,n.DeleteVideosView)({folderId:t,videoIds:e.split(","),routeToFolderOnDelete:r&&r.routeToFolderOnDelete,analyticsOptions:{descriptor:e.length>1?Pt.l.Bulk:Pt.l.Single,location:Pt.k.Popup,actionType:Pt.q.Delete,entity:Pt.e.Video,workflowPhase:Pt.r.Complete}});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"videoDetails",value:function(t,e){var r=this;Promise.all([n.e(1),n.e(2),n.e(4),n.e(16),n.e(23)]).then(n.bind(null,1086)).then((function(e){var n=new(0,e.VideoDetailsView)({videoId:t});r.layout.showChildView(a.n.CONTENT,n)})),this.renderLeftNav()}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1092)).then((function(n){var r=new(0,n.ShareView)({videoId:t.toString()});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1084)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"editVideo",value:function(t){var e=this;Zt.a.fromPageLoad()&&this.logEditPageLoad({id:+t},Pt.k.EditVideoDetails),Promise.all([n.e(9),n.e(12),n.e(25)]).then(n.bind(null,1080)).then((function(n){var r=new(0,n.EditVideoView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoChapters",value:function(t){var e=this;Zt.a.fromPageLoad()&&this.logEditPageLoad({id:+t},Pt.k.EditVideoChapters),Promise.all([n.e(1),n.e(16),n.e(31)]).then(n.bind(null,1042)).then((function(n){var r=new(0,n.EditChaptersView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editVideoResources",value:function(t){var e=this;Zt.a.fromPageLoad()&&this.logEditPageLoad({id:+t},Pt.k.EditVideoResources),n.e(21).then(n.bind(null,1078)).then((function(n){var r=new(0,n.EditResourcesView)({videoId:t});e.layout.showChildView(a.n.CONTENT,r)})),this.renderLeftNav()}},{key:"editResource",value:function(t,e){var r=this;n.e(34).then(n.bind(null,1043)).then((function(n){var o=new(0,n.EditResourceView)({videoId:t,resourceId:e,analyticsOptions:{location:Pt.k.Popup,actionType:Pt.q.Edit,entity:Pt.e.Resource,workflowPhase:Pt.r.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"newLibrary",value:function(){var t=this;n.e(35).then(n.bind(null,1044)).then((function(e){var n=new(0,e.NewLibraryView)({});t.layout.showChildView(a.n.POPUP,n)}))}},{key:"renameLibrary",value:function(t){var e=this;n.e(64).then(n.bind(null,1045)).then((function(n){var r=new(0,n.RenameLibraryView)({libraryId:t,analyticsOptions:{location:Pt.k.Popup,actionType:Pt.q.Rename,entity:Pt.e.Library,workflowPhase:Pt.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"deleteLibrary",value:function(t){var e=this;n.e(71).then(n.bind(null,1046)).then((function(n){var r=new(0,n.DeleteLibraryView)({libraryId:t,analyticsOptions:{location:Pt.k.Popup,actionType:Pt.q.Delete,entity:Pt.e.Library,workflowPhase:Pt.r.Complete}});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"generatePdf",value:function(t,e){var r=this,o=e.sort||Xt.p.GetSortViewModel().get("sortName");n.e(48).then(n.bind(null,1047)).then((function(e){var n=new(0,e.GeneratePdfView)({collectionIdentifier:new te.a(t,Xt.p.GetSortTypeFromName(o))});r.layout.showChildView(a.n.POPUP,n)}))}},{key:"uploadThumbnail",value:function(t){var e=this;Promise.all([n.e(11),n.e(53)]).then(n.bind(null,1048)).then((function(n){var r=new(0,n.ThumbnailUploadView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"uploadBanner",value:function(t){var e=this;Promise.all([n.e(11),n.e(52)]).then(n.bind(null,1049)).then((function(n){var r=new(0,n.BannerUploadView)({folderId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"downloadVideo",value:function(t){var e=this;n.e(15).then(n.bind(null,1050)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:t});e.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(3).then(n.bind(null,1051)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"downloadToLocalCache",value:function(t){var e=this;n.e(69).then(n.bind(null,1052)).then((function(n){var r=new(0,n.DownloadToLocalCacheView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"showPublisherVideo",value:function(t){var e=this;n.e(18).then(n.bind(null,1053)).then((function(n){var r=n.ShowPublisherVideoPopupView;e.layout.showChildView(a.n.POPUP,new r({masterId:t}))}))}},{key:"editFolderImages",value:function(t){var e=this;Promise.all([n.e(11),n.e(36)]).then(n.bind(null,1089)).then((function(n){var r=new(0,n.EditFolderImagesView)({folderId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderLeftNav",value:function(t){var e=this;Promise.all([n.e(0),n.e(29)]).then(n.bind(null,1088)).then((function(n){var r=new(0,n.LeftNavigationView)({libraryId:t});e.layout.showChildView(a.n.LEFT_NAV,r)}))}},{key:"suggestAnEdit",value:function(t,e){var r=this;Promise.all([n.e(9),n.e(37)]).then(n.bind(null,1082)).then((function(n){var o=new(0,n.SuggestAnEditView)({videoId:t,metadata:e.metadata});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"editLink",value:function(t,e){var r=this;n.e(33).then(n.bind(null,1054)).then((function(n){var o=new(0,n.EditLinkView)({videoId:t,linkId:e,analyticsOptions:{location:Pt.k.Popup,actionType:Pt.q.Edit,entity:Pt.e.Link,workflowPhase:Pt.r.Complete}});r.layout.showChildView(a.n.POPUP,o)}))}},{key:"addToExchange",value:function(t){var e=this;Promise.all([n.e(0),n.e(17)]).then(n.bind(null,1055)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"logEditPageLoad",value:function(t,e){x.a.logUserAction(t,{actionType:Pt.q.Edit,location:e,entity:Pt.e.Video,descriptor:Pt.m.PageLoad,workflowPhase:Pt.r.Start})}},{key:"name",get:function(){return"Library Editor Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.LIBRARY_EDITOR,showLeftNav:!0,selectedNavItem:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.HOME}}}}},{key:"channelName",get:function(){return a.b.LIBRARY_EDITOR}}],[{key:"router",get:function(){return Oe}}]),o}(r.a.Application),Ce=n(73);function Re(t){return(Re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ke(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pe(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _e(t,e,n){return e&&Pe(t.prototype,e),n&&Pe(t,n),t}function xe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Te(t,e)}function Te(t,e){return(Te=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function De(t){var e=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(t){return!1}}();return function(){var n,r=Ae(t);if(e){var o=Ae(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Le(this,n)}}function Le(t,e){return!e||"object"!==Re(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ae(t){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ne=function(t){xe(n,t);var e=De(n);function n(){return ke(this,n),e.apply(this,arguments)}return _e(n,[{key:"channelName",get:function(){return a.b.SEARCH}},{key:"appRoutes",get:function(){return{"manage/search(/)":"index"}}},{key:"appLinks",get:function(){return["shareVideo","manageVideoAccess","downloadVideo","makeLibraryAvailable","addToExchange"]}},{key:"filters",get:function(){return[ae,re([ee.a.Admin]),oe,fe]}}]),n}(r.a.AppRouter),Ie=function(t){xe(r,t);var e=De(r);function r(){return ke(this,r),e.apply(this,arguments)}return _e(r,[{key:"index",value:function(t){var e=this;if(Zt.a.fromPageLoad()){var r=t&&t.query;this.logSearch(r)}Promise.all([n.e(1),n.e(2),n.e(4),n.e(5),n.e(22)]).then(n.bind(null,1087)).then((function(n){var r=new(0,n.SearchView)({queryParams:t});e.layout.showChildView(a.n.CONTENT,r)}))}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1092)).then((function(n){var r=new(0,n.ShareView)({videoId:t.toString()});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1084)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"downloadVideo",value:function(t){var e=this;n.e(15).then(n.bind(null,1050)).then((function(n){var r=new(0,n.DownloadVideoView)({videoId:t});e.layout.showChildView(a.n.HIDDEN,r)}))}},{key:"logSearch",value:function(t){if(t){var e=x.a.buildSearchEvent(t,Pt.m.PageLoad),n=e.data,r=e.action;Ce.a.log(Pt.q.Search,n,r)}}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(3).then(n.bind(null,1051)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"addToExchange",value:function(t){var e=this;Promise.all([n.e(0),n.e(17)]).then(n.bind(null,1055)).then((function(n){var r=new(0,n.AddToExchangeView)({videoId:t});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"name",get:function(){return"Search Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.SEARCH}}}},{key:"channelName",get:function(){return a.b.SEARCH}}],[{key:"router",get:function(){return Ne}}]),r}(r.a.Application);function je(t){return(je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ve(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Me(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ue(t,e,n){return e&&Me(t.prototype,e),n&&Me(t,n),t}function Fe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&He(t,e)}function He(t,e){return(He=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ze(t){var e=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(t){return!1}}();return function(){var n,r=qe(t);if(e){var o=qe(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Be(this,n)}}function Be(t,e){return!e||"object"!==je(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qe(t){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ge=function(t){Fe(n,t);var e=ze(n);function n(){return Ve(this,n),e.apply(this,arguments)}return Ue(n,[{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}},{key:"appRoutes",get:function(){return{"manage/video-access(/)":"index"}}},{key:"appLinks",get:function(){return["manageVideoAccess","makeLibraryAvailable"]}},{key:"filters",get:function(){return[ae,re([ee.a.Admin]),oe,fe]}}]),n}(r.a.AppRouter),We=function(t){Fe(r,t);var e=ze(r);function r(){return Ve(this,r),e.apply(this,arguments)}return Ue(r,[{key:"index",value:function(t){var e=this,r=i.isNaN(+t.page)?"1":t.page;Promise.all([n.e(1),n.e(2),n.e(4),n.e(5),n.e(42)]).then(n.bind(null,1056)).then((function(t){var n=t.RestrictedVideoListView;e.layout.showChildView(y.a.CONTENT,new n({page:r}))}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1084)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(y.a.POPUP,new r({videoId:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(3).then(n.bind(null,1051)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(y.a.POPUP,n)}))}},{key:"name",get:function(){return"VideoAccessApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.VIDEO_ACCESS,selectedNavItem:{application:a.b.VIDEO_ACCESS,action:a.a.VideoAccess.HOME}}}}},{key:"channelName",get:function(){return a.b.VIDEO_ACCESS}}],[{key:"router",get:function(){return Ge}}]),r}(r.a.Application);function Ye(t){return(Ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Je(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $e(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ke(t,e,n){return e&&$e(t.prototype,e),n&&$e(t,n),t}function Qe(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ze(t,e)}function Ze(t,e){return(Ze=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xe(t){var e=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(t){return!1}}();return function(){var n,r=en(t);if(e){var o=en(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tn(this,n)}}function tn(t,e){return!e||"object"!==Ye(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function en(t){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var nn=function(t){Qe(n,t);var e=Xe(n);function n(){return Je(this,n),e.apply(this,arguments)}return Ke(n,[{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}},{key:"appRoutes",get:function(){return{"manage/staff-requests(/)":"index","manage/staff-requests/:id(/)":"editRequest"}}},{key:"appLinks",get:function(){return["approveRequest","rejectRequest","newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[ae,re([ee.a.Admin]),oe,(t=[{name:ie.m.StaffRequest,value:ie.o.StaffRequest}],function(e,n){var o=g.a.getInstance(a.g.User),i=g.a.getInstance(a.g.Settings);o.getCurrentUser((function(o){g.a.releaseInstance(a.g.User),i.getSettings(o.get("customerId"),null,(function(o){g.a.releaseInstance(a.g.Settings);var i=!1;t.forEach((function(t){var e=o.findWhere({name:t.name});if(!e||e.get("value")!==t.value)return i=!0,r.a.AppLinkUtility.routingEnded(),void r.a.ErrorHelper.throw(new Ft.a(t.name))})),i||n(e)}))}))}),fe];var t}}]),n}(r.a.AppRouter),rn=function(t){Qe(r,t);var e=Xe(r);function r(){return Je(this,r),e.apply(this,arguments)}return Ke(r,[{key:"index",value:function(){var t=this;Promise.all([n.e(0),n.e(1),n.e(2),n.e(13)]).then(n.bind(null,1083)).then((function(e){var n=e.StaffRequestsView;t.layout.showChildView(y.a.CONTENT,new n({}))}))}},{key:"editRequest",value:function(t,e){var r=this;e=e||{},Promise.all([n.e(0),n.e(1),n.e(2),n.e(13)]).then(n.bind(null,1083)).then((function(n){var o=n.StaffRequestsView;r.layout.showChildView(y.a.CONTENT,new o({requestId:t,referrer:e.referrer}))}))}},{key:"approveRequest",value:function(t,e,r){var o=this;this.editRequest(t),t&&e&&r&&n.e(68).then(n.bind(null,1057)).then((function(n){var i=n.ApproveStaffRequestView;o.layout.showChildView(y.a.POPUP,new i({requestId:t,libraryId:e,folderId:r}))}))}},{key:"rejectRequest",value:function(t){var e=this;this.editRequest(t),n.e(60).then(n.bind(null,1058)).then((function(n){var r=n.RejectStaffRequestView;e.layout.showChildView(y.a.POPUP,new r({requestId:t}))}))}},{key:"newFolder",value:function(t){var e=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1038)).then((function(n){var r=new(0,n.NewFolderView)({libraryId:t,routeToFolderOnCreate:!1});e.layout.showChildView(y.a.POPUP,r)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(3).then(n.bind(null,1051)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(y.a.POPUP,n)}))}},{key:"name",get:function(){return"StaffRequestsApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.STAFF_REQUESTS,selectedNavItem:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.HOME}}}}},{key:"channelName",get:function(){return a.b.STAFF_REQUESTS}}],[{key:"router",get:function(){return nn}}]),r}(r.a.Application),on=n(174),an=n(21);function cn(t){return(cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function sn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function un(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ln(t,e,n){return e&&un(t.prototype,e),n&&un(t,n),t}function fn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&pn(t,e)}function pn(t,e){return(pn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function hn(t){var e=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(t){return!1}}();return function(){var n,r=yn(t);if(e){var o=yn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return dn(this,n)}}function dn(t,e){return!e||"object"!==cn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function yn(t){return(yn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var gn=function(t){fn(n,t);var e=hn(n);function n(){return sn(this,n),e.apply(this,arguments)}return ln(n,[{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}},{key:"appRoutes",get:function(){return{"manage/content-updates(/)":"index","manage/content-updates/awaiting-review(/)":"awaitingReview","manage/content-updates/past-releases(/)":"pastReleases"}}},{key:"appLinks",get:function(){return["shareVideo","disableReview","generatePdf","manageVideoAccess","addToLibrary","makeLibraryAvailable"]}},{key:"filters",get:function(){return[ae,re([ie.q.Admin]),oe,fe]}}]),n}(r.a.AppRouter),bn=function(t){fn(o,t);var e=hn(o);function o(){return sn(this,o),e.apply(this,arguments)}return ln(o,[{key:"index",value:function(){r.a.AppLinkHelper.trigger({application:this.channelName,action:a.a.ContentUpdates.AWAITING_REVIEW},{replace:!0})}},{key:"awaitingReview",value:function(){var t=this;Promise.all([n.e(1),n.e(2),n.e(4),n.e(5),n.e(27)]).then(n.bind(null,1059)).then((function(e){var n=e.AwaitingReviewView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"pastReleases",value:function(t){var e,r,o,c=this,s=t[an.a.ReleaseDate]||on.e.queryString,u=(e={},r=an.a.ReleaseDate,o=s,r in e?Object.defineProperty(e,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[r]=o,e);this.setDefaultQueryParams(u),Promise.all([n.e(1),n.e(2),n.e(4),n.e(5),n.e(20)]).then(n.bind(null,1085)).then((function(e){var n=e.PastReleasesView;c.layout.showChildView(a.n.CONTENT,new n({queryParams:i.extend({},t,u)}))}))}},{key:"generatePdf",value:function(t){var e=this;n.e(43).then(n.bind(null,1060)).then((function(n){var r=n.GeneratePastReleasesPdfView;e.layout.showChildView(a.n.POPUP,new r({librariesQueryString:t[an.a.Libraries],dateQueryString:t[an.a.ReleaseDate],subjectQueryString:t[an.a.Subjects]}))}))}},{key:"shareVideo",value:function(t){var e=this;n.e(10).then(n.bind(null,1092)).then((function(n){var r=n.ShareView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"disableReview",value:function(){var t=this;n.e(63).then(n.bind(null,1061)).then((function(e){var n=e.DisableReviewView;t.layout.showChildView(a.n.POPUP,new n)}))}},{key:"manageVideoAccess",value:function(t){var e=this;n.e(8).then(n.bind(null,1084)).then((function(n){var r=n.RestrictAccessView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"addToLibrary",value:function(t){var e=this;Promise.all([n.e(0),n.e(30)]).then(n.bind(null,1062)).then((function(n){var r=n.AddToLibraryView;e.layout.showChildView(a.n.POPUP,new r({videoId:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(3).then(n.bind(null,1051)).then((function(e){var n=e.PublishLibraryView;t.layout.showChildView(a.n.POPUP,new n)}))}},{key:"name",get:function(){return"ContentUpdatesApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.CONTENT_UPDATES,selectedNavItem:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW}}}}},{key:"channelName",get:function(){return a.b.CONTENT_UPDATES}}],[{key:"router",get:function(){return gn}}]),o}(r.a.Application);function mn(t){return(mn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wn(t,e,n){return e&&Sn(t.prototype,e),n&&Sn(t,n),t}function On(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&En(t,e)}function En(t,e){return(En=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Cn(t){var e=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(t){return!1}}();return function(){var n,r=kn(t);if(e){var o=kn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Rn(this,n)}}function Rn(t,e){return!e||"object"!==mn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function kn(t){return(kn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Pn=function(t){On(n,t);var e=Cn(n);function n(){return vn(this,n),e.apply(this,arguments)}return wn(n,[{key:"channelName",get:function(){return a.b.NOTIFICATIONS}},{key:"appRoutes",get:function(){return{"manage/notifications(/)":"index"}}},{key:"appLinks",get:function(){return["makeLibraryAvailable"]}},{key:"filters",get:function(){return[ae,re([ee.a.Admin]),oe,fe]}}]),n}(r.a.AppRouter),_n=function(t){On(r,t);var e=Cn(r);function r(){return vn(this,r),e.apply(this,arguments)}return wn(r,[{key:"index",value:function(t){var e=this;n.e(49).then(n.bind(null,1063)).then((function(n){var r=n.NotificationsView;e.layout.showChildView(a.n.CONTENT,new r({params:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(3).then(n.bind(null,1051)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"name",get:function(){return"Notifications Application"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.NOTIFICATIONS}}}},{key:"channelName",get:function(){return a.b.NOTIFICATIONS}}],[{key:"router",get:function(){return Pn}}]),r}(r.a.Application);function xn(t){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Tn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Dn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ln(t,e,n){return e&&Dn(t.prototype,e),n&&Dn(t,n),t}function An(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nn(t,e)}function Nn(t,e){return(Nn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function In(t){var e=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(t){return!1}}();return function(){var n,r=Vn(t);if(e){var o=Vn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jn(this,n)}}function jn(t,e){return!e||"object"!==xn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vn(t){return(Vn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Mn=function(t){An(n,t);var e=In(n);function n(){return Tn(this,n),e.apply(this,arguments)}return Ln(n,[{key:"channelName",get:function(){return a.b.UPLOAD}},{key:"appRoutes",get:function(){return{"manage/upload(/)":"fileSelection","manage/upload/details(/)":"uploadDetails","manage/upload/complete(/)":"uploadComplete"}}},{key:"appLinks",get:function(){return["newFolder","makeLibraryAvailable"]}},{key:"filters",get:function(){return[ae,re([ee.a.Admin]),oe,fe]}}]),n}(r.a.AppRouter),Un=function(t){An(r,t);var e=In(r);function r(){return Tn(this,r),e.apply(this,arguments)}return Ln(r,[{key:"initialize",value:function(){this.videoUploadService=g.a.getInstance(a.x.VideoUpload,this)}},{key:"fileSelection",value:function(){var t=this;n.e(61).then(n.bind(null,1064)).then((function(e){var n=new(0,e.FileSelectView);t.layout.showChildView(y.a.CONTENT,n)}))}},{key:"uploadDetails",value:function(t){var e=this;this.videoUploadService.isUploading()?Promise.all([n.e(0),n.e(9),n.e(12),n.e(28)]).then(n.bind(null,1079)).then((function(n){var r=new(0,n.UploadVideosView)({folderId:t.folderId,analyticsOptions:{actionType:Pt.q.Upload,entity:Pt.e.Video,location:Pt.k.VideoUpload}});e.layout.showChildView(y.a.CONTENT,r)})):this.fileSelection()}},{key:"uploadComplete",value:function(){var t=this;this.videoUploadService.isUploading()?n.e(62).then(n.bind(null,1065)).then((function(e){var n=new(0,e.UploadCompleteView);t.layout.showChildView(y.a.CONTENT,n)})):this.fileSelection()}},{key:"newFolder",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(7)]).then(n.bind(null,1038)).then((function(e){var n=new(0,e.NewFolderView)({libraryId:t,routeToFolderOnCreate:!1});r.layout.showChildView(y.a.POPUP,n)}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(3).then(n.bind(null,1051)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(y.a.POPUP,n)}))}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.UPLOAD}}}},{key:"name",get:function(){return"Upload Application"}},{key:"channelName",get:function(){return a.b.UPLOAD}}],[{key:"router",get:function(){return Mn}}]),r}(r.a.Application),Fn=n(3),Hn=/^clickviewactasuser.*/i,zn={handleMismatch:function(){g.a.getInstance(a.g.MigrationVideo).getCustomerMetadata((function(t){(g.a.releaseInstance(a.g.MigrationVideo),se.a.isInitialMigration(t))&&(t.keyContact&&t.keyContact.get("fullName")&&(Hn.test(t.keyContact.get("username"))||g.a.getInstance(a.g.User).getCurrentUser((function(e){g.a.releaseInstance(a.g.User),t.keyContact.get("userId")!==e.get("id")&&zn.showDialog(t)}))))}))},showDialog:function(t){new Xt.d({title:Fn.a.getPhrase("migrationWizard.utils","keyContactHeading"),text:Fn.a.getPhrase("migrationWizard.utils","keyContactBody",{fullName:t.keyContact.get("fullName")}),buttons:[{text:Fn.a.getPhrase("migrationWizard.utils","continue"),className:"btn btn-primary",success:!0},{text:Fn.a.getPhrase("migrationWizard.utils","cancel"),className:"btn btn-link",close:!0}]}).render().fail((function(){g.a.getInstance(a.g.Config).getConfig((function(t){g.a.releaseInstance(a.g.Config),window.location=t.get("onlineUrl")}))}))}};function Bn(t){return(Bn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function qn(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Gn(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Wn(t,e,n){return e&&Gn(t.prototype,e),n&&Gn(t,n),t}function Yn(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jn(t,e)}function Jn(t,e){return(Jn=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $n(t){var e=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(t){return!1}}();return function(){var n,r=Qn(t);if(e){var o=Qn(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Kn(this,n)}}function Kn(t,e){return!e||"object"!==Bn(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qn(t){return(Qn=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zn=function(t){Yn(n,t);var e=$n(n);function n(){return qn(this,n),e.apply(this,arguments)}return Wn(n,[{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}},{key:"appRoutes",get:function(){return{"manage/publisher-archive(/)":"index","manage/publisher-backup(/)":"backupWelcome","manage/publisher-backup/download(/)":"backupDownload","manage/publisher-archive/migrate(/)":"startMigration","manage/publisher-archive/search(/)":"search","manage/publisher-archive/folders/:id(/)":"folder","manage/publisher-archive/progress/:id(/)":"progress","manage/publish-library/progress":"publishLibraryProgress","manage/manual-review":"migrationErrors"}}},{key:"appLinks",get:function(){return["backupProgress","backupComplete","publishLibraryComplete","smart","selected","videosAdded","showPublisherVideo","makeLibraryAvailable","remigrateVideo","generateCsvReport"]}},{key:"filters",get:function(){return wt.a.isDevelopment?[oe]:[ae,oe,le]}}]),n}(r.a.AppRouter),Xn=function(t){Yn(o,t);var e=$n(o);function o(){return qn(this,o),e.apply(this,arguments)}return Wn(o,[{key:"initialize",value:function(){this.migrationVideoDataService=g.a.getInstance(a.g.MigrationVideo,this)}},{key:"index",value:function(t){t.folder?this.folder(t.folder):r.a.AppLinkHelper.trigger({application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.SMART},{replace:!0})}},{key:"backupWelcome",value:function(){var t=this;n.e(57).then(n.bind(null,1066)).then((function(e){var n=e.PublisherBackupWelcomeView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupDownload",value:function(){var t=this;n.e(58).then(n.bind(null,1067)).then((function(e){var n=e.PublisherBackupView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupProgress",value:function(){var t=this;n.e(40).then(n.bind(null,1068)).then((function(e){var n=e.PublisherBackupProgressView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"backupComplete",value:function(){var t=this;n.e(56).then(n.bind(null,1069)).then((function(e){var n=e.PublisherBackupCompleteView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"startMigration",value:function(){var t=this;n.e(46).then(n.bind(null,1070)).then((function(e){var n=e.StartView;t.layout.showChildView(a.n.CONTENT,new n)}))}},{key:"smart",value:function(){this.migrationVideoDataService.deselectAll(),this.renderSmartMigration()}},{key:"folder",value:function(t){this.migrationVideoDataService.setSelected(t),this.renderSmartMigration(t)}},{key:"search",value:function(t){this.renderSmartMigration(void 0,t.term)}},{key:"progress",value:function(t,e){var r=this;Promise.all([n.e(6),n.e(44)]).then(n.bind(null,1071)).then((function(n){var o=n.MigrationProgressView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:t,firstTime:!!e.initialMigration}))}))}},{key:"videosAdded",value:function(t,e){var r=this;n.e(59).then(n.bind(null,1072)).then((function(n){var o=n.VideosAddedView;r.layout.showChildView(a.n.CONTENT,new o({finalisationTaskId:t,firstTime:!!e.initialMigration}))}))}},{key:"selected",value:function(t){var e=this;Promise.all([n.e(6),n.e(45)]).then(n.bind(null,1073)).then((function(n){var r=n.SelectedVideosView;e.layout.showChildView(a.n.CONTENT,new r({previousFolderChord:t}))}))}},{key:"showPublisherVideo",value:function(t){var e=this;n.e(18).then(n.bind(null,1053)).then((function(n){var r=n.ShowPublisherVideoPopupView;e.layout.showChildView(a.n.POPUP,new r({trackingCode:t}))}))}},{key:"makeLibraryAvailable",value:function(){var t=this;n.e(3).then(n.bind(null,1051)).then((function(e){var n=new(0,e.PublishLibraryView);t.layout.showChildView(a.n.POPUP,n)}))}},{key:"remigrateVideo",value:function(t,e,r){var o=this;n.e(67).then(n.bind(null,1074)).then((function(n){var i=new(0,n.RemigrateVideoView)({videoId:t,masterId:e,folderChord:r});o.layout.showChildView(a.n.POPUP,i)}))}},{key:"publishLibraryProgress",value:function(){var t=this;Promise.all([n.e(6),n.e(55)]).then(n.bind(null,1093)).then((function(e){var n=new(0,e.PublishLibraryProgressView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"publishLibraryComplete",value:function(){var t=this;n.e(54).then(n.bind(null,1075)).then((function(e){var n=new(0,e.PublishLibraryCompleteView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"migrationErrors",value:function(){var t=this;Promise.all([n.e(1),n.e(6),n.e(26)]).then(n.bind(null,1077)).then((function(e){var n=new(0,e.MigrationErrorView);t.layout.showChildView(a.n.CONTENT,n)}))}},{key:"generateCsvReport",value:function(t){var e=this;n.e(47).then(n.bind(null,1076)).then((function(n){var r=new(0,n.GenerateCsvReportView)({options:t.options});e.layout.showChildView(a.n.POPUP,r)}))}},{key:"renderSmartMigration",value:function(t,e){var r=this;Promise.all([n.e(0),n.e(6),n.e(41)]).then(n.bind(null,1090)).then((function(n){var o=new(0,n.SmartMigrationView)({folderChord:t,searchTerm:e});r.layout.showChildView(a.n.CONTENT,o)}))}},{key:"onLayoutLoaded",value:function(){var t=this;this.layoutLoaded||zn.handleMismatch(),this.layoutLoaded=!0,this.migrationVideoDataService.getCustomerMetadata((function(e){se.a.isInitialMigration(e)||(se.a.isCurrentlyMigratingAll(e)?Promise.resolve().then(n.bind(null,412)).then((function(e){var n=e.PageHeaderComponent;t.layout.showChildView(a.n.PAGE_HEADER,new n({onlyShowProfile:!0}))})):Promise.resolve().then(n.bind(null,412)).then((function(e){var r=e.PageHeaderComponent;t.layout.showChildView(a.n.PAGE_HEADER,new r({onlyShowProfile:!0})),Promise.resolve().then(n.bind(null,413)).then((function(e){var n=e.TopNavigationView;t.layout.showChildView(a.n.TOP_NAV,new n({selected:{application:a.b.MIGRATION_WIZARD,action:a.a.MigrationWizard.HOME}}))}))})))}))}},{key:"name",get:function(){return"MigrationWizardApplication"}},{key:"layoutOptions",get:function(){return{name:a.o.ManageLayout,options:{application:a.b.MIGRATION_WIZARD,showFullHeader:!1,centredContent:!0,showTopNav:!1,allowFileDrop:!1}}}},{key:"channelName",get:function(){return a.b.MIGRATION_WIZARD}}],[{key:"router",get:function(){return Zn}}]),o}(r.a.Application);var tr=n(75),er=n(44),nr=n(9);class rr extends er.a{constructor(t){super(),this.size=t.size,this.cache={},this.cachedkeys=[]}get name(){return tr.a.Fifo}removeCacheKey(t){this.cachedkeys=i.without(this.cachedkeys,t)}has(t){return!!this.cache[t]}get(t){return this.cache[t]}set(t,e){t&&e||nr.c.throw(new O.a("Must provide a cache key and a value to cache in FifoMemoryCache.")),this.has(t)&&this.removeCacheKey(t),this.cachedkeys.push(t),this.cache[t]=e,this.cachedkeys.length>this.size&&delete this.cache[this.cachedkeys.shift()]}getOrSet(t,e){if(this.has(t))return this.get(t);const n=e();return this.set(t,n),n}remove(t){return!!this.has(t)&&(delete this.cache[t],this.removeCacheKey(t),!0)}invalidate(t,e){const n=i.object(this.cachedkeys,this.cachedkeys);let r=[];i.each(t,t=>{n[t]&&r.push(t);const e=new RegExp(t,"i"),o=i.filter(n,t=>e.test(t));r.push(...o)}),r.length&&(r=i.uniq(r),i.each(r,t=>{delete this.cache[t],i.isFunction(e)&&e(t)}),this.cachedkeys=i.without(this.cachedkeys,...r))}}var or,ir=n(94);!function(t){t.GET="GET",t.POST="POST",t.PUT="PUT",t.DELETE="DELETE"}(or||(or={}));var ar=n(68);const cr={parseErrorMessage(t,e,n){if(!n||!n.errorCode)return t[e];let r=""+n.errorCode;return n.errorSubCode&&(r+="."+n.errorSubCode),t[r]||t[e]}};class sr extends D.Object{constructor(t){super(t),$.ajaxSetup({cache:!1,contentType:"application/json; charset=utf-8"}),this.successMiddleware={},this.errorMiddleware={},this.dataServiceErrorMessageMappings=t.dataServiceErrorMessageMappings,this.defaultErrorMessageKey=t.defaultErrorMessageKey}get name(){return b.a.Ajax}parseUrl(t){const e=document.createElement("a");return e.href=t,""===e.host&&(e.href=e.href),e}makeHttps(t){const e=this.parseUrl(t);return"http:"===e.protocol&&(e.protocol="https:"),e.href}base(t,e,n,r={}){n||(n=or.GET);const o=i.defaults(r,{forceHttps:!1}),a={url:t,method:n,type:n};e&&(a.data=n===or.POST||n===or.PUT?JSON.stringify(e):e),o.forceHttps&&(a.url=this.makeHttps(a.url)),o.traditional&&(a.traditional=o.traditional);const c=$.ajax(a);return i.keys(this.successMiddleware).length&&c.done(i.values(this.successMiddleware)),i.keys(this.errorMiddleware).length&&c.fail(i.values(this.errorMiddleware)),c}create(t,e,n){const{channel:r,successEvent:o,errorEvent:i}=n;this.base(t,e,or.POST).done((t,e,n)=>r.trigger(o,t,e,n)).fail((t,e,n)=>r.trigger(i,t,e,n))}read(t,e){const{channel:n,successEvent:r,errorEvent:o}=e;this.base(t,null,or.GET).done((t,e,o)=>{n.trigger(r,t,e,o)}).fail((t,e,r)=>{n.trigger(o,t,e,r)})}update(t,e,n){const{channel:r,successEvent:o,errorEvent:i}=n;this.base(t,e,or.PUT).done((t,e,n)=>r.trigger(o,t,e,n)).fail((t,e,n)=>r.trigger(i,t,e,n))}delete(t,e){const{channel:n,successEvent:r,errorEvent:o}=e;this.base(t,null,or.DELETE).done((t,e,o)=>n.trigger(r,t,e,o)).fail((t,e,r)=>n.trigger(o,t,e,r))}useMiddleware(t,e){this.successMiddleware[t]||(this.successMiddleware[t]=e)}useErrorMiddleware(t,e){this.errorMiddleware[t]||(this.errorMiddleware[t]=e)}parseError(t,e,n){const r=t.responseJSON,o=ir.a;switch(o.code=t.status,o.message=cr.parseErrorMessage(this.dataServiceErrorMessageMappings,this.defaultErrorMessageKey,r),t.status){case 400:o.type=ar.a.BadRequest;break;case 401:o.type=ar.a.Unauthorized;break;case 403:o.type=ar.a.Forbidden;break;case 404:o.type=ar.a.NotFound;break;case 500:o.type=ar.a.InternalServer}return o}}var ur=n(110);var lr=n(37),fr=n(12),pr=n(38),hr=n(19),dr=n(18);class yr extends r.a.Model{}class gr extends fr.a{get name(){return dr.a.NotificationSocket}get channelName(){return hr.b.NOTIFICATIONS_SOCKET}receiveLatestNotifications(t){return this.get({callback:t,formatData:t=>new yr(t),resource:"notify",eventPrefix:pr.a.NOTIFICATIONS+":new"})}receiveUnreadNotificationCount(t){return this.get({callback:t,resource:"notifyCount",eventPrefix:pr.a.NOTIFICATIONS+":count"})}}var br=n(58),mr=n(78);class vr extends r.a.Collection{get model(){return yr}parse(t){return t.data||t}}var Sr=n(76);const wr=(t,e)=>{let n=`/api/domain/v2/objects/${t}/notifications?query={orderbydesc:datecreated}`;if(!e)return n;const{limit:r,cursor:o,before:i}=e,a=[],c=br.a.buildFilter({limit:r,before:i});return c&&a.push("filter="+c),o&&a.push("cursor="+o),a.length?`${n}&${a.join("&")}`:n},Or=t=>"/api/notifications/v1/notifications/"+t,Er="/api/notifications/v1/notifications",Cr="/api/domain/v1/notifications";class Rr extends fr.a{get name(){return dr.a.Notification}get channelName(){return hr.b.NOTIFICATIONS}get lang(){return"notifications.services"}getNotifications(t,e,n,r){return this.get({resource:wr(t,e),expiryTime:Sr.a.STANDARD,eventPrefix:n,formatData:t=>new vr(t,{parse:!0}),callback:r})}markRead(t,e){return this.update({callback:e,data:{notificationStatus:mr.a.Read},resource:Or(t),eventPrefix:pr.a.NOTIFICATIONS+":read"})}markSeen(t){const e=Ct().utc().toISOString();return this.update({callback:t,data:{notificationStatus:mr.a.Seen},resource:`${Er}?to=${e}¬ificationStatus=${mr.a.Received}`,eventPrefix:pr.a.NOTIFICATIONS+":seen"})}getNotificationsCursors(t){return this.getCursors(t)}suggestEdit(t,e){return this.create({resource:""+Cr,eventPrefix:""+pr.a.SUGGEST_EDIT,callback:e,data:t,successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"suggestEditSubmit")),errorHandler:this.alertService.error({useXHR:!0})})}}const kr="locale",Pr="phrases";class _r extends fr.a{get name(){return dr.a.Language}get channelName(){return hr.b.LANGUAGE}getLanguageConfig(t){const e={locale:"",phrases:null};this.get({resource:"/api/locale",eventPrefix:pr.a.LOCALE,expiryTime:Sr.a.STANDARD,bootstrapName:kr,callback:n=>{e.locale=n,e.phrases&&i.isFunction(t)&&t(e)}}),this.get({resource:"/api/phrases",eventPrefix:pr.a.PHRASES,expiryTime:Sr.a.STANDARD,bootstrapName:Pr,callback:n=>{e.phrases=n,e.locale&&i.isFunction(t)&&t(e)}})}}var xr=n(13),Tr=n(67),Dr=n.n(Tr),Lr=n(373),Ar=n.n(Lr);function Nr(t){return(Nr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ir(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jr(t,e){return(jr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vr(t){var e=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(t){return!1}}();return function(){var n,r=Ur(t);if(e){var o=Ur(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mr(this,n)}}function Mr(t,e){return!e||"object"!==Nr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ur(t){return(Ur=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Fr=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jr(t,e)}(a,t);var e,n,r,i=Vr(a);function a(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,t)}return e=a,(n=[{key:"events",value:function(){return{"click .close":"onClickClose","click a":"onClick",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave"}}},{key:"onClick",value:function(){return this.forceFade=!0,this.triggerRemoval(),!0}},{key:"onClickClose",value:function(t){return t.stopPropagation(),this.forceFade=!0,this.triggerRemoval(),!1}},{key:"onMouseEnter",value:function(){this.forceFade||this.clearTimeout()}},{key:"onMouseLeave",value:function(){this.forceFade||this.startTimeout()}},{key:"removeAlert",value:function(){this.clearingTimeout&&o.Radio.channel(this.options.channelName).trigger("remove:alert",this.model.get("id"))}},{key:"triggerRemoval",value:function(){var t=this;return this.$el.addClass(Dr.a.removing),this.$el.addClass(Dr.a.removed),this.clearingTimeout=!0,window.setTimeout((function(){return t.removeAlert()}),1e3),!1}},{key:"startTimeout",value:function(){var t=this,e=this.model.get("timeout")||this.options.timeout;e&&(this.currentTimeoutIndex&&this.clearTimeout(),this.currentTimeoutIndex=window.setTimeout((function(){return t.triggerRemoval()}),e))}},{key:"clearTimeout",value:function(){window.clearTimeout(this.currentTimeoutIndex),this.removeAlertFadeClasses()}},{key:"removeAlertFadeClasses",value:function(){this.$el.removeClass(Dr.a.removing),this.$el.removeClass(Dr.a.removed),this.clearingTimeout=!1}},{key:"getTypeSvg",value:function(){switch(this.model.get("type")){case lr.a.Success:return xr.a.getSvg(xr.b.CheckCircleOutline);case lr.a.Fail:case lr.a.Warning:return xr.a.getSvg(xr.b.Warning);case lr.a.Info:default:return xr.a.getSvg(xr.b.Info)}}},{key:"getTypeClass",value:function(){var t=this.model.get("type").toLowerCase();return"text-".concat(t)}},{key:"viewOptions",value:function(){return{styles:Dr.a,typeSvg:this.getTypeSvg(),svgClass:this.getTypeClass()}}},{key:"onRender",value:function(){this.resetClassName(),this.startTimeout()}},{key:"onBeforeDestroy",value:function(){this.removeAlertFadeClasses()}},{key:"name",get:function(){return"AlertItemComponent"}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){return"bg-white mt-2 p-2 ".concat(Dr.a.alertItem," show clearfix")}},{key:"template",get:function(){return Ar.a}},{key:"defaults",get:function(){return{timeout:5e3}}},{key:"appLinks",get:function(){if(this.model.get("appLink"))return{a:this.model.get("appLink")}}}])&&Ir(e.prototype,n),r&&Ir(e,r),a}(r.a.Component);function Hr(t){return(Hr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Br(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qr(t,e){return(qr=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gr(t){var e=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(t){return!1}}();return function(){var n,r=Yr(t);if(e){var o=Yr(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wr(this,n)}}function Wr(t,e){return!e||"object"!==Hr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yr(t){return(Yr=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Jr,$r=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qr(t,e)}(i,t);var e,n,r,o=Gr(i);function i(){return zr(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"name",get:function(){return"AlertComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"".concat(Dr.a.alertList," alert-list")}},{key:"channelName",get:function(){return E.a.ALERT}},{key:"childView",get:function(){return Fr}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}}])&&Br(e.prototype,n),r&&Br(e,r),i}(r.a.ComponentCollection);function Kr(t){return(Kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Qr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Zr(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Xr(t,e,n){return(Xr="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ro(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function to(t,e){return(to=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function eo(t){var e=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(t){return!1}}();return function(){var n,r=ro(t);if(e){var o=ro(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return no(this,n)}}function no(t,e){return!e||"object"!==Kr(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ro(t){return(ro=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.Success="Success! š",t.Warning="Whoops...",t.Fail="Oops...",t.Info="FYI"}(Jr||(Jr={}));var oo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&to(t,e)}(i,t);var e,n,r,o=eo(i);function i(){return Qr(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"success",value:function(t){return Xr(ro(i.prototype),"success",this).call(this,t)}},{key:"error",value:function(t){return Xr(ro(i.prototype),"error",this).call(this,t)}},{key:"name",get:function(){return a.x.Alerts}}])&&Zr(e.prototype,n),r&&Zr(e,r),i}(lr.b),io=n(119),ao=n(86),co=n(143),so=n(14);function uo(t){return(uo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function lo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fo(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function po(t,e){return(po=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ho(t){var e=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(t){return!1}}();return function(){var n,r=go(t);if(e){var o=go(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yo(this,n)}}function yo(t,e){return!e||"object"!==uo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function go(t){return(go=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var bo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&po(t,e)}(i,t);var e,n,r,o=ho(i);function i(){return lo(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getCustomer",value:function(t,e){return this.get({resource:"/api/domain/v2/objects/".concat(t),formatData:function(t){return new co.a(t)},eventPrefix:a.f.CUSTOMER,expiryTime:so.a.STANDARD,callback:e})}},{key:"name",get:function(){return a.g.Customer}},{key:"channelName",get:function(){return a.e.CUSTOMER}}])&&fo(e.prototype,n),r&&fo(e,r),i}(fr.a);function mo(t){return(mo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function So(t,e){return(So=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function wo(t){var e=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(t){return!1}}();return function(){var n,r=Eo(t);if(e){var o=Eo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oo(this,n)}}function Oo(t,e){return!e||"object"!==mo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Eo(t){return(Eo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Co=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&So(t,e)}(n,t);var e=wo(n);function n(){return vo(this,n),e.apply(this,arguments)}return n}(r.a.Model);function Ro(t){return(Ro="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ko(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Po(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _o(t,e){return(_o=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xo(t){var e=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(t){return!1}}();return function(){var n,r=Do(t);if(e){var o=Do(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return To(this,n)}}function To(t,e){return!e||"object"!==Ro(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Do(t){return(Do=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Lo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_o(t,e)}(i,t);var e,n,r,o=xo(i);function i(){return ko(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return Co}}])&&Po(e.prototype,n),r&&Po(e,r),i}(r.a.Collection);function Ao(t){return(Ao="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function No(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Io(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jo(t,e){return(jo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vo(t){var e=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(t){return!1}}();return function(){var n,r=Uo(t);if(e){var o=Uo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mo(this,n)}}function Mo(t,e){return!e||"object"!==Ao(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Uo(t){return(Uo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Fo=function(t,e){var n="/api/domain/v3/settings/".concat(t);return ie.l[e]&&(n+="?kind=".concat(e)),n},Ho=function(t){return"/api/domain/v3/settings/".concat(t)},zo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jo(t,e)}(c,t);var e,n,r,o=Vo(c);function c(){return No(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"getSetting",value:function(t,e,n){var r=i.isFunction(n)?function(t){var r=t.findWhere({name:e});i.isFunction(n)&&n(r)}:null,o=this.getSettings(t,null,r);return o?o.findWhere({name:e}):null}},{key:"getSettings",value:function(t,e,n){return this.get({callback:n,resource:Fo(t,e),formatData:function(t){return new Lo(t)},eventPrefix:a.f.SETTINGS,expiryTime:so.a.SHORT,bootstrapName:"settings"})}},{key:"updateSetting",value:function(t,e,n,r){return this.update({callback:r,resource:Ho(t),eventPrefix:"".concat(a.f.UPDATE_SETTING,":").concat(ie.m.LibraryReview),invalidationKeys:[a.f.SETTINGS],data:e,successHandler:n?this.alertService.success(n):null})}},{key:"name",get:function(){return m.a.Settings}},{key:"channelName",get:function(){return a.e.SETTINGS}}])&&Io(e.prototype,n),r&&Io(e,r),c}(fr.a),Bo=n(89),qo=n(61),Go=n(56);function Wo(t){return(Wo="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yo(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jo(t,e){return(Jo=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function $o(t){var e=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(t){return!1}}();return function(){var n,r=Qo(t);if(e){var o=Qo(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ko(this,n)}}function Ko(t,e){return!e||"object"!==Wo(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Qo(t){return(Qo=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Zo=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Jo(t,e)}(n,t);var e=$o(n);function n(){return Yo(this,n),e.apply(this,arguments)}return n}(r.a.Model),Xo=n(109),ti=n(35),ei=n(90),ni=n(26),ri=n(182);function oi(t){return(oi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ii(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ai(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ci(t,e){return(ci=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function si(t){var e=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(t){return!1}}();return function(){var n,r=li(t);if(e){var o=li(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ui(this,n)}}function ui(t,e){return!e||"object"!==oi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function li(t){return(li=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var fi=function(t,e,n){var r=["query={status:[1,5],".concat(e,"}").concat(Xo.a.VIDEO_COLLECTION)];return n&&r.push("cursor=".concat(n)),"/api/domain/v2/objects/".concat(t,"/videos?").concat(r.join("&"))},pi=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(Xo.a.VIDEO)},hi=function(t){return"/api/domain/v2/objects/".concat(t)},di=function(){return"/api/domain/v2/objects/move"},yi=function(){return"/api/domain/v1/share"},gi=function(t){return"/api/domain/v1/videos?ids=".concat(t.join(","),"&with=categories")},bi=function(t,e,n){var r=n.map((function(t){return"videoIds=".concat(t)}));return"/api/domain/v1/libraries/".concat(t,"/videos?categoryId=").concat(e,"&").concat(r.join("&"))},mi=function(t){return"/api/domain/v2/objects/".concat(t,"/thumbnail")},vi=function(t,e){return"/api/domain/v2/objects/".concat(t,"/thumbnail/").concat(e)},Si=function(t,e,n){return"/api/domain/v2/objects/".concat(t,"/").concat(e,"?").concat(Ri.getDissocIds(n))},wi=function(t){return"/api/domain/v2/videos/".concat(t,"/copy")},Oi=function(t){return"/api/domain/v2/objects/".concat(t,"/libraries")},Ei=function(){return"/api/domain/v1/staffrequests"},Ci=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ci(t,e)}(u,t);var e,n,c,s=si(u);function u(){return ii(this,u),s.apply(this,arguments)}return e=u,(n=[{key:"initialize",value:function(){this.videoMixinService=g.a.getInstance(m.b.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(t){return this.getCursors(t.toString())}},{key:"clearVideoCache",value:function(){this.invalidateCache(["video"]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"clearPhysicialChaptersCache",value:function(){this.invalidateCache([ni.a.VIDEO_HAS_PHYSICAL_CHAPTERS])}},{key:"getCollectionVideos",value:function(t,e){var n=this,r=Xt.p.GetFilterFromSort(t.sort),o=fi(t.id,r,t.cursor);return this.get({resource:o,formatData:function(t){return new ti.a(t,{parse:!0})},callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,t,e)},expiryTime:so.a.STANDARD,eventPrefix:t.toString()})}},{key:"getSeriesVideos",value:function(t,e,n){var r=this,o=Xt.p.GetFilterFromSort(t.sort),i="libraries.id:[".concat(e.join(","),"]"),a="".concat(o,",").concat(i),c=fi(t.id,a,t.cursor);return this.get({resource:c,formatData:function(t){return new ti.a(t,{parse:!0})},callback:function(e){return r.videoMixinService.mixinVideoCollectionData(e,t,n)},expiryTime:so.a.STANDARD,eventPrefix:t.toString()})}},{key:"getVideo",value:function(t,e){var n=this;return this.get({resource:pi(t),formatData:function(t){return new qo.a(t,{parse:!0})},callback:function(t){return n.videoMixinService.mixinVideoData(t,e)},expiryTime:so.a.STANDARD,eventPrefix:"".concat(ni.a.VIDEOS,":").concat(t)})}},{key:"clearCacheAndGetVideo",value:function(t,e,n){var r=this;return this.clearCacheAndGet({resource:pi(t),formatData:function(t){return new qo.a(t,{parse:!0})},callback:function(t){return r.videoMixinService.mixinVideoData(t,e)},expiryTime:so.a.STANDARD,eventPrefix:"".concat(ni.a.VIDEOS,":").concat(t),errorHandler:n})}},{key:"getVideos",value:function(t,e){var n=this;return this.get({resource:gi(t),formatData:function(t){return new ti.a(t,{parse:!0})},callback:function(t){return n.videoMixinService.mixinVideoCollectionData(t,null,e)},expiryTime:so.a.STANDARD,eventPrefix:"".concat(ni.a.VIDEOS_BY_ID,":").concat(t.join(","))})}},{key:"hasPhysicalChapters",value:function(t,e){return this.get({resource:"/legacy/videos/".concat(t,"/hasphysicalchapters"),formatData:function(t){return new r.a.Model(t)},callback:e,expiryTime:so.a.STANDARD,eventPrefix:"".concat(ni.a.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(t)})}},{key:"updateVideo",value:function(t,e,n,r,o){var i=["".concat(t)];return e&&i.push("".concat(e)),this.update({resource:hi(t),eventPrefix:"".concat(ni.a.UPDATE_VIDEO,":").concat(t),data:n,invalidationKeys:i,callback:r})}},{key:"addOrUpdateThumbnail",value:function(t,e,n,r){var o={fileId:e.id.toString(),fileIdType:ie.e.ImageAPIv1},i=this.chain();n&&i.delete({resource:vi(t,n),eventPrefix:ni.a.DELETE_VIDEO_THUMBNAIL}),i.create({resource:mi(t),eventPrefix:"".concat(ni.a.UPDATE_VIDEO_THUMBNAIL,":").concat(t),data:o,formatData:function(t){return new Go.a(t)},invalidationKeys:[ni.a.VIDEOS],successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"thumbnailUpdateSuccess")),callback:r}),i.run()}},{key:"moveVideos",value:function(t,e,n,r,o){var a=this;this.create({resource:di(),eventPrefix:"".concat(ni.a.MOVE_VIDEOS,":").concat(t.join(",")),formatData:function(t){return new ti.a(t,{parse:!0})},callback:function(){a.clearVideoCache(),i.isFunction(r)&&r()},data:{oldCollectionId:n,newCollectionId:e,assocType:"has",objectIds:t},invalidationKeys:["".concat(ni.a.VIDEOS,":collection:").concat(n),"".concat(ni.a.VIDEOS,":collection:").concat(e)],successHandler:this.alertService.success(o)})}},{key:"deleteVideosFromLibrary",value:function(t,e,n,r){var o=this;this.delete({resource:bi(t,e,n),eventPrefix:ni.a.DELETE_VIDEO,invalidationKeys:[ni.a.VIDEOS],successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"videoRemoveSuccess",{smartCount:n.length})),callback:function(){o.clearVideoCache(),i.isFunction(r)&&r()}})}},{key:"getSharedResource",value:function(t,e,n){var r={id:t,privacy:e};return this.create({data:r,resource:yi(),formatData:function(t){return new Zo(t)},expiryTime:so.a.STANDARD,eventPrefix:"".concat(ni.a.SHARED_RESOURCE),callback:n})}},{key:"addVideoToCustomLibrary",value:function(t,e,n,r){e.get("id");var o=ri.a.addVideoToLibraryAlert(e,n);this.create({resource:Ei(),eventPrefix:"add:to:library",callback:r,data:t,invalidationKeys:["".concat(ni.a.VIDEOS)],successHandler:this.alertService.success(o)})}},{key:"bulkDissoc",value:function(t,e,n){if(t&&e){var r=new w.a(i.keys(e).length),o=function(){r.decrement(),0===r.getValue()&&n()},a=this.chain();i.each(i.keys(e),(function(n){a.delete({resource:Si(t,n.toLowerCase(),e[n]),eventPrefix:"".concat(ni.a.BULK_DISSOC,":").concat(n.toLowerCase()),callback:o})})),a.run()}}},{key:"copyVideo",value:function(t,e,n,r){this.create({resource:wi(t),data:{libraryId:e,categoryId:n},eventPrefix:"copy:video",callback:r})}},{key:"getLibraries",value:function(t,e){this.get({resource:Oi(t),eventPrefix:"video:libraries:".concat(t),formatData:function(t){return new ei.a(t.data)},callback:e})}},{key:"invalidateCollectionVideos",value:function(t){this.invalidateCache([t.toString()])}},{key:"name",get:function(){return m.a.Video}},{key:"channelName",get:function(){return a.e.VIDEO}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&ai(e.prototype,n),c&&ai(e,c),u}(fr.a),Ri={videoCollection:function(t){return{dataServiceName:m.a.Video,eventName:"".concat(t.toString,":sync"),getData:function(e){return e.getCollectionVideos(t)},getInstance:function(t){return g.a.getInstance(m.a.Video,t)},beforeOnBeforeRender:!0}},getDissocIds:function(t){return"string"==typeof t?"id=".concat(t):t.map((function(t){return"id=".concat(t)})).join("&")}},ki=n(62);function Pi(t){return(Pi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function xi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ti(t,e){return(Ti=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Di(t){var e=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(t){return!1}}();return function(){var n,r=Ai(t);if(e){var o=Ai(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Li(this,n)}}function Li(t,e){return!e||"object"!==Pi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ai(t){return(Ai=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ni,Ii=function(t){return"/api/domain/v2/search/videos?".concat(t,"&with=").concat(a.A.VIDEO_COLLECTION)},ji=function(t){return"/api/domain/v1/search/nav?".concat(t)},Vi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ti(t,e)}(i,t);var e,n,r,o=Di(i);function i(){return _i(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.videoMixinService=g.a.getInstance(a.x.VideoMixin,this)}},{key:"searchVideos",value:function(t,e,n){var r=this;return this.clearCacheAndGet({callback:function(t){return r.videoMixinService.mixinVideoCollectionData(t,null,n)},resource:Ii(t),formatData:function(t){return new ti.a(t.data)},eventPrefix:e.toString()})}},{key:"getDynamicFilters",value:function(t,e){return this.clearCacheAndGet({callback:e,resource:ji(t),formatData:function(t){return new ki.a(t,{parse:!0})},eventPrefix:a.f.SEARCH_FILTERS})}},{key:"name",get:function(){return dr.a.Search}},{key:"channelName",get:function(){return hr.b.SEARCH}}])&&xi(e.prototype,n),r&&xi(e,r),i}(fr.a);function Mi(t){return(Mi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ui(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Fi(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Hi(t,e){return(Hi=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function zi(t){var e=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(t){return!1}}();return function(){var n,r=qi(t);if(e){var o=qi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Bi(this,n)}}function Bi(t,e){return!e||"object"!==Mi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function qi(t){return(qi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t[t.IosApp=1]="IosApp",t[t.AndroidApp=2]="AndroidApp",t[t.WinApp=3]="WinApp",t[t.LibraryPublisher=4]="LibraryPublisher",t[t.ExchangeClient=5]="ExchangeClient",t[t.Online=6]="Online",t[t.Tinder=7]="Tinder",t[t.Cloud247=8]="Cloud247",t[t.Livestream=9]="Livestream",t[t.Curator=10]="Curator",t[t.LibraryEditor=11]="LibraryEditor",t[t.Lite=12]="Lite"}(Ni||(Ni={}));var Gi=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Hi(t,e)}(s,t);var e,n,o,c=zi(s);function s(){return Ui(this,s),c.apply(this,arguments)}return e=s,(n=[{key:"getPendingItem",value:function(t,e){this.clearCacheAndGet({resource:"/api/domain/v2/process/".concat(t),eventPrefix:"pending:item:".concat(t),formatData:function(t){return new r.a.Model(t)},callback:e})}},{key:"getPendingItems",value:function(t){this.clearCacheAndGet({resource:"/api/domain/v2/process?destination=1&status=1&status=-1",eventPrefix:"pending",callback:t})}},{key:"clearPendingItems",value:function(t,e){this.delete({resource:"/api/domain/v2/process?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"clear:pending:".concat(t.join(",")),callback:e})}},{key:"cancelPendingItems",value:function(t,e){this.delete({resource:"/api/domain/v2/process/cancel?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"cancel:pending:".concat(t.join(",")),callback:e})}},{key:"retryPendingItems",value:function(t,e){this.create({resource:"/api/domain/v2/process/retry?".concat(i.map(t,(function(t){return"pendingProcessId=".concat(t)}))),eventPrefix:"retry:pending:".concat(t.join(",")),callback:e,data:null})}},{key:"completeVideoUploads",value:function(t,e,n,r){var o=this,a=this.chain();i.each(n,(function(n){a.create({resource:"/api/domain/v2/process",eventPrefix:"upload",data:{userId:t,customerId:e,libraryId:n.get("libraryId"),categoryId:n.get("folderId"),origin:Ni.Curator,fileUrl:n.get("fileUrl"),video:o.toVideoUploadMetadata(n)},errorHandler:o.alertService.error(Fn.a.getPhrase(o.lang,"processingError",{videoName:Xt.v.escapeExpression(n.get("name"))}))})})),i.isFunction(r)&&a.func(r),a.run()}},{key:"toVideoUploadMetadata",value:function(t){var e=this,n=t.pick(["name","description","dateBroadcast","productionYear","episodeNumber"]);return i.extend(n,{origin:Ni.Curator}),i.each(["rating","series","channel","producers","distributors","productionCompanies","directors","season"],(function(r){return e.setAssoc(r,n,t)})),n}},{key:"setAssoc",value:function(t,e,n){var o=n[t];if(o instanceof r.a.Collection){if(!o.length||1===o.length&&!o.first().id)return;e[t]=o.map((function(t){return t.id}))}else{if(!o||!o.get("id")&&!o.get("name"))return;e[t]=o.get("id")?{id:o.get("id")}:o.pick(["name"])}}},{key:"name",get:function(){return a.g.VideoUpload}},{key:"channelName",get:function(){return a.e.VIDEO_UPLOAD}},{key:"lang",get:function(){return"upload.services"}}])&&Fi(e.prototype,n),o&&Fi(e,o),s}(fr.a),Wi=n(183);function Yi(t){return(Yi="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ji(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $i(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ki(t,e){return(Ki=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Qi(t){var e=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(t){return!1}}();return function(){var n,r=Xi(t);if(e){var o=Xi(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Zi(this,n)}}function Zi(t,e){return!e||"object"!==Yi(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Xi(t){return(Xi=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ta=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ki(t,e)}(i,t);var e,n,r,o=Qi(i);function i(){return Ji(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"uploadBase64Image",value:function(t,e,n){return this.create({resource:"/api/image/upload?type=".concat(e),eventPrefix:a.f.UPLOAD_IMAGE,data:t,formatData:function(t){return new Wi.a(t)},callback:n})}},{key:"name",get:function(){return a.g.ImageUpload}},{key:"channelName",get:function(){return a.e.IMAGE_UPLOAD}}])&&$i(e.prototype,n),r&&$i(e,r),i}(fr.a),ea=n(95);function na(t){return(na="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ra(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ia(t,e){return(ia=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function aa(t){var e=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(t){return!1}}();return function(){var n,r=sa(t);if(e){var o=sa(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ca(this,n)}}function ca(t,e){return!e||"object"!==na(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sa(t){return(sa=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ua=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ia(t,e)}(i,t);var e,n,r,o=aa(i);function i(){return ra(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return ea.a}}])&&oa(e.prototype,n),r&&oa(e,r),i}(r.a.Collection);function la(t){return(la="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function fa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function pa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ha(t,e){return(ha=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function da(t){var e=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(t){return!1}}();return function(){var n,r=ga(t);if(e){var o=ga(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ya(this,n)}}function ya(t,e){return!e||"object"!==la(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ga(t){return(ga=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ba=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ha(t,e)}(i,t);var e,n,r,o=da(i);function i(){return fa(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return ea.b}}])&&pa(e.prototype,n),r&&pa(e,r),i}(r.a.Collection),ma=n(149);function va(t){return(va="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Sa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function wa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Oa(t,e){return(Oa=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ea(t){var e=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(t){return!1}}();return function(){var n,r=Ra(t);if(e){var o=Ra(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Ca(this,n)}}function Ca(t,e){return!e||"object"!==va(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ra(t){return(Ra=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ka=function(){return"/api/domain/v1/staffrequests?masterObjectType=".concat(ie.i.Video,"&status=").concat(ma.a.Pending)},Pa=function(t){return"/api/domain/v1/staffrequests/".concat(t)},_a=function(){return"/api/domain/v1/staffrequests"},xa=function(t){return"/api/domain/v1/staffrequests/".concat(t,"/messages")},Ta=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Oa(t,e)}(c,t);var e,n,r,i=Ea(c);function c(){return Sa(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"clearRequestCache",value:function(){this.invalidateCache([ni.a.STAFF_REQUESTS]),o.Radio.channel(this.channelName).trigger("cache:cleared")}},{key:"getStaffRequests",value:function(t){return this.get({resource:ka(),formatData:function(t){return new ua(t,{parse:!0})},expiryTime:so.a.STANDARD,eventPrefix:ni.a.STAFF_REQUESTS,callback:t})}},{key:"getStaffRequest",value:function(t,e){return this.get({resource:Pa(t),formatData:function(t){return new ea.a(t,{parse:!0})},expiryTime:so.a.STANDARD,eventPrefix:"".concat(ni.a.STAFF_REQUEST_BY_ID,":").concat(t),callback:e})}},{key:"approveStaffRequest",value:function(t,e,n,r){var o={id:t,status:ma.a.Approved,metadata:{destinationLibraryId:e,destinationCategoryId:n}};return this.update({data:o,resource:_a(),eventPrefix:"".concat(ni.a.STAFF_REQUESTS,":").concat(t,":update"),invalidationKeys:[ni.a.VIDEOS,ni.a.STAFF_REQUESTS,ni.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"approveRequestSuccess")),callback:r})}},{key:"rejectStaffRequest",value:function(t,e,n){var r={id:t,status:ma.a.Rejected,message:e};return this.update({data:r,resource:_a(),eventPrefix:"".concat(ni.a.STAFF_REQUESTS,":").concat(t,":update"),invalidationKeys:[ni.a.STAFF_REQUESTS,ni.a.STAFF_REQUEST_BY_ID],successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"rejectRequestSuccess")),callback:n})}},{key:"getMessages",value:function(t,e){return this.get({resource:xa(t),formatData:function(t){return new ba(t)},expiryTime:so.a.STANDARD,eventPrefix:"".concat(ni.a.STAFF_REQUEST_MESSAGES,":").concat(t),callback:e})}},{key:"name",get:function(){return"StaffRequestDataService"}},{key:"channelName",get:function(){return a.e.STAFF_REQUEST}},{key:"lang",get:function(){return"staffRequests.services"}}])&&wa(e.prototype,n),r&&wa(e,r),c}(fr.a),Da=n(133);function La(t){return(La="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Aa(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Na(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ia(t,e){return(Ia=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ja(t){var e=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(t){return!1}}();return function(){var n,r=Ma(t);if(e){var o=Ma(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Va(this,n)}}function Va(t,e){return!e||"object"!==La(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ma(t){return(Ma=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ua=function(t){return"/api/domain/v2/objects/".concat(t,"/tags")},Fa=function(t,e){return"/api/domain/v2/objects/".concat(e,"/videos/").concat(t)},Ha=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ia(t,e)}(i,t);var e,n,r,o=ja(i);function i(){return Aa(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createTag",value:function(t,e,n){if(t&&e)return this.create({resource:Ua(e),eventPrefix:"".concat(a.f.CREATE_TAG,":").concat(Xt.v.slugify(t)),formatData:function(t){return new Da.a(t)},invalidationKeys:["".concat(e)],data:{name:t},callback:n})}},{key:"dissociateTag",value:function(t,e,n){if(t&&e)return this.delete({resource:Fa(e,t),eventPrefix:"".concat(a.f.DISSOC_TAG,":").concat(t),invalidationKeys:["".concat(e)],callback:n})}},{key:"name",get:function(){return a.g.Tags}},{key:"channelName",get:function(){return a.e.TAG}}])&&Na(e.prototype,n),r&&Na(e,r),i}(fr.a),za=n(116),Ba=n(98);function qa(t){return(qa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ga(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wa(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Ya(t,e){return(Ya=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ja(t){var e=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(t){return!1}}();return function(){var n,r=Ka(t);if(e){var o=Ka(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $a(this,n)}}function $a(t,e){return!e||"object"!==qa(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ka(t){return(Ka=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Qa=function(){return"/api/domain/v1/series"},Za=function(t){return"/api/domain/v2/objects/".concat(t,"?query=").concat(a.A.SERIES)},Xa=function(t){return"/api/domain/v2/objects/".concat(t,"/seasons")},tc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Ya(t,e)}(i,t);var e,n,r,o=Ja(i);function i(){return Ga(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createSeries",value:function(t,e){if(t){var n=Xt.v.slugify(t);return this.create({resource:Qa(),eventPrefix:"".concat(a.f.CREATE_SERIES,":").concat(n),formatData:function(t){return new za.a(t)},invalidationKeys:["".concat(n)],data:{name:t},callback:e})}}},{key:"getSeries",value:function(t,e){return this.get({callback:e,expiryTime:a.d.STANDARD,resource:Za(t),formatData:function(t){return new za.a(t)},eventPrefix:"".concat(a.f.SERIES,":").concat(t)})}},{key:"createSeason",value:function(t,e,n){if(t.number&&e)return this.create({data:t,resource:Xa(e),eventPrefix:"".concat(a.f.CREATE_SEASON,":").concat(e),formatData:function(t){return new Ba.a(t)},callback:n})}},{key:"name",get:function(){return a.g.Series}},{key:"channelName",get:function(){return a.e.SERIES}}])&&Wa(e.prototype,n),r&&Wa(e,r),i}(fr.a),ec=n(297);function nc(t){return(nc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function rc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function oc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ic(t,e){return(ic=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ac(t){var e=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(t){return!1}}();return function(){var n,r=sc(t);if(e){var o=sc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return cc(this,n)}}function cc(t,e){return!e||"object"!==nc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function sc(t){return(sc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var uc=function(){return"/api/domain/v2/me/ratings"},lc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ic(t,e)}(i,t);var e,n,r,o=ac(i);function i(){return rc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getAllRatings",value:function(t){return this.get({resource:uc(),formatData:function(t){return new ec.a(t)},expiryTime:so.a.STANDARD,eventPrefix:"".concat(a.f.RATINGS),callback:t})}},{key:"name",get:function(){return m.a.Ratings}},{key:"channelName",get:function(){return a.e.RATINGS}}])&&oc(e.prototype,n),r&&oc(e,r),i}(fr.a),fc=n(189),pc=n(113);function hc(t){return(hc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function dc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function yc(t,e){return(yc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gc(t){var e=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(t){return!1}}();return function(){var n,r=mc(t);if(e){var o=mc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bc(this,n)}}function bc(t,e){return!e||"object"!==hc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function mc(t){return(mc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var vc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yc(t,e)}(n,t);var e=gc(n);function n(){return dc(this,n),e.apply(this,arguments)}return n}(r.a.Model),Sc=n(105);function wc(t){return(wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Oc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ec(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cc(t,e){return(Cc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Rc(t){var e=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(t){return!1}}();return function(){var n,r=Pc(t);if(e){var o=Pc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kc(this,n)}}function kc(t,e){return!e||"object"!==wc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pc(t){return(Pc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _c,xc=function(t){return"/api/domain/v2/objects/".concat(t,"/chapters")},Tc=function(t){return"/api/domain/v2/objects/".concat(t)},Dc=function(t){return"/api/domain/v2/objects/".concat(t)},Lc=function(t){return"/api/domain/v1/concatenate?masterId=".concat(t)},Ac=function(t){return"/api/domain/v1/concatenate?masterId=".concat(t)},Nc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cc(t,e)}(c,t);var e,n,r,o=Rc(c);function c(){return Oc(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"clearVideoCache",value:function(t){this.invalidateCache(["".concat(t)])}},{key:"createChapter",value:function(t,e,n,r){if(t&&e&&i.isNumber(n))return this.create({resource:xc(t),eventPrefix:"".concat(a.f.CREATE_CHAPTER,":").concat(Xt.v.slugify(e)),formatData:function(t){return new pc.a(t)},invalidationKeys:["".concat(t)],data:{name:e,startTime:n},callback:r})}},{key:"updateChapter",value:function(t,e,n,r,o){if(t&&e&&i.isNumber(n))return this.update({resource:Tc(t),eventPrefix:"".concat(a.f.UPDATE_CHAPTER,":").concat(t),formatData:function(t){return new pc.a(t)},invalidationKeys:["".concat(t),"".concat(Xt.v.slugify(e))],data:{name:e,startTime:n},successHandler:this.alertService.success(o||Fn.a.getPhrase(this.lang,"chapterUpdated")),callback:r})}},{key:"deleteChapter",value:function(t,e){if(t)return this.delete({resource:Dc(t),eventPrefix:"".concat(a.f.DELETE_CHAPTER),invalidationKeys:["".concat(t)],callback:e})}},{key:"getConcatenateRequest",value:function(t,e){var n=this;return this.clearCacheAndGet({resource:Lc(t),eventPrefix:"".concat(a.f.CONCATENATE_STATUS,":").concat(t),formatData:function(t){return new vc(t,{parse:!0})},callback:function(r){r.get("status")===Sc.a.SingleFile&&n.clearVideoCache(t),i.isFunction(e)&&e(r)},errorHandler:!1})}},{key:"addConcatenateRequest",value:function(t,e){return this.create({resource:Ac(t),formatData:function(t){return new vc(t)},eventPrefix:"".concat(a.f.CONCATENATE_CHAPTERS,":").concat(t),invalidationKeys:["".concat(a.f.CONCATENATE_STATUS,":").concat(t)],data:null,callback:e})}},{key:"name",get:function(){return a.g.Chapter}},{key:"channelName",get:function(){return a.e.CHAPTER}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Ec(e.prototype,n),r&&Ec(e,r),c}(fr.a);function Ic(t){return(Ic="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function jc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Vc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Mc(t,e){return(Mc=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Uc(t){var e=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(t){return!1}}();return function(){var n,r=Hc(t);if(e){var o=Hc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Fc(this,n)}}function Fc(t,e){return!e||"object"!==Ic(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Hc(t){return(Hc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}!function(t){t.CollectionPdf="collection_pdf",t.CustomListPdf="custom_list_pdf"}(_c||(_c={}));var zc=function(t){return"/api/domain/v2/export/formats/pdf/types/".concat(t)},Bc=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Mc(t,e)}(c,t);var e,n,r,o=Uc(c);function c(){return jc(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"generateCollectionPdf",value:function(t,e,n,r,o){var c=i.extend({},this.getBaseExportData(n),{libraryId:t,collectionId:e});return r&&(c=i.extend({},c,{sortType:Xt.p.MapSortTypeToExportServiceSortType(r)})),this.create({callback:o,resource:zc(_c.CollectionPdf),data:c,eventPrefix:"".concat(a.f.GENERATE_COLLECTION_PDF,":").concat(e),successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Fn.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"generateCustomListPdf",value:function(t,e,n,r,o){var c=i.extend({},this.getBaseExportData(r),{title:t,header:e,videoIds:n});return this.create({callback:o,resource:zc(_c.CustomListPdf),data:c,eventPrefix:a.f.GENERATE_CUSTOM_PDF,successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"generatePdfSuccess")),errorHandler:this.alertService.error(Fn.a.getPhrase(this.lang,"generatePdfError"))})}},{key:"getBaseExportData",value:function(t){return{firstName:t.get("givenName"),lastName:t.get("familyName"),countryCode:t.get("countryCode"),userId:t.id,customerId:t.get("customerId"),userEmail:t.get("email")}}},{key:"name",get:function(){return a.g.Export}},{key:"channelName",get:function(){return a.e.EXPORT}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Vc(e.prototype,n),r&&Vc(e,r),c}(fr.a),qc=n(150),Gc=n(148);function Wc(t){return(Wc="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Yc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Jc(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $c(t,e){return($c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Kc(t){var e=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(t){return!1}}();return function(){var n,r=Zc(t);if(e){var o=Zc(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qc(this,n)}}function Qc(t,e){return!e||"object"!==Wc(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zc(t){return(Zc=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Xc,ts=function(t){return"".concat("/api/domain","/v1/localcaches/videos?videoId=").concat(t.join("&videoId="))},es=function(t){return"".concat("/api/localcache","/v1/customers/").concat(t,"/devices")},ns=function(){return"".concat("/api/localcache","/v1/downloads/videos")};!function(t){t[t.MasterObject=0]="MasterObject",t[t.TrackingCode=1]="TrackingCode"}(Xc||(Xc={}));var rs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$c(t,e)}(i,t);var e,n,r,o=Kc(i);function i(){return Yc(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getDownloadsForVideos",value:function(t,e){return this.get({resource:ts(t),formatData:function(t){return new Gc.a(t)},eventPrefix:"".concat(a.f.LOCAL_CACHE_DOWNLOADS,":").concat(t.join(",")),expiryTime:so.a.STANDARD,callback:e})}},{key:"getDevices",value:function(t,e){return this.get({resource:es(t),formatData:function(t){return new qc.a(t)},eventPrefix:a.f.LOCAL_CACHE_DEVICES,expiryTime:so.a.STANDARD,callback:e})}},{key:"downloadVideoToLocalCache",value:function(t,e,n){this.create({resource:ns(),data:this.getDownloadVideoData(t,e),eventPrefix:a.f.ADD_VIDEO_TO_LOCAL_CACHE,invalidationKeys:[a.f.LOCAL_CACHE_DOWNLOADS],callback:n,successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"localCacheAddSuccess")),errorHandler:this.alertService.error({useXHR:!0})})}},{key:"getDownloadVideoData",value:function(t,e){return{deviceId:t,videoId:e,videoIdType:Xc.MasterObject,expiresOn:Ct().add(14,"days")}}},{key:"name",get:function(){return a.g.LocalCache}},{key:"channelName",get:function(){return a.e.LOCAL_CACHE}},{key:"lang",get:function(){return"shared.services"}}])&&Jc(e.prototype,n),r&&Jc(e,r),i}(fr.a);function os(t){return(os="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function is(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function as(t,e){return(as=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function cs(t){var e=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(t){return!1}}();return function(){var n,r=us(t);if(e){var o=us(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ss(this,n)}}function ss(t,e){return!e||"object"!==os(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function us(t){return(us=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ls=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&as(t,e)}(n,t);var e=cs(n);function n(){return is(this,n),e.apply(this,arguments)}return n}(r.a.Model);function fs(t){return(fs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ps(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hs(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ds(t,e){return(ds=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ys(t){var e=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(t){return!1}}();return function(){var n,r=bs(t);if(e){var o=bs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return gs(this,n)}}function gs(t,e){return!e||"object"!==fs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function bs(t){return(bs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ms=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ds(t,e)}(i,t);var e,n,r,o=ys(i);function i(){return ps(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"model",get:function(){return ls}}])&&hs(e.prototype,n),r&&hs(e,r),i}(r.a.Collection);function vs(t){return(vs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ss(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ws(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Os(t,e){return(Os=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Es(t){var e=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(t){return!1}}();return function(){var n,r=Rs(t);if(e){var o=Rs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Cs(this,n)}}function Cs(t,e){return!e||"object"!==vs(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Rs(t){return(Rs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ks=function(t){var e=["type=".concat(ie.k.RestrictedByAdmin),"objectTypeId=".concat(ie.i.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return t&&e.push("page=".concat(t)),"/api/domain/v1/restrictedobjects?".concat(e.join("&"))},Ps=function(t){var e=["type=".concat(ie.k.RestrictedByAdmin),"objectTypeId=".concat(ie.i.Video)],n="";return t&&t.forEach((function(t){return n+="&objectId=".concat(t)})),"/api/domain/v1/restrictedobjects?".concat(e.join("&")).concat(n)},_s=function(){return"/api/domain/v1/restrictedobjects"},xs=function(t){return"/api/domain/v1/restrictedobjects?objectId=".concat(t,"&objectTypeId=").concat(ie.i.Video)},Ts=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Os(t,e)}(i,t);var e,n,r,o=Es(i);function i(){return Ss(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"getPaginationCursors",value:function(t){return this.getCursors("".concat(a.f.RESTRICTED_VIDEOS,":").concat(t))}},{key:"getRestrictedVideos",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"1",e=arguments.length>1?arguments[1]:void 0;return this.get({callback:e,resource:ks(t),formatData:function(t){return new ti.a(t,{parse:!0})},expiryTime:so.a.STANDARD,eventPrefix:"".concat(a.f.RESTRICTED_VIDEOS,":").concat(t)})}},{key:"getVideoRestrictions",value:function(t,e,n){var r=e?"".concat(a.f.RESTRICTED_OBJECTS,":").concat(e.toString()):"".concat(a.f.RESTRICTED_OBJECTS,":").concat(t.join(","));return this.get({callback:n,resource:Ps(t),formatData:function(t){return new ms(t)},expiryTime:so.a.STANDARD,eventPrefix:r})}},{key:"updateVideoRestriction",value:function(t,e,n,r,o){var i={groupId:e,objectId:t,objectTypeId:11,type:2,metadata:null,customerId:n,restrictedBy:r,restrictedByCustomerId:n};this.create({callback:o,resource:_s(),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,data:i,invalidationKeys:[a.f.RESTRICTED_VIDEOS,a.f.VIDEOS_TO_REVIEW,a.f.RESTRICTED_OBJECTS],successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"restrictionUpdated")),errorHandler:this.alertService.error(Fn.a.getPhrase(this.lang,"restrictionUpdateError"))})}},{key:"deleteVideoRestriction",value:function(t,e){this.delete({callback:e,resource:xs(t),eventPrefix:a.f.UPDATE_VIDEO_RESTRICTION,invalidationKeys:["".concat(a.f.VIDEOS,":restricted"),a.f.RESTRICTED_VIDEOS,a.f.RESTRICTED_OBJECTS,a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"restrictionRemoved"))})}},{key:"name",get:function(){return a.g.RestrictedVideo}},{key:"channelName",get:function(){return a.e.RESTRICTED_VIDEO}},{key:"lang",get:function(){return"shared.services"}}])&&ws(e.prototype,n),r&&ws(e,r),i}(fr.a),Ds=n(134);function Ls(t){return(Ls="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function As(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ns(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Is(t,e){return(Is=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function js(t){var e=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(t){return!1}}();return function(){var n,r=Ms(t);if(e){var o=Ms(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Vs(this,n)}}function Vs(t,e){return!e||"object"!==Ls(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ms(t){return(Ms=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function Us(t){return function(t){if(Array.isArray(t))return Fs(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return Fs(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fs(t,e)}(t)||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 Fs(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var Hs=function(t,e,n,r,o){var i=t.map((function(t){return"libraryId=".concat(t)})),c=[].concat(Us(i),["from=".concat(e),"to=".concat(n)]);o&&c.push("offset=".concat(o));var s=a.A.HOSTED_VIDEO_COLLECTION;return r&&c.push.apply(c,Us(r.map((function(t){return"categoryId=".concat(t)})))),"/api/domain/v2/videos/recent?query=".concat(s,"&").concat(c.join("&"))},zs=function(t,e,n){var r=t.map((function(t){return"libraryId=".concat(t)})),o=[].concat(Us(r),["from=".concat(e),"to=".concat(n)]);return"/api/domain/v2/categories/recent?".concat(o.join("&"))},Bs=function(){var t=["type=".concat(ie.k.TermUpdate),"objectTypeId=".concat(ie.i.Video),"with=".concat(a.A.VIDEO_COLLECTION)];return"/api/domain/v1/restrictedobjects/all?".concat(t.join("&"))},qs=function(){var t=["type=".concat(ie.k.TermUpdate),"objectTypeId=".concat(ie.i.Video)];return"/api/domain/v1/restrictedobjects?".concat(t.join("&"))},Gs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Is(t,e)}(c,t);var e,n,r,o=js(c);function c(){return As(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.videoMixinService=g.a.getInstance(a.x.VideoMixin,this)}},{key:"getVideoCollectionCursors",value:function(t){return this.getCursors(t.toString())}},{key:"getRecentVideos",value:function(t,e){var n=this,r=t.toParams();return this.get({resource:Hs(r.libraryIds,r.from,r.to,r.subjectIds,r.cursor),formatData:function(t){return new ti.a(t,{parse:!0})},expiryTime:so.a.STANDARD,eventPrefix:t.toString(),callback:function(r){return n.videoMixinService.mixinVideoCollectionData(r,t,e)}})}},{key:"getRecentVideosAllPages",value:function(t,e){var n,r=this,o=t.toParams(),c=new ti.a;this.get({resource:Hs(o.libraryIds,o.from,o.to,o.subjectIds),formatData:function(t){return new ti.a(t,{parse:!0})},expiryTime:so.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString()),callback:function s(u){c.add(u.models);var l="".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString());n&&n.next&&(l+=":".concat(n.next)),(n=r.getCursors(l))&&n.next?r.get({resource:Hs(o.libraryIds,o.from,o.to,o.subjectIds,n.next),formatData:function(t){return new ti.a(t,{parse:!0})},expiryTime:so.a.STANDARD,eventPrefix:"".concat(a.f.RECENT_VIDEOS_ALL_PAGES,":").concat(t.toString(),":").concat(n.next),callback:s}):i.isFunction(e)&&e(c)}})}},{key:"getRecentVideoSubjects",value:function(t,e){var n=t.toParams();return this.get({resource:zs(n.libraryIds,n.from,n.to),formatData:function(t){return new Ds.a(t)},expiryTime:so.a.STANDARD,eventPrefix:t.toString(),callback:e})}},{key:"getVideosToReview",value:function(t){return this.get({callback:t,resource:Bs(),formatData:function(t){return new ti.a(t)},expiryTime:so.a.STANDARD,eventPrefix:a.f.VIDEOS_TO_REVIEW})}},{key:"approveAllVideos",value:function(t){return this.delete({callback:t,resource:qs(),eventPrefix:"".concat(a.f.VIDEOS_TO_REVIEW,":approve:all"),invalidationKeys:[a.f.VIDEOS_TO_REVIEW],successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"approveAllVideosSuccess"))})}},{key:"name",get:function(){return a.g.ContentUpdates}},{key:"channelName",get:function(){return a.e.CONTENT_UPDATES}},{key:"lang",get:function(){return"contentUpdates.services"}}])&&Ns(e.prototype,n),r&&Ns(e,r),c}(fr.a);function Ws(t){return(Ws="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ys(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Js(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function $s(t,e){return($s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ks(t){var e=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(t){return!1}}();return function(){var n,r=Zs(t);if(e){var o=Zs(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Qs(this,n)}}function Qs(t,e){return!e||"object"!==Ws(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Zs(t){return(Zs=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Xs=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$s(t,e)}(c,t);var e,n,o,i=Ks(c);function c(){return Ys(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"createDownloadToken",value:function(t,e){this.create({data:{objectId:t},resource:"/api/downloadproxy/api/tokens",formatData:function(t){return new r.a.Model(t)},eventPrefix:"token:".concat(t),expiryTime:a.d.STANDARD,errorHandler:this.alertService.error(Fn.a.getPhrase(this.lang,"linkRetrievalError")),callback:e})}},{key:"name",get:function(){return a.g.DownloadProxy}},{key:"channelName",get:function(){return a.e.DOWNLOAD_PROXY}},{key:"lang",get:function(){return"shared.services"}}])&&Js(e.prototype,n),o&&Js(e,o),c}(fr.a),tu=n(107);function eu(t){return(eu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function nu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ru(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ou(t,e){return(ou=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function iu(t){var e=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(t){return!1}}();return function(){var n,r=cu(t);if(e){var o=cu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return au(this,n)}}function au(t,e){return!e||"object"!==eu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function cu(t){return(cu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var su=function(t){return"/api/domain/v2/objects/".concat(t,"/resources")},uu=function(t){return"/api/domain/v2/objects/".concat(t)},lu=function(t){return"/api/domain/v2/objects/".concat(t)},fu=function(t){return"/api/domain/v2/objects/".concat(t)},pu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ou(t,e)}(c,t);var e,n,r,o=iu(c);function c(){return nu(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"addResource",value:function(t,e,n){var r=this,o=this.chain();i.each(e,(function(i,c){o.create({resource:su(t),eventPrefix:"".concat(a.f.CREATE_RESOURCE),formatData:function(t){return new tu.a(t)},callback:n,data:i,successHandler:c+1===e.length&&r.alertService.success(Fn.a.getPhrase(r.lang,"resourceUploadSuccess"))})})),o.run()}},{key:"getResource",value:function(t,e){return this.get({resource:uu(t),formatData:function(t){return new tu.a(t)},eventPrefix:"".concat(a.f.RESOURCE,":").concat(t),callback:e})}},{key:"updateResource",value:function(t,e,n){var r=this,o=e.pick(["id","name"]);this.update({resource:lu(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_RESOURCE,":").concat(o.id),callback:function(e){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n(e)},successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"resourceUpdateSuccess"))})}},{key:"deleteResource",value:function(t,e,n){var r=this;this.delete({resource:fu(e),eventPrefix:"".concat(a.f.DELETE_RESOURCE,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"resourceRemoveSuccess"))})}},{key:"name",get:function(){return a.g.Resource}},{key:"channelName",get:function(){return a.e.RESOURCE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&ru(e.prototype,n),r&&ru(e,r),c}(fr.a),hu=n(142);function du(t){return(du="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function yu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function bu(t,e){return(bu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function mu(t){var e=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(t){return!1}}();return function(){var n,r=Su(t);if(e){var o=Su(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return vu(this,n)}}function vu(t,e){return!e||"object"!==du(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Su(t){return(Su=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var wu=function(t){return"/api/domain/v2/objects/".concat(t,"/subtitles")},Ou=function(t){return"/api/domain/v2/objects/".concat(t)},Eu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&bu(t,e)}(i,t);var e,n,r,o=mu(i);function i(){return yu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"addSubtitle",value:function(t,e,n){this.create({resource:wu(t),eventPrefix:"".concat(a.f.CREATE_SUBTITLE),formatData:function(t){return new hu.a(t)},callback:n,data:e,successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"subtitleUploadSuccess"))})}},{key:"deleteSubtitle",value:function(t,e,n){var r=this;this.delete({resource:Ou(e),eventPrefix:"".concat(a.f.DELETE_SUBTITLE,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"subtitleRemoveSuccess"))})}},{key:"name",get:function(){return a.g.Subtitle}},{key:"channelName",get:function(){return a.e.SUBTITLE}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&gu(e.prototype,n),r&&gu(e,r),i}(fr.a),Cu=n(114);function Ru(t){return(Ru="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ku(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _u(t,e){return(_u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xu(t){var e=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(t){return!1}}();return function(){var n,r=Du(t);if(e){var o=Du(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tu(this,n)}}function Tu(t,e){return!e||"object"!==Ru(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Du(t){return(Du=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Lu=function(t){return"/api/domain/v2/objects/".concat(t,"/links")},Au=function(t){return"/api/domain/v2/objects/".concat(t)},Nu=function(t){return"/api/domain/v2/objects/".concat(t)},Iu=function(t){return"/api/domain/v2/objects/".concat(t)},ju=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_u(t,e)}(i,t);var e,n,r,o=xu(i);function i(){return ku(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"addLink",value:function(t,e,n){this.create({resource:Lu(t),eventPrefix:a.f.CREATE_LINK,formatData:function(t){return new Cu.a(t)},callback:n,data:e,successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"linkUploadSuccess")),errorHandler:this.alertService.error(Fn.a.getPhrase(this.lang,"linkUploadError"))})}},{key:"getLink",value:function(t,e){return this.get({resource:Au(t),formatData:function(t){return new Cu.a(t)},eventPrefix:"".concat(a.f.LINK,":").concat(t),callback:e})}},{key:"updateLink",value:function(t,e,n){var r=this,o=e.pick(["id","name"]);this.update({resource:Nu(o.id),data:o,eventPrefix:"".concat(a.f.UPDATE_LINK,":").concat(o.id),callback:function(e){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n(e)},successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"linkUpdateSuccess")),errorHandler:this.alertService.error(Fn.a.getPhrase(this.lang,"linkUpdateError"))})}},{key:"deleteLink",value:function(t,e,n){var r=this;this.delete({resource:Iu(e),eventPrefix:"".concat(a.f.DELETE_LINK,":").concat(e),callback:function(){r.invalidateCache(["".concat(a.f.VIDEOS,":").concat(t)]),n&&n()},successHandler:this.alertService.success(Fn.a.getPhrase(this.lang,"linkRemoveSuccess")),errorHandler:this.alertService.error(Fn.a.getPhrase(this.lang,"linkRemoveError"))})}},{key:"name",get:function(){return a.g.Link}},{key:"channelName",get:function(){return a.e.LINK}},{key:"lang",get:function(){return"libraryEditor.services"}}])&&Pu(e.prototype,n),r&&Pu(e,r),i}(fr.a);function Vu(t){return(Vu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Mu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Uu(t,e){return(Uu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Fu(t){var e=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(t){return!1}}();return function(){var n,r=zu(t);if(e){var o=zu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Hu(this,n)}}function Hu(t,e){return!e||"object"!==Vu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function zu(t){return(zu=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Bu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Uu(t,e)}(n,t);var e=Fu(n);function n(){return Mu(this,n),e.apply(this,arguments)}return n}(r.a.Model);function qu(t){return(qu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Gu(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Wu(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Yu(t,e){return(Yu=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Ju(t){var e=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(t){return!1}}();return function(){var n,r=Ku(t);if(e){var o=Ku(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return $u(this,n)}}function $u(t,e){return!e||"object"!==qu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ku(t){return(Ku=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Qu=function(){return"/api/domain/v2/people"},Zu=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Yu(t,e)}(i,t);var e,n,r,o=Ju(i);function i(){return Gu(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createPerson",value:function(t,e){if(t)return this.create({resource:Qu(),eventPrefix:a.f.CREATE_PERSON,formatData:function(t){return new Bu(t)},data:{name:t},callback:e})}},{key:"name",get:function(){return a.g.Person}},{key:"channelName",get:function(){return a.e.PERSON}}])&&Wu(e.prototype,n),r&&Wu(e,r),i}(fr.a);function Xu(t){return(Xu="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function el(t,e){return(el=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function nl(t){var e=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(t){return!1}}();return function(){var n,r=ol(t);if(e){var o=ol(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return rl(this,n)}}function rl(t,e){return!e||"object"!==Xu(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ol(t){return(ol=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var il=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&el(t,e)}(n,t);var e=nl(n);function n(){return tl(this,n),e.apply(this,arguments)}return n}(r.a.Model);function al(t){return(al="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function sl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ul(t,e){return(ul=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ll(t){var e=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(t){return!1}}();return function(){var n,r=pl(t);if(e){var o=pl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return fl(this,n)}}function fl(t,e){return!e||"object"!==al(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pl(t){return(pl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var hl=function(){return"/api/domain/v2/companies"},dl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ul(t,e)}(i,t);var e,n,r,o=ll(i);function i(){return cl(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"createCompany",value:function(t,e){if(t)return this.create({resource:hl(),eventPrefix:a.f.CREATE_COMPANY,formatData:function(t){return new il(t)},data:{name:t},callback:e})}},{key:"name",get:function(){return a.g.Company}},{key:"channelName",get:function(){return a.e.COMPANY}}])&&sl(e.prototype,n),r&&sl(e,r),i}(fr.a);function yl(t){return(yl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function gl(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bl(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ml(t,e){return(ml=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function vl(t){var e=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(t){return!1}}();return function(){var n,r=wl(t);if(e){var o=wl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Sl(this,n)}}function Sl(t,e){return!e||"object"!==yl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function wl(t){return(wl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ol=function(t){return"/api/domain/v2/objects/".concat(t)},El=function(t){return"/api/domain/v2/objects/".concat(t,"/fields")},Cl=function(t){return"/api/domain/v2/objects/".concat(t)},Rl=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ml(t,e)}(c,t);var e,n,r,o=vl(c);function c(){return gl(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"updateField",value:function(t,e){this.update({resource:Ol(t.id),eventPrefix:"".concat(a.f.UPDATE_FIELD,":").concat(t.id),data:t,callback:e})}},{key:"addField",value:function(t,e,n){var r=i.omit(e,"id");this.create({resource:El(t),eventPrefix:a.f.ADD_FIELD,data:r,callback:n})}},{key:"deleteField",value:function(t,e){this.delete({resource:Cl(t),eventPrefix:a.f.DELETE_FIELD,callback:e})}},{key:"name",get:function(){return a.g.Fields}},{key:"channelName",get:function(){return a.e.FIELDS}}])&&bl(e.prototype,n),r&&bl(e,r),c}(fr.a);var kl=n(127),Pl=n(374),_l=n.n(Pl),xl=n(104),Tl=n(375),Dl=n.n(Tl);function Ll(t){return(Ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Al(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Nl(t,e){return(Nl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Il(t){var e=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(t){return!1}}();return function(){var n,r=Vl(t);if(e){var o=Vl(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return jl(this,n)}}function jl(t,e){return!e||"object"!==Ll(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Vl(t){return(Vl=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ml=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Nl(t,e)}(i,t);var e,n,r,o=Il(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return{currentYear:(new Date).getFullYear(),version:this.options.version}}},{key:"name",get:function(){return"PageFooterComponent"}},{key:"template",get:function(){return Dl.a}},{key:"lang",get:function(){return"shared.pageFooter"}},{key:"className",get:function(){return"text-center py-3 text-muted"}}])&&Al(e.prototype,n),r&&Al(e,r),i}(r.a.Component),Ul=n(124),Fl=n(132),Hl=n(412),zl=n(413),Bl=n(87),ql=n(63),Gl=n(187),Wl=n(410),Yl=n.n(Wl),Jl=n(411),$l=n.n(Jl);function Kl(t){return(Kl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ql(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zl(t,e){return(Zl=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xl(t){var e=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(t){return!1}}();return function(){var n,r=ef(t);if(e){var o=ef(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return tf(this,n)}}function tf(t,e){return!e||"object"!==Kl(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function ef(t){return(ef=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var nf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zl(t,e)}(s,t);var e,n,o,c=Xl(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),c.call(this,t)}return e=s,(n=[{key:"initialize",value:function(){this.initializeInstances(),this.bindListeners()}},{key:"initializeInstances",value:function(){this.migrationVideoDataService=g.a.getInstance(a.g.MigrationVideo,this)}},{key:"bindListeners",value:function(){this.listenTo(a.e.LIBRARY,"library:created",this.render),this.listenTo(a.e.LIBRARY,"library:deleted",this.onLibraryDeted),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.render),this.listenTo(Gl.a.LIBRARY_STATUS,"status:changed",this.destroy),this.listenTo(E.a.SHELL,r.a.EventNames.ROUTE,this.onRoute)}},{key:"onLibraryDeted",value:function(){this.libraries.length||this.$el.empty()}},{key:"onRoute",value:function(){r.a.AppLinkHelper.getCurrentAppLink().application===a.b.MIGRATION_WIZARD&&this.render()}},{key:"isDisabled",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink();if(t.application!==a.b.MIGRATION_WIZARD)return!1;var e=[a.a.MigrationWizard.HOME,a.a.MigrationWizard.SELECTED,a.a.MigrationWizard.REMIGRATE_VIDEO,a.a.MigrationWizard.SHOW_PUBLISHER_VIDEO,a.a.MigrationWizard.MIGRATION_ERRORS];return!i.contains(e,t.action)}},{key:"clearTooltip",value:function(){if(this.isAttached()){var t=this.getUI("makeAvailable");t instanceof jQuery&&t.tooltip("dispose")}}},{key:"onBeforeRender",value:function(){return this.clearTooltip(),this.customerMetadata=this.migrationVideoDataService.getCustomerMetadata(),!(!this.customerMetadata||!this.libraries.length||this.libraries.any((function(t){return t.get("status")!==ql.a.Draft}))||se.a.isPublishingLibraries(this.customerMetadata)||se.a.librariesPublished(this.customerMetadata))}},{key:"viewOptions",value:function(){var t=this.isDisabled();return{styles:Yl.a,disabled:t}}},{key:"name",get:function(){return"PublishLibraryBannerView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return $l.a}},{key:"behaviors",get:function(){return[{behaviorClass:Bl.a,selector:".make-available"}]}},{key:"lang",get:function(){return"migrationWizard.publishLibraryBanner"}},{key:"elements",get:function(){return{makeAvailable:".make-available"}}},{key:"appLinks",get:function(){return this.isDisabled()?{}:{".make-available":{application:this.options.application,action:a.a.Shared.MAKE_LIBRARY_AVAILABLE}}}},{key:"requiredResources",get:function(){return{libraries:Bo.b.libraries}}}])&&Ql(e.prototype,n),o&&Ql(e,o),s}(r.a.View),rf=n(31),of=n(32);function af(t){return(af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function cf(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function sf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function uf(t,e){return(uf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function lf(t){var e=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(t){return!1}}();return function(){var n,r=pf(t);if(e){var o=pf(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ff(this,n)}}function ff(t,e){return!e||"object"!==af(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function pf(t){return(pf=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var hf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&uf(t,e)}(s,t);var e,n,o,c=lf(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),c.call(this,t)}return e=s,o=[{key:"getCacheKey",value:function(t){var e="".concat(this.name),n=i.omit(t,["application","selectedNavItem"]),r=[];return i.each(i.keys(n),(function(t){r.push("".concat(t,":").concat(n[t]))})),r.length&&(r.sort(),e+=":".concat(r.join(":"))),e}}],(n=[{key:"initialize",value:function(){this.listenTo(a.e.CONFIG,"version:sync",this.renderFooter),this.listenTo(this.channelName,rf.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(a.w.VIDEO_UPLOAD,rf.a.FILES_ADDED,this.onFilesAdded),this.configDataService=g.a.getInstance(m.a.Config,this),this.videoUploadService=g.a.getInstance(m.b.VideoUpload,this),this.listenTo(a.e.MIGRATION,"".concat(a.f.CUSTOMER_METADATA,":sync"),this.handleNoIntercom),this.migrationVideoDataService=g.a.getInstance(m.a.MigrationVideo,this)}},{key:"regions",value:function(){var t;return cf(t={},a.n.TOP_BANNER,".top-banner-region"),cf(t,a.n.POPUP,".popup-region"),cf(t,a.n.TOP_NAV,".top-nav-region"),cf(t,a.n.CONTENT,".content-region"),cf(t,a.n.LEFT_NAV,".left-nav-region"),cf(t,a.n.PAGE_HEADER,".page-header-region"),cf(t,a.n.ALERT,".alert-region"),cf(t,a.n.PAGE_FOOTER,".page-footer-region"),cf(t,a.n.HIDDEN,".hidden-region"),t}},{key:"onFilesSelected",value:function(t,e){this.videoUploadService.addFiles(t),this.logAction(t,e)}},{key:"logAction",value:function(t,e){var n={actionType:Pt.q.Upload,entity:Pt.e.Video,location:Pt.k.VideoUpload,workflowPhase:Pt.r.Start,descriptor:x.a.mapInteractionType(e)};x.a.logUserAction(t,n)}},{key:"onFilesAdded",value:function(){var t=r.a.AppLinkHelper.getCurrentAppLink(),e=t.application===a.b.LIBRARY_EDITOR&&t.action===a.a.LibraryEditor.FOLDER,n={application:a.b.UPLOAD,action:a.a.Upload.UPLOAD_DETAILS};e&&(n.params={folderId:t.args[0]}),r.a.AppLinkHelper.trigger(n)}},{key:"getContentBoxClassName",value:function(){var t=xl.contentBox;return this.options.showLeftNav&&(t+=" ".concat(xl.leftNavContentBox)),t}},{key:"getContentContainerClassName",value:function(){return this.options.centredContent?"d-flex justify-content-center":""}},{key:"onLayoutRequested",value:function(t){this.options=i.extend({},this.defaults,t),this.renderTopNav()}},{key:"onPopupRegionEmpty",value:function(){var t=this.getRegion(a.n.CONTENT).currentView;t?t.setTitle():this.setTitle()}},{key:"renderTopBanner",value:function(){this.options.allowBanner&&this.showChildView(a.n.TOP_BANNER,new nf({application:this.options.application}))}},{key:"renderHeader",value:function(){this.showChildView(a.n.PAGE_HEADER,new Hl.PageHeaderComponent({onlyShowProfile:!this.options.showFullHeader}))}},{key:"renderTopNav",value:function(){this.options.showTopNav&&this.showChildView(a.n.TOP_NAV,new zl.TopNavigationView({selected:this.options.selectedNavItem}))}},{key:"renderFooter",value:function(){var t=this.configDataService.getVersion();t&&this.showChildView(a.n.PAGE_FOOTER,new Ml({version:t}))}},{key:"handleNoIntercom",value:function(){var t=this.migrationVideoDataService.getCustomerMetadata();t&&t.get("customerMeta")!==of.a.LibraryPublished&&this.getUI("alertRegion").removeClass(xl.alertBoxWithIntercom)}},{key:"viewOptions",value:function(){return{styles:xl,showLeftNav:this.options.showLeftNav,contentBoxClassName:this.getContentBoxClassName(),contentContainerClassName:this.getContentContainerClassName()}}},{key:"onRender",value:function(){this.renderTopBanner(),this.renderHeader(),this.renderTopNav(),this.renderFooter(),this.listenTo(this.getRegion(a.n.POPUP),"empty",this.onPopupRegionEmpty)}},{key:"name",get:function(){return"ManageLayoutView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return _l.a}},{key:"className",get:function(){return xl.lockedWidth}},{key:"channelName",get:function(){return this.name}},{key:"defaults",get:function(){return{showFullHeader:!0,showTopNav:!0,allowBanner:!0,allowFileDrop:!0}}},{key:"elements",get:function(){return{alertRegion:".alert-region"}}},{key:"behaviors",get:function(){if(this.options.allowFileDrop)return[{behaviorClass:Ul.a,channelName:this.channelName},{behaviorClass:Fl.a,channelName:this.channelName}]}}])&&sf(e.prototype,n),o&&sf(e,o),s}(r.a.LayoutView);var df=n(70),yf=n(69),gf=n(27);class bf extends er.a{initialize(){this.listenTo(E.a.SHELL,gf.a.ROUTING_END,this.scrollTop),this.listenTo(df.a.POPUP,"popup:render",this.cancelScrollTop),this.listenTo(E.a.POPUP,"popup:render",this.cancelScrollTop)}get name(){return yf.a.SCROLL}cancelScrollTop(){this.preventScroll=!0}scrollTop(){this.preventScroll?this.preventScroll=!1:$(window).scrollTop(0)}}var mf=n(40);class vf extends r.a.Service{initialize(){this.listenTo(E.a.SHELL,r.a.EventNames.ROUTE,this.onRouteChange),this.listenTo(hr.c.CONTEXTUAL_SEARCH,"typeahead:toggle",this.onTypeaheadToggle),this.listenTo(hr.c.CONTEXTUAL_SEARCH,"reset:search:context",this.resetSearchContext),this.searchContext=new r.a.Model}get name(){return dr.b.ContextualSearch}get lang(){return"search.services"}getSearchContext(){return this.searchContext}onRouteChange(t,e){e.isAppRoute&&this.setSearchContext(t)}onTypeaheadToggle(t){if(t.open||this.searchContext.get("filterValue"))return;const e=Zt.a.getCurrentContext().appLink;this.setSearchContext(e)}setSearchContext(t){const e=this.isValidSearchContext(t);if(e)this.updateSearchContext(e,t.args);else if(!this.inSearchView(t)){o.Radio.channel(hr.c.CONTEXTUAL_SEARCH).trigger("reset:search:context")}}updateSearchContext(t,e){t.appLink.args=e,this.searchContext.set(t),t.setFilterValue(t,this)}setFilterValue(t){const e={filterValue:t,title:t};this.searchContext.set(e)}resetSearchContext(){this.searchContext.clear({silent:!0})}isValidSearchContext(t){return this.appVariables||(this.appVariables=g.a.getInstance(mf.a.SEARCH,this)),i.find(((t,e)=>{const n=[];return e.folder&&n.push({appLink:e.folder,searchTag:Fn.a.getPhrase(t,"folderTag"),filterParam:"folder",setFilterValue:(t,e)=>{g.a.getInstance(dr.a.Library,e).getFolder(i.first(t.appLink.args).toString(),t=>{e.setFilterValue(t.get("name")),g.a.releaseInstance(dr.a.Library)})}}),e.series&&n.push({appLink:e.series,searchTag:Fn.a.getPhrase(t,"seriesTag"),filterParam:"series",setFilterValue:(t,e)=>{g.a.getInstance(dr.a.Series,e).getSeries(i.first(t.appLink.args).toString(),t=>{e.setFilterValue(t.name),g.a.releaseInstance(dr.a.Series)})}}),n})(this.lang,this.appVariables.appLinks),e=>t.application===e.appLink.application&&t.action===e.appLink.action)}inSearchView(t){const e=this.appVariables.appLinks.searchResults;return t.application===e.application&&t.action===e.action}}var Sf=n(146);class wf extends r.a.Service{constructor(){super()}get name(){return dr.b.Notification}initDataServices(){this.notificationDataService=g.a.getInstance(dr.a.Notification,this),this.notificationSocketService=g.a.getInstance(dr.a.NotificationSocket,this),this.userDataService=g.a.getInstance(dr.a.User,this),this.bindSocketListeners(),this.bindAppListeners()}bindSocketListeners(){const t=pr.a.NOTIFICATIONS;this.listenTo(hr.b.NOTIFICATIONS_SOCKET,t+":new:sync",this.addNewNotification),this.listenTo(hr.b.NOTIFICATIONS_SOCKET,t+":count:sync",this.updateUnreadCount),this.listenTo(hr.b.NOTIFICATIONS,t+":seen",this.updateUnreadCount)}bindAppListeners(){this.listenTo(hr.a.NOTIFICATIONS,Sf.a.Read,this.markNotificationRead)}getDataServices(){this.dataServicesExist()||this.initDataServices()}dataServicesExist(){return!!this.notificationSocketService&&!!this.notificationDataService}addNewNotification(t){this.userDataService.getCurrentUser(e=>{this.notificationDataService.getNotifications(e.id,null,pr.a.NOTIFICATIONS,e=>{e.add(t,{at:0})})})}updateUnreadCount(t=0){C.a.get(pr.a.NOTIFICATIONS).set("unreadCount",t)}getNotifications(t,e,n){this.getDataServices(),this.notificationSocketService.receiveLatestNotifications(),this.userDataService.getCurrentUser(r=>{this.notificationDataService.getNotifications(r.id,t,e.toString(),n)})}getNotificationsMetadata(){return this.getDataServices(),this.notificationSocketService.receiveUnreadNotificationCount(),C.a.get(pr.a.NOTIFICATIONS)}markNotificationsSeen(){this.notificationDataService.markSeen()}markNotificationRead(t){this.notificationDataService.markRead(t)}getNotificationsCursors(t){return this.notificationDataService.getNotificationsCursors(t.toString())}}class Of extends D.Object{constructor(t){super(),this.subscribeEvent="subscribe",this.reconnectTimeout=5e3,this.reconnectAttempts=100,this.reconnectTries=0,this.connection=$.hubConnection(t.endpoint),this.hub=this.connection.createHubProxy(t.hubName),this.authEndpoint=t.authEndpoint,this.setProviderOptions(t),this.attachSocketEvents(),!1===t.lazy&&this.openConnection()}setProviderOptions(t){t.logging&&(this.connection.logging=!0),t.subscribeEvent&&(this.subscribeEvent=t.subscribeEvent),t.reconnectTimeout&&(this.reconnectTimeout=t.reconnectTimeout),t.reconnectAttempts&&(this.reconnectAttempts=t.reconnectAttempts)}openConnection(){if(!this.isConnectedOrConnecting())return this.setConnectionState(0),this.connect()}connect(){return $.when(this.getConnectionToken(),this.connection.start()).then(t=>this.start.apply(this,t),t=>this.onConnectionError.apply(this,t))}start(t){return this.hub.invoke(this.subscribeEvent,t.Token).done(()=>this.setConnectionState(1)).fail(t=>this.onConnectionError(t))}stop(t,e){this.isConnectedOrConnecting()&&this.connection.stop(t,e)}attachSocketEvents(){this.connection.disconnected(()=>this.onConnectionError),this.connection.reconnected(()=>this.onReconnect)}onReconnect(){this.reconnectTries=0}onConnectionError(t){t?console.log("Connection Error. Reason: "+t):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 t={url:this.authEndpoint,method:"POST",type:"POST"};return $.ajax(t)}setConnectionState(t){1===t&&console.log("Connected!"),4===t&&console.log("Disconnected!"),this.connectionState=t}isConnectedOrConnecting(){return 0===this.connectionState||1===this.connectionState||2===this.connectionState}create(t,e,n){this.openConnection(),this.rpc(t,e,n)}read(t,e){this.openConnection(),this.subscribe(t,e)}update(t,e,n){this.openConnection(),this.rpc(t,e,n)}delete(t,e){this.openConnection(),this.rpc(t,null,e)}parseError(...t){return ir.a}rpc(t,e,n){const{channel:r,successEvent:o,errorEvent:i}=n;this.hub.invoke(t,e).done((t,e,n)=>r.trigger(o,t,e,n)).fail((t,e,n)=>r.trigger(i,t,e,n))}subscribe(t,e){const{channel:n,successEvent:r,errorEvent:o}=e;this.hub.on(t,(...t)=>{n.trigger(r,...t)})}}class Ef extends Of{get name(){return b.a.Notifications}}var Cf=n(188),Rf=n(25);function kf(t){return(kf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Pf(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _f(t,e){return(_f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xf(t){var e=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(t){return!1}}();return function(){var n,r=Df(t);if(e){var o=Df(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tf(this,n)}}function Tf(t,e){return!e||"object"!==kf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Df(t){return(Df=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Lf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_f(t,e)}(i,t);var e,n,r,o=xf(i);function i(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,Fn.a.getPhrase("upload.errors.noLibrariesUpload","title"))}return e=i,(n=[{key:"name",get:function(){return"NoLibrariesUploadError"}},{key:"dialogOptions",get:function(){return{title:Fn.a.getPhrase("upload.errors.noLibrariesUpload","heading"),text:Fn.a.getPhrase("upload.errors.noLibrariesUpload","body"),buttons:[{text:Fn.a.getPhrase("upload.errors.noLibrariesUpload","okay"),className:"btn btn-primary",close:!0}]}}}])&&Pf(e.prototype,n),r&&Pf(e,r),i}(Rf.a);function Af(t){return(Af="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function If(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jf(t,e,n){return(jf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Ff(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Vf(t,e){return(Vf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mf(t){var e=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(t){return!1}}();return function(){var n,r=Ff(t);if(e){var o=Ff(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uf(this,n)}}function Uf(t,e){return!e||"object"!==Af(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ff(t){return(Ff=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hf=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vf(t,e)}(c,t);var e,n,o,i=Mf(c);function c(){return Nf(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"addFiles",value:function(t){var e=this;g.a.getInstance(a.g.Library).getLibraries((function(n){g.a.releaseInstance(a.g.Library),n&&n.length?jf(Ff(c.prototype),"addFiles",e).call(e,t):r.a.ErrorHelper.throw(new Lf)}))}}])&&If(e.prototype,n),o&&If(e,o),c}(Cf.a);class zf extends r.a.Model{get idAttribute(){return"masterVideoId"}}class Bf extends r.a.Collection{get model(){return zf}}var qf=n(79);class Gf extends r.a.Service{get name(){return dr.b.PendingItems}get channelName(){return hr.c.PENDING_ITEMS}initialize(){this.videoDataService=g.a.getInstance(dr.a.Video,this),this.videoUploadDataService=g.a.getInstance(dr.a.VideoUpload,this)}clearPendingItem(t,e){switch(t.get("pendingProcessStatus")){case qf.a.Completed:case qf.a.Error:this.videoUploadDataService.clearPendingItems([t.get("pendingProcessId")],()=>{t.set("clearing",!0),t.collection.remove(t),this.updateViewModel(),this.videoDataService.clearVideoCache(),i.isFunction(e)&&e()});break;case qf.a.Processing:this.videoUploadDataService.cancelPendingItems([t.get("pendingProcessId")],()=>{t.set("clearing",!0),t.collection.remove(t),this.videoDataService.clearVideoCache(),this.updateViewModel(),i.isFunction(e)&&e()})}}forceFetchPendingItems(t){this.fetchPendingItems(t)}retryPendingItem(t,e){this.videoUploadDataService.retryPendingItems([t.get("pendingProcessId")],()=>{this.fetchPendingItems({resetTimeout:!1,callback:e})})}itemStatusChanged(){o.Radio.channel(this.channelName).trigger(rf.a.PENDING_ITEM_STATUS_CHANGE),this.videoDataService.clearVideoCache()}getPendingItems(){return this.pendingItems||(this.pendingItems=new Bf,this.listenTo(this.pendingItems,"change:foregroundComplete",t=>{if(!t.get("foregroundComplete"))return;this.itemStatusChanged();t.get("video")&&o.Radio.channel(this.channelName).trigger(rf.a.PENDING_ITEM_READY_TO_WATCH,t)}),this.listenTo(this.pendingItems,"remove",t=>{t.get("clearing")||this.videoUploadDataService.getPendingItem(t.get("pendingProcessId"),t=>{t.get("status")===qf.a.Completed&&this.itemStatusChanged()})}),this.fetchPendingItems()),this.pendingItems}fetchPendingItems(t={resetTimeout:!0}){this.isDestroyed()||this.videoUploadDataService.getPendingItems(e=>{const n=i.map(e,t=>t.masterVideoId.toString()),o=n=>{i.each(e,t=>{const e=n.get(t.masterVideoId);e&&(t.video=e,t.foregroundProgress>=100&&e.get("status")===ql.a.Processing&&e.set("status",ql.a.Published))}),this.pendingItems.set(e),this.updateViewModel(),t.resetTimeout&&window.setTimeout(i.bind(this.fetchPendingItems,this),this.getTimeoutLength()),i.isFunction(t.callback)&&t.callback()};n.length?this.videoDataService.getVideos(n,o):o(new r.a.Collection)})}updateViewModel(){const t=C.a.get("process:progress");if(!this.pendingItems||!this.pendingItems.length)return void t.set({progress:0,items:0});const e=this.pendingItems.where(t=>t.get("pendingProcessStatus")>=0);let n=0;i.each(e,t=>n+=t.get("foregroundProgress"));const r=100*e.length;t.set({progress:Math.round(n/r*100),items:this.pendingItems.length,hasErrors:this.pendingItems.length!==e.length})}getTimeoutLength(){return this.pendingItems.any(t=>t.get("pendingProcessStatus")===qf.a.Processing)?5e3:3e4}}var Wf=n(65);function Yf(t){return(Yf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Jf(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $f(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Kf(t,e,n){return(Kf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=tp(t)););return t}(t,e);if(r){var o=Object.getOwnPropertyDescriptor(r,e);return o.get?o.get.call(n):o.value}})(t,e,n||t)}function Qf(t,e){return(Qf=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Zf(t){var e=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(t){return!1}}();return function(){var n,r=tp(t);if(e){var o=tp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Xf(this,n)}}function Xf(t,e){return!e||"object"!==Yf(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function tp(t){return(tp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var ep=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Qf(t,e)}(i,t);var e,n,r,o=Zf(i);function i(){return Jf(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){Kf(tp(i.prototype),"initialize",this).call(this),this.alertService=g.a.getInstance(a.x.Alerts,this),this.listenTo(this.channelName,rf.a.PENDING_ITEM_READY_TO_WATCH,this.onReadyToWatch)}},{key:"onReadyToWatch",value:function(t){var e=t.get("video");if(e){var n=Fn.a.getPhrase(this.lang,"readyToWatch",{videoName:Xt.v.escapeExpression(e.get("name"))});Wf.a.isDone(t)||(n+=Fn.a.getPhrase(this.lang,"processingResolutions"));var r={heading:Fn.a.getPhrase(this.lang,"readyToWatchHeading",{videoName:e.get("name")}),message:n,type:lr.a.Success,appLinkText:Fn.a.getPhrase(this.lang,"goToVideo",{videoName:e.get("name")}),appLink:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS,args:[e.get("id")]}};this.alertService.createAlert(r)}}},{key:"lang",get:function(){return"upload.services"}}])&&$f(e.prototype,n),r&&$f(e,r),i}(Gf),np=n(91),rp=n.n(np),op=n(135);function ip(t){return(ip="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ap(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function cp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function sp(t,e){return(sp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function up(t){var e=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(t){return!1}}();return function(){var n,r=fp(t);if(e){var o=fp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return lp(this,n)}}function lp(t,e){return!e||"object"!==ip(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function fp(t){return(fp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var pp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&sp(t,e)}(s,t);var e,n,r,c=up(s);function s(){var t;return ap(this,s),(t=c.apply(this,arguments)).disabledLibraryIds=[],t}return e=s,(n=[{key:"initialize",value:function(){var t=this;this.videoDataService=g.a.getInstance(a.g.Video,this),this.libraryDataService=g.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.libraryDataService.getLibraries((function(e){return t.customLibraries=e}))}},{key:"onDragStart",value:function(t,e){var n;this.videos=t,this.collectionIdentifier=e,$("body").addClass(rp.a.dragging),(null===(n=this.customLibraries)||void 0===n?void 0:n.length)>1&&this.setDisabledLibraries()}},{key:"accept",value:function(t){return!!this.videos&&!i.any(this.videos,(function(e){return e.categories.any((function(e){return e.id===t.id}))}))}},{key:"onDragDrop",value:function(t,e){var n=this;if(this.videos&&this.collectionIdentifier){var r,o;i.each(this.videos,(function(t){r||(r=t.categories.find((function(t){return t.get("id")===+n.collectionIdentifier.id})),o=t)}));var a=this.videos,c=this.videos.map((function(t){return t.get("id")})),s=1===c.length?o.get("name"):"",u=op.a.moveVideoAlert(r.get("name"),t.get("name"),t.get("id"),c.length,s);this.videoDataService.moveVideos(c,t.get("id"),this.collectionIdentifier.id,(function(){i.each(a,(function(t){return t.collection.remove(t)})),n.logAction(i.map(c,(function(e){return{id:e,newParentId:t.get("id"),oldParentId:r.get("id"),count:c.length}})),e)}),u),this.triggerNavRender()}}},{key:"onDragStop",value:function(){$("body").removeClass(rp.a.dragging),delete this.videos,delete this.collectionIdentifier,this.triggerNavRender()}},{key:"setDisabledLibraries",value:function(){var t=this,e=this.customLibraries.find((function(e){return!!Xt.f.getModelFromCollection(t.collectionIdentifier.id,e.get("children"))})),n=[];this.videos.forEach((function(t){t.get("libraries").forEach((function(t){t.get("id").toString()!==e.get("id").toString()&&n.push(t.get("id"))}))})),this.disabledLibraryIds=i.uniq(n)}},{key:"getDisabledLibraryIds",value:function(){return this.disabledLibraryIds}},{key:"triggerNavRender",value:function(){o.Radio.channel(a.w.FOLDER_DRAG_DROP).trigger("re:render:left:nav")}},{key:"logAction",value:function(t,e){var n=x.a.mergeOptions({actionType:Pt.q.Move,entity:Pt.e.Video,descriptor:Pt.j.DragDrop},e);x.a.logUserAction(t,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.VideoDragDrop}},{key:"channelName",get:function(){return a.w.VIDEO_DRAG_DROP}}])&&cp(e.prototype,n),r&&cp(e,r),s}(r.a.Service),hp=n(106),dp=n(57),yp=n(122);function gp(t){return(gp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function bp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function vp(t,e){return(vp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Sp(t){var e=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(t){return!1}}();return function(){var n,r=Op(t);if(e){var o=Op(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return wp(this,n)}}function wp(t,e){return!e||"object"!==gp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Op(t){return(Op=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ep=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&vp(t,e)}(s,t);var e,n,i,c=Sp(s);function s(){return bp(this,s),c.apply(this,arguments)}return e=s,(n=[{key:"initialize",value:function(){this.libraryDataService=g.a.getInstance(a.g.Library,this),this.listenTo(this.channelName,"drag:start",this.onDragStart),this.listenTo(this.channelName,"drag:drop",this.onDragDrop),this.listenTo(this.channelName,"drag:stop",this.onDragStop),this.listenTo(this.libraryDataService.channelName,"libraries:sync",this.onLibrarySync),this.libraries=this.libraryDataService.getLibraries()}},{key:"onLibrarySync",value:function(t){this.libraries=t}},{key:"accept",value:function(t){return!(!this.folder||this.isSameFolder(t)||!this.isSameLibrary(t)||this.isParentFolder(t)||this.isChildFolder(t))}},{key:"isSameFolder",value:function(t){return this.folder.id===t.id}},{key:"isSameLibrary",value:function(t){var e=Xt.f.getLibrary(this.folder.id,this.libraries),n=Xt.f.getLibrary(t.id,this.libraries);return!(!e||!n)&&e.id===n.id}},{key:"isParentFolder",value:function(t){var e=Xt.f.getParent(this.folder.id,this.libraries);return!!e&&e.id===t.id}},{key:"isChildFolder",value:function(t){for(var e=Xt.f.getModelFromCollection(t.id,this.libraries);e&&e.collection&&e.collection.parent;)if((e=e.collection.parent).id===this.folder.id)return!0;return!1}},{key:"exceedsMaximumDepth",value:function(t){return Xt.f.calculateDestinationFolderDepth(this.folder,t.id,this.libraries)>hp.a.MAX_FOLDER_DEPTH}},{key:"onDragStart",value:function(t){this.folder=t,$("body").addClass(rp.a.dragging)}},{key:"onDragDrop",value:function(t,e){var n=this;if(this.folder){var o=this.folder;this.libraryDataService.getLibraries((function(i){if(n.exceedsMaximumDepth(t))window.setTimeout((function(){r.a.ErrorHelper.throw(new yp.b)}),hp.a.POPUP_FADE_TIMEOUT);else{var a=Xt.f.getSelected(dp.a.LIBRARY_EDITOR,i),c=Xt.f.getParent(o.id,i);n.libraryDataService.moveFolder(o.id,t.id,c.id,(function(){a&&Xt.f.setSelected(dp.a.LIBRARY_EDITOR,a.id,i),n.triggerNavRender(),n.logAction({id:o.id,newParentId:t.id,oldParentId:c.id},e)}))}}))}}},{key:"onDragStop",value:function(){$("body").removeClass(rp.a.dragging),delete this.folder,this.triggerNavRender()}},{key:"triggerNavRender",value:function(){o.Radio.channel(this.channelName).trigger("re:render:left:nav")}},{key:"logAction",value:function(t,e){var n=x.a.mergeOptions({actionType:Pt.q.Move,entity:Pt.e.Folder,descriptor:Pt.j.DragDrop},e);x.a.logUserAction(t,n)}},{key:"radioRequests",get:function(){return{accept:"accept"}}},{key:"name",get:function(){return a.x.FolderDragDrop}},{key:"channelName",get:function(){return a.w.FOLDER_DRAG_DROP}}])&&mp(e.prototype,n),i&&mp(e,i),s}(r.a.Service),Cp=n(66);function Rp(t){return(Rp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function kp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _p(t,e){return(_p=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function xp(t){var e=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(t){return!1}}();return function(){var n,r=Dp(t);if(e){var o=Dp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Tp(this,n)}}function Tp(t,e){return!e||"object"!==Rp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Dp(t){return(Dp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Lp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_p(t,e)}(s,t);var e,n,r,c=xp(s);function s(){return kp(this,s),c.apply(this,arguments)}return e=s,(n=[{key:"initialize",value:function(){this.selectedVideosViewModel=C.a.get(this.viewModelName,{videos:{}},{ctor:qo.a,storage:{type:Cp.c.LocalStorage,persistProps:["videos"]}})}},{key:"addSelectedVideos",value:function(t,e){i.isArray(t)||(t=[t]);var n={};t.forEach((function(t){return n["".concat(t.id,":").concat(e)]={id:t.id.toString(),folderChord:e}}));var r=this.selectedVideosViewModel.get("videos"),o=Object.assign(Object.assign({},r),n);this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"addSmartSelectedVideos",value:function(t){var e={};t.each((function(t){return e["".concat(t.id,":").concat(t.get("chord"))]={id:t.id.toString(),folderChord:t.get("chord")}}));var n=this.selectedVideosViewModel.get("videos"),r=Object.assign(Object.assign({},n),e);this.selectedVideosViewModel.set("videos",r),this.selectedVideosChanged()}},{key:"removeSelectedVideos",value:function(t,e){i.isArray(t)||(t=[t]);var n=t.map((function(t){return"".concat(t.id,":").concat(e)})),r=this.selectedVideosViewModel.get("videos"),o=i.omit(r,(function(t,e){return i.contains(n,e)}));this.selectedVideosViewModel.set("videos",o),this.selectedVideosChanged()}},{key:"removeAllSelectedVideos",value:function(){this.selectedVideosViewModel.set("videos",{}),this.selectedVideosChanged()}},{key:"getSelectedVideoIds",value:function(){var t=this.getSelectedVideos();return i.map(i.keys(t),(function(e){return t[e]&&t[e].id}))}},{key:"getSelectedVideos",value:function(){return this.selectedVideosViewModel.get("videos")}},{key:"getNumberSelected",value:function(){return this.getSelectedVideoIds().length}},{key:"selectedVideosChanged",value:function(){o.Radio.channel(a.e.MIGRATION).trigger(a.i.MigrationWizard.SELECTED_CHANGED)}},{key:"name",get:function(){return"SelectedVideoService"}},{key:"viewModelName",get:function(){return"".concat(this.name,":viewmodel")}},{key:"channelName",get:function(){return a.w.SELECTED_VIDEO}}])&&Pp(e.prototype,n),r&&Pp(e,r),s}(r.a.Service);function Ap(t){return(Ap="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Np(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ip(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function jp(t,e){return(jp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Vp(t){var e=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(t){return!1}}();return function(){var n,r=Up(t);if(e){var o=Up(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Mp(this,n)}}function Mp(t,e){return!e||"object"!==Ap(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Up(t){return(Up=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Fp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&jp(t,e)}(i,t);var e,n,r,o=Vp(i);function i(){return Np(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"initialize",value:function(){this.options={}}},{key:"setOption",value:function(t,e){this.options[t]=e}},{key:"getOption",value:function(t){return this.options[t]}},{key:"name",get:function(){return"LocalOptionsService"}},{key:"channelName",get:function(){return a.w.LOCAL_OPTIONS}}])&&Ip(e.prototype,n),r&&Ip(e,r),i}(r.a.Service);function Hp(t){return(Hp="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function zp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Bp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function qp(t,e){return(qp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Gp(t){var e=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(t){return!1}}();return function(){var n,r=Yp(t);if(e){var o=Yp(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Wp(this,n)}}function Wp(t,e){return!e||"object"!==Hp(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Yp(t){return(Yp=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Jp=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&qp(t,e)}(c,t);var e,n,r,o=Gp(c);function c(){return zp(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.folderCache={}}},{key:"getFolderCache",value:function(){return this.folderCache}},{key:"getFolderByChord",value:function(t,e){return this.folderChordMap&&!this.collectionUpdated(e)||this.buildFolderChordMap(e),this.folderChordMap[t]}},{key:"buildFolderChordMap",value:function(t){var e=this;this.folderChordMap={},t.each((function t(n){e.folderChordMap[n.get("chord")]=n;var r=n.children;r&&r.length&&r.each(t)}))}},{key:"collectionUpdated",value:function(t){return!(this.cachedFolderCollectionCid&&t.customCid&&this.cachedFolderCollectionCid===t.customCid||(t.customCid=this.cachedFolderCollectionCid=i.uniqueId("custom"),0))}},{key:"name",get:function(){return"FolderCacheService"}},{key:"channelName",get:function(){return a.w.FOLDER_CACHE}}])&&Bp(e.prototype,n),r&&Bp(e,r),c}(r.a.Service);function $p(t){return($p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Kp(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Qp(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Zp(t,e){return(Zp=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Xp(t){var e=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(t){return!1}}();return function(){var n,r=eh(t);if(e){var o=eh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return th(this,n)}}function th(t,e){return!e||"object"!==$p(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function eh(t){return(eh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var nh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Zp(t,e)}(c,t);var e,n,r,o=Xp(c);function c(){return Kp(this,c),o.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=g.a.getInstance(a.g.RestrictedVideo,this)}},{key:"mixinVideoCollectionData",value:function(t,e,n){this.getAndMixinVideoCollectionRestrictions(t,e,n)}},{key:"mixinVideoData",value:function(t,e){this.getAndMixinVideoRestriction(t,e)}},{key:"getAndMixinVideoCollectionRestrictions",value:function(t,e,n){var r=this;if(t&&t.length){var o=t.map((function(t){return t.id.toString()}));this.restrictedVideoDataService.getVideoRestrictions(o,e,(function(e){t.forEach((function(t){return r.mixinVideoRestriction(t,e)})),i.isFunction(n)&&n(t)}))}else i.isFunction(n)&&n(t)}},{key:"getAndMixinVideoRestriction",value:function(t,e){var n=this;this.restrictedVideoDataService.getVideoRestrictions([t.id],null,(function(r){n.mixinVideoRestriction(t,r),i.isFunction(e)&&e(t)}))}},{key:"mixinLocalCacheDownloads",value:function(t,e){t.unset("localCacheDownloads"),e&&e.findWhere({objectId:t.get("id").toString()})&&t.set("localCacheDownloads",e)}},{key:"mixinVideoRestriction",value:function(t,e){if(t.unset("restrictions"),e){var n=e.findWhere({objectId:t.get("id")});n&&t.set("restrictions",n.get("restrictedObjects"))}}},{key:"name",get:function(){return a.x.VideoMixin}},{key:"channelName",get:function(){return a.w.VIDEO_MIXIN}}])&&Qp(e.prototype,n),r&&Qp(e,r),c}(r.a.Service),rh=n(20);function oh(t){return(oh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ih(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function ah(t,e){return(ah=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function ch(t){var e=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(t){return!1}}();return function(){var n,r=uh(t);if(e){var o=uh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return sh(this,n)}}function sh(t,e){return!e||"object"!==oh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function uh(t){return(uh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var lh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&ah(t,e)}(i,t);var e,n,r,o=ch(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"viewOptions",value:function(){return this.options.viewOptions}},{key:"name",get:function(){return"PartialLoadingComponent"}},{key:"tagName",get:function(){return this.options.tagName||"div"}},{key:"className",get:function(){return this.options.className}}])&&ih(e.prototype,n),r&&ih(e,r),i}(r.a.Component);function fh(t){return(fh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function ph(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function hh(t,e){return(hh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function dh(t){var e=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(t){return!1}}();return function(){var n,r=gh(t);if(e){var o=gh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return yh(this,n)}}function yh(t,e){return!e||"object"!==fh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function gh(t){return(gh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var bh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&hh(t,e)}(i,t);var e,n,r,o=dh(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,t)}return e=i,(n=[{key:"initialize",value:function(){var t=g.a.getInstance(a.x.PartialLoading,this);this.collection=t.getCollection(this.options.collectionLength)}},{key:"name",get:function(){return"PartialLoadingComponentCollection"}},{key:"tagName",get:function(){return this.options.tagName||"ul"}},{key:"className",get:function(){var t=this.options.noExtraClass?"":"m-0 p-0 ";return this.options.className&&(t+=this.options.className),t}},{key:"childView",get:function(){return lh}},{key:"childViewOptions",get:function(){return this.options.childOptions}}])&&ph(e.prototype,n),r&&ph(e,r),i}(r.a.ComponentCollection);function mh(t){return(mh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function vh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Sh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function wh(t,e){return(wh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Oh(t){var e=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(t){return!1}}();return function(){var n,r=Ch(t);if(e){var o=Ch(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Eh(this,n)}}function Eh(t,e){return!e||"object"!==mh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Ch(t){return(Ch=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Rh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&wh(t,e)}(s,t);var e,n,o,c=Oh(s);function s(){return vh(this,s),c.apply(this,arguments)}return e=s,(n=[{key:"initialize",value:function(){this.listenTo(E.a.SHELL,"render:partial:loading",this.renderPartialLoading)}},{key:"renderPartialLoading",value:function(t,e){var n=this,r=this.getPartialLoadingRegions(t);i.each(i.keys(r),(function(o){if(!e||o===e){var i=r[o],a=n.getComponent(i.partialLoading);t.showChildView(o,a)}}))}},{key:"getComponent",value:function(t){var e="number"==typeof t?a.u[t]:t;return"number"!=typeof t&&(t=ie.j.Unselected),e||r.a.ErrorHelper.throw(new O.a("Must define PartialLoading type: ".concat(ie.j[t],"."))),e.component||r.a.ErrorHelper.throw(new O.a("Must select a component for PartialLoading type: ".concat(ie.j[t],"."))),e.options||r.a.ErrorHelper.throw(new O.a("Must provide options for PartialLoading type: ".concat(ie.j[t],"."))),new(this.getCtor(e.component))(e.options)}},{key:"getCtor",value:function(t){switch(t){case rh.a.ComponentCollection:return bh;case rh.a.Component:default:return lh}}},{key:"getPartialLoadingRegions",value:function(t){return i.pick(t.regions,(function(t){return i.has(t,"partialLoading")}))}},{key:"getCollection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25,e=new Array(t);return new r.a.Collection(e)}},{key:"name",get:function(){return a.x.PartialLoading}}])&&Sh(e.prototype,n),o&&Sh(e,o),s}(r.a.Service);function kh(t){return(kh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ph(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function xh(t,e){return(xh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Th(t){var e=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(t){return!1}}();return function(){var n,r=Lh(t);if(e){var o=Lh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Dh(this,n)}}function Dh(t,e){return!e||"object"!==kh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Lh(t){return(Lh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ah=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&xh(t,e)}(c,t);var e,n,o,i=Th(c);function c(){return Ph(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo(E.a.SHELL,r.a.EventNames.ROUTING_END,this.updateIntercom)}},{key:"updateIntercom",value:function(){window.Intercom("update")}},{key:"name",get:function(){return a.x.Intercom}}])&&_h(e.prototype,n),o&&_h(e,o),c}(r.a.Service);function Nh(t){return(Nh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ih(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Vh(t,e){return(Vh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Mh(t){var e=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(t){return!1}}();return function(){var n,r=Fh(t);if(e){var o=Fh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Uh(this,n)}}function Uh(t,e){return!e||"object"!==Nh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Fh(t){return(Fh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Hh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Vh(t,e)}(s,t);var e,n,i,c=Mh(s);function s(){return Ih(this,s),c.apply(this,arguments)}return e=s,(n=[{key:"initialize",value:function(){this.listenTo(E.a.SHELL,r.a.EventNames.NAV_IS_LOCKED,this.renderDialog)}},{key:"lock",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.text;this.lockOptions=t,o.Radio.channel(E.a.SHELL).trigger(r.a.EventNames.LOCK_NAV),$(window).on("beforeunload",(function(t){return t.returnValue=e,e}))}},{key:"unlock",value:function(){this.lockOptions=null,o.Radio.channel(E.a.SHELL).trigger(r.a.EventNames.UNLOCK_NAV),$(window).off("beforeunload")}},{key:"isLocked",value:function(){return!!this.lockOptions}},{key:"renderDialog",value:function(t){var e=this;new Xt.d(this.getNavLockOptions()).render().done((function(){o.Radio.channel(E.a.SHELL).trigger(r.a.EventNames.NAV_UNLOCKED_BY_USER),e.unlock(),r.a.AppLinkHelper.trigger(t)}))}},{key:"getNavLockOptions",value:function(){var t=this.lockOptions,e=t.title,n=t.text;return{title:e||Fn.a.getPhrase(this.lang,"discardChanges"),text:n||Fn.a.getPhrase(this.lang,"discardCheck"),buttons:[{text:Fn.a.getPhrase(this.lang,"discard"),className:"btn btn-danger",success:!0},{text:Fn.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}}},{key:"name",get:function(){return a.x.NavLock}},{key:"lang",get:function(){return"shared.services"}}])&&jh(e.prototype,n),i&&jh(e,i),s}(r.a.Service);function zh(t){return(zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Bh(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function qh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Gh(t,e){return(Gh=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Wh(t){var e=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(t){return!1}}();return function(){var n,r=Jh(t);if(e){var o=Jh(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Yh(this,n)}}function Yh(t,e){return!e||"object"!==zh(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Jh(t){return(Jh=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var $h=" - ClickView",Kh=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Gh(t,e)}(c,t);var e,n,o,i=Wh(c);function c(){return Bh(this,c),i.apply(this,arguments)}return e=c,(n=[{key:"initialize",value:function(){this.listenTo(E.a.SHELL,"set:page:title",this.setPageTitle)}},{key:"setPageTitle",value:function(t){t&&r.a.LocationUtils.SetPageTitle(this.trimTitle(t))}},{key:"trimTitle",value:function(t){return t?t.length+$h.length<=60?t+$h:t.substring(0,57)+"..."+$h:""}},{key:"name",get:function(){return a.x.PageTitle}},{key:"channelName",get:function(){return a.w.PAGE_TITLE}}])&&qh(e.prototype,n),o&&qh(e,o),c}(r.a.Service);nr.a;var Qh=n(147),Zh=n(29),Xh=n(137),td=n(93),ed=n(96),nd=n(131);function rd(t){var e=C.a.get("informational:error:handler");e.get("rendered")||(e.set("rendered",!0),new Xh.a(Object.assign(Object.assign({},t.dialogOptions),{channelName:"informational:error"})).render().done((function(){return t.onDone()})).fail((function(){return t.onFail()})).always((function(){return e.clear()})))}function od(t){g.a.getInstance(m.b.Alerts).createAlert({heading:lr.c.Fail,type:lr.a.Fail,message:t.message})}function id(t){r.a.AppLinkHelper.trigger({application:td.a.DEFAULT,action:ed.a.Default.NOT_FOUND})}function ad(t){o.Radio.channel("error:view").replyOnce("current:error",(function(){return t})),r.a.AppLinkHelper.trigger({application:td.a.DEFAULT,action:ed.a.Default.ERROR})}var cd=n(8);const sd={register(){cd.registerHelper("lang",(t,e)=>{if(!this.isValid(t,e))return;const n=e.data.root.languageNamespace;return Fn.a.getPhrase(n,t,e.hash)})},isValid:(t,e)=>"string"!=typeof t?(r.a.ErrorHelper.throw(new O.a("No language key provided.")),!1):"object"!=typeof e?(r.a.ErrorHelper.throw(new O.a("All options must be key-value pairs, e.g. `smartCount=options.videoCount`")),!1):!i.isUndefined(e.data.root.languageNamespace)||(r.a.ErrorHelper.throw(new O.a("No `lang` property provided.")),!1)};var ud;!function(t){t[t.Row=0]="Row",t[t.LargeRow=1]="LargeRow",t[t.Hero=2]="Hero"}(ud||(ud={}));class ld{get name(){return mf.a.SEARCH}}class fd{get name(){return mf.a.NOTIFICATIONS}}function pd(t){return(pd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function hd(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function dd(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function yd(t,e){return(yd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function gd(t){var e=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(t){return!1}}();return function(){var n,r=md(t);if(e){var o=md(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return bd(this,n)}}function bd(t,e){return!e||"object"!==pd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function md(t){return(md=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var vd=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&yd(t,e)}(i,t);var e,n,r,o=gd(i);function i(){return hd(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"appLinks",get:function(){return{searchResults:{application:a.b.SEARCH,action:a.a.Search.HOME},videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},series:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.SERIES},tagSearch:{application:a.b.SEARCH,action:a.a.Search.HOME},newLibrary:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.NEW_LIBRARY},folder:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.FOLDER}}}}])&&dd(e.prototype,n),r&&dd(e,r),i}(ld),Sd=n(43);function wd(t){return(wd="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Od(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Ed(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function Cd(t,e){return(Cd=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Rd(t){var e=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(t){return!1}}();return function(){var n,r=Pd(t);if(e){var o=Pd(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return kd(this,n)}}function kd(t,e){return!e||"object"!==wd(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function Pd(t){return(Pd=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Cd(t,e)}(i,t);var e,n,r,o=Rd(i);function i(){return Od(this,i),o.apply(this,arguments)}return e=i,(n=[{key:"appLinks",get:function(){return{videoDetails:{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.VIDEO_DETAILS},notifications:{application:a.b.NOTIFICATIONS,action:a.a.Notifications.HOME},pastReleases:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.PAST_RELEASES},awaitingReview:{application:a.b.CONTENT_UPDATES,action:a.a.ContentUpdates.AWAITING_REVIEW},editStaffRequest:{application:a.b.STAFF_REQUESTS,action:a.a.StaffRequests.EDIT_REQUEST}}}},{key:"notificationTypesWithAppLinks",get:function(){return[Sd.a.VideoReviewReminder,Sd.a.VideoReviewAddedToLibrary,Sd.a.CustomLibraryVideoAvailable,Sd.a.StaffRequest,Sd.a.StaffRequestFulfilled,Sd.a.ChapterMergeSuccess]}},{key:"notificationsEmptyStateUrl",get:function(){return"/images/empty-states/illo-no-notifications@2x.png"}},{key:"bellIconColor",get:function(){return"light"}}])&&Ed(e.prototype,n),r&&Ed(e,r),i}(fd);new d;o.Validation.configure({forceUpdate:!0}),i.extend(o.Validation.callbacks,{valid:function(t,e,n){const r=t.$("[name="+e+"]"),o=r.closest(".form-group");r.removeClass("is-invalid"),o.find(".form-feedback").removeClass("invalid-feedback").html("")},invalid:function(t,e,n,r){const o=t.$("[name="+e+"]"),i=o.closest(".form-group");o.addClass("is-invalid"),i.find(".form-feedback").addClass("invalid-feedback").html(n)}});var xd=new r.a.Shell({region:"#app",layoutService:new r.a.LayoutService({requiredRegions:[y.a.ALERT,y.a.POPUP,y.a.HIDDEN]})});xd.addInitializationStep((function(t,e){t.registerLayout(kl.a.ManageLayout,hf),e(t)})).addInitializationStep((function(t,e){g.a.registerInstance(rr,{size:100}),e(t)})).addInitializationStep((function(t,e){g.a.registerInstance(vd).registerInstance(_d),e(t)})).addInitializationStep((function(t,e){g.a.registerInstance(sr,{dataServiceErrorMessageMappings:ur.a,defaultErrorMessageKey:ur.b}),e(t)})).addInitializationStep((function(t,e){var n={maxAlerts:3,defaultSuccessAlert:{heading:lr.c.Success,type:lr.a.Success},defaultErrorAlert:{heading:lr.c.Fail,type:lr.a.Fail},alertViewCtor:$r};g.a.registerSingleton(new oo(n));var r=g.a.getInstance(m.b.Alerts),o={cache:tr.a.Fifo,dataProvider:b.a.Ajax,bootstrapData:window.bootstrapData,defaultErrorHandler:r.error({useXHR:!0}),alertService:r};delete window.bootstrapData,g.a.registerDataService(io.a,o).registerDataService(ao.a,o).registerDataService(bo,o).registerDataService(zo,o).registerDataService(Bo.a,o).registerDataService(Ci,o).registerDataService(Vi,o).registerDataService(Gi,o).registerDataService(ta,o).registerDataService(Rr,o).registerDataService(Ta,o).registerDataService(Ha,o).registerDataService(tc,o).registerDataService(lc,o).registerDataService(fc.a,o).registerDataService(Nc,o).registerDataService(Bc,o).registerDataService(rs,o).registerDataService(Ts,o).registerDataService(_r,o).registerDataService(Gs,o).registerDataService(Xs,o).registerDataService(pu,o).registerDataService(Eu,o).registerDataService(ju,o).registerDataService(Zu,o).registerDataService(dl,o).registerDataService(Rl,o);var i={cache:tr.a.Fifo,dataProvider:b.a.Notifications,alertService:r};g.a.registerDataService(gr,i),e(t)})).addInitializationStep((function(t,e){g.a.registerInstance(Hf).registerInstance(ep).registerInstance(pp).registerInstance(Ep).registerInstance(wf).registerInstance(Lp).registerInstance(Fp).registerInstance(Jp).registerInstance(nh).registerInstance(d),g.a.registerSingleton(new vf).registerSingleton(new bf).registerSingleton(new Rh).registerSingleton(new Ah).registerSingleton(new Hh).registerSingleton(new Kh),g.a.getInstance(m.a.Config).getConfig((function(n){g.a.registerInstance(Ef,{endpoint:n.get("notificationServiceUrl"),authEndpoint:"/api/notifications/v1/tokens",hubName:"notificationHub",logging:!0}),g.a.getInstance(m.a.Language).getLanguageConfig((function(t){Fn.a.setConfig(t),g.a.releaseInstance(m.a.Language)})),e(t),g.a.releaseInstance(m.a.Config)}))})).addInitializationStep((function(t,e){var n,r,o,i=g.a.getInstance(m.a.Config),a=g.a.getInstance(m.a.User);function c(){return new Promise((function(t,e){a.getCurrentUser((function(e){t(e.toJSON())}),(function(){e()}))}))}var s=new w.a(3),u=function(){if(s.decrement(),!(s.getValue()>0)){var i=new T({user:r.toJSON(),config:n.toJSON()});g.a.registerSingleton(i),i.registerTransport(A),i.registerClient(Et);var a=n.get("countryCode").toLowerCase();i.registerClient(vt,{productName:"cloud.web",productVersion:o,regionName:bt[a],collectionApiUrls:n.get("collectionApiUrls"),collectionApiClientId:n.get("collectionApiClientId"),getUser:c,shouldLog:Ut.shouldLog,formatData:Ut.formatData}),i.registerEnricher(kt,{productName:"ClickView Library Editor",productVersion:o}),i.registerEnricher(I),i.registerClient(St.a,{trackingId:n.get("googleAnalyticsProjectId"),userId:r.get("id")}),g.a.releaseInstance(m.a.Config),g.a.releaseInstance(m.a.User),e(t)}};i.getVersion((function(t){o=t,u()})),i.getConfig((function(t){n=t,u()})),a.getCurrentUser((function(t){r=t,u()}))})).addInitializationStep((function(t,e){t.registerApplication(Qt).registerApplication(Ee).registerApplication(Ie).registerApplication(We).registerApplication(rn).registerApplication(bn).registerApplication(_n).registerApplication(Un).registerApplication(Xn),e(t)})).addInitializationStep((function(t,e){g.a.getInstance(m.a.Config).getVersion((function(n){var o=g.a.getInstance(b.a.Ajax);o.useMiddleware("versionInvalidation",(function(t,e,o){var i=o.getResponseHeader("X-App-Version");i!==n&&r.a.ErrorHelper.throw(new v.a(n,i))})),o.useErrorMiddleware("authenticatonCheck",(function(t){401===t.status&&r.a.ErrorHelper.throw(new S.a)})),e(t),g.a.releaseInstance(b.a.Ajax),g.a.releaseInstance(m.a.Config)}))})).addInitializationStep((function(t,e){r.a.View.AddViewDataExtension((function(t){return{languageNamespace:i.result(t,"lang")}})),e(t)})).addInitializationStep((function(t,e){sd.register(),e(t)})).addInitializationStep((function(t,e){t.registerErrorHandler(Zh.a,ad).registerErrorHandler(Rf.a,rd).registerErrorHandler(Qh.a,od).registerErrorHandler(nd.a,id),e()})),xd.addStartUpStep((function(t,e,n){var r=g.a.getInstance(m.a.Config);r.getConfig((function(o){r.getVersion((function(r){e.environment="DEVELOPMENT",e.version=r,wt.a.setUpVariables({isDevelopment:!1}),n(t,e),g.a.releaseInstance(m.a.Config)}))}))})).addStartUpStep((function(t,e,n){g.a.getInstance(m.a.Config).getConfig((function(r){console.log("%cWelcome to the new %cā¶%cClick%cView%c! š„šš","color: grey; font-size:24px","color:#f8981d; font-size:24px","color:#f8981d; font-size:24px","color:black; font-size:24px","color: grey; font-size:24px"),console.log("%cIf you have any issues or need any help with anything, please contact our friendly product support team. ".concat(r.get("supportSiteUrl")),"color: black; font-size:14px"),n(t,e),g.a.releaseInstance(m.a.Config)}))})),xd.start()},function(t,e){t.exports=u},function(t,e){t.exports=l}])}));
|