diff --git a/.gitignore b/.gitignore index be2473fa4..45d95e94e 100644 --- a/.gitignore +++ b/.gitignore @@ -4,6 +4,7 @@ **/Products **/out_device **/out_simulator +**/xcshareddata ######################################################################################## # macOS.gitignore # https://github.com/github/gitignore/blob/master/Global/macOS.gitignore diff --git a/AppNexusSDK.podspec b/AppNexusSDK.podspec index 4cfd4fc2a..b6933aa4c 100644 --- a/AppNexusSDK.podspec +++ b/AppNexusSDK.podspec @@ -1,7 +1,7 @@ Pod::Spec.new do |s| s.name = "AppNexusSDK" - s.version = "6.0" + s.version = "6.1" s.platform = :ios, "9.0" s.summary = "AppNexus iOS Mobile Advertising SDK" @@ -23,13 +23,13 @@ DESC subspec.source_files = "sdk/sourcefiles/**/*.{h,m}" subspec.public_header_files = "sdk/sourcefiles/*.h","sdk/sourcefiles/native/*.h" subspec.resources = "sdk/sourcefiles/**/*.{png,bundle,xib,nib,js,html,strings}" - subspec.vendored_libraries = "sdk/sourcefiles/Viewability/**/*.a" + subspec.vendored_frameworks = "sdk/sourcefiles/Viewability/OMSDK_Appnexus.framework" subspec.frameworks = 'WebKit' end s.subspec 'GoogleAdapter' do |subspec| subspec.dependency 'AppNexusSDK/AppNexusSDK', "#{s.version}" - subspec.dependency 'Google-Mobile-Ads-SDK', '7.48.0' + subspec.dependency 'Google-Mobile-Ads-SDK', '7.50.0' subspec.source_files = "mediation/mediatedviews/GoogleAdMob/*.{h,m}" subspec.public_header_files = "mediation/mediatedviews/GoogleAdMob/ANAdAdapterNativeAdMob.h" subspec.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/Google-Mobile-Ads-SDK/**' } @@ -45,7 +45,7 @@ DESC s.subspec 'FacebookAdapter' do |subspec| subspec.dependency 'AppNexusSDK/AppNexusSDK', "#{s.version}" - subspec.dependency 'FBAudienceNetwork', '4.28.1' + subspec.dependency 'FBAudienceNetwork', '5.5.1' subspec.source_files = "mediation/mediatedviews/Facebook/*.{h,m}" subspec.public_header_files = "mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.h" subspec.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/FBAudienceNetwork/**' } @@ -79,7 +79,7 @@ DESC subspec.dependency 'AppNexusSDK/AppNexusSDK', "#{s.version}" subspec.source_files = "mediation/mediatedviews/SmartAd/*.{h,m}" subspec.public_header_files = "mediation/mediatedviews/SmartAd/ANAdAdapterSmartAdBase.h" - subspec.dependency 'Smart-Display-SDK', '7.1.1' + subspec.dependency 'Smart-Display-SDK', '7.2' subspec.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/Smart-Display-SDK/**' } end @@ -92,7 +92,7 @@ DESC s.subspec 'AdMobCustomEventAdapter' do |subspec| subspec.dependency 'AppNexusSDK/AppNexusSDK', "#{s.version}" - subspec.dependency 'Google-Mobile-Ads-SDK', '7.48.0' + subspec.dependency 'Google-Mobile-Ads-SDK', '7.50.0' subspec.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '${PODS_ROOT}/Google-Mobile-Ads-SDK/**' } subspec.source_files = "mediation/mediating/GoogleAdMob/*.{h,m}" subspec.private_header_files = "mediation/mediating/GoogleAdMob/*.h" diff --git a/RELEASE-NOTES.md b/RELEASE-NOTES.md index e97caa6a3..0e9456f7c 100644 --- a/RELEASE-NOTES.md +++ b/RELEASE-NOTES.md @@ -1,3 +1,24 @@ +## 6.1 + +### New Features ++ MS-3983: Added new API to Pause/Resume(https://wiki.xandr.com/display/sdk/Show+an+Instream+Video+Ads+on+iOS) VideoAd ++ MS-4057: Official release for iOS 13 support + +### Mediation partner upgrades ++ Smart Server SDK v7.2 ++ FacebookAd SDK v5.5.1(has breaking changes, please look at Mediation Docs(https://wiki.xandr.com/display/sdk/Mediate+with+iOS) for updated integration instruction) ++ Google AdMob SDK v7.50 + +### Improvements/Bug Fixes ++ MS-3915,MS-3916: Improved Banner Ad performance ++ MS-3948: Removed AppNexusSDKResources.Bundle ++ MS-3951: Fixed open measurement geometry change events for VideoAd ++ MS-3976: Fixed escape character breaking VideoAd load ++ MS-3987: Upgraded to OMSDK v1.2.19 ++ MS-4004: Fixed VideoAd's pause issue when application state changes ++ MS-4023: Removed usage of UIWebView ++ MS-4036: Fixed interstitial crash on orientation change if orientation not supported by host application (Github #47) + ## 6.0 At Xandr we listen to our users' feedback to help us develop the products that provide the best solutions for their needs. Based on that feedback, we are proud to announce the release of v6.0, a major upgrade to our iOS Mobile SDK. diff --git a/mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.m b/mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.m index 98ee67659..877694816 100644 --- a/mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.m +++ b/mediation/mediatedviews/Facebook/ANAdAdapterNativeFacebook.m @@ -18,6 +18,8 @@ @interface ANAdAdapterNativeFacebook () @property (nonatomic) FBNativeAd *fbNativeAd; +@property (nonatomic) FBMediaView *fbMediaView; +@property (nonatomic) FBMediaView *fbAdIcon; @end @@ -37,16 +39,55 @@ - (void)requestNativeAdWithServerParameter:(nullable NSString *)parameterString [self.fbNativeAd loadAd]; } +-(BOOL) getMediaViewsForRegisterView:(nonnull UIView *)view{ + + for (UIView *subview in [view subviews]){ + if([subview isKindOfClass:[FBMediaView class]]){ + FBMediaView *fbAdView = (FBMediaView *)subview; + switch (fbAdView.nativeAdViewTag) { + case FBNativeAdViewTagIcon: + self.fbAdIcon = fbAdView; + break; + default: + self.fbMediaView = fbAdView; + break; + } + }else if([subview isKindOfClass:[UIView class]]) + { + [self getMediaViewsForRegisterView:subview]; + } + if(self.fbMediaView && self.fbAdIcon){ + break; + } + } + if(self.fbMediaView) { + return YES; + } + + return NO; +} + - (void)registerViewForImpressionTrackingAndClickHandling:(nonnull UIView *)view withRootViewController:(nonnull UIViewController *)rvc clickableViews:(nullable NSArray *)clickableViews { - if (clickableViews.count) { - [self.fbNativeAd registerViewForInteraction:view - withViewController:rvc - withClickableViews:clickableViews]; - } else { - [self.fbNativeAd registerViewForInteraction:view - withViewController:rvc]; + + if([self getMediaViewsForRegisterView:view]){ + if(clickableViews.count != 0) { + [self.fbNativeAd registerViewForInteraction:view + mediaView:self.fbMediaView + iconView:self.fbAdIcon + viewController:rvc + clickableViews:clickableViews]; + + }else { + [self.fbNativeAd registerViewForInteraction:view + mediaView:self.fbMediaView + iconView:self.fbAdIcon + viewController:rvc]; + } + } + else{ + ANLogDebug(@"View does not contain mediaView for registerViewForImpressionTracking."); } } @@ -76,11 +117,9 @@ - (void)nativeAd:(FBNativeAd *)nativeAd didFailWithError:(NSError *)error { - (void)nativeAdDidLoad:(FBNativeAd *)nativeAd { ANNativeMediatedAdResponse *response = [[ANNativeMediatedAdResponse alloc] initWithCustomAdapter:self - networkCode:ANNativeAdNetworkCodeFacebook]; - response.title = nativeAd.title; - response.body = nativeAd.body; - response.iconImageURL = nativeAd.icon.url; - response.mainImageURL = nativeAd.coverImage.url; + networkCode:ANNativeAdNetworkCodeFacebook]; + response.title = nativeAd.headline; + response.body = nativeAd.bodyText; response.callToAction = nativeAd.callToAction; response.customElements = @{ kANNativeElementObject : nativeAd}; diff --git a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerAdMob.m b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerAdMob.m index 8b73b52ef..be6011464 100644 --- a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerAdMob.m +++ b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerAdMob.m @@ -134,9 +134,6 @@ - (void)adView:(GADBannerView *)view didFailToReceiveAdWithError:(GADRequestErro case kGADErrorMediationAdapterError: code = ANAdResponseInternalError; break; - case kGADErrorMediationNoFill: - code = ANAdResponseUnableToFill; - break; case kGADErrorMediationInvalidAdSize: code = ANAdResponseInvalidRequest; break; diff --git a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerDFP.m b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerDFP.m index fbb0c7587..dce3d7210 100644 --- a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerDFP.m +++ b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBannerDFP.m @@ -187,9 +187,6 @@ - (void)adView:(GADBannerView *)view didFailToReceiveAdWithError:(GADRequestErro case kGADErrorMediationAdapterError: code = ANAdResponseInternalError; break; - case kGADErrorMediationNoFill: - code = ANAdResponseUnableToFill; - break; case kGADErrorMediationInvalidAdSize: code = ANAdResponseInvalidRequest; break; diff --git a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBaseDFP.m b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBaseDFP.m index 250ef5cc6..28c9759d9 100644 --- a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBaseDFP.m +++ b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterBaseDFP.m @@ -98,9 +98,6 @@ + (ANAdResponseCode)responseCodeFromRequestError:(GADRequestError *)error { case kGADErrorMediationAdapterError: code = ANAdResponseInternalError; break; - case kGADErrorMediationNoFill: - code = ANAdResponseUnableToFill; - break; case kGADErrorMediationInvalidAdSize: code = ANAdResponseInvalidRequest; break; diff --git a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterInterstitialAdMob.m b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterInterstitialAdMob.m index b522bbd0e..88f2cdc10 100644 --- a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterInterstitialAdMob.m +++ b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterInterstitialAdMob.m @@ -99,9 +99,6 @@ - (void)interstitial:(GADInterstitial *)ad didFailToReceiveAdWithError:(GADReque case kGADErrorMediationAdapterError: code = ANAdResponseInternalError; break; - case kGADErrorMediationNoFill: - code = ANAdResponseUnableToFill; - break; case kGADErrorMediationInvalidAdSize: code = ANAdResponseInvalidRequest; break; diff --git a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterInterstitialDFP.m b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterInterstitialDFP.m index f8c2e0beb..254008585 100644 --- a/mediation/mediatedviews/GoogleAdMob/ANAdAdapterInterstitialDFP.m +++ b/mediation/mediatedviews/GoogleAdMob/ANAdAdapterInterstitialDFP.m @@ -99,9 +99,6 @@ - (void)interstitial:(GADInterstitial *)ad didFailToReceiveAdWithError:(GADReque case kGADErrorMediationAdapterError: code = ANAdResponseInternalError; break; - case kGADErrorMediationNoFill: - code = ANAdResponseUnableToFill; - break; case kGADErrorMediationInvalidAdSize: code = ANAdResponseInvalidRequest; break; diff --git a/sdk/AppNexusNativeSDK/Info.plist b/sdk/AppNexusNativeSDK/Info.plist index 164b86a03..c675902f1 100644 --- a/sdk/AppNexusNativeSDK/Info.plist +++ b/sdk/AppNexusNativeSDK/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 6.0 + 6.1 CFBundleVersion $(CURRENT_PROJECT_VERSION) diff --git a/sdk/AppNexusSDK.xcodeproj/project.pbxproj b/sdk/AppNexusSDK.xcodeproj/project.pbxproj index 0e2945279..5643f46f5 100644 --- a/sdk/AppNexusSDK.xcodeproj/project.pbxproj +++ b/sdk/AppNexusSDK.xcodeproj/project.pbxproj @@ -7,17 +7,6 @@ objects = { /* Begin PBXBuildFile section */ - 0030D6EF20E5414D003B7C1D /* OMIDAdSession.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6E320E5414D003B7C1D /* OMIDAdSession.h */; }; - 0030D6F020E5414D003B7C1D /* OMIDSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6E420E5414D003B7C1D /* OMIDSDK.h */; }; - 0030D6F120E5414D003B7C1D /* OMIDVASTProperties.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6E520E5414D003B7C1D /* OMIDVASTProperties.h */; }; - 0030D6F220E5414D003B7C1D /* OMIDVideoEvents.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6E620E5414D003B7C1D /* OMIDVideoEvents.h */; }; - 0030D6F320E5414D003B7C1D /* OMIDAdSessionConfiguration.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6E720E5414D003B7C1D /* OMIDAdSessionConfiguration.h */; }; - 0030D6F420E5414D003B7C1D /* OMIDImports.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6E820E5414D003B7C1D /* OMIDImports.h */; }; - 0030D6F520E5414D003B7C1D /* OMIDAdSessionContext.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6E920E5414D003B7C1D /* OMIDAdSessionContext.h */; }; - 0030D6F620E5414D003B7C1D /* OMIDScriptInjector.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6EA20E5414D003B7C1D /* OMIDScriptInjector.h */; }; - 0030D6F920E5414D003B7C1D /* OMIDAdEvents.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6EC20E5414D003B7C1D /* OMIDAdEvents.h */; }; - 0030D6FA20E5414D003B7C1D /* OMIDVerificationScriptResource.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6ED20E5414D003B7C1D /* OMIDVerificationScriptResource.h */; }; - 0030D6FB20E5414D003B7C1D /* OMIDPartner.h in Headers */ = {isa = PBXBuildFile; fileRef = 0030D6EE20E5414D003B7C1D /* OMIDPartner.h */; }; 0035C5AE1F4496FD00915E97 /* ANSSMMediationAdViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 0035C5AD1F4496FD00915E97 /* ANSSMMediationAdViewController.h */; }; 0035C5B11F44971100915E97 /* ANSSMMediationAdViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0035C5AF1F44971100915E97 /* ANSSMMediationAdViewController.m */; }; 006F6B9B2295F70E003D2DF0 /* ANAdFetcherBase.m in Sources */ = {isa = PBXBuildFile; fileRef = 006F6B992295F70E003D2DF0 /* ANAdFetcherBase.m */; }; @@ -32,19 +21,65 @@ 0099B486228CA191004E80AB /* NSTimer+ANCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = ECE4EA99194B768A0069D934 /* NSTimer+ANCategory.m */; }; 00D6B04820D1BC9B007A3439 /* ANOMIDImplementation.h in Headers */ = {isa = PBXBuildFile; fileRef = 00D6B04720D1BC9B007A3439 /* ANOMIDImplementation.h */; }; 00D6B04B20D1BCAF007A3439 /* ANOMIDImplementation.m in Sources */ = {isa = PBXBuildFile; fileRef = 00D6B04920D1BCAF007A3439 /* ANOMIDImplementation.m */; }; + 0E1421E922F99AC9006C597A /* an_arrow_left.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A61A2F8AFE0000E4CC /* an_arrow_left.png */; }; + 0E1421EA22F99AC9006C597A /* an_arrow_left@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A51A2F8AFE0000E4CC /* an_arrow_left@2x.png */; }; + 0E1421EB22F99AC9006C597A /* an_arrow_left@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A31A2F8ACC0000E4CC /* an_arrow_left@3x.png */; }; + 0E1421EC22F99AC9006C597A /* an_arrow_right.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3AC1A2F8CE50000E4CC /* an_arrow_right.png */; }; + 0E1421ED22F99AC9006C597A /* an_arrow_right@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3AB1A2F8CE50000E4CC /* an_arrow_right@2x.png */; }; + 0E1421EE22F99AC9006C597A /* an_arrow_right@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A91A2F8CC10000E4CC /* an_arrow_right@3x.png */; }; + 0E1421EF22F99AC9006C597A /* appnexus_logo_icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8AD618991981C10700AC0780 /* appnexus_logo_icon.png */; }; + 0E1421F022F99AC9006C597A /* appnexus_logo_icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8AD6189A1981C10700AC0780 /* appnexus_logo_icon@2x.png */; }; + 0E1421F122F99AC9006C597A /* compass.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A2F483C1A2E33B000B0EA05 /* compass.png */; }; + 0E1421F222F99AC9006C597A /* compass@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A01A2F72D00000E4CC /* compass@2x.png */; }; + 0E1421F322F99AC9006C597A /* compass@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A6CD9261A96B2FD0060BCF4 /* compass@3x.png */; }; + 0E1421F422F99AC9006C597A /* interstitial_closebox.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD2194B768A0069D934 /* interstitial_closebox.png */; }; + 0E1421F522F99AC9006C597A /* interstitial_closebox@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD3194B768A0069D934 /* interstitial_closebox@2x.png */; }; + 0E1421F622F99AC9006C597A /* interstitial_flat_closebox.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A6D2E881A44A62A003CE77A /* interstitial_flat_closebox.png */; }; + 0E1421F722F99AC9006C597A /* interstitial_flat_closebox@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A6D2E871A44A62A003CE77A /* interstitial_flat_closebox@2x.png */; }; + 0E1421F822F99AC9006C597A /* interstitial_flat_closebox@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A6D2E841A44A5D3003CE77A /* interstitial_flat_closebox@3x.png */; }; + 0E1421F922F99AC9006C597A /* UIButtonBarArrowLeft.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD4194B768A0069D934 /* UIButtonBarArrowLeft.png */; }; + 0E1421FA22F99AC9006C597A /* UIButtonBarArrowLeft@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD5194B768A0069D934 /* UIButtonBarArrowLeft@2x.png */; }; + 0E1421FB22F99AC9006C597A /* UIButtonBarArrowRight.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD6194B768A0069D934 /* UIButtonBarArrowRight.png */; }; + 0E1421FC22F99AC9006C597A /* UIButtonBarArrowRight@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD7194B768A0069D934 /* UIButtonBarArrowRight@2x.png */; }; + 0E1421FD22F99ACA006C597A /* an_arrow_left.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A61A2F8AFE0000E4CC /* an_arrow_left.png */; }; + 0E1421FE22F99ACA006C597A /* an_arrow_left@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A51A2F8AFE0000E4CC /* an_arrow_left@2x.png */; }; + 0E1421FF22F99ACA006C597A /* an_arrow_left@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A31A2F8ACC0000E4CC /* an_arrow_left@3x.png */; }; + 0E14220022F99ACA006C597A /* an_arrow_right.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3AC1A2F8CE50000E4CC /* an_arrow_right.png */; }; + 0E14220122F99ACA006C597A /* an_arrow_right@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3AB1A2F8CE50000E4CC /* an_arrow_right@2x.png */; }; + 0E14220222F99ACA006C597A /* an_arrow_right@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A91A2F8CC10000E4CC /* an_arrow_right@3x.png */; }; + 0E14220322F99ACA006C597A /* appnexus_logo_icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8AD618991981C10700AC0780 /* appnexus_logo_icon.png */; }; + 0E14220422F99ACA006C597A /* appnexus_logo_icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8AD6189A1981C10700AC0780 /* appnexus_logo_icon@2x.png */; }; + 0E14220522F99ACA006C597A /* compass.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A2F483C1A2E33B000B0EA05 /* compass.png */; }; + 0E14220622F99ACA006C597A /* compass@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A01A2F72D00000E4CC /* compass@2x.png */; }; + 0E14220722F99ACA006C597A /* compass@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A6CD9261A96B2FD0060BCF4 /* compass@3x.png */; }; + 0E14220D22F99ACA006C597A /* UIButtonBarArrowLeft.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD4194B768A0069D934 /* UIButtonBarArrowLeft.png */; }; + 0E14220E22F99ACA006C597A /* UIButtonBarArrowLeft@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD5194B768A0069D934 /* UIButtonBarArrowLeft@2x.png */; }; + 0E14220F22F99ACA006C597A /* UIButtonBarArrowRight.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD6194B768A0069D934 /* UIButtonBarArrowRight.png */; }; + 0E14221022F99ACA006C597A /* UIButtonBarArrowRight@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD7194B768A0069D934 /* UIButtonBarArrowRight@2x.png */; }; + 0E14221122F99AD4006C597A /* ANBrowserViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = FC210A302007D529002A9F0E /* ANBrowserViewController.xib */; }; + 0E14221222F99AD6006C597A /* ANBrowserViewController_SizeClasses.xib in Resources */ = {isa = PBXBuildFile; fileRef = FC210A332007D52C002A9F0E /* ANBrowserViewController_SizeClasses.xib */; }; + 0E14221322F99AE2006C597A /* ANInterstitialAdViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EACC194B768A0069D934 /* ANInterstitialAdViewController.xib */; }; + 0E14221422F99AE7006C597A /* anjam.js in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EACD194B768A0069D934 /* anjam.js */; }; + 0E14221522F99AE9006C597A /* ANMRAID.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 8A3EC16F19B8FDC70049CD29 /* ANMRAID.bundle */; }; + 0E14221622F99AEC006C597A /* ASTMediationManager.js in Resources */ = {isa = PBXBuildFile; fileRef = 609733001E42EAFF0061EC0A /* ASTMediationManager.js */; }; + 0E14221722F99AEE006C597A /* errors.strings in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EACE194B768A0069D934 /* errors.strings */; }; + 0E14221822F99AF3006C597A /* MobileVastPlayer.js in Resources */ = {isa = PBXBuildFile; fileRef = 60AB32891E521FE500429ED7 /* MobileVastPlayer.js */; }; + 0E14221922F99AFB006C597A /* omsdk.js in Resources */ = {isa = PBXBuildFile; fileRef = 0EEE97DA21764ACD007DADE6 /* omsdk.js */; }; + 0E14221A22F99AFD006C597A /* sdkjs.js in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD9194B768A0069D934 /* sdkjs.js */; }; + 0E14221B22F99AFF006C597A /* optionsparser.js in Resources */ = {isa = PBXBuildFile; fileRef = 60D39E0F2256EE420029F741 /* optionsparser.js */; }; + 0E14221C22F99B02006C597A /* vastVideo.html in Resources */ = {isa = PBXBuildFile; fileRef = 4F403A6D2043C8CF00EF75A2 /* vastVideo.html */; }; + 0E14221D22F99B04006C597A /* nativeRenderer.html in Resources */ = {isa = PBXBuildFile; fileRef = 0E291F3622A075A300C9A851 /* nativeRenderer.html */; }; 0E290E4422844DEC00468327 /* ANRTBNativeAdResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 0E290E4122844DEC00468327 /* ANRTBNativeAdResponse.m */; }; 0E290E4522844DEC00468327 /* ANRTBNativeAdResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 0E290E4222844DEC00468327 /* ANRTBNativeAdResponse.h */; }; - 0E291F3722A075A300C9A851 /* nativeRenderer.html in Resources */ = {isa = PBXBuildFile; fileRef = 0E291F3622A075A300C9A851 /* nativeRenderer.html */; }; 0E7BC1CC229FC727002F41FF /* ANNativeRenderingViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 0E7BC1C9229FC71D002F41FF /* ANNativeRenderingViewController.m */; }; 0E9F613620FFDCD7009AECD8 /* ANNativeMediatedAdResponse+PrivateMethods.h in Headers */ = {isa = PBXBuildFile; fileRef = 0E9F613420FFDC3B009AECD8 /* ANNativeMediatedAdResponse+PrivateMethods.h */; }; + 0EA0790B2328E05200FB5764 /* OMSDK_Appnexus.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EA0790A2328E05200FB5764 /* OMSDK_Appnexus.framework */; }; + 0EA0790C2328E05200FB5764 /* OMSDK_Appnexus.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EA0790A2328E05200FB5764 /* OMSDK_Appnexus.framework */; }; 0EBE633A208F765E0008F4CC /* ANGDPRSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 0E35D4A92088F652000A6C27 /* ANGDPRSettings.h */; settings = {ATTRIBUTES = (Public, ); }; }; 0ECF336322D79A62007DB185 /* AppNexusNativeSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = 0ECF335D22D79A61007DB185 /* AppNexusNativeSDK.h */; settings = {ATTRIBUTES = (Public, ); }; }; 0ECF336622D79A62007DB185 /* AppNexusSDK.h in Headers */ = {isa = PBXBuildFile; fileRef = 0ECF336022D79A62007DB185 /* AppNexusSDK.h */; settings = {ATTRIBUTES = (Public, ); }; }; 0ED85345208A94F200A5FFA0 /* ANGDPRSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 0E35D4AC2088F67E000A6C27 /* ANGDPRSettings.m */; }; - 0EEE97DB21764ACD007DADE6 /* omsdk.js in Resources */ = {isa = PBXBuildFile; fileRef = 0EEE97DA21764ACD007DADE6 /* omsdk.js */; }; - 0EEE97F521768358007DADE6 /* libOMSDKAppnexus.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EEE97F321768358007DADE6 /* libOMSDKAppnexus.a */; }; 0EF636D322D7726000D3320F /* ANProxyViewController.h in Headers */ = {isa = PBXBuildFile; fileRef = 8ABC03D21C5AD3E100D7C789 /* ANProxyViewController.h */; settings = {ATTRIBUTES = (Public, ); }; }; - 4F403A6E2043C91100EF75A2 /* vastVideo.html in Resources */ = {isa = PBXBuildFile; fileRef = 4F403A6D2043C8CF00EF75A2 /* vastVideo.html */; }; 4F7332821FC35BBD00A206A2 /* AVKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F5B80571FBBAA3E0026F8B3 /* AVKit.framework */; }; 4F7332861FC35D5A00A206A2 /* AVFoundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 4F7332851FC35D5A00A206A2 /* AVFoundation.framework */; }; 60183FD52293482700CFDE33 /* ANWebView.h in Headers */ = {isa = PBXBuildFile; fileRef = 60183FD222933E9500CFDE33 /* ANWebView.h */; settings = {ATTRIBUTES = (Private, ); }; }; @@ -79,9 +114,6 @@ 609733061E42EAFF0061EC0A /* ANInstreamVideoAd.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732FC1E42EAFF0061EC0A /* ANInstreamVideoAd.m */; }; 609733071E42EAFF0061EC0A /* ANVideoAdPlayer.h in Headers */ = {isa = PBXBuildFile; fileRef = 609732FD1E42EAFF0061EC0A /* ANVideoAdPlayer.h */; settings = {ATTRIBUTES = (Public, ); }; }; 609733091E42EAFF0061EC0A /* ANVideoAdPlayer.m in Sources */ = {isa = PBXBuildFile; fileRef = 609732FE1E42EAFF0061EC0A /* ANVideoAdPlayer.m */; }; - 609733141E42EB0B0061EC0A /* ASTMediationManager.js in Resources */ = {isa = PBXBuildFile; fileRef = 609733001E42EAFF0061EC0A /* ASTMediationManager.js */; }; - 60AB328B1E521FE500429ED7 /* MobileVastPlayer.js in Resources */ = {isa = PBXBuildFile; fileRef = 60AB32891E521FE500429ED7 /* MobileVastPlayer.js */; }; - 60D39E112256EE430029F741 /* optionsparser.js in Resources */ = {isa = PBXBuildFile; fileRef = 60D39E0F2256EE420029F741 /* optionsparser.js */; }; 60D39E1522570FE20029F741 /* ANVideoPlayerSettings.h in Headers */ = {isa = PBXBuildFile; fileRef = 60D39E1322570FE20029F741 /* ANVideoPlayerSettings.h */; settings = {ATTRIBUTES = (Public, ); }; }; 60D39E1722570FE20029F741 /* ANVideoPlayerSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 60D39E1422570FE20029F741 /* ANVideoPlayerSettings.m */; }; 60D39E2922679E480029F741 /* ANVideoPlayerSettings+ANCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = 60D39E26226798D50029F741 /* ANVideoPlayerSettings+ANCategory.h */; }; @@ -91,21 +123,8 @@ 8A02D7091D6CE946006831A3 /* ANSDKSettings.m in Sources */ = {isa = PBXBuildFile; fileRef = 8A02D6FF1D6CE946006831A3 /* ANSDKSettings.m */; }; 8A2F48241A2E255600B0EA05 /* ANOpenInExternalBrowserActivity.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A2F48211A2E255600B0EA05 /* ANOpenInExternalBrowserActivity.h */; settings = {ATTRIBUTES = (Private, ); }; }; 8A2F48261A2E255600B0EA05 /* ANOpenInExternalBrowserActivity.m in Sources */ = {isa = PBXBuildFile; fileRef = 8A2F48221A2E255600B0EA05 /* ANOpenInExternalBrowserActivity.m */; }; - 8A2F483D1A2E33B000B0EA05 /* compass.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A2F483C1A2E33B000B0EA05 /* compass.png */; }; - 8A3EC17019B8FDCA0049CD29 /* ANMRAID.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 8A3EC16F19B8FDC70049CD29 /* ANMRAID.bundle */; }; - 8A4FF3A11A2F72D00000E4CC /* compass@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A01A2F72D00000E4CC /* compass@2x.png */; }; - 8A4FF3A41A2F8ACC0000E4CC /* an_arrow_left@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A31A2F8ACC0000E4CC /* an_arrow_left@3x.png */; }; - 8A4FF3A71A2F8AFE0000E4CC /* an_arrow_left@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A51A2F8AFE0000E4CC /* an_arrow_left@2x.png */; }; - 8A4FF3A81A2F8AFE0000E4CC /* an_arrow_left.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A61A2F8AFE0000E4CC /* an_arrow_left.png */; }; - 8A4FF3AA1A2F8CC10000E4CC /* an_arrow_right@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3A91A2F8CC10000E4CC /* an_arrow_right@3x.png */; }; - 8A4FF3AD1A2F8CE50000E4CC /* an_arrow_right@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3AB1A2F8CE50000E4CC /* an_arrow_right@2x.png */; }; - 8A4FF3AE1A2F8CE50000E4CC /* an_arrow_right.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A4FF3AC1A2F8CE50000E4CC /* an_arrow_right.png */; }; 8A598F8B1A1EA061009BA879 /* ANNativeStandardAdResponse.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A598F881A1EA061009BA879 /* ANNativeStandardAdResponse.h */; settings = {ATTRIBUTES = (Private, ); }; }; 8A598F8D1A1EA061009BA879 /* ANNativeStandardAdResponse.m in Sources */ = {isa = PBXBuildFile; fileRef = 8A598F891A1EA061009BA879 /* ANNativeStandardAdResponse.m */; }; - 8A6CD9271A96B2FD0060BCF4 /* compass@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A6CD9261A96B2FD0060BCF4 /* compass@3x.png */; }; - 8A6D2E8D1A44A751003CE77A /* interstitial_flat_closebox@3x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A6D2E841A44A5D3003CE77A /* interstitial_flat_closebox@3x.png */; }; - 8A6D2E8E1A44A751003CE77A /* interstitial_flat_closebox@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A6D2E871A44A62A003CE77A /* interstitial_flat_closebox@2x.png */; }; - 8A6D2E8F1A44A751003CE77A /* interstitial_flat_closebox.png in Resources */ = {isa = PBXBuildFile; fileRef = 8A6D2E881A44A62A003CE77A /* interstitial_flat_closebox.png */; }; 8A84E42E1A25350800C60EAB /* ANNativeAdResponse+PrivateMethods.h in Headers */ = {isa = PBXBuildFile; fileRef = 8A84E42A1A2534F300C60EAB /* ANNativeAdResponse+PrivateMethods.h */; settings = {ATTRIBUTES = (Private, ); }; }; 8A92F9EB1D05E1B500F689C7 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 8A92F9EA1D05E1B500F689C7 /* WebKit.framework */; }; 8A9AEDB11A1BE8C200C58BDA /* ANAdConstants.h in Headers */ = {isa = PBXBuildFile; fileRef = 8ABB76691A00385C00FEAD9D /* ANAdConstants.h */; settings = {ATTRIBUTES = (Public, ); }; }; @@ -189,9 +208,6 @@ 8AC65F701A40DE74006BCF39 /* ANMRAIDResizeViewManager.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AC65F481A40DE63006BCF39 /* ANMRAIDResizeViewManager.m */; }; 8AC65F711A40DE74006BCF39 /* ANMRAIDUtil.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AC65F491A40DE63006BCF39 /* ANMRAIDUtil.h */; settings = {ATTRIBUTES = (Private, ); }; }; 8AC65F721A40DE74006BCF39 /* ANMRAIDUtil.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AC65F4A1A40DE63006BCF39 /* ANMRAIDUtil.m */; }; - 8AD618E31981C19100AC0780 /* appnexus_logo_icon.png in Resources */ = {isa = PBXBuildFile; fileRef = 8AD618991981C10700AC0780 /* appnexus_logo_icon.png */; }; - 8AD618E41981C19500AC0780 /* appnexus_logo_icon@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 8AD6189A1981C10700AC0780 /* appnexus_logo_icon@2x.png */; }; - 8ADA36201A82A8D700AF65AA /* AppNexusSDKResources.bundle in Resources */ = {isa = PBXBuildFile; fileRef = EC48177B1845046A0066BBFE /* AppNexusSDKResources.bundle */; }; 8AE5E11E1A2FDC7700FDE858 /* ANAdView+PrivateMethods.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AE5E11C1A2FDC7700FDE858 /* ANAdView+PrivateMethods.h */; settings = {ATTRIBUTES = (Private, ); }; }; 8AE7AD9F1A7AC4F6009E2F2F /* ANAdWebViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AC7C5371A3B5CEF00AA5548 /* ANAdWebViewController.m */; }; 8AF5A8851ACC60D50089C529 /* ANStandardAd.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AF5A87D1ACC60D50089C529 /* ANStandardAd.h */; }; @@ -209,16 +225,6 @@ 97EC51EF2229782B00B740DF /* ANVerificationScriptResource.m in Sources */ = {isa = PBXBuildFile; fileRef = 97EC51EC2229782B00B740DF /* ANVerificationScriptResource.m */; }; 9EEE4E50214FD2100056C5DD /* ANCarrierObserver.h in Headers */ = {isa = PBXBuildFile; fileRef = 9EEE4E4E214FD2100056C5DD /* ANCarrierObserver.h */; }; 9EEE4E52214FD2100056C5DD /* ANCarrierObserver.m in Sources */ = {isa = PBXBuildFile; fileRef = 9EEE4E4F214FD2100056C5DD /* ANCarrierObserver.m */; }; - ECE4EB04194B76960069D934 /* ANInterstitialAdViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EACC194B768A0069D934 /* ANInterstitialAdViewController.xib */; }; - ECE4EB05194B76960069D934 /* anjam.js in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EACD194B768A0069D934 /* anjam.js */; }; - ECE4EB06194B76960069D934 /* errors.strings in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EACE194B768A0069D934 /* errors.strings */; }; - ECE4EB09194B76960069D934 /* interstitial_closebox.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD2194B768A0069D934 /* interstitial_closebox.png */; }; - ECE4EB0A194B76960069D934 /* interstitial_closebox@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD3194B768A0069D934 /* interstitial_closebox@2x.png */; }; - ECE4EB0B194B76960069D934 /* UIButtonBarArrowLeft.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD4194B768A0069D934 /* UIButtonBarArrowLeft.png */; }; - ECE4EB0C194B76960069D934 /* UIButtonBarArrowLeft@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD5194B768A0069D934 /* UIButtonBarArrowLeft@2x.png */; }; - ECE4EB0D194B76960069D934 /* UIButtonBarArrowRight.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD6194B768A0069D934 /* UIButtonBarArrowRight.png */; }; - ECE4EB0E194B76960069D934 /* UIButtonBarArrowRight@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD7194B768A0069D934 /* UIButtonBarArrowRight@2x.png */; }; - ECE4EB10194B76960069D934 /* sdkjs.js in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EAD9194B768A0069D934 /* sdkjs.js */; }; F52B044122AECD6B00985B62 /* NSObject+ANCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = 608E477B1F8EAB84009BB148 /* NSObject+ANCategory.h */; }; F52B044222AECD6F00985B62 /* NSObject+ANCategory.m in Sources */ = {isa = PBXBuildFile; fileRef = 608E477C1F8EAB84009BB148 /* NSObject+ANCategory.m */; }; F52F82EB2293362600F4578C /* NSObject+ANCategory.h in Headers */ = {isa = PBXBuildFile; fileRef = 608E477B1F8EAB84009BB148 /* NSObject+ANCategory.h */; }; @@ -231,7 +237,6 @@ F52F83152295DCA500F4578C /* ANBrowserViewController_SizeClasses.xib in Resources */ = {isa = PBXBuildFile; fileRef = FC210A332007D52C002A9F0E /* ANBrowserViewController_SizeClasses.xib */; }; F52F83162295DCA500F4578C /* errors.strings in Resources */ = {isa = PBXBuildFile; fileRef = ECE4EACE194B768A0069D934 /* errors.strings */; }; F52F83172295DCA500F4578C /* omsdk.js in Resources */ = {isa = PBXBuildFile; fileRef = 0EEE97DA21764ACD007DADE6 /* omsdk.js */; }; - F5731B0B228B57590012B134 /* libOMSDKAppnexus.a in Frameworks */ = {isa = PBXBuildFile; fileRef = 0EEE97F321768358007DADE6 /* libOMSDKAppnexus.a */; }; F5731B3F228C8CA80012B134 /* ANNativeAdImageCache.h in Headers */ = {isa = PBXBuildFile; fileRef = 8AB876201A0994310022D9A5 /* ANNativeAdImageCache.h */; settings = {ATTRIBUTES = (Private, ); }; }; F5731B40228C8CB40012B134 /* ANNativeAdImageCache.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AB876211A0994310022D9A5 /* ANNativeAdImageCache.m */; }; F5731B41228C8CBB0012B134 /* ANNativeAdRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = 8AB876231A0994310022D9A5 /* ANNativeAdRequest.m */; }; @@ -310,34 +315,23 @@ F5731BCD228DD90B0012B134 /* ANNativeAdFetcher.h in Headers */ = {isa = PBXBuildFile; fileRef = F5731BCC228DD90B0012B134 /* ANNativeAdFetcher.h */; }; F5731BCE228F07F30012B134 /* ANNativeAdFetcher.h in Headers */ = {isa = PBXBuildFile; fileRef = F5731BCC228DD90B0012B134 /* ANNativeAdFetcher.h */; }; F5731BCF228F07FC0012B134 /* ANNativeAdFetcher.m in Sources */ = {isa = PBXBuildFile; fileRef = F5731BCA228DD8E60012B134 /* ANNativeAdFetcher.m */; }; - FC210A2E2007D529002A9F0E /* ANBrowserViewController.xib in Resources */ = {isa = PBXBuildFile; fileRef = FC210A302007D529002A9F0E /* ANBrowserViewController.xib */; }; - FC210A312007D52C002A9F0E /* ANBrowserViewController_SizeClasses.xib in Resources */ = {isa = PBXBuildFile; fileRef = FC210A332007D52C002A9F0E /* ANBrowserViewController_SizeClasses.xib */; }; FCC5DA5F2034AD35003DC7B2 /* ANBaseAdObject.m in Sources */ = {isa = PBXBuildFile; fileRef = FCC5DA5C2034ABFB003DC7B2 /* ANBaseAdObject.m */; }; FCC5DA612034AD3E003DC7B2 /* ANBaseAdObject.h in Headers */ = {isa = PBXBuildFile; fileRef = FCC5DA5D2034ABFC003DC7B2 /* ANBaseAdObject.h */; }; /* End PBXBuildFile section */ -/* Begin PBXContainerItemProxy section */ - 8A9AEDAD1A1BE8AA00C58BDA /* PBXContainerItemProxy */ = { - isa = PBXContainerItemProxy; - containerPortal = EC3E5CD41843C6D50070315E /* Project object */; - proxyType = 1; - remoteGlobalIDString = EC48177A1845046A0066BBFE; - remoteInfo = ANSDKResources; +/* Begin PBXCopyFilesBuildPhase section */ + 0E19A3CE23210B7D00E83276 /* CopyFiles */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 10; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; }; -/* End PBXContainerItemProxy section */ +/* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ - 0030D6E320E5414D003B7C1D /* OMIDAdSession.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDAdSession.h; sourceTree = ""; }; - 0030D6E420E5414D003B7C1D /* OMIDSDK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDSDK.h; sourceTree = ""; }; - 0030D6E520E5414D003B7C1D /* OMIDVASTProperties.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDVASTProperties.h; sourceTree = ""; }; - 0030D6E620E5414D003B7C1D /* OMIDVideoEvents.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDVideoEvents.h; sourceTree = ""; }; - 0030D6E720E5414D003B7C1D /* OMIDAdSessionConfiguration.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDAdSessionConfiguration.h; sourceTree = ""; }; - 0030D6E820E5414D003B7C1D /* OMIDImports.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDImports.h; sourceTree = ""; }; - 0030D6E920E5414D003B7C1D /* OMIDAdSessionContext.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDAdSessionContext.h; sourceTree = ""; }; - 0030D6EA20E5414D003B7C1D /* OMIDScriptInjector.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDScriptInjector.h; sourceTree = ""; }; - 0030D6EC20E5414D003B7C1D /* OMIDAdEvents.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDAdEvents.h; sourceTree = ""; }; - 0030D6ED20E5414D003B7C1D /* OMIDVerificationScriptResource.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDVerificationScriptResource.h; sourceTree = ""; }; - 0030D6EE20E5414D003B7C1D /* OMIDPartner.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OMIDPartner.h; sourceTree = ""; }; 0035C5AD1F4496FD00915E97 /* ANSSMMediationAdViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANSSMMediationAdViewController.h; sourceTree = ""; }; 0035C5AF1F44971100915E97 /* ANSSMMediationAdViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ANSSMMediationAdViewController.m; sourceTree = ""; }; 006F6B992295F70E003D2DF0 /* ANAdFetcherBase.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ANAdFetcherBase.m; sourceTree = ""; }; @@ -355,12 +349,12 @@ 0E7BC1C9229FC71D002F41FF /* ANNativeRenderingViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = ANNativeRenderingViewController.m; path = ../native/internal/NativeRendering/ANNativeRenderingViewController.m; sourceTree = ""; }; 0E7BC1CA229FC71D002F41FF /* ANNativeRenderingViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = ANNativeRenderingViewController.h; path = ../native/internal/NativeRendering/ANNativeRenderingViewController.h; sourceTree = ""; }; 0E9F613420FFDC3B009AECD8 /* ANNativeMediatedAdResponse+PrivateMethods.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ANNativeMediatedAdResponse+PrivateMethods.h"; sourceTree = ""; }; + 0EA0790A2328E05200FB5764 /* OMSDK_Appnexus.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = OMSDK_Appnexus.framework; sourceTree = ""; }; 0ECF335D22D79A61007DB185 /* AppNexusNativeSDK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppNexusNativeSDK.h; sourceTree = ""; }; 0ECF335E22D79A61007DB185 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 0ECF336022D79A62007DB185 /* AppNexusSDK.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AppNexusSDK.h; sourceTree = ""; }; 0ECF336122D79A62007DB185 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 0EEE97DA21764ACD007DADE6 /* omsdk.js */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.javascript; path = omsdk.js; sourceTree = ""; }; - 0EEE97F321768358007DADE6 /* libOMSDKAppnexus.a */ = {isa = PBXFileReference; lastKnownFileType = archive.ar; path = libOMSDKAppnexus.a; sourceTree = ""; }; 4F131E8A1F71CCE50019FDAC /* ANAdFetcherResponse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANAdFetcherResponse.h; sourceTree = ""; }; 4F131E8B1F71CCE50019FDAC /* ANAdFetcherResponse.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ANAdFetcherResponse.m; sourceTree = ""; }; 4F403A6D2043C8CF00EF75A2 /* vastVideo.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = vastVideo.html; sourceTree = ""; }; @@ -525,7 +519,6 @@ 97EC51EC2229782B00B740DF /* ANVerificationScriptResource.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ANVerificationScriptResource.m; sourceTree = ""; }; 9EEE4E4E214FD2100056C5DD /* ANCarrierObserver.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ANCarrierObserver.h; sourceTree = ""; }; 9EEE4E4F214FD2100056C5DD /* ANCarrierObserver.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ANCarrierObserver.m; sourceTree = ""; }; - EC48177B1845046A0066BBFE /* AppNexusSDKResources.bundle */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = AppNexusSDKResources.bundle; sourceTree = BUILT_PRODUCTS_DIR; }; ECE4EA8D194B768A0069D934 /* ANAdProtocol.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANAdProtocol.h; sourceTree = ""; }; ECE4EA8E194B768A0069D934 /* ANAdView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANAdView.h; sourceTree = ""; }; ECE4EA8F194B768A0069D934 /* ANBannerAdView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ANBannerAdView.h; sourceTree = ""; }; @@ -567,8 +560,8 @@ 4F7332861FC35D5A00A206A2 /* AVFoundation.framework in Frameworks */, 4F7332821FC35BBD00A206A2 /* AVKit.framework in Frameworks */, 8AFC04611A2E74C800BEA485 /* CoreGraphics.framework in Frameworks */, + 0EA0790B2328E05200FB5764 /* OMSDK_Appnexus.framework in Frameworks */, 8AFC04651A2E751200BEA485 /* CoreTelephony.framework in Frameworks */, - 0EEE97F521768358007DADE6 /* libOMSDKAppnexus.a in Frameworks */, 8AFC046D1A2E75A300BEA485 /* MediaPlayer.framework in Frameworks */, 8AFC04711A2E760800BEA485 /* MessageUI.framework in Frameworks */, 8AFC046B1A2E757900BEA485 /* QuartzCore.framework in Frameworks */, @@ -579,47 +572,21 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - EC4817781845046A0066BBFE /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; F5731AFA228B43570012B134 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; files = ( - F5731B0B228B57590012B134 /* libOMSDKAppnexus.a in Frameworks */, + 0EA0790C2328E05200FB5764 /* OMSDK_Appnexus.framework in Frameworks */, ); runOnlyForDeploymentPostprocessing = 0; }; /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ - 0030D6E220E5414D003B7C1D /* OMAppnexusSDK */ = { - isa = PBXGroup; - children = ( - 0EEE97F321768358007DADE6 /* libOMSDKAppnexus.a */, - 0030D6E320E5414D003B7C1D /* OMIDAdSession.h */, - 0030D6E720E5414D003B7C1D /* OMIDAdSessionConfiguration.h */, - 0030D6EC20E5414D003B7C1D /* OMIDAdEvents.h */, - 0030D6E920E5414D003B7C1D /* OMIDAdSessionContext.h */, - 0030D6E820E5414D003B7C1D /* OMIDImports.h */, - 0030D6EE20E5414D003B7C1D /* OMIDPartner.h */, - 0030D6EA20E5414D003B7C1D /* OMIDScriptInjector.h */, - 0030D6E420E5414D003B7C1D /* OMIDSDK.h */, - 0030D6E520E5414D003B7C1D /* OMIDVASTProperties.h */, - 0030D6ED20E5414D003B7C1D /* OMIDVerificationScriptResource.h */, - 0030D6E620E5414D003B7C1D /* OMIDVideoEvents.h */, - ); - path = OMAppnexusSDK; - sourceTree = ""; - }; 00D6B04320D1BAB9007A3439 /* Viewability */ = { isa = PBXGroup; children = ( - 0030D6E220E5414D003B7C1D /* OMAppnexusSDK */, + 0EA0790A2328E05200FB5764 /* OMSDK_Appnexus.framework */, 00D6B04720D1BC9B007A3439 /* ANOMIDImplementation.h */, 00D6B04920D1BCAF007A3439 /* ANOMIDImplementation.m */, ); @@ -905,7 +872,6 @@ EC3E5CDD1843C6D50070315E /* Products */ = { isa = PBXGroup; children = ( - EC48177B1845046A0066BBFE /* AppNexusSDKResources.bundle */, 8A9AED8C1A1BE84F00C58BDA /* AppNexusSDK.framework */, F5731AFD228B43570012B134 /* AppNexusNativeSDK.framework */, ); @@ -1067,17 +1033,6 @@ 609732B01E42E73D0061EC0A /* NSDictionary+ANCategory.h in Headers */, 8A9AEDC71A1BF88200C58BDA /* NSString+ANCategory.h in Headers */, 8A9AEDC81A1BF88200C58BDA /* NSTimer+ANCategory.h in Headers */, - 0030D6F920E5414D003B7C1D /* OMIDAdEvents.h in Headers */, - 0030D6EF20E5414D003B7C1D /* OMIDAdSession.h in Headers */, - 0030D6F320E5414D003B7C1D /* OMIDAdSessionConfiguration.h in Headers */, - 0030D6F520E5414D003B7C1D /* OMIDAdSessionContext.h in Headers */, - 0030D6F420E5414D003B7C1D /* OMIDImports.h in Headers */, - 0030D6FB20E5414D003B7C1D /* OMIDPartner.h in Headers */, - 0030D6F620E5414D003B7C1D /* OMIDScriptInjector.h in Headers */, - 0030D6F020E5414D003B7C1D /* OMIDSDK.h in Headers */, - 0030D6F120E5414D003B7C1D /* OMIDVASTProperties.h in Headers */, - 0030D6FA20E5414D003B7C1D /* OMIDVerificationScriptResource.h in Headers */, - 0030D6F220E5414D003B7C1D /* OMIDVideoEvents.h in Headers */, 006F6B9E2295F72A003D2DF0 /* ANAdFetcherBase.h in Headers */, 8A9AEDC91A1BF88200C58BDA /* UIView+ANCategory.h in Headers */, 0EF636D322D7726000D3320F /* ANProxyViewController.h in Headers */, @@ -1153,34 +1108,17 @@ 8A9AEDE71A1BF98600C58BDA /* Sources */, 8A9AED8A1A1BE84F00C58BDA /* Resources */, 8AFC045D1A2E745C00BEA485 /* Frameworks */, + 0E19A3CE23210B7D00E83276 /* CopyFiles */, ); buildRules = ( ); dependencies = ( - 8A9AEDAE1A1BE8AA00C58BDA /* PBXTargetDependency */, ); name = AppNexusSDK; productName = AppNexusSDK; productReference = 8A9AED8C1A1BE84F00C58BDA /* AppNexusSDK.framework */; productType = "com.apple.product-type.framework"; }; - EC48177A1845046A0066BBFE /* AppNexusSDKResources */ = { - isa = PBXNativeTarget; - buildConfigurationList = EC4817851845046A0066BBFE /* Build configuration list for PBXNativeTarget "AppNexusSDKResources" */; - buildPhases = ( - EC4817771845046A0066BBFE /* Sources */, - EC4817781845046A0066BBFE /* Frameworks */, - EC4817791845046A0066BBFE /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = AppNexusSDKResources; - productName = ANSDKResources; - productReference = EC48177B1845046A0066BBFE /* AppNexusSDKResources.bundle */; - productType = "com.apple.product-type.bundle"; - }; F5731AFC228B43570012B134 /* AppNexusNativeSDK */ = { isa = PBXNativeTarget; buildConfigurationList = F5731B04228B43570012B134 /* Build configuration list for PBXNativeTarget "AppNexusNativeSDK" */; @@ -1232,7 +1170,6 @@ projectDirPath = ""; projectRoot = ""; targets = ( - EC48177A1845046A0066BBFE /* AppNexusSDKResources */, 8A9AED8B1A1BE84F00C58BDA /* AppNexusSDK */, F5731AFC228B43570012B134 /* AppNexusNativeSDK */, ); @@ -1244,47 +1181,39 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( - 8ADA36201A82A8D700AF65AA /* AppNexusSDKResources.bundle in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - EC4817791845046A0066BBFE /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 8A4FF3A81A2F8AFE0000E4CC /* an_arrow_left.png in Resources */, - 8A4FF3A71A2F8AFE0000E4CC /* an_arrow_left@2x.png in Resources */, - 8A4FF3A41A2F8ACC0000E4CC /* an_arrow_left@3x.png in Resources */, - 8A4FF3AE1A2F8CE50000E4CC /* an_arrow_right.png in Resources */, - 8A4FF3AD1A2F8CE50000E4CC /* an_arrow_right@2x.png in Resources */, - 8A4FF3AA1A2F8CC10000E4CC /* an_arrow_right@3x.png in Resources */, - FC210A2E2007D529002A9F0E /* ANBrowserViewController.xib in Resources */, - FC210A312007D52C002A9F0E /* ANBrowserViewController_SizeClasses.xib in Resources */, - ECE4EB04194B76960069D934 /* ANInterstitialAdViewController.xib in Resources */, - ECE4EB05194B76960069D934 /* anjam.js in Resources */, - 8A3EC17019B8FDCA0049CD29 /* ANMRAID.bundle in Resources */, - 8AD618E31981C19100AC0780 /* appnexus_logo_icon.png in Resources */, - 8AD618E41981C19500AC0780 /* appnexus_logo_icon@2x.png in Resources */, - 609733141E42EB0B0061EC0A /* ASTMediationManager.js in Resources */, - 8A2F483D1A2E33B000B0EA05 /* compass.png in Resources */, - 8A4FF3A11A2F72D00000E4CC /* compass@2x.png in Resources */, - 8A6CD9271A96B2FD0060BCF4 /* compass@3x.png in Resources */, - ECE4EB06194B76960069D934 /* errors.strings in Resources */, - ECE4EB09194B76960069D934 /* interstitial_closebox.png in Resources */, - ECE4EB0A194B76960069D934 /* interstitial_closebox@2x.png in Resources */, - 60D39E112256EE430029F741 /* optionsparser.js in Resources */, - 8A6D2E8F1A44A751003CE77A /* interstitial_flat_closebox.png in Resources */, - 0E291F3722A075A300C9A851 /* nativeRenderer.html in Resources */, - 8A6D2E8E1A44A751003CE77A /* interstitial_flat_closebox@2x.png in Resources */, - 8A6D2E8D1A44A751003CE77A /* interstitial_flat_closebox@3x.png in Resources */, - 60AB328B1E521FE500429ED7 /* MobileVastPlayer.js in Resources */, - 0EEE97DB21764ACD007DADE6 /* omsdk.js in Resources */, - ECE4EB10194B76960069D934 /* sdkjs.js in Resources */, - ECE4EB0B194B76960069D934 /* UIButtonBarArrowLeft.png in Resources */, - ECE4EB0C194B76960069D934 /* UIButtonBarArrowLeft@2x.png in Resources */, - ECE4EB0D194B76960069D934 /* UIButtonBarArrowRight.png in Resources */, - ECE4EB0E194B76960069D934 /* UIButtonBarArrowRight@2x.png in Resources */, - 4F403A6E2043C91100EF75A2 /* vastVideo.html in Resources */, + 0E1421EA22F99AC9006C597A /* an_arrow_left@2x.png in Resources */, + 0E1421FC22F99AC9006C597A /* UIButtonBarArrowRight@2x.png in Resources */, + 0E1421FB22F99AC9006C597A /* UIButtonBarArrowRight.png in Resources */, + 0E14221922F99AFB006C597A /* omsdk.js in Resources */, + 0E14221522F99AE9006C597A /* ANMRAID.bundle in Resources */, + 0E1421F522F99AC9006C597A /* interstitial_closebox@2x.png in Resources */, + 0E14221C22F99B02006C597A /* vastVideo.html in Resources */, + 0E1421E922F99AC9006C597A /* an_arrow_left.png in Resources */, + 0E1421F922F99AC9006C597A /* UIButtonBarArrowLeft.png in Resources */, + 0E1421F022F99AC9006C597A /* appnexus_logo_icon@2x.png in Resources */, + 0E1421F322F99AC9006C597A /* compass@3x.png in Resources */, + 0E14221A22F99AFD006C597A /* sdkjs.js in Resources */, + 0E14221822F99AF3006C597A /* MobileVastPlayer.js in Resources */, + 0E14221222F99AD6006C597A /* ANBrowserViewController_SizeClasses.xib in Resources */, + 0E1421EB22F99AC9006C597A /* an_arrow_left@3x.png in Resources */, + 0E14221422F99AE7006C597A /* anjam.js in Resources */, + 0E1421EE22F99AC9006C597A /* an_arrow_right@3x.png in Resources */, + 0E1421EF22F99AC9006C597A /* appnexus_logo_icon.png in Resources */, + 0E1421ED22F99AC9006C597A /* an_arrow_right@2x.png in Resources */, + 0E14221722F99AEE006C597A /* errors.strings in Resources */, + 0E1421F122F99AC9006C597A /* compass.png in Resources */, + 0E14221D22F99B04006C597A /* nativeRenderer.html in Resources */, + 0E14221622F99AEC006C597A /* ASTMediationManager.js in Resources */, + 0E1421EC22F99AC9006C597A /* an_arrow_right.png in Resources */, + 0E14221B22F99AFF006C597A /* optionsparser.js in Resources */, + 0E14221322F99AE2006C597A /* ANInterstitialAdViewController.xib in Resources */, + 0E1421F622F99AC9006C597A /* interstitial_flat_closebox.png in Resources */, + 0E1421FA22F99AC9006C597A /* UIButtonBarArrowLeft@2x.png in Resources */, + 0E14221122F99AD4006C597A /* ANBrowserViewController.xib in Resources */, + 0E1421F722F99AC9006C597A /* interstitial_flat_closebox@2x.png in Resources */, + 0E1421F822F99AC9006C597A /* interstitial_flat_closebox@3x.png in Resources */, + 0E1421F422F99AC9006C597A /* interstitial_closebox.png in Resources */, + 0E1421F222F99AC9006C597A /* compass@2x.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1293,9 +1222,24 @@ buildActionMask = 2147483647; files = ( F52F83142295DCA500F4578C /* ANBrowserViewController.xib in Resources */, + 0E1421FD22F99ACA006C597A /* an_arrow_left.png in Resources */, + 0E14220422F99ACA006C597A /* appnexus_logo_icon@2x.png in Resources */, + 0E14220622F99ACA006C597A /* compass@2x.png in Resources */, + 0E14220322F99ACA006C597A /* appnexus_logo_icon.png in Resources */, + 0E14220E22F99ACA006C597A /* UIButtonBarArrowLeft@2x.png in Resources */, + 0E1421FE22F99ACA006C597A /* an_arrow_left@2x.png in Resources */, + 0E14220222F99ACA006C597A /* an_arrow_right@3x.png in Resources */, + 0E14220022F99ACA006C597A /* an_arrow_right.png in Resources */, + 0E14220D22F99ACA006C597A /* UIButtonBarArrowLeft.png in Resources */, + 0E14220F22F99ACA006C597A /* UIButtonBarArrowRight.png in Resources */, F52F83152295DCA500F4578C /* ANBrowserViewController_SizeClasses.xib in Resources */, + 0E14220722F99ACA006C597A /* compass@3x.png in Resources */, + 0E14221022F99ACA006C597A /* UIButtonBarArrowRight@2x.png in Resources */, F52F83162295DCA500F4578C /* errors.strings in Resources */, + 0E14220122F99ACA006C597A /* an_arrow_right@2x.png in Resources */, F52F83172295DCA500F4578C /* omsdk.js in Resources */, + 0E1421FF22F99ACA006C597A /* an_arrow_left@3x.png in Resources */, + 0E14220522F99ACA006C597A /* compass.png in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -1381,13 +1325,6 @@ ); runOnlyForDeploymentPostprocessing = 0; }; - EC4817771845046A0066BBFE /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - runOnlyForDeploymentPostprocessing = 0; - }; F5731AF9228B43570012B134 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -1439,14 +1376,6 @@ }; /* End PBXSourcesBuildPhase section */ -/* Begin PBXTargetDependency section */ - 8A9AEDAE1A1BE8AA00C58BDA /* PBXTargetDependency */ = { - isa = PBXTargetDependency; - target = EC48177A1845046A0066BBFE /* AppNexusSDKResources */; - targetProxy = 8A9AEDAD1A1BE8AA00C58BDA /* PBXContainerItemProxy */; - }; -/* End PBXTargetDependency section */ - /* Begin PBXVariantGroup section */ FC210A302007D529002A9F0E /* ANBrowserViewController.xib */ = { isa = PBXVariantGroup; @@ -1479,6 +1408,10 @@ DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_STRICT_OBJC_MSGSEND = YES; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SRCROOT)/sourcefiles/Viewability\"/**", + "$(PROJECT_DIR)/sourcefiles/Viewability", + ); GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -1493,6 +1426,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/sourcefiles/Viewability/OMAppnexusSDK"; + MARKETING_VERSION = 6.1; MTL_ENABLE_DEBUG_INFO = YES; PRODUCT_BUNDLE_IDENTIFIER = "corp.appnexus.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1516,6 +1450,10 @@ DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; ENABLE_STRICT_OBJC_MSGSEND = YES; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SRCROOT)/sourcefiles/Viewability\"/**", + "$(PROJECT_DIR)/sourcefiles/Viewability", + ); GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; HEADER_SEARCH_PATHS = ( "$(PROJECT_DIR)/../sdk/Viewability/OMAppnexusSDK", @@ -1526,6 +1464,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/sourcefiles/Viewability/OMAppnexusSDK"; + MARKETING_VERSION = 6.1; MTL_ENABLE_DEBUG_INFO = NO; PRODUCT_BUNDLE_IDENTIFIER = "corp.appnexus.$(PRODUCT_NAME:rfc1034identifier)"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -1644,43 +1583,6 @@ }; name = Release; }; - EC4817861845046A0066BBFE /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - COMBINE_HIDPI_IMAGES = NO; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - INFOPLIST_FILE = "$(PROJECT_DIR)/sourcefiles/Resources/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; - MACOSX_DEPLOYMENT_TARGET = 10.8; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - WRAPPER_EXTENSION = bundle; - }; - name = Debug; - }; - EC4817871845046A0066BBFE /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - COMBINE_HIDPI_IMAGES = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - GCC_ENABLE_OBJC_EXCEPTIONS = YES; - GCC_PRECOMPILE_PREFIX_HEADER = NO; - GCC_PREFIX_HEADER = ""; - INFOPLIST_FILE = "$(PROJECT_DIR)/sourcefiles/Resources/Info.plist"; - INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; - MACOSX_DEPLOYMENT_TARGET = 10.8; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - WRAPPER_EXTENSION = bundle; - }; - name = Release; - }; F5731B02228B43570012B134 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -1702,6 +1604,10 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SRCROOT)/sourcefiles/Viewability\"/**", + "$(PROJECT_DIR)/sourcefiles/Viewability", + ); GCC_C_LANGUAGE_STANDARD = gnu11; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../sdk/Viewability/OMAppnexusSDK"; @@ -1710,6 +1616,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/sourcefiles/Viewability/OMAppnexusSDK"; + MARKETING_VERSION = 6.1; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.appnexus.AppNexusNativeSDK; @@ -1742,6 +1649,10 @@ DYLIB_COMPATIBILITY_VERSION = 1; DYLIB_CURRENT_VERSION = 1; DYLIB_INSTALL_NAME_BASE = "@rpath"; + FRAMEWORK_SEARCH_PATHS = ( + "\"$(SRCROOT)/sourcefiles/Viewability\"/**", + "$(PROJECT_DIR)/sourcefiles/Viewability", + ); GCC_C_LANGUAGE_STANDARD = gnu11; GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; HEADER_SEARCH_PATHS = "$(PROJECT_DIR)/../sdk/Viewability/OMAppnexusSDK"; @@ -1750,6 +1661,7 @@ IPHONEOS_DEPLOYMENT_TARGET = 9.0; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; LIBRARY_SEARCH_PATHS = "$(PROJECT_DIR)/sourcefiles/Viewability/OMAppnexusSDK"; + MARKETING_VERSION = 6.1; MTL_ENABLE_DEBUG_INFO = NO; MTL_FAST_MATH = YES; PRODUCT_BUNDLE_IDENTIFIER = com.appnexus.AppNexusNativeSDK; @@ -1782,15 +1694,6 @@ defaultConfigurationIsVisible = 0; defaultConfigurationName = Release; }; - EC4817851845046A0066BBFE /* Build configuration list for PBXNativeTarget "AppNexusSDKResources" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - EC4817861845046A0066BBFE /* Debug */, - EC4817871845046A0066BBFE /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; F5731B04228B43570012B134 /* Build configuration list for PBXNativeTarget "AppNexusNativeSDK" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/sdk/AppNexusSDK.xcodeproj/xcshareddata/xcschemes/AppNexusSDKResources.xcscheme b/sdk/AppNexusSDK.xcodeproj/xcshareddata/xcschemes/AppNexusSDKResources.xcscheme deleted file mode 100644 index f94ae436b..000000000 --- a/sdk/AppNexusSDK.xcodeproj/xcshareddata/xcschemes/AppNexusSDKResources.xcscheme +++ /dev/null @@ -1,80 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/sdk/AppNexusSDK/Info.plist b/sdk/AppNexusSDK/Info.plist index 3d33271b6..a051efed5 100644 --- a/sdk/AppNexusSDK/Info.plist +++ b/sdk/AppNexusSDK/Info.plist @@ -15,7 +15,7 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 6.0 + 6.1 CFBundleSignature ???? CFBundleVersion diff --git a/sdk/sourcefiles/ANInstreamVideoAd.h b/sdk/sourcefiles/ANInstreamVideoAd.h index 1d0f4cbff..106a19bcd 100644 --- a/sdk/sourcefiles/ANInstreamVideoAd.h +++ b/sdk/sourcefiles/ANInstreamVideoAd.h @@ -109,6 +109,10 @@ typedef NS_ENUM(NSInteger, ANInstreamVideoPlaybackStateType) - (void) playAdWithContainer: (nonnull UIView *)adContainer withDelegate: (nullable id)playDelegate; + + - (void) pauseAd; + + - (void) resumeAd; - (void) removeAd; diff --git a/sdk/sourcefiles/Resources/ANMRAID.bundle/mraid.js b/sdk/sourcefiles/Resources/ANMRAID.bundle/mraid.js index 6e680bbe1..fb0fb1af2 100644 --- a/sdk/sourcefiles/Resources/ANMRAID.bundle/mraid.js +++ b/sdk/sourcefiles/Resources/ANMRAID.bundle/mraid.js @@ -53,6 +53,12 @@ allowOrientationChange: true, forceOrientation: "none" }; + + var currentAppOrientation = { + orientation: "none", + locked: false + }; + var resize_properties = { customClosePosition: 'top-right', allowOffscreen: true @@ -81,6 +87,7 @@ var MRAID_MAX_SIZE = "maxSize"; var MRAID_DEFAULT_POSITION = "defaultPosition"; var MRAID_CURRENT_POSITION = "currentPosition"; + var MRAID_CURRENT_APP_ORIENTATION = "currentAppOrientation"; // ----- MRAID AD API FUNCTIONS ----- @@ -274,24 +281,34 @@ return orientation_properties; } + mraid.getCurrentAppOrientation = function() { + return currentAppOrientation; + } + // Takes an object... {allowOrientationChange:true, forceOrientation:"none"}; mraid.setOrientationProperties = function(properties) { + if (mraid.getState() == "loading") { + mraid.util.errorEvent("Method 'mraid.setOrientationProperties()' called during loading state.", "mraid.setOrientationProperties()"); + return; + } + if (typeof properties === "undefined") { mraid.util.errorEvent("Invalid orientationProperties.", "mraid.setOrientationProperties()"); return; - } else { - + } + + if (!mraid.getCurrentAppOrientation().locked) { if (properties.forceOrientation === 'portrait' || properties.forceOrientation === 'landscape' || properties.forceOrientation === 'none') { orientation_properties.forceOrientation = properties.forceOrientation; } else { mraid.util.errorEvent("Invalid orientationProperties forceOrientation property", "mraid.setOrientationProperties()"); } + } - if (typeof properties.allowOrientationChange === "boolean") { - orientation_properties.allowOrientationChange = properties.allowOrientationChange; - } else { - mraid.util.errorEvent("Invalid orientationProperties allowOrientationChange property", "mraid.setOrientationProperties()"); - } + if (typeof properties.allowOrientationChange === "boolean") { + orientation_properties.allowOrientationChange = properties.allowOrientationChange; + } else { + mraid.util.errorEvent("Invalid orientationProperties allowOrientationChange property", "mraid.setOrientationProperties()"); } if ((typeof window.sdkjs) !== "undefined") { @@ -339,6 +356,7 @@ return supports[feature]; } + // Gets the screen size of the device mraid.getScreenSize = function() { if (mraid.getState() == "loading") { @@ -543,5 +561,12 @@ window.sdkjs.mraidUpdateProperty(MRAID_CURRENT_POSITION, current_position); } } - + + mraid.util.setCurrentAppOrientation = function(orientation,locked) { + currentAppOrientation.orientation = orientation; + currentAppOrientation.locked = locked; + if ((typeof window.sdkjs) !== "undefined") { + window.sdkjs.mraidUpdateProperty(MRAID_CURRENT_APP_ORIENTATION, currentAppOrientation); + } + } }()); diff --git a/sdk/sourcefiles/Resources/MobileVastPlayer.js b/sdk/sourcefiles/Resources/MobileVastPlayer.js index fa43f4478..259090001 100644 --- a/sdk/sourcefiles/Resources/MobileVastPlayer.js +++ b/sdk/sourcefiles/Resources/MobileVastPlayer.js @@ -37,19 +37,19 @@ Permission is here by granted, free of charge, to any person obtaining a copy of The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ -var APNVideo_MobileVastPlayer=function(e){function t(i){if(n[i])return n[i].exports;var o=n[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){function i(e,t){if(!e)return null;for(var n=0;n0){var r=Number(i.substring(0,i.length-2));t-=2*r,n-=2*r}k.style.width=t+"px",k.style.height=n+"px";var a=u(T);e("repositionPlayer: targetDiv absolute posiotion ="+a.left+", "+a.top),k.style.left=a.left+"px",k.style.top=a.top+"px",e("repositionPlayer: size = "+t+", "+n),S.overlayPlayer?N.resizePlayer(t,n):N.resizeVideo(null,!1,null)}}function a(t){e("Resize event happend"),k&&N&&(O?(O=!1,S.fitInContainer&&(k.style.zIndex=R),setTimeout(function(){r(),"click"!==S.initialPlayback&&N.play()},100)):r()),G&&G(t)}function c(t){switch(e("Got notification: "+t),t){case"leaveFullscreen":q();break;default:e("Unknown player notification: "+t)}}function u(e){for(var t=0,n=0;e&&"BODY"!==e.tagName&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);){var i=document.defaultView.getComputedStyle(e,null).position;if(i&&""!==i&&"static"!==i)break;t+=e.offsetLeft-e.scrollLeft+e.clientLeft,n+=e.offsetTop-e.scrollTop+e.clientTop,e=e.offsetParent}return{left:t,top:n}}function p(){var t,n=function(){try{var e=navigator.platform,t=navigator.userAgent,n=navigator.appVersion;if(/iP(hone|od|ad)/.test(e)&&!/CriOS/.test(t)){var i=n.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]}return[0,0,0]}catch(o){return[0,0,0]}};try{t=n()[0]>=8&&S.enableInlineVideoForIos===!0}catch(i){e(i)}return t}function h(e){var t=document.defaultView.getComputedStyle(e,null).zIndex;return"auto"!==t?t:0}function m(e,t){if(!e.children)return t;for(var n=Math.max(t,h(e)),i=0;i-1||navigator.appVersion.indexOf("Android")>-1}function y(){return navigator.userAgent.indexOf("Chrome")>-1}function A(){var e=navigator.appVersion.indexOf("Chrome/");if(e>=0){var t=navigator.appVersion.substr(e+7);return e=t.indexOf("."),e>0?Number(t.substr(0,e)):0}return 0}function b(n,i,r){e("play function called"),P=!1,j=3e3,S.vpaidTimeout&&(j=S.vpaidTimeout),x=null,_=!1,V=!1,r&&(_=r),i&&(x=function(e,t){t=t?t:{};var n={event:e,params:t};i(n)}),v()&&(S.showFullScreenButton===!0?S.allowFullscreen=!0:S.allowFullscreen=!1),f()&&(S.enableInlineVideoForIos=!1),e("options before PlayerDefaultOption: ",JSON.stringify(S)),S=s(S),e("options after PlayerDefaultOption: ",JSON.stringify(S)),S.width=n.offsetWidth,S.height=n.offsetHeight;var a=n.style.borderWidth;if(a&&a.length>0){var l=Number(a.substring(0,a.length-2));S.width-=2*l,S.height-=2*l}S.playerHeight=S.height,p()&&(S.playerHeight-=30),o()&&(S.fullscreenMode=!0),e("offsetWidth="+n.offsetWidth+", offsetHeight="+n.offsetHeight+", borderWidth="+n.style.borderWidth);var h=document.createElement("div");h.style.width=S.width+"px",S.fitInContainer?h.style.height=S.height+"px":S.cachePlayer&&S.overlayPlayer?h.style.height="1px":h.style.height=S.height+"px",h.style.backgroundColor="black",h.id=n.id+"_overlay_"+(new Date).getTime();var b=u(n);e("targetDiv absolute posiotion ="+b.left+", "+b.top),h.style.position="absolute",h.style.left=b.left+"px",h.style.top=b.top+"px",S.fitInContainer?h.style.zIndex=Math.max(100,m(n,0)+1):(R=Math.max(100,m(n,0)+1),S.cachePlayer&&S.overlayPlayer?h.style.zIndex=0:h.style.zIndex=R),n.appendChild(h),e("player container offsetLeft = "+h.offsetLeft+", offsetTop = "+h.offsetTop),k=h,T=n,E=(new Date).getTime(),e("timeToReady = "+j+", start time = "+E),C=setTimeout(function(){P||(z(!1),x&&x("Timed-out",{}))},j);var w=function(n,i){e("VastPlayer > cbRenderVideo called");try{e("VastPlayer > cbRenderVideo options: ",JSON.stringify(i))}catch(o){}t(i)};I.cbRenderVideo=w,I.cbWhenDestroy=z,I.cbWhenReady=J,I.cbWhenQuartile=U,I.cbWhenVideoComplete=F,I.cbWhenSkipped=B,I.cbWhenFullScreen=W,I.cbWhenAudio=$,I.cbWhenClickOpenUrl=H,I.cbCoreVideoEvent=L,S.playerNotification=c,S.overlayPlayer&&(S.hasOwnProperty("allowFullscreen")||(S.allowFullscreen=!1)),e("VP >> before options.initialAudio = "+S.initialAudio),"auto"===S.initialPlayback&&"on"===S.initialAudio&&g()&&y()&&A()>=53&&(S.showMute=!0,S.showVolume=!0),e("VP >> after options.initialAudio = "+S.initialAudio),d(k,S,I)}e("VERSION 1.4.15");var k,T,w,E,S={},I={},C=null,P=!1,j=3e3,x=null,_=!1,V=!1,D=null,M=!1,N=null,O=!1,R=0,U=function(t){e("VastPlayer > cbWhenQuartile "+t),x(t,{})},L=function(e,t){var n={type:e,name:t};if("AdHandler"===n.type&&"video_impression"===n.name)try{var i=new CustomEvent("outstream-impression");k.dispatchEvent(i)}catch(o){error(o)}for(var r=[{type:"AdHandler",name:"video_start",mappedEventName:"videoStart"},{type:"AdHandler",name:"rewind",mappedEventName:"videoRewind"},{type:"AdHandler",name:"video_fullscreen_enter",mappedEventName:"video-fullscreen-enter"},{type:"AdHandler",name:"video_fullscreen_exit",mappedEventName:"video-fullscreen-exit"}],a=0;a cbWhenVideoComplete "+t),x(t,{})},B=function(t){e("VastPlayer > cbWhenSkipped "+t),x(t,{})},$=function(t){e("VastPlayer > cbWhenAudio "+t),x(t,{})},H=function(e){x(e,{})},W=function(t){e("VastPlayer > cbWhenFullScreen "+t),x(t,{})},z=function(t,n,i){e("VastPlayer > cbTerminate isError: "+t);var r="unknown";k&&(r=k.id.toString()),e("VastPlayer > cbTerminate: bTerminated = "+V+", targetElement id = "+r),M=!1,V||(V=!0,n||q(),!i&&o()&&S.overlayPlayer&&q(),k&&(N&&(N.isPlayingVideo&&(e("VastPlayer > cbTerminate: pause ad"),N.pause()),k.style.height="1px",N.resizePlayer(1,1)),setTimeout(function(){k&&(k.innerHTML="",T.removeChild(k)),k=null},2e3)),x&&t&&x("video-error",{}))},q=function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},J=function(t){var n,i,r,a,s;n=t&&t.options&&t.options.video&&t.options.video.url?t.options.video.url:"",i=t&&t.options&&t.options.data&&t.options.data.vastDurationMsec?t.options.data.vastDurationMsec:0,r=t&&t.options&&t.options.finalVastXml?t.options.finalVastXml:"",a=t&&t.options&&t.options.finalVastUri?t.options.finalVastUri:"",s=t&&t.getFinalAspectRatio()?t.getFinalAspectRatio():"",V||(P=!0,N=t,e("VastPlayer > cbWhenReady in "+((new Date).getTime()-E)+" msecs"),x&&x("adReady",{creativeUrl:n,duration:i,vastXML:r,vastCreativeUrl:a,aspectRatio:s}),"click"===S.initialPlayback||S.cachePlayer||(o()&&S.overlayPlayer?S.forceAdInFullscreen?(O=!0,q()):(k&&(k.style.width="1px",k.style.height="1px"),z(!1,!0,!0)):N.play()))},G=null;document.body.onresize&&(G=document.body.onresize),window.onresize=a,this.playVast=function(t,n,o,r,a){e("VP >> playVast function called playerId = "+this.vastPlayerId),z(!1,!0),i(),S=n,S.vastXml=o,b(t,r,a)},this.playAdObject=function(t,n,o,r,a){e("VP >> playAdObject function called playerId = "+this.vastPlayerId+", cache mode = "+n.cachePlayer),z(!1,!0),i(),S=n,"string"==typeof o?S.vastXml=o:(S.useAdObj=!0,S.adObj=o),b(t,r,a)},this.stop=function(){C&&(clearTimeout(C),C=null),z(!1)},this.removeFromPage=function(){C&&(clearTimeout(C),C=null),V=!0,k&&(k.innerHTML="",T.removeChild(k),k=null)},this.play=function(){e("VP >> play function called playerId = "+this.vastPlayerId),N&&(S.cachePlayer=!1,o()&&S.overlayPlayer?S.forceAdInFullscreen?(O=!0,q()):z(!1,!0,!0):(k&&S.fitInContainer===!1&&(k.style.zIndex=R),r(),"click"!==S.initialPlayback&&N.play()))},this.sendPlay=function(){e("VP >> sendPlay function called playerID = "+this.vastPlayerId),N&&!N.isPlayingVideo&&N.play()},this.sendPause=function(){e("VP >> sendPause function called playerID = "+this.vastPlayerId),N&&N.isPlayingVideo&&N.pause()},this.handleFullscreen=function(e){N&&(e?T.requestFullscreen?T.requestFullscreen():T.webkitRequestFullscreen?T.webkitRequestFullscreen():T.mozRequestFullScreen?T.mozRequestFullScreen():T.msRequestFullscreen&&T.msRequestFullscreen():document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen())},this.vastPlayerId=(new Date).getTime(),this.isTerminated=function(){return V},this.getIsVideoPlaying=function(){var e=!(!N||!N.isPlayingVideo);return e},this.getCurrentPlayHeadTime=function(){var e=0;return w&&w.adVideoPlayer&&"function"==typeof w.adVideoPlayer.player&&(e=1e3*w.adVideoPlayer.player().currentTime(),e=parseInt&&"function"==typeof parseInt?parseInt(e):e),e}};e.exports={playAdObject:function(e,t,n,i,o){var a=r(t.targetElementId,t.cachePlayer);a&&a.playAdObject(e,t,n,i,o)},playVast:function(e,t,n,i,o){var a=r(t.targetElementId);a&&a.playVast(e,t,n,i,o)},loadAndPlayVast:function(e,t,i,o,a){var s=n(29);s.load(i,function(s,l){if(s||0===l.length){var d=n(28);d.logDebug("Failed to load "+i,"Vast Video Player")}else{var c=r(t.targetElementId);c&&c.playVast(e,t,l,o,a)}})},stop:function(e,t){var n=o(e.id,t);n&&n.stop()},removeFromPage:function(e){var t=o(e);t&&t.removeFromPage()},play:function(e,t){var n=i(e,t);n&&n.play()},sendPlay:function(e){var t=o(e);t&&t.sendPlay()},sendPause:function(e){var t=o(e);t&&t.sendPause()},handleFullscreen:function(e,t){var n=o(e);n&&n.handleFullscreen(t)},getCurrentPlayHeadTime:function(e){var t=o(e);if(t)return t.getCurrentPlayHeadTime()},getIsVideoPlaying:function(e){var t=o(e);if(t)return t.getIsVideoPlaying()}}},function(e,t){var n=function(e){function t(e){return"object"==typeof e}function n(e){return null===e}function i(e){var o,r,a;for(r=1;r-1},T=["AdPaused","AdVolumeChange"],w=["AdLoaded","AdStopped","AdSkippableStateChange","AdLinearChange","AdDurationChange","AdRemainingTimeChange","AdLog","AdError"],E=1,S=402,I=900,C=405,P={initialPlayback:"auto",initialAudio:"off",skippable:{enabled:!0,allowOverride:!1,videoThreshold:15,videoOffset:5,skipLocation:"top-left",skipText:"Video can be skipped in %%TIME%% seconds",skipButtonText:"SKIP"},adText:"Ad",showMute:!0,showVolume:!0,showProgressBar:!0,showPlayToggle:!0,showBigPlayButton:!0,allowFullscreen:!0,playerSkin:{customPlayerSkin:"",controlBarHeight:30,topDividerColor:"#606060",bottomDividerColor:"#606060",topDividerWidth:1,bottomDividerWidth:1,videoBackgroundColor:"#000000"},disableCollapse:{enabled:!1,replay:!1},endCard:{enabled:!1,clickable:!0,color:"",imageUrl:"",imageWidth:"",imageHeight:"",showCompanion:!0},enableInlineVideoForIos:!0,delayExpandUntilVPAIDInit:!1,delayExpandUntilVPAIDImpression:!1,flash:{swf:"http://acdn.adnxs.com/video/player/vastPlayer/AppnexusFlashPlayer.swf"},vpaidTimeout:5e3,waterfallTimeout:3e4,waterfallSteps:-1,fixedSizePlayer:!0,disableTopBar:!1,sideStream:{enabled:!1,position:"bottom-right",xOffset:0,yOffset:0,space:"empty",dynamicBigPlayButtonOnSideStream:!0},sideStreamObject:{},preloadInlineAudioForIos:!1,controlBarPosition:"over",customPlayerSkinCss:"",customButton:{enabled:!1,url:"",altText:"",imageSrc:"",imgWidth:50,imgHeight:30},enableNativeInline:!1,androidDSOverride:!1,cbNotification:function(){},parentIframeIsModal:!1,learnMore:{enabled:!1,clickToPause:!0,text:"Learn More",separator:"-"},playerContextId:"anadvideoplayer",data:{skipOffset:"",durationMsec:null,skipOffsetMsec:null,isVastVideoSkippable:!1,vastProgressEvent:{},vastDurationMsec:null,adIcons:null},test:function(){}},j={externalNameOfVideoPlayer:f,videoPlayerObj:i,autoplayHandler:h,mobileSupport:h,customSkinning:u,options:{},adVideoPlayer:{},callbackForAdUnit:{},vpaidData:{},iframeVideoWrapper:{},isPlayingVideo:!1,isDoneInitialPlay:!1,isFullscreen:!1,heightOffset:0,explicitPaused:!1,aspectRatio:0,finalAspectRatio:0,videoObjectId:{},isViewable:!1,isSkipped:!1,isCompleted:!1,isMuted:!1,isExplicitMuted:!1,hasBeenUnmuted:!1,isChrome:navigator.userAgent.indexOf("Chrome")>-1,videojs_vpaid:r,overlayPlayer:!1,forceToSkip:!1,ExtendDefaultOption:a,delayEventHandler:null,pausedByViewability:!1,mutedByVisibility:!1,gotAdImpressionForFlash:!1,gotAdStartedForFlash:!1,isReadyToExpandForMobile:!1,isAlreadyPlaingForVPAID:!1,isSideStreamActivated:!1,isExpanded:!0,isVideoCompleteInjected:!1,isFullscreenToggled:!1,toggleWindowFocus:!0,viewabilityTracking:null,isDoneFirstLoadStart:!1,flashBlockerTimeout:null,startedReplay:!1,Utils:l,isAlreadyStart:!1,isEnded:!1,blockTrackingUserActivity:!1,videoId:"",divIdForVideo:"",init:function(e){var t=a(P,e);return this.options=t,"boolean"==typeof this.options.disableCollapse&&(this.options.disableCollapse={enabled:this.options.disableCollapse,replay:!1}),this.options.skippable.allowOverride===!0&&(this.options.skippable.videoThreshold=0,this.options.skippable.enabled=!0),this.delayEventHandler=new d,this.delayEventHandler.suppress(this.options.delayExpandUntilVPAIDImpression),this.delayEventHandler.start(),this.viewabilityTracking=new p,t},getValueFromPlayer:function(e){var t=0;try{"controlBar.height"===e&&this.adVideoPlayer&&this.adVideoPlayer.controlBar&&this.adVideoPlayer.controlBar.height&&"function"==typeof this.adVideoPlayer.controlBar.height&&"html5"===this.decidePlayer(this.options.requiredPlayer)&&(t=this.adVideoPlayer.controlBar.height())}catch(n){b(n)}return t},decidePlayer:function(e){var t="",n="flash",i="html5",o=function(){var e=navigator.appVersion.indexOf("Mobile"),t=navigator.appVersion.indexOf("Android");return e>-1||t>-1},r=this.options.playerTechnology;if(r&&r.length&&1===r.length)switch(e){case 1:t=i;break;case 2:t=n;break;case 0:t=r[0]===i?i:n}if(r&&r.length&&2===r.length)switch(e){case 1:t=i;break;case 2:t=n;break;case 0:t=i}return o()&&(t=i),t},buildPlayer:function(e,t){var n=this;if(t.waterfallStepId&&A("CHECKING AUTOPLAY FOR WATERFALL STEP: "+t.waterfallStepId),"html5"===this.decidePlayer(t.requiredPlayer)&&this.autoplayHandler&&!t.overlayPlayer){var i,o=function(i){var o=n.autoplayHandler.videoPolicy;switch(i){case o.allowAutoplay:break;case o.stopMediaWithSound:"on"===t.initialAudio?("auto"!==t.initialPlayback&&"mouseover"!==t.initialPlayback||(t.initialAudio="off",t.audioOnMouseover=!1),t.isWaterfall===!0&&(t.adAttempt>0?(t.initialAudio="off",t.audioOnMouseover=!1):t.audioOnMouseover=!0)):"auto"!==t.initialPlayback&&"mouseover"!==t.initialPlayback||(t.audioOnMouseover=!1);break;case o.neverAutoplay:t.initialPlayback="click",t.isWaterfall&&(t.isWaterfall=!1,t.stopWaterfall=!0)}t.waterfallStepId&&A("BUILDING PLAYER FOR WATERFALL STEP: "+t.waterfallStepId),n.buildPlayerCallback(e,t)};i=!h.isMobile()&&("on"===t.initialAudio||t.audioOnMouseover===!0),n.autoplayHandler.getAutoplayPolicy(o,i)}else n.buildPlayerCallback(e,t)},buildPlayerCallback:function(e,t){this.callbackForAdUnit=e,t.hasOwnProperty("overlayPlayer")&&(this.overlayPlayer=t.overlayPlayer,t.hasOwnProperty("fullscreenMode")&&(t.allowFullscreen=!1)),k()&&"flash"===this.decidePlayer(this.options.requiredPlayer)||this.options.targetElement&&!this.options.firstAdAttempted&&(this.options.targetElement.style.visibility="hidden"),"flash"===this.decidePlayer(this.options.requiredPlayer)&&(this.options.disableCollapse.replay=!1);var n=(new Date).getTime()+Math.floor(1e4*Math.random()),i="APNVideo_Player_"+n;this.externalNameOfVideoPlayer=i,o(e,t,this)},getPlayerStatus:function(){},notifyPlayer:function(e,t){this.adVideoPlayer.handleAdUnitNotification({name:e,value:t})},load:function(){if("html5"===this.decidePlayer(this.options.requiredPlayer)){A("load video");try{this.adVideoPlayer&&void 0!==this.adVideoPlayer&&this.adVideoPlayer.load&&"function"==typeof this.adVideoPlayer.load&&(this.options.delayExpandUntilVPAIDImpression&&this.adVideoPlayer.player()&&this.adVideoPlayer.player().autoplay()&&this.adVideoPlayer.player().autoplay(!1),this.adVideoPlayer.load())}catch(e){b(e)}}},replay:function(){this.isEnded&&(this.dispatchEventToAdunit({name:"rewind"}),this.startedReplay=!0,this.isEnded=!1,this.explicitPlay(),this.adVideoPlayer.controlBar.playToggle&&this.adVideoPlayer.controlBar.playToggle.el()&&this.adVideoPlayer.controlBar.playToggle.el().style&&(this.adVideoPlayer.controlBar.playToggle.el().style["pointer-events"]=""),this.options.sideStream&&this.options.sideStream.wasEnabled===!0&&(this.options.sideStream.enabled=!0,delete this.options.sideStream.wasEnabled),this.options.endCard&&this.options.endCard.enabled&&(this.actualPlayByVideoJS(),l.isIos()||this.adVideoPlayer.bigPlayButton.show()))},actualPlayByVideoJS:function(){this.adVideoPlayer.play(),this.options.vpaid&&this.adVideoPlayer.trigger("handleManualUserInActive")},play:function(){if(this.isEnded!==!0){var e=h.isMobile()&&h.iOSversion()[0]>=10&&this.options.enableInlineVideoForIos===!1;if(e){var t=this;t.overlayPlayer?t.options.targetElement.style.overflow="":setTimeout(function(){t.options.targetElement.style.overflow=""},t.options.expandTime)}this.isAlreadyPlaingForVPAID=!0,this.isCompleted||(A("play video"),this.isDoneInitialPlay?"html5"===this.decidePlayer(this.options.requiredPlayer)?this.isPlayingVideo||this.dispatchEventToAdunit({name:"video_resume"}):this.isPlayingVideo||this.dispatchEventToAdunit({name:"video_resume"}):this.options.vpaid||(this.dispatchEventToAdunit({name:"video_start"}),this.dispatchEventToAdunit({name:"video_impression"})),this.options.vpaid&&this.isIosInlineRequired()?this.isDoneInitialPlay?this.actualPlayByVideoJS():this.adVideoPlayer.trigger("play"):this.options.vpaid&&this.options.overlayPlayer&&h.isIOS()&&h.iOSversion()[0]<10&&!this.isDoneInitialPlay?this.adVideoPlayer.trigger("play"):this.options.vpaid&&this.options.overlayPlayer&&navigator.appVersion.indexOf("Android")>-1&&this.options.enableWaterfall&&!this.isDoneInitialPlay?this.adVideoPlayer.trigger("play"):this.actualPlayByVideoJS(),"html5"===this.decidePlayer(this.options.requiredPlayer)||(this.isPlayingVideo=!0),this.isDoneInitialPlay=!0,this.isEnded=!1)}},resetVpaid:function(){this.dispatchEventToAdunit({name:"reset"})},pause:function(){this.isPlayingVideo&&(A("pause video"),this.adVideoPlayer.pause(),this.options.vpaid&&this.adVideoPlayer.trigger("handleManualUserActive"),this.isCompleted||this.isEnded||this.dispatchEventToAdunit({name:"video_pause"}))},explicitPause:function(){A("explicit pause video"),this.explicitPaused=!0,this.pause()},explicitPlay:function(){A("explicit play video"),this.explicitPaused=!1,this.play()},mute:function(){this.isMuted||(A("mute audio"),"html5"===this.decidePlayer(this.options.requiredPlayer)?(this.adVideoPlayer.muted(!0),this.dispatchEventToAdunit({name:"video_mute"})):this.adVideoPlayer.mute(),this.isMuted=!0)},explicitMute:function(){A("explicit mute video"),this.isExplicitMuted=!0,this.mute()},unmute:function(){!this.isExplicitMuted&&this.isMuted&&(A("unmute audio"),"html5"===this.decidePlayer(this.options.requiredPlayer)?(this.adVideoPlayer.muted()===!0&&this.adVideoPlayer.muted(!1),(this.isMuted||"off"===this.options.initialAudio)&&this.dispatchEventToAdunit({name:"video_unmute"})):(this.adVideoPlayer.unmute(),this.hasBeenUnmuted=!0),this.isMuted=!1)},explicitUnmute:function(){this.isExplicitMuted=!1,this.unmute()},resizeVideoWithDimensions:function(e,t){var n=this;this.options.width=e,this.options.height=t,n.resizeVideo(n.aspectRatio)},mouseIn:function(){this.adVideoPlayer.mouseIn()},mouseOut:function(){this.adVideoPlayer.mouseOut()},destroy:function(e,t){this.isPlayingVideo=!1,this.adVideoPlayer.pause(),this.isCompleted===!1&&(this.options.vpaid===!1?this.dispatchEventToAdunit({name:"video_skip"}):this.options.vpaid===!0&&this.isSkipped===!1&&this.dispatchEventToAdunit({name:"video_skip"})),"function"==typeof this.callbackForAdUnit.cbWhenSkipped&&this.callbackForAdUnit.cbWhenSkipped("video-skip"),this.isSkipped=!0,this.verificationManager&&this.verificationManager.destroy(),A("destroy");var n=I;"function"==typeof this.callbackForAdUnit.cbWhenDestroy&&(this.overlayPlayer?e&&t?this.callbackForAdUnit.cbWhenDestroy({type:E,code:n,message:t},!0,this.options):this.callbackForAdUnit.cbWhenDestroy(null,!0,this.options):e&&t?this.callbackForAdUnit.cbWhenDestroy({type:E,code:n,message:t},null,this.options):this.callbackForAdUnit.cbWhenDestroy(null,null,this.options))},destroyWithoutSkip:function(e,t,n,i){try{var o=this,r=function(){o.isPlayingVideo=!1,o.adVideoPlayer&&o.adVideoPlayer.pause&&"function"==typeof o.adVideoPlayer.pause&&o.adVideoPlayer.pause(),o.verificationManager&&o.verificationManager.destroy(),A("destroy without skip: "+o.options.iframeVideoWrapperId);var r=i||I;"function"==typeof o.callbackForAdUnit.cbWhenDestroy&&(o.overlayPlayer?e&&t?(n&&(r=S),o.callbackForAdUnit.cbWhenDestroy({type:E,code:r,message:t},!0,o.options)):o.callbackForAdUnit.cbWhenDestroy(null,!0,o.options):e&&t?(n&&(r=S),o.callbackForAdUnit.cbWhenDestroy({type:E,code:r,message:t},null,o.options)):o.callbackForAdUnit.cbWhenDestroy(null,null,o.options))};o.options.disableCollapseForDelay&&o.options.disableCollapseForDelay>0?setTimeout(r,o.options.disableCollapseForDelay):r()}catch(a){b("failed to destroy/notify by "+a)}},getVideoObject:function(){return this.adVideoPlayer},handleFlashPlay:function(){var e=this,t=function(){e.resizeVideo(e.aspectRatio),A("flash player is ready to play"),e.callbackForAdUnit.cbWhenReady&&e.callbackForAdUnit.cbWhenReady(e)};e.isChrome?(e.setChromeSize(),setTimeout(t,100)):t()},handlePlayerNotification:function(e){"video_time"!==e.name&&A("Got notification from player = "+e.name);var t=this,n={flash_is_respondble:function(){t.flashBlockerTimeout&&(clearTimeout(t.flashBlockerTimeout),t.flashBlockerTimeout=null),A("Flash is respondble")},canplay:function(){if(t.flashBlockerTimeout&&(clearTimeout(t.flashBlockerTimeout),t.flashBlockerTimeout=null,A("Flash is respondble")),t.options.hasOwnProperty("overlayPlayer"))try{t.adVideoPlayer.setDOMPlayerIdAndSize(t.adVideoPlayer.id,t.options.width,t.options.height)}catch(n){A("Failed to execute setDOMPlayerIdAndSize(...) on Flash Player")}if(t.options.vpaid)try{var i=t.adVideoPlayer.getCompanionsXml();i&&i.length>0&&(e.companionAds=i)}catch(o){}t.options.vpaid&&t.options.delayExpandUntilVPAIDImpression?t.actualPlayByVideoJS():t.handleFlashPlay()},video_failed:function(){t.flashBlockerTimeout&&(clearTimeout(t.flashBlockerTimeout),t.flashBlockerTimeout=null,A("Flash is respondble")),t.destroyWithoutSkip(!0,m,null,C)},video_timeout:function(){t.destroyWithoutSkip(!0,m,!0,S)},video_bitrate:function(){var t=e.bandwidth;A("bandwidth from flash : "+t)},video_impression:function(){},video_mute:function(){e.hasOwnProperty("value")&&!e.value&&(e.name="video_unmute"),e.hasOwnProperty("value")&&(t.isMuted=e.value)},video_click:function(){e.hasOwnProperty("playerHandles")?e.playerHandles?e.hasOwnProperty("url")&&e.url.length>0?t.click(e.url):t.click():t.dispatchEventToAdunit({name:"ad-click",trackClick:!0}):t.click()},video_complete:function(){t.isCompleted=!0,t.options.disableCollapse.enabled||t.destroyWithoutSkip()},video_fullscreen:function(){t.isFullscreen?setTimeout(function(){t.isFullscreen=!t.isFullscreen},1e3):t.isFullscreen=!t.isFullscreen},quartile_event:function(){},video_pause:function(){},video_start:function(){t.isDoneInitialPlay||"auto"===t.options.initialPlayback||t.play()},video_time:function(){},video_resume:function(){},video_stopped:function(){t.destroyWithoutSkip()},video_skipped:function(){t.destroy()},video_ratio:function(){},video_heightOffset:function(){t.heightOffset=e.heightOffset},video_paused_by_user:function(){t.explicitPause()},video_resumed_by_user:function(){A("received video_resumed_by_user from Flash"),t.requiredForFlashVpaid()?t.isVpaidFlashVideoPlaying===!1?(A("call explicitPlay by video_Resumed_by_user event"),t.explicitPlay()):A("do nothing because of isVpaidFlashVideoPlaying:true"):t.explicitPlay()},video_progress:function(){if(e&&e.offset)return void t.dispatchEventToAdunit({name:e.offset},function(){A("handle video_progress by flash : "+e.offset)})}};if(t.isDoneInitialPlay||"video_mute"!==e.name){var i=n[e.name];i&&void 0!==i&&i(),"video_pause"!==e.name&&"video_resume"!==e.name&&"video_impression"!==e.name&&"video_start"!==e.name&&"video_failed"!==e.name&&"video_timeout"!==e.name&&this.dispatchEventToAdunit(e),"video_impression"!==e.name&&"video_start"!==e.name||!t.options.vpaid||this.dispatchEventToAdunit(e)}},handleOverlayNotification:function(e){A("Got overlay notification from player = "+e.name);var t=this,n={leaveFullscreen:function(){t.options.hasOwnProperty("playerNotification")&&t.options.playerNotification("leaveFullscreen")}},i=n[e.name];i&&void 0!==i&&i()},requiredForFlashVpaid:function(){return"flash"===this.decidePlayer(this.options.requiredPlayer)&&this.options.vpaid===!0},notifyVpaidEvent:function(e){var t=this;if(t.requiredForFlashVpaid()&&("AdPaused"===e&&(A("received VPAID AdPaused from Flash"),t.isVpaidFlashVideoPlaying=!1,t.isPlayingVideo=!1,A("set isVpaidFlashVideoPlaying = false"),A("set isPlayingVideo = false")),"AdPlaying"===e&&(A("received VPAID AdPlaying from Flash"),t.isVpaidFlashVideoPlaying=!0,t.isPlayingVideo=!0,A("set isVpaidFlashVideoPlaying = true"),A("set isPlayingVideo = true"))),"flash"===t.decidePlayer(t.options.requiredPlayer)&&t.options.delayExpandUntilVPAIDImpression&&("AdVideoStart"===e&&t.adVideoPlayer.pause(),"AdImpression"===e&&(t.gotAdImpressionForFlash=!0),"AdStarted"===e&&(t.gotAdStartedForFlash=!0),t.gotAdImpressionForFlash&&t.gotAdStartedForFlash&&(t.handleFlashPlay(),t.gotAdImpressionForFlash=!1,t.gotAdStartedForFlash=!1)),!(t.options.delayExpandUntilVPAIDImpression&&t.delayEventHandler.isSuppress&&T.indexOf(e)>=0)){if("AdVolumeChange"===e){var n="html5"===this.decidePlayer(this.options.requiredPlayer);if(n){var i=t.adVideoPlayer.player().muted(),o=t.adVideoPlayer.player().volume();i?i&&(A("set VPAID AdVolumeChange video_mute"),this.dispatchEventToAdunit({name:"video_mute"})):o>0&&(A("set VPAID AdVolumeChange video_unmute"),this.dispatchEventToAdunit({name:"video_unmute"}))}}w.indexOf(e)>=0||w.indexOf("vpaid."+e)>=0?t.notifyVpaidEvent_internal(e):t.delayEventHandler.push(function(){t.notifyVpaidEvent_internal(e)})}},notifyVpaidEvent_internal:function(e){this.options.cbNotification&&this.options.cbNotification("VPAID",e,this.options.targetId),this.options.cbApnVastPlayer&&this.options.cbApnVastPlayer(e)},setChromeSize:function(){this.adVideoPlayer.width="0px",this.adVideoPlayer.height="0px",this.adVideoPlayer.style.width="0px",this.adVideoPlayer.style.height="0px",this.options.targetElement.style.visibility="visible"},click:function(e,t){if(!this.isDoneInitialPlay)return void this.play();this.isIosInlineRequired()===!1&&(this.pause(),this.toggleWindowFocus=!1);var n=!1;if(this.options.useCustomOpenForClickthrough){var i=this.options.clickUrls[0];e&&(i=e),n=!0,this.dispatchEventToAdunit({name:"video_click_open_url",url:i})}else if(e)n=!0,window.open(e);else if(this.options.clickUrls[0]){n=!0;var o=this.options.clickUrls[0];window.open(o)}"undefined"!=typeof t&&t!==!0||this.dispatchEventToAdunit({name:"ad-click",trackClick:n})},getRapamsAndExtensions:function(){var e=this.options.extensions&&this.options.extensions.length>0?""+this.options.extensions+"":"";return{adParameters:this.options.adParameters,extensions:e}},handleViewability:function(e,t,n){var i=this.options&&this.options.viewability&&this.options.viewability.config,o=e&&e.name?e.name:null;"fullscreenchange"!==o&&"video_fullscreen"!==o||(o=this.isFullscreen?"fullscreen":"exitFullscreen"),n||"video_duration"!==o||(this.isAlreadyStart=!0);var r=function(){var i;i=n?this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player&&this.adVideoPlayer.player().duration():e.duration,(!i||void 0===i||i<=0)&&(i=-2),i===-2&&(this.options&&this.options.data&&this.options.data.vastDurationMsec?(i=this.options.data.vastDurationMsec/1e3,(!i||null===i||i<=0)&&(i=-2)):i=-2);var r=this.options.width,a=this.options.height;if(this.viewabilityTracking.init(this.options,i,r,a,t),n)if(this.options.expandable)this.options.vpaid===!0&&"video_start"===o&&this.viewabilityTracking.invokeEvent("expand"),this.options.vpaid===!1&&"loadstart"===o&&this.viewabilityTracking.invokeEvent("expand"),this.viewabilityTracking.invokeEvent(o);else{if(this.options.overlayPlayer&&l.isMobile()&&this.options.delayStartViewability)return;this.viewabilityTracking.invokeEvent(o)}else this.isAlreadyStart&&(this.options.expandable&&this.viewabilityTracking.invokeEvent("expand"),this.viewabilityTracking.invokeEvent("video_start"))},a=function(){if(this.viewabilityTracking&&this.viewabilityTracking.isReady){ -if(n===!1&&"expand"===o&&this.options.expandable)return;"force_start_viewability"===o&&this.options.delayStartViewability?(this.options.delayStartViewability=!1,this.viewabilityTracking.invokeEvent("video_start")):this.viewabilityTracking.invokeEvent(o)}};if(o&&i){var s=this.blockTrackingUserActivity&&("video_resume"===o||"video_pause"===o||"video_mute"===o||"video_unmute"===o);s||(o===t?r.apply(this):a.apply(this))}},findPathForViewability:function(e){var t,n="html5"===this.decidePlayer(this.options.requiredPlayer);if(n){if(t=!this.options.expandable||"undefined"!=typeof this.options.isExpanded&&this.options.isExpanded!==!1?"video_start":"expand",e&&e.name&&e.name===t){if(this.isDoneFirstLoadStart)return;this.isDoneFirstLoadStart=!0}this.handleViewability(e,t,n)}else{if(t="video_duration",e&&"video_start"===e.name)return;e&&e.name&&e.name===t?this.isDoneFirstLoadStart||(this.isDoneFirstLoadStart=!0,this.handleViewability(e,t,n)):this.handleViewability(e,t,n)}},dispatchEventToAdunit:function(e,t){var n=this;if("video_start"===e.name&&n.iframeVideoWrapper.contentDocument){var i=n.iframeVideoWrapper.contentDocument.getElementById(n.divIdForVideo),o=n.iframeVideoWrapper.contentDocument.getElementById(n.videoId);i.style.background=n.options.playerSkin.videoBackgroundColor,o.style.background=n.options.playerSkin.videoBackgroundColor,h.isIOS()&&n.isIosInlineRequired()&&(o.style.opacity=0)}if("video_complete"===e.name&&(void 0===e.obj&&(e.obj={}),e.obj.videoAdPending=this.options.disableCollapse.replay),"video_fullscreen"===e.name&&"flash"===this.decidePlayer(this.options.requiredPlayer)?setTimeout(function(){var t={name:e.name,user:e.user,value:e.value};n.findPathForViewability(t)},1500):this.findPathForViewability(e),(this.startedReplay===!0||this.isEnded)&&this.options.disableCollapse.replay===!0)if(this.startedReplay===!1&&"rewind"===e.name);else{if("video_complete"===e.name&&"function"==typeof t)return void t();if("ad-click"!==e.name&&e.name.indexOf("IconClick")===-1)return void this.callbackForAdUnit.cbForHandlingDispatchedEvent(e,!0)}"video_skip"===e.name&&c.pushAndCheck(this.options.targetElement.id+"_dispatchEventToAdunit",e.name)===!1||"video_complete"===e.name&&this.isVideoCompleteInjected===!0&&this.options.disableCollapse.replay===!1||(e&&"video_time"!==e.name&&A("(push)"+e.name),this.delayEventHandler.push(function(){n.dispatchEventToAdunit_internal(e,t)}),"video_complete"===e.name&&(this.isVideoCompleteInjected=!0))},dispatchEventToAdunit_internal:function(e,t){if(!this.isCompleted||"video_complete"===e.name||"ad-click"===e.name||"video_skip"===e.name||this.startedReplay){var n=this;if(e&&"video_time"!==e.name&&A("invoke callback : "+JSON.stringify(e)),this.options.hasOwnProperty("overlayPlayer")&&this.options.hiddenControls&&(("firstplay"===e.name&&!this.options.vpaid||"video_impression"===e.name&&this.options.vpaid)&&(!l.isMobile()||"click"!==this.options.initialPlayback&&"mouseover"!==this.options.initialPlayback?h.isIOS()&&h.iOSversion()[0]<10&&"auto"===this.options.initialPlayback&&(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls):(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls)),"video_resume"===e.name&&this.options.vpaid&&l.isMobile()&&(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls)),this.callbackForAdUnit.cbForHandlingDispatchedEvent&&"video_time"!==e.name){if("video_pause"===e.name&&(this.isPlayingVideo=!1),"video_play"!==e.name&&"video_start"!==e.name&&"firstplay"!==e.name||(this.isPlayingVideo=!0,this.isDoneInitialPlay=!0),"video_fullscreen"===e.name)return void setTimeout(function(){e.fullscreenStatus=n.isFullscreen?"enter":"exit",n.callbackForAdUnit.cbForHandlingDispatchedEvent(e)},1500);"function"==typeof t&&t();var i=this.blockTrackingUserActivity&&("video_resume"===e.name||"video_pause"===e.name||"video_mute"===e.name||"video_unmute"===e.name);if(i||(e.player=this,this.callbackForAdUnit.cbForHandlingDispatchedEvent(e)),this.verificationManager){var o=this.prepareOmidEventData(e);o.name&&this.verificationManager.dispatchEvent(o.name,o.data)}}this.options.vpaid===!0&&"video_skip"===e.name&&(this.isSkipped=!0)}},resolveMacro:function(e){switch(e){case"MEDIAPLAYHEAD":return this.options.hasOwnProperty("mediaPlayhead")&&"number"==typeof this.options.mediaPlayhead?l.convertTimeSecondsToString(this.options.mediaPlayhead):-1;case"BREAKPOSITION":return this.options.breakPosition?this.options.breakPosition:-1;case"ADCOUNT":return 1;case"PLACEMENTTYPE":return this.options.overlayPlayer?1:this.options.expandable?3:-1;case"CLIENTUA":return this.options.clientUA?this.options.clientUA:"unknown unknown";case"DEVICEIP":return-1;case"PLAYERCAPABILITIES":var t=[];return this.options.skippable&&this.options.skippable.enabled&&t.push("skip"),this.options.showMute&&t.push("mute"),"auto"===this.options.initialPlayback&&("on"===this.options.initialAudio?t.push("autoplay"):t.push("mautoplay")),this.options.allowFullscreen&&t.push("fullscreen"),t.push("icon"),t.join();case"CLICKTYPE":return this.options.clickUrls&&this.options.clickUrls[0]?1:this.options.learnMore.enabled?2:0;case"PLAYERSTATE":var n=[];return this.isSkipped&&n.push("skipped"),this.isMuted&&n.push("muted"),"auto"===this.options.initialPlayback&&("on"===this.options.initialAudio?n.push("autoplayed"):n.push("mautoplayed")),this.adVideoPlayer.isFullscreen&&"function"==typeof this.adVideoPlayer.isFullscreen&&this.adVideoPlayer.isFullscreen()&&n.push("fullscreen"),n.join();case"PLAYERSIZE":return this.options.width+","+this.options.height;case"ADPLAYHEAD":if(this.adVideoPlayer.currentTime&&"function"==typeof this.adVideoPlayer.currentTime){var i=this.adVideoPlayer.currentTime();return l.convertTimeSecondsToString(i)}return-1;case"ASSETURI":return this.options.video.url;case"PODSEQUENCE":return-1;case"LIMITADTRACKING":return 0;default:return-1}},prepareOmidEventData:function(e){var t={error:"sessionError",impression:"impression",video_impression:"impression",video_start:"start","video-first-quartile":"firstQuartile","video-mid":"midpoint","video-third-quartile":"thirdQuartile",video_complete:"complete",video_pause:"pause",video_resume:"resume","user-close":"skipped",video_skip:"skipped",video_skipped:"skipped","audio-mute":"volumeChange","audio-unmute":"volumeChange",video_mute:"volumeChange",video_unmute:"volumeChange",fullscreenchange:"playerStateChange",video_fullscreen:"playerStateChange","video-exit-fullscreen":"playerStateChange","ad-expand":"playerStateChange","ad-collapse":"playerStateChange","ad-click":"adUserInteraction","user-accept-invitation":"adUserInteraction"},n=t.hasOwnProperty(e.name)?t[e.name]:"",i={name:n},o=null;switch(n){case"sessionError":o={},o.errorType=e.code,o.message=e.message;break;case"start":o={},this.options.data.durationMsec?o.duration=this.options.data.durationMsec/1e3:this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?o.duration=this.adVideoPlayer.player().duration()/1e3:o.duration=-2,this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?o.videoPlayerVolume=this.adVideoPlayer.player().volume():o.videoPlayerVolume=-1;break;case"volumeChange":o={},"audio-mute"===e.name||"video_mute"===e.name?o.videoPlayerVolume=0:this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?o.videoPlayerVolume=this.adVideoPlayer.player().volume():o.videoPlayerVolume=-1;break;case"playerStateChange":o={},"video-fullscreen"===e.name||"fullscreenchange"===e.name&&"enter"===e.fullscreenStatus?o.state=this.adVideoPlayer.isFullscreen?"fullscreen":"normal":"video-exit-fullscreen"===e.name||"fullscreenchange"===e.name&&"exit"===e.fullscreenStatus?o.state="normal":"ad-collapse"===e.name?o.state="collapsed":o.state="normal";break;case"adUserInteraction":o={},"ad-click"===e.name?o.interactionType="click":o.interactionType="invitationAccept"}return o&&(i.data=o),i},resizeVideo:function(e,t,n){s.resizeVideo(e,t,this,n)},resizeVideoForSideStream:function(e,t,n){s.resizeVideoForSideStream(this,e,t,n)},isIosInlineRequired:function(){return this.autoplayHandler.isIosInlineRequired(this.options.enableInlineVideoForIos)},resizePlayer:function(e,t){s.resizePlayer(e,t,this)},getFinalSize:function(){return s.getFinalSize(this)},setVastAttribute:function(e){var t,n=this.options;t=e?e:this.adVideoPlayer&&this.adVideoPlayer.player?this.adVideoPlayer.player().duration():0,n.data.durationMsec=null!==t?Math.round(1e3*t):0;var i=this.Utils.getMsecTime(n.data.skipOffset,n.data.durationMsec);n.data.skipOffset&&i>=0?(n.data.isVastVideoSkippable=!0,n.data.skipOffsetMsec=i):n.data.skipOffsetMsec=null;var o=n.data.vastProgressEvent;if(o&&"object"==typeof o)for(var r in o){var a=this.Utils.getMsecTime(r.replace(/progress_/g,""),n.data.durationMsec);o[r]=a}},disableTrackingUserActivity:function(e){this.blockTrackingUserActivity=e,this.adVideoPlayer&&this.adVideoPlayer.bigPlayButton&&(this.adVideoPlayer.bigPlayButton.el_.style.opacity=e===!0?0:1)},delayEventsTracking:function(e,t){this.callbackForAdUnit.cbDelayEventsTracking&&this.callbackForAdUnit.cbDelayEventsTracking(e,t)},notifyOverlayPlayerVideoPaused:function(){this.options.tmpActiveListener&&this.options.cbApnVastPlayer&&this.options.cbApnVastPlayer("apn-video-paused-by-device")},checkWhenVideoPausedByDevice:function(e){if(this.options.overlayPlayer&&this.options.cbApnVastPlayer&&this.iframeVideoWrapper&&this.iframeVideoWrapper.contentDocument){var t=null;if("string"==typeof this.videoObjectId)t=this.iframeVideoWrapper.contentDocument.getElementById(this.videoObjectId);else{var n=this.iframeVideoWrapper.contentDocument.getElementsByTagName("VIDEO");if(n&&n.length>0)for(var i=0;i0){t=n[i];break}}if(t)return e?(this.options.tmpActiveListener=!0,t.addEventListener("pause",this.notifyOverlayPlayerVideoPaused.bind(this))):(delete this.options.tmpActiveListener,t.removeEventListener("pause",this.notifyOverlayPlayerVideoPaused.bind(this))),!0}return!0},forceStartViewability:function(){this.findPathForViewability({name:"force_start_viewability"})},log:A,debug:A,test:function(e,t){var n=this.options;if(n&&n.test&&n.test[e]&&"function"==typeof n.test[e]){var i=function(e){console.debug("%c"+e,"background: red; color: white")},o=function(e){console.debug("%c"+e,"background: green; color: white")};try{var r=function(t,n){t?(n=n+" Succeeded"||"Succeeded",o("Unit Test ["+e+"] : "+n)):(n=n+" failed"||"Assertion failed",i("Unit Test ["+e+"] : "+n))},a=function(t){console.debug("%cUnit Test Log : ["+e+"] : "+t,"background: gray; color: white")};n.test[e](t,r,a)}catch(s){i("unit test failed due to : "+s)}}},setFinalAspectRatio:function(e){this.finalAspectRatio=e},getFinalAspectRatio:function(){return this.finalAspectRatio}};e.exports=j,window[f]=j},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(module){function _handleMultipleEvents(e,t,n,i){vjs.arr.forEach(n,function(n){e(t,n,i)})}function _logType(e,t){return}document.createElement("video"),document.createElement("audio"),document.createElement("track");var global_options,vjs=function(e,t,n){global_options=t;var i;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),vjs.players[e])return t&&vjs.log.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&vjs.players[e].ready(n),vjs.players[e];i=vjs.el(e)}else i=e;if(!i||!i.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return i.player||new vjs.Player(i,t,n)},videojs=window.videojs_apn=vjs;vjs.CDN_VERSION="GENERATED_CDN_VSN",vjs.ACCESS_PROTOCOL="https:"==document.location.protocol?"https://":"http://",vjs.VERSION="GENERATED_FULL_VSN",vjs.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:500,children:{mediaLoader:{},posterImage:{},loadingSpinner:{},textTrackDisplay:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},"GENERATED_CDN_VSN"!==vjs.CDN_VERSION&&(videojs.options.flash.swf=vjs.ACCESS_PROTOCOL+"vjs.zencdn.net/"+vjs.CDN_VERSION+"/video-js.swf"),vjs.addLanguage=function(e,t){return void 0!==vjs.options.languages[e]?vjs.options.languages[e]=vjs.util.mergeOptions(vjs.options.languages[e],t):vjs.options.languages[e]=t,vjs.options.languages},vjs.players={},__webpack_require__(5).amd?(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return videojs}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))):module.exports=videojs,vjs.CoreObject=vjs.CoreObject=function(){},vjs.CoreObject.extend=function(e){var t,n;e=e||{},t=e.init||e.init||this.prototype.init||this.prototype.init||function(){},n=function(){t.apply(this,arguments)},n.prototype=vjs.obj.create(this.prototype),n.prototype.constructor=n,n.extend=vjs.CoreObject.extend,n.create=vjs.CoreObject.create;for(var i in e)e.hasOwnProperty(i)&&(n.prototype[i]=e[i]);return n},vjs.CoreObject.create=function(){var e=vjs.obj.create(this.prototype);return this.apply(e,arguments),e},vjs.on=function(e,t,n){if(vjs.obj.isArray(t))return _handleMultipleEvents(vjs.on,e,t,n);var i=vjs.getData(e);i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=vjs.guid++),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t){if(!i.disabled){t=vjs.fixEvent(t);var n=i.handlers[t.type];if(n)for(var o=n.slice(0),r=0,a=o.length;r=0;i--)n[i]===t&&n.splice(i,1);e.className=n.join(" ")}},vjs.TEST_VID=vjs.createEl("video"),function(){var e=document.createElement("track");e.kind="captions",e.srclang="en",e.label="English",vjs.TEST_VID.appendChild(e)}(),vjs.USER_AGENT=navigator.userAgent,vjs.IS_IPHONE=/iPhone/i.test(vjs.USER_AGENT),vjs.IS_IPAD=/iPad/i.test(vjs.USER_AGENT),vjs.IS_IPOD=/iPod/i.test(vjs.USER_AGENT),vjs.IS_IOS=vjs.IS_IPHONE||vjs.IS_IPAD||vjs.IS_IPOD,vjs.IOS_VERSION=function(){var e=vjs.USER_AGENT.match(/OS (\d+)_/i);if(e&&e[1])return e[1]}(),vjs.IS_ANDROID=/Android/i.test(vjs.USER_AGENT),vjs.ANDROID_VERSION=function(){var e,t,n=vjs.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);return n?(e=n[1]&&parseFloat(n[1]),t=n[2]&&parseFloat(n[2]),e&&t?parseFloat(n[1]+"."+n[2]):e?e:null):null}(),vjs.IS_OLD_ANDROID=vjs.IS_ANDROID&&/webkit/i.test(vjs.USER_AGENT)&&vjs.ANDROID_VERSION<2.3,vjs.IS_FIREFOX=/Firefox/i.test(vjs.USER_AGENT),vjs.IS_CHROME=/Chrome/i.test(vjs.USER_AGENT),vjs.IS_IE8=/MSIE\s8\.0/.test(vjs.USER_AGENT),vjs.TOUCH_ENABLED=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),vjs.BACKGROUND_SIZE_SUPPORTED="backgroundSize"in vjs.TEST_VID.style,vjs.setElementAttributes=function(e,t){vjs.obj.each(t,function(t,n){null===n||"undefined"==typeof n||n===!1?e.removeAttribute(t):e.setAttribute(t,n===!0?"":n)})},vjs.getElementAttributes=function(e){var t,n,i,o,r;if(t={},n=",autoplay,controls,loop,muted,default,",e&&e.attributes&&e.attributes.length>0){i=e.attributes;for(var a=i.length-1;a>=0;a--)o=i[a].name,r=i[a].value,"boolean"!=typeof e[o]&&n.indexOf(","+o+",")===-1||(r=null!==r),t[o]=r}return t},vjs.getComputedDimension=function(e,t){var n="";return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,"").getPropertyValue(t):e.currentStyle&&(n=e["client"+t.substr(0,1).toUpperCase()+t.substr(1)]+"px"),n},vjs.insertFirst=function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},vjs.browser={},vjs.el=function(e){return 0===e.indexOf("#")&&(e=e.slice(1)),document.getElementById(e)},vjs.formatTime=function(e,t){t=t||e;var n=Math.floor(e%60),i=Math.floor(e/60%60),o=Math.floor(e/3600),r=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(o=i=n="-"),o=o>0||a>0?o+":":"",i=((o||r>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,o+i+n},vjs.blockTextSelection=function(){document.body.focus(),document.onselectstart=function(){return!1}},vjs.unblockTextSelection=function(){document.onselectstart=function(){return!0}},vjs.trim=function(e){return(e+"").replace(/^\s+|\s+$/g,"")},vjs.round=function(e,t){return t||(t=0),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},vjs.createTimeRange=function(e,t){return void 0===e&&void 0===t?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:1,start:function(){return e},end:function(){return t}}},vjs.setLocalStorage=function(e,t){try{var n=window.localStorage||!1;if(!n)return;n[e]=t}catch(i){22==i.code||1014==i.code?vjs.log("LocalStorage Full (VideoJS)",i):18==i.code?vjs.log("LocalStorage not allowed (VideoJS)",i):vjs.log("LocalStorage Error (VideoJS)",i)}},vjs.getAbsoluteURL=function(e){return e.match(/^https?:\/\//)||(e=vjs.createEl("div",{innerHTML:'x'}).firstChild.href),e},vjs.parseUrl=function(e){var t,n,i,o,r;o=["protocol","hostname","port","pathname","search","hash","host"],n=vjs.createEl("a",{href:e}),i=""===n.host&&"file:"!==n.protocol,i&&(t=vjs.createEl("div"),t.innerHTML='',n=t.firstChild,t.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(t)),r={};for(var a=0;a=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),vjs.removeData(this.el_),this.el_=null},vjs.Component.prototype.player_=!0,vjs.Component.prototype.player=function(){return this.player_},vjs.Component.prototype.options_,vjs.Component.prototype.options=function(e){return void 0===e?this.options_:this.options_=vjs.util.mergeOptions(this.options_,e)},vjs.Component.prototype.el_,vjs.Component.prototype.createEl=function(e,t){return vjs.createEl(e,t)},vjs.Component.prototype.localize=function(e){var t=this.player_.language(),n=this.player_.languages();return n&&n[t]&&n[t][e]?n[t][e]:e},vjs.Component.prototype.el=function(){return this.el_},vjs.Component.prototype.contentEl_,vjs.Component.prototype.contentEl=function(){return this.contentEl_||this.el_},vjs.Component.prototype.id_,vjs.Component.prototype.id=function(){return this.id_},vjs.Component.prototype.name_,vjs.Component.prototype.name=function(){return this.name_},vjs.Component.prototype.children_,vjs.Component.prototype.children=function(){return this.children_},vjs.Component.prototype.childIndex_,vjs.Component.prototype.getChildById=function(e){return this.childIndex_[e]},vjs.Component.prototype.childNameIndex_,vjs.Component.prototype.getChild=function(e){return this.childNameIndex_[e]},vjs.Component.prototype.addChild=function(e,t){var n,i,o;return"string"==typeof e?(o=e,t=t||{},i=t.componentClass||vjs.capitalize(o),t.name=o,n=new window.videojs_apn[i](this.player_||this,t)):n=e,this.children_.push(n),"function"==typeof n.id&&(this.childIndex_[n.id()]=n),o=o||n.name&&n.name(),o&&(this.childNameIndex_[o]=n),"function"==typeof n.el&&n.el()&&this.contentEl().appendChild(n.el()),n},vjs.Component.prototype.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},vjs.Component.prototype.initChildren=function(){var e,t,n,i,o,r,a;if(e=this,t=e.options(),n=t.children)if(a=function(n,i){void 0!==t[n]&&(i=t[n]),i!==!1&&(e[n]=e.addChild(n,i))},vjs.obj.isArray(n))for(var s=0;s0){for(var t=0,n=e.length;t1?i=!1:t&&(r=e.touches[0].pageX-t.pageX,a=e.touches[0].pageY-t.pageY,s=Math.sqrt(r*r+a*a),s>l&&(i=!1))}),o=function(){i=!1},this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(o){t=null,i===!0&&(n=(new Date).getTime()-e,n0){var r=Number(i.substring(0,i.length-2));t-=2*r,n-=2*r}k.style.width=t+"px",k.style.height=n+"px";var a=u(T);e("repositionPlayer: targetDiv absolute posiotion ="+a.left+", "+a.top),k.style.left=a.left+"px",k.style.top=a.top+"px",e("repositionPlayer: size = "+t+", "+n),S.overlayPlayer?N.resizePlayer(t,n):N.resizeVideo(null,!1,null)}}function a(t){e("Resize event happend"),k&&N&&(O?(O=!1,S.fitInContainer&&(k.style.zIndex=R),setTimeout(function(){r(),"click"!==S.initialPlayback&&N.play()},100)):r()),G&&G(t)}function c(t){switch(e("Got notification: "+t),t){case"leaveFullscreen":q();break;default:e("Unknown player notification: "+t)}}function u(e){for(var t=0,n=0;e&&"BODY"!==e.tagName&&!isNaN(e.offsetLeft)&&!isNaN(e.offsetTop);){var i=document.defaultView.getComputedStyle(e,null).position;if(i&&""!==i&&"static"!==i)break;t+=e.offsetLeft-e.scrollLeft+e.clientLeft,n+=e.offsetTop-e.scrollTop+e.clientTop,e=e.offsetParent}return{left:t,top:n}}function p(){var t,n=function(){try{var e=navigator.platform,t=navigator.userAgent,n=navigator.appVersion;if(/iP(hone|od|ad)/.test(e)&&!/CriOS/.test(t)){var i=n.match(/OS (\d+)_(\d+)_?(\d+)?/);return[parseInt(i[1],10),parseInt(i[2],10),parseInt(i[3]||0,10)]}return[0,0,0]}catch(o){return[0,0,0]}};try{t=n()[0]>=8&&S.enableInlineVideoForIos===!0}catch(i){e(i)}return t}function h(e){var t=document.defaultView.getComputedStyle(e,null).zIndex;return"auto"!==t?t:0}function m(e,t){if(!e.children)return t;for(var n=Math.max(t,h(e)),i=0;i-1||navigator.appVersion.indexOf("Android")>-1}function y(){return navigator.userAgent.indexOf("Chrome")>-1}function A(){var e=navigator.appVersion.indexOf("Chrome/");if(e>=0){var t=navigator.appVersion.substr(e+7);return e=t.indexOf("."),e>0?Number(t.substr(0,e)):0}return 0}function b(n,i,r){e("play function called"),P=!1,j=3e3,S.vpaidTimeout&&(j=S.vpaidTimeout),x=null,_=!1,V=!1,r&&(_=r),i&&(x=function(e,t){t=t?t:{};var n={event:e,params:t};i(n)}),f()&&(S.showFullScreenButton===!0?S.allowFullscreen=!0:S.allowFullscreen=!1),v()&&(S.enableInlineVideoForIos=!1),e("options before PlayerDefaultOption: ",JSON.stringify(S)),S=s(S),e("options after PlayerDefaultOption: ",JSON.stringify(S)),S.width=n.offsetWidth,S.height=n.offsetHeight;var a=n.style.borderWidth;if(a&&a.length>0){var l=Number(a.substring(0,a.length-2));S.width-=2*l,S.height-=2*l}S.playerHeight=S.height,p()&&(S.playerHeight-=30),o()&&(S.fullscreenMode=!0),e("offsetWidth="+n.offsetWidth+", offsetHeight="+n.offsetHeight+", borderWidth="+n.style.borderWidth);var h=document.createElement("div");h.style.width=S.width+"px",S.fitInContainer?h.style.height=S.height+"px":S.cachePlayer&&S.overlayPlayer?h.style.height="1px":h.style.height=S.height+"px",h.style.backgroundColor="black",h.id=n.id+"_overlay_"+(new Date).getTime();var b=u(n);e("targetDiv absolute posiotion ="+b.left+", "+b.top),h.style.position="absolute",h.style.left=b.left+"px",h.style.top=b.top+"px",S.fitInContainer?h.style.zIndex=Math.max(100,m(n,0)+1):(R=Math.max(100,m(n,0)+1),S.cachePlayer&&S.overlayPlayer?h.style.zIndex=0:h.style.zIndex=R),n.appendChild(h),e("player container offsetLeft = "+h.offsetLeft+", offsetTop = "+h.offsetTop),k=h,T=n,E=(new Date).getTime(),e("timeToReady = "+j+", start time = "+E),C=setTimeout(function(){P||(z(!1),x&&x("Timed-out",{}))},j);var w=function(n,i){e("VastPlayer > cbRenderVideo called");try{e("VastPlayer > cbRenderVideo options: ",JSON.stringify(i))}catch(o){}t(i)};I.cbRenderVideo=w,I.cbWhenDestroy=z,I.cbWhenReady=J,I.cbWhenQuartile=U,I.cbWhenVideoComplete=F,I.cbWhenSkipped=B,I.cbWhenFullScreen=W,I.cbWhenAudio=$,I.cbWhenClickOpenUrl=H,I.cbCoreVideoEvent=L,S.playerNotification=c,S.overlayPlayer&&(S.hasOwnProperty("allowFullscreen")||(S.allowFullscreen=!1)),e("VP >> before options.initialAudio = "+S.initialAudio),"auto"===S.initialPlayback&&"on"===S.initialAudio&&g()&&y()&&A()>=53&&(S.showMute=!0,S.showVolume=!0),e("VP >> after options.initialAudio = "+S.initialAudio),d(k,S,I)}e("VERSION 1.4.15");var k,T,w,E,S={},I={},C=null,P=!1,j=3e3,x=null,_=!1,V=!1,D=null,M=!1,N=null,O=!1,R=0,U=function(t){e("VastPlayer > cbWhenQuartile "+t),x(t,{})},L=function(e,t){var n={type:e,name:t};if("AdHandler"===n.type&&"video_impression"===n.name)try{var i=new CustomEvent("outstream-impression");k.dispatchEvent(i)}catch(o){error(o)}for(var r=[{type:"AdHandler",name:"video_start",mappedEventName:"videoStart"},{type:"AdHandler",name:"rewind",mappedEventName:"videoRewind"},{type:"AdHandler",name:"video_fullscreen_enter",mappedEventName:"video-fullscreen-enter"},{type:"AdHandler",name:"video_fullscreen_exit",mappedEventName:"video-fullscreen-exit"}],a=0;a cbWhenVideoComplete "+t),x(t,{})},B=function(t){e("VastPlayer > cbWhenSkipped "+t),x(t,{})},$=function(t){e("VastPlayer > cbWhenAudio "+t),x(t,{})},H=function(e){x(e,{})},W=function(t){e("VastPlayer > cbWhenFullScreen "+t),x(t,{})},z=function(t,n,i){e("VastPlayer > cbTerminate isError: "+t);var r="unknown";k&&(r=k.id.toString()),e("VastPlayer > cbTerminate: bTerminated = "+V+", targetElement id = "+r),M=!1,V||(V=!0,n||q(),!i&&o()&&S.overlayPlayer&&q(),k&&(N&&(N.isPlayingVideo&&(e("VastPlayer > cbTerminate: pause ad"),N.pause()),k.style.height="1px",N.resizePlayer(1,1)),setTimeout(function(){k&&(k.innerHTML="",T.removeChild(k)),k=null},2e3)),x&&t&&x("video-error",{}))},q=function(){document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen()},J=function(t){var n,i,r,a,s;n=t&&t.options&&t.options.video&&t.options.video.url?t.options.video.url:"",i=t&&t.options&&t.options.data&&t.options.data.vastDurationMsec?t.options.data.vastDurationMsec:0,r=t&&t.options&&t.options.finalVastXml?t.options.finalVastXml:"",a=t&&t.options&&t.options.finalVastUri?t.options.finalVastUri:"",s=t&&t.getFinalAspectRatio()?t.getFinalAspectRatio():"",V||(P=!0,N=t,e("VastPlayer > cbWhenReady in "+((new Date).getTime()-E)+" msecs"),x&&x("adReady",{creativeUrl:n,duration:i,vastXML:r,vastCreativeUrl:a,aspectRatio:s}),"click"===S.initialPlayback||S.cachePlayer||(o()&&S.overlayPlayer?S.forceAdInFullscreen?(O=!0,q()):(k&&(k.style.width="1px",k.style.height="1px"),z(!1,!0,!0)):N.play()))},G=null;document.body.onresize&&(G=document.body.onresize),window.onresize=a,this.playVast=function(t,n,o,r,a){e("VP >> playVast function called playerId = "+this.vastPlayerId),z(!1,!0),i(),S=n,S.vastXml=o,b(t,r,a)},this.playAdObject=function(t,n,o,r,a){e("VP >> playAdObject function called playerId = "+this.vastPlayerId+", cache mode = "+n.cachePlayer),z(!1,!0),i(),S=n,"string"==typeof o?S.vastXml=o:(S.useAdObj=!0,S.adObj=o),b(t,r,a)},this.stop=function(){C&&(clearTimeout(C),C=null),z(!1)},this.removeFromPage=function(){C&&(clearTimeout(C),C=null),V=!0,k&&(k.innerHTML="",T.removeChild(k),k=null)},this.play=function(){e("VP >> play function called playerId = "+this.vastPlayerId),N&&(S.cachePlayer=!1,o()&&S.overlayPlayer?S.forceAdInFullscreen?(O=!0,q()):z(!1,!0,!0):(k&&S.fitInContainer===!1&&(k.style.zIndex=R),r(),"click"!==S.initialPlayback&&N.play()))},this.sendPlay=function(){e("VP >> sendPlay function called playerID = "+this.vastPlayerId),N&&!N.isPlayingVideo&&N.play()},this.sendPause=function(){e("VP >> sendPause function called playerID = "+this.vastPlayerId),N&&N.isPlayingVideo&&N.pause()},this.handleFullscreen=function(e){N&&(e?T.requestFullscreen?T.requestFullscreen():T.webkitRequestFullscreen?T.webkitRequestFullscreen():T.mozRequestFullScreen?T.mozRequestFullScreen():T.msRequestFullscreen&&T.msRequestFullscreen():document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.msExitFullscreen&&document.msExitFullscreen())},this.vastPlayerId=(new Date).getTime(),this.isTerminated=function(){return V},this.getIsVideoPlaying=function(){var e=!(!N||!N.isPlayingVideo);return e},this.getCurrentPlayHeadTime=function(){var e=0;return w&&w.adVideoPlayer&&"function"==typeof w.adVideoPlayer.player&&(e=1e3*w.adVideoPlayer.player().currentTime(),e=parseInt&&"function"==typeof parseInt?parseInt(e):e),e}};e.exports={playAdObject:function(e,t,n,i,o){var a=r(t.targetElementId,t.cachePlayer);a&&a.playAdObject(e,t,n,i,o)},playVast:function(e,t,n,i,o){var a=r(t.targetElementId);a&&a.playVast(e,t,n,i,o)},loadAndPlayVast:function(e,t,i,o,a){var s=n(29);s.load(i,function(s,l){if(s||0===l.length){var d=n(28);d.logDebug("Failed to load "+i,"Vast Video Player")}else{var c=r(t.targetElementId);c&&c.playVast(e,t,l,o,a)}})},stop:function(e,t){var n=o(e.id,t);n&&n.stop()},removeFromPage:function(e){var t=o(e);t&&t.removeFromPage()},play:function(e,t){var n=i(e,t);n&&n.play()},sendPlay:function(e){var t=o(e);t&&t.sendPlay()},sendPause:function(e){var t=o(e);t&&t.sendPause()},handleFullscreen:function(e,t){var n=o(e);n&&n.handleFullscreen(t)},getCurrentPlayHeadTime:function(e){var t=o(e);if(t)return t.getCurrentPlayHeadTime()},getIsVideoPlaying:function(e){var t=o(e);if(t)return t.getIsVideoPlaying()}}},function(e,t){var n=function(e){function t(e){return"object"==typeof e}function n(e){return null===e}function i(e){var o,r,a;for(r=1;r-1},T=["AdPaused","AdVolumeChange"],w=["AdLoaded","AdStopped","AdSkippableStateChange","AdLinearChange","AdDurationChange","AdRemainingTimeChange","AdLog","AdError"],E=1,S=402,I=900,C=405,P={initialPlayback:"auto",initialAudio:"off",skippable:{enabled:!0,allowOverride:!1,videoThreshold:15,videoOffset:5,skipLocation:"top-left",skipText:"Video can be skipped in %%TIME%% seconds",skipButtonText:"SKIP"},adText:"Ad",showMute:!0,showVolume:!0,showProgressBar:!0,showPlayToggle:!0,showBigPlayButton:!0,allowFullscreen:!0,playerSkin:{customPlayerSkin:"",controlBarHeight:30,topDividerColor:"#606060",bottomDividerColor:"#606060",topDividerWidth:1,bottomDividerWidth:1,videoBackgroundColor:"#000000"},disableCollapse:{enabled:!1,replay:!1},endCard:{enabled:!1,clickable:!0,color:"",imageUrl:"",imageWidth:"",imageHeight:"",showCompanion:!0},enableInlineVideoForIos:!0,delayExpandUntilVPAIDInit:!1,delayExpandUntilVPAIDImpression:!1,flash:{swf:"http://acdn.adnxs.com/video/player/vastPlayer/AppnexusFlashPlayer.swf"},vpaidTimeout:5e3,waterfallTimeout:3e4,waterfallSteps:-1,fixedSizePlayer:!0,disableTopBar:!1,sideStream:{enabled:!1,position:"bottom-right",xOffset:0,yOffset:0,space:"empty",dynamicBigPlayButtonOnSideStream:!0},sideStreamObject:{},preloadInlineAudioForIos:!1,controlBarPosition:"over",customPlayerSkinCss:"",customButton:{enabled:!1,url:"",altText:"",imageSrc:"",imgWidth:50,imgHeight:30},enableNativeInline:!1,androidDSOverride:!1,cbNotification:function(){},parentIframeIsModal:!1,learnMore:{enabled:!1,clickToPause:!0,text:"Learn More",separator:"-"},playerContextId:"anadvideoplayer",data:{skipOffset:"",durationMsec:null,skipOffsetMsec:null,isVastVideoSkippable:!1,vastProgressEvent:{},vastDurationMsec:null,adIcons:null},test:function(){}},j={externalNameOfVideoPlayer:v,videoPlayerObj:i,autoplayHandler:h,mobileSupport:h,customSkinning:u,options:{},adVideoPlayer:{},callbackForAdUnit:{},vpaidData:{},iframeVideoWrapper:{},isPlayingVideo:!1,isDoneInitialPlay:!1,isFullscreen:!1,heightOffset:0,explicitPaused:!1,aspectRatio:0,finalAspectRatio:0,videoObjectId:{},isViewable:!1,isSkipped:!1,isCompleted:!1,isMuted:!1,isExplicitMuted:!1,hasBeenUnmuted:!1,isChrome:navigator.userAgent.indexOf("Chrome")>-1,videojs_vpaid:r,overlayPlayer:!1,forceToSkip:!1,ExtendDefaultOption:a,delayEventHandler:null,pausedByViewability:!1,mutedByVisibility:!1,gotAdImpressionForFlash:!1,gotAdStartedForFlash:!1,isReadyToExpandForMobile:!1,isAlreadyPlaingForVPAID:!1,isSideStreamActivated:!1,isExpanded:!0,isVideoCompleteInjected:!1,isFullscreenToggled:!1,toggleWindowFocus:!0,viewabilityTracking:null,isDoneFirstLoadStart:!1,flashBlockerTimeout:null,startedReplay:!1,Utils:l,isAlreadyStart:!1,isEnded:!1,blockTrackingUserActivity:!1,videoId:"",divIdForVideo:"",init:function(e){var t=a(P,e);return this.options=t,"boolean"==typeof this.options.disableCollapse&&(this.options.disableCollapse={enabled:this.options.disableCollapse,replay:!1}),this.options.skippable.allowOverride===!0&&(this.options.skippable.videoThreshold=0,this.options.skippable.enabled=!0),this.delayEventHandler=new d,this.delayEventHandler.suppress(this.options.delayExpandUntilVPAIDImpression),this.delayEventHandler.start(),this.viewabilityTracking=new p,t},getValueFromPlayer:function(e){var t=0;try{"controlBar.height"===e&&this.adVideoPlayer&&this.adVideoPlayer.controlBar&&this.adVideoPlayer.controlBar.height&&"function"==typeof this.adVideoPlayer.controlBar.height&&"html5"===this.decidePlayer(this.options.requiredPlayer)&&(t=this.adVideoPlayer.controlBar.height())}catch(n){b(n)}return t},decidePlayer:function(e){var t="",n="flash",i="html5",o=function(){var e=navigator.appVersion.indexOf("Mobile"),t=navigator.appVersion.indexOf("Android");return e>-1||t>-1},r=this.options.playerTechnology;if(r&&r.length&&1===r.length)switch(e){case 1:t=i;break;case 2:t=n;break;case 0:t=r[0]===i?i:n}if(r&&r.length&&2===r.length)switch(e){case 1:t=i;break;case 2:t=n;break;case 0:t=i}return o()&&(t=i),t},buildPlayer:function(e,t){var n=this;if(t.waterfallStepId&&A("CHECKING AUTOPLAY FOR WATERFALL STEP: "+t.waterfallStepId),"html5"===this.decidePlayer(t.requiredPlayer)&&this.autoplayHandler&&!t.overlayPlayer){var i,o=function(i){var o=n.autoplayHandler.videoPolicy;switch(i){case o.allowAutoplay:break;case o.stopMediaWithSound:"on"===t.initialAudio?("auto"!==t.initialPlayback&&"mouseover"!==t.initialPlayback||(t.initialAudio="off",t.audioOnMouseover=!1),t.isWaterfall===!0&&(t.adAttempt>0?(t.initialAudio="off",t.audioOnMouseover=!1):t.audioOnMouseover=!0)):"auto"!==t.initialPlayback&&"mouseover"!==t.initialPlayback||(t.audioOnMouseover=!1);break;case o.neverAutoplay:t.initialPlayback="click",t.isWaterfall&&(t.isWaterfall=!1,t.stopWaterfall=!0)}t.waterfallStepId&&A("BUILDING PLAYER FOR WATERFALL STEP: "+t.waterfallStepId),n.buildPlayerCallback(e,t)};i=!h.isMobile()&&("on"===t.initialAudio||t.audioOnMouseover===!0),n.autoplayHandler.getAutoplayPolicy(o,i)}else n.buildPlayerCallback(e,t)},buildPlayerCallback:function(e,t){this.callbackForAdUnit=e,t.hasOwnProperty("overlayPlayer")&&(this.overlayPlayer=t.overlayPlayer,t.hasOwnProperty("fullscreenMode")&&(t.allowFullscreen=!1)),k()&&"flash"===this.decidePlayer(this.options.requiredPlayer)||this.options.targetElement&&!this.options.firstAdAttempted&&(this.options.targetElement.style.visibility="hidden"),"flash"===this.decidePlayer(this.options.requiredPlayer)&&(this.options.disableCollapse.replay=!1);var n=(new Date).getTime()+Math.floor(1e4*Math.random()),i="APNVideo_Player_"+n;this.externalNameOfVideoPlayer=i,o(e,t,this)},getPlayerStatus:function(){},notifyPlayer:function(e,t){this.adVideoPlayer.handleAdUnitNotification({name:e,value:t})},load:function(){if("html5"===this.decidePlayer(this.options.requiredPlayer)){A("load video");try{this.adVideoPlayer&&void 0!==this.adVideoPlayer&&this.adVideoPlayer.load&&"function"==typeof this.adVideoPlayer.load&&(this.options.delayExpandUntilVPAIDImpression&&this.adVideoPlayer.player()&&this.adVideoPlayer.player().autoplay()&&this.adVideoPlayer.player().autoplay(!1),this.adVideoPlayer.load())}catch(e){b(e)}}},replay:function(){this.isEnded&&(this.dispatchEventToAdunit({name:"rewind"}),this.startedReplay=!0,this.isEnded=!1,this.explicitPlay(),this.adVideoPlayer.controlBar.playToggle&&this.adVideoPlayer.controlBar.playToggle.el()&&this.adVideoPlayer.controlBar.playToggle.el().style&&(this.adVideoPlayer.controlBar.playToggle.el().style["pointer-events"]=""),this.options.sideStream&&this.options.sideStream.wasEnabled===!0&&(this.options.sideStream.enabled=!0,delete this.options.sideStream.wasEnabled),this.options.endCard&&this.options.endCard.enabled&&(this.actualPlayByVideoJS(),l.isIos()||this.adVideoPlayer.bigPlayButton.show()))},actualPlayByVideoJS:function(){this.adVideoPlayer.play(),this.options.vpaid&&this.adVideoPlayer.trigger("handleManualUserInActive")},play:function(){if(this.isEnded!==!0){var e=h.isMobile()&&h.iOSversion()[0]>=10&&this.options.enableInlineVideoForIos===!1;if(e){var t=this;t.overlayPlayer?t.options.targetElement.style.overflow="":setTimeout(function(){t.options.targetElement.style.overflow=""},t.options.expandTime)}this.isAlreadyPlaingForVPAID=!0,this.isCompleted||(A("play video"),this.isDoneInitialPlay?"html5"===this.decidePlayer(this.options.requiredPlayer)?this.isPlayingVideo||this.dispatchEventToAdunit({name:"video_resume"}):this.isPlayingVideo||this.dispatchEventToAdunit({name:"video_resume"}):this.options.vpaid||(this.dispatchEventToAdunit({name:"video_start"}),this.dispatchEventToAdunit({name:"video_impression"})),this.options.vpaid&&this.isIosInlineRequired()?this.isDoneInitialPlay?this.actualPlayByVideoJS():this.adVideoPlayer.trigger("play"):this.options.vpaid&&this.options.overlayPlayer&&h.isIOS()&&h.iOSversion()[0]<10&&!this.isDoneInitialPlay?this.adVideoPlayer.trigger("play"):this.options.vpaid&&this.options.overlayPlayer&&navigator.appVersion.indexOf("Android")>-1&&this.options.enableWaterfall&&!this.isDoneInitialPlay?this.adVideoPlayer.trigger("play"):this.actualPlayByVideoJS(),"html5"===this.decidePlayer(this.options.requiredPlayer)||(this.isPlayingVideo=!0),this.isDoneInitialPlay=!0,this.isEnded=!1)}},resetVpaid:function(){this.dispatchEventToAdunit({name:"reset"})},pause:function(){this.isPlayingVideo&&(A("pause video"),this.adVideoPlayer.pause(),this.options.vpaid&&this.adVideoPlayer.trigger("handleManualUserActive"),this.isCompleted||this.isEnded||this.dispatchEventToAdunit({name:"video_pause"}))},explicitPause:function(){A("explicit pause video"),this.explicitPaused=!0,this.pause()},explicitPlay:function(){A("explicit play video"),this.explicitPaused=!1,this.play()},mute:function(){this.isMuted||(A("mute audio"),"html5"===this.decidePlayer(this.options.requiredPlayer)?(this.adVideoPlayer.muted(!0),this.dispatchEventToAdunit({name:"video_mute"})):this.adVideoPlayer.mute(),this.isMuted=!0)},explicitMute:function(){A("explicit mute video"),this.isExplicitMuted=!0,this.mute()},unmute:function(){!this.isExplicitMuted&&this.isMuted&&(A("unmute audio"),"html5"===this.decidePlayer(this.options.requiredPlayer)?(this.adVideoPlayer.muted()===!0&&this.adVideoPlayer.muted(!1),(this.isMuted||"off"===this.options.initialAudio)&&this.dispatchEventToAdunit({name:"video_unmute"})):(this.adVideoPlayer.unmute(),this.hasBeenUnmuted=!0),this.isMuted=!1)},explicitUnmute:function(){this.isExplicitMuted=!1,this.unmute()},resizeVideoWithDimensions:function(e,t){var n=this;this.options.width=e,this.options.height=t,n.resizeVideo(n.aspectRatio)},mouseIn:function(){this.adVideoPlayer.mouseIn()},mouseOut:function(){this.adVideoPlayer.mouseOut()},destroy:function(e,t){this.isPlayingVideo=!1,this.adVideoPlayer.pause(),this.isCompleted===!1&&(this.options.vpaid===!1?this.dispatchEventToAdunit({name:"video_skip"}):this.options.vpaid===!0&&this.isSkipped===!1&&this.dispatchEventToAdunit({name:"video_skip"})),"function"==typeof this.callbackForAdUnit.cbWhenSkipped&&this.callbackForAdUnit.cbWhenSkipped("video-skip"),this.isSkipped=!0,this.verificationManager&&this.verificationManager.destroy(),A("destroy");var n=I;"function"==typeof this.callbackForAdUnit.cbWhenDestroy&&(this.overlayPlayer?e&&t?this.callbackForAdUnit.cbWhenDestroy({type:E,code:n,message:t},!0,this.options):this.callbackForAdUnit.cbWhenDestroy(null,!0,this.options):e&&t?this.callbackForAdUnit.cbWhenDestroy({type:E,code:n,message:t},null,this.options):this.callbackForAdUnit.cbWhenDestroy(null,null,this.options))},destroyWithoutSkip:function(e,t,n,i){try{var o=this,r=function(){o.isPlayingVideo=!1,o.adVideoPlayer&&o.adVideoPlayer.pause&&"function"==typeof o.adVideoPlayer.pause&&o.adVideoPlayer.pause(),o.verificationManager&&o.verificationManager.destroy(),A("destroy without skip: "+o.options.iframeVideoWrapperId);var r=i||I;"function"==typeof o.callbackForAdUnit.cbWhenDestroy&&(o.overlayPlayer?e&&t?(n&&(r=S),o.callbackForAdUnit.cbWhenDestroy({type:E,code:r,message:t},!0,o.options)):o.callbackForAdUnit.cbWhenDestroy(null,!0,o.options):e&&t?(n&&(r=S),o.callbackForAdUnit.cbWhenDestroy({type:E,code:r,message:t},null,o.options)):o.callbackForAdUnit.cbWhenDestroy(null,null,o.options))};o.options.disableCollapseForDelay&&o.options.disableCollapseForDelay>0?setTimeout(r,o.options.disableCollapseForDelay):r()}catch(a){b("failed to destroy/notify by "+a)}},getVideoObject:function(){return this.adVideoPlayer},handleFlashPlay:function(){var e=this,t=function(){e.resizeVideo(e.aspectRatio),A("flash player is ready to play"),e.callbackForAdUnit.cbWhenReady&&e.callbackForAdUnit.cbWhenReady(e)};e.isChrome?(e.setChromeSize(),setTimeout(t,100)):t()},handlePlayerNotification:function(e){"video_time"!==e.name&&A("Got notification from player = "+e.name);var t=this,n={flash_is_respondble:function(){t.flashBlockerTimeout&&(clearTimeout(t.flashBlockerTimeout),t.flashBlockerTimeout=null),A("Flash is respondble")},canplay:function(){if(t.flashBlockerTimeout&&(clearTimeout(t.flashBlockerTimeout),t.flashBlockerTimeout=null,A("Flash is respondble")),t.options.hasOwnProperty("overlayPlayer"))try{t.adVideoPlayer.setDOMPlayerIdAndSize(t.adVideoPlayer.id,t.options.width,t.options.height)}catch(n){A("Failed to execute setDOMPlayerIdAndSize(...) on Flash Player")}if(t.options.vpaid)try{var i=t.adVideoPlayer.getCompanionsXml();i&&i.length>0&&(e.companionAds=i)}catch(o){}t.options.vpaid&&t.options.delayExpandUntilVPAIDImpression?t.actualPlayByVideoJS():t.handleFlashPlay()},video_failed:function(){t.flashBlockerTimeout&&(clearTimeout(t.flashBlockerTimeout),t.flashBlockerTimeout=null,A("Flash is respondble")),t.destroyWithoutSkip(!0,m,null,C)},video_timeout:function(){t.destroyWithoutSkip(!0,m,!0,S)},video_bitrate:function(){var t=e.bandwidth;A("bandwidth from flash : "+t)},video_impression:function(){},video_mute:function(){e.hasOwnProperty("value")&&!e.value&&(e.name="video_unmute"),e.hasOwnProperty("value")&&(t.isMuted=e.value)},video_click:function(){e.hasOwnProperty("playerHandles")?e.playerHandles?e.hasOwnProperty("url")&&e.url.length>0?t.click(e.url):t.click():t.dispatchEventToAdunit({name:"ad-click",trackClick:!0}):t.click()},video_complete:function(){t.isCompleted=!0,t.options.disableCollapse.enabled||t.destroyWithoutSkip()},video_fullscreen:function(){t.isFullscreen?setTimeout(function(){t.isFullscreen=!t.isFullscreen},1e3):t.isFullscreen=!t.isFullscreen},quartile_event:function(){},video_pause:function(){},video_start:function(){t.isDoneInitialPlay||"auto"===t.options.initialPlayback||t.play()},video_time:function(){},video_resume:function(){},video_stopped:function(){t.destroyWithoutSkip()},video_skipped:function(){t.destroy()},video_ratio:function(){},video_heightOffset:function(){t.heightOffset=e.heightOffset},video_paused_by_user:function(){t.explicitPause()},video_resumed_by_user:function(){A("received video_resumed_by_user from Flash"),t.requiredForFlashVpaid()?t.isVpaidFlashVideoPlaying===!1?(A("call explicitPlay by video_Resumed_by_user event"),t.explicitPlay()):A("do nothing because of isVpaidFlashVideoPlaying:true"):t.explicitPlay()},video_progress:function(){if(e&&e.offset)return void t.dispatchEventToAdunit({name:e.offset},function(){A("handle video_progress by flash : "+e.offset)})}};if(t.isDoneInitialPlay||"video_mute"!==e.name){var i=n[e.name];i&&void 0!==i&&i(),"video_pause"!==e.name&&"video_resume"!==e.name&&"video_impression"!==e.name&&"video_start"!==e.name&&"video_failed"!==e.name&&"video_timeout"!==e.name&&this.dispatchEventToAdunit(e),"video_impression"!==e.name&&"video_start"!==e.name||!t.options.vpaid||this.dispatchEventToAdunit(e)}},handleOverlayNotification:function(e){A("Got overlay notification from player = "+e.name);var t=this,n={leaveFullscreen:function(){t.options.hasOwnProperty("playerNotification")&&t.options.playerNotification("leaveFullscreen")}},i=n[e.name];i&&void 0!==i&&i()},requiredForFlashVpaid:function(){return"flash"===this.decidePlayer(this.options.requiredPlayer)&&this.options.vpaid===!0},notifyVpaidEvent:function(e){var t=this;if(t.requiredForFlashVpaid()&&("AdPaused"===e&&(A("received VPAID AdPaused from Flash"),t.isVpaidFlashVideoPlaying=!1,t.isPlayingVideo=!1,A("set isVpaidFlashVideoPlaying = false"),A("set isPlayingVideo = false")),"AdPlaying"===e&&(A("received VPAID AdPlaying from Flash"),t.isVpaidFlashVideoPlaying=!0,t.isPlayingVideo=!0,A("set isVpaidFlashVideoPlaying = true"),A("set isPlayingVideo = true"))),"flash"===t.decidePlayer(t.options.requiredPlayer)&&t.options.delayExpandUntilVPAIDImpression&&("AdVideoStart"===e&&t.adVideoPlayer.pause(),"AdImpression"===e&&(t.gotAdImpressionForFlash=!0),"AdStarted"===e&&(t.gotAdStartedForFlash=!0),t.gotAdImpressionForFlash&&t.gotAdStartedForFlash&&(t.handleFlashPlay(),t.gotAdImpressionForFlash=!1,t.gotAdStartedForFlash=!1)),!(t.options.delayExpandUntilVPAIDImpression&&t.delayEventHandler.isSuppress&&T.indexOf(e)>=0)){if("AdVolumeChange"===e){var n="html5"===this.decidePlayer(this.options.requiredPlayer);if(n){var i=t.adVideoPlayer.player().muted(),o=t.adVideoPlayer.player().volume();i?i&&(A("set VPAID AdVolumeChange video_mute"),this.dispatchEventToAdunit({name:"video_mute"})):o>0&&(A("set VPAID AdVolumeChange video_unmute"),this.dispatchEventToAdunit({name:"video_unmute"}))}}w.indexOf(e)>=0||w.indexOf("vpaid."+e)>=0?t.notifyVpaidEvent_internal(e):t.delayEventHandler.push(function(){t.notifyVpaidEvent_internal(e)})}},notifyVpaidEvent_internal:function(e){this.options.cbNotification&&this.options.cbNotification("VPAID",e,this.options.targetId),this.options.cbApnVastPlayer&&this.options.cbApnVastPlayer(e)},setChromeSize:function(){this.adVideoPlayer.width="0px",this.adVideoPlayer.height="0px",this.adVideoPlayer.style.width="0px",this.adVideoPlayer.style.height="0px",this.options.targetElement.style.visibility="visible"},click:function(e,t){if(!this.isDoneInitialPlay)return void this.play();this.isIosInlineRequired()===!1&&(this.pause(),this.toggleWindowFocus=!1);var n=!1;if(this.options.useCustomOpenForClickthrough){var i=this.options.clickUrls[0];e&&(i=e),n=!0,this.dispatchEventToAdunit({name:"video_click_open_url",url:i})}else if(e)n=!0,window.open(e);else if(this.options.clickUrls[0]){n=!0;var o=this.options.clickUrls[0];window.open(o)}"undefined"!=typeof t&&t!==!0||this.dispatchEventToAdunit({name:"ad-click",trackClick:n})},getRapamsAndExtensions:function(){var e=this.options.extensions&&this.options.extensions.length>0?""+this.options.extensions+"":"";return{adParameters:this.options.adParameters,extensions:e}},handleViewability:function(e,t,n){var i=this.options&&this.options.viewability&&this.options.viewability.config,o=e&&e.name?e.name:null;"fullscreenchange"!==o&&"video_fullscreen"!==o||(o=this.isFullscreen?"fullscreen":"exitFullscreen"),n||"video_duration"!==o||(this.isAlreadyStart=!0);var r=function(){var i;i=n?this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player&&this.adVideoPlayer.player().duration():e.duration,(!i||void 0===i||i<=0)&&(i=-2),i===-2&&(this.options&&this.options.data&&this.options.data.vastDurationMsec?(i=this.options.data.vastDurationMsec/1e3,(!i||null===i||i<=0)&&(i=-2)):i=-2);var r=this.options.width,a=this.options.height;if(this.viewabilityTracking.init(this.options,i,r,a,t),n)if(this.options.expandable)this.options.vpaid===!0&&"video_start"===o&&this.viewabilityTracking.invokeEvent("expand"),this.options.vpaid===!1&&"loadstart"===o&&this.viewabilityTracking.invokeEvent("expand"),this.viewabilityTracking.invokeEvent(o);else{if(this.options.overlayPlayer&&l.isMobile()&&this.options.delayStartViewability)return;this.viewabilityTracking.invokeEvent(o)}else this.isAlreadyStart&&(this.options.expandable&&this.viewabilityTracking.invokeEvent("expand"),this.viewabilityTracking.invokeEvent("video_start"))},a=function(){if(this.viewabilityTracking&&this.viewabilityTracking.isReady){ +if(n===!1&&"expand"===o&&this.options.expandable)return;"force_start_viewability"===o&&this.options.delayStartViewability?(this.options.delayStartViewability=!1,this.viewabilityTracking.invokeEvent("video_start")):this.viewabilityTracking.invokeEvent(o)}};if(o&&i){var s=this.blockTrackingUserActivity&&("video_resume"===o||"video_pause"===o||"video_mute"===o||"video_unmute"===o);s||(o===t?r.apply(this):a.apply(this))}},findPathForViewability:function(e){var t,n="html5"===this.decidePlayer(this.options.requiredPlayer);if(n){if(t=!this.options.expandable||"undefined"!=typeof this.options.isExpanded&&this.options.isExpanded!==!1?"video_start":"expand",e&&e.name&&e.name===t){if(this.isDoneFirstLoadStart)return;this.isDoneFirstLoadStart=!0}this.handleViewability(e,t,n)}else{if(t="video_duration",e&&"video_start"===e.name)return;e&&e.name&&e.name===t?this.isDoneFirstLoadStart||(this.isDoneFirstLoadStart=!0,this.handleViewability(e,t,n)):this.handleViewability(e,t,n)}},dispatchEventToAdunit:function(e,t){var n=this;if("video_start"===e.name&&n.iframeVideoWrapper.contentDocument){var i=n.iframeVideoWrapper.contentDocument.getElementById(n.divIdForVideo),o=n.iframeVideoWrapper.contentDocument.getElementById(n.videoId);i.style.background=n.options.playerSkin.videoBackgroundColor,o.style.background=n.options.playerSkin.videoBackgroundColor,h.isIOS()&&n.isIosInlineRequired()&&(o.style.opacity=0)}if("video_complete"===e.name&&(void 0===e.obj&&(e.obj={}),e.obj.videoAdPending=this.options.disableCollapse.replay),"video_fullscreen"===e.name&&"flash"===this.decidePlayer(this.options.requiredPlayer)?setTimeout(function(){var t={name:e.name,user:e.user,value:e.value};n.findPathForViewability(t)},1500):this.findPathForViewability(e),(this.startedReplay===!0||this.isEnded)&&this.options.disableCollapse.replay===!0)if(this.startedReplay===!1&&"rewind"===e.name);else{if("video_complete"===e.name&&"function"==typeof t)return void t();if("ad-click"!==e.name&&e.name.indexOf("IconClick")===-1)return void this.callbackForAdUnit.cbForHandlingDispatchedEvent(e,!0)}"video_skip"===e.name&&c.pushAndCheck(this.options.targetElement.id+"_dispatchEventToAdunit",e.name)===!1||"video_complete"===e.name&&this.isVideoCompleteInjected===!0&&this.options.disableCollapse.replay===!1||(e&&"video_time"!==e.name&&A("(push)"+e.name),this.delayEventHandler.push(function(){n.dispatchEventToAdunit_internal(e,t)}),"video_complete"===e.name&&(this.isVideoCompleteInjected=!0))},dispatchEventToAdunit_internal:function(e,t){if(!this.isCompleted||"video_complete"===e.name||"ad-click"===e.name||"video_skip"===e.name||this.startedReplay){var n=this;if(e&&"video_time"!==e.name&&A("invoke callback : "+JSON.stringify(e)),this.options.hasOwnProperty("overlayPlayer")&&this.options.hiddenControls&&(("firstplay"===e.name&&!this.options.vpaid||"video_impression"===e.name&&this.options.vpaid)&&(!l.isMobile()||"click"!==this.options.initialPlayback&&"mouseover"!==this.options.initialPlayback?h.isIOS()&&h.iOSversion()[0]<10&&"auto"===this.options.initialPlayback&&(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls):(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls)),"video_resume"===e.name&&this.options.vpaid&&l.isMobile()&&(this.adVideoPlayer.controlBar.el_.style.removeProperty("display"),delete this.options.hiddenControls)),this.callbackForAdUnit.cbForHandlingDispatchedEvent&&"video_time"!==e.name){if("video_pause"===e.name&&(this.isPlayingVideo=!1),"video_play"!==e.name&&"video_start"!==e.name&&"firstplay"!==e.name||(this.isPlayingVideo=!0,this.isDoneInitialPlay=!0),"video_fullscreen"===e.name)return void setTimeout(function(){e.fullscreenStatus=n.isFullscreen?"enter":"exit",n.callbackForAdUnit.cbForHandlingDispatchedEvent(e)},1500);"function"==typeof t&&t();var i=this.blockTrackingUserActivity&&("video_resume"===e.name||"video_pause"===e.name||"video_mute"===e.name||"video_unmute"===e.name);if(i||(e.player=this,this.callbackForAdUnit.cbForHandlingDispatchedEvent(e)),this.verificationManager){var o=this.prepareOmidEventData(e);o.name&&this.verificationManager.dispatchEvent(o.name,o.data)}}this.options.vpaid===!0&&"video_skip"===e.name&&(this.isSkipped=!0)}},resolveMacro:function(e){switch(e){case"MEDIAPLAYHEAD":return this.options.hasOwnProperty("mediaPlayhead")&&"number"==typeof this.options.mediaPlayhead?l.convertTimeSecondsToString(this.options.mediaPlayhead):-1;case"BREAKPOSITION":return this.options.breakPosition?this.options.breakPosition:-1;case"ADCOUNT":return 1;case"PLACEMENTTYPE":return this.options.overlayPlayer?1:this.options.expandable?3:-1;case"CLIENTUA":return this.options.clientUA?this.options.clientUA:"unknown unknown";case"DEVICEIP":return-1;case"PLAYERCAPABILITIES":var t=[];return this.options.skippable&&this.options.skippable.enabled&&t.push("skip"),this.options.showMute&&t.push("mute"),"auto"===this.options.initialPlayback&&("on"===this.options.initialAudio?t.push("autoplay"):t.push("mautoplay")),this.options.allowFullscreen&&t.push("fullscreen"),t.push("icon"),t.join();case"CLICKTYPE":return this.options.clickUrls&&this.options.clickUrls[0]?1:this.options.learnMore.enabled?2:0;case"PLAYERSTATE":var n=[];return this.isSkipped&&n.push("skipped"),this.isMuted&&n.push("muted"),"auto"===this.options.initialPlayback&&("on"===this.options.initialAudio?n.push("autoplayed"):n.push("mautoplayed")),this.adVideoPlayer.isFullscreen&&"function"==typeof this.adVideoPlayer.isFullscreen&&this.adVideoPlayer.isFullscreen()&&n.push("fullscreen"),n.join();case"PLAYERSIZE":return this.options.width+","+this.options.height;case"ADPLAYHEAD":if(this.adVideoPlayer.currentTime&&"function"==typeof this.adVideoPlayer.currentTime){var i=this.adVideoPlayer.currentTime();return l.convertTimeSecondsToString(i)}return-1;case"ASSETURI":return this.options.video.url;case"PODSEQUENCE":return-1;case"LIMITADTRACKING":return 0;default:return-1}},prepareOmidEventData:function(e){var t={error:"sessionError",impression:"impression",video_impression:"impression",video_start:"start","video-first-quartile":"firstQuartile","video-mid":"midpoint","video-third-quartile":"thirdQuartile",video_complete:"complete",video_pause:"pause",video_resume:"resume","user-close":"skipped",video_skip:"skipped",video_skipped:"skipped","audio-mute":"volumeChange","audio-unmute":"volumeChange",video_mute:"volumeChange",video_unmute:"volumeChange",fullscreenchange:"playerStateChange",video_fullscreen:"playerStateChange","video-exit-fullscreen":"playerStateChange","ad-expand":"playerStateChange","ad-collapse":"playerStateChange","ad-click":"adUserInteraction","user-accept-invitation":"adUserInteraction"},n=t.hasOwnProperty(e.name)?t[e.name]:"",i={name:n},o=null;switch(n){case"sessionError":o={},o.errorType=e.code,o.message=e.message;break;case"start":o={},this.options.data.durationMsec?o.duration=this.options.data.durationMsec/1e3:this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?o.duration=this.adVideoPlayer.player().duration()/1e3:o.duration=-2,this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?o.videoPlayerVolume=this.adVideoPlayer.player().volume():o.videoPlayerVolume=-1;break;case"volumeChange":o={},"audio-mute"===e.name||"video_mute"===e.name?o.videoPlayerVolume=0:this.adVideoPlayer&&this.adVideoPlayer.player&&"function"==typeof this.adVideoPlayer.player?o.videoPlayerVolume=this.adVideoPlayer.player().volume():o.videoPlayerVolume=-1;break;case"playerStateChange":o={},"video-fullscreen"===e.name||"fullscreenchange"===e.name&&"enter"===e.fullscreenStatus?o.state=this.adVideoPlayer.isFullscreen?"fullscreen":"normal":"video-exit-fullscreen"===e.name||"fullscreenchange"===e.name&&"exit"===e.fullscreenStatus?o.state="normal":"ad-collapse"===e.name?o.state="collapsed":o.state="normal";break;case"adUserInteraction":o={},"ad-click"===e.name?o.interactionType="click":o.interactionType="invitationAccept"}return o&&(i.data=o),i},resizeVideo:function(e,t,n){s.resizeVideo(e,t,this,n)},resizeVideoForSideStream:function(e,t,n){s.resizeVideoForSideStream(this,e,t,n)},isIosInlineRequired:function(){return this.autoplayHandler.isIosInlineRequired(this.options.enableInlineVideoForIos)},resizePlayer:function(e,t){s.resizePlayer(e,t,this)},getFinalSize:function(){return s.getFinalSize(this)},setVastAttribute:function(e){var t,n=this.options;t=e?e:this.adVideoPlayer&&this.adVideoPlayer.player?this.adVideoPlayer.player().duration():0,n.data.durationMsec=null!==t?Math.round(1e3*t):0;var i=this.Utils.getMsecTime(n.data.skipOffset,n.data.durationMsec);n.data.skipOffset&&i>=0?(n.data.isVastVideoSkippable=!0,n.data.skipOffsetMsec=i):n.data.skipOffsetMsec=null;var o=n.data.vastProgressEvent;if(o&&"object"==typeof o)for(var r in o){var a=this.Utils.getMsecTime(r.replace(/progress_/g,""),n.data.durationMsec);o[r]=a}},disableTrackingUserActivity:function(e){this.blockTrackingUserActivity=e,this.adVideoPlayer&&this.adVideoPlayer.bigPlayButton&&(this.adVideoPlayer.bigPlayButton.el_.style.opacity=e===!0?0:1)},delayEventsTracking:function(e,t){this.callbackForAdUnit.cbDelayEventsTracking&&this.callbackForAdUnit.cbDelayEventsTracking(e,t)},notifyOverlayPlayerVideoPaused:function(){this.options.tmpActiveListener&&this.options.cbApnVastPlayer&&this.options.cbApnVastPlayer("apn-video-paused-by-device")},checkWhenVideoPausedByDevice:function(e){if(this.options.overlayPlayer&&this.options.cbApnVastPlayer&&this.iframeVideoWrapper&&this.iframeVideoWrapper.contentDocument){var t=null;if("string"==typeof this.videoObjectId)t=this.iframeVideoWrapper.contentDocument.getElementById(this.videoObjectId);else{var n=this.iframeVideoWrapper.contentDocument.getElementsByTagName("VIDEO");if(n&&n.length>0)for(var i=0;i0){t=n[i];break}}if(t)return e?(this.options.tmpActiveListener=!0,t.addEventListener("pause",this.notifyOverlayPlayerVideoPaused.bind(this))):(delete this.options.tmpActiveListener,t.removeEventListener("pause",this.notifyOverlayPlayerVideoPaused.bind(this))),!0}return!0},forceStartViewability:function(){this.findPathForViewability({name:"force_start_viewability"})},log:A,debug:A,test:function(e,t){var n=this.options;if(n&&n.test&&n.test[e]&&"function"==typeof n.test[e]){var i=function(e){console.debug("%c"+e,"background: red; color: white")},o=function(e){console.debug("%c"+e,"background: green; color: white")};try{var r=function(t,n){t?(n=n+" Succeeded"||"Succeeded",o("Unit Test ["+e+"] : "+n)):(n=n+" failed"||"Assertion failed",i("Unit Test ["+e+"] : "+n))},a=function(t){console.debug("%cUnit Test Log : ["+e+"] : "+t,"background: gray; color: white")};n.test[e](t,r,a)}catch(s){i("unit test failed due to : "+s)}}},setFinalAspectRatio:function(e){this.finalAspectRatio=e},getFinalAspectRatio:function(){return this.finalAspectRatio}};e.exports=j,window[v]=j},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(module){function _handleMultipleEvents(e,t,n,i){vjs.arr.forEach(n,function(n){e(t,n,i)})}function _logType(e,t){return}document.createElement("video"),document.createElement("audio"),document.createElement("track");var global_options,vjs=function(e,t,n){global_options=t;var i;if("string"==typeof e){if(0===e.indexOf("#")&&(e=e.slice(1)),vjs.players[e])return t&&vjs.log.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&vjs.players[e].ready(n),vjs.players[e];i=vjs.el(e)}else i=e;if(!i||!i.nodeName)throw new TypeError("The element or ID supplied is not valid. (videojs)");return i.player||new vjs.Player(i,t,n)},videojs=window.videojs_apn=vjs;vjs.CDN_VERSION="GENERATED_CDN_VSN",vjs.ACCESS_PROTOCOL="https:"==document.location.protocol?"https://":"http://",vjs.VERSION="GENERATED_FULL_VSN",vjs.options={techOrder:["html5","flash"],html5:{},flash:{},width:300,height:150,defaultVolume:0,playbackRates:[],inactivityTimeout:500,children:{mediaLoader:{},posterImage:{},loadingSpinner:{},textTrackDisplay:{},bigPlayButton:{},controlBar:{},errorDisplay:{},textTrackSettings:{}},language:document.getElementsByTagName("html")[0].getAttribute("lang")||navigator.languages&&navigator.languages[0]||navigator.userLanguage||navigator.language||"en",languages:{},notSupportedMessage:"No compatible source was found for this video."},"GENERATED_CDN_VSN"!==vjs.CDN_VERSION&&(videojs.options.flash.swf=vjs.ACCESS_PROTOCOL+"vjs.zencdn.net/"+vjs.CDN_VERSION+"/video-js.swf"),vjs.addLanguage=function(e,t){return void 0!==vjs.options.languages[e]?vjs.options.languages[e]=vjs.util.mergeOptions(vjs.options.languages[e],t):vjs.options.languages[e]=t,vjs.options.languages},vjs.players={},__webpack_require__(5).amd?(__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return videojs}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))):module.exports=videojs,vjs.CoreObject=vjs.CoreObject=function(){},vjs.CoreObject.extend=function(e){var t,n;e=e||{},t=e.init||e.init||this.prototype.init||this.prototype.init||function(){},n=function(){t.apply(this,arguments)},n.prototype=vjs.obj.create(this.prototype),n.prototype.constructor=n,n.extend=vjs.CoreObject.extend,n.create=vjs.CoreObject.create;for(var i in e)e.hasOwnProperty(i)&&(n.prototype[i]=e[i]);return n},vjs.CoreObject.create=function(){var e=vjs.obj.create(this.prototype);return this.apply(e,arguments),e},vjs.on=function(e,t,n){if(vjs.obj.isArray(t))return _handleMultipleEvents(vjs.on,e,t,n);var i=vjs.getData(e);i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=vjs.guid++),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t){if(!i.disabled){t=vjs.fixEvent(t);var n=i.handlers[t.type];if(n)for(var o=n.slice(0),r=0,a=o.length;r=0;i--)n[i]===t&&n.splice(i,1);e.className=n.join(" ")}},vjs.TEST_VID=vjs.createEl("video"),function(){var e=document.createElement("track");e.kind="captions",e.srclang="en",e.label="English",vjs.TEST_VID.appendChild(e)}(),vjs.USER_AGENT=navigator.userAgent,vjs.IS_IPHONE=/iPhone/i.test(vjs.USER_AGENT),vjs.IS_IPAD=/iPad/i.test(vjs.USER_AGENT),vjs.IS_IPOD=/iPod/i.test(vjs.USER_AGENT),vjs.IS_IOS=vjs.IS_IPHONE||vjs.IS_IPAD||vjs.IS_IPOD,vjs.IOS_VERSION=function(){var e=vjs.USER_AGENT.match(/OS (\d+)_/i);if(e&&e[1])return e[1]}(),vjs.IS_ANDROID=/Android/i.test(vjs.USER_AGENT),vjs.ANDROID_VERSION=function(){var e,t,n=vjs.USER_AGENT.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);return n?(e=n[1]&&parseFloat(n[1]),t=n[2]&&parseFloat(n[2]),e&&t?parseFloat(n[1]+"."+n[2]):e?e:null):null}(),vjs.IS_OLD_ANDROID=vjs.IS_ANDROID&&/webkit/i.test(vjs.USER_AGENT)&&vjs.ANDROID_VERSION<2.3,vjs.IS_FIREFOX=/Firefox/i.test(vjs.USER_AGENT),vjs.IS_CHROME=/Chrome/i.test(vjs.USER_AGENT),vjs.IS_IE8=/MSIE\s8\.0/.test(vjs.USER_AGENT),vjs.TOUCH_ENABLED=!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),vjs.BACKGROUND_SIZE_SUPPORTED="backgroundSize"in vjs.TEST_VID.style,vjs.setElementAttributes=function(e,t){vjs.obj.each(t,function(t,n){null===n||"undefined"==typeof n||n===!1?e.removeAttribute(t):e.setAttribute(t,n===!0?"":n)})},vjs.getElementAttributes=function(e){var t,n,i,o,r;if(t={},n=",autoplay,controls,loop,muted,default,",e&&e.attributes&&e.attributes.length>0){i=e.attributes;for(var a=i.length-1;a>=0;a--)o=i[a].name,r=i[a].value,"boolean"!=typeof e[o]&&n.indexOf(","+o+",")===-1||(r=null!==r),t[o]=r}return t},vjs.getComputedDimension=function(e,t){var n="";return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,"").getPropertyValue(t):e.currentStyle&&(n=e["client"+t.substr(0,1).toUpperCase()+t.substr(1)]+"px"),n},vjs.insertFirst=function(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)},vjs.browser={},vjs.el=function(e){return 0===e.indexOf("#")&&(e=e.slice(1)),document.getElementById(e)},vjs.formatTime=function(e,t){t=t||e;var n=Math.floor(e%60),i=Math.floor(e/60%60),o=Math.floor(e/3600),r=Math.floor(t/60%60),a=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(o=i=n="-"),o=o>0||a>0?o+":":"",i=((o||r>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,o+i+n},vjs.blockTextSelection=function(){document.body.focus(),document.onselectstart=function(){return!1}},vjs.unblockTextSelection=function(){document.onselectstart=function(){return!0}},vjs.trim=function(e){return(e+"").replace(/^\s+|\s+$/g,"")},vjs.round=function(e,t){return t||(t=0),Math.round(e*Math.pow(10,t))/Math.pow(10,t)},vjs.createTimeRange=function(e,t){return void 0===e&&void 0===t?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:1,start:function(){return e},end:function(){return t}}},vjs.setLocalStorage=function(e,t){try{var n=window.localStorage||!1;if(!n)return;n[e]=t}catch(i){22==i.code||1014==i.code?vjs.log("LocalStorage Full (VideoJS)",i):18==i.code?vjs.log("LocalStorage not allowed (VideoJS)",i):vjs.log("LocalStorage Error (VideoJS)",i)}},vjs.getAbsoluteURL=function(e){return e.match(/^https?:\/\//)||(e=vjs.createEl("div",{innerHTML:'x'}).firstChild.href),e},vjs.parseUrl=function(e){var t,n,i,o,r;o=["protocol","hostname","port","pathname","search","hash","host"],n=vjs.createEl("a",{href:e}),i=""===n.host&&"file:"!==n.protocol,i&&(t=vjs.createEl("div"),t.innerHTML='',n=t.firstChild,t.setAttribute("style","display:none; position:absolute;"),document.body.appendChild(t)),r={};for(var a=0;a=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.off(),this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),vjs.removeData(this.el_),this.el_=null},vjs.Component.prototype.player_=!0,vjs.Component.prototype.player=function(){return this.player_},vjs.Component.prototype.options_,vjs.Component.prototype.options=function(e){return void 0===e?this.options_:this.options_=vjs.util.mergeOptions(this.options_,e)},vjs.Component.prototype.el_,vjs.Component.prototype.createEl=function(e,t){return vjs.createEl(e,t)},vjs.Component.prototype.localize=function(e){var t=this.player_.language(),n=this.player_.languages();return n&&n[t]&&n[t][e]?n[t][e]:e},vjs.Component.prototype.el=function(){return this.el_},vjs.Component.prototype.contentEl_,vjs.Component.prototype.contentEl=function(){return this.contentEl_||this.el_},vjs.Component.prototype.id_,vjs.Component.prototype.id=function(){return this.id_},vjs.Component.prototype.name_,vjs.Component.prototype.name=function(){return this.name_},vjs.Component.prototype.children_,vjs.Component.prototype.children=function(){return this.children_},vjs.Component.prototype.childIndex_,vjs.Component.prototype.getChildById=function(e){return this.childIndex_[e]},vjs.Component.prototype.childNameIndex_,vjs.Component.prototype.getChild=function(e){return this.childNameIndex_[e]},vjs.Component.prototype.addChild=function(e,t){var n,i,o;return"string"==typeof e?(o=e,t=t||{},i=t.componentClass||vjs.capitalize(o),t.name=o,n=new window.videojs_apn[i](this.player_||this,t)):n=e,this.children_.push(n),"function"==typeof n.id&&(this.childIndex_[n.id()]=n),o=o||n.name&&n.name(),o&&(this.childNameIndex_[o]=n),"function"==typeof n.el&&n.el()&&this.contentEl().appendChild(n.el()),n},vjs.Component.prototype.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){this.childIndex_[e.id()]=null,this.childNameIndex_[e.name()]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},vjs.Component.prototype.initChildren=function(){var e,t,n,i,o,r,a;if(e=this,t=e.options(),n=t.children)if(a=function(n,i){void 0!==t[n]&&(i=t[n]),i!==!1&&(e[n]=e.addChild(n,i))},vjs.obj.isArray(n))for(var s=0;s0){for(var t=0,n=e.length;t1?i=!1:t&&(r=e.touches[0].pageX-t.pageX,a=e.touches[0].pageY-t.pageY,s=Math.sqrt(r*r+a*a),s>l&&(i=!1))}),o=function(){i=!1},this.on("touchleave",o),this.on("touchcancel",o),this.on("touchend",function(o){t=null,i===!0&&(n=(new Date).getTime()-e,n'+this.defaultValue+""},t),vjs.Component.prototype.createEl.call(this,"div",t)},vjs.Menu=vjs.Component.extend(),vjs.Menu.prototype.addItem=function(e){this.addChild(e),e.on("click",vjs.bind(this,function(){this.unlockShowing()}))},vjs.Menu.prototype.createEl=function(){var e=this.options().contentElType||"ul";this.contentEl_=vjs.createEl(e,{className:"vjs-menu-content"});var t=vjs.Component.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),vjs.on(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t},vjs.MenuItem=vjs.Button.extend({init:function(e,t){vjs.Button.call(this,e,t),this.selected(t.selected)}}),vjs.MenuItem.prototype.createEl=function(e,t){return vjs.Button.prototype.createEl.call(this,"li",vjs.obj.merge({className:"vjs-menu-item",innerHTML:this.localize(this.options_.label)},t))},vjs.MenuItem.prototype.onClick=function(){this.selected(!0)},vjs.MenuItem.prototype.selected=function(e){e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-selected",!0)):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-selected",!1))},vjs.MenuButton=vjs.Button.extend({init:function(e,t){vjs.Button.call(this,e,t),this.update(),this.on("keydown",this.onKeyPress),this.el_.setAttribute("aria-haspopup",!0),this.el_.setAttribute("role","button")}}),vjs.MenuButton.prototype.update=function(){var e=this.createMenu();this.menu&&this.removeChild(this.menu),this.menu=e,this.addChild(e),this.items&&0===this.items.length?this.hide():this.items&&this.items.length>1&&this.show()},vjs.MenuButton.prototype.buttonPressed_=!1,vjs.MenuButton.prototype.createMenu=function(){var e=new vjs.Menu(this.player_);if(this.options().title&&e.contentEl().appendChild(vjs.createEl("li",{className:"vjs-menu-title",innerHTML:vjs.capitalize(this.options().title),tabindex:-1})),this.items=this.createItems(),this.items)for(var t=0;t0&&this.items[0].el().focus()},vjs.MenuButton.prototype.unpressButton=function(){this.buttonPressed_=!1,this.menu.unlockShowing(),this.el_.setAttribute("aria-pressed",!1)},vjs.MediaError=function(e){"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:"object"==typeof e&&vjs.obj.merge(this,e),this.message||(this.message="")},vjs.MediaError.prototype.code=0,vjs.MediaError.prototype.message="",vjs.MediaError.prototype.status=null,vjs.MediaError.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],vjs.MediaError.defaultMessages={1:"You aborted the video playback",2:"A network error caused the video download to fail part-way.",3:"The video playback was aborted due to a corruption problem or because the video used features your browser did not support.",4:"The video could not be loaded, either because the server or network failed or because the format is not supported.",5:"The video is encrypted and we do not have the keys to decrypt it."};for(var errNum=0;errNum9},vjs.Player.prototype.languages_,vjs.Player.prototype.languages=function(){return this.languages_},vjs.Player.prototype.options_=vjs.options,vjs.Player.prototype.dispose=function(){this.trigger("dispose"),this.off("dispose"),vjs.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech&&this.tech.dispose(),vjs.Component.prototype.dispose.call(this)},vjs.Player.prototype.getTagSettings=function(e){var t,n,i={sources:[],tracks:[]};if(t=vjs.getElementAttributes(e),n=t["data-setup"],null!==n&&vjs.obj.merge(t,vjs.JSON.parse(n||"{}")),vjs.obj.merge(i,t),e.hasChildNodes()){var o,r,a,s,l;for(o=e.childNodes,s=0,l=o.length;s0&&(i.startTime=this.cache_.currentTime),this.cache_.src=t.src),this.tech=new window.videojs_apn[e](this,i),this.tech.ready(n)},vjs.Player.prototype.unloadTech=function(){this.isReady_=!1,this.tech.dispose(),this.tech=!1},vjs.Player.prototype.onLoadStart=function(){this.removeClass("vjs-ended"),this.error(null),this.paused()?this.hasStarted(!1):this.trigger("firstplay")},vjs.Player.prototype.hasStarted_=!1,vjs.Player.prototype.hasStarted=function(e){return void 0!==e?(this.hasStarted_!==e&&(this.hasStarted_=e,e?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started")),this):this.hasStarted_},vjs.Player.prototype.onLoadedMetaData,vjs.Player.prototype.onLoadedData,vjs.Player.prototype.onLoadedAllData,vjs.Player.prototype.onPlay=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0)},vjs.Player.prototype.onWaiting=function(){this.addClass("vjs-waiting")},vjs.Player.prototype.onWaitEnd=function(){this.removeClass("vjs-waiting")},vjs.Player.prototype.onSeeking=function(){this.addClass("vjs-seeking")},vjs.Player.prototype.onSeeked=function(){this.removeClass("vjs-seeking")},vjs.Player.prototype.onFirstPlay=function(){this.options_.starttime&&this.currentTime(this.options_.starttime),this.addClass("vjs-has-started")},vjs.Player.prototype.onPause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused")},vjs.Player.prototype.onTimeUpdate,vjs.Player.prototype.onProgress=function(){1==this.bufferedPercent()&&this.trigger("loadedalldata")},vjs.Player.prototype.onEnded=function(){this.addClass("vjs-ended"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause()},vjs.Player.prototype.onDurationChange=function(){var e=this.techGet("duration");e&&(e<0&&(e=1/0),this.duration(e),e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"))},vjs.Player.prototype.onVolumeChange,vjs.Player.prototype.onFullscreenChange=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},vjs.Player.prototype.onError,vjs.Player.prototype.cache_,vjs.Player.prototype.getCache=function(){return this.cache_},vjs.Player.prototype.techCall=function(e,t){if(this.tech&&!this.tech.isReady_)this.tech.ready(function(){this[e](t)});else try{this.tech[e](t)}catch(n){throw vjs.log(n),n}},vjs.Player.prototype.techGet=function(e){if(this.tech&&this.tech.isReady_)try{return this.tech[e]()}catch(t){throw void 0===this.tech[e]?vjs.log("Video.js: "+e+" method not defined for "+this.techName+" playback technology.",t):"TypeError"==t.name?(vjs.log("Video.js: "+e+" unavailable on "+this.techName+" playback technology element.",t),this.tech.isReady_=!1):vjs.log(t),t}},vjs.Player.prototype.play=function(){return this.techCall("play"),this},vjs.Player.prototype.pause=function(){return this.techCall("pause"),this.trigger("apn-vpaid-pause"),this},vjs.Player.prototype.paused=function(){return this.techGet("paused")!==!1},vjs.Player.prototype.currentTime=function(e){return void 0!==e?(this.techCall("setCurrentTime",e),this):this.cache_.currentTime=this.techGet("currentTime")||0},vjs.Player.prototype.duration=function(e){return void 0!==e?(this.cache_.duration=parseFloat(e),this):(void 0===this.cache_.duration&&this.onDurationChange(),this.cache_.duration||0)},vjs.Player.prototype.remainingTime=function(){return this.duration()-this.currentTime()},vjs.Player.prototype.buffered=function(){var e=this.techGet("buffered");return e&&e.length||(e=vjs.createTimeRange(0,0)),e},vjs.Player.prototype.bufferedPercent=function(){var e,t,n=this.duration(),i=this.buffered(),o=0;if(!n)return 0;for(var r=0;rn&&(t=n),o+=t-e;return o/n},vjs.Player.prototype.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},vjs.Player.prototype.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall("setVolume",t),vjs.setLocalStorage("volume",t),this):(t=parseFloat(this.techGet("volume")),isNaN(t)?1:t)},vjs.Player.prototype.muted=function(e){if(void 0!==e){var t=vjs.IS_IOS&&this.options_.enableInlineVideoForIos;return t||this.techCall("setMuted",e),this}return this.techGet("muted")||!1},vjs.Player.prototype.supportsFullScreen=function(){return this.techGet("supportsFullScreen")||!1},vjs.Player.prototype.isFullscreen_=!1,vjs.Player.prototype.isFullscreen=function(e){return void 0!==e?(this.isFullscreen_=!!e,this):this.isFullscreen_},vjs.Player.prototype.isFullScreen=function(e){return vjs.log.warn('player.isFullScreen() has been deprecated, use player.isFullscreen() with a lowercase "s")'),this.isFullscreen(e)},vjs.Player.prototype.requestFullscreen=function(){var e=vjs.browser.fullscreenAPI;return this.isFullscreen(!0),e?(vjs.on(document,e.fullscreenchange,vjs.bind(this,function(t){this.isFullscreen(document[e.fullscreenElement]),this.isFullscreen()===!1&&vjs.off(document,e.fullscreenchange,arguments.callee)})),this.el_[e.requestFullscreen](),this.trigger("fullscreenchange")):this.tech.supportsFullScreen()?(this.enterFullWindow(),this.trigger("fullscreenchange")):(this.enterFullWindow(),this.trigger("fullscreenchange")),this},vjs.Player.prototype.requestFullScreen=function(){return vjs.log.warn('player.requestFullScreen() has been deprecated, use player.requestFullscreen() with a lowercase "s")'),this.requestFullscreen()},vjs.Player.prototype.exitFullscreen=function(){var e=vjs.browser.fullscreenAPI;return this.isFullscreen(!1),e?(document[e.exitFullscreen](),this.trigger("fullscreenchange")):this.tech.supportsFullScreen()?(this.exitFullWindow(),this.trigger("fullscreenchange")):(this.exitFullWindow(),this.push("fullscreenchange")),this},vjs.Player.prototype.cancelFullScreen=function(){return vjs.log.warn("player.cancelFullScreen() has been deprecated, use player.exitFullscreen()"),this.exitFullscreen()},vjs.Player.prototype.enterFullWindow=function(){this.isFullWindow=!0,this.docOrigOverflow=document.documentElement.style.overflow,vjs.on(document,"keydown",vjs.bind(this,this.fullWindowOnEscKey)),document.documentElement.style.overflow="hidden",vjs.addClass(document.body,"vjs-full-window"),this.trigger("enterFullWindow")},vjs.Player.prototype.fullWindowOnEscKey=function(e){27===e.keyCode&&(this.isFullscreen()===!0?this.exitFullscreen():this.exitFullWindow())},vjs.Player.prototype.exitFullWindow=function(){this.isFullWindow=!1,vjs.off(document,"keydown",this.fullWindowOnEscKey),document.documentElement.style.overflow=this.docOrigOverflow,vjs.removeClass(document.body,"vjs-full-window"),this.trigger("exitFullWindow")},vjs.Player.prototype.selectSource=function(e){for(var t=0,n=this.options_.techOrder;t=0||(console.log("active:onmouseout:initialize"),s=void 0,l=void 0)},n=function(){e(),this.clearInterval(i),i=this.setInterval(e,250)},o=function(t){e(),this.clearInterval(i)},this.on("mousedown",n),this.on("mousemove",t),this.on("mouseup",o),this.on("mouseover",d),this.on("mouseout",c),this.on("keydown",e),this.on("keyup",e),r=this.setInterval(function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options().inactivityTimeout;e>0&&(a=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))}},250)},vjs.Player.prototype.playbackRate=function(e){return void 0!==e?(this.techCall("setPlaybackRate",e),this):this.tech&&this.tech.featuresPlaybackRate?this.techGet("playbackRate"):1},vjs.Player.prototype.isAudio_=!1,vjs.Player.prototype.isAudio=function(e){return void 0!==e?(this.isAudio_=!!e,this):this.isAudio_},vjs.Player.prototype.networkState=function(){return this.techGet("networkState")},vjs.Player.prototype.readyState=function(){return this.techGet("readyState")},vjs.Player.prototype.textTracks=function(){return this.tech&&this.tech.textTracks()},vjs.Player.prototype.remoteTextTracks=function(){return this.tech&&this.tech.remoteTextTracks()},vjs.Player.prototype.addTextTrack=function(e,t,n){return this.tech&&this.tech.addTextTrack(e,t,n)},vjs.Player.prototype.addRemoteTextTrack=function(e){return this.tech&&this.tech.addRemoteTextTrack(e)},vjs.Player.prototype.removeRemoteTextTrack=function(e){this.tech&&this.tech.removeRemoteTextTrack(e)},vjs.ControlBar=vjs.Component.extend(),vjs.ControlBar.prototype.options_={loadEvent:"play",children:{playToggle:{},currentTimeDisplay:{},timeDivider:{},durationDisplay:{},remainingTimeDisplay:{},progressControl:{},fullscreenToggle:{},volumeControl:{},muteToggle:{},playbackRateMenuButton:{}}},vjs.ControlBar.prototype.createEl=function(){return vjs.createEl("div",{className:"vjs-control-bar"})},vjs.LiveDisplay=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t)}}),vjs.LiveDisplay.prototype.createEl=function(){var e=vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-live-controls vjs-control"});return this.contentEl_=vjs.createEl("div",{className:"vjs-live-display",innerHTML:''+this.localize("Stream Type")+""+this.localize("LIVE"),"aria-live":"off"}),e.appendChild(this.contentEl_),e},vjs.PlayToggle=vjs.Button.extend({init:function(e,t){vjs.Button.call(this,e,t),this.on(e,"play",this.onPlay),this.on(e,"pause",this.onPause)}}),vjs.PlayToggle.prototype.buttonText="Play",vjs.PlayToggle.prototype.buildCSSClass=function(){return"vjs-play-control "+vjs.Button.prototype.buildCSSClass.call(this)},vjs.PlayToggle.prototype.onClick=function(){},vjs.PlayToggle.prototype.onPlay=function(){this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.el_.children[0].children[0].innerHTML=this.localize("Pause")},vjs.PlayToggle.prototype.onPause=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.el_.children[0].children[0].innerHTML=this.localize("Play")},vjs.CurrentTimeDisplay=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.on(e,"timeupdate",this.updateContent)}}),vjs.CurrentTimeDisplay.prototype.createEl=function(){var e=vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-current-time vjs-time-controls vjs-control"});return this.contentEl_=vjs.createEl("div",{className:"vjs-current-time-display",innerHTML:'Current Time 0:00',"aria-live":"off"}),e.appendChild(this.contentEl_),e},vjs.CurrentTimeDisplay.prototype.updateContent=function(){var e=this.player_.scrubbing?this.player_.getCache().currentTime:this.player_.currentTime();this.contentEl_.innerHTML=''+this.localize("Current Time")+" "+vjs.formatTime(e,this.player_.duration())},vjs.DurationDisplay=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.on(e,"timeupdate",this.updateContent),this.on(e,"loadedmetadata",this.updateContent)}}),vjs.DurationDisplay.prototype.createEl=function(){var e=vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-duration vjs-time-controls vjs-control"});return this.contentEl_=vjs.createEl("div",{className:"vjs-duration-display",innerHTML:''+this.localize("Duration Time")+" 0:00","aria-live":"off"}),e.appendChild(this.contentEl_),e},vjs.DurationDisplay.prototype.updateContent=function(){var e=this.player_.duration();e&&(this.contentEl_.innerHTML=''+this.localize("Duration Time")+" "+vjs.formatTime(e))},vjs.TimeDivider=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t)}}),vjs.TimeDivider.prototype.createEl=function(){return vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-time-divider",innerHTML:"
/
"})},vjs.RemainingTimeDisplay=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.on(e,"timeupdate",this.updateContent)}}),vjs.RemainingTimeDisplay.prototype.createEl=function(){var e=vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-remaining-time vjs-time-controls vjs-control"});return this.contentEl_=vjs.createEl("div",{className:"vjs-remaining-time-display",innerHTML:''+this.localize("Remaining Time")+" -0:00","aria-live":"off"}),e.appendChild(this.contentEl_),e},vjs.RemainingTimeDisplay.prototype.updateContent=function(){this.player_.duration()&&(this.contentEl_.innerHTML=''+this.localize("Remaining Time")+" -"+vjs.formatTime(this.player_.remainingTime()))},vjs.FullscreenToggle=vjs.Button.extend({init:function(e,t){vjs.Button.call(this,e,t)}}),vjs.FullscreenToggle.prototype.buttonText="Fullscreen",vjs.FullscreenToggle.prototype.buildCSSClass=function(){return"vjs-fullscreen-control "+vjs.Button.prototype.buildCSSClass.call(this)},vjs.FullscreenToggle.prototype.onClick=function(){this.player_.isFullscreen()?(this.player_.exitFullscreen(),this.controlText_.innerHTML=this.localize("Fullscreen")):(this.player_.requestFullscreen(),this.controlText_.innerHTML=this.localize("Non-Fullscreen"))},vjs.ProgressControl=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t)}}),vjs.ProgressControl.prototype.options_={children:{seekBar:{}}},vjs.ProgressControl.prototype.createEl=function(){return vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},vjs.SeekBar=vjs.Slider.extend({init:function(e,t){vjs.Slider.call(this,e,t),this.on(e,"timeupdate",this.updateARIAAttributes),e.ready(vjs.bind(this,this.updateARIAAttributes))}}),vjs.SeekBar.prototype.options_={children:{loadProgressBar:{},playProgressBar:{},seekHandle:{}},barName:"playProgressBar",handleName:"seekHandle"},vjs.SeekBar.prototype.playerEvent="timeupdate",vjs.SeekBar.prototype.createEl=function(){return vjs.Slider.prototype.createEl.call(this,"div",{className:"vjs-progress-holder","aria-label":"video progress bar"})},vjs.SeekBar.prototype.updateARIAAttributes=function(){var e=this.player_.scrubbing?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.setAttribute("aria-valuenow",vjs.round(100*this.getPercent(),2)),this.el_.setAttribute("aria-valuetext",vjs.formatTime(e,this.player_.duration()))},vjs.SeekBar.prototype.getPercent=function(){return this.player_.currentTime()/this.player_.duration()},vjs.LoadProgressBar=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.on(e,"progress",this.update)}}),vjs.LoadProgressBar.prototype.createEl=function(){return vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-load-progress",innerHTML:''+this.localize("Loaded")+": 0%"})},vjs.LoadProgressBar.prototype.update=function(){var e,t,n,i,o=this.player_.buffered(),r=this.player_.duration(),a=this.player_.bufferedEnd(),s=this.el_.children,l=function(e,t){var n=e/t||0;return 100*n+"%"};for(this.el_.style.width=l(a,r),e=0;eo.length;e--)this.el_.removeChild(s[e-1])},vjs.PlayProgressBar=vjs.Component.extend({ init:function(e,t){vjs.Component.call(this,e,t)}}),vjs.PlayProgressBar.prototype.createEl=function(){return vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-play-progress",innerHTML:''+this.localize("Progress")+": 0%"})},vjs.SeekHandle=vjs.SliderHandle.extend({init:function(e,t){vjs.SliderHandle.call(this,e,t),this.on(e,"timeupdate",this.updateContent)}}),vjs.SeekHandle.prototype.defaultValue="00:00",vjs.SeekHandle.prototype.createEl=function(){return vjs.SliderHandle.prototype.createEl.call(this,"div",{className:"vjs-seek-handle","aria-live":"off"})},vjs.SeekHandle.prototype.updateContent=function(){var e=this.player_.scrubbing?this.player_.getCache().currentTime:this.player_.currentTime();this.el_.innerHTML=''+vjs.formatTime(e,this.player_.duration())+""},vjs.VolumeControl=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),e.tech&&e.tech.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(e,"loadstart",function(){e.tech.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")})}}),vjs.VolumeControl.prototype.options_={children:{volumeBar:{}}},vjs.VolumeControl.prototype.createEl=function(){return vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control"})},vjs.VolumeBar=vjs.Slider.extend({init:function(e,t){vjs.Slider.call(this,e,t),this.on(e,"volumechange",this.updateARIAAttributes),e.ready(vjs.bind(this,this.updateARIAAttributes))}}),vjs.VolumeBar.prototype.updateARIAAttributes=function(){this.el_.setAttribute("aria-valuenow",vjs.round(100*this.player_.volume(),2)),this.el_.setAttribute("aria-valuetext",vjs.round(100*this.player_.volume(),2)+"%")},vjs.VolumeBar.prototype.options_={children:{volumeLevel:{},volumeHandle:{}},barName:"volumeLevel",handleName:"volumeHandle"},vjs.VolumeBar.prototype.playerEvent="volumechange",vjs.VolumeBar.prototype.createEl=function(){return vjs.Slider.prototype.createEl.call(this,"div",{className:"vjs-volume-bar","aria-label":"volume level"})},vjs.VolumeBar.prototype.onMouseMove=function(e){if(this.player_.muted(),global_options.hasOwnProperty("overlayPlayer"))e.srcElement&&"VIDEO"!=e.srcElement.tagName&&e.srcElement.className.indexOf("vjs")>=0?"VIDEO"!=e.srcElement.tagName&&e.srcElement.className&&e.srcElement.className.indexOf("vjs")>=0&&this.player_.volume(this.calculateDistance(e)):e.currentTarget&&"VIDEO"!=e.currentTarget.tagName&&e.currentTarget.className&&e.currentTarget.className.indexOf("vjs")>=0&&this.player_.volume(this.calculateDistance(e));else{var t=document.getElementById(global_options.iframeVideoWrapperId).contentWindow.document,n=t.elementFromPoint(e.clientX,e.clientY);n&&"VIDEO"!=n.tagName&&n.className.indexOf("vjs")>=0&&this.player_.volume(this.calculateDistance(e))}},vjs.VolumeBar.prototype.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},vjs.VolumeBar.prototype.stepForward=function(){this.player_.volume(this.player_.volume()+.1)},vjs.VolumeBar.prototype.stepBack=function(){this.player_.volume(this.player_.volume()-.1)},vjs.VolumeLevel=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t)}}),vjs.VolumeLevel.prototype.createEl=function(){return vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-volume-level",innerHTML:''})},vjs.VolumeHandle=vjs.SliderHandle.extend(),vjs.VolumeHandle.prototype.defaultValue="00:00",vjs.VolumeHandle.prototype.createEl=function(){return vjs.SliderHandle.prototype.createEl.call(this,"div",{className:"vjs-volume-handle"})},vjs.MuteToggle=vjs.Button.extend({init:function(e,t){vjs.Button.call(this,e,t),this.on(e,"volumechange",this.update);var n=e.getMuteSettingsForIOS10();e.tech&&e.tech.featuresVolumeControl===!1&&!n&&this.addClass("vjs-hidden"),this.on(e,"loadstart",function(){e.tech.featuresVolumeControl!==!1||n?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")})}}),vjs.MuteToggle.prototype.createEl=function(){return vjs.Button.prototype.createEl.call(this,"div",{className:"vjs-mute-control vjs-control",innerHTML:'
'+this.localize("Mute")+"
"})},vjs.MuteToggle.prototype.onClick=function(){if(this.player_.muted()){var e=this.player_.volume();0===e&&(e=.5,this.player_.volume(e))}this.player_.muted(!this.player_.muted())},vjs.MuteToggle.prototype.update=function(){var e=this.player_.volume(),t=3;if(0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2),this.el_){this.player_.muted()?this.el_.children[0].children[0].innerHTML!=this.localize("Unmute")&&(this.el_.children[0].children[0].innerHTML=this.localize("Unmute")):this.el_.children[0].children[0].innerHTML!=this.localize("Mute")&&(this.el_.children[0].children[0].innerHTML=this.localize("Mute"));for(var n=0;n<4;n++)vjs.removeClass(this.el_,"vjs-vol-"+n);vjs.addClass(this.el_,"vjs-vol-"+t)}},vjs.VolumeMenuButton=vjs.MenuButton.extend({init:function(e,t){vjs.MenuButton.call(this,e,t),this.on(e,"volumechange",this.volumeUpdate),e.tech&&e.tech.featuresVolumeControl===!1&&this.addClass("vjs-hidden"),this.on(e,"loadstart",function(){e.tech.featuresVolumeControl===!1?this.addClass("vjs-hidden"):this.removeClass("vjs-hidden")}),this.addClass("vjs-menu-button")}}),vjs.VolumeMenuButton.prototype.createMenu=function(){var e=new vjs.Menu(this.player_,{contentElType:"div"}),t=new vjs.VolumeBar(this.player_,this.options_.volumeBar);return t.on("focus",function(){e.lockShowing()}),t.on("blur",function(){e.unlockShowing()}),e.addChild(t),e},vjs.VolumeMenuButton.prototype.onClick=function(){vjs.MuteToggle.prototype.onClick.call(this),vjs.MenuButton.prototype.onClick.call(this)},vjs.VolumeMenuButton.prototype.createEl=function(){return vjs.Button.prototype.createEl.call(this,"div",{className:"vjs-volume-menu-button vjs-menu-button vjs-control",innerHTML:'
'+this.localize("Mute")+"
"})},vjs.VolumeMenuButton.prototype.volumeUpdate=vjs.MuteToggle.prototype.update,vjs.PlaybackRateMenuButton=vjs.MenuButton.extend({init:function(e,t){vjs.MenuButton.call(this,e,t),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",this.updateVisibility),this.on(e,"ratechange",this.updateLabel)}}),vjs.PlaybackRateMenuButton.prototype.buttonText="Playback Rate",vjs.PlaybackRateMenuButton.prototype.className="vjs-playback-rate",vjs.PlaybackRateMenuButton.prototype.createEl=function(){var e=vjs.MenuButton.prototype.createEl.call(this);return this.labelEl_=vjs.createEl("div",{className:"vjs-playback-rate-value",innerHTML:1}),e.appendChild(this.labelEl_),e},vjs.PlaybackRateMenuButton.prototype.createMenu=function(){var e=new vjs.Menu(this.player()),t=this.player().options().playbackRates;if(t)for(var n=t.length-1;n>=0;n--)e.addChild(new vjs.PlaybackRateMenuItem(this.player(),{rate:t[n]+"x"}));return e},vjs.PlaybackRateMenuButton.prototype.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},vjs.PlaybackRateMenuButton.prototype.onClick=function(){for(var e=this.player().playbackRate(),t=this.player().options().playbackRates,n=t[0],i=0;ie){n=t[i];break}this.player().playbackRate(n)},vjs.PlaybackRateMenuButton.prototype.playbackRateSupported=function(){return this.player().tech&&this.player().tech.featuresPlaybackRate&&this.player().options().playbackRates&&this.player().options().playbackRates.length>0},vjs.PlaybackRateMenuButton.prototype.updateVisibility=function(){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},vjs.PlaybackRateMenuButton.prototype.updateLabel=function(){this.playbackRateSupported()&&(this.labelEl_.innerHTML=this.player().playbackRate()+"x")},vjs.PlaybackRateMenuItem=vjs.MenuItem.extend({contentElType:"button",init:function(e,t){var n=this.label=t.rate,i=this.rate=parseFloat(n,10);t.label=n,t.selected=1===i,vjs.MenuItem.call(this,e,t),this.on(e,"ratechange",this.update)}}),vjs.PlaybackRateMenuItem.prototype.onClick=function(){vjs.MenuItem.prototype.onClick.call(this),this.player().playbackRate(this.rate)},vjs.PlaybackRateMenuItem.prototype.update=function(){this.selected(this.player().playbackRate()==this.rate)},vjs.PosterImage=vjs.Button.extend({init:function(e,t){vjs.Button.call(this,e,t),this.update(),e.on("posterchange",vjs.bind(this,this.update))}}),vjs.PosterImage.prototype.dispose=function(){this.player().off("posterchange",this.update),vjs.Button.prototype.dispose.call(this)},vjs.PosterImage.prototype.createEl=function(){var e=vjs.createEl("div",{className:"vjs-poster",tabIndex:-1});return vjs.BACKGROUND_SIZE_SUPPORTED||(this.fallbackImg_=vjs.createEl("img"),e.appendChild(this.fallbackImg_)),e},vjs.PosterImage.prototype.update=function(){var e=this.player().poster();this.setSrc(e),e?this.show():this.hide()},vjs.PosterImage.prototype.setSrc=function(e){var t;this.fallbackImg_?this.fallbackImg_.src=e:(t="",e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t)},vjs.PosterImage.prototype.onClick=function(){this.player_.play()},vjs.LoadingSpinner=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t)}}),vjs.LoadingSpinner.prototype.createEl=function(){return vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner"})},vjs.BigPlayButton=vjs.Button.extend(),vjs.BigPlayButton.prototype.createEl=function(){return vjs.Button.prototype.createEl.call(this,"div",{className:"vjs-big-play-button",innerHTML:'',"aria-label":"play video"})},vjs.BigPlayButton.prototype.onClick=function(){},vjs.ErrorDisplay=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.update(),this.on(e,"error",this.update)}}),vjs.ErrorDisplay.prototype.createEl=function(){var e=vjs.Component.prototype.createEl.call(this,"div",{});return this.contentEl_=vjs.createEl("div"),e.appendChild(this.contentEl_),e},vjs.ErrorDisplay.prototype.update=function(){this.player().error()&&(this.contentEl_.innerHTML=this.localize(this.player().error().message))},function(){var e;vjs.MediaTechController=vjs.Component.extend({init:function(e,t,n){t=t||{},t.reportTouchActivity=!1,vjs.Component.call(this,e,t,n),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),this.initControlsListeners(),this.initTextTrackListeners()}}),vjs.MediaTechController.prototype.initControlsListeners=function(){var e,t;e=this.player(),t=function(){e.controls()&&!e.usingNativeControls()&&this.addControlsListeners()},this.ready(t),this.on(e,"controlsenabled",t),this.on(e,"controlsdisabled",this.removeControlsListeners),this.ready(function(){this.networkState&&this.networkState()>0&&this.player().trigger("loadstart")})},vjs.MediaTechController.prototype.addControlsListeners=function(){var e;this.on("mousedown",this.onClick),this.on("touchstart",function(t){e=this.player_.userActive()}),this.on("touchmove",function(t){e&&this.player().reportUserActivity()}),this.on("touchend",function(e){e.preventDefault()}),this.emitTapEvents(),this.on("tap",this.onTap)},vjs.MediaTechController.prototype.removeControlsListeners=function(){this.off("tap"),this.off("touchstart"),this.off("touchmove"),this.off("touchleave"),this.off("touchcancel"),this.off("touchend"),this.off("click"),this.off("mousedown")},vjs.MediaTechController.prototype.onClick=function(e){0===e.button&&this.player().controls()&&(this.player().paused()?this.player().play():this.player().pause())},vjs.MediaTechController.prototype.onTap=function(){this.player().userActive(!this.player().userActive())},vjs.MediaTechController.prototype.manualProgressOn=function(){this.manualProgress=!0,this.trackProgress()},vjs.MediaTechController.prototype.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress()},vjs.MediaTechController.prototype.trackProgress=function(){this.progressInterval=this.setInterval(function(){var e=this.player().bufferedPercent();this.bufferedPercent_!=e&&this.player().trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()},500)},vjs.MediaTechController.prototype.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},vjs.MediaTechController.prototype.manualTimeUpdatesOn=function(){var e=this.player_;this.manualTimeUpdates=!0,this.on(e,"play",this.trackCurrentTime),this.on(e,"pause",this.stopTrackingCurrentTime),this.one("timeupdate",function(){this.featuresTimeupdateEvents=!0,this.manualTimeUpdatesOff()})},vjs.MediaTechController.prototype.manualTimeUpdatesOff=function(){var e=this.player_;this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off(e,"play",this.trackCurrentTime),this.off(e,"pause",this.stopTrackingCurrentTime)},vjs.MediaTechController.prototype.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.player().trigger("timeupdate")},250)},vjs.MediaTechController.prototype.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.player().trigger("timeupdate")},vjs.MediaTechController.prototype.dispose=function(){this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),vjs.Component.prototype.dispose.call(this)},vjs.MediaTechController.prototype.setCurrentTime=function(){this.manualTimeUpdates&&this.player().trigger("timeupdate")},vjs.MediaTechController.prototype.initTextTrackListeners=function(){var e,t=this.player_,n=function(){var e=t.getChild("textTrackDisplay");e&&e.updateDisplay()};e=this.textTracks(),e&&(e.addEventListener("removetrack",n),e.addEventListener("addtrack",n),this.on("dispose",vjs.bind(this,function(){e.removeEventListener("removetrack",n),e.removeEventListener("addtrack",n)})))},vjs.MediaTechController.prototype.emulateTextTracks=function(){var e,t,n=this.player_;!window.WebVTT,t=this.textTracks(),t&&(e=function(){var e,t,i;for(i=n.getChild("textTrackDisplay"),i.updateDisplay(),e=0;e=0;n--){var l=s[n],d={};"undefined"!=typeof r.options_[l]&&(d[l]=r.options_[l]),vjs.setElementAttributes(a,d)}return r.options_.enableNativeInline&&(a.setAttribute("playsinline",""),a.setAttribute("webkit-playsinline","")),a},vjs.Html5.prototype.hideCaptions=function(){for(var e,t=this.el_.querySelectorAll("track"),n=t.length,i={captions:1,subtitles:1};n--;)e=t[n].track,e&&e.kind in i&&!t[n]["default"]&&(e.mode="disabled")},vjs.Html5.prototype.setupTriggers=function(){for(var e=vjs.Html5.Events.length-1;e>=0;e--)this.on(vjs.Html5.Events[e],this.eventHandler)},vjs.Html5.prototype.eventHandler=function(e){"error"==e.type&&this.error()?this.player().error(this.error().code):(e.bubbles=!1,this.player().trigger(e))},vjs.Html5.prototype.useNativeControls=function(){var e,t,n,i,o;e=this,t=this.player(),e.setControls(t.controls()),n=function(){e.setControls(!0)},i=function(){e.setControls(!1)},t.on("controlsenabled",n),t.on("controlsdisabled",i),o=function(){t.off("controlsenabled",n),t.off("controlsdisabled",i)},e.on("dispose",o),t.on("usingcustomcontrols",o),t.usingNativeControls(!0)},vjs.Html5.prototype.play=function(){this.el_.play()},vjs.Html5.prototype.pause=function(){this.el_.pause()},vjs.Html5.prototype.paused=function(){return this.el_.paused},vjs.Html5.prototype.currentTime=function(){return this.el_.currentTime||this.el_.currentTimeForOutstream||0},vjs.Html5.prototype.setCurrentTime=function(e){try{this.el_.currentTimeForOutstream=e,this.el_.currentTime=e}catch(t){vjs.log(t,"Video is not ready. (Video.js)")}},vjs.Html5.prototype.duration=function(){return this.el_.duration||0},vjs.Html5.prototype.buffered=function(){return this.el_.buffered},vjs.Html5.prototype.volume=function(){return this.el_.volume},vjs.Html5.prototype.setVolume=function(e){this.el_.volume=e},vjs.Html5.prototype.muted=function(){return this.el_.muted},vjs.Html5.prototype.setMuted=function(e){this.el_.muted=e},vjs.Html5.prototype.width=function(){return this.el_.offsetWidth},vjs.Html5.prototype.height=function(){return this.el_.offsetHeight},vjs.Html5.prototype.supportsFullScreen=function(){return!("function"!=typeof this.el_.webkitEnterFullScreen||!/Android/.test(vjs.USER_AGENT)&&/Chrome|Mac OS X 10.5/.test(vjs.USER_AGENT))},vjs.Html5.prototype.enterFullScreen=function(){var e=this.el_;"webkitDisplayingFullscreen"in e&&this.one("webkitbeginfullscreen",function(){this.player_.isFullscreen(!0),this.one("webkitendfullscreen",function(){this.player_.isFullscreen(!1),this.player_.trigger("fullscreenchange")}),this.player_.trigger("fullscreenchange")}),e.paused&&e.networkState<=e.HAVE_METADATA?(this.el_.play(),this.setTimeout(function(){e.pause(),e.webkitEnterFullScreen()},0)):e.webkitEnterFullScreen()},vjs.Html5.prototype.exitFullScreen=function(){this.el_.webkitExitFullScreen()},vjs.Html5.prototype.returnOriginalIfBlobURI_=function(e,t){var n=/^blob\:/i;return t&&e&&n.test(e)?t:e},vjs.Html5.prototype.src=function(e){var t=this.el_.src;return void 0===e?this.returnOriginalIfBlobURI_(t,this.source_):void this.setSrc(e)},vjs.Html5.prototype.setSrc=function(e){this.el_.src=e},vjs.Html5.prototype.load=function(){this.el_.load()},vjs.Html5.prototype.currentSrc=function(){var e=this.el_.currentSrc;return this.currentSource_?this.returnOriginalIfBlobURI_(e,this.currentSource_.src):e},vjs.Html5.prototype.poster=function(){return this.el_.poster},vjs.Html5.prototype.setPoster=function(e){this.el_.poster=e},vjs.Html5.prototype.preload=function(){return this.el_.preload},vjs.Html5.prototype.setPreload=function(e){this.el_.preload=e},vjs.Html5.prototype.autoplay=function(){return this.el_.autoplay},vjs.Html5.prototype.setAutoplay=function(e){this.el_.autoplay=e},vjs.Html5.prototype.controls=function(){return this.el_.controls},vjs.Html5.prototype.setControls=function(e){this.el_.controls=!!e},vjs.Html5.prototype.loop=function(){return this.el_.loop},vjs.Html5.prototype.setLoop=function(e){this.el_.loop=e},vjs.Html5.prototype.error=function(){return this.el_.error},vjs.Html5.prototype.seeking=function(){return this.el_.seeking},vjs.Html5.prototype.seekable=function(){return this.el_.seekable},vjs.Html5.prototype.ended=function(){return this.el_.ended},vjs.Html5.prototype.defaultMuted=function(){return this.el_.defaultMuted},vjs.Html5.prototype.playbackRate=function(){return this.el_.playbackRate},vjs.Html5.prototype.setPlaybackRate=function(e){this.el_.playbackRate=e},vjs.Html5.prototype.networkState=function(){return this.el_.networkState},vjs.Html5.prototype.readyState=function(){return this.el_.readyState},vjs.Html5.prototype.textTracks=function(){return this.featuresNativeTextTracks?this.el_.textTracks:vjs.MediaTechController.prototype.textTracks.call(this)},vjs.Html5.prototype.addTextTrack=function(e,t,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,n):vjs.MediaTechController.prototype.addTextTrack.call(this,e,t,n)},vjs.Html5.prototype.addRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return vjs.MediaTechController.prototype.addRemoteTextTrack.call(this,e);var t=document.createElement("track");return e=e||{},e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e["default"]&&(t["default"]=e["default"]),e.id&&(t.id=e.id),e.src&&(t.src=e.src),this.el().appendChild(t),"metadata"===t.track.kind?t.track.mode="hidden":t.track.mode="disabled",t.onload=function(){var e=t.track;t.readyState>=2&&("metadata"===e.kind&&"hidden"!==e.mode?e.mode="hidden":"metadata"!==e.kind&&"disabled"!==e.mode&&(e.mode="disabled"),t.onload=null)},this.remoteTextTracks().addTrack_(t.track),t},vjs.Html5.prototype.removeRemoteTextTrack=function(e){if(!this.featuresNativeTextTracks)return vjs.MediaTechController.prototype.removeRemoteTextTrack.call(this,e);var t,n;for(this.remoteTextTracks().removeTrack_(e),t=this.el().querySelectorAll("track"),n=0;n0&&(e="number"!=typeof vjs.TEST_VID.textTracks[0].mode),e&&vjs.IS_FIREFOX&&(e=!1),e},vjs.Html5.prototype.featuresVolumeControl=vjs.Html5.canControlVolume(),vjs.Html5.prototype.featuresPlaybackRate=vjs.Html5.canControlPlaybackRate(),vjs.Html5.prototype.movingMediaElementInDOM=!vjs.IS_IOS,vjs.Html5.prototype.featuresFullscreenResize=!0,vjs.Html5.prototype.featuresProgressEvents=!0,vjs.Html5.prototype.featuresNativeTextTracks=vjs.Html5.supportsNativeTextTracks(),function(){var e,t=/^application\/(?:x-|vnd\.apple\.)mpegurl/i,n=/^video\/mp4/i;vjs.Html5.patchCanPlayType=function(){vjs.ANDROID_VERSION>=4&&(e||(e=vjs.TEST_VID.constructor.prototype.canPlayType),vjs.TEST_VID.constructor.prototype.canPlayType=function(n){return n&&t.test(n)?"maybe":e.call(this,n)}),vjs.IS_OLD_ANDROID&&(e||(e=vjs.TEST_VID.constructor.prototype.canPlayType),vjs.TEST_VID.constructor.prototype.canPlayType=function(t){return t&&n.test(t)?"maybe":e.call(this,t)})},vjs.Html5.unpatchCanPlayType=function(){var t=vjs.TEST_VID.constructor.prototype.canPlayType;return vjs.TEST_VID.constructor.prototype.canPlayType=e,e=null,t},vjs.Html5.patchCanPlayType()}(),vjs.Html5.Events="loadstart,suspend,abort,error,emptied,stalled,loadedmetadata,loadeddata,canplay,canplaythrough,playing,waiting,seeking,seeked,ended,durationchange,timeupdate,progress,play,pause,ratechange,volumechange".split(","),vjs.Html5.disposeMediaElement=function(e){if(e){for(e.player=null,e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&!function(){try{e.load()}catch(t){}}()}},vjs.MediaLoader=vjs.Component.extend({init:function(e,t,n){if(vjs.Component.call(this,e,t,n),e.options_.sources&&0!==e.options_.sources.length)e.src(e.options_.sources);else for(var i=0,o=e.options_.techOrder;i=o?i.push(r):r.startTime===r.endTime&&r.startTime<=o&&r.startTime+.5>=o&&i.push(r);if(p=!1,i.length!==this.activeCues_.length)p=!0;else for(e=0;e>>0;if(0===o)return-1;var r=+t||0;if(Math.abs(r)===1/0&&(r=0),r>=o)return-1;for(n=Math.max(r>=0?r:o-Math.abs(r),0);ne?this.show():this.hide()},vjs.SubtitlesButton=vjs.TextTrackButton.extend({init:function(e,t,n){vjs.TextTrackButton.call(this,e,t,n),this.el_.setAttribute("aria-label","Subtitles Menu")}}),vjs.SubtitlesButton.prototype.kind_="subtitles",vjs.SubtitlesButton.prototype.buttonText="Subtitles",vjs.SubtitlesButton.prototype.className="vjs-subtitles-button",vjs.ChaptersButton=vjs.TextTrackButton.extend({init:function(e,t,n){vjs.TextTrackButton.call(this,e,t,n),this.el_.setAttribute("aria-label","Chapters Menu")}}),vjs.ChaptersButton.prototype.kind_="chapters",vjs.ChaptersButton.prototype.buttonText="Chapters",vjs.ChaptersButton.prototype.className="vjs-chapters-button",vjs.ChaptersButton.prototype.createItems=function(){var e,t,n=[];if(t=this.player_.textTracks(),!t)return n;for(var i=0;i0&&this.show(),a},vjs.ChaptersTrackMenuItem=vjs.MenuItem.extend({init:function(e,t){var n=this.track=t.track,i=this.cue=t.cue,o=e.currentTime();t.label=i.text,t.selected=i.startTime<=o&&o
'}vjs.TextTrackSettings=vjs.Component.extend({init:function(e,t){vjs.Component.call(this,e,t),this.hide(),vjs.on(this.el().querySelector(".vjs-done-button"),"click",vjs.bind(this,function(){this.saveSettings(),this.hide()})),vjs.on(this.el().querySelector(".vjs-default-button"),"click",vjs.bind(this,function(){this.el().querySelector(".vjs-fg-color > select").selectedIndex=0,this.el().querySelector(".vjs-bg-color > select").selectedIndex=0,this.el().querySelector(".window-color > select").selectedIndex=0,this.el().querySelector(".vjs-text-opacity > select").selectedIndex=0,this.el().querySelector(".vjs-bg-opacity > select").selectedIndex=0,this.el().querySelector(".vjs-window-opacity > select").selectedIndex=0,this.el().querySelector(".vjs-edge-style select").selectedIndex=0,this.el().querySelector(".vjs-font-family select").selectedIndex=0,this.el().querySelector(".vjs-font-percent select").selectedIndex=2,this.updateDisplay()})),vjs.on(this.el().querySelector(".vjs-fg-color > select"),"change",vjs.bind(this,this.updateDisplay)),vjs.on(this.el().querySelector(".vjs-bg-color > select"),"change",vjs.bind(this,this.updateDisplay)),vjs.on(this.el().querySelector(".window-color > select"),"change",vjs.bind(this,this.updateDisplay)),vjs.on(this.el().querySelector(".vjs-text-opacity > select"),"change",vjs.bind(this,this.updateDisplay)),vjs.on(this.el().querySelector(".vjs-bg-opacity > select"),"change",vjs.bind(this,this.updateDisplay)),vjs.on(this.el().querySelector(".vjs-window-opacity > select"),"change",vjs.bind(this,this.updateDisplay)),vjs.on(this.el().querySelector(".vjs-font-percent select"),"change",vjs.bind(this,this.updateDisplay)),vjs.on(this.el().querySelector(".vjs-edge-style select"),"change",vjs.bind(this,this.updateDisplay)),vjs.on(this.el().querySelector(".vjs-font-family select"),"change",vjs.bind(this,this.updateDisplay)),e.options().persistTextTrackSettings&&this.restoreSettings()}}),vjs.TextTrackSettings.prototype.createEl=function(){return vjs.Component.prototype.createEl.call(this,"div",{className:"vjs-caption-settings vjs-modal-overlay",innerHTML:n()})},vjs.TextTrackSettings.prototype.getValues=function(){var t,n,i,o,r,a,s,l,d,c,u,p;t=this.el(),r=e(t.querySelector(".vjs-edge-style select")),a=e(t.querySelector(".vjs-font-family select")),s=e(t.querySelector(".vjs-fg-color > select")),i=e(t.querySelector(".vjs-text-opacity > select")),l=e(t.querySelector(".vjs-bg-color > select")),n=e(t.querySelector(".vjs-bg-opacity > select")),d=e(t.querySelector(".window-color > select")),o=e(t.querySelector(".vjs-window-opacity > select")),p=window.parseFloat(e(t.querySelector(".vjs-font-percent > select"))),c={backgroundOpacity:n,textOpacity:i,windowOpacity:o,edgeStyle:r,fontFamily:a,color:s,backgroundColor:l,windowColor:d,fontPercent:p};for(u in c)(""===c[u]||"none"===c[u]||"fontPercent"===u&&1===c[u])&&delete c[u];return c},vjs.TextTrackSettings.prototype.setValues=function(e){var n,i=this.el();t(i.querySelector(".vjs-edge-style select"),e.edgeStyle),t(i.querySelector(".vjs-font-family select"),e.fontFamily),t(i.querySelector(".vjs-fg-color > select"),e.color),t(i.querySelector(".vjs-text-opacity > select"),e.textOpacity),t(i.querySelector(".vjs-bg-color > select"),e.backgroundColor),t(i.querySelector(".vjs-bg-opacity > select"),e.backgroundOpacity),t(i.querySelector(".window-color > select"),e.windowColor),t(i.querySelector(".vjs-window-opacity > select"),e.windowOpacity),n=e.fontPercent,n&&(n=n.toFixed(2)),t(i.querySelector(".vjs-font-percent > select"),n)},vjs.TextTrackSettings.prototype.restoreSettings=function(){var e;try{e=JSON.parse(window.localStorage.getItem("vjs-text-track-settings"))}catch(t){}e&&this.setValues(e)},vjs.TextTrackSettings.prototype.saveSettings=function(){var e;if(this.player_.options().persistTextTrackSettings){e=this.getValues();try{vjs.isEmpty(e)?window.localStorage.removeItem("vjs-text-track-settings"):window.localStorage.setItem("vjs-text-track-settings",JSON.stringify(e))}catch(t){}}},vjs.TextTrackSettings.prototype.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}}(),vjs.JSON,"undefined"!=typeof window.JSON&&"function"==typeof window.JSON.parse)vjs.JSON=window.JSON;else{vjs.JSON={};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;vjs.JSON.parse=function(text,reviver){function walk(e,t){var n,i,o=e[t];if(o&&"object"==typeof o)for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(i=walk(o,n),void 0!==i?o[n]=i:delete o[n]);return reviver.call(e,t,o)}var j;if(text=String(text),cx.lastIndex=0,cx.test(text)&&(text=text.replace(cx,function(e){return"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})),/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,"")))return j=eval("("+text+")"),"function"==typeof reviver?walk({"":j},""):j;throw new SyntaxError("JSON.parse(): invalid or malformed JSON data")}}vjs.autoSetup=function(){var e,t,n,i,o,r=document.getElementsByTagName("video"),a=document.getElementsByTagName("audio"),s=[];if(r&&r.length>0)for(i=0,o=r.length;i0)for(i=0,o=a.length;i0)for(i=0,o=s.length;i-1||t>-1},m=function(){var e=/iPad|iPhone|iPod/.test(navigator.appVersion);return e},v=function(e){return!!e.isFullscreen||!!(document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement)&&(!window.screenTop&&!window.screenY)},f=function(e){switch(e.nativeControlsForTouch=!1,e.controls=!0,e.preload="auto",e.extensions||(e.extensions=""),s.setSizeForInitialRender(e),m()&&e.sideStream&&e.sideStream.enabled===!1&&(e.nonViewableBehavior="pause"),e.initialPlayback){case"auto":e.autoplay=!1;break;case"click":e.autoplay=!1;break;case"mouseover":e.autoplay=!1}e.hasOwnProperty("disableTopBar")||(e.disableTopBar=!1),e.communicator=n.externalNameOfVideoPlayer,(l.isAndroid()||p())&&(e.controlBarPosition="below"),"flash"===n.decidePlayer(e.requiredPlayer)&&(e.controlBarPosition="over");var t=e.endCard;if(t&&t.enabled&&!t.buttons&&(t.buttons=[],t.showDefaultButtons=!0,t.buttons.indexOf("replay")<0&&e.disableCollapse&&e.disableCollapse.replay&&t.buttons.push({type:"replay"}),t.buttons.indexOf("learnMore")<0&&e.learnMore&&e.learnMore.enabled)){var i={type:"learnMore"};e.learnMore.text&&(i.text=e.learnMore.text),t.buttons.push(i)}return e};c=f(c),"off"===c.initialAudio&&(n.isMuted=!0),c.flash=c.flash?c.flash:{swf:"http://video.devnxs.net/players/flash/AppnexusFlashPlayer.swf"},n.options=c;var g=function(e,t){if(c.playOnMouseover===!0){var i=function(){n.isDoneInitialPlay===!0&&!n.explicitPaused&&n.isViewable&&n.isPlayingVideo===!1&&n.play()},o=function(){n.pause()};e.addEventListener("mouseenter",i),e.addEventListener("mouseleave",o)}if(c.audioOnMouseover!==!1){var r,a=0;"number"==typeof c.audioOnMouseover&&(a=c.audioOnMouseover);var s=function(){!n.isFullscreen&&n.isDoneInitialPlay&&(clearTimeout(r),n.mute(),e.removeEventListener("mouseleave",s))},l=function(){n.isFullscreen||!n.isDoneInitialPlay||n.mutedByViewability||(r=setTimeout(function(){n.unmute(),u("unmute by mouseover")},a)),e.addEventListener("mouseleave",s,!1)};p()||(d=setInterval(function(){n&&n.isFullscreen&&s&&e&&e.removeEventListener("mouseleave",s)},500),e.addEventListener("mouseenter",l,!1))}if(c.autoInitialSize&&!h()&&window.addEventListener("resize",function(){if(v(n)!==!0){var e=!(!n.options.sideStreamObject||"function"!=typeof n.options.sideStreamObject.shouldNotResizeWhenSideStreamActivated)&&n.options.sideStreamObject.shouldNotResizeWhenSideStreamActivated();e||c.targetElement&&c.targetElement.style&&c.targetElement.style.height&&0===Number(c.targetElement.style.height.replace("px",""))||setTimeout(function(){if(c.disableCollapse.enabled||!n.isSkipped&&!n.isCompleted){c.width=c.targetElement.offsetWidth;var e=/android/i.test(navigator.userAgent.toLowerCase());e?c.targetElement.style.webkitTransition="height 0s ease":c.targetElement.style.transition="height 0s ease",n.resizeVideo(-1),c.targetElement.style.height=c.height+"px";var t=document.getElementById(n.videoObjectId);t&&void 0!==typeof t&&(t.style.width=c.width,t.style.height=c.height),setTimeout(function(){var t=function(e){return e<0?0:e/1e3},n=t(c.expandTime);n=n<=0?.001:n,e?c.targetElement.style.webkitTransition="height "+n+"s ease":c.targetElement.style.transition="height "+n+"s ease"},500)}},0)}}),"flash"===n.decidePlayer(c.requiredPlayer)&&(e.addEventListener("mouseenter",function(){n.mouseIn()}),e.addEventListener("mouseleave",function(){n.mouseOut()})),e.style.cursor="pointer",t&&void 0!==t){if(m()){var f=!1;t.ontouchmove=function(){f=!0},t.ontouchend=function(e){return f?void(f=!1):void g(e)}}else t.onclick=function(e){g(e)};var g=function(){"html5"!==n.decidePlayer(c.requiredPlayer)||c.vpaid||(c.learnMore.enabled===!0?c.learnMore.clickToPause===!0&&(n.isPlayingVideo?n.explicitPause():n.explicitPlay()):n.click())}}var y=n.options&&n.options.playerSkin&&n.options.playerSkin.customPlayerSkin;m()&&n.overlayPlayer&&n.options&&n.options.enableInlineVideoForIos===!1&&y&&(n.adVideoPlayer.controlBar.fullscreenToggle.dispose(),n.adVideoPlayer.one("playing",function(){n.adVideoPlayer.controlBar.el().style.display="none",setTimeout(function(){n.adVideoPlayer.controlBar.el().style.display="block"},7e3)}))};switch(n.decidePlayer(c.requiredPlayer)){case"html5":p()?new o(n,g).start():new i(n,g).start();break;case"flash":r(n,g)}a.sharedInstance().run(t)};e.exports=p},function(e,t,n){var i=n(8),o=n(9),r=function(e){o.info("Video Player: "+e)};e.exports=function(e,t){var o=this;this.options=e.options,this.an_video_ad_player_id="",this.an_video_ad_player_html5_api_id="",this.targetElement="",this.videojsOrigin=e.videoPlayerObj,this.dispatchEventToAdunit=e.dispatchEventToAdunit.bind(e),this.callbackForAdUnit=e.callbackForAdUnit,this.topChromeHeight=24,this.pendingFullscreenExit=!1,this.bigbuttonUnmuteTimeout=250,this.CONST_MESSAGE_GENERAL_ERROR="General error reported from HTML5 video player",this.adIndicatorTextContent=this.options.adText,this.readyForSkip=!1,this.floatingSkipButton=null,this.floatingAdSkipText=null,this.isIos=i.isIos,this.isAndroid=i.isAndroid,this.isMobile=i.isMobile,this.refreshVideoLookAndFeel=i.refreshVideoLookAndFeel,this.initializeIframeAndVideo=n(10)(o,e).init,this.UIController=n(16)(o,e,t).init,this.displayVolumeControls=n(42)(o).displayVolumeControls,this.start=function(){r("WE ARE USING HTML5 PLAYER");var t=(new Date).getTime()+Math.floor(1e4*Math.random());o.options.techOrder=["html5"],o.options.iframeVideoWrapperId="iframeVideoWrapper_"+t;var n="an_video_ad_player_"+t,i="an_video_ad_player_"+t+"_html5_api";o.an_video_ad_player_id=n,o.an_video_ad_player_html5_api_id=i,e.divIdForVideo=n,e.videoId=i,o.targetElement=o.options.targetElement,o.initializeIframeAndVideo(o.UIController)}}},function(e,t,n){function i(e,t){if(!(e&&t&&e.getBoundingClientRect&&t.getBoundingClientRect))return s("Utils.elementsOverlap expects two html elements"),!1;var n=e.getBoundingClientRect(),i=t.getBoundingClientRect();return!(n.righti.right||n.bottomi.bottom)}var o="PlayerManager_Utils",r=n(9),a=function(e){r.verbose(e,o)},s=function(e){r.info(e,o)},l=function(){var e=/iphone/i.test(navigator.userAgent.toLowerCase());return e},d=function(){var e=l()||/ipad/i.test(navigator.userAgent.toLowerCase());return e},c=function(){return/android/i.test(navigator.userAgent.toLowerCase())},u=function(){return navigator.appVersion.indexOf("Mobile")>-1||navigator.appVersion.indexOf("Android")>-1},p=function(){var e=navigator.userAgent.match(/OS (\d+)_/i);if(e&&e[1])return e[1]},h=function(e,t){!t.isSkipped&&t.isExpanded&&(e.autoInitialSize&&!e.shouldResizeVideoToFillMobileWebview&&(e.width=e.targetElement.offsetWidth),t.resizeVideo(-1,u()),e.targetElement.style.height=e.height+"px")},m=function(e){d()&&e.options.enableInlineVideoForIos&&setTimeout(function(){var t=document.getElementById(e.options.iframeVideoWrapperId);t.style.width="",t.style.height=""},0)},v=function(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),n.eventName=t,e.dispatchEvent(n)},f=function(){this.queue=[],this.id="",this.isSuppress=!1,this.isPaused=!1,this.isCompleted=!1;var e=100,t=!1;this.push=function(e){return this.isSuppress===!1&&"function"==typeof e?void e():t?void(t=!1):void(this.isPaused===!1&&this.queue.push(e))},this.start=function(){a("delay event starts");var t=this,n=function(){if(t.isSuppress===!1){var i=t.queue.shift();i&&"function"==typeof i&&i()}setTimeout(function(){t.isCompleted===!1&&n()},e)};n()},this.ImmediateStop=function(){this.isCompleted=!0},this.lazyTerminate=function(){var e=this,t=function(){e.ImmediateStop()};this.queue.push(t)},this.suppress=function(e){this.isSuppress=e},this.clearQueue=function(){this.queue=[]},this.ignoreNextQueue=function(){t=!0}},g=function(e){return"undefined"==typeof e||""===e||e===!1||null===e},y=function(e){if(null===e||void 0===e)return!0;if(0===e.length)return!0;if(""===e)return!0;if("object"!=typeof e)return!1;if(e.length>0)return!1;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0},A=function(){var e={};return{pushAndCheck:function(t,n){var i=t+"_"+n;return!e[i]&&(e[i]=!0,!0)}}},b=function(e){var t=!1;try{t=!isNaN(parseFloat(e))&&isFinite(e)}catch(n){a(n)}return t},k=function(e,t){try{var n=e.indexOf("%");if(n>0){if(t&&t>0){var i=Number(e.substring(0,n));return i>=0&&i<=100?Math.round(t*(i/100)):-1}return-1}n=e.indexOf(".");var o=n>0?Number(e.substring(n+1).substr(0,3)):0;n>0&&(e=e.substring(0,n));var r=e.split(":");if(3===r.length){for(var s=0;s0&&(i+=n+">"),i+=t,c(e)&&console.log(i)}catch(o){c(e)&&console.log(o)}}var p=0,h=1,m=2,v=3,f=4,g=5,y=6,A=6,b="AppNexus_Page_Debug_Log_Level",k=y,T=p,w=T,E=T,S=T,I=T;e.exports={traceAtLevel:function(){try{if(arguments.length>0){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);o.call(this,e,t)}}catch(n){}},always:function(){try{o.call(this,h,Array.prototype.slice.call(arguments))}catch(e){}},error:function(){try{o.call(this,m,Array.prototype.slice.call(arguments))}catch(e){}},log:function(){try{o.call(this,g,Array.prototype.slice.call(arguments))}catch(e){}},warn:function(){try{o.call(this,v,Array.prototype.slice.call(arguments))}catch(e){}},info:function(){try{o.call(this,f,Array.prototype.slice.call(arguments))}catch(e){}},debug:function(){try{o.call(this,y,Array.prototype.slice.call(arguments))}catch(e){}},verbose:function(){try{o.call(this,A,Array.prototype.slice.call(arguments))}catch(e){}},handleLogDebugLegacySupport:function(e,t){try{u(g,e,t)}catch(n){}},setDebugLevel:function(e){try{d(e)}catch(t){}},isTraceLevelActive:function(e){try{return c(e)}catch(t){return!1}},TRACE_LEVEL_ALWAYS:h,TRACE_LEVEL_ERROR:m,TRACE_LEVEL_WARN:v,TRACE_LEVEL_INFO:f,TRACE_LEVEL_LOG:g,TRACE_LEVEL_DEBUG:y,TRACE_LEVEL_VERBOSE:A},l()},function(e,t,n){var i="[PlayerManager_InitializeElements]",o=n(9),r=n(11),a=function(e){o.verbose(i,e)},s=function(e){o.debug(i,e)},l=function(e){o.log(i,e)};e.exports=function(e,t){return{init:function(n){l("init");var i,o=!1;if(t.autoplayHandler.isRequiredFakeAndroidAutoStart(e.options.initialPlayback,e.options.initialAudio,e.options.automatedTestingOnlyAndroidSkipTouchStart,!0)){a("Setting correct iframe for androids 'fake' autostart");for(var d=e.options.targetElement.getElementsByTagName("iframe"),c=0;c-1;f&&t.overlayPlayer===!1?(i.onload=function(){m(),v=!0},setTimeout(function(){v===!1&&(a("destroying due to an error in firefox"),t.destroyWithoutSkip(!0,e.CONST_MESSAGE_GENERAL_ERROR,null,900))},e.options.vpaidTimeout)):m()}}}},function(e,t,n){var i=(n(12),n(14)),o=n(15),r=o.OmidSessionClient.AdSession,a=o.OmidSessionClient.Partner,s=o.OmidSessionClient.Context,l=o.OmidSessionClient.VerificationScriptResource,d=o.OmidSessionClient.AdEvents,c=o.OmidSessionClient.VideoEvents,u="[PlayerManager_Verifications]",p=n(9);e.exports=function(e,t){var n,o,h,m=e,v=t,f=[],g=new i(e,t.player),y=function(e){p.debug(u,"OMID sessionObserver");try{"sessionStart"===e.type?(p.debug(u,"OMID sessionStart"),""!==OMIDVideoEvents().position&&h.loaded({isSkippable:OMIDVideoEvents().isSkippable,isAutoPlay:OMIDVideoEvents().isAutoPlay,position:OMIDVideoEvents().position}),o.impressionOccurred()):"sessionError"===event.type?p.debug(u,"OMID sessionError"):"sessionFinish"===event.type&&p.debug(u,"OMID sessionFinish")}catch(t){p.debug(u,"Failed OMID sessionStart "+t)}};return{init:function(){p.debug(u,"init verifications");for(var e=0;e0)try{if(""!==getOMIDPartner().name&&""!==getOMIDPartner().version){var E=new a(getOMIDPartner().name,getOMIDPartner().version),S=new s(E,f);p.debug(u,"BuildTest::"+v.videoElement),S.setVideoElement(v.videoElement),n=new r(S),o=new d(n),h=new c(n),n.registerSessionObserver(y),p.debug(u,"OMID _adSession"),p.debug(u,n),p.debug(u,h)}}catch(w){p.debug(u,"Failed OMID registerSessionObserver "+w)}},start:function(){p.debug(u,"start verifications")},dispatchEvent:function(e,t){p.debug(u,"try to dispatch OMID event: "+e+", data: ",t);try{"start"===e?h.start(t.duration,t.videoPlayerVolume):"firstQuartile"===e?h.firstQuartile():"thirdQuartile"===e?h.thirdQuartile():"midpoint"===e?h.midpoint():"complete"===e?h.complete():"volumeChange"===e?h.volumeChange(t.videoPlayerVolume):"adUserInteraction"===e?h.adUserInteraction(t.interactionType):"resume"===e?h.resume():"pause"===e?h.pause():"playerStateChange"===e?h.playerStateChange(t.state):"skipped"===e&&h.skipped()}catch(n){p.debug(u,"Failed OMID Video Events "+n)}},destroy:function(){p.debug(u,"destroy verifications")}}}},function(e,t,n){var i=n(13),o="[PlayerManager_Verification_OMID]",r=n(9),a=function(e){r.debug(o,e)};e.exports=function(e,t){function n(){var e=(new Date).getTime(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)});return t}function s(e,t){p=e,h=t,f&&u()}function l(e,t){y&&y.addListener(e,t)}function d(){var e={apiVersion:"1.0",environment:"web",accessMode:"full",videElement:v.videoElement,adSessionType:"html",adCount:1,omidJsInfo:{omidImplementer:"videoads-ad-video-player-manager",serviceVersion:"3.5.19"}};return m.adServingId&&(e.adServingId=m.adServingId),e}function c(e){return e===m.vendor?m.verificationParams:null}function u(){r.debug(o,"start OMID session");var e={adSessionId:g,type:"sessionStart",timestamp:Date.now(),data:{context:d()}},t=c(h);t&&(e.data.verificationParameters=t),y=new i(g,p),p(e)}var p,h,m=e,v=t,f=!1,g=n(),y=null,A=[];return{init:function(){r.debug(o,"expose OMID interface"),v.frameWin.omid3p={registerSessionObserver:s,addEventListener:l}},start:function(){f=!0,p&&u()},dispatchEvent:function(e,t){y?(A.length>0&&(A.forEach(function(t){a("dispatch from cache OMID event "+e),y.fireEvent(t.eventName,t.data)}),A=[]),r.debug(o,"dispatch OMID event "+e),y.fireEvent(e,t)):(r.debug(o,"save in cache OMID event "+e),A.push({event:e,data:t}))},destroy:function(){if(r.debug(o,"terminate OMID session"),p&&f){var e={adSessionId:g,type:"sessionFinish",timestamp:Date.now()};p(e)}}}}},function(e,t){e.exports=function(e,t){function n(e,t){return!!e.find(function(e){return t===e})}function i(e){return n(u,e)||n(p,e)||n(h,e)||n(m,e)||n(v,e)}function o(e,t){var n=null;switch(e){case"sessionError":n={},t&&t.type&&(n.errorType=t.type),t&&t.message&&(n.message=t.message);break;case"impression":n={},n.mediaType="video";break;case"loaded":n={},n.skippable=t.skippable,n.skippable&&(n.skipOffset=parseInt(t.skipOffset/1e3+.5)),n.autoPlay=t.autoPlay,n.position=t.position;break;case"start":n={},n.duration=t.duration,n.videoPlayerVolume=t.volume;break;case"volumeChange":n={},n.videoPlayerVolume=t.volume;break;case"playerStateChange":n={},n.state=t.state;break;case"adUsetInteraction":n={},n.interactionType=t.interactionType}return n}function r(e,t){var n={adSessionId:l,type:e,timestamp:Date.now()},i=o(e,t);return i&&(n.data=i),n}function a(e){return"sessionError"===e}function s(e,t){c.hasOwnProperty(e)||(c[e]=[]),c[e].push(t)}var l=e,d=t,c={},u=["sessionStart","sessionError","sessionFinish"],p=["impression"],h=["loaded","start","firstQuartile","midpoint","thirdQuartile","complete","pause","resume","bufferStart","bufferFinish","skipped","volumeChange","playerStateChange","adUserInteraction"],m=["geometryChange"],v=["video"];return{addListener:function(e,t){i(e)&&(n(v,e)?h.forEach(function(e){s(e,t)}):s(e,t))},fireEvent:function(e,t){if(c.hasOwnProperty(e)){var n=r(e,t);a(e)?d(n):c[e].forEach(function(e){e(n)})}}}}},function(e,t,n){var i="[PlayerManager_Verification_Tracking]",o=n(9);e.exports=function(e,t){function n(e,t){var n=e;if(t)for(var i in t)n=n.split("["+i.toUpperCase()+"]").join(encodeURIComponent(t[i]));return n=a(n)}function r(){var e=(new Date).getTime(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)});return t}function a(e){for(var n in c)if(e.indexOf("["+n+"]")>=0){var i=c[n];null===i&&(i=t?t.resolveMacro(n):-1),e=e.split("["+n+"]").join(encodeURIComponent(i))}return e}for(var s={},l=0;li)throw Error("Value for "+e+" is outside the range ["+n+","+i+"]")},assertFunction:function(e,t){if(!t)throw Error(e+" must not be truthy.")},assertPositiveNumber:function(e,t){if((0,module$exports$omid$common$argsChecker.assertNumber)(e,t),0>t)throw Error(e+" must be a positive number.")}},module$exports$omid$common$exporter={};module$exports$omid$common$exporter.packageExport=function(e,t,n){(n=void 0===n?module$contents$omid$common$exporter_getOmidExports():n)&&(e=e.split("."),e.slice(0,e.length-1).reduce(module$contents$omid$common$exporter_getOrCreateName,n)[e[e.length-1]]=t)};var module$exports$omid$sessionClient$Partner=function(e,t){module$exports$omid$common$argsChecker.assertTruthyString("Partner.name",e),module$exports$omid$common$argsChecker.assertTruthyString("Partner.version",t),this.name=e,this.version=t};(0,module$exports$omid$common$exporter.packageExport)("OmidSessionClient.Partner",module$exports$omid$sessionClient$Partner);var module$exports$omid$sessionClient$VerificationScriptResource=function(e,t,n){module$exports$omid$common$argsChecker.assertTruthyString("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=t,this.verificationParameters=n};(0,module$exports$omid$common$exporter.packageExport)("OmidSessionClient.VerificationScriptResource",module$exports$omid$sessionClient$VerificationScriptResource);var module$exports$omid$sessionClient$Context=function(e,t){module$exports$omid$common$argsChecker.assertNotNullObject("Context.partner",e),this.partner=e,this.verificationScriptResources=t,this.videoElement=this.slotElement=null};module$exports$omid$sessionClient$Context.prototype.setVideoElement=function(e){module$exports$omid$common$argsChecker.assertNotNullObject("Context.videoElement",e),this.videoElement=e},module$exports$omid$sessionClient$Context.prototype.setSlotElement=function(e){module$exports$omid$common$argsChecker.assertNotNullObject("Context.slotElement",e),this.slotElement=e},(0,module$exports$omid$common$exporter.packageExport)("OmidSessionClient.Context",module$exports$omid$sessionClient$Context);var module$exports$omid$common$constants={AdEventType:{IMPRESSION:"impression",STATE_CHANGE:"stateChange",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",VIDEO:"video",LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},VideoEventType:{LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},ErrorType:{GENERIC:"generic",VIDEO:"video"},AdSessionType:{NATIVE:"native",HTML:"html"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},AccessMode:{FULL:"full",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},Environment:{MOBILE:"app"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped"},SupportedFeatures:{CONTAINER:"clid",VIDEO:"vlid"},VideoPosition:{PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},VideoPlayerState:{MINIMIZED:"minimized",COLLAPSED:"collapsed",NORMAL:"normal",EXPANDED:"expanded",FULLSCREEN:"fullscreen"},NativeViewKeys:{X:"x",Y:"y",WIDTH:"width",HEIGHT:"height",AD_SESSION_ID:"adSessionId",IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",CLIPS_TO_BOUNDS:"clipsToBounds",CHILD_VIEWS:"childViews",END_X:"endX",END_Y:"endY",OBSTRUCTIONS:"obstructions"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"}},module$contents$omid$common$InternalMessage_GUID_KEY="omid_message_guid",module$contents$omid$common$InternalMessage_METHOD_KEY="omid_message_method",module$contents$omid$common$InternalMessage_VERSION_KEY="omid_message_version",module$contents$omid$common$InternalMessage_ARGS_KEY="omid_message_args",module$exports$omid$common$InternalMessage=function(e,t,n,i){this.guid=e,this.method=t,this.version=n,this.args=i};module$exports$omid$common$InternalMessage.isValidSerializedMessage=function(e){return!!e&&void 0!==e[module$contents$omid$common$InternalMessage_GUID_KEY]&&void 0!==e[module$contents$omid$common$InternalMessage_METHOD_KEY]&&void 0!==e[module$contents$omid$common$InternalMessage_VERSION_KEY]&&"string"==typeof e[module$contents$omid$common$InternalMessage_GUID_KEY]&&"string"==typeof e[module$contents$omid$common$InternalMessage_METHOD_KEY]&&"string"==typeof e[module$contents$omid$common$InternalMessage_VERSION_KEY]&&(void 0===e[module$contents$omid$common$InternalMessage_ARGS_KEY]||void 0!==e[module$contents$omid$common$InternalMessage_ARGS_KEY])},module$exports$omid$common$InternalMessage.deserialize=function(e){return new module$exports$omid$common$InternalMessage(e[module$contents$omid$common$InternalMessage_GUID_KEY],e[module$contents$omid$common$InternalMessage_METHOD_KEY],e[module$contents$omid$common$InternalMessage_VERSION_KEY],e[module$contents$omid$common$InternalMessage_ARGS_KEY])},module$exports$omid$common$InternalMessage.prototype.serialize=function(){var e={};return e[module$contents$omid$common$InternalMessage_GUID_KEY]=this.guid,e[module$contents$omid$common$InternalMessage_METHOD_KEY]=this.method,e[module$contents$omid$common$InternalMessage_VERSION_KEY]=this.version,e=e,void 0!==this.args&&(e[module$contents$omid$common$InternalMessage_ARGS_KEY]=this.args),e};var module$exports$omid$common$Communication=function(e){this.to=e,this.communicationType_=module$exports$omid$common$constants.CommunicationType.NONE};module$exports$omid$common$Communication.prototype.sendMessage=function(e,t){},module$exports$omid$common$Communication.prototype.handleMessage=function(e,t){this.onMessage&&this.onMessage(e,t)},module$exports$omid$common$Communication.prototype.generateGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return e="y"===e?(3&t|8).toString(16):t.toString(16)})},module$exports$omid$common$Communication.prototype.serialize=function(e){return JSON.stringify(e)},module$exports$omid$common$Communication.prototype.deserialize=function(e){return JSON.parse(e)},module$exports$omid$common$Communication.prototype.isDirectCommunication=function(){return this.communicationType_===module$exports$omid$common$constants.CommunicationType.DIRECT};var module$exports$omid$common$logger={error:function(e){for(var t=[],n=0;no)break;if(i')+"")))},appendPresenceIframe_:function(e){var t=e.document.createElement("iframe");t.id=module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME,t.name=module$exports$omid$common$DetectOmid.OMID_PRESENT_FRAME_NAME,t.style.display="none",e.document.body.appendChild(t)},isMutationObserverAvailable_:function(e){return"MutationObserver"in e},registerMutationObserver_:function(e){var t=new MutationObserver(function(n){n.forEach(function(n){"BODY"===n.addedNodes[0].nodeName&&(module$exports$omid$common$DetectOmid.appendPresenceIframe_(e),t.disconnect())})});t.observe(e.document.documentElement,{childList:!0})}},module$exports$omid$common$serviceCommunication={resolveTopWindowContext:function(e){if("undefined"==typeof e&&"undefined"!=typeof window&&window&&(e=window),"undefined"==typeof e||!e||"undefined"==typeof e.top||!e.top)return module$exports$omid$common$OmidGlobalProvider.omidGlobal;if(e===e.top)return e;try{return"undefined"==typeof e.top.location.hostname?e:e.top}catch(t){return e}}};module$exports$omid$common$serviceCommunication.startServiceCommunication=function(e,t,n){return n=void 0===n?module$exports$omid$common$DetectOmid.isOmidPresent:n,(t=module$contents$omid$common$serviceCommunication_getUnobfuscatedKey(e,t))?new module$exports$omid$common$DirectCommunication(t):e.top&&n(e.top)?new module$exports$omid$common$PostMessageCommunication(e,e.top):null};var module$exports$omid$common$version={ApiVersion:"1.0",Version:"1.2.5-iab615"},module$contents$omid$sessionClient$AdSession_SESSION_CLIENT_VERSION=module$exports$omid$common$version.Version,module$exports$omid$sessionClient$AdSession=function(e,t){t=void 0===t?(0,module$exports$omid$common$serviceCommunication.startServiceCommunication)((0,module$exports$omid$common$serviceCommunication.resolveTopWindowContext)(window),["omid","v1_SessionServiceCommunication"]):t,module$exports$omid$common$argsChecker.assertNotNullObject("AdSession.context",e),this.context=e,this.impressionOccurred_=!1,this.communication_=t,this.isSessionRunning_=this.hasVideoEvents_=this.hasAdEvents_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleMessage_.bind(this),this.sendOneWayMessage("setClientInfo",module$exports$omid$common$version.Version,this.context.partner.name,this.context.partner.version)),this.injectVerificationScripts_(e.verificationScriptResources),this.sendSlotElement_(e.slotElement),this.sendVideoElement_(e.videoElement),this.watchSessionEvents_()};module$exports$omid$sessionClient$AdSession.prototype.isSupported=function(){return!!this.communication_},module$exports$omid$sessionClient$AdSession.prototype.registerSessionObserver=function(e){this.sendMessage("registerSessionObserver",e)},module$exports$omid$sessionClient$AdSession.prototype.error=function(e,t){this.sendOneWayMessage("sessionError",e,t)},module$exports$omid$sessionClient$AdSession.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents")},module$exports$omid$sessionClient$AdSession.prototype.registerVideoEvents=function(){if(this.hasVideoEvents_)throw Error("VideoEvents already registered.");this.hasVideoEvents_=!0,this.sendOneWayMessage("registerVideoEvents")},module$exports$omid$sessionClient$AdSession.prototype.sendOneWayMessage=function(e,t){for(var n=[],i=1;i0?e.click(o.url):e.click():t({name:"ad-click",trackClick:!0}):r[i]&&t({name:r[i]}),e.notifyVpaidEvent(i),"AdVideoComplete"===i&&e.adVideoPlayer.trigger("customDestroy")},k=i.isIos()||i.isAndroid(),T=this;e.options.overlayPlayer&&e.resizeVideo();var w=T.vastClient({url:"",jsVpaidUrl:m,playAdAlways:!0,adCancelTimeout:r,adsEnabled:!0,adParameters:n.adParameters,clickUrl:n.clickUrls[0],delayExpandUntilVPAIDInit:n.delayExpandUntilVPAIDInit,terminateUnresponsiveVPAIDCreative:n.terminateUnresponsiveVPAIDCreative,disableControlsOnMouseover:k,initialAudio:n.initialAudio,loggerCallback:y,vpaidEventCallback:b,delayExpandUntilVPAIDImpression:n.delayExpandUntilVPAIDImpression,vpaidEnvironmentVars:n.vpaidEnvironmentVars,overlayPlayer:n.overlayPlayer,mobileSDK:n.mobileSDK,initialPlayback:n.initialPlayback,controlBarPosition:n.controlBarPosition}),E=function(){if(e.options.overlayPlayer){var t=T,n=i.isAndroid()?1e3:500;setTimeout(function(){t.paused()&&t.tech&&t.tech.el()&&t.tech.el().src&&t.trigger("pause")},n)}};if(T.on("reset",function(){T.options().plugins["ads-setup"].adsEnabled?w.enable():w.disable()}),T.on("vast.adError",function(t){if(g!==!0){g=!0,T.loadingSpinner.hide(),e.destroyWithoutSkip(!0,a,!1,901);var n=t.error;n&&n.message&&p("JS-VPAID Error (vast.adError)"+n.message)}}),T.on("vpaid.AdVideoStart",function(){var t=e&&e.adVideoPlayer&&e.adVideoPlayer.player?e.adVideoPlayer.player().duration():0;if(e.test("VIDLA509",t),t&&t>0)e.setVastAttribute();else{var n=!1;T.one("loadedmetadata",function(){if(n=!0,t=e&&e.adVideoPlayer&&e.adVideoPlayer.player?e.adVideoPlayer.player().duration():0,e.test("VIDLA509",t),t&&t>0)e.setVastAttribute();else{var i=e.options.data.vastDurationMsec;i=i&&i>0?Math.round(i/1e3):0,e.test("VIDLA509-2",i),e.setVastAttribute(i)}}),setTimeout(function(){if(n===!1){var t=e.options.data.vastDurationMsec;t=t&&t>0?Math.round(t/1e3):0,e.test("VIDLA509-2",t),e.setVastAttribute(t)}},3e3)}}),T.on("vast.adTimeout",function(){T.loadingSpinner.hide(),e.destroyWithoutSkip(!0,s,!0,901)}),T.on("vpaid.AdError",function(t){if(g!==!0){g=!0,T.loadingSpinner.hide(),e.destroyWithoutSkip(!0,s,!1,901);var n=t.error;n&&n.message&&p("JS-VPAID Error (vpaid.AdError) "+n.message)}}),T.on("vast.adSkip",function(){e.destroy(),p("vast.adSkip")}),T.on("vpaid.AdSkipped",function(){e.destroy(),p("vpaid.AdSkipped")}),T.on("vpaid.AdIcons",function(t){t&&t.hasOwnProperty("adIcons")&&t.adIcons||(e.options.showVpaidIcons=!0)}),T.on("vast.adsCancel",function(){g||(g=!0,e.destroyWithoutSkip(),p("adsCancel"))}),T.on("vpaid.AdStopped",function(){return p("vpaid.AdStopped"),n.disableCollapse.replay===!0?void e.resetVpaid():(T.loadingSpinner.hide(),T.controlBar.hide(),T.bigPlayButton.hide(),void(e.isCompleted||(n.disableCollapse.enabled||e.destroyWithoutSkip(),e.isCompleted=!0)))}),T.one("vpaid.AdStarted",function(){E(),f&&n.overlayPlayer&&("edge"===A||"ie"===A?f.style.visibility="visible":f.style.display="block"),T.loadingSpinner.hide()}),T.one("vpaid.AdImpression",function(){E(),T.controlBar.show(),n.showBigPlayButton&&T.bigPlayButton.show()}),v.cbWhenReady){var S=function(){e.test("VIDLA509-1",""),p("callcbWhenReady (Impression, AdStarted are delivered"),e.isReadyToExpandForMobile=!0,T.tech.removeControlsListeners();var t=e.options.width/e.options.height;e.resizeVideo(t,i.isMobile()),n.isWaterfall&&n.firstAdAttempted&&n.delayExpandUntilVPAIDInit&&!n.isExpanded&&"auto"!==n.initialPlayback&&T.bigPlayButton.show(),"function"==typeof v.cbWhenReady&&v.cbWhenReady(e)},I=function(){var t=!1,n=T.volume(),o=!1,r=!1,a=!1,s=!1,l=100,d=function(){o&&r&&a&&t===!1&&(t=!0,setTimeout(S,500))};if(i.isIos()){T.on("timeupdate",function(){var t=T.player().currentTime();t>0&&s===!1&&e.isAlreadyPlaingForVPAID===!1&&(s=!0,a=!0,T.pause(),d(),p("pause by timeupdate when delayExpandUntilVPAIDImpression is true"))});var c=function(){var n=T.player().currentTime();n>0&&s===!1&&e.isAlreadyPlaingForVPAID===!1&&(s=!0,a=!0,T.pause(),d(),p("pause by timer when delayExpandUntilVPAIDImpression is true")),t||setTimeout(c,l)};setTimeout(c,l)}else T.one("vpaid.AdVideoStart",function(){e.isAlreadyPlaingForVPAID===!1&&T.pause(),T.volume(n),a=!0,d()});T.one("vpaid.AdStarted",function(){o=!0,d()}),T.one("vpaid.AdImpression",function(){r=!0,d()}),T.volume(0),e.delayEventHandler.ignoreNextQueue(),i.isIos()?(e.adVideoPlayer.trigger("play"),e.isDoneInitialPlay=!0):T.play()},C=function(){n.delayExpandUntilVPAIDImpression?I():S()};n.isWaterfall&&n.firstAdAttempted?T.one("an.doneInitialize",C):n.delayExpandUntilVPAIDInit?T.one("an.readytogovpaid",C):T.one("an.doneInitialize",C)}})};e.exports=m},function(e,t,n){var i="UserAgentParser",o=n(9);o.always(i,"Version 0.0.1");var r=function(e,t){var n="",i="?",o="function",a="object",s="string",l="model",d="name",c="type",u="vendor",p="version",h="console",m="mobile",v="tablet",f="smarttv",g="wearable",y={extend:function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2===0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},has:function(e,t){return"string"==typeof e&&t.toLowerCase().indexOf(e.toLowerCase())!==-1},lowerize:function(e){return e.toLowerCase()},major:function(e){return typeof e===s?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},A={rgx:function(){var e,t,n,i,r,s,l={},d=0,c=arguments;for(n=0;n0?2===i.length?typeof i[1]===o?l[i[0]]=i[1].call(this,s):l[i[0]]=i[1]:3===i.length?typeof i[1]!==o||i[1].exec&&i[1].test?l[i[0]]=s?s.replace(i[1],i[2]):void 0:l[i[0]]=s?i[1].call(this,s,i[2]):void 0:4===i.length&&(l[i[0]]=s?i[3].call(this,s.replace(i[1],i[2])):void 0):l[i]=s?s:void 0;d+=2}return l},str:function(e,t){for(var n in t)if(typeof t[n]===a&&t[n].length>0){for(var o=0;o0&&t.explicitUnmute():t.explicitMute()};n.controlBar.muteToggle.on("click",l),n.controlBar.muteToggle.on("touchend",l)}else s("removing mute button"),n.controlBar.muteToggle.dispose();if(e.options.showVolume===!0&&e.displayVolumeControls()&&n.controlBar.volumeControl.volumeBar.on("mousedown",function(){var e=n.volume();e<=0&&!t.isMuted&&(s("muting from volume scrubber"),t.explicitMute()),e>0&&t.isMuted&&(s("unmuting from volume scrubber"),t.explicitUnmute())}),i.isIos()&&e.options.enableNativeInline&&parseInt(i.getIOSVersion())>9&&"click"!==e.options.initialPlayback&&(n.muted(!0),n.controlBar.muteToggle.update()),"boolean"==typeof e.options.customButton.enabled&&e.options.customButton.enabled===!0){var d=e.options.playerSkin.controlBarHeight||30,c=Math.min(50,e.options.customButton.imgWidth),u=Math.min(d,e.options.customButton.imgHeight),p=Math.floor((d-u)/2),h="a";e.isMobile()&&(h="span");var m=e.videojsOrigin.createEl("div",{innerHTML:"<"+h+' href="'+e.options.customButton.url+'" target="_blank">'+e.options.customButton.altText+'",role:"button","aria-live":"polite",tabindex:"0"});m.style.cssText="float:right;font-family:VideoJS;font-size:1.5em;line-height:2;width:50px;height:100%;text-align:center",n.controlBar.addChild("button",{el:m}),n.controlBar.el().insertBefore(m,n.controlBar.fullscreenToggle.el())}n.controlBar.progressControl.seekBar.seekHandle.hide(),n.controlBar.progressControl.seekBar.el_.style.pointerEvents="none","boolean"==typeof e.options.showProgressBar?(e.options.showProgressBar===!1&&(s("removing progress bar"),n.controlBar.currentTimeDisplay.hide(),n.controlBar.timeDivider.hide(),n.controlBar.durationDisplay.hide()),n.controlBar.progressControl.seekBar.hide()):"text"===e.options.showProgressBar?(s("removing progress text"),n.controlBar.progressControl.seekBar.hide()):"bar"===e.options.showProgressBar&&(s("removing progress bar"),n.controlBar.currentTimeDisplay.hide(),n.controlBar.timeDivider.hide(),n.controlBar.durationDisplay.hide()),e.options.allowFullscreen===!1&&(s("removing fullscreen toggle"),n.controlBar.fullscreenToggle.addClass("vjs-hidden")),e.isMobile()&&e.options.allowFullscreen===!0&&e.options.showMute===!0&&(n.controlBar.fullscreenToggle.el().style.visibility="hidden",n.controlBar.muteToggle.el().style.visibility="hidden"),e.options.targetElement.addEventListener("outstream-impression",function(){e.isMobile()&&e.options.allowFullscreen===!0&&e.options.showMute===!0&&(n.controlBar.fullscreenToggle.el().style.visibility="visible",n.controlBar.muteToggle.el().style.visibility="visible")}),e.options.targetElement.addEventListener("vastplayer-impression",function(){e.isMobile()&&e.options.allowFullscreen===!0&&e.options.showMute===!0&&(n.controlBar.fullscreenToggle.el().style.visibility="visible")})}}}},function(e,t,n){var i="[PlayerManager_AdIndicator]",o=n(9),r=function(e){o.verbose(i,e)};e.exports=function(e,t){return{init:function(n,i,o,a,s){r("init"),o.id="ad_indicator_text",o.innerHTML=e.adIndicatorTextContent,o.className="top-bar-text",o.role="button";var l="3em";if(e.isMobile()&&(l="5em"),o.style["text-align"]="right",o.style["margin-right"]="1em",o.style["margin-left"]="1em",o.style["font-size"]="1em",o.style.right="0px",o.style.left="",o.style["line-height"]="24px",o.style.outline="0",o.style.position="absolute",o.style.padding="0",o.style.height="auto",o.style.width="auto",o.style["max-width"]="35%",o.style["white-space"]="nowrap",o.style.overflow="hidden",o.style["text-overflow"]="ellipsis",s?o.style.cursor="pointer":o.style["pointer-events"]="none",a.style["text-align"]="right",a.style["margin-right"]="1em",a.style["margin-left"]="1em",a.style["font-size"]="1em",a.style.right="0px",a.style.left="",a.style["line-height"]="3em",a.style.outline="0",a.style.position="absolute",a.style.padding="0",a.style.height=l,a.style["max-width"]="35%",a.style.width="auto",a.style["text-overflow"]="ellipsis",a.style["white-space"]="nowrap",a.style.overflow="hidden",a.style.display="none",s){a.style.cursor="pointer";var d=function(n){t.click(),e.isMobile()&&(n.stopPropagation(),n.preventDefault())};o.addEventListener("touchend",d),a.addEventListener("touchend",d),o.addEventListener("click",d),a.addEventListener("click",d)}else a.style["pointer-events"]="none";n.addChild("button",{el:a})}}}},function(e,t,n){var i="[PlayerManager_Skip]",o=n(9),r=n(8),a=function(e){o.debug(i,e)},s=function(e){o.verbose(i,e)};e.exports=function(e,t){return{init:function(n,i,o,l,d){a("init");var c,u;if(e.options.skippable.enabled===!0){s("creating and styling skip buttons and skip texts");var p=e.options.skippable.videoThreshold,h=e.options.skippable.skipText,m=e.options.skippable.skipButtonText;c=d.contentWindow.document.createElement("div"),c.id="skip_button",c.innerHTML=m,c.className="top-bar-text",c.role="button";var v="";e.isMobile()&&(v="5.0em"),c.style.display="none",c.style.cursor="pointer",c.style["font-weight"]="bold",c.style["margin-right"]="1em",c.style["margin-left"]="1em",c.style["font-size"]="1em",c.style.right="",c.style.left="0px",c.style["line-height"]="24px",c.style.outline="0",c.style.position="absolute",c.style.padding="0",c.style.height=v,c.style.width="auto",c.style["min-width"]="5em",c.style["text-align"]="left",e.floatingSkipButton=e.videojsOrigin.createEl("div",{className:"top-bar-text",role:"button",innerHTML:m}),e.floatingSkipButton.style.display="none",e.floatingSkipButton.style.cursor="pointer",e.floatingSkipButton.style["font-weight"]="bold",e.floatingSkipButton.style["margin-right"]="1em",e.floatingSkipButton.style["margin-left"]="1em",e.floatingSkipButton.style["font-size"]="1em",e.floatingSkipButton.style.right="",e.floatingSkipButton.style.left="0px",e.floatingSkipButton.style["line-height"]="3em",e.floatingSkipButton.style.outline="0",e.floatingSkipButton.style.position="absolute",e.floatingSkipButton.style.padding="0",e.floatingSkipButton.style.height=v,e.floatingSkipButton.style["min-width"]="5em",e.floatingSkipButton.style.width="auto",e.floatingSkipButton.style.display="none",e.floatingSkipButton.style["text-align"]="left",l.addChild("button",{el:e.floatingSkipButton});var f=function(n){return a("SKIP clicked, destroying player"),e.options.vpaid?(l.trigger("skip"),void(e.isMobile()&&(n.stopPropagation(),n.preventDefault(),e.options.overlayPlayer&&t.destroy()))):(t.destroy(),void(e.isMobile()&&(n.stopPropagation(),n.preventDefault(),t.isCompleted=!0)))};switch(e.isMobile()&&(c.addEventListener("touchend",f),e.floatingSkipButton.addEventListener("touchend",f),e.floatingSkipButton.addEventListener("mousedown",function(e){e.preventDefault()})),c.addEventListener("click",f),e.floatingSkipButton.addEventListener("click",f),e.floatingAdSkipText=e.videojsOrigin.createEl("div",{className:"top-bar-text",role:"button",innerHTML:""}),e.floatingAdSkipText.style["margin-left"]="1em",e.floatingAdSkipText.style["margin-right"]="1em",e.floatingAdSkipText.style.right="",e.floatingAdSkipText.style.left="0px",e.floatingAdSkipText.style["font-size"]="1em",e.floatingAdSkipText.style["line-height"]="3em",e.floatingAdSkipText.style.outline="0",e.floatingAdSkipText.style.position="absolute",e.floatingAdSkipText.style["text-align"]="left",e.floatingAdSkipText.style.padding="0",e.floatingAdSkipText.style.height="3em",e.floatingAdSkipText.style.width="auto",e.floatingAdSkipText.style["pointer-events"]="none",e.floatingAdSkipText.style.display="none",l.addChild("button",{el:e.floatingAdSkipText}),u=d.contentWindow.document.createElement("div"),u.id="ad_skip_text",u.innerHTML=m,u.className="top-bar-text", -u.role="button",u.style["margin-left"]="1em",u.style["margin-right"]="1em",u.style.right="",u.style.left="0px",u.style["font-size"]="1em",u.style["line-height"]="24px",u.style.outline="0",u.style.position="absolute",u.style["text-align"]="left",u.style.padding="0",u.style.height="3em",u.style.width="auto",u.style["pointer-events"]="none",u.style.display="none",e.options.skippable.skipLocation){case"top-right":c.style.right="0px",c.style.left="",c.style["text-align"]="right",u.style.right="0px",u.style.left="",e.floatingSkipButton.style.right="0px",e.floatingSkipButton.style.left="",e.floatingSkipButton.style["text-align"]="right",e.floatingAdSkipText.style.right="0px",e.floatingAdSkipText.style.left=""}var g=!1,y=!1,A=!1,b={},k=function(){var n,i=Math.round(l.player().currentTime()),a=Math.round(l.player().duration());n=t.options.skippable.allowOverride?Math.round(e.options.data.skipOffsetMsec/1e3):e.options.skippable.videoOffset;var s=n-i,d=!e.options.skippable.allowOverride||e.options.data.isVastVideoSkippable;d=!(n>a)&&d,t.test("VIDLA163_needToShowSkip",d),p0&&!t.startedReplay&&!t.isEnded?(e.floatingAdSkipText.innerHTML=h.replace("%%TIME%%",s),c.style.display="none",u.innerHTML=h.replace("%%TIME%%",s),u.style.display="block",r.elementsOverlap(u,o)&&(u.style.display="none")):(e.readyForSkip||(t.test("log",i),t.test("VIDLA163_skip",i)),e.readyForSkip=!0,t.isFullscreen&&!e.pendingFullscreenExit&&(e.floatingAdSkipText.style.display="none",e.floatingSkipButton.style.display="block"),u.style.display="none",c.style.display="block"))};l.on("resize",function(){k()}),l.on("timeupdate",function(){var n=t.options.data.vastProgressEvent;if(!e.options.isWaterfall||!e.options.vpaid||e.options.vpaidImpressionFired){var i=Math.round(l.player().currentTime()),o=1e3*i;if(n&&"object"==typeof n){var r=function(){t.test("VIDLA163_Tracking",b)};for(var a in n){var s=n[a];if("number"==typeof s&&s>=0&&o>=s&&Object.keys(b).indexOf(a)===-1){b[a]=s;var d={};d.name=a,d.name&&t.dispatchEventToAdunit(d,r)}}}k()}})}if(e.options.skippable&&e.options.skippable.skipLocation)switch(e.options.skippable.skipLocation){case"top-right":o.style.right="",o.style.left="0px",i.style.right="",i.style.left="0px"}!e.options.disableTopBar&&n&&(e.options.skippable.enabled===!0&&(n.appendChild(c),n.appendChild(u)),n.appendChild(o)),l.on("timeupdate",function(){if(!e.options.vpaid){var t=Math.round(l.player().currentTime()),n=l.player().duration();if(n){var i=n/4,o=n/4*2,r=n/4*3;!g&&t>=i&&t=o&&t=r&&(e.dispatchEventToAdunit({name:"video-third-quartile"}),A=!0)}}})}}}},function(e,t,n){var i="[PlayerManager_EndCardSetup]",o=n(9),r=function(e){o.debug(i,e)},a=n(24);e.exports=function(e,t){return{init:function(n){if(r("init"),e.options.endCard.enabled){var i=e.options.endCard;if(i.showDefaultButtons){for(var o=-1,s=0;s=0&&i.buttons.splice(o,1)}r("Creating EndCard."),t.endCard=new a(i,n,t)}}}}},function(e,t,n){var i="[EndCard]",o=n(25),r=n(9),a=function(e){r.debug(i,e)},s=function(e){r.verbose(i,e)},l=function(e,t,n){this.layers=[],this.buttons=[],this.options=e,this.vjsPlayer=t,this.playerManager=n,this.firedCreativeView=!1,this.onLayerClick=function(e){e.stopPropagation(),e.target===e.currentTarget&&n.click()},e.layers=[{type:"videoAd"}],e.layers.push({type:"color",width:"100%",height:"100%",color:e.color}),e.layers.push({type:"companionAd"}),e.layers.push({type:"image",width:e.imageWidth,height:e.imageHeight,imageUrl:e.imageUrl}),this.createEndCardContainer(t.player().el_),this.createLayers(),this.createButtons()};l.prototype.styleForCentering=function(e,t,n){e.style.display="block",e.style.position="absolute",e.style.top=0,e.style.bottom=0,e.style.left=0,e.style.right=0,e.style.margin="auto",e.style.maxWidth=t||"100%",e.style.maxHeight=n||"100%",t&&(e.style.width=t),n&&(e.style.height=n)},l.prototype.styleSizeLimitScaleDown=function(e,t,n){var i=this,o=e.elem,r=function(){t=t||i.endCardElem.offsetWidth,n=n||i.endCardElem.offsetHeight;var a=o.offsetWidth,s=o.offsetHeight;if(!(t&&n&&a&&s))return void setTimeout(r,5);var l,d=t/n,c=a/s;if(dt&&(s=t/c,c*=s,u*=s),u>n&&(s=n/u,c*=s,u*=s);else if(c>t||u>n){a("xxx Skipping Companion: ["+h+"] - Companion size ("+c+"x"+u+") won't fit in ad unit.");continue}d=Math.abs(c*u-i),de||i.companionAd.height>t?i.elem.style.display="none":i.elem.style.display="block"):"image"===i.type&&"block"===i.elem.style}},l.prototype.saveSetStyle=function(e,t,n){void 0!==n&&(e.styleSave||(e.styleSave={}),e.elem&&(void 0===e.styleSave[t]&&(e.styleSave[t]=e.elem.style[t]),e.elem.style[t]=n))},l.prototype.restoreStyle=function(e){if(e.styleSave){if(e.elem)for(var t in e.styleSave)e.elem.style[t]=e.styleSave[t];delete e.styleSave}},l.prototype.createEndCardContainer=function(e){this.endCardElem||(this.endCardElem=e.ownerDocument.createElement("div"),e.appendChild(this.endCardElem),this.endCardElem.className="video-js vjs-default-skin vjs-controls-enabled vjs-big-play-centered vjs-has-started vjs-paused vjs-ended vjs-user-active",this.playerManager.isIosInlineRequired()?(this.endCardElem.style["background-color"]="",this.endCardElem.style.background=this.playerManager.options.playerSkin.videoBackgroundColor,this.endCardElem.style.opacity=1):this.endCardElem.style["background-color"]="rgba(0,0,0,0)",this.endCardElem.setAttribute("name","endCardContainer"),this.endCardElem.style.width="100%",this.endCardElem.style.height="100%",this.endCardElem.style.display="none",this.endCardElem.style.cursor=this.options.clickable?"pointer":"default",this.endCardElem.style.position="relative",this.endCardElem.style["text-align"]="center",this.options.clickable&&(this.endCardElem.onclick=this.onLayerClick))},l.prototype.createImageLayer=function(e,t){var n={},i=e.ownerDocument.createElement("img");e.appendChild(i),i.setAttribute("name","ecImageLayer"),i.id=t.id||"endCardImageLayer",i.setAttribute("src",t.imageUrl||""),i.style.cursor=this.options.clickable?"pointer":"default",this.styleForCentering(i,t.width,t.height),i.style.display="none",n.elem=i,n.opts=t,this.layers.push(n)},l.prototype.createColorLayer=function(e,t){var n={},i=e.ownerDocument.createElement("div");e.appendChild(i),i.setAttribute("name","ecColorLayer"),i.id=t.id||"endCardColorLayer",i.style["background-color"]=t.color||"black",i.style.cursor=this.options.clickable?"pointer":"default",this.styleForCentering(i,t.width||"100%",t.height||"100%"),t.color||(i.style.display="none"),n.elem=i,n.opts=t,this.layers.push(n)},l.prototype.createAdVideoLayer=function(e,t){if(void 0===this.videoLayer){var n={};n.elem=e,n.opts=t,e&&this.playerManager.isIosInlineRequired()&&(n.videoParent=e.parentElement,n.videoSibling=e.nextSibling),this.videoLayer=this.layers.length,this.layers.push(n)}else a("Can't create new video layer because one already exists!")},l.prototype.createCompanionLayer=function(e,t){var n={},i=e.ownerDocument.createElement("div");e.appendChild(i),i.setAttribute("name","ecCompanionLayer"),i.id="endCardCompanionLayer",i.style.position="absolute",i.style.width=t.width||"100%",i.style.height=t.height||"100%",this.styleForCentering(i),i.style["background-color"]="rgba(0,0,0,0)",n.elem=i,n.opts=t,this.layers.push(n)},l.prototype.show=function(){if(this.vjsPlayer&&this.vjsPlayer.controlBar&&this.vjsPlayer.controlBar.hide(),void 0!==this.videoLayer){var e=this.layers[this.videoLayer],t=this.options.layers[this.videoLayer];e.elem&&(e.videoParent&&(this.videoLayer0?i.elem.style.display="none":i.opts.imageUrl&&(n.styleSizeLimitScaleDown(i),i.elem.style.display="block")),n.options.clickable&&i.elem&&(i.elem.addEventListener("click",n.onLayerClick),i.elem.style.cursor="pointer"))}}),this.endCardElem.style.display="block"},l.prototype.hide=function(){if(void 0!==this.videoLayer){var e=this.layers[this.videoLayer];this.restoreStyle(e),e.videoParent&&e.videoParent.insertBefore(e.elem,e.videoSibling)}for(var t=0;t ",a=function(e,t,i,o,r){var a=e,s=o,l=r,d=(new Date).getTime()+Math.floor(1e4*Math.random());l({command:"addTrackingEvents",uniqueId:d,data:s});var c=function(){s.CompanionClickTracking&&l({command:"requestTracking",uniqueId:d,data:"companion-click"}),s.hasOwnProperty("StaticResource")&&s.CompanionClickThrough&&window.open(s.CompanionClickThrough)},u=function(){s.TrackingEvents&&s.TrackingEvents.length>0&&l({command:"requestTracking",uniqueId:d,data:"creative-view"})},p=!0;if(s.hasOwnProperty("StaticResource")){var h=s.StaticResource.type;if("application/x-javascript"===h){var m=document.createElement("script");m.src=s.StaticResource.src,m.onload=u(),a.appendChild(m)}else if(0===h.indexOf("image")){var v=document.createElement("img");v.src=s.StaticResource.src,v.style.maxWidth="100%",v.style.maxHeight="100%",v.style.width="auto",v.style.height="auto",v.style.margin="auto",v.style.display="block",v.style.top=0,v.style.bottom=0,v.style.left=0,v.style.right=0,v.style.position="absolute",v.onload=u(),v.onclick=c,p=!1,v.style.cursor="pointer",a.innerHTML="",a.style.position="relative",a.appendChild(v)}}else if(s.hasOwnProperty("IFrameResource")){var f=document.createElement("iframe");f.src=s.IFrameResource,f.scrolling="no",f.style.width="100%",f.style.height="100%",f.style.border="none",f.style.overflow="hidden",f.onload=u(),p=!1,a.appendChild(f)}else if(s.hasOwnProperty("HTMLResource"))if(0===s.HTMLResource.indexOf("http")){var g=n(29);g.load(s.HTMLResource,function(e,t){e||0===t.length||(a.style.display="inline-block",a.style.position="relative",a.innerHTML=t,u())})}else a.style.display="inline-block",a.style.position="relative",a.innerHTML=s.HTMLResource,u();p&&(s.hasOwnProperty("StaticResource")&&s.CompanionClickThrough&&(a.style.cursor="pointer"),a.onclick=c),this.stop=function(){"concurrent"===s.renderingMode&&(a.innerHTML="")}},s=function(e,t,n){var s=e,l=t,d=n,c=[];o.always(r,"Version: 0.1.10");for(var u=[],p=0;p"),t!==-1&&(n=n.substr(0,t+1)),n.trim()},d=function(e){if(0===e.length)return o.warn(r,"parseCompanions > empty companions xml"),null;e=l(e),""+e+"");var t=null;if("undefined"!=typeof window.DOMParser){if(t=(new DOMParser).parseFromString(e,"text/xml"),"parsererror"===t.documentElement.nodeName){try{o.error(r,"parseCompanions > Error reason = "+t.documentElement.childNodes[0].nodeValue)}catch(i){}return o.warn(r,"parseCompanions > invalide xml structure"),null}}else{if("undefined"==typeof window.ActiveXObject)return o.error(r,"parseCompanions > Failed to parse vast xml by window.ActiveXObject(Microsoft.XMLDOM)"),null;try{if(t=new window.ActiveXObject("Microsoft.XMLDOM"),t.loadXML(e),0!==t.parseError.errorCode)return o.error(r,t.parseError),null}catch(a){return o.error(r,"parseCompanions > Failed to parse vast xml by window.ActiveXObject(Microsoft.XMLDOM)",a),null}}if(!t)return o.error(r,"parseCompanions > invalid xml structure"),null;var s=n(30),d=s.parse(t);return d};e.exports={renderCompanions:function(e,t,n){o.log(r,"renderCompanions called.");var i=new s(e,t,n);return i},stopCompanions:function(e){e&&e.stop()},parse:function(e){return d(e)}}},function(e,t,n){function i(e){for(var t=[],n=0;n=e&&(i===-1||i>=E[o].width-e)&&(i>E[o].width-e&&(n.length=0),n.push(E[o]),i=E[o].width-e);if(n.length>0)E.length=0,E=n.slice();else{for(o=0;o=e-E[o].width)&&(i>e-E[o].width&&(n.length=0),n.push(E[o]),i=e-E[o].width);n.length>0&&(E.length=0,E=n.slice())}if(1!==E.length){for(n.length=0,i=-1,o=0;o=t&&(i===-1||i>=E[o].height-t)&&(i>E[o].height-t&&(n.length=0),n.push(E[o]),i=E[o].height-t);if(n.length>0)E.length=0,E=n.slice();else{for(o=0;o=t-E[o].height)&&(i>t-E[o].height&&(n.length=0),n.push(E[o]),i=t-E[o].height);n.length>0&&(E.length=0,E=n.slice())}}}function d(e){return 0===S||(1!==S||!o(e))&&(3!==S||!r(e))}function c(e){for(var t=[],n=-1,i=0;i=e-E[i].bitrate)&&(n>e-E[i].bitrate&&(t.length=0),n=e-E[i].bitrate,t.push(E[i]));if(t.length>0)E.length=0,E=t.slice();else for(i=0;i=e&&(n===-1||n>=E[i].bitrate-e)&&(n>E[i].bitrate-e&&(t.length=0),n=E[i].bitrate-e,t.push(E[i]));if(1===t.length||0===S)return t[0];if(1===S||3===S){for(i=0;i0){if(1===E.length)return E[0];l(e,t),i=1===E.length?E[0]:c(n)}return null===i&&(E=o.slice()),i}function p(e){S=2,e&&e.playerTechnology&&Array.isArray(e.playerTechnology)&&e.playerTechnology.length>0&&(1===e.playerTechnology.length?S="html5"===e.playerTechnology[0]?1:3:"flash"===e.playerTechnology[0]&&(S=4))}function h(e){S=2,e&&e.playerTechnology&&Array.isArray(e.playerTechnology)&&e.playerTechnology.length>0&&1===e.playerTechnology.length&&(S="html5"===e.playerTechnology[0]?1:3)}function m(e){return e?(1===S?e.requiredPlayer=1:3===S?e.requiredPlayer=2:o(e.type.toLowerCase())?e.requiredPlayer=2:r(e.type.toLowerCase())?e.requiredPlayer=1:e.requiredPlayer=0,e.success=!0,C.info(P,"Selected rendition: ",e),e):(C.error(P,"Failed to select rendition"),{success:!1,errorCode:403})}function v(e){if(e&&e>0)return C.info(P,"Selected bitrate (not from cache): "+e),e;var t=1;try{var n=I.getGenericData("anxBandwidth");n?(t=n,C.info(P,"Selected bitrate (from cache): "+t)):C.info(P,"No bitrate data present in cache (use bitrate 1)")}catch(i){C.warn(P,"Exception during getting bitrate from cache (use bitrate 1)")}return t}function f(e){return e&&e.playerTechnology&&Array.isArray(e.playerTechnology)&&2===e.playerTechnology.length&&"flash"===e.playerTechnology[0]&&"html5"===e.playerTechnology[1]&&(e.playerTechnology=["html5","flash"]),e}function g(){return navigator.appVersion.indexOf("Mobile")>-1||navigator.appVersion.indexOf("Android")>-1}function y(e,t,n,i){var o=u(e,t,n);return o&&d(o.type.toLowerCase())?(C.info(P,"VPAID selected"),o):(h(i),0===E.length?null:1===E.length?d(E[0].type.toLowerCase())?E[0]:null:(l(e,t),1===E.length?(C.log(P,"Rendition selected by size"),d(E[0].type.toLowerCase())?E[0]:null):(C.log(P,"Try select rendition by bitrate"),c(n))))}function A(e,t,n,i){i=f(i),p(i),s();var r=v(n),a=E.slice();E.length=0;for(var l=0;l0;n++){var l=t[n];if(E.length=0,E=s.slice(),b(l.width,l.height),1!==E.length)if(0!==E.length){for(var d=!1,c=0;c ";e.exports={init:function(e){E=i(e)},getUrl:function(e,t,n,i){return A(e,t,n,i)},selectCompanionsForContainers:function(e,t){T(e,t)}}},function(e,t,n){function i(e,t,n){switch(w){case 0:a(e,t);break;case 1:d(e,t,n);break;default:case 2:p(e,t)}}function o(e){switch(w){case 0:return s(e);case 1:return c(e);default:case 2:return h(e)}}function r(e){switch(w){case 0:l(e);break;case 1:u(e);break;default:case 2:m(e)}}function a(e,t){localStorage&&localStorage.setItem(e,t)}function s(e){if(localStorage)return localStorage.getItem(e)}function l(e){localStorage&&localStorage.removeItem(e)}function d(e,t,n){D.setItem(e,t,n?1/0:new Date(Date.now()+j).toUTCString())}function c(e){return D.getItem(e)}function u(e){D.removeItem(e)}function p(e,t){V&&(V[e]=t)}function h(e){if(V)return V[e]}function m(e){V&&delete V[e]}function v(){try{if(localStorage){var e="apntestls"+Math.random();try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(t){}}}catch(t){}return!1}function f(){try{if(document&&document.cookie){var e="apntestcookie"+Math.random();try{D.setItem(e,e,1/0);var t=D.hasItem(e)&&D.getItem(e)===e;return D.removeItem(e),t}catch(n){}}}catch(n){}return!1}function g(e,t){var n={};n.timestamp=(new Date).getTime(),n.ad=e;try{i(t,JSON.stringify(n))}catch(o){}}function y(e){var t,n=(new Date).getTime();try{var i=o(e);t=i&&JSON.parse(i),r(e)}catch(a){}if(t&&t.timestamp&&t.timestamp>0){var s=n-t.timestamp;if(s<=j)return t.ad}return null}function A(e){try{r(e)}catch(t){}}function b(e){j=e*C}function k(){var e,t;return t=o(_),e=t?parseInt(t):0,i(_,e+=1,!0),e}function T(e){return"apn_"+e}var w,E=n(28),S="Cache Manager",I=40,C=6e4,P=I*C,j=P,x="___appnexus_video_cachemanager_generic_data___",_="___appnexus_video_cachemanager_ad_token___",V={};w=v()?0:f()?1:2,E.debug("Using Cache Method "+w,S);var D={getItem:function(e){return e?decodeURIComponent(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},setItem:function(e,t,n,i,o,r){if(!e||/^(?:expires|max\-age|path|domain|secure)$/i.test(e))return!1;var a="";if(n)switch(n.constructor){case Number:a=n===1/0?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+n;break;case String:a="; expires="+n;break;case Date:a="; expires="+n.toUTCString()}return document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+a+(o?"; domain="+o:"")+(i?"; path="+i:"")+(r?"; secure":""),!0},removeItem:function(e,t,n){return!!this.hasItem(e)&&(document.cookie=encodeURIComponent(e)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(n?"; domain="+n:"")+(t?"; path="+t:""),!0)},hasItem:function(e){return!!e&&new RegExp("(?:^|;\\s*)"+encodeURIComponent(e).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},keys:function(){for(var e=document.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/),t=e.length,n=0;n0),t},objectToString:function(e,t){var n="null";if(t="undefined"!=typeof t?t:0,null!==e){n="OBJ[";var i="";for(var o in e){var a=e[o];if("object"==typeof a)if(t++,t0&&(i+=","),i+=o+"="+a}n+=i,n+="]"}return n},getRandomString:function(){return Math.random().toString(36).substring(2)},traceVastFromXhr:function(e,t){try{if(e)if(Array.isArray(e)){if(e.length>0){var n=[];for(var r in e)n.push(e[r].responseURL);var a=e[e.length-1];if(a){var s=i(a),l=a.responseURL;o.info(t,"Tag load chain:",n,"\n","Final Tag URL: ",l,"\n","Final Tag: ",s)}}}else{var d=i(e);o.info(t,"Tag URL:",e.responseURL,"\n","Tag:",d)}}catch(c){}}}},function(e,t,n){function i(e,t,o,r,a,s){var l,d=0,c=0,u=!1,p=n(28),h=n(27),m=!0,v=function(e){p.logDebug(e,"URL Loader")};if(a&&"undefined"!=typeof a.withCredentials&&(m=a.withCredentials),window.XMLHttpRequest)l=new XMLHttpRequest;else if(window.ActiveXObject)try{l=new ActiveXObject("Msxml2.XMLHTTP")}catch(f){try{l=new ActiveXObject("Microsoft.XMLHTTP")}catch(g){}}return l?(l.onreadystatechange=function(){if(4===l.readyState)if(200===l.status){if(o&&o.call(this,void 0,l.responseText,l),v("duration: "+c+", response length: "+l.responseText.length),u&&l.responseText&&l.responseText.length>2048){var e=8*l.responseText.length*1e3/(1024*Math.max(1,c)),t=parseInt(e.toString());v("Bandwidth: "+t);try{h.setGenericData("anxBandwidth",t)}catch(n){}}}else l.status>=400&&l.status<600&&o&&o.call(this,l.status,"",l);else 2===l.readyState?d=(new Date).getTime():3===l.readyState&&d>0&&(u=!0,c=(new Date).getTime()-d)},l.onerror=function(){if(m){var n=a?a:{};n.withCredentials=!1,i(e,t,o,r,n,s)}else if(o){var d=0===l.status?"404":l.status.toString();o.call(this,d,"",l)}},l.ontimeout=function(){o&&o.call(this,"Timeout","",l)},l.open(s,e),r&&(l.timeout=r),l.withCredentials=m,d=0,void("POST"===s?l.send(t):l.send())):void(o&&o.call(this,"406",""))}function o(e,t){r.log("Logging Event: "+t+" at url:"+e),new Image(1,1).src=e}var r=n(9);e.exports={load:function(e,t,n){i(e,null,t,n,{withCredentials:!0},"GET")},loadPost:function(e,t,n,o){i(e,t,n,o,{withCredentials:!0},"POST")},trackPixel:function(e,t){o(e,t)}}},function(e,t){var n={parse:function(e){var t={companions:[]},n=function(){this.getSubNodes=function(e,t){var n=e.getElementsByTagName(t);return n.length>0?n:null},this.getSubNode=function(e,t,n){n||(n=0);var i=e.getElementsByTagName(t);return i.length>n?i[n]:null},this.getNodeValue=function(e){if(0===e.childNodes.length)return"";var t=e.childNodes[0].nodeValue;return t.trim()},this.getNodeValues=function(e){if(0===e.childNodes.length)return"";for(var t="",n=0;n0&&(i=o.indexOf(".")>=0?parseFloat(o):parseInt(o)),i},this.getNodeAttributeBooleanValue=function(e,t,n){n||(n=!1);var i=n,o=this.getNodeAttributeValue(e,t);if(o.length>0){var r=o.toLowerCase().charAt(0); -i="t"===r}return i},this.getSubNodeValue=function(e,t,n){n="undefined"==typeof n?"":n;var i=this.getSubNode(e,t);return null!==i?this.getNodeValue(i):n},this.getSubNodeWholeValue=function(e,t,n){n="undefined"==typeof n?"":n;var i=this.getSubNode(e,t);return null!==i?this.getNodeValues(i):n},this.getSubNodeBooleanValue=function(e,t,n){n="undefined"==typeof n?"false":n;var i=this.getSubNodeValue(e,t);return i.length>0&&"t"===i.toLowerCase().charAt(0)||!(i.length>0&&"f"===i.toLowerCase().charAt(0))&&n}},i=new n,o=i.getSubNode(e,"CompanionAds"),r=i.getNodeAttributeValue(o,"required");r&&r.length>0&&(t.required=r);var a=i.getSubNodes(o,"Companion");if(a)for(var s=0;s0&&(d.assetWidth=p),p=i.getNodeAttributeNumberValue(l,"assetHeight",-1),p>0&&(d.assetHeight=p),p=i.getNodeAttributeNumberValue(l,"expandedWidth",-1),p>0&&(d.expandedWidth=p),p=i.getNodeAttributeNumberValue(l,"expandedHeight",-1),p>0&&(d.expandedHeight=p),p=i.getNodeAttributeValue(l,"apiFramework"),p&&(d.apiFramework=p),p=i.getNodeAttributeValue(l,"adSlotId"),p&&(d.adSlotId=p),p=i.getNodeAttributeValue(l,"required"),p&&(d.required=p),p=i.getNodeAttributeValue(l,"renderingMode"),p&&(d.renderingMode=p),p=i.getSubNodeValue(l,"AltText"),p&&(d.AltText=p),p=i.getSubNodeValue(l,"AdParameters"),p&&(d.AdParameters=p);var h=i.getSubNode(l,"StaticResource");if(h&&(p=i.getNodeAttributeValue(h,"creativeType"))){var m="video/x-flv"===p||"video/x-f4v"===p||"video/f4v"===p||"application/x-shockwave-flash"===p;if(m)continue;var v={type:p};p=i.getNodeValues(h),p&&(v.src=p,d.StaticResource=v)}p=i.getSubNodeWholeValue(l,"IFrameResource"),p&&(d.IFrameResource=p),p=i.getSubNodeWholeValue(l,"HTMLResource"),p&&(d.HTMLResource=p),p=i.getSubNodeValue(l,"CompanionClickThrough"),p&&(d.CompanionClickThrough=p);var f,g,y,A=i.getSubNodes(l,"CompanionClickTracking");if(A)for(d.CompanionClickTracking=[],f=0;f\n*/\n.vjs-default-skin {\n color: #CCCCCC;\n}\n/* Custom Icon Font\n--------------------------------------------------------------------------------\nThe control icons are from a custom font. Each icon corresponds to a character\n(e.g. "\\e001"). Font icons allow for easy scaling and coloring of icons.\n*/\n@font-face {\n font-family: \'VideoJS\';\n src: url(\'font/vjs.eot\');\n src: url(data:application/font-woff;base64,d09GRgABAAAAABG0AAsAAAAAEWgAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABPUy8yAAABCAAAAGAAAABgDxIHUGNtYXAAAAFoAAAAfAAAAHyz47CpZ2FzcAAAAeQAAAAIAAAACAAAABBnbHlmAAAB7AAADTwAAA08MPTaTGhlYWQAAA8oAAAANgAAADYP2gkbaGhlYQAAD2AAAAAkAAAAJAkgBThobXR4AAAPhAAAAGQAAABkW54DGGxvY2EAAA/oAAAANAAAADQeIiIQbWF4cAAAEBwAAAAgAAAAIAAiAIluYW1lAAAQPAAAAVYAAAFWUqTEiXBvc3QAABGUAAAAIAAAACAAAwAAAAMD/AGQAAUAAAKZAswAAACPApkCzAAAAesAMwEJAAAAAAAAAAAAAAAAAAAAARAAAAAAAAAAAAAAAAAAAAAAQAAA6ioDwP/AAEADwABAAAAAAQAAAAAAAAAAAAAAIAAAAAAAAwAAAAMAAAAcAAEAAwAAABwAAwABAAAAHAAEAGAAAAAUABAAAwAEAAEAIOAO4B/mAOkm6YTqKv/9//8AAAAAACDgAOAe5gDpJumE6ir//f//AAH/4yAEH/UaFRbwFpMV7gADAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAH//wAPAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAAAAAAAAAAAAAgAANzkBAAAAAAIAAP/ABAADwAAGAA0AAAERJwcnNycDBxchERc3BACgwGDAoKDAoP5goMADwP5goMBgwKD9YMCgAaCgwAAAAAABAMAAQANAA0AAAgAAEwkBwAKA/YADQP6A/oAAAgCAAEADgANAAAMABwAAEyERIQEhESGAAUD+wAHAAUD+wANA/QADAP0AAAABAAAADwHAA3EACwAAATYWFREUBi8BIxEzAZEUGxsU8aCgA3EUDBv8xBsMFPEBgAACAAAADwJHA3EAGAAkAAAlIiYnJjQ3PgE0JicmNDc2MhceARQGBw4BAzYWFREUBi8BIxEzAiUJEgcODh4fHx4ODg4oDiwtLSwHEp0UGxsU8aCg2wcHDigOHk1QTR4OKA4ODixxdHEsBwcClhQMG/zEGwwU8QGAAAADAAAADwNwA3EAHQA2AEIAACUiJicmNDc+ATQmJyY0NzYyFx4DFRQOAgcOASciJicmNDc+ATQmJyY0NzYyFx4BFAYHDgEDNhYVERQGLwEjETMC0AoRBw4OMTExMQ4ODicOHy8gEREgLx8HEbQJEgcODh4fHx4ODg4oDiwtLSwHEp0UGxsU8aCggAcIDicOMnuCezIOJw4PDx5HTVQrK1RNRx4IB1sHBw4oDh5NUE0eDigODg4scXRxLAcHApYUDBv8xBsMFPEBgAAAAAAEAAAADwRAA3EAIwBBAFoAZgAAJSImJyY0Nz4DNTQuAicmNDc2MhceAxUUDgIHDgEjJyImJyY0Nz4BNCYnJjQ3NjIXHgMVFA4CBw4BJyImJyY0Nz4BNCYnJjQ3NjIXHgEUBgcOAQM2FhURFAYvASMRMwN6CRIHDg4hMyISEiIzIQ4ODigOKD0pFhYpPSgHEgmqChEHDg4xMTExDg4OJw4fLyARESAvHwcRtAkSBw4OHh8fHg4ODigOLC0tLAcSnRQbGxTxoKAmBwcOKA4hTFNaLi5aU0whDigODg4oW2VsODhsZVsoBwdaBwgOJw4ye4J7Mg4nDg8PHkdNVCsrVE1HHggHWwcHDigOHk1QTR4OKA4ODixxdHEsBwcClhQMG/zEGwwU8QGAAAEAwP/AA0ADwAADAAAJAwIA/sABQAFAA8D+AP4AAgAABAAA/7oFXgPAAAMALwBSAHUAABMhESEBLgEnLgEnLgMjIg4CBw4BBw4BBx4BFx4BFx4DFz4DNz4BNz4BJS4DIyIOAhUUHgIzMj4CNyMOASMiJjU0NjMyFhczIS4DIyIOAhUUHgIzMj4CNyMOASMiJjU0NjMyFhczAAVe+qIE3QESIAUUCRBVfZxWVZ+AWBAJFAcfEQICER8HFAkQWICfVVacfVUQCRQFIBL9ugQgOE4yLlA7IiA8VjcrSTYjBIoEIyM2ICsmIikDiAHeBCE3TjMtUDsiIDxWNixJNiIFigQjIzcfKyYhKQSIA8D7+gIHh4opCQwHCxAKBAQKEAsHDAkpioeHiSoJDAYMEAoFAQEFChAMBgwJKom2NVM5HyhLa0JDa0soHzpUNSc1WzpPUS8rNVM5HyhLa0JDa0soHzpUNSc1WzpPUS8rAAABAIAAQAOAA0AAAwAAEyERIYADAP0AA0D9AAAACAA4AAADwAPAAAsAFwAjAC8ASABhAHoAhgAAARQWMzI2NTQmIyIGBRQWMzI2NTQmIyIGExQWMzI2NTQmIyIGAxQWMzI2NTQmIyIGBTgBMRQWMzI2NTgBMTgBMTQmIyIGFRQ0MSU4ATEUFjMyNjU4ATE4ATE0JiMiBhUUNDEDOAExFBYzMjY1OAExOAExNCYjIgYVFDQxAxQWMzI2NTQmIyIGAYBLNTVLSzU1SwEQSzU1S0s1NUuwJRsbJSUbGyVwJRsaJiYaGyX+8CUbGyUlGxsl/vAmGhslJRsaJiA5Jyg4OCgnOVgqHh4qKh4eKgNANUtLNTVLS6U1S0s1NUtL/rsbJSUbGyUl/tUaJiYaGyUlixslJRsbJSUbGxtwGiYmGhslJRsaGgIgKDg4KCc5OScoKP7wHioqHh4qKgAAAAACAAD/wAQAA8AABgANAAABEScHJzcnAQcXIREXNwHAoMBgwKAD4MCg/mCgwAGA/mCgwGDAoAHgwKABoKDAAAAAAQAA/8AEAAOAACIAAAEyHgIVFA4CIyImJw4DBzU+ATU0JicuAzU0PgICAGq7i1BQi7tqFCgUKVpdYDAzTQEBLEYxG1CLuwOAQXGYVlaYcUEDAikzHQoCGxpXNAcPBxxIUlwxVphxQQADAAD/wAQAA8AAEwAnAFoAAAEiDgIVFB4CMzI+AjU0LgIDMh4CFRQOAiMiLgI1ND4CAQ4DIyIuAicuAzU0PgI3FzgBMQ4BFBYXHgEzMjY3PgE0Jic3HgMVFA4CAgBqu4tQUIu7amq7i1BQi7tqNV1GKChGXTU1XUYoKEZdAWYeR01UKytUTUceHy8gEREgLx9DMTExMTB7Q0N7MDExMTFDHy8gEREgLwPAUIu7amq7i1BQi7tqaruLUP8AKEZdNTVdRigoRl01NV1GKP3PHy8gEREgLx8eR01UKytUTUceQzJ7gnsyLzMzLzJ7gnsyQx5HTVQrK1RNRwAAAAABAAD/wAQAA8AAMwAAASIGByU+ATU0JiclHgEzMjY1NCYjIgYVFBYXBS4BIyIGFRQWMzI2NwUOARUUFjMyNjU0JgNgIjsW/lEBAQEBAa8WOyJCXl5CQl4BAf5RFjsiQl5eQiI7FgGvAQFeQkJeXgEAGhfYBg0GBg0G2BcaXkJCXl5CBg0G2BcaXkJCXhoX2AYNBkJeXkJCXgAAAAACACD/8AQAA7AAOgByAAABLgEnLgEnLgEnLgEHDgEHDgEHDgEHDgEXHgEXHgEXHgEXHgE3PgE3PgE3PgE3PgE3OgEzMjY1PAE1MQcOAQcOAQcOAScuAScuAScuAScuATc+ATc+ATc+ATc+ARceARceARceARceAQcxHAEVFBYXDgEHBAABFRUUOSQjVC4tYTExXywtTyEhNBESEAEBFBMTNiEiTisrWi4uWSkpSx4fMRAJDgMBAgEbJWYRMx8fSSgoVSoqUycmRR0dLA8PDgEBEhARLh0eQyUlTycnTSQjQBobKQ4NDQEhGAUPCwHAMmMtLlIiIzUSEhEBARUTFDcjIlEtLF4vL1wrK00gIDIQERABARQSEjQhIEwpGTQbJRsBAwGqKEceHi4QDw8BARIRETEeHkcmJ1EpKVAlJUIcGysODw0BAREQEC0cHEEkI0smAQMBGSQDGjMYAAACAAD/wAQAA8AAGQAzAAABIg4CBz4DMzIeAhUUFjMyNjU0LgIDMj4CNw4DIyIuAjU0JiMiBhUUHgICAGm4ilIDAkNxlVVWmHFBOCgoOFCLu2ppuIpSAwJDcZVVVphxQTgoKDhQi7sDwE6Itmhbn3ZERnqjXSg4OChqu4tQ/ABOiLZoW592REZ6o10oODgoaruLUAAAAgAA/8AEAAPAADAAPAAAATUnLgEnNycHLgEvASMHDgEHJwcXDgEPARUXHgEXBxc3HgEfATM3PgE3FzcnPgE/AQUiJjU0NjMyFhUUBgQAkwQLBlaIeQwbDhjAGA4bDHmIVgYLBJOTBQoHV4h6DBoNGcAZDRoMeohXBwoFk/4ANUtLNTVLSwFgwBkNGg15iFYGCwWSkgULBlaIeQ0aDRnAGQ0aDXmIVwYLBZOTBQsGV4h5DRoNGSBLNTVLSzU1SwAABgBA/8ADwAPAABkAIQA3AEUAUwBhAAABLgEnLgEnLgEjISIGFREUFjMhMjY1ETQmJyceARcjNR4BExQGIyEiJjURNDYzMDoCMRUUFjsBAyEiJjU0NjMhMhYVFAYnISImNTQ2MyEyFhUUBichIiY1NDYzITIWFRQGA5YRLRkaMxcnKQv+ECEvLyEC4CEvDhyFFyUNmhEphgkH/SAHCQkHm7qbEw3goP5ADRMTDQHADRMTDf5ADRMTDQHADRMTDf5ADRMTDQHADRMTAtsXMxoZLREcDi8h/KAhLy8hAnALKSc2FykRmg0l/OgHCQkHA2AHCeANE/4AEw0NExMNDROAEw0NExMNDROAEw0NExMNDRMAAAAAAQAA/8AEAAPAAC0AAAEhNy4BIyIGBw4BFRQWFx4BMzI2Nz4BNxcOAyMiLgI1ND4CMzIeAhc3BAD+gJA3jE1NjDc2Ojo2N4xNTYw3BAkEYCNWYmw6aruLUFCLu2o1ZFxSI5YCQJA2Ojo2N4xNTYw3Njo6NgUJBVQoQS0ZUIu7amq7i1AVJzcjlgAAAAACAAAAAAPAA34ADwAqAAABFSMnByM1Nyc1Mxc3MxUHASImLwEjIiY1ETQ2OwE3PgEXHgEVERQGBw4BA8BVa2tVa2tVa2tVa/5LBgwF9nMNExMNc/YHEwkJCwsJAwYBVVVra1Vra1Vra1Vr/kAFBPcTDQFADRP3BgQDBBAK/MAKEAQBAQABAAAAAQAAi1igY18PPPUACwQAAAAAANWuYlIAAAAA1a5iUgAA/7oFXgPAAAAACAACAAAAAAAAAAEAAAPA/8AAAAVeAAAAAAVeAAEAAAAAAAAAAAAAAAAAAAAZBAAAAAAAAAAAAAAAAgAAAAQAAAAEAADABAAAgAQAAAAEAAAABAAAAARAAAAEAADABV4AAAQAAIAEAAA4BAAAAAQAAAAEAAAABAAAAAQAACAEAAAABAAAAAQAAEAEAAAABAAAAAAAAAAACgAUAB4APgBMAGIAegC2ARwBsAHAAmYCdAMUAzQDaAPmBDQE4gUsBYwGFgZcBp4AAQAAABkAhwAIAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAMAAAABAAAAAAACAAcAPAABAAAAAAADAAMAKgABAAAAAAAEAAMAUQABAAAAAAAFAAsACQABAAAAAAAGAAMAMwABAAAAAAAKABoAWgADAAEECQABAAYAAwADAAEECQACAA4AQwADAAEECQADAAYALQADAAEECQAEAAYAVAADAAEECQAFABYAFAADAAEECQAGAAYANgADAAEECQAKADQAdHZqcwB2AGoAc1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMHZqcwB2AGoAc3ZqcwB2AGoAc1JlZ3VsYXIAUgBlAGcAdQBsAGEAcnZqcwB2AGoAc0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=) format("woff"), url(\'font/vjs.eot?#iefix\') format(\'embedded-opentype\'), url(\'font/vjs.ttf\') format(\'truetype\'), url(\'font/vjs.svg#icomoon\') format(\'svg\');\n font-weight: normal;\n font-style: normal;\n}\n/* Base UI Component Classes\n--------------------------------------------------------------------------------\n*/\n/* Slider - used for Volume bar and Seek bar */\n.vjs-default-skin .vjs-slider {\n /* Replace browser focus highlight with handle highlight */\n outline: 0;\n position: relative;\n cursor: pointer;\n padding: 0;\n /* background-color-with-alpha */\n background-color: #333333;\n background-color: rgba(51, 51, 51, 0.9);\n}\n.vjs-default-skin .vjs-slider:focus {\n /* box-shadow */\n -webkit-box-shadow: 0 0 2em #fff;\n -moz-box-shadow: 0 0 2em #fff;\n box-shadow: 0 0 2em #fff;\n}\n.vjs-default-skin .vjs-slider-handle {\n position: absolute;\n /* Needed for IE6 */\n left: 0;\n top: 0;\n}\n.vjs-default-skin .vjs-slider-handle:before {\n content: "\\e009";\n font-family: VideoJS;\n font-size: 1em;\n line-height: 1;\n text-align: center;\n text-shadow: 0em 0em 1em #fff;\n position: absolute;\n top: 0;\n left: 0;\n /* Rotate the square icon to make a diamond */\n /* transform */\n -webkit-transform: rotate(-45deg);\n -moz-transform: rotate(-45deg);\n -ms-transform: rotate(-45deg);\n -o-transform: rotate(-45deg);\n transform: rotate(-45deg);\n}\n/* Control Bar\n--------------------------------------------------------------------------------\nThe default control bar that is a container for most of the controls.\n*/\n.vjs-default-skin .vjs-control-bar {\n /* Start hidden */\n display: none;\n position: absolute;\n /* Place control bar at the bottom of the player box/video.\n If you want more margin below the control bar, add more height. */\n bottom: 0;\n /* Use left/right to stretch to 100% width of player div */\n left: 0;\n right: 0;\n /* Height includes any margin you want above or below control items */\n height: 3.0em;\n /* background-color-with-alpha */\n background-color: #07141E;\n background-color: rgba(7, 20, 30, 0.7);\n}\n/* Show the control bar only once the video has started playing */\n.vjs-default-skin.vjs-has-started .vjs-control-bar {\n display: block;\n /* Visibility needed to make sure things hide in older browsers too. */\n visibility: visible;\n opacity: 1;\n /* transition */\n -webkit-transition: visibility 0.1s, opacity 0.1s;\n -moz-transition: visibility 0.1s, opacity 0.1s;\n -o-transition: visibility 0.1s, opacity 0.1s;\n transition: visibility 0.1s, opacity 0.1s;\n}\n/* Hide the control bar when the video is playing and the user is inactive */\n.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {\n display: block;\n visibility: hidden;\n opacity: 0;\n /* transition */\n -webkit-transition: visibility 0.5s, opacity 0.5s;\n -moz-transition: visibility 0.5s, opacity 0.5s;\n -o-transition: visibility 0.5s, opacity 0.5s;\n transition: visibility 0.5s, opacity 0.5s;\n}\n.vjs-default-skin.vjs-controls-disabled .vjs-control-bar {\n display: none;\n}\n.vjs-default-skin.vjs-using-native-controls .vjs-control-bar {\n display: none;\n}\n/* The control bar shouldn\'t show after an error */\n.vjs-default-skin.vjs-error .vjs-control-bar {\n display: none;\n}\n/* Don\'t hide the control bar if it\'s audio */\n.vjs-audio.vjs-default-skin.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar {\n opacity: 1;\n visibility: visible;\n}\n/* IE8 is flakey with fonts, and you have to change the actual content to force\nfonts to show/hide properly.\n - "\\9" IE8 hack didn\'t work for this\n - Found in XP IE8 from http://modern.ie. Does not show up in "IE8 mode" in IE9\n*/\n@media \\0screen {\n .vjs-default-skin.vjs-user-inactive.vjs-playing .vjs-control-bar :before {\n content: "";\n }\n}\n/* General styles for individual controls. */\n.vjs-default-skin .vjs-control {\n outline: none;\n position: relative;\n float: left;\n text-align: center;\n margin: 0;\n padding: 0;\n height: 3.0em;\n width: 4em;\n}\n/* Font button icons */\n.vjs-default-skin .vjs-control:before {\n font-family: VideoJS;\n font-size: 1.5em;\n line-height: 2;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n text-align: center;\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);\n}\n/* Replacement for focus outline */\n.vjs-default-skin .vjs-control:focus:before,\n.vjs-default-skin .vjs-control:hover:before {\n text-shadow: 0em 0em 1em #ffffff;\n}\n.vjs-default-skin .vjs-control:focus {\n /* outline: 0; */\n /* keyboard-only users cannot see the focus on several of the UI elements when\n this is set to 0 */\n}\n/* Hide control text visually, but have it available for screenreaders */\n.vjs-default-skin .vjs-control-text {\n /* hide-visually */\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n/* Play/Pause\n--------------------------------------------------------------------------------\n*/\n.vjs-default-skin .vjs-play-control {\n width: 5em;\n cursor: pointer;\n}\n.vjs-default-skin .vjs-play-control:before {\n content: "\\e001";\n}\n.vjs-default-skin.vjs-playing .vjs-play-control:before {\n content: "\\e002";\n}\n/* Playback toggle\n--------------------------------------------------------------------------------\n*/\n.vjs-default-skin .vjs-playback-rate .vjs-playback-rate-value {\n font-size: 1.5em;\n line-height: 2;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n text-align: center;\n text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);\n}\n.vjs-default-skin .vjs-playback-rate.vjs-menu-button .vjs-menu .vjs-menu-content {\n width: 4em;\n left: -2em;\n list-style: none;\n}\n/* Volume/Mute\n-------------------------------------------------------------------------------- */\n.vjs-default-skin .vjs-mute-control,\n.vjs-default-skin .vjs-volume-menu-button {\n cursor: pointer;\n float: right;\n}\n.vjs-default-skin .vjs-mute-control:before,\n.vjs-default-skin .vjs-volume-menu-button:before {\n content: "\\e006";\n}\n.vjs-default-skin .vjs-mute-control.vjs-vol-0:before,\n.vjs-default-skin .vjs-volume-menu-button.vjs-vol-0:before {\n content: "\\e003";\n}\n.vjs-default-skin .vjs-mute-control.vjs-vol-1:before,\n.vjs-default-skin .vjs-volume-menu-button.vjs-vol-1:before {\n content: "\\e004";\n}\n.vjs-default-skin .vjs-mute-control.vjs-vol-2:before,\n.vjs-default-skin .vjs-volume-menu-button.vjs-vol-2:before {\n content: "\\e005";\n}\n.vjs-default-skin .vjs-volume-control {\n width: 5em;\n float: right;\n}\n.vjs-default-skin .vjs-volume-bar {\n width: 5em;\n height: 0.6em;\n margin: 1.1em auto 0;\n}\n.vjs-default-skin .vjs-volume-level {\n position: absolute;\n top: 0;\n left: 0;\n height: 0.5em;\n /* assuming volume starts at 1.0 */\n width: 100%;\n background: #66A8CC url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat;\n}\n.vjs-default-skin .vjs-volume-bar .vjs-volume-handle {\n width: 0.5em;\n height: 0.5em;\n /* Assumes volume starts at 1.0. If you change the size of the\n handle relative to the volume bar, you\'ll need to update this value\n too. */\n left: 4.5em;\n}\n.vjs-default-skin .vjs-volume-handle:before {\n font-size: 0.9em;\n top: -0.2em;\n left: -0.2em;\n width: 1em;\n height: 1em;\n}\n/* The volume menu button is like menu buttons (captions/subtitles) but works\n a little differently. It needs to be possible to tab to the volume slider\n without hitting space bar on the menu button. To do this we\'re not using\n display:none to hide the slider menu by default, and instead setting the\n width and height to zero. */\n.vjs-default-skin .vjs-volume-menu-button .vjs-menu {\n display: block;\n width: 0;\n height: 0;\n border-top-color: transparent;\n}\n.vjs-default-skin .vjs-volume-menu-button .vjs-menu .vjs-menu-content {\n height: 0;\n width: 0;\n}\n.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu,\n.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing {\n border-top-color: rgba(7, 40, 50, 0.5);\n /* Same as ul background */\n}\n.vjs-default-skin .vjs-volume-menu-button:hover .vjs-menu .vjs-menu-content,\n.vjs-default-skin .vjs-volume-menu-button .vjs-menu.vjs-lock-showing .vjs-menu-content {\n height: 2.9em;\n width: 10em;\n}\n/* Progress\n--------------------------------------------------------------------------------\n*/\n.vjs-default-skin .vjs-progress-control {\n position: absolute;\n left: 0;\n right: 0;\n width: auto;\n font-size: 0.3em;\n height: 1.2em;\n /* Increase default height of progress bar by a decision for VIDLA-1692 */\n /* Set above the rest of the controls. */\n top: -1em;\n /* Shrink the bar slower than it grows. */\n /* transition */\n -webkit-transition: all 0.4s;\n -moz-transition: all 0.4s;\n -o-transition: all 0.4s;\n transition: all 0.4s;\n}\n/* On hover, make the progress bar grow to something that\'s more clickable.\n This simply changes the overall font for the progress bar, and this\n updates both the em-based widths and heights, as wells as the icon font */\n.vjs-default-skin:hover .vjs-progress-control {\n /* commented out by a decision for VIDLA-1692 */\n /* font-size: .9em; */\n /* Even though we\'re not changing the top/height, we need to include them in\n the transition so they\'re handled correctly. */\n /* .transition(all 0.2s); */\n}\n/* Box containing play and load progresses. Also acts as seek scrubber. */\n.vjs-default-skin .vjs-progress-holder {\n height: 100%;\n}\n/* Progress Bars */\n.vjs-default-skin .vjs-progress-holder .vjs-play-progress,\n.vjs-default-skin .vjs-progress-holder .vjs-load-progress,\n.vjs-default-skin .vjs-progress-holder .vjs-load-progress div {\n position: absolute;\n display: block;\n height: 100%;\n margin: 0;\n padding: 0;\n /* updated by javascript during playback */\n width: 0;\n /* Needed for IE6 */\n left: 0;\n top: 0;\n}\n.vjs-default-skin .vjs-play-progress {\n /*\n Using a data URI to create the white diagonal lines with a transparent\n background. Surprisingly works in IE8.\n Created using http://www.patternify.com\n Changing the first color value will change the bar color.\n Also using a paralax effect to make the lines move backwards.\n The -50% left position makes that happen.\n */\n background: #66A8CC url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAP0lEQVQIHWWMAQoAIAgDR/QJ/Ub//04+w7ZICBwcOg5FZi5iBB82AGzixEglJrd4TVK5XUJpskSTEvpdFzX9AB2pGziSQcvAAAAAAElFTkSuQmCC) -50% 0 repeat;\n}\n.vjs-default-skin .vjs-load-progress {\n background: #646464 /* IE8- Fallback */;\n background: rgba(255, 255, 255, 0.2);\n}\n/* there are child elements of the load progress bar that represent the\n specific time ranges that have been buffered */\n.vjs-default-skin .vjs-load-progress div {\n background: #787878 /* IE8- Fallback */;\n background: rgba(255, 255, 255, 0.1);\n}\n.vjs-default-skin .vjs-seek-handle {\n width: 1.5em;\n height: 100%;\n}\n.vjs-default-skin .vjs-seek-handle:before {\n padding-top: 0.1em /* Minor adjustment */;\n}\n/* Live Mode\n--------------------------------------------------------------------------------\n*/\n.vjs-default-skin.vjs-live .vjs-time-controls,\n.vjs-default-skin.vjs-live .vjs-time-divider,\n.vjs-default-skin.vjs-live .vjs-progress-control {\n display: none;\n}\n.vjs-default-skin.vjs-live .vjs-live-display {\n display: block;\n}\n/* Live Display\n--------------------------------------------------------------------------------\n*/\n.vjs-default-skin .vjs-live-display {\n display: none;\n font-size: 1em;\n line-height: 3em;\n}\n/* Time Display\n--------------------------------------------------------------------------------\n*/\n.vjs-default-skin .vjs-time-controls {\n font-size: 1em;\n /* Align vertically by making the line height the same as the control bar */\n line-height: 3em;\n}\n.vjs-default-skin .vjs-current-time {\n float: left;\n}\n.vjs-default-skin .vjs-duration {\n float: left;\n}\n/* Remaining time is in the HTML, but not included in default design */\n.vjs-default-skin .vjs-remaining-time {\n display: none;\n float: left;\n}\n.vjs-time-divider {\n float: left;\n line-height: 3em;\n}\n/* Fullscreen\n--------------------------------------------------------------------------------\n*/\n.vjs-default-skin .vjs-fullscreen-control {\n width: 3.8em;\n cursor: pointer;\n float: right;\n}\n.vjs-default-skin .vjs-fullscreen-control:before {\n content: "\\e000";\n}\n/* Switch to the exit icon when the player is in fullscreen */\n.vjs-default-skin.vjs-fullscreen .vjs-fullscreen-control:before {\n content: "\\e00b";\n}\n/* Big Play Button (play button at start)\n--------------------------------------------------------------------------------\nPositioning of the play button in the center or other corners can be done more\neasily in the skin designer. http://designer.videojs.com/\n*/\n.vjs-default-skin .vjs-big-play-button {\n left: 0.5em;\n top: 0.5em;\n font-size: 3em;\n display: block;\n z-index: 2;\n position: absolute;\n width: 4em;\n height: 2.6em;\n text-align: center;\n vertical-align: middle;\n cursor: pointer;\n opacity: 1;\n /* Need a slightly gray bg so it can be seen on black backgrounds */\n /* background-color-with-alpha */\n background-color: #07141E;\n background-color: rgba(7, 20, 30, 0.7);\n border: 0.1em solid #3b4249;\n /* border-radius */\n -webkit-border-radius: 0.8em;\n -moz-border-radius: 0.8em;\n border-radius: 0.8em;\n /* box-shadow */\n -webkit-box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);\n -moz-box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);\n box-shadow: 0px 0px 1em rgba(255, 255, 255, 0.25);\n /* transition */\n -webkit-transition: all 0.4s;\n -moz-transition: all 0.4s;\n -o-transition: all 0.4s;\n transition: all 0.4s;\n}\n/* Optionally center */\n.vjs-default-skin.vjs-big-play-centered .vjs-big-play-button {\n /* Center it horizontally */\n left: 50%;\n margin-left: -2.1em;\n /* Center it vertically */\n top: 50%;\n margin-top: -1.4em;\n}\n/* Hide if controls are disabled */\n.vjs-default-skin.vjs-controls-disabled .vjs-big-play-button {\n display: none;\n}\n/* Hide when video starts playing */\n.vjs-default-skin.vjs-has-started .vjs-big-play-button {\n display: none;\n}\n/* Hide on mobile devices. Remove when we stop using native controls\n by default on mobile */\n.vjs-default-skin.vjs-using-native-controls .vjs-big-play-button {\n display: none;\n}\n.vjs-default-skin:hover .vjs-big-play-button,\n.vjs-default-skin .vjs-big-play-button:focus {\n outline: 0;\n border-color: #fff;\n /* IE8 needs a non-glow hover state */\n background-color: #505050;\n background-color: rgba(50, 50, 50, 0.75);\n /* box-shadow */\n -webkit-box-shadow: 0 0 3em #fff;\n -moz-box-shadow: 0 0 3em #fff;\n box-shadow: 0 0 3em #fff;\n /* transition */\n -webkit-transition: all 0s;\n -moz-transition: all 0s;\n -o-transition: all 0s;\n transition: all 0s;\n}\n.vjs-default-skin .vjs-big-play-button:before {\n content: "\\e001";\n font-family: VideoJS;\n /* In order to center the play icon vertically we need to set the line height\n to the same as the button height */\n line-height: 2.6em;\n text-shadow: 0.05em 0.05em 0.1em #000;\n text-align: center /* Needed for IE8 */;\n position: absolute;\n left: 0;\n width: 100%;\n height: 100%;\n}\n.vjs-error .vjs-big-play-button {\n display: none;\n}\n/* Error Display\n--------------------------------------------------------------------------------\n*/\n.vjs-error-display {\n display: none;\n}\n.vjs-error .vjs-error-display {\n display: block;\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n}\n.vjs-error .vjs-error-display:before {\n content: \'X\';\n font-family: Arial;\n font-size: 4em;\n color: #666666;\n /* In order to center the play icon vertically we need to set the line height\n to the same as the button height */\n line-height: 1;\n text-shadow: 0.05em 0.05em 0.1em #000;\n text-align: center /* Needed for IE8 */;\n vertical-align: middle;\n position: absolute;\n left: 0;\n top: 50%;\n margin-top: -0.5em;\n width: 100%;\n}\n.vjs-error-display div {\n position: absolute;\n bottom: 1em;\n right: 0;\n left: 0;\n font-size: 1.4em;\n text-align: center;\n padding: 3px;\n background: #000000;\n background: rgba(0, 0, 0, 0.5);\n}\n.vjs-error-display a,\n.vjs-error-display a:visited {\n color: #F4A460;\n}\n/* Loading Spinner\n--------------------------------------------------------------------------------\n*/\n.vjs-loading-spinner {\n /* Should be hidden by default */\n display: none;\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 4em;\n line-height: 1;\n width: 1em;\n height: 1em;\n margin-left: -0.5em;\n margin-top: -0.5em;\n opacity: 0.75;\n}\n/* Show the spinner when waiting for data and seeking to a new time */\n.vjs-waiting .vjs-loading-spinner,\n.vjs-seeking .vjs-loading-spinner {\n display: block;\n /* only animate when showing because it can be processor heavy */\n /* animation */\n -webkit-animation: spin 1.5s infinite linear;\n -moz-animation: spin 1.5s infinite linear;\n -o-animation: spin 1.5s infinite linear;\n animation: spin 1.5s infinite linear;\n}\n/* Errors are unrecoverable without user interaction so hide the spinner */\n.vjs-error .vjs-loading-spinner {\n display: none;\n /* ensure animation doesn\'t continue while hidden */\n /* animation */\n -webkit-animation: none;\n -moz-animation: none;\n -o-animation: none;\n animation: none;\n}\n.vjs-default-skin .vjs-loading-spinner:before {\n content: "\\e01e";\n font-family: VideoJS;\n position: absolute;\n top: 0;\n left: 0;\n width: 1em;\n height: 1em;\n text-align: center;\n text-shadow: 0em 0em 0.1em #000;\n}\n@-moz-keyframes spin {\n 0% {\n -moz-transform: rotate(0deg);\n }\n 100% {\n -moz-transform: rotate(359deg);\n }\n}\n@-webkit-keyframes spin {\n 0% {\n -webkit-transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(359deg);\n }\n}\n@-o-keyframes spin {\n 0% {\n -o-transform: rotate(0deg);\n }\n 100% {\n -o-transform: rotate(359deg);\n }\n}\n@keyframes spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(359deg);\n }\n}\n/* Menu Buttons (Captions/Subtitles/etc.)\n--------------------------------------------------------------------------------\n*/\n.vjs-default-skin .vjs-menu-button {\n float: right;\n cursor: pointer;\n}\n.vjs-default-skin .vjs-menu {\n display: none;\n position: absolute;\n bottom: 0;\n left: 0em;\n /* (Width of vjs-menu - width of button) / 2 */\n width: 0em;\n height: 0em;\n margin-bottom: 3em;\n border-left: 2em solid transparent;\n border-right: 2em solid transparent;\n border-top: 1.55em solid #000000;\n /* Same width top as ul bottom */\n border-top-color: rgba(7, 40, 50, 0.5);\n /* Same as ul background */\n}\n/* Button Pop-up Menu */\n.vjs-default-skin .vjs-menu-button .vjs-menu .vjs-menu-content {\n display: block;\n padding: 0;\n margin: 0;\n position: absolute;\n width: 10em;\n bottom: 1.5em;\n /* Same bottom as vjs-menu border-top */\n max-height: 15em;\n overflow: auto;\n left: -5em;\n /* Width of menu - width of button / 2 */\n /* background-color-with-alpha */\n background-color: #07141E;\n background-color: rgba(7, 20, 30, 0.7);\n /* box-shadow */\n -webkit-box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);\n -moz-box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);\n box-shadow: -0.2em -0.2em 0.3em rgba(255, 255, 255, 0.2);\n}\n.vjs-default-skin .vjs-menu-button:hover .vjs-control-content .vjs-menu,\n.vjs-default-skin .vjs-control-content .vjs-menu.vjs-lock-showing {\n display: block;\n}\n/* prevent menus from opening while scrubbing (FF, IE) */\n.vjs-default-skin.vjs-scrubbing .vjs-menu-button:hover .vjs-control-content .vjs-menu {\n display: none;\n}\n.vjs-default-skin .vjs-menu-button ul li {\n list-style: none;\n margin: 0;\n padding: 0.3em 0 0.3em 0;\n line-height: 1.4em;\n font-size: 1.2em;\n text-align: center;\n text-transform: lowercase;\n}\n.vjs-default-skin .vjs-menu-button ul li.vjs-selected {\n background-color: #000;\n}\n.vjs-default-skin .vjs-menu-button ul li:focus,\n.vjs-default-skin .vjs-menu-button ul li:hover,\n.vjs-default-skin .vjs-menu-button ul li.vjs-selected:focus,\n.vjs-default-skin .vjs-menu-button ul li.vjs-selected:hover {\n outline: 0;\n color: #111;\n /* background-color-with-alpha */\n background-color: #ffffff;\n background-color: rgba(255, 255, 255, 0.75);\n /* box-shadow */\n -webkit-box-shadow: 0 0 1em #ffffff;\n -moz-box-shadow: 0 0 1em #ffffff;\n box-shadow: 0 0 1em #ffffff;\n}\n.vjs-default-skin .vjs-menu-button ul li.vjs-menu-title {\n text-align: center;\n text-transform: uppercase;\n font-size: 1em;\n line-height: 2em;\n padding: 0;\n margin: 0 0 0.3em 0;\n font-weight: bold;\n cursor: default;\n}\n/* Subtitles Button */\n.vjs-default-skin .vjs-subtitles-button:before {\n content: "\\e00c";\n}\n/* Captions Button */\n.vjs-default-skin .vjs-captions-button:before {\n content: "\\e008";\n}\n/* Chapters Button */\n.vjs-default-skin .vjs-chapters-button:before {\n content: "\\e00c";\n}\n.vjs-default-skin .vjs-chapters-button.vjs-menu-button .vjs-menu .vjs-menu-content {\n width: 24em;\n left: -12em;\n}\n/* Replacement for focus outline */\n.vjs-default-skin .vjs-captions-button:focus .vjs-control-content:before,\n.vjs-default-skin .vjs-captions-button:hover .vjs-control-content:before {\n /* box-shadow */\n -webkit-box-shadow: 0 0 1em #ffffff;\n -moz-box-shadow: 0 0 1em #ffffff;\n box-shadow: 0 0 1em #ffffff;\n}\n/*\nREQUIRED STYLES (be careful overriding)\n================================================================================\nWhen loading the player, the video tag is replaced with a DIV,\nthat will hold the video tag or object tag for other playback methods.\nThe div contains the video playback element (Flash or HTML5) and controls,\nand sets the width and height of the video.\n\n** If you want to add some kind of border/padding (e.g. a frame), or special\npositioning, use another containing element. Otherwise you risk messing up\ncontrol positioning and full window mode. **\n*/\n.video-js {\n background-color: #000;\n position: relative;\n padding: 0;\n /* Start with 10px for base font size so other dimensions can be em based and\n easily calculable. */\n font-size: 10px;\n /* Allow poster to be vertically aligned. */\n vertical-align: middle;\n /* display: table-cell; */\n /*This works in Safari but not Firefox.*/\n /* Provide some basic defaults for fonts */\n font-weight: normal;\n font-style: normal;\n /* Avoiding helvetica: issue #376 */\n font-family: Arial, sans-serif;\n /* Turn off user selection (text highlighting) by default.\n The majority of player components will not be text blocks.\n Text areas will need to turn user selection back on. */\n /* user-select */\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n/* Playback technology elements expand to the width/height of the containing div\n