G // A1UEAxMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMIIBIjAN // SIG // BgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0IfUQit+ // SIG // ndnGetSiw+MVktJTnZUXyVI2+lS/qxCv6cnnzCZTw8Jz // SIG // v23WAOUA3OlqZzQw9hYXtAGllXyLuaQs5os7efYjDHmP // SIG // 81LfQAEcwsYDnetZz3Pp2HE5m/DOJVkt0slbCu9+1jIO // SIG // XXQSBOyeBFOmawJn+E1Zi3fgKyHg78CkRRLPA3sDxjnD // SIG // 1CLcVVx3Qv+csuVVZ2i6LXZqf2ZTR9VHCsw43o17lxl9 // SIG // gtAm+KWO5aHwXmQQ5PnrJ8by4AjQDfJnwNjyL/uJ2hX5 // SIG // rg8+AJcH0Qs+cNR3q3J4QZgHuBfMorFf7L3zUGej15Tw // SIG // 0otVj1OmlZPmsmbPyTdo5GPHzwIDAQABo4IBgDCCAXww // SIG // HwYDVR0lBBgwFgYKKwYBBAGCN0wIAQYIKwYBBQUHAwMw // SIG // HQYDVR0OBBYEFKvI1u2yFdKqjvHM7Ww490VK0Iq7MFIG // SIG // A1UdEQRLMEmkRzBFMQ0wCwYDVQQLEwRNT1BSMTQwMgYD // SIG // VQQFEysyMzAwMTIrYjA1MGM2ZTctNzY0MS00NDFmLWJj // SIG // NGEtNDM0ODFlNDE1ZDA4MB8GA1UdIwQYMBaAFEhuZOVQ // SIG // BdOCqhc3NyK1bajKdQKVMFQGA1UdHwRNMEswSaBHoEWG // SIG // Q2h0dHA6Ly93d3cubWljcm9zb2Z0LmNvbS9wa2lvcHMv // SIG // Y3JsL01pY0NvZFNpZ1BDQTIwMTFfMjAxMS0wNy0wOC5j // SIG // cmwwYQYIKwYBBQUHAQEEVTBTMFEGCCsGAQUFBzAChkVo // SIG // dHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpb3BzL2Nl // SIG // cnRzL01pY0NvZFNpZ1BDQTIwMTFfMjAxMS0wNy0wOC5j // SIG // cnQwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQsFAAOC // SIG // AgEARIkCrGlT88S2u9SMYFPnymyoSWlmvqWaQZk62J3S // SIG // VwJRavq/m5bbpiZ9CVbo3O0ldXqlR1KoHksWU/PuD5rD // SIG // BJUpwYKEpFYx/KCKkZW1v1rOqQEfZEah5srx13R7v5II // SIG // UV58MwJeUTub5dguXwJMCZwaQ9px7eTZ56LadCwXreUM // SIG // tRj1VAnUvhxzzSB7pPrI29jbOq76kMWjvZVlrkYtVylY // SIG // 1pLwbNpj8Y8zon44dl7d8zXtrJo7YoHQThl8SHywC484 // SIG // zC281TllqZXBA+KSybmr0lcKqtxSCy5WJ6PimJdXjryp // SIG // WW4kko6C4glzgtk1g8yff9EEjoi44pqDWLDUmuYx+pRH // SIG // jn2m4k5589jTajMWUHDxQruYCen/zJVVWwi/klKoCMTx // SIG // 6PH/QNf5mjad/bqQhdJVPlCtRh/vJQy4njpIBGPveJii // SIG // XQMNAtjcIKvmVrXe7xZmw9dVgh5PgnjJnlQaEGC3F6tA // SIG // E5GusBnBmjOd7jJyzWXMT0aYLQ9RYB58+/7b6Ad5B/eh // SIG // Mzj+CZrbj3u2Or2FhrjMvH0BMLd7HaldG73MTRf3bkcz // SIG // 1UDfasouUbi1uc/DBNM75ePpEIzrp7repC4zaikvFErq // SIG // HsEiODUFhe/CBAANa8HYlhRIFa9+UrC4YMRStUqCt4Uq // SIG // AEkqJoMnWkHevdVmSbwLnHhwCbwwggd6MIIFYqADAgEC // SIG // AgphDpDSAAAAAAADMA0GCSqGSIb3DQEBCwUAMIGIMQsw // SIG // CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQ // SIG // MA4GA1UEBxMHUmVkbW9uZDEeMBwGA1UEChMVTWljcm9z // SIG // b2Z0IENvcnBvcmF0aW9uMTIwMAYDVQQDEylNaWNyb3Nv // SIG // ZnQgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgMjAx // SIG // MTAeFw0xMTA3MDgyMDU5MDlaFw0yNjA3MDgyMTA5MDla // SIG // MH4xCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpXYXNoaW5n // SIG // dG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVN // SIG // aWNyb3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01p // SIG // Y3Jvc29mdCBDb2RlIFNpZ25pbmcgUENBIDIwMTEwggIi // SIG // MA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQCr8Ppy // SIG // EBwurdhuqoIQTTS68rZYIZ9CGypr6VpQqrgGOBoESbp/ // SIG // wwwe3TdrxhLYC/A4wpkGsMg51QEUMULTiQ15ZId+lGAk // SIG // bK+eSZzpaF7S35tTsgosw6/ZqSuuegmv15ZZymAaBelm // SIG // dugyUiYSL+erCFDPs0S3XdjELgN1q2jzy23zOlyhFvRG // SIG // uuA4ZKxuZDV4pqBjDy3TQJP4494HDdVceaVJKecNvqAT // SIG // d76UPe/74ytaEB9NViiienLgEjq3SV7Y7e1DkYPZe7J7 // SIG // hhvZPrGMXeiJT4Qa8qEvWeSQOy2uM1jFtz7+MtOzAz2x // SIG // sq+SOH7SnYAs9U5WkSE1JcM5bmR/U7qcD60ZI4TL9LoD // SIG // ho33X/DQUr+MlIe8wCF0JV8YKLbMJyg4JZg5SjbPfLGS // SIG // rhwjp6lm7GEfauEoSZ1fiOIlXdMhSz5SxLVXPyQD8NF6 // SIG // Wy/VI+NwXQ9RRnez+ADhvKwCgl/bwBWzvRvUVUvnOaEP // SIG // 6SNJvBi4RHxF5MHDcnrgcuck379GmcXvwhxX24ON7E1J // SIG // MKerjt/sW5+v/N2wZuLBl4F77dbtS+dJKacTKKanfWeA // SIG // 5opieF+yL4TXV5xcv3coKPHtbcMojyyPQDdPweGFRInE // SIG // CUzF1KVDL3SV9274eCBYLBNdYJWaPk8zhNqwiBfenk70 // SIG // lrC8RqBsmNLg1oiMCwIDAQABo4IB7TCCAekwEAYJKwYB // SIG // BAGCNxUBBAMCAQAwHQYDVR0OBBYEFEhuZOVQBdOCqhc3 // SIG // NyK1bajKdQKVMBkGCSsGAQQBgjcUAgQMHgoAUwB1AGIA // SIG // QwBBMAsGA1UdDwQEAwIBhjAPBgNVHRMBAf8EBTADAQH/ // SIG // MB8GA1UdIwQYMBaAFHItOgIxkEO5FAVO4eqnxzHRI4k0 // SIG // MFoGA1UdHwRTMFEwT6BNoEuGSWh0dHA6Ly9jcmwubWlj // SIG // cm9zb2Z0LmNvbS9wa2kvY3JsL3Byb2R1Y3RzL01pY1Jv // SIG // b0NlckF1dDIwMTFfMjAxMV8wM18yMi5jcmwwXgYIKwYB // SIG // BQUHAQEEUjBQME4GCCsGAQUFBzAChkJodHRwOi8vd3d3 // SIG // Lm1pY3Jvc29mdC5jb20vcGtpL2NlcnRzL01pY1Jvb0Nl // SIG // ckF1dDIwMTFfMjAxMV8wM18yMi5jcnQwgZ8GA1UdIASB // SIG // lzCBlDCBkQYJKwYBBAGCNy4DMIGDMD8GCCsGAQUFBwIB // SIG // FjNodHRwOi8vd3d3Lm1pY3Jvc29mdC5jb20vcGtpb3Bz // SIG // L2RvY3MvcHJpbWFyeWNwcy5odG0wQAYIKwYBBQUHAgIw // SIG // NB4yIB0ATABlAGcAYQBsAF8AcABvAGwAaQBjAHkAXwBz // SIG // AHQAYQB0AGUAbQBlAG4AdAAuIB0wDQYJKoZIhvcNAQEL // SIG // BQADggIBAGfyhqWY4FR5Gi7T2HRnIpsLlhHhY5KZQpZ9 // SIG // 0nkMkMFlXy4sPvjDctFtg/6+P+gKyju/R6mj82nbY78i // SIG // NaWXXWWEkH2LRlBV2AySfNIaSxzzPEKLUtCw/WvjPgcu // SIG // KZvmPRul1LUdd5Q54ulkyUQ9eHoj8xN9ppB0g430yyYC // SIG // RirCihC7pKkFDJvtaPpoLpWgKj8qa1hJYx8JaW5amJbk // SIG // g/TAj/NGK978O9C9Ne9uJa7lryft0N3zDq+ZKJeYTQ49 // SIG // C/IIidYfwzIY4vDFLc5bnrRJOQrGCsLGra7lstnbFYhR // SIG // RVg4MnEnGn+x9Cf43iw6IGmYslmJaG5vp7d0w0AFBqYB // SIG // Kig+gj8TTWYLwLNN9eGPfxxvFX1Fp3blQCplo8NdUmKG // SIG // wx1jNpeG39rz+PIWoZon4c2ll9DuXWNB41sHnIc+BncG // SIG // 0QaxdR8UvmFhtfDcxhsEvt9Bxw4o7t5lL+yX9qFcltgA // SIG // 1qFGvVnzl6UJS0gQmYAf0AApxbGbpT9Fdx41xtKiop96 // SIG // eiL6SJUfq/tHI4D1nvi/a7dLl+LrdXga7Oo3mXkYS//W // SIG // syNodeav+vyL6wuA6mk7r/ww7QRMjt/fdW1jkT3RnVZO // SIG // T7+AVyKheBEyIXrvQQqxP/uozKRdwaGIm1dxVk5IRcBC // SIG // yZt2WwqASGv9eZ/BvW1taslScxMNelDNMYIEqjCCBKYC // SIG // AQEwgZUwfjELMAkGA1UEBhMCVVMxEzARBgNVBAgTCldh // SIG // c2hpbmd0b24xEDAOBgNVBAcTB1JlZG1vbmQxHjAcBgNV // SIG // BAoTFU1pY3Jvc29mdCBDb3Jwb3JhdGlvbjEoMCYGA1UE // SIG // AxMfTWljcm9zb2Z0IENvZGUgU2lnbmluZyBQQ0EgMjAx // SIG // MQITMwAAAI6HkaRXGl/KPgAAAAAAjjAJBgUrDgMCGgUA // SIG // oIG+MBkGCSqGSIb3DQEJAzEMBgorBgEEAYI3AgEEMBwG // SIG // CisGAQQBgjcCAQsxDjAMBgorBgEEAYI3AgEVMCMGCSqG // SIG // SIb3DQEJBDEWBBRElOMD8q2cKqRGDFdqfNRq3ih01zBe // SIG // BgorBgEEAYI3AgEMMVAwTqAMgAoAQQBkAFMARABLoT6A // SIG // PGh0dHA6Ly9lZHdlYi9zaXRlcy9JU1NFbmdpbmVlcmlu // SIG // Zy9FbmdGdW4vU2l0ZVBhZ2VzL0hvbWUuYXNweDANBgkq // SIG // hkiG9w0BAQEFAASCAQAeEqOboJ2IcK92wnzcGD8OrXv4 // SIG // j82b2uzOfbRsi8c7kGqbYWQRtb1FLtcTUIkKmj/UxDqa // SIG // 21JOtZX20KYBDv1mpXm5a6siL+Sy4hlFqAzA3c+OgHvg // SIG // ls+JGWl/W5mCmO/fHc05Y9jaSEGOkuObQrAN/IH6MHjS // SIG // qS+2cmcywcoo5hzqpMobmQMtWqURGd0xebBJ2nR1mHsX // SIG // xC5/oJvpEKj348d/ujxqIm+0T2PoFJ9NB18GlFnY8r4X // SIG // lslG2/5K86i7hu1sDCc9asYtrVsWOVVo0EN6raEL49sT // SIG // kuyiBgdhMhQZVOJAUT2sGtAVV4fXQrcgblARIIXV9Hun // SIG // yRsURy4PoYICKDCCAiQGCSqGSIb3DQEJBjGCAhUwggIR // SIG // AgEBMIGOMHcxCzAJBgNVBAYTAlVTMRMwEQYDVQQIEwpX // SIG // YXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYD // SIG // VQQKExVNaWNyb3NvZnQgQ29ycG9yYXRpb24xITAfBgNV // SIG // BAMTGE1pY3Jvc29mdCBUaW1lLVN0YW1wIFBDQQITMwAA // SIG // AMWWQGBL9N6uLgAAAAAAxTAJBgUrDgMCGgUAoF0wGAYJ // SIG // KoZIhvcNAQkDMQsGCSqGSIb3DQEHATAcBgkqhkiG9w0B // SIG // CQUxDxcNMTcwODE3MDY0MjQ1WjAjBgkqhkiG9w0BCQQx // SIG // FgQUtLKwqdvL/Sp59P39kLHHr6kIHQUwDQYJKoZIhvcN // SIG // AQEFBQAEggEAOLxki9sn4AF0bqAO+Ttj73jI93n8UX+a // SIG // RKoPOEVAS4Vf6AcivtYxLwouSkX3mI8a08nq6ETAEg3P // SIG // 91yRhJ9T8A4pVeCSjH7dGbFu79LpaAHM8pjoWC4+vOKs // SIG // /Kfykt46zNdylEMD0g4Q/FT0yAEnzrmCVzEXiII9/zQL // SIG // IrxIxSIpsu9nNXJweLKaCWp9cF/GWTb1I17D6tD8gWNJ // SIG // G4aGJ6UZHsr+oAPrCRxsB2kRjR4NlF5BH+4sTZHb7E6J // SIG // 0iQYcml9FGEdAHDPbLHc17Jhmci6Ude+Nhl+PvwEs3CD // SIG // xmhFRNlG1iTl4fzTXY6PFUl93jH2VePOnVcmz8Z9pCYl/w== // SIG // End signature block /*! Copyright (C) Microsoft. All rights reserved. This library is supported for use in Windows Store apps only. */ (function(){"use strict";function s(){this._listeners=[];this._adSize={width:0,height:0};this._setSdkVersion("unknown","unknown","unknown");this._masterVolumeLevel=0;this._masterVolumeMuted=!1}var r=2,e=0,o=r+"."+e,n;window.onerror=function(n,t,i){try{console.error("[msg:"+n+"][url:"+t+"][lineNumber:"+i+"]");typeof _msVpaidImpl=="function"&&_msVpaidImpl.reportAdError("unhandled JS exception: "+n)}catch(r){}return!0};window.onload=function(){if(typeof getVPAIDAd!="function"){_msVpaidImpl.reportAdError("getVPAIDAd function not defined");return}var t=getVPAIDAd();if(!t){_msVpaidImpl.reportAdError("getVPAIDAd did not return an ad");return}window._msVpaidInstance=new n(t)};window._msReceiveMessageFromAdSdk=function(t){n.log("message from SDK: "+t);window._msVpaidInstance&&window._msVpaidInstance.receiveMessageFromAdSdk(t);window.Maple&&window.Maple.receiveMessageFromAdSdk(t)};n=function(t){if(n.log("instantiating VpaidImpl"),this._creative=t,this._adParameters=null,!n.isValidVpaidCreative(t)){n.reportAdError("ad is not a valid VPAID creative");return}var i=t.handshakeVersion(o);if(!n.isVersionSupported(i)){n.reportAdError("ad requires VPAID version "+i+", sdk supports "+o);return}this._setupEventHandlers(this._creative)};n.prototype={DEFAULT_DESIRED_BITRATE:2e3,initAd:function(t,i,r,u,f,e){n.log("initializing vpaid ad");e||(e={slot:document.querySelector("#msVpaidSlot"),videoSlot:document.querySelector("#msVpaidVideo")});this._creative.initAd(t,i,r,u,f,e)},receiveMessageFromAdSdk:function(t){var u,f,o;if(t&&typeof t=="string"){var r=t,i=null,e=null;try{u=r.indexOf(":");u<0?i=r:(i=r.substr(0,u),e=r.substr(u+1));i==="InitAd"?this._receiveMessageInitAd(e):i==="StartAd"?this.startAd():i==="StopAd"?this.stopAd():i==="PauseAd"?this.pauseAd():i==="ResumeAd"?this.resumeAd():i==="ResizeAd"?(f=JSON.parse(e),this.resizeAd(f.width,f.height,f.viewMode)):i==="SetAdVolume"&&(o=50,this.setAdVolume(o))}catch(s){n.reportAdError("error handling message of type "+i)}}},_receiveMessageInitAd:function(t){try{var i=JSON.parse(t),r=typeof i.desiredBitrate=="number"?i.desiredBitrate:this.DEFAULT_DESIRED_BITRATE,u=typeof i.width=="number"?i.width:0,f=typeof i.height=="number"?i.height:0,e=typeof i.viewMode=="string"?i.viewMode:"fullscreen",o={AdParameters:i.adParameters};this.initAd(u,f,e,r,o,null)}catch(s){n.reportAdError("unable to parse JSON for initAd")}},setAdVolume:function(n){this._creative.setAdVolume(n)},startAd:function(){n.log("startAd");this._creative.startAd()},stopAd:function(){this._creative.stopAd()},resizeAd:function(t,i,r){n.log("resizing ad to "+t+" x "+i+", "+r);this._creative.resizeAd(t,i,r)},pauseAd:function(){this._creative.pauseAd()},resumeAd:function(){this._creative.resumeAd()},_setupEventHandlers:function(t){t&&(n.log("adding event handlers"),t.subscribe(this._adStartedHandler,"AdStarted",this),t.subscribe(this._adStoppedHandler,"AdStopped",this),t.subscribe(this._adSkippedHandler,"AdSkipped",this),t.subscribe(this._adLoadedHandler,"AdLoaded",this),t.subscribe(this._adLinearChangeHandler,"AdLinearChange",this),t.subscribe(this._adSizeChangeHandler,"AdSizeChange",this),t.subscribe(this._adExpandedChangeHandler,"AdExpandedChange",this),t.subscribe(this._adSkippableStateChangeHandler,"AdSkippableStateChange",this),t.subscribe(this._adDurationChangeHandler,"AdDurationChange",this),t.subscribe(this._adRemainingTimeChangeHandler,"AdRemainingTimeChange",this),t.subscribe(this._adVolumeChangeHandler,"AdVolumeChange",this),t.subscribe(this._adImpressionHandler,"AdImpression",this),t.subscribe(this._adClickThruHandler,"AdClickThru",this),t.subscribe(this._adInteractionHandler,"AdInteraction",this),t.subscribe(this._adVideoStartHandler,"AdVideoStart",this),t.subscribe(this._adVideoFirstQuartileHandler,"AdVideoFirstQuartile",this),t.subscribe(this._adVideoMidpointHandler,"AdVideoMidpoint",this),t.subscribe(this._adVideoThirdQuartileHandler,"AdVideoThirdQuartile",this),t.subscribe(this._adVideoCompleteHandler,"AdVideoComplete",this),t.subscribe(this._adUserAcceptInvitationHandler,"AdUserAcceptInvitation",this),t.subscribe(this._adUserMinimizeHandler,"AdUserMinimize",this),t.subscribe(this._adUserCloseHandler,"AdUserClose",this),t.subscribe(this._adPausedHandler,"AdPaused",this),t.subscribe(this._adPlayingHandler,"AdPlaying",this),t.subscribe(this._adErrorHandler,"AdError",this),t.subscribe(this._adLogHandler,"AdLog",this))},_adLoadedHandler:function(){n.log("ad has been loaded");n.sendMessageToAdSdk("AdLoaded")},_adPausedHandler:function(){n.log("ad paused");n.sendMessageToAdSdk("AdPaused")},_adPlayingHandler:function(){n.log("ad playing");n.sendMessageToAdSdk("AdPlaying")},_adErrorHandler:function(t){var i,r;typeof t!="string"&&(i=t,t=i!==null&&typeof i=="object"&&i.message!=="undefined"?"ad error message was: [object]: "+i.message:"ad error message was: "+typeof t);n.log("ad error: "+t);r={message:t};n.sendMessageToAdSdk("AdError:"+JSON.stringify(r))},_adLogHandler:function(t){var i,r;typeof t!="string"&&(i=t,t=i!==null&&typeof i=="object"&&i.message!=="undefined"?"AdLog:: [object]: "+i.message:"AdLog::"+typeof t);n.log("ad log: "+t);r={message:t};n.sendMessageToAdSdk("AdLog:"+JSON.stringify(r))},_adUserAcceptInvitationHandler:function(){n.log("AdUserAcceptInvitation");n.sendMessageToAdSdk("AdUserAcceptInvitation")},_adUserMinimizeHandler:function(){n.log("AdUserMinimize");n.sendMessageToAdSdk("AdUserMinimize")},_adUserCloseHandler:function(){n.log("AdUserClose");n.sendMessageToAdSdk("AdUserClose")},_adSkippableStateChangeHandler:function(){n.log("ad Skippable State Changed to: "+this._creative.getAdSkippableState());n.sendMessageToAdSdk("AdSkippableStateChange")},_adExpandedChangeHandler:function(){n.log("ad Expanded Changed to: "+this._creative.getAdExpanded());n.sendMessageToAdSdk("AdExpanded")},_adSizeChangeHandler:function(){n.log("ad size changed to: w="+this._creative.getAdWidth()+" h="+this._creative.getAdHeight());var t={width:this._creative.getAdWidth(),height:this._creative.getAdHeight()};n.sendMessageToAdSdk("AdSizeChange:"+JSON.stringify(t))},_adDurationChangeHandler:function(){n.log("ad duration changed to: "+this._creative.getAdDuration());var t={duration:this._creative.getAdDuration()};n.sendMessageToAdSdk("AdDurationChange:"+JSON.stringify(t))},_adRemainingTimeChangeHandler:function(){var t={remainingTime:this._creative.getAdRemainingTime()};n.sendMessageToAdSdk("AdRemainingTimeChange:"+JSON.stringify(t))},_adImpressionHandler:function(){n.log("ad impression");n.sendMessageToAdSdk("AdImpression")},_adClickT