@datazoom/collector_brightcove_mt_om 2.24.0 → 2.25.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1 +1 @@
1
- !function(){var n,e,t,s,$u="object"==typeof module?{}:null,Qu=window.URL,Zu=window.URLSearchParams,nl=window.EventTarget,el=window.CustomEvent,tl={};function il(n,e){tl[n]=e}function rl(n,e){il("ext_"+n,e)}il("base","2.1.0"),function(ne,ee,g){"use strict";var h,p,te=ne.Object,E=ne.Array,S=ne.Date,he=ne.Number,A=ne.String,T=ne.RegExp,ie=ne.Math,b=ne.XMLHttpRequest,O=ne.Uint8Array,C=ne.ArrayBuffer,D=ne.JSON,Ee=ne.Promise,ge=ne.document||{},n=ge.currentScript||{},M=ne.location||{},R=ne.navigator||{},N=R.userAgent||"",ye=R.connection||R.mozConnection||R.webkitConnection,k=ne.crypto,P=ne.console||{},e=ne.performance,w=ne.setInterval,L=ne.setTimeout,x=(ne.clearInterval,ne.decodeURIComponent),U=ne.encodeURIComponent;try{h=ne.localStorage,p=ne.sessionStorage}catch(n){}function F(t){return t?function(n,e){n="[DZ] "+n,void 0===e?t.call(P,n):t.call(P,n,e)}:null}var t=F(P.log)||function(){},V=F(P.error)||t,W=F(P.warn)||t,j=F(P.info)||t,B=F(P.debug)||t,Se={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},H="datazoom_",t="__"+H+"rootobj",G="custom_",q="v_";if(Se[t]=1,$u)$u.datazoom=Se;else{if(de(ne.datazoom)){if(ne.datazoom[t])return W("Collector already loaded");W("Overwriting window.datazoom")}ne.datazoom=Se}function y(e,t,n){var i,r=t.shift();return null==r?i=e:e?r instanceof T?te.keys(e).some(function(n){if(r.test(n))return null!=(i=y(e[n],t.slice()))}):i=y(e[r],t):i=null,null!=i?i:n}function re(n){return"function"==typeof n}function z(n,e){if(re(n))try{return new(n=e?n.bind.apply(n,[null].concat(e)):n),1}catch(n){}}z(Qu,["http://x.io"])&&z(Zu)||(Zu=function(n){var i=[];function t(n,e){!1!==e&&i.push([n,e])}function r(e){i=i.filter(function(n){return n[0]!==e})}n&&n.slice(1).split("&").forEach(function(n){n=n.split("=");try{i.push([x(n[0]),null==n[1]||x(n[1])])}catch(n){oe(n,"URLSearchParams()")}});n=this;n.append=t,n["delete"]=r,n.set=function(n,e){r(n),t(n,e)},n.get=function(e){var t=null;return i.some(function(n){if(n[0]===e)return t=n[1],!0}),t},n.toString=function(){return i.map(function(n){var e=U(n[0]);return!0===n[1]?e:e+"="+U(n[1])}).join("&")}},Qu=function(n){var e=this,n=n.split("?"),t=n[0],n=n[1]?"?"+n[1]:"";e.search=n,e.searchParams=new Zu(n),e.toString=function(){return t+e.search}}),z(nl)&&z(el,["x"])||(nl=function(){var t=this,i={};t.addEventListener=function(n,e){var t=i[n];t||(i[n]=t=[]),t.push(e)},t.removeEventListener=function(n,e){var t=i[n];t&&(i[n]=t.filter(function(n){return n!=e}))},t.dispatchEvent=function(e){var n=i[e.type];n&&n.forEach(function(n){L(function(){n.call(t,e)},0)})}},el=function(n,e){this.type=n,e&&(this.detail=e.detail)}),ee=te.assign({},{cn:"Brightcove Player (MT/OM)",sv:"2.24.0",cf:"",mf:null,ev:[],fd:[],md:[],od:null,mb:"",sw:!1,sm:"",sp:[],ss:"",sd:"",sc:"",ab:"",st:null,hi:1e4,ti:200,cm:null,am:null,cq:null,aq:null,rd:[1,2,4,8,8,8,8],bd:50,kd:50,mh:5e3,ml:0,mc:256,mp:2.5,ep:2,ed:2500,ec:he.MAX_VALUE,cc:"",cl:"",ci:"",cd:[],og:!0,os:!0,tt:!1,om:!1,ps:null,sn:["IDLE","CT_REQUESTED","CT_BUFFERING","CT_PLAYING","CT_PAUSED","CT_SEEKING","CT_COMPLETED","CT_STOPPED","CT_ERROR","AD_BUFFERING","AD_PLAYING","AD_PAUSED","AD_SEEKING","AD_COMPLETED","AD_SKIPPED","AD_ERROR","AD_BREAK_STARTED","AD_BREAK_ENDED"],le:function(n){var e=n.event,t=n.video;Oe("[Event] "+e.type+(t?" ("+t.media_type+")":"")+" @"+e.timestamp,ue(n))}},ee||{});var o,Y,Ie,K={datapoints:{events:"ev",flux_data:"fd",metadata:"md",cmcd:"cd"},endpoints:{event_ingest:"mb",sampling:"sm",ad_blocker_bait:"ab"},sampling:{enable:"sw",definition_namespace:"ss",definition_key_name:"sd",criteria_sampling_key_name:"sc",criteria_matching_fields:"sp"},ondemand:"od",customer_code:"cc",connector_list:"cl",app_session_timeout_mins:"st",heartbeat_interval_ms:"hi",content_milestone_percent:"cm",ad_milestone_percent:"am",content_qv_sec:"cq",ad_qv_sec:"aq",observability:{lag_enabled:"og",loss_enabled:"os"},om_enabled:"om",configuration_id:""},X=!$u&&n.src||"/",J=M.href||"https://localhost",$="configuration_id",Q="urn:x-cast:io.datazoom.collector",Ae="transfer",Z=0,nn=1,en=2,tn=3,rn=4,an=5,on={off:Z,error:nn,warning:en,info:tn,debug:rn,verbose:an},sn=en;function cn(n){var e;n&&(e=on[n],Z<=(e=null!=e?e:+n)&&e<=an?sn=e:W("Invalid log level: "+n))}function un(){o={},Y=[],[[ee.ps],[X.split("?")[1]],[J.split("?")[1],H]].forEach(function(n){var i=n[1];n[0]&&n[0].split("&").forEach(function(n){try{var e=n.split("="),t=x(e[0]);if(i){if(!t.startsWith(i))return;t=t.slice(i.length)}o[t]=null==e[1]||x(e[1]),t.startsWith("x-")&&Y.push([t,o[t]])}catch(n){W("Invalid query string: "+n.message)}})}),Ie="true"==o.demo,cn(o.log)}un();var ln="io.datazoom.",dn=ln,fn="__ss_ev_count",pn="__ss_last_act",mn="__ss_custom_md",vn="__ss_msg_queue",_n="__ss_sm_resp",hn="__ss_appss_to",En="__ss_on_demand",gn="collector_observability",yn="process_duration_ms",Sn="send_duration_ms",In="call_duration_ms",An="queue_duration_ms",Tn="attempt_count",bn="attempt",On="status_code",Cn="sample",Dn="config",Mn="log";function Rn(n,e,t,i){sn<n||e(t,i)}function Te(n,e){Rn(nn,V,n,e)}function ae(n,e){Rn(en,W,n,e)}function be(n,e){Rn(tn,j,n,e)}function Oe(n,e){Rn(rn,B,n,e)}function Nn(n,e){Rn(an,B,n,e)}function oe(n,e){e="[Exception] "+(e?"("+e+") ":"")+n;return Te(e,n),e}function Ce(t,i,r,a,o){var s,c=0,u=1,l=0;return i=i||"",r=r||1,a=a||he.MAX_VALUE,{log:function(n,e){o&&(s=se())>=l+o&&(c=0,u=1,l=s),++c>=u&&(t("["+c+"] "+i+n,e),u+=ie.min(u*r,a))}}}function De(n,e){f(ne,"postMessage",[{type:n,data:e},"*"])}var kn,se,Pn,wn,Ln,xn,Un=[],Fn=0;function Vn(n,e,t,i,r,a,o,s){var t={time:t,metric_name:i,dimension:{},batch:function(){return a}},c=(n&&(t.type=n),null!=r&&(t.metric_value=r),t.dimension);return e&&(c.target=e),s&&s.forEach(function(n){c[n[0]]=n[1]}),o&&(c["b4_ss"]=!0),t}function Wn(i,r,a,o){var s=r,c=1,u=Fn++;return{retry:function(n){s=n,c++},log:function(n,e){var t;ee.og&&(null!=a&&Un.push(Vn(null,i,t=r-a,yn,n-t,u,o,[[Tn,c],[On,e]]),Vn(null,i,t,An,a,u,o)),Un.push(Vn(null,i,r,Sn,n-r,u,!1,[[Tn,c],[On,e]]),Vn(null,i,s,In,n-s,u,!1,[[bn,c],[On,e]])))}}}function jn(n,e){var t,i;ee.os&&(i=n.t,i=ie.trunc(i/6e4),(i=(kn=kn||{})[i]||(kn[i]=[0,0,0]))[2]++,t=(i=i[3]||(i[3]={}))[e],n=Os(n.m,hr),t?t.push(n):i[e]=[n])}function Bn(n){var e,t=kn[n],i=Fn++;t[2]&&(t[3]&&(e=[["status_codes",t[3]]]),Un.push(Vn("loss",null,6e4*+n,"evnt_fail",t[2],i,!1,e)))}function Me(n){return n&&(Ue(n)?n.slice():te.assign({},n))}function Hn(n,e){return de(e)?n?te.assign({},n,e):e:n}function Gn(n,e){var t;return e?((t={})[n]=e,t):null}function qn(t,i){var r;return i?t?(r=Me(t),te.keys(i).forEach(function(n){var e=t[n];r[n]=e?te.assign({},e,i[n]):i[n]}),r):i:t}function f(n,e,t,i){e=y(n,[e],i);return re(e)?e.apply(n,t):null}function zn(n,e,t){return function(){try{return e.apply(n,arguments)}catch(n){oe(n,t)}}}function Yn(t,n){te.keys(t).forEach(function(e){n.forEach(function(n){n[e]=zn(n,t[e],e)})}),n[0]}function Kn(n){var e={};return n.forEach(function(n){e[n.nm]=n}),e}function Xn(n){var e={};return n.forEach(function(n){e[n.nm]=!0}),e}function Jn(n,e,t){n.forEach(function(n){n[e]=t})}function Re(n,e){var n=new Qu(n,J),t=new Zu(n.search);return e(t),n.search="?"+t.toString(),n.toString()}function $n(n){var e,t=Y.length;return t?Re(n,function(n){for(e=0;e<t;e++)n.append(Y[e][0],Y[e][1])}):n}function Qn(n,e,t){var i;return null!=(i=n?new Qu(n,J).searchParams.get(e):i)?i:t}Pn=0,wn=ee.ec,Ln=Ce(ae,"Abnormal clock increment: ",.2,1e3,3e5),e&&e.now,xn=Pn+S.now(),se=function(n){var e=S.now(),t=xn,i=(xn=Pn+e)-t;return(i<0||wn<i)&&(xn=t+ee.ti,Pn=xn-e,Ln.log(i)),xn};var ce=function(){for(var t=[],n=0;n<256;n++)t.push((n+256).toString(16).substr(1).toLowerCase());return function(){var n=new O(16);if(k&&k.getRandomValues)k.getRandomValues(n);else{ae("getRandomValues() not supported");for(var e=0;e<16;e++)n[e]=ie.floor(256*ie.random())}return n[6]=15&n[6]|64,n[8]=63&n[8]|128,t[n[0]]+t[n[1]]+t[n[2]]+t[n[3]]+"-"+t[n[4]]+t[n[5]]+"-"+t[n[6]]+t[n[7]]+"-"+t[n[8]]+t[n[9]]+"-"+t[n[10]]+t[n[11]]+t[n[12]]+t[n[13]]+t[n[14]]+t[n[15]]}}();function Zn(n,e,t,i,r,a){var o=new b;if(o.open(n,e,!0),null!=a&&(o.timeout=a),t)for(var s=te.keys(t),c=0;c<s.length;c++)o.setRequestHeader(s[c],t[s[c]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function ue(n){if(n)try{return D.stringify(n)}catch(n){oe(n,"toJSON")}return null}function le(n){if(n)try{return D.parse(n)}catch(n){oe(n,"fromJSON")}return null}function Ne(n,e){return(n===p?dn:ln)+e}function m(n,e,t){if(n)if(null==t)Pe(n,e);else try{n.setItem(Ne(n,e),ue({v:t}))}catch(n){oe(n,"storageSet")}}function ke(n,e){n=n?le(n.getItem(Ne(n,e))):null;return n?n.v:null}function Pe(n,e){n&&n.removeItem(Ne(n,e))}ne.self!==ne.top&&Oe("Page loaded in a frame, set sessionStorage prefix to: "+(dn+=(o.frame_id||ce())+"."));var we=le('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Le(n){return"string"==typeof n}function xe(n){return he.isFinite(n)}function Ue(n){return E.isArray(n)}function de(n){return null!=n&&"object"==typeof n&&!Ue(n)}function Fe(n){return Le(n)?n:""+n}function Ve(n){return xe(n=+n)?n:null}function We(e,t,i){return null==e&&null==t?Ve:function(n){return null!=(n=Ve(n))&&(null!=e&&n<e?n=i?null:e:null!=t&&t<n&&(n=i?null:t)),n}}function je(n){return ie.round(n)}function Be(n,e){for(var t=0;t<e.length;t++)!function(n){for(var e=n,t=1;t<arguments.length;t++)e.dv||(e.dv=[]),e.dv.push(arguments[t])}(e[t],n)}function He(n,e){if(e)for(var t=0;t<e.length&&null!=n;t++)n=e[t](n);return n}var Ge,qe,ze,Ye,Ke=4,Xe=8,Je=16,$e=32,I=65535,Qe=Ke,t=1|Je,n=Ke|Je,e=n|$e,r=Xe,Ze={ap:2,nm:"ad_beacon_response"},nt={ap:2,nm:"ad_break_start"},et={ap:2,nm:"ad_break_end"},tt={ap:2,nm:"ad_click"},it={ap:2,nm:"ad_impression"},rt={ap:2,nm:"ad_om_session_created"},at={ap:2,nm:"ad_om_session_omitted"},ot={ap:2,nm:"ad_skip"},st={ap:Qe,nm:"app_session_end"},ct={ap:3,nm:"audio_track_changed"},ut={ap:3,nm:"buffer_start"},lt={ap:3,nm:"buffer_end"},dt={ap:3,nm:"cast_start"},ft={ap:3,nm:"cast_end"},pt={ap:3,nm:"cast_transfer"},mt={ap:I,nm:"context_ready"},vt={ap:Qe,nm:"datazoom_loaded"},_t={ap:3,nm:"error"},ht={ap:3,nm:"exit_fullscreen"},Et={ap:3,nm:"fullscreen"},gt={ap:3,nm:"heartbeat"},yt={ap:3,nm:"media_loaded"},St={ap:1,nm:"media_object_request"},It={ap:3,nm:"media_request"},At={ap:3,nm:"milestone"},Tt={ap:3,nm:"mute"},bt={ap:3,nm:"pause"},Ot={ap:3,nm:"play_btn"},Ct={ap:3,nm:"playback_start"},Dt={ap:3,nm:"playback_complete"},Mt={ap:1,nm:"player_ready"},Rt={ap:3,nm:"playing"},Nt={ap:3,nm:"qualified_view"},kt={ap:1,nm:"quality_change_request"},Pt={ap:3,nm:"rendition_change"},wt={ap:3,nm:"resize"},Lt={ap:3,nm:"resume"},xt={ap:3,nm:"seek_start"},Ut={ap:3,nm:"seek_end"},Ft={ap:3,nm:"stall_start"},Vt={ap:3,nm:"stall_end"},Wt={ap:3,nm:"stop"},jt={ap:3,nm:"subtitle_change"},Bt={ap:3,nm:"unmute"},Ht={ap:3,nm:"volume_change"},Gt=(It.rtc=0,Ct.rtc=1,bt.rtc=2,ut.rtc=3,Ft.rtc=4,xt.rtc=5,Pt.rtc=6,At.rtc=7,It.rta=8,Ct.rta=9,ut.rta=10,Ft.rta=11,At.rta=12,_t.rta=ot.rta=Dt.rta=13,nt.rta=14,et.rta=15,gt.rt=16,ut.rt=17,Ft.rt=18,["event","metrics"]),qt={ap:t,nm:"bandwidth_kbps"},zt={ap:t,nm:"buffer_duration_ms"},Yt={ap:t,nm:"buffer_duration_ads_ms"},Kt={ap:t,nm:"buffer_duration_content_ms"},Xt={ap:t,nm:"buffer_fill_percent"},Jt={ap:t,nm:"buffer_length_ms"},$t={ap:t,nm:"content_session_start_ts_ms"},Qt={ap:3,nm:"current_audio_track"},Zt={ap:t,nm:"current_subtitles"},ni={ap:n,nm:"engagement_duration_ms"},ei={ap:n,nm:"engagement_duration_ads_ms"},ti={ap:n,nm:"engagement_duration_content_ms"},ii={ap:r,nm:"event_count"},ri={ap:t,nm:"num_ad_break_plays"},ai={ap:n,nm:"num_ad_plays"},oi={ap:n,nm:"num_content_plays"},si={ap:n,nm:"num_errors"},ci={ap:n,nm:"num_errors_ads"},ui={ap:n,nm:"num_errors_content"},li={ap:n,nm:"num_pauses_content"},di={ap:n,nm:"num_requests_content"},fi={ap:n,nm:"num_seeks_content"},pi={ap:t,nm:"pause_duration_ms"},mi={ap:t,nm:"pause_duration_ads_ms"},vi={ap:t,nm:"pause_duration_content_ms"},_i={ap:t,nm:"playback_duration_ms"},hi={ap:t,nm:"playback_duration_ads_ms"},Ei={ap:n,nm:"playback_duration_ads_app_ms"},gi={ap:n,nm:"playback_duration_ads_audible_app_ms"},yi={ap:n,nm:"playback_duration_ads_viewable_app_ms"},Si={ap:2,nm:"playback_duration_ad_session_ms"},Ii={ap:t,nm:"playback_duration_content_ms"},Ai={ap:t,nm:"playback_duration_promo_ms"},Ti={ap:3,nm:"playback_rate"},bi={ap:t,nm:"player_state"},Oi={ap:t,nm:"player_viewable"},Ci={ap:t,nm:"player_viewable_percent"},fe={ap:3,nm:"playhead_position_sec"},Di={ap:t,nm:"playhead_pdt_sec"},Mi={ap:3,nm:"rendition_audio_bitrate_kbps"},Ri={ap:3,nm:"rendition_height"},Ni={ap:3,nm:"rendition_name"},ki={ap:3,nm:"rendition_video_bitrate_kbps"},Pi={ap:3,nm:"rendition_width"},wi={ap:t,nm:"stall_count"},Li={ap:t,nm:"stall_count_ads"},xi={ap:t,nm:"stall_count_content"},Ui={ap:t,nm:"stall_duration_ms"},Fi={ap:t,nm:"stall_duration_ads_ms"},Vi={ap:t,nm:"stall_duration_content_ms"},Wi={ap:t,nm:"time_since_last_ad_break_start_ms"},ji={ap:t,nm:"time_since_last_ad_completed_ms"},Bi={ap:t,nm:"time_since_last_buffer_start_ms"},Hi={ap:t,nm:"time_since_last_buffer_start_ad_ms"},Gi={ap:t,nm:"time_since_last_buffer_start_content_ms"},qi={ap:t,nm:"time_since_last_heartbeat_ms"},zi={ap:t,nm:"time_since_last_milestone_ad_ms"},Yi={ap:t,nm:"time_since_last_milestone_content_ms"},Ki={ap:t,nm:"time_since_last_pause_ms"},Xi={ap:t,nm:"time_since_last_rendition_change_ms"},Ji={ap:t,nm:"time_since_last_request_ad_ms"},$i={ap:t,nm:"time_since_last_seek_start_ms"},Qi={ap:t,nm:"time_since_last_stall_start_ms"},Zi={ap:t,nm:"time_since_last_stall_start_ad_ms"},nr={ap:t,nm:"time_since_last_stall_start_content_ms"},er={ap:t,nm:"time_since_last_started_ad_ms"},tr={ap:t,nm:"time_since_request_content_ms"},ir={ap:t,nm:"time_since_started_content_ms"},rr={ap:t,nm:"time_to_first_frame_ms"},ar={ap:t,nm:"time_to_first_frame_plus_ad_delay_ms"},or={ap:t,nm:"volume_level_percent"},sr=(Jn([zt,Yt,Kt,pi,mi,vi,_i,hi,Ei,gi,yi,Ii,Ai,wi,Li,xi,Ui,Fi,Vi,ai,si,ci,ui,oi,li,di,fi],"df",0),tr.ts=0,ir.ts=1,Ki.ts=2,Gi.ts=3,nr.ts=4,$i.ts=5,Xi.ts=6,Yi.ts=7,Ji.ts=8,er.ts=9,Hi.ts=10,Zi.ts=11,zi.ts=12,Wi.ts=14,ji.ts=13,qi.ts=16,Bi.ts=17,Qi.ts=18,[]),cr=["event"],i=["event","attributes"],a=["cmcd"],s=["user_details"],c=["player"],u=["device"],l=["video"],d=["geo_location"],ur=["network"],lr=["page"],v=["ad"],dr=["ops_metadata"],fr=["custom"],pr=["vendor"],mr={p:sr,ap:e,nm:"configuration_id"},vr={p:sr,ap:e,nm:"connector_list"},_r={p:sr,ap:e,nm:"customer_code"},hr={p:sr,ap:r,nm:"event_id"},Er={p:cr,ap:r,nm:"timestamp"},gr={p:cr,ap:r,nm:"type"},sr={p:a,ap:r,nm:"bl"},cr={p:a,ap:r,nm:"br"},yr={p:a,ap:r,nm:"bs"},Sr={p:a,ap:r,nm:"cid"},Ir={p:a,ap:r,nm:"d"},Ar={p:a,ap:r,nm:"dl"},Tr={p:a,ap:r,nm:"mtp"},br={p:a,ap:r,nm:"nor"},Or={p:a,ap:r,nm:"nrr"},Cr={p:a,ap:r,nm:"ot"},Dr={p:a,ap:r,nm:"pr"},Mr={p:a,ap:r,nm:"rid"},Rr={p:a,ap:r,nm:"rtp"},Nr={p:a,ap:r,nm:"sf"},kr={p:a,ap:r,nm:"sid"},Pr={p:a,ap:r,nm:"st"},wr={p:a,ap:r,nm:"su"},Lr={p:a,ap:r,nm:"tb"},a={p:a,ap:r,nm:"v"},xr={p:i,ap:r,nm:"abs_shift"},Ur={p:i,ap:r,nm:"error_code"},Fr={p:i,ap:r,nm:"error_msg"},Vr={p:i,ap:r,nm:"inner_error"},Wr={p:i,ap:r,nm:"heartbeat_count"},jr={p:i,ap:r,nm:"milestone_percent"},Br={p:i,ap:r,nm:"qualified_view_sec"},Hr={p:i,ap:r,nm:"seek_start_point_ms"},Gr={p:i,ap:r,nm:"seek_end_point_ms"},qr={p:i,ap:r,nm:"startup_duration_content_ms"},zr={p:i,ap:r,nm:"startup_duration_total_ms"},Yr={p:s,ap:n,nm:"app_session_id"},Kr={p:s,ap:n,nm:"app_session_start_ts_ms"},i={p:s,ap:n,nm:"app_session_end_ts_ms"},Xr={p:s,ap:t,nm:"cast_app_session_id"},Jr={p:s,ap:t,nm:"cast_content_session_id"},$r={p:s,ap:e,nm:"client_ip"},Qr={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:n,nm:"user_agent"},Zr={p:c,ap:t,nm:"autostart"},na={p:c,ap:t,nm:"casting"},ea={p:c,ap:t,nm:"controls"},ta={p:c,ap:t,nm:"default_muted"},ia={p:c,ap:t,nm:"default_playback_rate"},ra={p:c,ap:t,nm:"fullscreen"},aa={p:c,ap:t,nm:"loop"},oa={p:c,ap:t,nm:"muted"},sa={p:c,ap:t,nm:"player_name"},ca={p:c,ap:t,nm:"player_version"},ua={p:c,ap:t,nm:"preload"},la={p:c,ap:t,nm:"ready_state"},da={p:c,ap:t,nm:"streaming_protocol"},fa={p:c,ap:t,nm:"streaming_type"},pa={p:c,ap:t,nm:"subtitles"},c={p:u,ap:n,nm:"advertising_id"},ma={p:u,ap:n,nm:"browser_name"},va={p:u,ap:n,nm:"browser_height"},_a={p:u,ap:n,nm:"browser_version"},ha={p:u,ap:n,nm:"browser_width"},Ea={p:u,ap:n,nm:"cookies_enabled"},ga={p:u,ap:e,nm:"device_id"},ya={p:u,ap:n,nm:"device_mfg"},Sa={p:u,ap:n,nm:"device_name"},Ia={p:u,ap:n,nm:"device_type"},Aa={p:u,ap:n,nm:"orientation"},Ta={p:u,ap:n,nm:"os_name"},u={p:u,ap:n,nm:"os_version"},ba={p:l,ap:t,nm:"asset_id"},Oa={p:l,ap:t,nm:"description"},Ca={p:l,ap:t,nm:"duration_sec"},Da={p:l,ap:t,nm:"frame_rate"},Ma={p:l,ap:t,nm:"media_tags"},Ra={p:l,ap:3,nm:"media_type"},Na={p:l,ap:t,nm:"player_height"},ka={p:l,ap:t,nm:"player_width"},Pa={p:l,ap:t,nm:"source"},wa={p:l,ap:t,nm:"title"},La={p:d,ap:e,nm:"city"},xa={p:d,ap:e,nm:"country"},Ua={p:d,ap:e,nm:"country_code"},Fa={p:d,ap:e,nm:"latitude"},Va={p:d,ap:e,nm:"longitude"},Wa={p:d,ap:e,nm:"postal_code"},ja={p:d,ap:e,nm:"region"},Ba={p:d,ap:e,nm:"region_code"},Ha={p:d,ap:e,nm:"continent"},Ga={p:d,ap:e,nm:"continent_code"},l={p:d,ap:e,nm:"district"},qa={p:d,ap:e,nm:"timezone_name"},za={p:d,ap:e,nm:"timezone_offset"},Ya={p:ur,ap:e,nm:"asn"},d={p:ur,ap:e,nm:"asn_org"},Ka={p:ur,ap:n,nm:"connection_type"},Xa={p:ur,ap:e,nm:"isp"},Ja={p:ur,ap:e,nm:"mobile_connection"},$a={p:dr,ap:r,nm:"context_id"},Qa={p:dr,ap:r,nm:"context_name"},ur={p:dr,ap:n,nm:"dz_dictionary_version"},Za={p:dr,ap:r,nm:"msg_send_client_ts_ms"},no={p:dr,ap:r,nm:"player_context_id"},eo={p:dr,ap:e,nm:"server_ts_offset_ms"},to={p:lr,ap:n,nm:"collector_name"},io={p:lr,ap:n,nm:"dz_sdk_version"},ro={p:lr,ap:n,nm:"page_title"},ao={p:lr,ap:n,nm:"page_url"},oo={p:lr,ap:n,nm:"referrer_url"},so={p:lr,ap:n,nm:"site_domain"},co={p:v,ap:r,nm:"ad_beacon_status"},uo={p:v,ap:r,nm:"ad_beacon_type"},lo={p:v,ap:r,nm:"ad_beacon_url"},fo={p:v,ap:2,nm:"ad_beacons"},po={p:v,ap:2,nm:"ad_beacons_rejected"},mo={p:v,ap:2,nm:"ad_beacons_sent"},vo={p:v,ap:e,nm:"ad_blocker"},_o={p:v,ap:t,nm:"ad_break_id"},ho={p:v,ap:2,nm:"ad_click_url"},Eo={p:v,ap:2,nm:"ad_creative_id"},go={p:v,ap:2,nm:"ad_duration_sec"},yo={p:v,ap:2,nm:"ad_id"},So={p:v,ap:r,nm:"ad_om_session_data"},Io={p:v,ap:2,nm:"ad_om_session_events"},lr={p:v,ap:2,nm:"ad_partner"},Ao={p:v,ap:t,nm:"ad_position"},To={p:v,ap:2,nm:"ad_session_id"},bo={p:v,ap:2,nm:"ad_system"},Oo={p:v,ap:2,nm:"ad_time_offset_sec"},e={p:v,ap:n,nm:"ad_tracking_opt_out"},Co={p:v,ap:2,nm:"advertiser_name"},Do={p:v,ap:2,nm:"deal_id"},Mo={p:v,ap:2,nm:"skip_time_offset_sec"},Ro={p:v,ap:2,nm:"wrapper_creative_ids"},No={p:v,ap:2,nm:"wrapper_id"},ko={p:v,ap:2,nm:"wrapper_systems"},n={p:["cdn"],ap:t,nm:"cdn"},Po=(Do.df="",Jn([Ro,No,ko],"df",[]),Be(function(n){return!!n},[vo,e,Zr,yr,na,ea,Ea,ta,ra,aa,Ja,oa,wr,pa,Oi]),Be(function(n){Ue(n)||(n=[n]);for(var e=0;e<n.length;e++)n[e]=Fe(n[e])||"";return n},[Ro,No,ko]),Be(null==Ge&&null==qe?Fe:function(n){var e;return null!=(n=Fe(n))&&(e=n.length,null!=Ge&&e<Ge?n=null:null!=qe&&qe<e&&(n=ze?null:n.slice(0,qe))),n},[xr,_o,ho,Eo,yo,lr,Ao,To,bo,Co,c,Yr,Ya,d,ba,ma,_a,Xr,Jr,n,Sr,La,$r,mr,vr,Qr,Ha,Ga,xa,Ua,_r,Do,Oa,ga,ya,Sa,Ia,l,io,Ur,Fr,hr,Vr,Xa,Ra,br,Or,Aa,Ta,u,Cr,ro,ao,no,sa,ca,Wa,ua,oo,ja,Ba,Mr,Nr,kr,so,Pa,Pr,da,fa,qa,wa,gr,s,Qt,Zt,bi,Ni]),Be(We(0,100),[Xt,Ci,or]),Be(We(0,1e9,!0),[qt]),Be(We(),[go,Oo,i,Kr,sr,cr,va,ha,Ir,ia,Ar,Ca,Da,Wr,Fa,Va,jr,Tr,Na,ka,Dr,Br,la,Rr,Gr,Hr,eo,Mo,qr,zr,Lr,Er,za,a,Yt,Kt,zt,Jt,$t,ei,ti,ni,ii,ri,ai,oi,si,ci,ui,li,di,fi,mi,vi,pi,hi,Ei,gi,yi,Si,Ii,_i,Ai,Ti,fe,Mi,Ri,ki,Pi,wi,Li,xi,Fi,Vi,Ui,Wi,ji,Hi,Gi,Bi,qi,zi,Yi,Ki,Xi,Ji,$i,Zi,nr,Qi,er,tr,ir,rr,ar]),Be(0==(v=5)?je:(Ye=ie.pow(10,v),function(n){return ie.round(n*Ye)/Ye}),[go,Oo,i,Kr,sr,cr,va,ha,Ir,ia,Ar,Ca,Da,Wr,Fa,Va,jr,Tr,Na,ka,Dr,Br,la,Rr,Gr,Hr,eo,Mo,qr,zr,Lr,Er,za,a,qt,Yt,Kt,zt,Xt,Jt,$t,ei,ti,ni,ii,ri,ai,oi,si,ci,ui,li,di,fi,mi,vi,pi,hi,Ei,gi,yi,Si,Ii,_i,Ai,Ti,Ci,fe,Mi,Ri,ki,Pi,wi,Li,xi,Fi,Vi,Ui,Wi,ji,Hi,Gi,Bi,qi,zi,Yi,Ki,Xi,Ji,$i,Zi,nr,Qi,er,tr,ir,rr,ar,or]),[Ze,nt,et,tt,it,rt,at,ot,st,ct,ut,lt,dt,ft,pt,mt,vt,_t,ht,Et,gt,yt,St,It,At,Tt,bt,Ot,Ct,Dt,Mt,Rt,Nt,kt,Pt,wt,Lt,xt,Ut,Ft,Vt,Wt,jt,Bt,Ht]),wo=Kn(Po);function Lo(n,e){return q+n+"_"+e}function xo(n,e){var t,i=Xn(Po),r={},a={};n?0<n.length?(n=Le(t=ee.tt&&o.beta_ev)?n.concat(t.split(".").map(function(n){return{name:n,media_types:["na"]}})):n).forEach(function(n){var e,t=n&&n.name;t&&i[t]?(n=n.media_types)&&0<n.length&&(r[t]=!0,"na"!=n[0])&&(e={},n.forEach(function(n){e[n]=!0}),a[t]=e):ae("Unknown event: "+t)}):e&&ae("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,Po.forEach(function(n){n.on=!(r&&!r[n.nm]),n.mm=a&&a[n.nm]})}xo(),Jn([ai,si,ci,ui,oi,li,di,fi,Ei,gi,yi],"st",p);var Uo=[qt,zt,Yt,Kt,Xt,Jt,$t,Qt,Zt,ni,ei,ti,ii,ri,ai,oi,si,ci,ui,li,di,fi,pi,mi,vi,_i,hi,Ei,gi,yi,Si,Ii,Ai,Ti,bi,Oi,Ci,fe,Di,Mi,Ri,Ni,ki,Pi,wi,Li,xi,Ui,Fi,Vi,Wi,ji,Bi,Hi,Gi,qi,zi,Yi,Ki,Xi,Ji,$i,Qi,Zi,nr,er,tr,ir,rr,ar,or],Fo=[],Vo=(Uo.forEach(function(n){null!=n.ts&&Fo.push(n)}),[]),Wo=[];function jo(n){var e,t=Xn(Uo),i={};n?(n=Le(e=ee.tt&&o.beta_fd)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:ae("Unknown flux data: "+n)}):i=null,Vo=[],Wo=[],Uo.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?Wo:Vo).push(n)})}jo(),Jn([Yr,Kr],"st",p);var Bo,Ho,Go,qo,zo,Yo=[sa,ca,c,wa,ba,fa,na],Ko={},Xo=(Yo.forEach(function(n){Ko[n.nm.toUpperCase()]=H+n.nm}),[mr,vr,_r,hr,Er,gr,sr,cr,yr,Sr,Ir,Ar,Tr,br,Or,Cr,Dr,Mr,Rr,Nr,kr,Pr,wr,Lr,a,xr,Ur,Fr,Vr,Wr,jr,Br,Hr,Gr,qr,zr,Yr,Kr,i,Xr,Jr,$r,Qr,s,Zr,na,ea,ta,ia,ra,aa,oa,sa,ca,ua,la,da,fa,pa,c,ma,va,_a,ha,Ea,ga,ya,Sa,Ia,Aa,Ta,u,ba,Oa,Ca,Da,Ma,Ra,Na,ka,Pa,wa,La,xa,Ua,Fa,Va,Wa,ja,Ba,Ha,Ga,l,qa,za,Ya,d,Ka,Xa,Ja,$a,Qa,ur,Za,no,eo,to,io,ro,ao,oo,so,co,uo,lo,fo,po,mo,vo,_o,ho,Eo,go,yo,So,Io,lr,Ao,To,bo,Oo,e,Co,Do,Mo,Ro,No,ko,n]),Jo=Kn(Xo),$o=Xo.concat(Uo),Qo=Kn($o),Zo=[hr],ns=[],es=[];function ts(n){var e,t=Xn(Xo),i={};Ho=Go=qo=zo=!1,n?((n=Le(e=ee.tt&&o.beta_md)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:"custom_metadata_all"==n?Ho=!0:"custom_events_all"==n?Go=!0:"vendor_metadata_all"==n?qo=!0:"vendor_events_all"==n?zo=!0:ae("Unknown metadata: "+n)}),Zo.forEach(function(n){i[n.nm]=!0})):Ho=Go=qo=zo=!(i=null),ns=[],es=[],Xo.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?es:ns).push(n)})}ts();var is="ad",rs=/^live$/i,as={"application/x-mpegURL":"HLS","application/dash+xml":"DASH","application/vnd.ms-sstr+xm":"Smooth","video/x-flv":"Flash","video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"},os={m3u8:"HLS",mpd:"DASH",mp4:"MP4"};var t=[[/Opera\/([\d.]+)/,"Opera"],[/OPR\/([\d.]+)/,"Opera"],[/Edge\/([\d.]+)/,"Microsoft Edge"],[/Edg\/([\d.]+)/,"Microsoft Edge"],[/MSIE ([\d.]+)/,"Microsoft Internet Explorer"],[/Trident\/.*rv:([\d.]+)/,"Microsoft Internet Explorer"],[/Seamonkey\/([\d.]+)/,"Seamonkey"],[/Firefox\/([\d.]+)/,"Firefox"],[/Chromium\/([\d.]+)/,"Chromium"],[/Chrome\/([\d.]+)/,"Chrome"],[/Safari\/([\d.]+)/,"Safari"]],v=[[/Windows 10\.0|Windows NT 10\.0/,"Windows 10"],[/Windows 8\.1|Windows NT 6\.3/,"Windows 8.1"],[/Windows 8|Windows NT 6\.2/,"Windows 8"],[/Windows 7|Windows NT 6\.1/,"Windows 7"],[/Windows NT 6\.0/,"Windows Vista"],[/Windows NT 5\.2/,"Windows Server 2003"],[/Windows NT 5\.1|Windows XP/,"Windows XP"],[/Windows NT 5\.0|Windows 2000/,"Windows 2000"],[/Win 9x 4\.90|Windows ME/,"Windows ME"],[/Windows 98|Win98/,"Windows 98"],[/Windows 95|Win95|Windows_95/,"Windows 95"],[/Windows NT 4\.0|WinNT4\.0|WinNT|Windows NT/,"Windows NT 4.0"],[/Windows CE/,"Windows CE"],[/Win16/,"Windows 3.11"],[/Tizen/,"Tizen"],[/Android/,"Android"],[/OpenBSD/,"Open BSD"],[/SunOS/,"Sun OS"],[/Linux|X11/,"Linux"],[/iPhone|iPad|iPod/,"iOS"],[/Mac OS X/,"Mac OS X"],[/MacPPC|MacIntel|Mac_PowerPC|Macintosh/,"Mac OS"],[/QNX/,"QNX"],[/UNIX/,"UNIX"],[/BeOS/,"BeOS"],[/OS\/2/,"OS/2"],[/nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver/,"Search Bot"]],st=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],ss=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function cs(n,e,t){e&&t.push(n)}function us(n,e,t){t.push(n+"="+e)}function ls(n,e,t){t.push(n+(o.cmcd_ntq?"="+e:'="'+e+'"'))}function ds(n,e,t){t.push(n+'="'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function fs(n){return"false"!==n}function ps(n){return+n}function ms(n){return n.replace(/"/g,"")}function vs(n){return n.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var _s,hs,pe={bl:[0,[us,ps],sr],br:[1,[us,ps],cr],bs:[2,[cs,fs],yr],cid:[3,[ds,vs],Sr],d:[1,[us,ps],Ir],dl:[0,[us,ps],Ar],mtp:[0,[us,ps],Tr],nor:[0,[ds,vs],br],nrr:[0,[ds,vs],Or],ot:[1,[ls,ms],Cr],pr:[3,[us,ps],Dr],rtp:[2,[us,ps],Rr],sf:[3,[ls,ms],Nr],sid:[3,[ds,vs],kr],st:[3,[ls,ms],Pr],su:[0,[cs,fs],wr],tb:[1,[us,ps],Lr],v:[3,[us,ps],a]},Es={bs:!1,su:!1,v:1,pr:1},gs="org.svalabs-";function ys(n){for(var e,t,i=[[],[],[],[]],r=te.keys(n),a=0;a<r.length;a++)e=r[a],(t=pe[e])&&t[3]&&t[1][0](e,n[e],i[t[0]]);return i}function Ss(n){var e,t=te.keys(pe);for(_s=!1,hs="header"===(Se.options.cmcdMode||o.cmcd_mode),e=0;e<t.length;e++)pe[t[e]][3]=!1;if(n&&Ue(n)&&0<n.length)if(_s=!0,"na"==n[0])for(e=0;e<t.length;e++)pe[t[e]][3]=!0;else n.forEach(function(n){var e=pe[n];e?e[3]=!0:ae("Unknown CMCD key: "+n)})}function Is(n,e,t){for(var i,r,a=te.keys(n),o=0;o<a.length;o++)delete n[a[o]];for(o=0;o<e.length;o++)0!=((i=e[o]).ap&t)&&null!=(r=null==(r=(r=i.st||i.se)&&ke(r,i.nm))?i.df:r)&&(n[i.nm]=r)}function As(n,e,t,i){for(var r,a,o,s,c=0;c<i.length;c++)o=(a=(r=i[c])[0]).nm,0!=(a.ap&t)?(s=e[o])&&s(r)||(n[o]=r[1],(s=a.st||a.on&&a.se)&&m(s,o,r[1])):ae("Setting inapplicable data",a)}function Ts(n,e){return n[e.nm]}function bs(n,e,t,i,r){var a,o=[];return t&&o.push([t,a=e(t)+i]),r&&o.push([r,e(r)+i]),n(o),a}function me(n,e,t){if(e)for(var i,r,a=0;a<e.length;a++)if(r=n[i=e[a]])n=r;else{if(t)return null;n=n[i]={}}return n}function Os(n,e){n=me(n,e.p||Gt,!0);return n&&n[e.nm]}function Cs(n,e,t,i){for(var r,a,o,s=0;s<e.length;s++)0!=((r=e[s]).ap&t)&&null!=(o=He(n[a=r.nm],r.dv))&&(me(i,r.p)[a]=o)}pe[gs+"rid"]=[0,[ds,vs],Mr],pe[gs+"tid"]=[0,[ds,vs]],pe[gs+"cmi"]=[0,[us,ps]],pe[gs+"pmi"]=[0,[us,ps]],Ss();var Ds,Ms,Rs,Ns,ks,Ps,ws,Ls,xs,Us,Fs,Vs,Ws,js,Bs,Hs,Gs,_,qs={},zs={},Ys=ke(p,vn)||[],Ks=[],Xs=1,Js=2,$s=4,Qs=$s,Zs=Js|Xs|Qs,nc=0,ec=1,tc=[];function ic(n){return null!=n?6e4*n:12e5}function rc(n,e){if(!Zs&&0<Ys.length){for(var t,i=se(),r=0,a=0;a<Ys.length;a++)Ys[a].p&&(t=!0,Cs(qs,ns,$e,Ys[a].m)),r=ie.max(r,i-Ys[a].t);Vs&&pc(Ys,0,Wn(Mn,i,r,t),n),e=!0}e&&(Ys=[],Pe(p,vn)),ws=null}function ac(n){if(!(Zs&=~n)){n=tc[nc];if(null==ws&&rc(),re(n))try{n()}catch(n){oe(n,"onConfigReady")}}}function oc(n,e,t,i,r,a,o,s,c){if(4==n.readyState){var u=se(),l=n.status;if(e+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[r++];if(null!=a)return L(function(){o.retry(se()),t(i,r,o)},1e3*a),void ae(e+"retry #"+r+" after "+a+"s")}o.log(u,l),!(l<200||299<l||s&&!s(n,u))||c&&c(e,l)||ae(e+"failed")}}function sc(e,t,i){xs=Zn("POST",$n(ee.sm),{"Content-Type":"application/json","cache-control":"no-cache"},e,function(n){4==n.readyState&&(xs=null,oc(n,"Sampling API",sc,e,t,ee.rd,i,function(n){n=le(n.responseText);if(Us=n&&n[ee.ss+"_sampling"])return Vs=Us.in_sample,Fs=!1,ac(Js),m(p,_n,Us),!0},function(n){return Vs=Fs=!0,ac(Js),ae(n+"forced in"),!0}))})}function cc(){var n;!Ls||Zs&Xs||(ee.sw&&ee.sm?(ee.sp,(n=Jo[ee.sd])&&(Ls.sampling_definition_params={namespace:ee.ss,key_name:n.nm,key_value:vc(n)}),(n=Jo[ee.sc])&&(Ls.sampling_criteria_params={sampling:{key_name:n.nm,key_value:vc(n)}}),Ls.sampling_override=o.sampling_override||"NONE",Ls.sampling_request_id=ce(),sc(ue(Ls),0,Wn(Cn,se()))):(Vs=!0,ac(Js)),Ls=null)}function uc(i,e,t){var n,r;ee.ci?(ee.tt&&(ee.mf=o.mock_config||ee.mf),Oe("Get config from "+(n=ee.mf||Re($n("https://"+ee.cf+"platform.datazoom.io/beacon/v2/config"),function(n){n.append($,ee.ci)}))),r=se(),Zn("GET",n,null,null,function(n){oc(n,"Config API",uc,i,e,ee.rd,t,function(n,e){var t=le(n.responseText);if(t)return i(t,n.getResponseHeader("dz-extra"),r,e),!0},function(n,e){e<400||429==e||499<e||(ee.om=!1),i()})})):(ae("Missing configuration ID"),ee.om=!1,i())}function lc(){uc(function(n,e,t,i){ee.st=null,n&&function i(r,a){de(r)?te.keys(r).forEach(function(n){var e=r[n],t=a[n];de(t)?i(e,t):null==t?be("Unknown config key: "+n):null==e?be("Undefined config key: "+n):t&&(ee[t]=e)}):ae("Invalid config object",r)}(n,K),m(p,hn,ee.st),ee.st=ic(ee.st),m(p,En,ee.od),xo(ee.ev,n),jo(ee.fd),ts(ee.md),Ss(ee.cd),Bo={ad_blocker:1,device_id:1,mobile_connection:1,page_url:1,referrer_url:1},ee.og||(Un=[]),ee.os||(kn=null),f(ee.cm,"sort"),f(ee.am,"sort"),f(ee.cq,"sort"),f(ee.aq,"sort"),mc([[_r,ee.cc],[vr,ee.cl]]),Ks.forEach(function(n){var e,t,i,r,a,o=!1,s=Os(n.m,gr),c=wo[s];c?o=c.on:s.startsWith(G)?o=Go:s.startsWith(q)&&(o=zo),o&&(e=n.m,t={},ns.concat(es).forEach(function(n){null!=(i=Os(e,n))&&(me(t,n.p)[n.nm]=i)}),r=me(e,Gt),a=me(t,Gt),Vo.concat(Wo).forEach(function(n){null!=(i=Os(r,n))&&(a[n.nm]=i)}),Ho&&(i=me(e,fr,!0))&&te.assign(me(t,fr),i),qo&&(i=me(e,pr,!0))&&te.assign(me(t,pr),i),dc(t,a),n.m=t,Ys.push(n))}),m(p,vn,Ys),Ks=[];var r,n=ga.nm,n=(ga.on?(r=ke(h,n))||(r=ce(),m(h,n,r)):Pe(h,n),mc([[ga,r]]),e);try{var a,o,s,c,u,l=n&&le(atob(n));l?(a=l.latitude,o=l.longitude,s=l.timezone_offset,u=(c=l.time_sync)&&+c,mc([[$r,l.client_ip],[Ja,l.mobile_connection],[Ya,l.asn],[Ba,l.region_code],[ja,l.region],[Ua,l.country_code],[xa,l.country],[Wa,l.postal_code],[La,l.city],[Fa,a?+a:null],[Va,o?+o:null],[Ha,l.continent],[Ga,l.continent_code],[qa,l.timezone_name],[za,null!=s?s/3600:null]]),u&&mc([[eo,ie.round(u-(t+i)/2)]])):ae("Missing or invalid dz-extra header")}catch(n){oe(n,"processDzExtra")}ee.ab&&vo.on&&null==vc(vo)?Zn("GET",$n(ee.ab),null,null,function(n){4==n.readyState&&(mc([[vo,!n.status]]),ac($s))}):ac($s),ac(Xs),cc(),L(function(){ac(Qs),cc()},ee.mh),te.keys(ve).forEach(function(n){n=ve[n].configCallback;n&&n(ee)})},0,Wn(Dn,se()))}function dc(n,e){var t=""+(ks+1e7);me(n,hr.p)[hr.nm]=Rs+"_"+t.substr(-7,2)+"."+t.substr(-5),m(p,fn,++ks),ii.on&&(e[ii.nm]=ks)}function fc(n,e,t,i,r,a,o){var s,c,u,l,d,o=o?Ke:Je,f=me(n,Gt);for(Cs(qs,ns,o,n),Cs(qs,Vo,o,f),(i=i||[]).push([gr,e],[Er,t]),s=0;s<i.length;s++)c=(u=i[s])[0],u[2]||0!=(c.ap&Xe)?c.on&&null!=(u=He(u[1],c.dv))&&(me(n,c.p)[c.nm]=u):ae("Invalid event data",c);Ho&&(o=Hn(Ds,r),e=n,r=ue(o),d=r?r.length:0,(l=ee.ml)&&l<d?ae("Custom metadata size: "+d+" > "+l):2<d&&(o=le(r))&&te.assign(me(e,fr),o)),qo&&(l=qn(Ms,a),d=n,l)&&te.assign(me(d,pr),l),Ie&&De("evInfo",n),!(sn<rn)&&ee.le&&ee.le(n)||(r={p:Zs,m:n,t:t},Zs&Xs?Ks.push(r):(dc(n,f),Ys.push(r),m(p,vn,Ys),null==ws&&(ws=L(rc,ee.bd))))}function pc(t,e,i,n){var r,a=t.map(function(n){return n.m}),o=(a.forEach(function(n,e){var t,i=me(n,dr);i.versions=tl,Za.on&&(me(n,Za.p)[Za.nm]=se()),Us&&(i[ee.ss+"_sampling"]=Us),null!=Fs&&(i[ee.ss+"_forced_sampling_in"]=Fs),e||(r=i[gn],kn&&(te.keys(kn).forEach(Bn),kn=null),Un.length&&(r=r?r.concat(Un):Un,Un=[],r.length>ee.mc&&(r.sort(function(n,e){return n.batch()>e.batch()?1:-1}),t=r[r.length-ee.mc-1].batch(),r=r.filter(function(n){return n.batch()>t})),i[gn]=r))}),$n(ee.mb)),a=ue(a);n&&R.sendBeacon&&R.sendBeacon(o,a)||Zn("POST",o,{"Content-Type":"application/json"},a,function(n){oc(n,"Message post",pc,t,e,ee.rd,i,null,function(n,e){t.forEach(function(n){jn(n,e)}),r&&(Un=r.concat(Un))})})}function mc(n){As(qs,zs,Ke,n)}function vc(n){return qs[n.nm]}function _c(n){if(Yu&&(Yu=!1,Ec(vt,n)),!Rs||!Ns||(e=n,t=ee.st,e<Ps&&ae("Activity time reversal: "+Ps+" -> "+e),0<=t&&(e<Ps||Ps+t<=e))){rc(!(Ks=[]),!0);t=n,e=tc[ec];if(Rs=ce(),Ns=Ps=t,mc([[Yr,Rs],[Kr,Ns],[ai,ks=0],[si,0],[ci,0],[ui,0],[oi,0],[li,0],[di,0],[fi,0],[Ei,0],[gi,0],[yi,0]]),m(p,fn,ks),m(p,pn,Ps),Pe(p,_n),xs&&xs.abort(),xs=Us=null,Vs=Fs=null,Zs|=Js,Ls={},cc(),re(e))try{e()}catch(n){oe(n,"onAppSessionStart")}}else m(p,pn,Ps=n);var e,t;mc([[ni,n-Ns],[ha,ne.outerWidth],[va,ne.outerHeight],[ro,ge.title],[ao,M.href],[oo,ge.referrer],[so,M.hostname],[Ea,R.cookieEnabled]])}function hc(n,e,t){bs(mc,vc,n,e,t)}function Ec(n,e,t,i,r){0!=(n.ap&Ke)?(_c(e),n.on&&fc({},n.nm,e,t,i,r,!0)):ae("Event inapplicable: "+n.nm+", ss",n)}function gc(e,t){var i,r;e&&Yo.forEach(function(n){i=H+n.nm,null!=(r=e[i])&&(t([[n,r]]),delete e[i])})}if(Is(qs,$o,Ke),Rs=vc(Yr),Ns=vc(Kr),ks=ke(p,fn)||0,Ps=ke(p,pn)||0,Us=ke(p,_n),Ds=ke(p,mn),Ms=ke(p,"__ss_vendor_md"),ee.st=ic(ke(p,hn)),ee.od=ke(p,En),Us?(Vs=Us.in_sample,Fs=!1,ac(Js)):Ls={},t.some(function(n){if(_=n[0].exec(N))return Ws=n[1],js=_[1],!0})||(_=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(N))&&(Ws=_[1],js=_[2]),(_=/Version\/([\d.]+)/.exec(N))&&(js=_[1]),v.some(function(n){if(n[0].test(N))return Bs=n[1],!0})){switch(_=null,Bs){case"Mac OS X":_=/Mac OS X (10[\d._]+)/.exec(N);break;case"Android":_=/Android ([\d._]+)/.exec(N);break;case"iOS":_=/OS (\d+_\d+(_\d+)?)/.exec(N);break;case"Tizen":_=/Tizen[ \/]([\d._]+)/.exec(N);break;default:(_=/Windows (.*)/.exec(Bs))&&(Bs="Windows")}_&&(Hs=_[1].replace(/_/g,"."))}else Bs=Hs="-";st.some(function(n){if(n[0].test(N))return Gs=n[1],!0}),mc([[s,N],[ma,Ws],[_a,js],[Ta,Bs],[u,Hs],[Ia,Gs],[to,ee.cn],[io,ee.sv],[ur,3]]);var yc="adapterID",Sc="adapterOptions",Ic="baseContext",Ac="contextType",Tc="contextName",bc="metadata",Oc=0,Cc=2,Dc=["base","player","app"],ve={},Mc=[];function Rc(n){if(!n.destroyed){n.setTimer(null);try{var e=n.destroyCallback;e&&e()}catch(n){oe(n,"onDestroy")}delete ve[n.id],n.removeListeners(),n.destroyed=!0}}function Nc(n,e,t,i,r,a,o){(r=r||[]).push([$a,n.id],[Qa,n.name]),fc(e,t,i,r,Hn(n.customMetadata,a),qn(n.vendorMetadata,o))}function kc(n,e){return!(null!=e&&!de(e)||(n.customMetadata=le(ue(e)),0))}function Pc(n){var e=Me(qs);return e._c_=Hn(Ds,n.customMetadata),e._v_=qn(Ms,n.vendorMetadata),e}function wc(){var t,u=[],i={},a={id:ce(),type:Oc,destroyed:!1,destroyCallback:null,configCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(n,e,t){if(a.destroyed)return ae(n+" after destroyed"+(e?": "+e:""),t),!0},onDestroy:function(n){a.destroyCallback=n},onConfig:function(n){a.configCallback=n},setTimer:function(n){var e;t&&(0<=(e=Mc.indexOf(t))&&Mc.splice(e,1),t=null),n&&(Mc.push(n),t=n)},fireEvent:function(n,e,t,i,r){a.shallBlock("fireEvent",n.nm,n)||(_c(e),n.on&&Nc(a,{},n.nm,e,t,i,r))},fireVendorEvent:function(n,e,t){a.fireEvent({ap:I,nm:Lo(n,e),on:zo},se(),null,null,Gn(n,t))},addListener:function(n,e,t,i,r){if(n&&e){var a=n[i=i||"addEventListener"];if(re(a)){c=zn(n,t,s="listener: "+(s=e));var o=sn<an?c:function(){Nn(s,arguments),c.apply(null,arguments)};try{"-"===e?a.call(n,o):a.call(n,e,o),u.push([n,e,t,o,r||"removeEventListener"])}catch(n){oe(n,"addListener: "+e)}}else ae("Invalid add-listener method: "+i,n)}var s,c},removeListeners:function(r,a,o){u=u.filter(function(n){var e=n[0],t=n[1];if(r&&r!=e||a&&a!=t||o&&o!=n[2])return!0;var i=e&&e[n[4]];if(re(i))try{"-"===t?i.call(e,n[3]):i.call(e,t,n[3])}catch(n){}else ae("Invalid remove-listener method: "+n[4],e)})},stash:function(n,e,t){i[n]=[e,t]},unstash:function(n){n.forEach(function(e){var n=i[e];if(n){delete i[e];try{n[0].apply(null,n[1])}catch(n){oe(n,"unstash: "+e)}}})}},n={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return Dc[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){Rc(a)},setMetadata:function(n){return kc(a,n)},getMetadata:function(){return le(ue(a.customMetadata))},generateEvent:function(n,e){a.fireEvent({ap:I,nm:G+n,on:Go},se(),null,e)},dumpDzData:function(n){var e=le(ue(Pc(a)));return null==n?e:e[n]}};return a.basePublicMethods=n,a.publicContext=Me(n),ve[a.id]=a}function Lc(n,e){var t,i;return null==n?i=wc():(i=(t=de(n)&&re(n.contextID)&&n.contextID())&&Le(t)&&ve[t])&&i.type===Oc&&i.publicContext===n||(ae("Invalid contextOptions."+Ic,n),i=wc()),null!=e&&(i.name=e),i}il("player_ctx_core","2.1.0");function xc(n){return ee.sn&&ee.sn[n]||""+n}var Uc,Fc,Vc,Wc,_e=[],jc="idle",Bc=(_e[2]=_e[9]="buffering",_e[3]=_e[10]="playing",_e[4]=_e[11]="paused",_e[5]=_e[12]="seeking",_e[6]="ended",_e[0]=_e[7]=_e[8]=jc,"impression"),Hc="firstQuartile",Gc="midPoint",qc="thirdQuartile",zc="complete",Yc="bufferStart",Kc="bufferFinish",Xc="clickThrough",Jc="volumeChange",$c="fullscreen",Qc="exitFullscreen",Zc="finish",nu=function(x,U,r){var i,a,o,F,V,W,j,B,f={},H={},E={},G={},q={},z={},Y=[],K=[],X=[],J=[],$=[],Q=[],Z=[],p=[],nn=ce(),m=Lc(r[Ic],r[Tc]),s=Gu(r[yc],1),c=r[Sc];function en(){var e,n;o&&(e=se(),n=te.keys(o).map(function(n){return o[n]}),o=null,n.forEach(function(n){w(n.ev,e,n.dl)}))}function g(n,e,t){(o=o||{})[t||n.nm]={ev:n,dl:e}}function v(n){As(f,H,1,n)}function y(n){As(E,G,2,n)}function S(n,e){return Ts(e?E:f,n)}function I(n){return E[n.nm]}function tn(){var n=S(sa),e=S(ca);Is(f,$o,1),v([[Ra,"content"],[sa,n],[ca,e]])}function rn(){Is(E,$o,2),y([[Ra,"ad"]])}function n(n,e){H[n.nm]=e}function an(n,e){G[n.nm]=e}function on(n,e){z[n.nm]=e}function e(n,e,t,i){for(var r=[],a=0;a<e.length;a++)r[e[a]]=!0;Z[n]={tr:r,en:t,ex:i}}c=de(c)?Me(c):{},s&&(W=s[2],j=s[3],te.assign(c,s[4]||{}),F=c[ju],V=c[Bu],(c[Wu]||[]).forEach(function(n){q[n[0].nm]=n[1]})),x&&te.keys(ve).some(function(n){n=ve[n];if(1==n.type&&n.player===x)return n.publicContext.destroy(),!0});var sn,t,cn,u,un,l,ln,dn,A,fn,pn,T,mn,b,O,vn,_n,hn,En,gn,C,D,yn,Sn,d,_,M,R,In,N,k,An,h=0,Tn=jc,bn=1,On=se(),Cn=Ce(ae,"Abnormal duration increment: ",1,1e3,3e5);function Dn(){return 2==bn}function Mn(){return!!b&&b.type===is}function Rn(n){A=n+ee.hi,Oe("Heartbeats started")}function Nn(){A&&Oe("Heartbeats stopped"),A=0}function P(n,e,t){return bs(v,S,n,e,t)}function kn(n){var e=n-On;e<0||e>ee.ed?Cn.log(e):0<e&&(4==h?P(vi,e,pi):11==h?P(mi,e,pi):2==h?(t&&P(Vi,e,Ui),P(Kt,e,zt)):9==h&&(t&&P(Fi,e,Ui),P(Yt,e,zt))),On=n}function Pn(n,e){null!=n&&(p[n]=e)}function w(e,t,i,n,r,a){if(!m.shallBlock("fireEvent",e.nm,e))if(a=a||(Mn()?2:bn),0!=(e.ap&a)){if(_c(t),(i=i||[]).push([no,m.id]),An||(An=!0,(c=X.some(function(n){try{return n(t,i,e,a)}catch(n){oe(n,"extEventHandler")}}))||(c=(u=z&&z[e.nm])&&u(t,i,e,a)),An=!1),!c){kn(t);for(var o,s,c,u,l=[[bi,Tn]],d=0;d<Fo.length;d++)s=p[(o=Fo[d]).ts],l.push([o,s?t-s:0]);v(l),null==S(qt)&&ye&&(u=ye.downlink)&&v([[qt,1e3*u]]),Pn(e.rt,t),Pn(2==a?e.rta:e.rtc,t),!e.on||e.mm&&!e.mm[S(Ra,2==a)]||(u=me(c={},Gt),2==a?(Cs(E,ns,2,c),Cs(E,Vo,2,u),Cs(f,ns,Je,c),Cs(f,Vo,Je,u)):(Cs(f,ns,1,c),Cs(f,Vo,1,u),Cs(E,ns,Je,c),Cs(E,Vo,Je,u)),Nc(m,c,e.nm,t,i,n,r))}}else ae("Event inapplicable: "+e.nm+", "+a,e)}function wn(n){var e=n[1];e&&e!=S(n[0])&&g(pt)}function Ln(n,e){var t=3==e?C:D;if(n!=t){var i,r,a,o,s,c,u,l,d=se();if(A||Rn(d),fn=!0,3==e){if(s=F||ee.mp,C=n,a=d-yn,yn=d,i=S(Ca),T){var f,p=b;if(null==vn&&0<i&&(f=T.locate(i),vn=(f.type?f.start:i)-f._e),i=vn,O&&t>=O.start&&t<=O.end||(O=T.locate(t)),(b=b&&n>=b.start&&n<=b.end?b:T.locate(n))&&(c=b.type,u=b.start,l=b._d),b!=p&&(f=k<=n&&n<k+s,c===is?N!==u&&l&&((null==N?Vn:(f&&w(Dt,d),Hn))(d),N=u,k=b.end,jn(),y(l.concat([[go,k-N]])),Bn(d,b._a),w(it,d,null,null,null,2),D=0,Sn=d):null!=N&&(f&&w(Dt,d,null,null,null,2),Hn(),Wn(d))),c===is)return void(l&&(Ln(p=n-u,10),E[fe.nm]=p))}dn||(r=_n=!_n&&ee.cm?ee.cm.slice():_n)}else s=V||ee.mp,D=n,a=d-Sn,Sn=d,i=I(go),r=hn=!hn&&ee.am?ee.am.slice():hn;if(null!=t&&null!=n&&0<=t&&t<n&&n<=t+s){if(0<i&&r)for(var m,v,_=0,h=3==e&&O&&b?(v=((O.type?O.start:t)-O._e)/i,((c?u:n)-b._e)/i):(v=t/i,n/i);_<r.length&&!(h<(m=r[_]/100));)v<m?(r.splice(_,1),g(At,[[jr,100*m]],At.nm+m)):_++;if(3==e){if(M=n,a<0||a>ee.ed)Cn.log(a);else if(0<a)if(c)P("promo"===c?Ai:null,a,_i);else if(i=P(Ii,a,_i)/1e3,ee.cq)for(En=En||ee.cq.slice();null!=(o=En[0])&&o<=i;)En.shift(),g(Nt,[[Br,o]],Nt.nm+o)}else if(R=n,a<0||a>ee.ed)Cn.log(a);else if(0<a&&(P(hi,a,_i),hc(Ei,a),!1===S(oa)&&hc(gi,a),!0===S(Oi)&&hc(yi,a),i=bs(y,I,Si,a)/1e3,ee.aq))for(gn=gn||ee.aq.slice();null!=(o=gn[0])&&o<=i;)gn.shift(),g(Nt,[[Br,o]],Nt.nm+o)}}}function xn(n,e){null==d&&null!=n&&null!=M&&n!=M&&(d=M,hc(fi,1),w(xt,e||se()))}function Un(n,e){null==_&&null!=n&&null!=R&&n!=R&&(_=R,w(xt,e||se()))}function Fn(n){sn&&w(Wt,n),sn=cn=!1,bn=1,d=M=null,Nn()}function Vn(n){var e,t,i="pre";S(Ii)>1e3*ee.ep&&(e=S(fe),t=S(Ca),i=null!=e&&null!=t&&e+ee.ep>t?"post":"mid"),u=l=ln=!1,rn(),v([[_o,ce()],[Ao,i],[ri,0]]),w(nt,n)}function Wn(n){In+=n-p[14],w(et,n,null,null,null,2),v([[_o,null],[Ao,null],[ri,null]])}function jn(){ln||(ln=!0,y([[To,a||ce()],[Si,0]]),a=null)}function Bn(n,e){var t=tc[4];if(u=!0,hn=gn=null,hc(ai,1),P(ri,1),re(t))try{t(i,e)}catch(n){oe(n,"onAdStart")}w(Ct,n)}function Hn(){if(u){var n=tc[5];if(re(n))try{n(i)}catch(n){oe(n,"onAdEnd")}}u=l=ln=!1,_=R=N=k=null,rn()}function Gn(n,e,t,i){var r,a,o,s;n!=h&&(o=Z[h],r=xc(h)+" => "+xc(n),a=_e[n]||Tn,m.shallBlock("setState",r)||(o.tr[n]?(Oe("state: "+r+" ("+a+")"),(o=o.ex)&&o(e,n,t,i),kn(e),s=h,Tn=a,(o=Z[h=n].en)&&o(e,s,t,i),fn=!0):ae("Invalid transition: "+r)))}function qn(n){return n!=h&&!!Z[h].tr[n]}function zn(){return 0==h||7==h||8==h}function L(o,s,c){return function(n){var e,t,i,r,a;e=o,t=s,i=c,a=(n=n)[0],n=n[1]=He(n[1],a.dv),a=S(a,i),null!=i&&i!=Dn()||null==a||null==n||(t?!n!=!a&&g(n?e:t):n!=a&&g(e,r=e==Pt?a<n?[[xr,"up"]]:n<a?[[xr,"down"]]:null:r))}}function Yn(n){n[1]=He(n[1],n[0].dv)}e(0,[1,8]),e(1,[2,7,8,16],function(n){var e=tc[2];if(Fn(n),sn=!(un=!1),dn=rs.test(S(fa)),In=0,v([[Qr,nn],[$t,n]]),nn=ce(),hc(di,1),B&&B(),re(e))try{e(i)}catch(n){oe(n,"onContentSessionStart")}T=mn,mn=b=O=vn=null,N=k=null,pn=0,w(It,n)}),e(2,[3,4,5,7,8,16],function(n,e){(t=3==e)&&(P(xi,1,wi),w(Ft,n)),w(ut,n)},function(n){w(lt,n),t&&w(Vt,n),t=!1,cn||w(yt,n)}),e(3,[2,4,5,6,7,8,16],function(n){var e,t;cn||(t=(e=n-p[0])-In,cn=!0,_n=En=null,hc(oi,1),v([[rr,t],[ar,e]]),w(Ct,n,[[qr,t],[zr,e]])),C=M=S(fe),yn=n,null!=d&&(w(Ut,n,[[Hr,1e3*d],[Gr,null!=C?1e3*C:null]]),d=null),w(Rt,n),un&&(un=!1,w(Lt,n)),A||Rn(n)},function(){C=null}),e(4,[2,3,5,6,7,8,16],function(n){un||(un=!0,hc(li,1),w(bt,n))}),e(5,[2,3,4,6,7,8,16],function(n){xn(S(fe),n)}),e(6,[2,3,4,5,7,8,16],function(n){w(Dt,n)}),e(7,[],function(n){Fn(n)}),e(8,[],function(n,e,t){w(_t,n,t),Fn(n)}),e(9,[10,11,12,14,15,7],function(n,e){jn(),(t=10==e)&&(P(Li,1,wi),w(Ft,n)),w(ut,n)},function(n){w(lt,n),t&&w(Vt,n),t=!1}),e(10,[9,11,12,13,14,15,7],function(n,e,t,i){jn(),u||Bn(n,i),D=R=I(fe),Sn=n,null!=_&&(w(Ut,n,[[Hr,1e3*_],[Gr,null!=D?1e3*D:null]]),_=null),w(Rt,n),l&&(l=!1,w(Lt,n)),A||Rn(n)},function(){D=null}),e(11,[9,10,12,14,15,7],function(n){l||(l=!0,w(bt,n))}),e(12,[9,10,11,13,14,15,7],function(n){Un(I(fe),n)}),e(13,[9,10,17,7],function(n){w(Dt,n),Hn()}),e(14,[9,10,17,7],function(n){w(ot,n),Hn()}),e(15,[9,10,17,7],function(n,e,t){w(_t,n,t),Hn()}),e(16,[9,10,15,17,7],function(n){bn=2,Vn(n)}),e(17,[2,3,4,5,6,7],function(n){Wn(n),bn=1});var Kn,Xn=ki,Jn=ki;function $n(n){var i=[],r=0,a=0;return i.locate=function(e){return i.find(function(n){return e>=n.start&&e<=n.end})},n.forEach(function(n){var e=n.start,t=n.end;xe(e)&&xe(t)&&(e=e<r?r:e)<t?(r<e&&i.push({start:r,end:e,_e:a}),i.push(te.assign({},n,{start:e,_e:a})),n.type&&(a+=t-e),r=t):ae("Skipped time span",n)}),i.push({start:r,end:he.MAX_VALUE,_e:a}),i}function Qn(n,e){n=n&&n({type:Ae,ack:e,appSID:vc(Yr),ctSID:S(Qr)});n&&n["catch"](function(n){be("Cast transfer message rejected",n)})}function Zn(n){var e,t=m.publicContext,i=null;m.player=n,te.assign(t,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return n},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(Qr)},nextContentSessionID:function(){return nn},playerState:function(){return Tn},destroy:function(){if(!m.destroyed){qn(7)&&Gn(7,se());for(var n=0;n<K.length;n++)try{K[n]()}catch(n){oe(n,"extOnDestroy")}Rc(m)}},startContentSession:function(){return!!zn()&&(m.reset(),m.setState(1),m.setState(2),!0)},setMetadata:function(n){return!!kc(m,n)&&(gc(m.customMetadata,m.setData),!0)},annotateContentSession:function(n){return null==n?!(mn=null):!!Ue(n)&&(mn=$n(n.slice().sort(function(n,e){return n.start>e.start?1:-1})),!0)},dumpDzData:function(n){var e=te.assign(Pc(m),f,E),t=Ra.nm;return e[t]=(Dn()||Mn()?E:f)[t],e=le(ue(e)),null==n?e:e[n]}}),tu.forEach(function(n){try{n(t,m,Y,K,X,J,$,Q)}catch(n){oe(n,"extInit")}});try{i=s?W?W(n,m,c):null:"Missing adapter"}catch(n){i=oe(n,s[0]+" initContext")}return i?(Te(i),t.destroy()):(null!=(e=r[bc])&&t.setMetadata(e),e=se(),w(mt,e),w(Mt,e),m.setTimer(function(){for(var n=0;n<Y.length;n++)try{Y[n]()}catch(n){oe(n,"extOnTimer")}if(Kn)try{Kn()}catch(n){oe(n,"onTimer")}var e=se();kn(e),A&&A<=e&&(fn?(w(gt,e,[[Wr,++pn]]),A=e+ee.hi,fn=!1):Nn())})),t}return 1&(q[Xn.nm]||0)&&(Xn=Ri),2&(q[Jn.nm]||0)&&(Jn=Ri),n(Ca,Yn),an(go,Yn),n(da,function(n){var e=n[1];n[1]=e&&as[e]||e}),n(fa,function(n){dn=rs.test(n[1])}),n(fe,function(n){5==h||2==h?xn(n[1]):3==h&&Ln(n[1],3);for(var e=0;e<J.length;e++)try{J[e](n)}catch(n){oe(n,"extPlayheadHandler")}}),an(fe,function(n){12==h?Un(n[1]):10==h&&Ln(n[1],10)}),n(Xn,L(Pt,null,!1)),an(Jn,L(Pt,null,!0)),n(oa,L(Tt,Bt)),n(ra,L(Et,ht)),n(na,L(dt,ft)),n(ka,L(wt)),n(Na,L(wt)),n(or,L(Ht)),n(Qt,L(ct,null,!1)),an(Qt,L(ct,null,!0)),n(Zt,L(jt)),n(pa,L(jt)),n(Xr,wn),n(Jr,wn),n(Ci,function(n){var e,t,i,r,a=n[1];a=a&&re(a.getBoundingClientRect)?"visible"==ge.visibilityState?(e=(r=a.getBoundingClientRect()).left,t=r.right,i=r.top,r=r.bottom,ie.min(100,ie.max(0,ie.round(100*(ie.min(t,ne.innerWidth)-ie.max(e,0))*(ie.min(r,ne.innerHeight)-ie.max(i,0))/((t-e)*(r-i)))))):0:He(a,Ci.dv),null!=(n[1]=a)&&v([[Oi,50<=a]])}),n(Jt,function(n){var e=n[1];if(e&&re(e.end)){var t,i,r=S(fe);if(null!=r)for(t=0;t<e.length;t++)if(i=e.end(t),r>=e.start(t)&&r<=i)return void(n[1]=1e3*(i-r));n[1]=0}}),on(yt,function(n,e,t,i){2==i&&(a=ce(),e.push([To,a,!0]))}),on(it,function(n,e){a&&e.push([To,a,!0])}),on(_t,function(n,e,t,i){hc(1==i?ui:ci,1,si)}),tn(),rn(),te.assign(m,{type:1,fireEvent:w,fire:function(n,e,t){w(n,se(),e,null,null,t)},setState:function(n,e,t){Gn(n,se(),e,t)},canSetState:qn,reset:function(){qn(7)&&Gn(7,se()),tn(),rn(),p=[],h=0,Tn=jc},setData:function(n){v(n),en()},setAdData:function(n){y(n),en()},getData:S,getAdData:I,getState:function(){return h},isIdle:zn,isAdIdle:function(){return 13==h||14==h||15==h},isInAds:Dn,isInSsaiAds:Mn,onTimer:function(n){Kn=n},onCtSessionStart:function(n){B=n},matchCtSource:function(n){return S(Pa)==n},reqCtSID:function(){return zn()?nn:S(Qr)},reqTracer:function(n,a){n=Re(n,function(n){n["delete"]("CMCD")});var e,t=m.reqCtSID(),i=ce(),r=((a=te.assign({},a||{},{sid:t}))[gs+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(e=S(ba))&&(a.cid=e),{url:n,sid:t,rid:i,cmcd:a,start:se()});return{reqID:i,urlBase:n,url:function(){var e=ys(a);return Re(n,function(n){n.append("CMCD",e[0].concat(e[1],e[2],e[3]).sort().join())})},headers:function(){for(var n={},e=ys(a),t=0;t<4;t++)e[t].length&&(n[ss[t]]=e[t].sort().join());return n},enabledData:function(){for(var n,e,t=te.keys(a),i={},r=0;r<t.length;r++)n=t[r],(e=pe[n])&&e[3]&&(i[n]=a[n]);return i},status:function(n){r.status=n},start:function(){r.start=se()},resp:function(n){r.resp=null!=n?r.start+n:se(),Ie&&De("reqInfo",r)},end:function(n){var e=se(),t=(r.end=null!=n?r.start+n:e,te.assign({},Es,a)),i=[];te.keys(t).forEach(function(n){var e=pe[n];e&&e[2]&&i.push([e[2],t[n]])}),w(St,e,i,null,null,1),Ie&&De("reqInfo",r)}}},updateTimedMetadata:function(n,e,t,i,r){for(var a=0;a<$.length;a++)try{$[a](n,e,t,i,r)}catch(n){oe(n,"extTimedMetadataHandler")}},addCtTimeSpans:function(n){var c=T?T.filter(function(n){return n.type}):[];n.forEach(function(n){for(var e,t,i,r,a=n.start,o=n.end,s=0;s<c.length&&(i=(t=c[s]).start,r=t.end,!(o<=i));s++)a<r&&(i<a?(c.splice(s+1,0,te.assign({},t,{start:a})),t.end=a):(e||(c.splice(s++,0,n),e=!0),o<r?t.start=o:c.splice(s--,1)));e||c.splice(s,0,n)}),T=$n(c),b=O=vn=null},initCastTransfer:function(n){zn()||Qn(n,!1)},handleCastMessage:function(n,e){!n||n.type!==Ae||zn()||(m.setData([[Xr,n.appSID],[Jr,n.ctSID]]),n.ack)||Qn(e,!0)},sa:{}}),s&&v([[sa,s[1]]]),Zs&Xs&&Ss((Xn=Se.options).cmcdEnable?Xn.cmcdKeys||["sid","org.svalabs-rid"]:null),U?j?new Ee(function(e,t){try{j(U,m,c).then(function(n){i=Zn(n),e(i)},function(n){Te(n),t(n)})}catch(n){t(oe(n,s[0]+" createTargetObject"))}}):Ee.reject("Not implemented"):i=Zn(x)},eu=function(n,a){var o=new(n||nl),s=(a=a||el,{});function c(){return{currentTime:o.currentTime}}function u(){return{getAdId:function(){return s.adId},getAdSystem:function(){return s.adSystem},getAdvertiserName:function(){return s.advertiserName},getCreativeId:function(){return s.creativeId},getDealId:function(){return s.dealId},getDuration:function(){return s.duration},getSkipTimeOffset:function(){return s.skipTimeOffset},getVastMediaBitrate:function(){return s.vastMediaBitrate},getVastMediaWidth:function(){return s.vastMediaWidth},getVastMediaHeight:function(){return s.vastMediaHeight},getWrapperAdIds:function(){return s.wrapperAdIds},getWrapperAdSystems:function(){return s.wrapperAdSystems},getWrapperCreativeIds:function(){return s.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return s.adPodIndex},getTimeOffset:function(){return s.adTimeOffset}}},h:{clickThroughUrl:s.clickThroughUrl}}}return o.dispatch=function(n,e,t){var i,r;t=t||{},e&&((i=e.media)&&te.assign(o,i),i=e.ima)&&((e=i.adsManager)&&te.assign(o,e),(e=i.ad)&&te.assign(s,e),t.getAd=u,t.getAdData=c,r=i.error)&&(t.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),n&&(e=new a(n),te.assign(e,t),o.dispatchEvent(e))},o.getBoundingClientRect=function(){return o.boundingClientRect||{left:0,right:0,top:0,bottom:0}},o.getVolume=function(){return o.volume},o},tu=[],iu="REQUEST_COMPLETE",ru="SLOT_STARTED",au="SLOT_ENDED",ou="AD_INITIATED",su="AD_BUFFERING_START",cu="AD_BUFFERING_END",uu="AD_PAUSE",lu="AD_RESUME",du="AD_IMPRESSION",fu="AD_IMPRESSION_END",pu="AD_COMPLETE",mu="AD_SKIPPED",vu="AD_CLICK",_u=(rl("freewheel","2.0.0"),tu.push(function(n,i,e,t){var r,a,o=i.setState,s=i.setAdData,c=i.fire,u={},l={on:{}};function d(){r&&(i.removeListeners(r),u={},r=a=null)}l.$update=l.update=function(n,e){var t;i.isInAds()&&(e&&s([[Oo,f(e,"getTimePosition")]]),a&&(s([[fe,f(a,"getPlayheadTime")],[go,f(a,"getDuration")],[yo,f(a,"getAdId")],[Eo,a._creativeId],[Do,f(a,"getDealId")],[Mo,f(a,"getSkipOffset")]]),e=f(a,"getActiveCreativeRendition"))&&(t=f(e,"getHeight"),s([[Pi,f(e,"getWidth")],[Ri,t],[Ni,t?t+"p":null]])),n)&&(e=f(n,"getAdVolume"),i.setData([[or,100*e],[oa,0==e]]))},l.on[iu]=function(n,e){e.success?c(It,null,2):c(_t,null,2)},l.on[ru]=function(n,e){a=null,o(16),l.update(n,e.slot)},l.on[au]=function(){o(17),a=null},l.on[ou]=function(){s([[Ti,1]]),c(yt,null,2)},l.on[su]=function(){o(9)},l.on[cu]=l.on[lu]=function(){o(10,null,a)},l.on[du]=function(){o(10,null,a),c(it,null,2)},l.on[uu]=function(){o(11)},l.on[pu]=function(){o(13),a=null},l.on[mu]=function(){o(14),a=null},l.on[fu]=function(){a=null},l.on[vu]=function(){c(tt)},l.on["ERROR"]=function(n,e){o(15,[[Ur,e.errorCode],[Fr,e.errorInfo]]),a=null},l.on["AD"]=function(n,e){a=e.adInstance,l.update(n);var t=u[e.subType];t&&t(n,e)},l.$on=Me(l.on),i.sa.fwContext=l,e.push(function(){r&&l.update(r)}),t.push(d),Yn({attachFwContext:function(n){var e;!i.shallBlock("attachFwContext",null,n)&&n!=r&&(d(),r=n)&&(e=y(ne.tv,["freewheel","SDK"]),[iu,ru,au,"AD"].forEach(function(t){var n=e&&e["EVENT_"+t];n&&i.addListener(r,n,function(n){var e=l.on[t];e&&e(r,n)})}),[ou,su,cu,uu,lu,du,fu,pu,mu,vu,"ERROR"].forEach(function(i){var n=e&&e["EVENT_"+i];n&&(u[n]=function(n,e){var t=l.on[i];t&&t(n,e)})}))},detachFwContext:d},[n,i])}),"play"),hu="waiting",Eu="playing",gu="pause",yu="seeking",Su="seeked",Iu="ended",Au="durationchange",Tu="ratechange",bu="timeupdate",Ou=(rl("html5","2.0.0"),tu.push(function(n,a,e,t){var r,o,s,c,i=a.setState,u=a.setData,l=a.addListener,d=a.removeListeners;function f(){o&&d(o),r&&d(r),r=o=null}function p(){if(r){for(var n,e,t,i=0;i<r.length;i++)"metadata"===(t=r[i]).kind?e=e||t:"showing"===t.mode&&(n=n||t);s||u([[pa,!!n],[Zt,n?n.label||n.language:null]]),o!=e&&(o&&d(o),o=e)&&l(o,"cuechange",function(){var n=o.activeCues;if(n)for(var e,t,i=0;i<n.length;i++)(t=(e=n[i]).value)&&a.updateTimedMetadata("ID3",e.startTime,e.endTime,t.key,t.data)})}}t.push(f);var m={on:{}};function v(){c&&d(c),c=null}m.$update=m.update=function(n,e){e&&(u([[Ca,n.duration],[ta,n.muted],[ia,n.playbackRate]]),p()),a.isInAds()||u([[fe,n.currentTime],[Ti,n.playbackRate],[ka,n.offsetWidth],[Na,n.offsetHeight],[Ci,n],[Jt,n.buffered],[aa,n.loop],[oa,n.muted],[or,100*n.volume],[la,n.readyState]])},m.on[_u]=function(n){a.isIdle()&&(a.reset(),m.update(n,!0),i(1),i(2))},m.on[hu]=function(n){m.update(n),i(2)},m.on[Eu]=function(n){m.update(n),a.isAdIdle()&&i(17),i(3)},m.on[gu]=function(n){m.update(n),i(4)},m.on[yu]=function(n){m.update(n),i(5)},m.on[Su]=function(n){m.update(n),i(n.paused?4:3)},m.on[Iu]=function(n){m.update(n),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(n){var e,t=n.error;t&&(e=[[Ur,t.code],[Fr,t.message]]),m.update(n),i(8,e)},m.on[Au]=function(n){u([[Ca,n.duration]])},m.on[Tu]=function(n){u([[Ti,n.playbackRate]])},m.on[bu]=function(n){m.update(n)},m.$on=Me(m.on),a.sa.mediaElement=m,e.push(function(){c&&m.update(c)}),t.push(v),Yn({attachMediaElement:function(n){v(),(c=n)&&[[_u,(n=[[Iu,gu,yu,_u,hu,Su,Eu]])[0]],[hu,n[0]],[Eu,n[0]],[gu,n[0]],[yu,n[0]],[Su,n[0]],[Iu,n[0]],["error"],[Au],[Tu],[bu]].forEach(function(i){var r=i[0];l(c,r,function(n){var e,t=m.on[r];t&&((e=i[1])?(a.stash(r,t,[c,n]),L(function(){a.unstash(e)},0)):t(c,n))})})},detachMediaElement:v,attachTextTracks:function(n,e){f(),s=e,(r=n)&&["change","addtrack","removetrack"].forEach(function(n){l(r,n,p)})},detachTextTracks:f},[a])}),"CLICK"),Cu="STARTED",Du="AD_PROGRESS",Mu="AD_BUFFERING",Ru="IMPRESSION",Nu="PAUSED",ku="RESUMED",Pu="COMPLETE",wu="LOADED",Lu="ALL_ADS_COMPLETED",xu="SKIPPED",Uu="VOLUME_CHANGED",Fu="AD_ERROR",Vu={CLICK:"click",STARTED:"start",AD_PROGRESS:"adProgress",AD_BUFFERING:"adBuffering",IMPRESSION:"impression",PAUSED:"pause",RESUMED:"resume",COMPLETE:"complete",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",VOLUME_CHANGED:"volumeChange",AD_ERROR:"adError"},Wu=(rl("ima","2.0.0"),tu.push(function(n,a,e,t){var o,i=a.setState,r=a.setAdData,s=a.fire,c=a.addListener,u=a.removeListeners;function l(n){var e,n=n.getError();return n&&(e=[[Ur,n.getErrorCode()],[Fr,n.getMessage()]],n=n.getInnerError())&&e.push([Vr,""+n]),e}var d,f,p={on:{}};function m(){o&&u(o),o=null}function v(n){var e=n.getAdPodInfo(),t=n.getVastMediaHeight(),t=[[yo,n.getAdId(),!0],[bo,n.getAdSystem(),!0],[Co,n.getAdvertiserName(),!0],[Eo,n.getCreativeId(),!0],[Do,n.getDealId(),!0],[go,n.getDuration(),!0],[Mo,n.getSkipTimeOffset(),!0],[ki,n.getVastMediaBitrate(),!0],[Pi,n.getVastMediaWidth(),!0],[Ri,t,!0],[Ni,t?t+"p":null,!0],[No,n.getWrapperAdIds(),!0],[ko,n.getWrapperAdSystems(),!0],[Ro,n.getWrapperCreativeIds(),!0],[ho,y(n,[/[a-z]/,"clickThroughUrl"]),!0]];return e&&t.push([Oo,e.getTimeOffset(),!0]),t}p.$update=p.update=function(n,e){a.isInAds()&&(e&&r(v(e)),n)&&(e=n.getVolume(),a.setData([[or,100*e],[oa,0==e]]))},p.on[Ou]=function(n){p.update(n),s(tt)},p.on[Cu]=function(n,e){e=e.getAd();a.isInAds()||i(16),r([[Ti,1]]),p.update(n,e),i(10,null,e)},p.on[Du]=function(n,e){e=y(e.getAdData(),["currentTime"]);null!=e&&(p.update(n),9==a.getState()&&(null==d?d=e:d!=e&&i(10)),r([[fe,e]]))},p.on[Mu]=function(n){p.update(n),i(9),d=null},p.on[Ru]=function(n){p.update(n),s(it,null,2)},p.on[Nu]=function(n){p.update(n),i(11)},p.on[ku]=function(n){p.update(n),i(10)},p.on[Pu]=function(n){p.update(n),i(13)},p.on[wu]=function(n,e){e=e.getAd();s(yt,e&&v(e),2)},p.on[Lu]=function(){i(17),m()},p.on[xu]=function(n){p.update(n),i(14)},p.on[Uu]=function(n){p.update(n)},p.on[Fu]=function(n,e){p.update(n),a.canSetState(15)?i(15,l(e)):s(_t,l(e),2)},p.$on=Me(p.on),a.sa.imaAdsManager=p,e.push(function(){o&&p.update(o)}),t.push(m);var _={on:{}};function h(){f&&u(f),f=null}_.on[Fu]=function(n,e){s(_t,l(e),2)},_.$on=Me(_.on),a.sa.imaAdsLoader=_,t.push(h),Yn({attachImaAdsManager:function(n){var e,t;!a.shallBlock("attachImaAdsManager",null,n)&&n!=o&&(m(),o=n)&&(n=y(ne.google,["ima"]),e=y(n,["AdEvent","Type"],Vu),[[Ou],[Cu,null,(t=[[Cu,Ru]])[0]],[Du],[Mu],[Ru,null,t[0]],[Nu],[ku],[Pu],[wu],[Lu],[xu],[Uu],[Fu,y(n,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],n=(i[1]||e)[r];n&&c(o,n,function(n){var e,t=p.on[r];t&&((e=i[2])?(a.stash(r,t,[o,n]),L(function(){a.unstash(e)},0)):t(o,n))})}),s(It,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(n){a.shallBlock("attachImaAdsLoader",null,n)||n==f||(h(),(f=n)&&(n=y(ne.google,["ima","AdErrorEvent","Type"],Vu)[Fu])&&c(f,n,function(n){var e=_.on[Fu];e&&e(f,n)}))},detachImaAdsLoader:h},[n,a])}),rl("ima_dai","2.0.0"),tu.push(function(e,r,n,t,i,a,o){var s,c,u,l=r.addListener;function d(){s&&r.removeListeners(s),s=c=u=null}function f(n){for(var e;(e=c[0])&&e.t<=n;)c.shift(),delete e.t,s.onTimedMetadata(e)}t.push(d),a.push(function(n){s&&f(u=n[1])}),o.push(function(n,e,t,i,r){var a;s&&i&&r&&Le(a="ID3"===n?r:a)&&((n={t:e})[i]=a,c.push(n),null!=u)&&f(u)}),Yn({attachImaDaiStreamManager:function(n){r.shallBlock("attachImaDaiStreamManager",null,n)||n==s||(d(),(s=n)&&(n=y(ne.google,["ima","dai","api","StreamEvent","Type"]),c=[],n)&&(l(s,n.CUEPOINTS_CHANGED,function(n){r.isIdle()&&(n=y(n.getStreamData(),["cuepoints"]))&&n.length&&e.annotateContentSession(n.map(function(n){return{type:is,start:n.start,end:n.end}}))}),l(s,n.STARTED,function(n){var e,t,i,n=n.getAd();n&&(e=u||0,t=n.getAdPodInfo(),i=n.getVastMediaHeight(),r.addCtTimeSpans([{type:is,start:e,end:e+(n.getDuration()||0),_d:[[yo,n.getAdId()],[bo,n.getAdSystem()],[Co,n.getAdvertiserName()],[Eo,n.getCreativeId()],[Do,n.getDealId()],[Mo,n.getSkipTimeOffset()],[Pi,n.getVastMediaWidth()],[Ri,i],[Ni,i?i+"p":null],[No,n.getWrapperAdIds()],[ko,n.getWrapperAdSystems()],[Ro,n.getWrapperCreativeIds()],[Oo,t?t.getTimeOffset():null]],_a:n}]))})))},detachImaDaiStreamManager:d},[e,r])}),Se.mediatailor=((Ot=g.mediatailor)&&(Ot.clientInfo+=" DZSDK "+ee.cn+" v"+ee.sv),Ot),rl("mediatailor","2.0.0"),tu.push(function(n,u,e,t,i,r,a,o){var l,d,f,p,m;function v(n,e,t){if(n&&1===n.playCount)for(var i=o.length,r=0;r<i;r++)o[r](e,t)}function _(){l&&d&&l.removeAdObserver(d),l=d=null,f=p=m=null}t.push(_),i.push(function(n,e,t,i){var r=f&&f[t.nm];return r&&r(n,e,t,i)}),r.push(function(n){l&&3==u.getState()&&(p=n[1],m=u.getData(Di),sn<an||Nn("MT onPlayheadUpdate: "+p+", "+m),l.onPlayheadUpdate(p,m||null))}),a.push(function(n,e,t,i,r){var a,o,s,c;l&&"EMT-TRACKING"===n&&r&&(e=e,(a=(a=r)&&a.avails)&&a.length&&(o=e-a[0].startTimeInSeconds,s=function(n){n.startTimeInSeconds+=o},c=function(n){var e=n.trackingEvents;n.startTimeInSeconds+=o,n.adProgramDateTime=null,e&&e.forEach(s)},a.forEach(function(n){var e=n.ads;n.startTimeInSeconds+=o,n.availProgramDateTime=null,e&&e.forEach(c)})),l.updateAdTrackingInfo(r,n))}),Yn({attachMediaTailorSession:function(n,e){var o,s,c,t,i,r,a;e=e||Se.mediatailor,!u.shallBlock("attachMediaTailorSession",null,n)&&e&&n!=l&&(_(),t=function(){var n=u.getData(or);xe(n)&&v(o,Jc,n)},i=e.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(n){return function(){v(o,n)}})(Bc),r[i.LOADED]=a("loaded"),r[i.START]=a("start"),r[i.FIRST_QUARTILE]=a(Hc),r[i.MID_POINT]=a(Gc),r[i.THIRD_QUARTILE]=a(qc),r[i.COMPLETE]=a(zc),r[i.PAUSE]=a("pause"),r[i.RESUME]=a("resume"),r[i.FULLSCREEN]=a($c),r[i.EXIT_FULLSCREEN]=a(Qc),r[i.MUTE]=function(){v(o,Jc,0)},r[i.UNMUTE]=t,r[i.CLICK_THROUGH]=function(){u.fire(tt),v(o,Xc)},r[i.SKIP]=function(){u.fire(ot),v(o,"skip")},l=n)&&(a=e.PlaybackEvent,f={},[[a.START,Ct,1],[a.END,Wt,I],[a.PAUSE,bt,I],[a.RESUME,Lt,I],[a.MUTE,Tt,I],[a.UNMUTE,Bt,I],[a.FULLSCREEN,Et,I],[a.EXIT_FULLSCREEN,ht,I]].forEach(function(r){f[r[1].nm]=function(n,e,t,i){r[2]&i&&l.onPlaybackEvent(r[0])}}),f[Ht.nm]=t,f[ut.nm]=function(){v(o,Yc)},f[lt.nm]=function(){v(o,Kc)},d={onNewAd:function(n){var e,t;u.addCtTimeSpans([(e=(n=n).startDate,t=n.trackingEvents,e=e&&m?e-m+p:n.start,{type:is,start:e,end:e+n.duration,_a:n,_d:[[yo,n.vastAdId],[bo,n.adSystem],[Eo,n.creativeId],[Mo,n.skipOffset],[Oo,n.availStart],[ho,n.videoClickThrough],[fo,t&&t.map(function(n){return n.eventType}).join(",")]]})])},onAdLoad:function(n){var e,i,t,r,a=n.adVerifications;s={},c={},1===(o=n).playCount&&(e={},i=[],t=u.getData(or),r=n.skipOffset,xe(t)&&(e["v"]=t),e["d"]=n.duration,e["ap"]=!!u.getData(Zr),e["po"]=0===n.availStart?0:1,e["sk"]=0<=r,e["so"]=e["sk"]?r:null,e["vf"]=i,a&&a.forEach(function(n){var e=y(n.javaScriptResource,[0,"uri"]),t=n.vendor;e&&t&&i.push({url:e,vd:t,p:n.verificationParameters||""})}),v(n,"init",e))},onAdEnd:function(n){v(n,Zc),o=s=c=null},onAdTrackingEvent:function(n,e){e=r[e];e&&e()},onAdBeaconResponse:function(n,e,t,i){e=e&&e.eventType;n==o&&e&&(i<200||299<i?c&&(c[e]=1,u.setAdData([[po,te.keys(c).join(",")]])):s&&(s[e]=1,u.setAdData([[mo,te.keys(s).join(",")]]))),u.fire(Ze,[[uo,e],[lo,t],[co,i]],2)},onNonLinearAdsStart:function(n,e,t){},onNonLinearAdsEnd:function(n){}},l.addAdObserver(d))},detachMediaTailorSession:_},[n])}),rl("yospace","2.0.0"),tu.push(function(s,c,n,e,t,i,r){var f,u,l,a,d,p,m,v,_,h=["YMID","YSEQ","YTYP","YDUR"];function E(){f&&u&&f.removeAnalyticObserver(u),f=u=null,l=a=d=m=null}function o(n){for(var e;(e=l[0])&&e.t<=n;)l.shift(),f.onTimedMetadata(_.createFromMetadata(e.YMID,e.YSEQ,e.YTYP,e.YDUR,1e3*e.t))}function g(n,e,t){(a=a&&a.t===n?a:{t:n})[e]=t||"",te.keys(a).length===h.length+1&&(l.push(a),(a=null)!=m)&&o(m)}e.push(E),t.push(function(n,e,t,i){var r=d&&d[t.nm];return r&&r(n,e,t,i)}),i.push(function(n){f&&!c.isIdle()&&(m=n[1],p===v.VOD||p===v.DVRLIVE?f.onPlayheadUpdate(ie.round(1e3*m)):o(m))});var y=A.fromCharCode;function S(n,e,t){for(var i,r=[];e<t;)31<(i=n[e++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(n,e,t,i,r){var a;if(f&&r&&p===v.LIVE)if("ID3"===n||"org.id3"===n)h.includes(i)&&(r instanceof C&&(r=new O(r))||r instanceof O?3===r[0]&&(a=S(r,1,r.length)):a=r,Le(a))&&g(e,i,a);else if("urn:yospace:a:id3:2016"===n){if(r instanceof O)for(var o,s=S(r,0,r.length).split(","),c=0;c<s.length;c++)o=s[c].split("="),h.includes(o[0])&&g(e,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===n&&r instanceof O){var u=r.length;if(9<u&&73===r[0]&&68===r[1]&&51===r[2]&&(r[3]<<8|r[4])<=1024&&!(192&r[5])){c=6;for(var l=0,d=10;c<d;)l=l<<7|127&r[c++];for(u=ie.min(u,l+10);c+9<u;){for(i="",d=c+4;c<d;)i+=y(r[c++]);for(l=0,d=c+4;c<d;)l=l<<7|127&r[c++];d=(c+=2)+l,h.includes(i)&&d<=u&&g(e,i,S(r,c,d)),c=d}}}}),Yn({attachYospaceSession:function(n){var e,a,o,t,i,r=ne.YospaceAdManagement;!c.shallBlock("attachYospaceSession",null,n)&&r&&n!=f&&(E(),f=n)&&(e=r.PlayerEvent,n=r.BreakType,v=r.PlaybackMode,_=r.TimedMetadata,p=f.getPlaybackMode(),l=[],d={},[[e.START,Ct,1],[e.STOP,Wt,I],[e.PAUSE,bt,I],[e.RESUME,Lt,I],[e.STALL,Ft,I],[e.CONTINUE,Vt,I]].forEach(function(r){d[r[1].nm]=function(n,e,t,i){r[2]&i&&f.onPlayerEvent(r[0],0)}}),d[Ut.nm]=function(){f.onPlayerEvent(e.SEEK,1e3*(m||0))},d[Tt.nm]=function(){f.onVolumeChange(!0)},d[Bt.nm]=function(){f.onVolumeChange(!1)},a=function(n,e){n=n.getProperty(e);return n&&n.getValue()},o=function(n,e,t,i){n&&(e.push(n.getIdentifier()),t.push(n.getAdSystem()),i.push(n.getCreativeIdentifier()),o(n.getLineage(),e,t,i))},t=function(n){var e=n.getSkipOffset(),t=[],i=[],r=[],e=(o(n.getLineage(),t,i,r),[[yo,n.getIdentifier()],[bo,a(n,"AdSystem")],[Co,a(n,"Advertiser")],[Mo,0<e?e/1e3:e],[No,t],[ko,i],[Ro,r]]),t=n.getLinearCreative(),i=(t&&e.push([Eo,t.getCreativeIdentifier()],[ho,t.getClickThroughUrl()]),n.getStart()/1e3);return{type:is,start:i,end:i+n.getDuration()/1e3,_d:e,_a:n}},u={onAdvertBreakStart:function(n){},onAdvertBreakEnd:function(){},onAdvertStart:function(n){c.addCtTimeSpans([t(n)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(n){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(n){}},f.addAnalyticObserver(u),p===v.VOD)&&(i=[],(r=f.getAdBreaksByType(n.LINEAR))&&r.forEach(function(n){n=n.adverts;n&&n.forEach(function(n){i.push(t(n))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:E},[s])}),rl("open_measurement","2.0.0"),tu.push(function(n,h,e,t,i,r,a,o){var s,E,c,u;function l(){u&&u(Zc),E=c=u=null,s=!1}t.push(l),o.push(function(n,e){s&&("init"===n?(u&&u(Zc),u=!1===ee.om?null:c(e)):u&&(u(n,e),n===Zc)&&(u=null))}),Yn({startOmidSessionClient:function(n){var f,p,m,v,_=g.OmidSessionClient,e=we.omidPartnerName,t=we.omidPartnerVersion;h.shallBlock("startOmidSessionClient",null,n=n||{})||(f=n.omidServiceWindow||ne.self,p=n.videoElement,m=n.contentURL||M.href,v=n.accessModeHandler,_&&e&&t&&p?(l(),E=new _.Partner(e,t),c=function(i){var t=[];function n(n){var e=n?at:rt,t=[[So,ue(i)]];n&&t.push([Fr,n]),h.fire(e,t,2)}function r(n,e){t.push(null==e?n:n+"("+e+")"),h.setAdData([[Io,t.join(",")]])}h.setAdData([[Io,null]]);var a,o,s,c,u,l,e=i["vf"],e=e&&e.map(function(n){var e=n["url"],t=n["vd"],n=n["p"]||"";return new _.VerificationScriptResource(e,t,n,v&&v(e,t,n)||"full")});return e&&e.length?((e=new _.Context(E,e,m)).setServiceWindow(f),"VIDEO"===p.tagName?e.setVideoElement(p):e.setVideoElement(p.getElementsByTagName("video")[0]||p),a=new _.AdSession(e),o=!1,s=[],a.setCreativeType("video"),a.setImpressionType("beginToRender"),a.isSupported()?(l={loaded:function(){c.loaded(new _.VastProperties(i["sk"],i["so"],i["ap"],i["po"]))},start:function(){u.start(i["d"],i["v"]/100)},impression:function(){c.impressionOccurred()},firstQuartile:function(){u.firstQuartile()},midPoint:function(){u.midpoint()},thirdQuartile:function(){u.thirdQuartile()},complete:function(){u.complete()},pause:function(){u.pause()},resume:function(){u.resume()},bufferStart:function(){u.bufferStart()},bufferFinish:function(){u.bufferFinish()},skip:function(){u.skipped()},clickThrough:function(){u.adUserInteraction("click")},volumeChange:function(n){i["v"]=n,u.volumeChange(n/100)},fullscreen:function(){u.playerStateChange("fullscreen")},exitFullscreen:function(){u.playerStateChange("normal")},finish:function(){a.finish()}},a.registerSessionObserver(function(n){switch(n.type){case"sessionStart":var e;for(r(n.type),c=new _.AdEvents(a),u=new _.MediaEvents(a),o=!0;e=s.shift();)d(e[0],e[1]);break;case"sessionError":r(n.type),ae("OMID ad session error")}}),n(),a.start(),d):(ae("OMID ad session unsupported"),n("Unsupported"),null)):(n("Resources not found"),null);function d(n,e){var t;o?(t=l[n])?(r(n,e),t(e)):ae("Unknown amEvent: "+n):s.push([n,e])}},s=!0):Te("Missing OM SDK library or parameters"))},stopOmidSessionClient:l},[n])}),Se.omidPartnerName=we.omidPartnerName,Se.omidPartnerVersion=we.omidPartnerVersion,"unsupportedDataList"),ju="maxCtPlayheadInterval",Bu="maxAdPlayheadInterval",Hu={};function Gu(n,e){var t=null==n?Uc:Le(n)&&Hu[n];return t&&t[5]===e?t:(ae("Invalid adapter for id: "+n),null)}function qu(n,e,t,i,r,a){i=[n,Fc,i,r,a,t];Uc=Uc||i,Hu[n]=i,il("adt_"+n,e)}function zu(){if(!Vc){var n=tc[3];if(re(n))try{n()}catch(n){oe(n,"onPageUnload")}te.keys(ve).forEach(function(n){ve[n].publicContext.destroy()}),rc(!0),Vc=!0}}Fc="Brightcove Player",qu("videojs","2.29.0",1,function(o,s,n){var c,u,e,i,n=n.videojsClass||ne.videojs;if(!o||!n)return"Invalid player or missing videojs class";function l(n,e,t){s.addListener(n,e,t,"on","off")}function d(n){n&&s.removeListeners(n)}s.setData([[ca,n.VERSION]]);var f,n=y(ne.cast,["framework","CastContext"]),n=n&&n.getInstance();function r(){var n=y(ne.cast,["framework","CastContext"]),n=n&&n.getInstance();return n&&n.getCurrentSession()}function a(n){var e=r();return e&&e.sendMessage(Q,n)}function p(){var n;s.isIdle()||(e&&(n=e.getInstance().getCastState(),s.setData([[na,"CONNECTED"==n]])),0!==o.duration()&&s.setData([[fa,o.duration()==1/0?"Live":"VOD"]]),s.isInAds())||(n=o.currentTime(),null!=f&&s.setData([[Di,n+f]]),s.setData([[fe,n],[Ti,o.playbackRate()],[ka,o.currentWidth()],[Na,o.currentHeight()],[Ci,o.contentEl()],[aa,o.loop()],[oa,o.muted()],[or,100*o.volume()],[la,o.readyState()],[Jt,o.buffered()],[ra,o.isFullscreen()],[Zr,o.autoplay()]]))}function m(n){n&&s.setData([[ba,n.id],[wa,n.name],[Oa,n.description]])}function v(){var n,e=o.audioTracks();if(e)for(var t,i=0;i<e.length;i++)if((t=e[i]).enabled){n=t;break}s.setData([[Qt,n?n.label||n.language:null]])}function _(){var n,e,t,i=o.textTracks();if(i)for(var r,a=0;a<i.length;a++)"segment-metadata"==(r=i[a]).label?e=r:"metadata"===r.kind?t=r:"showing"==r.mode&&(n=r);s.setData([[pa,!!n],[Zt,n?n.label||n.language:null]]),c!=e&&(d(c),c=e)&&l(c,"cuechange",function(){var n,e,t,i,r=y(c.activeCues,[0,"value"]);r&&(e=(n=r.resolution||{}).height,t=r.start,i=r.programDateTime,s.setData([[ki,r.bandwidth/1e3],[Pi,n.width],[Ri,e],[Ni,null!=e?e+"p":null]]),null!=t)&&i&&(f=i/1e3-t)}),u!=t&&(d(u),u=t)&&l(u,"cuechange",function(){var n=u.activeCues;if(n)for(var e,t,i=0;i<n.length;i++)(t=(e=n[i]).value)&&s.updateTimedMetadata("ID3",e.startTime,e.endTime,t.key,t.data)})}function t(){p(),s.setState(4)}function h(){p(),s.setState(6)}function E(){s.setData([[Ca,o.duration()]])}function g(n){L(function(){s.unstash(["ended","pause"])},n)}_s&&(o.cmcd&&o.cmcd({sid:s.reqCtSID(),cid:"-",useHeaders:!1}),l(o,"xhr-hooks-ready",function(){function n(n){var i,e,r,t=n.uri;return t&&(e=Qn(t,"CMCD"),r={},e&&e.split(",").forEach(function(n){var n=n.split("="),e=n[0],t=pe[e];t&&(r[e]=t[1][1](n[1]))}),delete(e=r).cid,i=s.reqTracer(t,e),n.uri=hs?i.urlBase:i.url(),n.beforeSend=function(e){var t;e.addEventListener("readystatechange",function(){var n=e.readyState;1==n?i.start():2==n?(i.status(e.status),i.resp()):4==n&&i.end()}),hs&&(t=i.headers(),te.keys(t).forEach(function(n){e.setRequestHeader(n,t[n])}))}),n}L(function(){s.addListener(y(o.tech(),["vhs","xhr"]),"-",n,"onRequest","offRequest")},0)})),s.addListener(n,y(ne.cast,["framework","CastContextEventType","CAST_STATE_CHANGED"]),function(n){var t,n="CONNECTED"==n.castState;n&&(t=r(),s.addListener(t,"mediasession",function(n){var e=y(n,["mediaSession"]);s.removeListeners(i,"-"),i=e,s.addListener(e,"-",function(){switch(e.playerState){case"PLAYING":s.setState(3);break;case"PAUSED":s.setState(4);break;case"BUFFERING":s.isIdle()&&(s.setState(1),s.initCastTransfer(a)),s.setState(2);break;case"IDLE":"FINISHED"==y(e,["idleReason"])&&s.setState(6)}},"addUpdateListener","removeUpdateListener"),s.removeListeners(null,Q),s.addListener(t,Q,function(n,e){s.handleCastMessage(le(e),a)},"addMessageListener","removeMessageListener"),s.initCastTransfer(a)})),s.setData([[na,n]])}),s.onTimer(function(){p()}),l(o,"play",function(){var n,e,t=o.src();s.isIdle()||s.matchCtSource(t)||s.reset(),s.isIdle()&&(s.reset(),s.setData([[da,(e=t,n=(n=(n=null)&&as[n])||(e=(e=(e=e)&&/\.(\w+)($|\?)/.exec(e))&&e[1])&&os[e.toLowerCase()])],[Pa,t],[Ca,o.duration()],[ta,o.muted()],[ia,o.playbackRate()],[ua,o.preload()],[ea,o.controls()]]),f=null,m(o.mediainfo),p(),v(),_(),s.setState(1),s.setState(2))}),l(o,"waiting",function(){p(),s.setState(2)}),l(o,"playing",function(){p(),s.isAdIdle()&&s.setState(17),s.setState(3)}),l(o,"pause",function(){s.stash("pause",t),g(0)}),l(o,"seeking",function(){s.setState(5)}),l(o,"seeked",function(){p(),s.setState(o.paused()?4:3)}),l(o,"ended",function(){s.stash("ended",h),g(0)}),l(o,"error",function(){var n,e=o.error();e&&(n=[[Ur,e.code],[Fr,e.message]]),p(),s.setState(8,n)}),l(o,"durationchange",E),l(o,"ratechange",function(){s.setData([[Ti,o.playbackRate()]])}),l(o,"loadedmetadata",function(){e=y(ne,["cast","framework","CastContext"]),m(o.mediainfo),E(),v(),_(),["change","addtrack","removetrack"].forEach(function(n){l(o.audioTracks(),n,v),l(o.textTracks(),n,_)})}),de(o.ima3)&&(l(o,"ima3-ready",function(){s.attachImaAdsLoader(y(o.ima3,["adsLoader"]))}),l(o,"ima3-ads-manager-loaded",function(){s.attachImaAdsManager(y(o.ima3,["adsManager"]))}))}),Fc="DOM",qu("dom","2.1.0",Cc,function(f,u){var l=u.publicContext;if(!f)return"Invalid DOM element";function e(n){var o,s;function c(u,l){var d=null;return u&&te.keys(u).forEach(function(n){var e=u[n],t=e.query_selector,i=e.attribute_name,r=e.relative;if(i){var a,o,s,c=null;if(null!=r&&l){if(0<=r&&r<100)for(a=l,s=0;s<r&&a;s++)a=a.parentElement}else a=f;if(a)if(t)try{o=a.querySelectorAll(t)}catch(n){oe(n,"querySelectorAll for: "+t)}else o=[a];if(o)for(c=[],s=0;s<o.length;s++)c.push(o[s][i]);(d=d||{})[n]=c}}),d}n&&(u.removeListeners(),o=n.events,s=n.metadata,o)&&te.keys(o).forEach(function(t){var n=o[t],i=n.attributes,e=n.query_selector,r=n.interaction_type;if(e&&r)try{var a=f.querySelectorAll(e);a&&a.forEach(function(e){u.addListener(e,r,function(){var n=c(s),n=(n&&l.setMetadata(te.assign(l.getMetadata()||{},n)),c(i,e));l.generateEvent(t,n)})})}catch(n){oe(n,"querySelectorAll for: "+e)}})}e(ee.od),u.onConfig(function(n){e(n.od)})});var Yu=!0;function Ku(t){if(!Wc){if(!(ee.ci||Qn(X,$)||t&&t[$]))return!1;t&&(X=Re(X,function(e){te.keys(t).forEach(function(n){e.set(n,t[n])})}),un()),Yu&&(Yu=!1,Ec(vt,se()));var n=Qn(X,"env");ee.cf="staging"===n||"dev"===n||"sandbox"===n?n:"",ee.ci=Qn(X,$)||ee.ci,ee.om=null,mc([[mr,ee.ci]]),lc(),Wc=!0}return!0}function Xu(n){n()}function Ju(n,e,t){de(t)||(null!=t&&ae("Invalid contextOptions",t),t={});var i,r,a,o,s,c,u,l,d,f,p,m,v,_,h=t[Ac]||Dc[1];switch(h){case Dc[1]:return nu(n,e,t);case Dc[Cc]:return o=n,s=e,p=Lc((c=t)[Ic],c[Tc]),m=Gu(c[yc],Cc),v=de(v=c[Sc])?Me(v):{},m&&(l=m[2],d=m[3],te.assign(v,m[4]||{})),te.assign(p,{type:Cc,fire:function(n,e){p.fireEvent(n,se(),e)},onTimer:function(n){f=n}}),s?d?new Ee(function(e,t){try{d(s,p,v).then(function(n){u=E(n),e(u)},function(n){Te(n),t(n)})}catch(n){t(oe(n,m[0]+" createTargetObject"))}}):Ee.reject("Not implemented"):u=E(o);case Dc[Oc]:if(!e)return r=(o=Lc(null,t[Tc])).publicContext,null!=(a=t[bc])&&r.setMetadata(a),o.fireEvent(mt,se()),r;i="Invalid context type: "+h;break;default:i="Unknown context type: "+h}function E(n){var e,t=p.publicContext,i=null;p.target=n,te.assign(t,p.basePublicMethods,{getError:function(){return i},getTarget:function(){return n},adapterID:function(){return m?m[0]:null}});try{i=m?l?l(n,p,v):null:"Missing adapter"}catch(n){i=oe(n,m[0]+" initContext")}return i?(Te(i),t.destroy()):(null!=(e=c[bc])&&t.setMetadata(e),p.fire(mt),p.setTimer(function(){if(f)try{f()}catch(n){oe(n,"onTimer")}})),t}return Te(i),e?Ee.reject(i):(_=i,{getError:function(){return _}})}f(ne,"addEventListener",["pagehide",zu]),"Safari"==Ws&&f(ne,"addEventListener",["beforeunload",function(n){L(function(){n.defaultPrevented||n.returnValue||zu()},0)}]),be("Datazoom SDK "+ee.sv+" ("+ee.cn+") DDv3",tl),w(function(){Mc.length?Mc.forEach(Xu):se()},ee.ti),te.assign(Se,{init:Ku,setLogLevel:cn,createContext:function(n,e){return Ju(n,null,e)},createBaseContext:function(n){return(n=de(n)?Me(n):{})[Ac]=Dc[Oc],Ju(null,null,n)},createContextAndTarget:function(n){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);return Ju(null,e,n)},createCollectorProxy:function(n,e,t){return(n=n||Dc[1])===Dc[1]?eu(e,t):(Te("Unsupported context type: "+n),null)},adapterIDs:function(){return te.keys(Hu)},contexts:function(){return te.keys(ve).map(function(n){return ve[n].publicContext})},playerContexts:function(){return te.keys(ve).filter(function(n){return 1==ve[n].type}).map(function(n){return ve[n].publicContext})},setMetadata:function(n){return!(null!=n&&!de(n)||(gc(Ds=le(ue(n)),mc),m(p,mn,Ds),0))},getMetadata:function(){return le(ue(Ds))},getAppSessionData:function(n){var e=null;return e=Bo&&Bo[n]&&(n=Qo[n])?vc(n):e},generateEvent:function(n,e,t){t=!t&&te.keys(ve)[0];t?ve[t].publicContext.generateEvent(n,e):Ec({ap:Qe,nm:G+n,on:Go},se(),null,e)},on:function(n,e){tc[n]=e},appSessionID:function(){return Rs},generateUUID:function(){return ce()},sdkEvent:{CONFIG_READY:nc,APP_SESSION_START:ec,CONTENT_SESSION_START:2,PAGE_UNLOAD:3,AD_START:4,AD_END:5},timeSpanType:{AD:is,PROMO:"promo"},overridableMetadata:Ko,name:ee.cn,version:ee.sv,dictionaryVersion:3}),$u||L(Ku,ee.kd)}("object"==typeof globalThis?globalThis:window,{},(s={},rl("omid_session_client","1.5.5"),function(){function n(e,i){var c=c||{},t=(c.scope={},c.createTemplateTagFirstArg=function(n){return n.raw=n},c.createTemplateTagFirstArgWithRaw=function(n,e){return n.raw=e,n},c.arrayIteratorImpl=function(n){var e=0;return function(){return e<n.length?{done:!1,value:n[e++]}:{done:!0}}},c.arrayIterator=function(n){return{next:c.arrayIteratorImpl(n)}},c.makeIterator=function(n){var e="undefined"!=typeof Symbol&&Symbol.iterator&&n[Symbol.iterator];if(e)return e.call(n);if("number"==typeof n.length)return c.arrayIterator(n);throw Error(String(n)+" is not an iterable or ArrayLike")},c.arrayFromIterator=function(n){for(var e,t=[];!(e=n.next()).done;)t.push(e.value);return t},c.arrayFromIterable=function(n){return n instanceof Array?n:c.arrayFromIterator(c.makeIterator(n))},c.ASSUME_ES5=!1,c.ASSUME_NO_NATIVE_MAP=!1,c.ASSUME_NO_NATIVE_SET=!1,c.SIMPLE_FROUND_POLYFILL=!1,c.ISOLATE_POLYFILLS=!1,c.FORCE_POLYFILL_PROMISE=!1,c.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,c.objectCreate=c.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(n){function e(){}return e.prototype=n,new e},c.defineProperty=c.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(n,e,t){return n!=Array.prototype&&n!=Object.prototype&&(n[e]=t.value),n},c.getGlobal=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof on&&on];for(var e=0;e<n.length;++e){var t=n[e];if(t&&t.Math==Math)return t}throw Error("Cannot find global object")},c.global=c.getGlobal(this),c.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),c.TRUST_ES6_POLYFILLS=!c.ISOLATE_POLYFILLS||c.IS_SYMBOL_NATIVE,c.polyfills={},c.propertyToPolyfillSymbol={},c.POLYFILL_PREFIX="$jscp$",c.polyfill=function(n,e,t,i){e&&(c.ISOLATE_POLYFILLS?c.polyfillIsolated(n,e,t,i):c.polyfillUnisolated(n,e,t,i))},c.polyfillUnisolated=function(n,e,t,i){for(t=c.global,n=n.split("."),i=0;i<n.length-1;i++){var r=n[i];if(!(r in t))return;t=t[r]}(e=e(i=t[n=n[n.length-1]]))!=i&&null!=e&&c.defineProperty(t,n,{configurable:!0,writable:!0,value:e})},c.polyfillIsolated=function(n,e,t,i){var r=n.split(".");n=1===r.length,i=r[0],i=!n&&i in c.polyfills?c.polyfills:c.global;for(var a=0;a<r.length-1;a++){var o=r[a];if(!(o in i))return;i=i[o]}r=r[r.length-1],null!=(e=e(t=c.IS_SYMBOL_NATIVE&&"es6"===t?i[r]:null))&&(n?c.defineProperty(c.polyfills,r,{configurable:!0,writable:!0,value:e}):e!==t&&(void 0===c.propertyToPolyfillSymbol[r]&&(t=1e9*Math.random()>>>0,c.propertyToPolyfillSymbol[r]=c.IS_SYMBOL_NATIVE?c.global.Symbol(r):c.POLYFILL_PREFIX+t+"$"+r),c.defineProperty(i,c.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:e})))},c.getConstructImplementation=function(){var i;return c.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(n,[],function(){}),new n instanceof n?Reflect.construct:(i=Reflect.construct,function(n,e,t){return n=i(n,e),t&&Reflect.setPrototypeOf(n,t.prototype),n})):function(n,e,t){return t=c.objectCreate((t=void 0===t?n:t).prototype||Object.prototype),Function.prototype.apply.call(n,t,e)||t};function n(){}},c.construct={valueOf:c.getConstructImplementation}.valueOf(),c.underscoreProtoCanBeSet=function(){var n={};try{return n.__proto__={a:!0},n.a}catch(n){}return!1},c.setPrototypeOf=c.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:c.underscoreProtoCanBeSet()?function(n,e){if(n.__proto__=e,n.__proto__!==e)throw new TypeError(n+" is not extensible");return n}:null,c.inherits=function(n,e){if(n.prototype=c.objectCreate(e.prototype),n.prototype.constructor=n,c.setPrototypeOf){var t=c.setPrototypeOf;t(n,e)}else for(t in e){var i;"prototype"!=t&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(e,t))&&Object.defineProperty(n,t,i):n[t]=e[t])}n.superClass_=e.prototype},c.getRestArguments=function(){for(var n=Number(this),e=[],t=n;t<arguments.length;t++)e[t-n]=arguments[t];return e},c.polyfill("Reflect",function(n){return n||{}},"es6","es3"),c.polyfill("Reflect.construct",function(n){return c.construct},"es6","es3"),c.polyfill("Reflect.setPrototypeOf",function(n){var t;return n||(c.setPrototypeOf?(t=c.setPrototypeOf,function(n,e){try{return t(n,e),!0}catch(n){return!1}}):null)},"es6","es5"),c.initSymbol=function(){},c.polyfill("Symbol",function(n){var e,t,i,r;return n||((e=function(n,e){this.$jscomp$symbol$id_=n,c.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(n){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new e(t+(n||"")+"_"+i++,n)})},"es6","es3"),c.polyfill("Symbol.iterator",function(n){if(!n){n=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<e.length;t++){var i=c.global[e[t]];"function"==typeof i&&"function"!=typeof i.prototype[n]&&c.defineProperty(i.prototype,n,{configurable:!0,writable:!0,value:function(){return c.iteratorPrototype(c.arrayIteratorImpl(this))}})}}return n},"es6","es3"),c.iteratorPrototype=function(n){return(n={next:n})[Symbol.iterator]=function(){return this},n},c.iteratorFromArray=function(e,t){e instanceof String&&(e+="");var i=0,r=!1,n={next:function(){var n;return!r&&i<e.length?(n=i++,{value:t(n,e[n]),done:!1}):{done:r=!0,value:void 0}}};return n[Symbol.iterator]=function(){return n},n},c.polyfill("Array.prototype.keys",function(n){return n||function(){return c.iteratorFromArray(this,function(n){return n})}},"es6","es3"),c.owns=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},c.polyfill("Object.values",function(n){return n||function(n){var e,t=[];for(e in n)c.owns(n,e)&&t.push(n[e]);return t}},"es8","es3"),c.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new c.global.Proxy(i,{get:function(n,e,t){return n==i&&"q"==e&&t==r}}));return!0===r.q}catch(n){return!1}},c.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,c.ES6_CONFORMANCE=c.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&c.checkEs6ConformanceViaProxy(),c.polyfill("WeakMap",function(i){function t(){}function r(n){var e=typeof n;return"object"==e&&null!==n||"function"==e}function a(n){var e;c.owns(n,o)||(e=new t,c.defineProperty(n,o,{value:e}))}function n(n){var e;c.ISOLATE_POLYFILLS||(e=Object[n])&&(Object[n]=function(n){return n instanceof t?n:(Object.isExtensible(n)&&a(n),e(n))})}if(c.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&c.ES6_CONFORMANCE)return i}else if(function(){if(i&&Object.seal)try{var n=Object.seal({}),e=Object.seal({}),t=new i([[n,2],[e,3]]);return 2==t.get(n)&&3==t.get(e)?(t["delete"](n),t.set(e,4),!t.has(n)&&4==t.get(e)):void 0}catch(n){}}())return i;function e(n){if(this.id_=(s+=Math.random()+1).toString(),n){n=c.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var o="$jscomp_hidden_"+Math.random(),s=(n("freeze"),n("preventExtensions"),n("seal"),0);return e.prototype.set=function(n,e){if(!r(n))throw Error("Invalid WeakMap key");if(a(n),c.owns(n,o))return n[o][this.id_]=e,this;throw Error("WeakMap key fail: "+n)},e.prototype.get=function(n){return r(n)&&c.owns(n,o)?n[o][this.id_]:void 0},e.prototype.has=function(n){return r(n)&&c.owns(n,o)&&c.owns(n[o],this.id_)},e.prototype["delete"]=function(n){return!!(r(n)&&c.owns(n,o)&&c.owns(n[o],this.id_))&&delete n[o][this.id_]},e},"es6","es3"),c.MapEntry=function(){},c.polyfill("Map",function(r){if(c.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&c.ES6_CONFORMANCE)return r}else if(function(){if(!c.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var n,e,t=Object.seal({x:4}),i=new r(c.makeIterator([[t,"s"]]));return"s"!=i.get(t)||1!=i.size||i.get({x:4})||i.set({x:4},"t")!=i||2!=i.size?void 0:(e=(n=i.entries()).next()).done||e.value[0]!=t||"s"!=e.value[1]?void 0:!((e=n.next()).done||4!=e.value[0].x||"t"!=e.value[1]||!n.next().done)}catch(n){}}())return r;function n(n){if(this.data_={},this.head_=t(),this.size=0,n){n=c.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var a=new WeakMap,i=(n.prototype.set=function(n,e){var t=i(this,n=0===n?0:n);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=e:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:n,value:e},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},n.prototype["delete"]=function(n){return!(!(n=i(this,n)).entry||!n.list||(n.list.splice(n.index,1),n.list.length||delete this.data_[n.id],n.entry.previous.next=n.entry.next,n.entry.next.previous=n.entry.previous,n.entry.head=null,this.size--,0))},n.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},n.prototype.has=function(n){return!!i(this,n).entry},n.prototype.get=function(n){return(n=i(this,n).entry)&&n.value},n.prototype.entries=function(){return e(this,function(n){return[n.key,n.value]})},n.prototype.keys=function(){return e(this,function(n){return n.key})},n.prototype.values=function(){return e(this,function(n){return n.value})},n.prototype.forEach=function(n,e){for(var t,i=this.entries();!(t=i.next()).done;)t=t.value,n.call(e,t[1],t[0],this)},n.prototype[Symbol.iterator]=n.prototype.entries,function(n,e){var t=e&&typeof e,i=("object"==t||"function"==t?a.has(e)?t=a.get(e):(t=""+ ++o,a.set(e,t)):t="p_"+e,n.data_[t]);if(i&&c.owns(n.data_,t))for(n=0;n<i.length;n++){var r=i[n];if(e!=e&&r.key!=r.key||e===r.key)return{id:t,list:i,index:n,entry:r}}return{id:t,list:i,index:-1,entry:void 0}}),e=function(n,e){var t=n.head_;return c.iteratorPrototype(function(){if(t){for(;t.head!=n.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:e(t)};t=null}return{done:!0,value:void 0}})},t=function(){var n={};return n.previous=n.next=n.head=n},o=0;return n},"es6","es3"),"omid_message_guid"),r="omid_message_method",a="omid_message_version",o="omid_message_args",s=function(n,e,t,i){this.guid=n,this.method=e,this.version=t,this.args=i},u=(s.isValidSerializedMessage=function(n){return!!n&&void 0!==n[t]&&void 0!==n[r]&&void 0!==n[a]&&"string"==typeof n[t]&&"string"==typeof n[r]&&"string"==typeof n[a]&&(void 0===n[o]||void 0!==n[o])},s.deserialize=function(n){return new s(n[t],n[r],n[a],n[o])},s.prototype.serialize=function(){var n={};return n[t]=this.guid,n[r]=this.method,n[a]=this.version,void 0!==this.args&&(n[o]=this.args),n},{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",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",STATE_CHANGE:"stateChange"},MediaEventType:{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"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},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",LEFT:"left",Y:"y",TOP:"top",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",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),l=function(n){this.to=n,this.communicationType_=u.CommunicationType.NONE};function d(n,e){if(!e)throw Error("Value for "+n+" is undefined, null or blank.");if("string"!=typeof e&&!(e instanceof String))throw Error("Value for "+n+" is not a string.");if(""===e.trim())throw Error("Value for "+n+" is empty string.")}function f(n,e){if(null==e)throw Error("Value for "+n+" is undefined or null")}function p(n,e){if(null==e)throw Error(n+" must not be null or undefined.");if("number"!=typeof e||isNaN(e))throw Error("Value for "+n+" is not a number")}function m(n,e,t,i){if(p(n,e),e<t||i<e)throw Error("Value for "+n+" is outside the range ["+t+","+i+"]")}function x(n,e){return n&&(n[e]||(n[e]={}))}function n(n,e,t){(t=void 0===t?void 0===i?null:i:t)&&((n=n.split(".")).slice(0,n.length-1).reduce(x,t)[n[n.length-1]]=e)}function v(n,e,t,i){i=void 0===i?u.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",n),this.resourceUrl=n,this.vendorKey=e,this.verificationParameters=t,this.accessMode=i}function _(n,e){d("UniversalAdId.value",n),d("UniversalAdId.idRegistry",e),this.value=n,this.idRegistry=e}function h(n,e,t,i,r){t=void 0===t?null:t,i=void 0===i?null:i,r=void 0===r?null:r,f("Context.partner",n),this.partner=n,this.verificationScriptResources=e,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null,this.universalAdId=r}l.prototype.sendMessage=function(n,e){},l.prototype.handleMessage=function(n,e){this.onMessage&&this.onMessage(n,e)},l.prototype.serialize=function(n){return JSON.stringify(n)},l.prototype.deserialize=function(n){return JSON.parse(n)},l.prototype.isDirectCommunication=function(){return this.communicationType_===u.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},n("OmidSessionClient.Partner",function(n,e){d("Partner.name",n),d("Partner.version",e),this.name=n,this.version=e}),v.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},n("OmidSessionClient.VerificationScriptResource",v),_.prototype.toSerialisedValue=function(){return this.value+"; "+this.idRegistry},n("OmidSessionClient.UniversalAdId",_),h.prototype.setVideoElement=function(n){f("Context.videoElement",n),this.videoElement=n},h.prototype.setSlotElement=function(n){f("Context.slotElement",n),this.slotElement=n},h.prototype.setServiceWindow=function(n){f("Context.serviceWindow",n),this.serviceWindow=n},n("OmidSessionClient.Context",h);var E={},g=(E.omidGlobal=function(){if(void 0!==e&&e)return e;if(void 0!==on&&on)return on;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var n=Function("return this")();if(n)return n;throw Error("Could not determine global object context.")}(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),y={sessionError:"reportError"},U=Object.keys(u.MediaEventType).map(function(n){return u.MediaEventType[n]}),F=["impressionOccurred"],S=function(n){n=void 0===n?E.omidGlobal:n,this.interfaceRoot_=n[g.ROOT]};function I(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random()|0;return n=("y"===n?3&e|8:e).toString(16)})}function A(){var n=c.getRestArguments.apply(0,arguments);V(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(c.arrayFromIterable(n))))},function(){console.error.apply(console,c.arrayFromIterable(n))})}function V(n,e){"undefined"!=typeof jasmine&&jasmine?n():"undefined"!=typeof console&&console&&console.error&&e()}S.prototype.isSupported=function(){return null!=this.interfaceRoot_},S.prototype.sendMessage=function(n,e,t){if("registerSessionObserver"==n&&(t=[e]),e=this.interfaceRoot_,0<=F.indexOf(n=y[n]?y[n]:n)&&(e=e[g.AD_EVENTS]),!(e=(e=0<=U.indexOf(n)?e[g.MEDIA_EVENTS]:e)[n]))throw Error("Unrecognized method name: "+n+".");e.apply(null,c.arrayFromIterable(t))};var T="1.5.5-iab77",W=3;function b(n){return/\d+\.\d+\.\d+(-.*)?/.test(n)}function O(n,e){n=n.split("-")[0].split("."),e=e.split("-")[0].split(".");for(var t=0;t<W;t++){var i=parseInt(n[t],10),r=parseInt(e[t],10);if(r<i)break;if(i<r)return!1}return!0}var C="1.0.3";function j(n,e){return b(n)&&O(n,C)?e:JSON.stringify(e)}function B(n,e){return b(n)&&O(n,C)?e||[]:e&&"string"==typeof e?JSON.parse(e):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function G(n){return q(n,H.SESSION_SERVICE)}function q(n,e){return e+n}function D(n){return null!=n&&void 0!==n.top&&null!=n.top}function z(n){var e;if(n!==E.omidGlobal)try{if(void 0===n.location.hostname)return!0;""!==(e=n).x&&e.x}catch(n){return!0}return!1}function Y(n){return D(n=void 0===n&&"undefined"!=typeof window&&window?window:n)?n:E.omidGlobal}function K(n){return D(n)?n.top:E.omidGlobal}var M=function(n){l.call(this,n),this.communicationType_=u.CommunicationType.DIRECT,this.handleExportedMessage=M.prototype.handleExportedMessage.bind(this)},R=(c.inherits(M,l),M.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.handleExportedMessage(n.serialize(),this)},M.prototype.handleExportedMessage=function(n,e){s.isValidSerializedMessage(n)&&this.handleMessage(s.deserialize(n),e)},M.prototype.isCrossOrigin=function(){return!1},function(n,e){e=void 0===e?E.omidGlobal:e,l.call(this,e);var t=this;this.communicationType_=u.CommunicationType.POST_MESSAGE,n.addEventListener("message",function(n){var e;"object"==typeof n.data&&(e=n.data,s.isValidSerializedMessage(e))&&(e=s.deserialize(e),n.source)&&t.handleMessage(e,n.source)})}),N=(c.inherits(R,l),R.isCompatibleContext=function(n){return!!(n&&n.addEventListener&&n.postMessage)},R.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.postMessage(n.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||z(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(n){var e={};return e[u.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,e[u.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,e[n]}});function X(n,e){try{return n.frames&&!!n.frames[e]}catch(n){return!1}}function J(n,e){n.document.write('<iframe style="display:none" id="'+e+'" name="'+e+'" sandbox></iframe>')}N.isOmidPresent=function(e){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return X(e,n)})},N.getOmidEnvironment=function(n){for(var e=c.makeIterator(Object.values(u.Environment)),t=e.next();!t.done;t=e.next()){t=t.value;if(X(n,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(e,n){e.frames&&e.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return!!e.frames[n]})&&(null==e.document.body&&N.isMutationObserverAvailable_(e)?N.registerMutationObserver_(e,n):(n=N.getEnvironmentIframeName(n),e.document.body?(N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n)):(J(e,N.OMID_PRESENT_FRAME_NAME),J(e,n))))},N.appendPresenceIframe_=function(n,e){var t=n.document.createElement("iframe");t.id=e,t.name=e,t.style.display="none",t.sandbox="",n.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(n){return"MutationObserver"in n},N.registerMutationObserver_=function(e,t){var i=new MutationObserver(function(n){n.forEach(function(n){"BODY"===n.addedNodes[0].nodeName&&(n=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n),i.disconnect())})});i.observe(e.document.documentElement,{childList:!0})};var $=["omid","v1_SessionServiceCommunication"];function Q(n,e){return e.reduce(function(n,e){return n&&n[e]},n)}function Z(n,e,t,i){for(var r=(e=c.makeIterator(e)).next();!r.done;r=e.next())if(r=function(n,e,t,i){if(!z(e))try{var r=Q(e,t);if(r)return new M(r)}catch(n){}return i(e)?new R(n,e):null}(n,r.value,t,i))return r;return null}function nn(n,e,t){t=void 0===t?N.isOmidPresent:t;var i=[n,K(n)];return e&&i.unshift(e),Z(n,i,$,t)}function k(n,e,t){f("AdSession.context",n),this.adSessionId_=I(),this.context_=n,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=e||nn(Y(),i),this.sessionInterface_=t||new S,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(n.verificationScriptResources),this.sendSlotElement_(n.slotElement),this.sendVideoElement_(n.videoElement),this.sendContentUrl_(n.contentUrl),this.watchSessionEvents_()}function en(n,e,t,i){this.isSkippable=n,this.skipOffset=e,this.isAutoPlay=t,this.position=i}function P(n){f("AdEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerAdEvents(),this.adSession=n}catch(n){throw Error("AdSession already has an ad events instance registered")}}function w(n){f("MediaEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerMediaEvents(),this.adSession=n}catch(n){throw Error("AdSession already has a media events instance registered")}}function tn(t){var n=Y();new R(n).onMessage=function(n,e){n.method===u.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(e)}}k.prototype.getAdSessionId=function(){return this.adSessionId_},k.prototype.setCreativeType=function(n){if(n===u.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+u.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==u.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",n,this.adSessionId_),this.creativeType_=n},k.prototype.setImpressionType=function(n){if(n===u.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+u.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==u.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",n,this.adSessionId_),this.impressionType_=n},k.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},k.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},k.prototype.registerSessionObserver=function(n){this.sendMessage("registerSessionObserver",n,this.adSessionId_)},k.prototype.start=function(){var n={customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation};this.context_.universalAdId&&(n.universalAdId=this.context_.universalAdId.toSerialisedValue()),this.sendOneWayMessage("startSession",n,this.adSessionId_)},k.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},k.prototype.error=function(n,e){this.sendOneWayMessage("sessionError",n,e,this.adSessionId_)},k.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},k.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},k.prototype.sendOneWayMessage=function(n){var e=c.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[n,null].concat(c.arrayFromIterable(e)))},k.prototype.sendMessage=function(n,e){var t=c.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(n,e,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(n,e,t)},k.prototype.sendInternalMessage_=function(n,e,t){var i=I();e&&(this.callbackMap_[i]=e),n=new s(i,G(n),T,j(T,t)),this.communication_.sendMessage(n)},k.prototype.handleInternalMessage_=function(n,e){e=n.method;var t,i=n.guid;n=n.args,"response"===e&&this.callbackMap_[i]&&(t=B(T,n),this.callbackMap_[i].apply(this,t)),"error"===e&&window.console&&A(n)},k.prototype.sendInterfaceMessage_=function(n,e,t){try{this.sessionInterface_.sendMessage(n,e,t)}catch(n){A("Failed to communicate with SessionInterface with error:"),A(n)}},k.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},k.prototype.impressionOccurred=function(){if(this.creativeType_===u.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===u.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},k.prototype.creativeLoaded=function(){if(this.creativeType_===u.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===u.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},k.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",T,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},k.prototype.injectVerificationScripts_=function(n){n&&(n=n.map(function(n){return n.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",n,this.adSessionId_))},k.prototype.sendSlotElement_=function(n){this.sendElement_(n,"setSlotElement")},k.prototype.sendVideoElement_=function(n){this.sendElement_(n,"setVideoElement")},k.prototype.sendElement_=function(n,e){n&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(e,n,this.adSessionId_):this.error(u.ErrorType.GENERIC,"Session Client "+e+" called when communication is cross-origin"))},k.prototype.sendContentUrl_=function(n){n&&this.sendOneWayMessage("setContentUrl",n,this.adSessionId_)},k.prototype.setElementBounds=function(n){f("AdSession.elementBounds",n),this.sendOneWayMessage("setElementBounds",n,this.adSessionId_)},k.prototype.watchSessionEvents_=function(){var e=this;this.registerSessionObserver(function(n){n.type===u.AdEventType.SESSION_START&&(e.isSessionRunning_=!0,e.creativeType_=n.data.creativeType,e.impressionType_=n.data.impressionType),n.type===u.AdEventType.SESSION_FINISH&&(e.isSessionRunning_=!1)})},n("OmidSessionClient.AdSession",k),en.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},P.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},P.prototype.loaded=function(n){n=void 0===n?null:n,this.adSession.creativeLoaded(),n=n?n.toJSON():null,this.adSession.sendOneWayMessage("loaded",n,this.adSessionId_)},n("OmidSessionClient.AdEvents",P),w.prototype.start=function(n,e){p("MediaEvents.start.duration",n),m("MediaEvents.start.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("start",n,e,this.adSessionId_)},w.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},w.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},w.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},w.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},w.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},w.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},w.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},w.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},w.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},w.prototype.volumeChange=function(n){m("MediaEvents.volumeChange.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("volumeChange",n,this.adSessionId_)},w.prototype.playerStateChange=function(n){f("MediaEvents.playerStateChange.playerState",n),this.adSession.sendOneWayMessage("playerStateChange",n,this.adSessionId_)},w.prototype.adUserInteraction=function(n){f("MediaEvents.adUserInteraction.interactionType",n),this.adSession.sendOneWayMessage("adUserInteraction",n,this.adSessionId_)},n("OmidSessionClient.MediaEvents",w),n("OmidSessionClient.OmidVersion",function(n,e){d("OmidVersion.semanticVersion",n),d("OmidVersion.apiLevel",e)}),n("OmidSessionClient.listenForServiceWindow",tn),n("OmidSessionClient.VastProperties",en);var L={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9,HUMAN:10}};function rn(n){for(var e=c.makeIterator(an.keys()),t=e.next();!t.done;t=e.next())for(var t=t.value,i=c.makeIterator(an.get(t)),r=i.next();!r.done;r=i.next())if(r.value.test(n))return t;return L.VerificationVendorId.OTHER}var an=new Map([[L.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[L.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[L.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[L.VerificationVendorId.NIELSEN,[]],[L.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[L.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[L.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]],[L.VerificationVendorId.HUMAN,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.script\.ac\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\/(2|ag|static)\/[a-zA-Z0-9.]*\/analytics.js.*$/]]]);n("OmidSessionClient.verificationVendorIdForScriptUrl",rn),n("OmidSessionClient.VerificationVendorId",L.VerificationVendorId),L.verificationVendorIdForScriptUrl=rn}var on="object"==typeof globalThis?globalThis:window,e={},t=void 0===on?this:on;if("object"==typeof(r=void 0===e?void 0:e)&&"string"!=typeof r.nodeName)n(t,r);else{var i,r={},a=["1.5.5-iab77"],o="default";for(i in a.push(o),n(t,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(t,i)&&Object.defineProperty(t,i,{value:{}}),a.forEach(function(n){var e;null==Object.getOwnPropertyDescriptor(t[i],n)&&(e=function n(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]=n(e[t]));return Object.freeze(e)}(r[i]),Object.defineProperty(t[i],n,{get:function(){return e},enumerable:!0}))}))}s.OmidSessionClient=e.OmidSessionClient}(),rl("aws_mtsdk","1.14.0"),t={},n=self,e=function(){"use strict";var i={d:function(n,e){for(var t in e)i.o(e,t)&&!i.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}},p={},m=(i.d(p,{"default":function(){return Pn}}),1),h=2,E=4,g="[MT] ",A=function(n){return n[n["NONE"]=0]="NONE",n[n["ERROR"]=1]="ERROR",n[n["WARNING"]=2]="WARNING",n[n["INFO"]=3]="INFO",n[n["DEBUG"]=4]="DEBUG",n[n["VERBOSE"]=5]="VERBOSE",n}({}),T=h;function G(n,e,t,i){n<=T&&(t=g+t,void 0===i?e.call(console,t):e.call(console,t,i))}var b=console.error,O=console.warn,un=(console.info,console.debug);function c(n,e){G(m,b,n,e)}function q(n,e){G(h,O,n,e)}function z(n,e){G(E,un,n,e)}function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function a(n){var e;return null==(e="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:window)?void 0:e[n]}function v(n){if(n){if(Array.isArray(n))return n.slice();if("object"===t(n))return Object.assign({},n)}return null}function Y(n){if(n)try{return JSON.parse(JSON.stringify(n))}catch(n){c("Exception during deep-copy: ".concat(n),n)}return null}function C(n,e){if(null!=n)try{return new Qu(n,e).toString()}catch(n){c("URL Exception: ".concat(n),n)}return null}function K(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i)for(var r=0,a=i-1;r<=a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o+1:a=o-1}return-1}function ln(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i){for(var r=0,a=i-1;r<a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o:a=o-1}if(0<r||0<=t(n,e[r]))return r}return-1}for(var o=[],n=0;n<256;n++)o.push((n+256).toString(16).substr(1).toLowerCase());var D=!(null==(e=a("crypto"))||!e.getRandomValues);D||q("crypto.getRandomValues() unavailable");var M=/P.*T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?/;var R="MediaTailor",N="1.0.0",k=[2,9],P="ad_start",w="ad_progress",L="ad_click",x="ad_can_skip",dn="ad_incoming",U="nonlinear_ad_start",F="nonlinear_ad_end",V="ad_tracking_info_response",W=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],s=null;function j(t){var n,i,e,r="nonceReq: ";return s?(n=null==(n=a("goog"))||null==(n=n.pal)?void 0:n.NonceRequest)?((i=new n).omidPartnerName=R,i.omidPartnerVersion=N,i.supportedApiFrameworks=k,W.forEach(function(n){var e=t[n];null!=e&&(i[n]=e)}),i.sessionId||(i.sessionId=function(){var n=new Uint8Array(16);if(D)crypto.getRandomValues(n);else for(var e=0;e<16;e++)n[e]=Math.floor(256*Math.random());return n[6]=15&n[6]|64,n[8]=63&n[8]|128,o[n[0]]+o[n[1]]+o[n[2]]+o[n[3]]+"-"+o[n[4]]+o[n[5]]+"-"+o[n[6]]+o[n[7]]+"-"+o[n[8]]+o[n[9]]+"-"+o[n[10]]+o[n[11]]+o[n[12]]+o[n[13]]+o[n[14]]+o[n[15]]}()),(e=null==(e=(n=s).loadNonceManager)?void 0:e.call(n,i))?z(r+"Request sent",i):c(r+"Request failed",i),e):(c(r+"Missing PAL SDK classes"),null):(c(r+"PAL isn't initialized"),null)}function fn(n){try{return JSON.parse(n)}catch(n){return q("JSON Parse Exception: ".concat(n),n),null}}function B(r,a,o,s,i){var c=new XMLHttpRequest,u=null==s?void 0:s.retryHeuristics,l=0,d=!1;function f(){if(!d)try{e=c,n=r,i=null==(t=s)?void 0:t.headers,e.open(n,a,!0),e.timeout=null!=(n=null==t?void 0:t.timeout)?n:0,i&&Object.keys(i).forEach(function(n){e.setRequestHeader(n,i[n])}),l++,c.send(o),z("XHR (".concat(r," ").concat(a,", #").concat(l,") request sent"),o)}catch(n){q("XHR Exception: ".concat(n),n)}var e,n,t,i}return c.onreadystatechange=function(){if(!d&&4===c.readyState){var n=c.status,e=c.responseText;if(z("XHR (".concat(a,") response received, status ").concat(n),e),n<200||299<n){var t=u?u(l,n,e):-1;if(0<=t)return setTimeout(f,t),void q("XHR (".concat(a,") failed (status ").concat(n,"), retry in ").concat(t," ms"),e)}i&&i(e,n,a)}},f(),{abort:function(){d=!0,c.abort(),z("XHR (".concat(a,") aborted"))}}}function pn(n,e,t){return B("GET",n,null,e,t)}function H(n,e,t,i){try{(t=v(t)||{}).headers=(o={"Content-Type":"application/json; charset=utf-8"},s=t.headers,o&&s?Object.assign(o,s):o),r=n,a=JSON.stringify(e),B("POST",r,a,t,function(n,e,t){200===e&&null!=n&&(n=fn(n)),i&&i(n,e,t)})}catch(n){q("JSON Encode Exception: ".concat(n),n)}var r,a,o,s}function mn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function X(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var i,r,a,o,s=[],c=!0,u=!1;try{if(a=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;c=!1}else for(;!(c=(i=a.call(t)).done)&&(s.push(i.value),s.length!==e);c=!0);}catch(n){u=!0,r=n}finally{try{if(!c&&null!=t["return"]&&(o=t["return"](),Object(o)!==o))return}finally{if(u)throw r}}return s}}(n,e)||function(n,e){var t;if(n)return"string"==typeof n?mn(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mn(n,e):void 0}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var e="impression",J="firstQuartile",$="midpoint",Q="thirdQuartile",Z="complete",r="creativeView",f=[],vn=(f[0]=[e],f[1]=["clickTracking"],f[2]=["loaded"],f[3]=["start",r],f[4]=[J],f[5]=[$],f[6]=[Q],f[7]=[Z],f[8]=["skip"],f[9]=["pause"],f[10]=["resume"],f[11]=["mute"],f[12]=["unmute"],f[13]=["fullscreen","playerExpand"],f[14]=["exitFullscreen","playerCollapse"],{});function _n(s,c,u){var l={},d=null;return{onAdLoad:function(n){d={},null!=(n=n.trackingEvents)&&n.forEach(function(n){d[n.eventType]=n})},onAdEnd:function(n){d=null},onAdTrackingEvent:function(n,e){var t=f[e];if(d&&1===n.playCount&&t)for(var i=t.length,r=0;r<i;r++){var a,o=t[r];s&&null!=(a=vn[o])&&a.noninteractive||!function(i,r){var n=null==r?void 0:r.beaconUrls;if(n)for(var e=n.length,t=0;t<e;t++){var a=null==(a=n[t])?void 0:a.trim();a&&(c?fetch(a,{mode:"no-cors"}):pn(a,l,function(n,e,t){u(i,r,t,e)}))}}(n,d[o])}}}}function hn(n,e){var t,i,r,a,o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(o)return i=!(t=!0),{s:function(){o=o.call(n)},n:function(){var n=o.next();return t=n.done,n},e:function(n){i=!0,r=n},f:function(){try{t||null==o["return"]||o["return"]()}finally{if(i)throw r}}};if(Array.isArray(n)||(o=function(n,e){var t;if(n)return"string"==typeof n?En(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?En(n,e):void 0}(n))||e&&n&&"number"==typeof n.length)return o&&(n=o),a=0,{s:e=function(){},n:function(){return a>=n.length?{done:!0}:{done:!1,value:n[a++]}},e:function(n){throw n},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function En(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}[e,"loaded","start",r,J,$,Q,Z].forEach(function(n){vn[n]={noninteractive:!0}});var nn="adData: ";function y(n){return n&&"object"===t(n)&&n}function en(n,e){if(!y(n))return null;for(var t=X(e,2)[1],i={},r=t.length,a=0;a<r;a++){var o=X(t[a],3),s=o[0],c=o[1],o=o[2],o=o[0](n[s],o);if(null!=o)i[s]=o;else if(!c)return z(nn+"Missing object field: ".concat(s),n),null}return i}function S(n){return n&&Array.isArray(n)?n:null}function I(n,e){if(!S(n))return null;for(var e=X(e,3),t=e[1],i=e[2],r=[],a=n.length,o=0;o<a;o++){var s=i[0](n[o],i);null!=s||t?r.push(s):z(nn+"Invalid array entry at: ".concat(o),n)}return r}function tn(n){return"number"==typeof n?n:null}function rn(n){return"string"==typeof n?n:null}var e=[tn],r=[rn],u=[function(n){return"boolean"==typeof n?n:null}],l=[en,[["creativeType",!0,r],["uri",!1,r]]],gn=[en,[["content",!1,r],["type",!1,r]]],yn=[en,[["beaconUrls",!1,[I,!1,r]],["durationInSeconds",!0,e],["eventId",!0,r],["eventProgramDateTime",!0,r],["eventType",!1,r],["startTimeInSeconds",!0,e]]],Sn=[I,!1,[en,[["beaconUrls",!1,[I,!1,r]],["eventType",!1,r]]]],In=[en,[["adId",!0,r],["adParameters",!0,r],["adSystem",!0,r],["adTitle",!0,r],["adVerifications",!0,[I,!1,[en,[["executableResource",!0,[I,!1,[en,[["apiFramework",!0,r],["language",!0,r],["type",!0,r],["uri",!0,r]]]]],["javaScriptResource",!0,[I,!1,[en,[["apiFramework",!0,r],["browserOptional",!0,r],["uri",!0,r]]]]],["trackingEvents",!0,[I,!1,[en,[["event",!1,r],["uri",!1,r]]]]],["vendor",!0,r],["verificationParameters",!0,r]]]]],["icons",!0,[I,!1,[en,[["program",!0,r],["width",!0,r],["height",!0,r],["xPosition",!0,r],["yPosition",!0,r],["apiFramework",!0,r],["duration",!0,r],["offset",!0,r],["pxratio",!0,r],["staticResources",!0,[I,!1,l]],["iconClicks",!0,[en,[["iconClickThrough",!0,r],["iconClickFallbackImages",!0,[I,!1,[en,[["width",!0,r],["height",!0,r],["altText",!0,r],["staticResources",!0,[I,!1,l]]]]]]]]]]]]],["companionAds",!0,[I,!1,[en,[["adParameters",!0,r],["altText",!0,r],["attributes",!0,[en,[["adSlotId",!0,r],["apiFramework",!0,r],["assetHeight",!0,r],["assetWidth",!0,r],["expandedHeight",!0,r],["expandedWidth",!0,r],["height",!0,r],["id",!0,r],["pxratio",!0,r],["renderingMode",!0,r],["width",!0,r]]]],["companionClickThrough",!0,r],["companionClickTracking",!0,r],["htmlResource",!0,r],["iFrameResource",!0,r],["sequence",!0,r],["staticResource",!0,r],["trackingEvents",!0,[I,!1,[en,[["beaconUrls",!1,[I,!1,r]],["eventType",!1,r]]]]]]]]],["creativeId",!0,r],["creativeSequence",!0,r],["extensions",!0,[I,!1,gn]],["trackingEvents",!0,[I,!1,yn]],["vastAdId",!0,r]]],An=[en,[["nonLinearAdList",!1,[I,!1,[en,[["durationInSeconds",!0,e],["adId",!0,r],["adParameters",!0,r],["adSystem",!0,r],["adTitle",!0,r],["creativeId",!0,r],["creativeAdId",!0,r],["creativeSequence",!0,r],["width",!0,r],["height",!0,r],["expandedWidth",!0,r],["expandedHeight",!0,r],["scalable",!0,u],["maintainAspectRatio",!0,u],["minSuggestedDuration",!0,r],["apiFramework",!0,r],["staticResource",!0,r],["staticResourceCreativeType",!0,r],["iFrameResource",!0,r],["htmlResource",!0,r],["clickThrough",!0,r],["clickTracking",!0,r],["clickTrackingId",!0,r]]]]],["extensions",!0,[I,!1,gn]],["trackingEvents",!0,[I,!1,yn]]]],Tn=new DOMParser,bn=/\n|<!\[CDATA\[|\]\]>/g;function an(n){n=null==n?void 0:n.textContent;return null==n?null:n.replace(bn,"").trim()}function on(n,e,t){t&&(n[e]=t)}function sn(n,e){var t,i=hn(n.children);try{for(i.s();!(t=i.n()).done;){var r,a=t.value;null!=(r=e[a.tagName])&&r.call(e,a)}}catch(n){i.e(n)}finally{i.f()}}function On(n){var t=[];return sn(n,{IconClickFallbackImage:function(n){var e={};t.push(e),on(e,"width",n.getAttribute("width")),on(e,"height",n.getAttribute("height")),sn(n,{AltText:function(n){on(e,"altText",an(n))},StaticResource:function(n){on(e,"staticResource",an(n))}})}}),t}function Cn(n){return n&&new Date("1970-01-01T".concat(n,"Z")).getTime()/1e3}function Dn(n,a,_){var h,E,r;if(y(n))return h=rn(n.dashAvailabilityStartTime),null!=(E=S(n.avails))&&E.forEach(function(n){if(y(n)){var o=rn(n.availId);if(o){var s=tn(n.startTimeInSeconds),c=tn(n.durationInSeconds),u=(e=(e=rn(n.adMarkerDuration))&&M.exec(e))?3600*((i=e[1])?+i:0)+60*((i=e[2])?+i:0)+((i=e[3])?+i:0):null,l=I(n.adBreakTrackingEvents,Sn),d=((d=rn(n.availProgramDateTime))?new Date(d).getTime()/1e3:h?new Date(h).getTime()/1e3+s:0)||0,e=(g(!1,n,o,s,c,d,u,l),a[o]),t="",f=S(n.ads),i=(null!=f&&f.forEach(function(n){y(n)&&(t+="".concat(n.adId,",").concat(n.startTime,",").concat(n.duration,";"))}),!e||t!==e.digest);if(z(nn+"Avail ".concat(i?e?"!":"":"~").concat(o," ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),i){var p={},m=null==e?void 0:e.ads,v=null==f?void 0:f.length;if(null!=f&&f.forEach(function(n,e){var t,i,r,a;y(n)?(t=rn(n.adId))?null==(i=tn(n.startTimeInSeconds))?q(nn+"Invalid or missing ad start time",n):(p[t]={start:i,duration:n.duration},r=null,m&&(r=m[t],m[t]=null),a=!r||i!==r.start||n.duration!==r.duration,z(nn+"Ad ".concat(a?r?"!":"":"~").concat(t," ")+"(#".concat(e+1," of ").concat(v,") ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.adProgramDateTime,")"),n),a&&_(i,o,e,v,s,c,d,u,l,n,!1,!1,null==(t=r)?void 0:t.start)):q(nn+"Missing ad ID",n):q(nn+"Invalid ad object",f)}),m)for(var r in m){r=m[r];r&&_(0,o,0,0,s,c,d,u,l,null,!1,!1,r.start)}a[o]={digest:t,ads:p}}}else q(nn+"Missing avail ID",n)}else q(nn+"Invalid avail object",E)}),null!=(r=S(n.nonLinearAvails))&&r.forEach(function(n){var e,t,i;y(n)?(i=rn(n.availId),z(nn+"nonLinearAvail ".concat(i," (").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),e=tn(n.startTimeInSeconds),t=I(n.adBreakTrackingEvents,Sn),g(!0,n,i,e,null,i=((i=rn(n.availProgramDateTime))?new Date(i).getTime()/1e3:h?new Date(h).getTime()/1e3+e:0)||0,null,t)):q(nn+"Invalid nonLinearAvail object",r)}),(n=rn(n.nextToken))&&z(nn+'nextToken "'.concat(n,'"')),n;function g(n,e,t,i,r,a,o,s){e=null==(e=S(e.nonLinearAdsList))?void 0:e[0];e&&(y(e)?null==i?q(nn+"Invalid or missing nonlinear ad start time",e):(z(nn+"nonLinearAds",e),_(i,t,0,1,i,r,a,o,s,e,!0,n)):q(nn+"Invalid nonLinearAds object",e))}q(nn+"Invalid tracking-info response")}l=function(n){return n[n["AD_START"]=P]="AD_START",n[n["AD_END"]="ad_end"]="AD_END",n[n["AD_PROGRESS"]=w]="AD_PROGRESS",n[n["AD_CLICK"]=L]="AD_CLICK",n[n["AD_CAN_SKIP"]=x]="AD_CAN_SKIP",n[n["AD_INCOMING"]=dn]="AD_INCOMING",n[n["NONLINEAR_AD_START"]=U]="NONLINEAR_AD_START",n[n["NONLINEAR_AD_END"]=F]="NONLINEAR_AD_END",n[n["AD_TRACKING_INFO_RESPONSE"]=V]="AD_TRACKING_INFO_RESPONSE",n}({});function Mn(){var i=new nl,a=null,r=null,o=-1,s=!1;function c(n,e){i.dispatchEvent(new el(n,{detail:e}))}function u(n,e){var t=n.availDuration,i=n.inAvailStartOffset;return{toAdEnd:n.duration-e,toAvailEnd:null!=t&&null!=i?t-i-e:null,toSkipThreshold:0<=o?Math.max(0,o-e):null}}return{addEventListener:function(n,e,t){i.addEventListener(n,e,t)},removeEventListener:function(n,e,t){i.removeEventListener(n,e,t)},onTrackingInfoResponse:function(n){c(V,{failedAdTrackingInfoRequest:n})},onAdStart:function(n,e,t){var i,r;r=e,t=t,a={adData:Y(i=n),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:t+i.duration-r},o=n.skipOffset,s=!1,c(P,{adObject:a,adElapsedTime:e,adCountdown:u(n,e)})},onAdEnd:function(n){c("ad_end",{adObject:a}),a=null},onAdProgress:function(n,e,t){c(w,{adObject:a,adElapsedTime:e,adCountdown:u(n,e)}),!s&&0<=o&&o<=e&&(s=!0,c(x,{adObject:a}))},onAdClick:function(n){c(L,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart:function(n,e,t){r={adData:Y(n)},c(U,{nonLinearAdsObject:r,adElapsedTime:e})},onNonLinearAdsEnd:function(n){c(F,{nonLinearAdsObject:r}),r=null},dispatchEvent:c}}var e=function(n){return n[n["START"]=0]="START",n[n["END"]=1]="END",n[n["PAUSE"]=2]="PAUSE",n[n["RESUME"]=3]="RESUME",n[n["MUTE"]=4]="MUTE",n[n["UNMUTE"]=5]="UNMUTE",n[n["FULLSCREEN"]=6]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=7]="EXIT_FULLSCREEN",n}({}),cn=[],u=(cn[0]="IMPRESSION",cn[1]="CLICK_THROUGH",cn[2]="LOADED",cn[3]="START",cn[4]="FIRST_QUARTILE",cn[5]="MID_POINT",cn[6]="THIRD_QUARTILE",cn[7]="COMPLETE",cn[8]="SKIP",cn[9]="PAUSE",cn[10]="RESUME",cn[11]="MUTE",cn[12]="UNMUTE",cn[13]="FULLSCREEN",cn[14]="EXIT_FULLSCREEN",function(n){return n[n["IMPRESSION"]=0]="IMPRESSION",n[n["CLICK_THROUGH"]=1]="CLICK_THROUGH",n[n["LOADED"]=2]="LOADED",n[n["START"]=3]="START",n[n["FIRST_QUARTILE"]=4]="FIRST_QUARTILE",n[n["MID_POINT"]=5]="MID_POINT",n[n["THIRD_QUARTILE"]=6]="THIRD_QUARTILE",n[n["COMPLETE"]=7]="COMPLETE",n[n["SKIP"]=8]="SKIP",n[n["PAUSE"]=9]="PAUSE",n[n["RESUME"]=10]="RESUME",n[n["MUTE"]=11]="MUTE",n[n["UNMUTE"]=12]="UNMUTE",n[n["FULLSCREEN"]=13]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=14]="EXIT_FULLSCREEN",n}({}));function Rn(a,e,S){var s,c="adTracking: ",I=function(n,e){return n-e.start},U=function(n,e){return n-e.startDate},t=function(n,e){return n.start-e.start},F={headers:{"Cache-Control":"no-cache, no-store"}},u=a?S.defaultTrackingRequestInterval||10:-1,V=null!=(n=S.incomingAdCountdownInterval)?n:5,n=S.adTrackingUpdateMode||"pagination",W="playhead"===n,j="pagination"===n,A=[],r={},T=[],b={},l=null,d=null,f=null,p=null,m=null,v=null,_=null,h=null,E=null,g=null,o=null,O=null,y=null,C=null,D=0,M=0,R=0,N=[],k=Mn();function P(n,e){for(var t=N.length,i=0;i<t;i++){var r,a=N[i];null!=(r=a[n])&&r.apply(a,e)}}function w(n,e){e=e||l,z(c+"Ad tracking event ".concat(cn[n]),e),P("onAdTrackingEvent",[e,n])}function L(n,e){!n.startDate&&O&&(n.startDate=e+O);e=s;(s=!!n.startDate)!==e&&z(c+"Set adHasStartDate to ".concat(s))}function B(n,e){var g,y;200===e?(y=g=!1,o=Dn(n,r,function(n,e,t,i,r,a,o,s,c,u,l,d,f){var p,m,v,_,h,E;null!=r&&o&&(O=o-r),l?(l="".concat(e||n||0),!b[l]&&(p=n,o=o,m=e,v=c,d=d,m=(E=en(_=u,An))?E.nonLinearAdList.length?(h=E.nonLinearAdList.reduce(function(n,e){var t=e.durationInSeconds||0;return t<=0&&(t=Cn(e.minSuggestedDuration)||0),Math.max(n,t)},0)||5,Object.assign(E,{start:p,startDate:o,duration:h,availId:m,nonlinearAvail:d,adBreakTrackingEvents:v}),z(nn+"New NonLinearAdsData (".concat(h,"s @ ").concat(p,"s / ").concat(o,"s)"),E),E):(q(nn+"Empty nonLinearAdList",_),null):(q(nn+"Missing required fields for NonLinearAdsData",_),null))&&(L(m,n),b[l]=m,K(n,T,I)<0&&(T.push(m),y=!0),P("onNewNonLinearAds",[m]))):(d=null!=f?K(f,A,I):-1,(v=u&&function(t,n,e,i,r,a,o,s,c){var u=tn(c.durationInSeconds);if(null==u||u<=0)return q(nn+"Invalid or missing ad duration",c),null;var l=(l=rn(c.adProgramDateTime))&&new Date(l).getTime()/1e3,d=Cn(rn(c.skipOffset)),f=(d||0===d||(d=-1),en(c,In));if(!f)return q(nn+"Missing required fields for AdData",c),null;function p(n,e){var t=n.getElementsByTagName("JavaScriptResource"),i=n.getElementsByTagName("VerificationParameters"),n=n.getAttribute("vendor"),t=an(null==t?void 0:t[0]),i=an(null==i?void 0:i[0]);n&&t?(f.adVerifications||(f.adVerifications=[])).push({vendor:n,javaScriptResource:[{uri:t}],verificationParameters:i}):q(nn+"Invalid AdVerifications extension content",e)}null!=(c=f.extensions)&&c.forEach(function(n){if("AdVerifications"===n.type){var e=n.content;try{var t=null==(a=Tn.parseFromString(e,"application/xml"))?void 0:a.documentElement;if(t)if("Verification"===t.tagName)p(t,n);else{var i=t.getElementsByTagName("Verification");if(i)for(var r=0;r<i.length;r++)p(i[r],n)}}catch(n){q(nn+"Exception parsing AdVerifications extension: ".concat(e),n)}}else if("companion_about_this_ad"===n.type){var a="<root>"+n.content+"</root>";try{var o,s=null==(o=Tn.parseFromString(a,"application/xml"))?void 0:o.documentElement;s&&sn(s,{Icon:function(n){var e=f.icons||(f.icons=[]),t={};e.push(t),on(t,"program",n.getAttribute("program")),on(t,"width",n.getAttribute("width")),on(t,"height",n.getAttribute("height")),on(t,"xPosition",n.getAttribute("xPosition")),on(t,"yPosition",n.getAttribute("yPosition")),sn(n,{StaticResource:function(n){on(t,"staticResource",an(n))},IconClicks:function(n){var e={};t.iconClicks=e,sn(n,{IconClickThrough:function(n){on(e,"iconClickThrough",an(n))},IconClickFallbackImages:function(n){n=On(n);n.length&&(e.iconClickFallbackImages=n)}})}})}})}catch(n){q(nn+"Exception parsing AdChoices extension: ".concat(a),n)}}else if("IconClickFallbackImages"===n.type){t="<root>"+n.content+"</root>";try{var c,u=null==(c=Tn.parseFromString(t,"application/xml"))?void 0:c.documentElement;u&&sn(u,{IconClickFallbackImages:function(n){var e={},n=((f.icons||(f.icons=[])).push(e),on(e,"program",n.getAttribute("program")),On(n));n.length&&(e.iconClicks={iconClickFallbackImages:n})}})}catch(n){q(nn+"Exception parsing AdChoices extension: ".concat(t),n)}}});var m=[0,0,0,0];function v(n,e){e-=t;0<e&&e<u+.01&&(m[n]=e)}return Object.assign(f,{start:t,startDate:l||0,duration:u,skipOffset:d,availId:n,availAdIndex:e,availAdCount:i,availStart:r,availDuration:a,availMarkedDuration:o,adBreakTrackingEvents:s,inAvailStartOffset:null!=r?t-r:null,playCount:0,quartileEventOffsets:m}),f.videoClickThrough=null,f.trackingEvents=null==(c=f.trackingEvents)?void 0:c.filter(function(n){switch(n.eventType){case"clickThrough":var e=n.beaconUrls[0];return e&&(f.videoClickThrough=e),!1;case J:v(0,n.startTimeInSeconds);break;case $:v(1,n.startTimeInSeconds);break;case Q:v(2,n.startTimeInSeconds);break;case Z:v(3,n.startTimeInSeconds)}return!0}),z(nn+"New AdData (".concat(u,"s @ ").concat(t,"s / ").concat(l,")"),f),f}(n,e,t,i,r,a,s,c,u))?(L(v,n),0<=d&&(v.playCount=A[d].playCount,A.splice(d,1)),n!==f&&0<=(h=K(n,A,I))&&A.splice(h,1),A.push(v),g=!0,P("onNewAd",[v,0<=d])):0<=d&&(u||S.detectAdRemoval)&&(A.splice(d,1),g=!0))}),g&&(A.sort(t),d=f=null,p=null),y&&(T.sort(t),v=_=null,h=null),P("onTrackingInfoResponse",[!1])):(q(c+"Request failed, status ".concat(e),n),P("onTrackingInfoResponse",[!0])),E=null}function x(n,e){var t,i,r;a&&(t=[["tttt","".concat(Date.now())]],W&&t.push(["aws.playheadPositionInSeconds",""+Math.round(e&&O?e-O:n)]),j&&o&&t.push(["aws.nextToken",o]),null!=(e=E)&&e.abort(),n=t,e=new Qu(e=a),r=new Zu(e.search),n.forEach(function(n){r.append(n[0],n[1])}),e.search="?"+r.toString(),t=e.toString(),i=B,E=pn(t,F,function(n,e,t){200===e&&null!=n&&(n=fn(n)),i&&i(n,e,t)}))}function H(n,e,t,i){var r,a,o=i?"startDate":"start",t=ln(t,e,i?U:I),i=0<=t?(a=(r=e[t])[o],t+1<e.length?e[t+1][o]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,e.length?e[0][o]:Number.MAX_VALUE);return z(c+"Update time range (".concat(a," - ").concat(i,"), ")+"".concat(n," ad index ").concat(t),r),[r,a,i]}function i(n){n&&N.indexOf(n)<0&&N.push(n)}return 0<=u&&x(0),i(k),i(_n(S.disableNoninteractiveClientSideBeaconing||"server"===(null==(n=S.sessionFeatures)?void 0:n.reportingMode),S.sendAdBeaconsInNoCorsMode&&"function"==typeof fetch,function(n,e,t,i){P("onAdBeaconResponse",[n,e,t,i])})),{updateAdTrackingInfo:function(n,e){var t;null==n?(x(null!=(t=y)?t:0,C),g=y):(null!=(t=E)&&t.abort(),B(n,200))},startUpdatingAdTrackingInfo:function(n){a?(u=n||10,g=null):q(c+"Missing 'trackingUrl'")},stopUpdatingAdTrackingInfo:function(){u=-1},onPlayheadUpdate:function(n,e){var t,i,r,a,o;null!=y&&y<n&&n<y+2.5&&(0<=u&&!E&&(null==g||Math.abs(n-g)>=u)&&(x(n,e),g=n),a=c+"onPlayheadUpdate(".concat(n,", ").concat(e,"), ")+"adHasStartDate => ".concat(s),G(5,un,a,o),(a=(e=s?e:null)||n)<D||M+2.5<a?D=M=a:M<a&&(M=a),(null==d||a<d||f<=a)&&(o=X(H("linear",A,a,e),3),p=o[0],d=o[1],f=o[2]),o=l,r=a-d,(null==(t=l=p&&a<d+p.duration?p:null)?void 0:t.adId)===(null==o?void 0:o.adId)?l&&(z(c+"Ad progresses, time => ".concat(r)),P("onAdProgress",[l,r,n]),t=M-d,D<=R+d)&&R<t&&(i=R,R=t,(t=l.quartileEventOffsets[0])&&i<t&&t<=R&&w(4),(t=l.quartileEventOffsets[1])&&i<t&&t<=R&&w(5),t=l.quartileEventOffsets[2])&&i<t&&t<=R&&w(6):(o&&((i=o.quartileEventOffsets[3])&&i<R+2.5&&w(7,o),z(c+"Ad ends",o),P("onAdEnd",[o])),R=0,l&&(l.playCount++,e&&z(c+"PDT offset => player ".concat(e-n,", ")+"ad ".concat(l.startDate-l.start),l),z(c+"Ad loads",l),P("onAdLoad",[l]),w(2),z(c+"Ad starts, time => ".concat(r),l),P("onAdStart",[l,r,n]),w(3),w(0))),l||(t=f-a)<=V&&k.dispatchEvent(dn,{timeToNextAd:t}),(null==v||a<v||_<=a)&&(i=X(H("nonlinear",T,a,e),3),h=i[0],v=i[1],_=i[2]),o=m,r=a-v,(m=h&&a<v+h.duration?h:null)!==o)&&(o&&(z(c+"Nonlinear ad ends",o),P("onNonLinearAdsEnd",[o])),m)&&(e&&z(c+"PDT offset => player ".concat(e-n,", ")+"nonlinear ad ".concat(m.startDate-m.start),m),z(c+"Nonlinear ad starts, time => ".concat(r),m),P("onNonLinearAdsStart",[m,r,n])),y=n,C=e},onPlaybackRateUpdate:function(n){},onPlaybackEvent:function(n){switch(n){case 0:null!=e&&e.sendPlaybackStart();break;case 1:null!=e&&e.sendPlaybackEnd()}if(l)switch(n){case 2:w(9);break;case 3:w(10);break;case 4:w(11);break;case 5:w(12);break;case 6:w(13);break;case 7:w(14)}},onVideoClick:function(n){l&&(null!=e&&e.sendAdTouch(n),P("onAdClick",[l]))},onPlayerControlClick:function(n){l&&null!=e&&e.sendAdTouch(n)},onAdClickthrough:function(){l&&(null!=e&&e.sendAdClick(),w(1))},onAdSkip:function(){l&&w(8)},addAdObserver:i,removeAdObserver:function(n){n&&0<=(n=N.indexOf(n))&&N.splice(n,1)},getAllAds:function(){return A.map(Y)},getAllNonLinearAds:function(n){return n?Object.keys(b).map(function(n){return Y(b[n])}):T.map(Y)},addEventListener:function(n,e,t){k.addEventListener(n,e,t)},removeEventListener:function(n,e,t){k.removeEventListener(n,e,t)}}}var _=function(n){return n[n["INVALID_CONFIG"]=0]="INVALID_CONFIG",n[n["INVALID_INIT_RESPONSE"]=1]="INVALID_INIT_RESPONSE",n[n["INIT_DISRUPTED"]=2]="INIT_DISRUPTED",n[n["INIT_ERROR"]=3]="INIT_ERROR",n}({});function d(t,n,i,r){var a,e,o=null,s=t.trackingUrl,c=t.sessionInitUrl,u=t.sessionInitHeaders,l=null!=(e=t.sessionInitTimeout)?e:3e4,d=null!=(e=t.sessionInitMaxRetries)?e:8,f=t.palNonceManager||n,p=null!=(n=null==f||null==(e=f.getNonce)?void 0:e.call(f))?n:null,m={getPlaybackUrl:function(){return o},getTrackingUrl:function(){return s},getPalNonce:function(){return p},updateAdTrackingInfo:function(n,e){a.updateAdTrackingInfo(n,e)},startUpdatingAdTrackingInfo:function(n){a.startUpdatingAdTrackingInfo(n)},stopUpdatingAdTrackingInfo:function(){a.stopUpdatingAdTrackingInfo()},onPlayheadUpdate:function(n,e){a.onPlayheadUpdate(n,e)},onPlaybackRateUpdate:function(n){a.onPlaybackRateUpdate(n)},onPlaybackEvent:function(n){a.onPlaybackEvent(n)},onVideoClick:function(n){a.onVideoClick(n)},onPlayerControlClick:function(n){a.onPlayerControlClick(n)},onAdClickthrough:function(){a.onAdClickthrough()},onAdSkip:function(){a.onAdSkip()},addAdObserver:function(n){a.addAdObserver(n)},removeAdObserver:function(n){a.removeAdObserver(n)},getAllAds:function(){return a.getAllAds()},getAllNonLinearAds:function(n){return a.getAllNonLinearAds(n)},destroy:function(){},addEventListener:function(n,e,t){a.addEventListener(n,e,t)},removeEventListener:function(n,e,t){a.removeEventListener(n,e,t)}};c?(e=v(t.originParams)||{},(n=t.sessionFeatures)&&("off"===n.overlayAvails&&(e.overlayAvails="off"),"server"===n.reportingMode&&(e.reportingMode="server"),"on"===n.adSignaling&&(e.adSignaling={enabled:"true"}),Object.assign(e,n.extra||{})),(n=v(t.playerParams)||{}).device_sdk_info||(n.device_sdk_info=Pn.clientInfo),p&&(n.givn=p),e.playerParams=n,n={retryHeuristics:function(n,e,t){return(0==e||429==e||500<=e&&e<=599)&&n<=d?0==e?0:l:-1}},u&&(n.headers=u),l&&(n.timeout=l),z('createSession: Request sent to URL "'.concat(c,'"'),e),H(c,e,n,function(n,e){200===e?(o=C(null==n?void 0:n.manifestUrl,c))&&(s=C(null==n?void 0:n.trackingUrl,c))?(a=Rn(s,f,t),i(m,"Successful session response",n)):r(_.INVALID_INIT_RESPONSE,"Invalid session response"):0===e?r(_.INIT_DISRUPTED,"Disrupted session initialization"):r(_.INIT_ERROR,"Failed session initialization")})):(a=Rn(s,f,t),i(m,"Session initialized ".concat(s?"elsewhere":"without 'trackingUrl'")))}function Nn(e,i,r,a){var n,o="createSession: ";function t(n,e,t){z(o+e,t),i?i(n,null):r(n)}function s(n,e){var t={code:n,message:e};c(o+"(".concat(n,") ").concat(e)),i?i(null,t):a(t)}e?(n=e.palNonceRequestParams,e.trackingUrl||e.palNonceManager||!n?d(e,null,t,s):(n=j(n))?n.then(function(n){z(o+"NonceManager received",n),d(e,n,t,s)})["catch"](function(n){q(o+"Nonce request rejected",n),d(e,null,t,s)}):(q(o+"Unable to create a nonce request"),d(e,null,t,s))):s(_.INVALID_CONFIG,"Missing config")}var kn="1.14.0";console.debug("[MT] AWS Elemental MediaTailor SDK v".concat(kn));var Pn={initPal:function(n,e){var t="initPal: ";if(!n){if(!e)return c(t+"Missing consent settings"),!1;var i=null==(i=a("goog"))?void 0:i.pal,r=null==i?void 0:i.NonceLoader,i=null==i?void 0:i.ConsentSettings;if(!r||!i)return c(t+"Missing PAL SDK classes"),!1;i=new i;i.allowStorage=null!=(e=e.allowStorage)&&e,n=new r(i)}return s&&q(t+"Resetting NonceLoader"),s=n,!0},createSession:function(t,n){if(!n)return new Promise(function(n,e){Nn(t,null,n,e)});Nn(t,n,null,null)},PlaybackEvent:e,AdTrackingEvent:u,SessionUiEvent:l,setLogLevel:function(n){0<=n&&n<=5?T=n:console.warn(g+"Invalid log level: ".concat(n))},LogLevel:A,getSdkVersion:function(){return kn},clientInfo:"MTSDK v"+kn};return p["default"]},"object"==typeof t?t["mediatailor"]=e():n["mediatailor"]=e(),s.mediatailor=t.mediatailor,s)),$u&&(module.exports=$u.datazoom)}();
1
+ !function(){var n,e,t,s,yl="object"==typeof module?{}:null,Sl=window.URL,Il=window.URLSearchParams,Al=window.EventTarget,Tl=window.CustomEvent,bl={};function Ol(n,e){bl[n]=e}function Cl(n,e){Ol("ext_"+n,e)}Ol("base","2.4.0"),function(ae,ie,T){"use strict";var v,p,oe=ae.Object,h=ae.Array,g=ae.Date,Ie=ae.Number,b=ae.String,E=ae.RegExp,se=ae.Math,y=ae.XMLHttpRequest,O=ae.Uint8Array,C=ae.ArrayBuffer,S=ae.JSON,Ae=ae.Promise,Te=ae.document||{},n=Te.currentScript||{},M=ae.location||{},D=ae.navigator||{},R=D.userAgent||"",be=D.connection||D.mozConnection||D.webkitConnection,N=ae.crypto,k=ae.console||{},e=ae.performance,P=ae.setInterval,w=ae.setTimeout,L=(ae.clearInterval,ae.decodeURIComponent),x=ae.encodeURIComponent,U="function"==typeof fetch;try{v=ae.localStorage,p=ae.sessionStorage}catch(n){}function V(t){return t?function(n,e){n="[DZ] "+n,void 0===e?t.call(k,n):t.call(k,n,e)}:null}var F,t=V(k.log)||function(){},W=V(k.error)||t,j=V(k.warn)||t,B=V(k.info)||t,H=V(k.debug)||t,Oe={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null},cmdQueue:{push:function(n){ue(n)&&n()}}},q="datazoom_",G="__"+q+"rootobj",z="custom_",Y="v_";function I(e,t,n){var r,a=t.shift();return null==a?r=e:e?a instanceof E?oe.keys(e).some(function(n){if(a.test(n))return null!=(r=I(e[n],t.slice()))}):r=I(e[a],t):r=null,null!=r?r:n}function ue(n){return"function"==typeof n}function K(n,e){if(ue(n))try{return new(n=e?n.bind.apply(n,[null].concat(e)):n),1}catch(n){}}Oe[G]=1,yl?yl.datazoom=Oe:function(n){if(_e(n)){if(n[G])return j("Collector already loaded");F=n.cmdQueue}ae.datazoom=Oe}(ae.datazoom),K(Sl,["http://x.io"])&&K(Il)||(Il=function(n){var r=[];function t(n,e){!1!==e&&r.push([n,e])}function a(e){r=r.filter(function(n){return n[0]!==e})}n&&n.slice(1).split("&").forEach(function(n){n=n.split("=");try{r.push([L(n[0]),null==n[1]||L(n[1])])}catch(n){le(n,"URLSearchParams()")}});n=this;n.append=t,n["delete"]=a,n.set=function(n,e){a(n),t(n,e)},n.get=function(e){var t=null;return r.some(function(n){if(n[0]===e)return t=n[1],!0}),t},n.toString=function(){return r.map(function(n){var e=x(n[0]);return!0===n[1]?e:e+"="+x(n[1])}).join("&")}},Sl=function(n){var e=this,n=n.split("?"),t=n[0],n=n[1]?"?"+n[1]:"";e.search=n,e.searchParams=new Il(n),e.toString=function(){return t+e.search}}),K(Al)&&K(Tl,["x"])||(Al=function(){var t=this,r={};t.addEventListener=function(n,e){var t=r[n];t||(r[n]=t=[]),t.push(e)},t.removeEventListener=function(n,e){var t=r[n];t&&(r[n]=t.filter(function(n){return n!=e}))},t.dispatchEvent=function(e){var n=r[e.type];n&&n.forEach(function(n){w(function(){n.call(t,e)},0)})}},Tl=function(n,e){this.type=n,e&&(this.detail=e.detail)}),ie=oe.assign({},{cn:"Brightcove Player (MT/OM)",sv:"2.25.0-rc.1",cf:"",mf:null,ev:[],fd:[],md:[],od:null,mb:"",sw:!1,sm:"",sp:[],ss:"",sd:"",sc:"",ab:"",st:null,hi:1e4,ti:200,cm:null,am:null,cq:null,aq:null,rd:[1,2,4,8,8,8,8],bd:50,kd:50,mh:5e3,ml:0,mc:256,mp:2.5,ep:2,ed:2500,ec:Ie.MAX_VALUE,cc:"",cl:"",ci:"",cd:[],og:!0,os:!0,tt:!1,om:!1,ps:null,sn:["IDLE","CT_REQUESTED","CT_BUFFERING","CT_PLAYING","CT_PAUSED","CT_SEEKING","CT_COMPLETED","CT_STOPPED","CT_ERROR","AD_BUFFERING","AD_PLAYING","AD_PAUSED","AD_SEEKING","AD_COMPLETED","AD_SKIPPED","AD_ERROR","AD_BREAK_STARTED","AD_BREAK_ENDED"],le:function(n){var e=n.event,t=n.video;Ne("[Event] "+e.type+(t?" ("+t.media_type+")":"")+" @"+e.timestamp,pe(n))}},ie||{});var o,X,Ce,$={datapoints:{events:"ev",flux_data:"fd",metadata:"md",cmcd:"cd"},endpoints:{event_ingest:"mb",sampling:"sm",ad_blocker_bait:"ab"},sampling:{enable:"sw",definition_namespace:"ss",definition_key_name:"sd",criteria_sampling_key_name:"sc",criteria_matching_fields:"sp"},ondemand:"od",customer_code:"cc",connector_list:"cl",app_session_timeout_mins:"st",heartbeat_interval_ms:"hi",content_milestone_percent:"cm",ad_milestone_percent:"am",content_qv_sec:"cq",ad_qv_sec:"aq",observability:{lag_enabled:"og",loss_enabled:"os"},om_enabled:"om",configuration_id:""},J=!yl&&n.src||"/",Q=M.href||"https://localhost",Z="configuration_id",nn="urn:x-cast:io.datazoom.collector",Me="transfer",en=0,tn=1,rn=2,an=3,on=4,sn=5,un={off:en,error:tn,warning:rn,info:an,debug:on,verbose:sn},cn=rn;function ln(n){var e;n&&(e=un[n],en<=(e=null!=e?e:+n)&&e<=sn?cn=e:j("Invalid log level: "+n))}function dn(){o={},X=[],[[ie.ps],[J.split("?")[1]],[Q.split("?")[1],q]].forEach(function(n){var r=n[1];n[0]&&n[0].split("&").forEach(function(n){try{var e=n.split("="),t=L(e[0]);if(r){if(!t.startsWith(r))return;t=t.slice(r.length)}o[t]=null==e[1]||L(e[1]),t.startsWith("x-")&&X.push([t,o[t]])}catch(n){j("Invalid query string: "+n.message)}})}),Ce="true"==o.demo,ln(o.log)}dn();var fn="io.datazoom.",pn=fn,mn="__ss_ev_count",_n="__ss_last_act",vn="__ss_custom_md",hn="__ss_msg_queue",gn="__ss_sm_resp",En="__ss_appss_to",yn="__ss_on_demand",Sn="collector_observability",In="process_duration_ms",An="send_duration_ms",Tn="call_duration_ms",bn="queue_duration_ms",On="attempt_count",Cn="attempt",Mn="status_code",Dn="sample",Rn="config",Nn="log";function kn(n,e,t,r){cn<n||e(t,r)}function De(n,e){kn(tn,W,n,e)}function ce(n,e){kn(rn,j,n,e)}function Re(n,e){kn(an,B,n,e)}function Ne(n,e){kn(on,H,n,e)}function Pn(n,e){kn(sn,H,n,e)}function le(n,e){e="[Exception] "+(e?"("+e+") ":"")+n;return De(e,n),e}function ke(t,r,a,i,o){var s,u=0,c=1,l=0;return r=r||"",a=a||1,i=i||Ie.MAX_VALUE,{log:function(n,e){o&&(s=de())>=l+o&&(u=0,c=1,l=s),++u>=c&&(t("["+u+"] "+r+n,e),c+=se.min(c*a,i))}}}function Pe(n,e){f(ae,"postMessage",[{type:n,data:e},"*"])}var wn,de,Ln,xn,Un,Vn,Fn=[],Wn=0;function jn(n,e,t,r,a,i,o,s){var t={time:t,metric_name:r,dimension:{},batch:function(){return i}},u=(n&&(t.type=n),null!=a&&(t.metric_value=a),t.dimension);return e&&(u.target=e),s&&s.forEach(function(n){u[n[0]]=n[1]}),o&&(u["b4_ss"]=!0),t}function Bn(r,a,i,o){var s=a,u=1,c=Wn++;return{retry:function(n){s=n,u++},log:function(n,e){var t;ie.og&&(null!=i&&Fn.push(jn(null,r,t=a-i,In,n-t,c,o,[[On,u],[Mn,e]]),jn(null,r,t,bn,i,c,o)),Fn.push(jn(null,r,a,An,n-a,c,!1,[[On,u],[Mn,e]]),jn(null,r,s,Tn,n-s,c,!1,[[Cn,u],[Mn,e]])))}}}function Hn(n,e){var t,r;ie.os&&(r=n.t,r=se.trunc(r/6e4),(r=(wn=wn||{})[r]||(wn[r]=[0,0,0]))[2]++,t=(r=r[3]||(r[3]={}))[e],n=Xs(n.m,Wa),t?t.push(n):r[e]=[n])}function qn(n){var e,t=wn[n],r=Wn++;t[2]&&(t[3]&&(e=[["status_codes",t[3]]]),Fn.push(jn("loss",null,6e4*+n,"evnt_fail",t[2],r,!1,e)))}function we(n){return n&&(We(n)?n.slice():oe.assign({},n))}function Gn(n,e){return _e(e)?n?oe.assign({},n,e):e:n}function zn(n,e){var t;return e?((t={})[n]=e,t):null}function Yn(t,r){var a;return r?t?(a=we(t),oe.keys(r).forEach(function(n){var e=t[n];a[n]=e?oe.assign({},e,r[n]):r[n]}),a):r:t}function f(n,e,t,r){e=I(n,[e],r);return ue(e)?e.apply(n,t):null}function Kn(n,e,t){return function(){try{return e.apply(n,arguments)}catch(n){le(n,t)}}}function Xn(t,n){oe.keys(t).forEach(function(e){n.forEach(function(n){n[e]=Kn(n,t[e],e)})}),n[0]}function $n(n){var e={};return n.forEach(function(n){e[n.nm]=n}),e}function Jn(n){var e={};return n.forEach(function(n){e[n.nm]=!0}),e}function Qn(n,e,t){n.forEach(function(n){n[e]=t})}function Le(n,e){var n=new Sl(n,Q),t=new Il(n.search);return e(t),n.search="?"+t.toString(),n.toString()}function Zn(n){var e,t=X.length;return t?Le(n,function(n){for(e=0;e<t;e++)n.append(X[e][0],X[e][1])}):n}function ne(n,e,t){var r;return null!=(r=n?new Sl(n,Q).searchParams.get(e):r)?r:t}Ln=0,xn=ie.ec,Un=ke(ce,"Abnormal clock increment: ",.2,1e3,3e5),e&&e.now,Vn=Ln+g.now(),de=function(n){var e=g.now(),t=Vn,r=(Vn=Ln+e)-t;return(r<0||xn<r)&&(Vn=t+ie.ti,Ln=Vn-e,Un.log(r)),Vn};var fe=function(){for(var t=[],n=0;n<256;n++)t.push((n+256).toString(16).substr(1).toLowerCase());return function(){var n=new O(16);if(N&&N.getRandomValues)N.getRandomValues(n);else{ce("getRandomValues() not supported");for(var e=0;e<16;e++)n[e]=se.floor(256*se.random())}return n[6]=15&n[6]|64,n[8]=63&n[8]|128,t[n[0]]+t[n[1]]+t[n[2]]+t[n[3]]+"-"+t[n[4]]+t[n[5]]+"-"+t[n[6]]+t[n[7]]+"-"+t[n[8]]+t[n[9]]+"-"+t[n[10]]+t[n[11]]+t[n[12]]+t[n[13]]+t[n[14]]+t[n[15]]}}();function ee(n,e,t,r,a,i){var o=new y;if(o.open(n,e,!0),null!=i&&(o.timeout=i),t)for(var s=oe.keys(t),u=0;u<s.length;u++)o.setRequestHeader(s[u],t[s[u]]);return a&&(o.onreadystatechange=function(){a(o)}),o.send(r),{abort:function(){delete o.onreadystatechange,o.abort()}}}function pe(n){if(n)try{return S.stringify(n)}catch(n){le(n,"toJSON")}return null}function me(n){if(n)try{return S.parse(n)}catch(n){le(n,"fromJSON")}return null}function te(n,e){return(n===p?pn:fn)+e}function m(n,e,t){if(n)if(null==t)xe(n,e);else try{n.setItem(te(n,e),pe({v:t}))}catch(n){le(n,"storageSet")}}function re(n,e){n=n?me(n.getItem(te(n,e))):null;return n?n.v:null}function xe(n,e){n&&n.removeItem(te(n,e))}ae.self!==ae.top&&Ne("Page loaded in a frame, set sessionStorage prefix to: "+(pn+=(o.frame_id||fe())+"."));var Ue=me('{"omidPartnerName":"Amazon2","omidPartnerVersion":"1.0.0"}')||{};function Ve(n){return"string"==typeof n}function Fe(n){return Ie.isFinite(n)}function We(n){return h.isArray(n)}function _e(n){return null!=n&&"object"==typeof n&&!We(n)}function je(n){return Ve(n)?n:""+n}function Be(n){return Fe(n=+n)?n:null}function He(e,t,r){return null==e&&null==t?Be:function(n){return null!=(n=Be(n))&&(null!=e&&n<e?n=r?null:e:null!=t&&t<n&&(n=r?null:t)),n}}function qe(n){return se.round(n)}function Ge(n,e){for(var t=0;t<e.length;t++)!function(n){for(var e=n,t=1;t<arguments.length;t++)e.dv||(e.dv=[]),e.dv.push(arguments[t])}(e[t],n)}function ze(n,e){if(e)for(var t=0;t<e.length&&null!=n;t++)n=e[t](n);return n}var Ye,Ke,Xe,$e,Je=4,Qe=8,Ze=16,nt=32,A=65535,et=Je,t=1|Ze,n=Je|Ze,e=n|nt,a=Qe,tt={ap:2,nm:"ad_beacon_response"},rt={ap:2,nm:"ad_break_start"},at={ap:2,nm:"ad_break_end"},it={ap:2,nm:"ad_click"},ot={ap:2,nm:"ad_impression"},st={ap:2,nm:"ad_om_session_created"},ut={ap:2,nm:"ad_om_session_omitted"},ct={ap:2,nm:"ad_skip"},lt={ap:et,nm:"app_session_end"},dt={ap:3,nm:"audio_track_changed"},ft={ap:3,nm:"buffer_start"},pt={ap:3,nm:"buffer_end"},mt={ap:3,nm:"cast_start"},_t={ap:3,nm:"cast_end"},vt={ap:3,nm:"cast_transfer"},ht={ap:A,nm:"context_ready"},gt={ap:et,nm:"datazoom_loaded"},Et={ap:3,nm:"error"},yt={ap:3,nm:"exit_fullscreen"},St={ap:3,nm:"fullscreen"},It={ap:3,nm:"heartbeat"},At={ap:3,nm:"media_loaded"},Tt={ap:1,nm:"media_object_request"},bt={ap:3,nm:"media_request"},Ot={ap:3,nm:"milestone"},Ct={ap:3,nm:"mute"},Mt={ap:3,nm:"pause"},Dt={ap:3,nm:"play_btn"},Rt={ap:3,nm:"playback_start"},Nt={ap:3,nm:"playback_complete"},kt={ap:1,nm:"player_ready"},Pt={ap:3,nm:"playing"},wt={ap:3,nm:"qualified_view"},Lt={ap:1,nm:"quality_change_request"},xt={ap:3,nm:"rendition_change"},Ut={ap:3,nm:"resize"},Vt={ap:3,nm:"resume"},Ft={ap:3,nm:"seek_start"},Wt={ap:3,nm:"seek_end"},jt={ap:3,nm:"stall_start"},Bt={ap:3,nm:"stall_end"},Ht={ap:3,nm:"stop"},qt={ap:3,nm:"subtitle_change"},Gt={ap:3,nm:"unmute"},zt={ap:3,nm:"volume_change"},Yt=(bt.rtc=0,Rt.rtc=1,Mt.rtc=2,ft.rtc=3,jt.rtc=4,Ft.rtc=5,xt.rtc=6,Ot.rtc=7,bt.rta=8,Rt.rta=9,ft.rta=10,jt.rta=11,Ot.rta=12,Et.rta=ct.rta=Nt.rta=13,rt.rta=14,at.rta=15,It.rt=16,ft.rt=17,jt.rt=18,["event","metrics"]),Kt={ap:t,nm:"ad_click_count"},Xt={ap:n,nm:"ad_click_count_app"},$t={ap:t,nm:"ad_skip_count"},Jt={ap:n,nm:"ad_skip_count_app"},Qt={ap:t,nm:"bandwidth_kbps"},Zt={ap:t,nm:"buffer_duration_ms"},nr={ap:t,nm:"buffer_duration_ads_ms"},er={ap:n,nm:"buffer_duration_ads_app_ms"},tr={ap:t,nm:"buffer_duration_content_ms"},rr={ap:n,nm:"buffer_duration_content_app_ms"},ar={ap:t,nm:"buffer_fill_percent"},ir={ap:t,nm:"buffer_length_ms"},or={ap:t,nm:"content_session_start_ts_ms"},sr={ap:3,nm:"current_audio_track"},ur={ap:t,nm:"current_subtitles"},cr={ap:n,nm:"engagement_duration_ms"},lr={ap:n,nm:"engagement_duration_ads_ms"},dr={ap:n,nm:"engagement_duration_content_ms"},fr={ap:a,nm:"event_count"},pr={ap:t,nm:"num_ad_break_plays"},mr={ap:n,nm:"num_ad_completes_app"},_r={ap:n,nm:"num_ad_plays"},vr={ap:n,nm:"num_ad_plays_audible_app"},hr={ap:n,nm:"num_ad_plays_qv_app"},gr={ap:n,nm:"num_ad_plays_viewable_app"},Er={ap:n,nm:"num_content_plays"},yr={ap:n,nm:"num_content_rendition_changes_app"},Sr={ap:n,nm:"num_errors"},Ir={ap:n,nm:"num_errors_ads"},Ar={ap:n,nm:"num_errors_content"},Tr={ap:n,nm:"num_pauses_content"},br={ap:n,nm:"num_requests_content"},Or={ap:n,nm:"num_seeks_content"},Cr={ap:t,nm:"pause_duration_ms"},Mr={ap:t,nm:"pause_duration_ads_ms"},Dr={ap:t,nm:"pause_duration_content_ms"},Rr={ap:t,nm:"playback_duration_ms"},Nr={ap:t,nm:"playback_duration_ads_ms"},kr={ap:n,nm:"playback_duration_ads_app_ms"},Pr={ap:n,nm:"playback_duration_ads_audible_app_ms"},wr={ap:n,nm:"playback_duration_ads_viewable_app_ms"},Lr={ap:2,nm:"playback_duration_ad_session_ms"},xr={ap:t,nm:"playback_duration_content_ms"},Ur={ap:n,nm:"playback_duration_content_app_ms"},Vr={ap:n,nm:"playback_duration_content_audible_app_ms"},Fr={ap:n,nm:"playback_duration_content_hifi_app_ms"},Wr={ap:n,nm:"playback_duration_content_viewable_app_ms"},jr={ap:t,nm:"playback_duration_promo_ms"},Br={ap:3,nm:"playback_rate"},Hr={ap:t,nm:"player_state"},qr={ap:t,nm:"player_viewable"},Gr={ap:t,nm:"player_viewable_percent"},ve={ap:3,nm:"playhead_position_sec"},zr={ap:t,nm:"playhead_pdt_sec"},Yr={ap:3,nm:"rendition_audio_bitrate_kbps"},Kr={ap:3,nm:"rendition_height"},Xr={ap:3,nm:"rendition_name"},$r={ap:3,nm:"rendition_video_bitrate_kbps"},Jr={ap:3,nm:"rendition_width"},Qr={ap:t,nm:"stall_count"},Zr={ap:t,nm:"stall_count_ads"},na={ap:n,nm:"stall_count_ads_app"},ea={ap:t,nm:"stall_count_content"},ta={ap:n,nm:"stall_count_content_app"},ra={ap:t,nm:"stall_duration_ms"},aa={ap:t,nm:"stall_duration_ads_ms"},ia={ap:n,nm:"stall_duration_ads_app_ms"},oa={ap:t,nm:"stall_duration_content_ms"},sa={ap:n,nm:"stall_duration_content_app_ms"},ua={ap:t,nm:"time_since_last_ad_break_start_ms"},ca={ap:t,nm:"time_since_last_ad_completed_ms"},la={ap:t,nm:"time_since_last_buffer_start_ms"},da={ap:t,nm:"time_since_last_buffer_start_ad_ms"},fa={ap:t,nm:"time_since_last_buffer_start_content_ms"},pa={ap:t,nm:"time_since_last_heartbeat_ms"},ma={ap:t,nm:"time_since_last_milestone_ad_ms"},_a={ap:t,nm:"time_since_last_milestone_content_ms"},va={ap:t,nm:"time_since_last_pause_ms"},ha={ap:t,nm:"time_since_last_rendition_change_ms"},ga={ap:t,nm:"time_since_last_request_ad_ms"},Ea={ap:t,nm:"time_since_last_seek_start_ms"},ya={ap:t,nm:"time_since_last_stall_start_ms"},Sa={ap:t,nm:"time_since_last_stall_start_ad_ms"},Ia={ap:t,nm:"time_since_last_stall_start_content_ms"},Aa={ap:t,nm:"time_since_last_started_ad_ms"},Ta={ap:t,nm:"time_since_request_content_ms"},ba={ap:t,nm:"time_since_started_content_ms"},Oa={ap:t,nm:"time_to_first_frame_ms"},Ca={ap:t,nm:"time_to_first_frame_plus_ad_delay_ms"},Ma={ap:t,nm:"volume_level_percent"},Da=(Qn([Kt,Xt,$t,Jt,Zt,nr,er,tr,rr,Cr,Mr,Dr,Rr,Nr,kr,Pr,wr,xr,Ur,Vr,Fr,Wr,jr,Qr,Zr,na,ea,ta,ra,aa,ia,oa,sa,mr,_r,vr,hr,gr,Sr,Ir,Ar,Er,yr,Tr,br,Or],"df",0),Ta.ts=0,ba.ts=1,va.ts=2,fa.ts=3,Ia.ts=4,Ea.ts=5,ha.ts=6,_a.ts=7,ga.ts=8,Aa.ts=9,da.ts=10,Sa.ts=11,ma.ts=12,ua.ts=14,ca.ts=13,pa.ts=16,la.ts=17,ya.ts=18,[]),Ra=["event"],r=["event","attributes"],i=["cmcd"],Na=["user_details"],s=["player"],u=["device"],c=["video"],l=["geo_location"],ka=["network"],Pa=["page"],d=["ad"],wa=["ops_metadata"],La=["custom"],xa=["vendor"],Ua={p:Da,ap:e,nm:"configuration_id"},Va={p:Da,ap:e,nm:"connector_list"},Fa={p:Da,ap:e,nm:"customer_code"},Wa={p:Da,ap:a,nm:"event_id"},ja={p:Ra,ap:a,nm:"timestamp"},Ba={p:Ra,ap:a,nm:"type"},Da={p:i,ap:a,nm:"bl"},Ra={p:i,ap:a,nm:"br"},Ha={p:i,ap:a,nm:"bs"},qa={p:i,ap:a,nm:"cid"},Ga={p:i,ap:a,nm:"d"},za={p:i,ap:a,nm:"dl"},Ya={p:i,ap:a,nm:"mtp"},Ka={p:i,ap:a,nm:"nor"},Xa={p:i,ap:a,nm:"nrr"},$a={p:i,ap:a,nm:"ot"},Ja={p:i,ap:a,nm:"pr"},Qa={p:i,ap:a,nm:"rid"},Za={p:i,ap:a,nm:"rtp"},ni={p:i,ap:a,nm:"sf"},ei={p:i,ap:a,nm:"sid"},ti={p:i,ap:a,nm:"st"},ri={p:i,ap:a,nm:"su"},ai={p:i,ap:a,nm:"tb"},i={p:i,ap:a,nm:"v"},ii={p:r,ap:a,nm:"abs_shift"},oi={p:r,ap:a,nm:"error_code"},si={p:r,ap:a,nm:"error_msg"},ui={p:r,ap:a,nm:"inner_error"},ci={p:r,ap:a,nm:"heartbeat_count"},li={p:r,ap:a,nm:"milestone_percent"},di={p:r,ap:a,nm:"qualified_view_sec"},fi={p:r,ap:a,nm:"seek_start_point_ms"},pi={p:r,ap:a,nm:"seek_end_point_ms"},mi={p:r,ap:a,nm:"startup_duration_content_ms"},_i={p:r,ap:a,nm:"startup_duration_total_ms"},vi={p:Na,ap:n,nm:"app_session_id"},hi={p:Na,ap:n,nm:"app_session_start_ts_ms"},r={p:Na,ap:n,nm:"app_session_end_ts_ms"},gi={p:Na,ap:t,nm:"cast_app_session_id"},Ei={p:Na,ap:t,nm:"cast_content_session_id"},yi={p:Na,ap:e,nm:"client_ip"},Si={p:Na,ap:t,nm:"content_session_id"},Na={p:Na,ap:n,nm:"user_agent"},Ii={p:s,ap:t,nm:"autostart"},Ai={p:s,ap:t,nm:"casting"},Ti={p:s,ap:t,nm:"controls"},bi={p:s,ap:t,nm:"default_muted"},Oi={p:s,ap:t,nm:"default_playback_rate"},Ci={p:s,ap:t,nm:"fullscreen"},Mi={p:s,ap:t,nm:"loop"},Di={p:s,ap:t,nm:"muted"},Ri={p:s,ap:t,nm:"player_name"},Ni={p:s,ap:t,nm:"player_version"},ki={p:s,ap:t,nm:"preload"},Pi={p:s,ap:t,nm:"ready_state"},wi={p:s,ap:t,nm:"streaming_protocol"},Li={p:s,ap:t,nm:"streaming_type"},xi={p:s,ap:t,nm:"subtitles"},s={p:u,ap:n,nm:"advertising_id"},Ui={p:u,ap:n,nm:"browser_name"},Vi={p:u,ap:n,nm:"browser_height"},Fi={p:u,ap:n,nm:"browser_version"},Wi={p:u,ap:n,nm:"browser_width"},ji={p:u,ap:n,nm:"cookies_enabled"},Bi={p:u,ap:e,nm:"device_id"},Hi={p:u,ap:n,nm:"device_mfg"},qi={p:u,ap:n,nm:"device_name"},Gi={p:u,ap:n,nm:"device_type"},zi={p:u,ap:n,nm:"orientation"},Yi={p:u,ap:n,nm:"os_name"},u={p:u,ap:n,nm:"os_version"},Ki={p:c,ap:t,nm:"asset_id"},Xi={p:c,ap:t,nm:"description"},$i={p:c,ap:t,nm:"duration_sec"},Ji={p:c,ap:t,nm:"frame_rate"},Qi={p:c,ap:t,nm:"media_tags"},Zi={p:c,ap:3,nm:"media_type"},no={p:c,ap:t,nm:"player_height"},eo={p:c,ap:t,nm:"player_width"},to={p:c,ap:t,nm:"source"},ro={p:c,ap:t,nm:"title"},ao={p:l,ap:e,nm:"city"},io={p:l,ap:e,nm:"country"},oo={p:l,ap:e,nm:"country_code"},so={p:l,ap:e,nm:"latitude"},uo={p:l,ap:e,nm:"longitude"},co={p:l,ap:e,nm:"postal_code"},lo={p:l,ap:e,nm:"region"},fo={p:l,ap:e,nm:"region_code"},po={p:l,ap:e,nm:"continent"},mo={p:l,ap:e,nm:"continent_code"},c={p:l,ap:e,nm:"district"},_o={p:l,ap:e,nm:"timezone_name"},vo={p:l,ap:e,nm:"timezone_offset"},ho={p:ka,ap:e,nm:"asn"},l={p:ka,ap:e,nm:"asn_org"},go={p:ka,ap:n,nm:"connection_type"},Eo={p:ka,ap:e,nm:"isp"},yo={p:ka,ap:e,nm:"mobile_connection"},So={p:wa,ap:a,nm:"context_id"},Io={p:wa,ap:a,nm:"context_name"},ka={p:wa,ap:n,nm:"dz_dictionary_version"},Ao={p:wa,ap:a,nm:"msg_send_client_ts_ms"},To={p:wa,ap:a,nm:"player_context_id"},bo={p:wa,ap:e,nm:"server_ts_offset_ms"},Oo={p:Pa,ap:n,nm:"collector_name"},Co={p:Pa,ap:n,nm:"dz_sdk_version"},Mo={p:Pa,ap:n,nm:"page_title"},Do={p:Pa,ap:n,nm:"page_url"},Ro={p:Pa,ap:n,nm:"referrer_url"},No={p:Pa,ap:n,nm:"site_domain"},ko={p:d,ap:a,nm:"ad_beacon_status"},Po={p:d,ap:a,nm:"ad_beacon_type"},wo={p:d,ap:a,nm:"ad_beacon_url"},Lo={p:d,ap:2,nm:"ad_beacons"},xo={p:d,ap:2,nm:"ad_beacons_rejected"},Uo={p:d,ap:2,nm:"ad_beacons_sent"},Vo={p:d,ap:e,nm:"ad_blocker"},Fo={p:d,ap:t,nm:"ad_break_id"},Wo={p:d,ap:2,nm:"ad_click_url"},jo={p:d,ap:2,nm:"ad_creative_id"},Bo={p:d,ap:2,nm:"ad_duration_sec"},Ho={p:d,ap:2,nm:"ad_id"},qo={p:d,ap:a,nm:"ad_om_session_data"},Go={p:d,ap:2,nm:"ad_om_session_events"},Pa={p:d,ap:2,nm:"ad_partner"},zo={p:d,ap:t,nm:"ad_position"},Yo={p:d,ap:2,nm:"ad_session_id"},Ko={p:d,ap:2,nm:"ad_system"},Xo={p:d,ap:2,nm:"ad_time_offset_sec"},e={p:d,ap:n,nm:"ad_tracking_opt_out"},$o={p:d,ap:2,nm:"advertiser_name"},Jo={p:d,ap:2,nm:"deal_id"},Qo={p:d,ap:2,nm:"skip_time_offset_sec"},Zo={p:d,ap:2,nm:"wrapper_creative_ids"},ns={p:d,ap:2,nm:"wrapper_id"},es={p:d,ap:2,nm:"wrapper_systems"},n={p:["cdn"],ap:t,nm:"cdn"},ts=(Jo.df="",Qn([Zo,ns,es],"df",[]),Ge(function(n){return!!n},[Vo,e,Ii,Ha,Ai,Ti,ji,bi,Ci,Mi,yo,Di,ri,xi,qr]),Ge(function(n){We(n)||(n=[n]);for(var e=0;e<n.length;e++)n[e]=je(n[e])||"";return n},[Zo,ns,es]),Ge(null==Ye&&null==Ke?je:function(n){var e;return null!=(n=je(n))&&(e=n.length,null!=Ye&&e<Ye?n=null:null!=Ke&&Ke<e&&(n=Xe?null:n.slice(0,Ke))),n},[ii,Fo,Wo,jo,Ho,Pa,zo,Yo,Ko,$o,s,vi,ho,l,Ki,Ui,Fi,gi,Ei,n,qa,ao,yi,Ua,Va,Si,po,mo,io,oo,Fa,Jo,Xi,Bi,Hi,qi,Gi,c,Co,oi,si,Wa,ui,Eo,Zi,Ka,Xa,zi,Yi,u,$a,Mo,Do,To,Ri,Ni,co,ki,Ro,lo,fo,Qa,ni,ei,No,to,ti,wi,Li,_o,ro,Ba,Na,sr,ur,Hr,Xr]),Ge(He(0,100),[ar,Gr,Ma]),Ge(He(0,1e9,!0),[Qt]),Ge(He(),[Bo,Xo,r,hi,Da,Ra,Vi,Wi,Ga,Oi,za,$i,Ji,ci,so,uo,li,Ya,no,eo,Ja,di,Pi,Za,pi,fi,bo,Qo,mi,_i,ai,ja,vo,i,Kt,Xt,$t,Jt,nr,er,tr,rr,Zt,ir,or,lr,dr,cr,fr,pr,mr,_r,vr,hr,gr,Er,yr,Sr,Ir,Ar,Tr,br,Or,Mr,Dr,Cr,Nr,kr,Pr,wr,Lr,xr,Ur,Vr,Fr,Wr,Rr,jr,Br,ve,Yr,Kr,$r,Jr,Qr,Zr,na,ea,ta,aa,ia,oa,sa,ra,ua,ca,da,fa,la,pa,ma,_a,va,ha,ga,Ea,Sa,Ia,ya,Aa,Ta,ba,Oa,Ca]),Ge(0==(d=5)?qe:($e=se.pow(10,d),function(n){return se.round(n*$e)/$e}),[Bo,Xo,r,hi,Da,Ra,Vi,Wi,Ga,Oi,za,$i,Ji,ci,so,uo,li,Ya,no,eo,Ja,di,Pi,Za,pi,fi,bo,Qo,mi,_i,ai,ja,vo,i,Kt,Xt,$t,Jt,Qt,nr,er,tr,rr,Zt,ar,ir,or,lr,dr,cr,fr,pr,mr,_r,vr,hr,gr,Er,yr,Sr,Ir,Ar,Tr,br,Or,Mr,Dr,Cr,Nr,kr,Pr,wr,Lr,xr,Ur,Vr,Fr,Wr,Rr,jr,Br,Gr,ve,Yr,Kr,$r,Jr,Qr,Zr,na,ea,ta,aa,ia,oa,sa,ra,ua,ca,da,fa,la,pa,ma,_a,va,ha,ga,Ea,Sa,Ia,ya,Aa,Ta,ba,Oa,Ca,Ma]),[tt,rt,at,it,ot,st,ut,ct,lt,dt,ft,pt,mt,_t,vt,ht,gt,Et,yt,St,It,At,Tt,bt,Ot,Ct,Mt,Dt,Rt,Nt,kt,Pt,wt,Lt,xt,Ut,Vt,Ft,Wt,jt,Bt,Ht,qt,Gt,zt]),rs=$n(ts);function as(n,e){return Y+n+"_"+e}function is(n,e){var t,r=Jn(ts),a={},i={};n?0<n.length?(n=Ve(t=ie.tt&&o.beta_ev)?n.concat(t.split(".").map(function(n){return{name:n,media_types:["na"]}})):n).forEach(function(n){var e,t=n&&n.name;t&&r[t]?(n=n.media_types)&&0<n.length&&(a[t]=!0,"na"!=n[0])&&(e={},n.forEach(function(n){e[n]=!0}),i[t]=e):ce("Unknown event: "+t)}):e&&ce("This collector is not active. Configure it to a data pipe to start sending events."):a=i=null,ts.forEach(function(n){n.on=!(a&&!a[n.nm]),n.mm=i&&i[n.nm]})}is(),Qn([Xt,Jt,er,rr,mr,_r,vr,hr,gr,Sr,Ir,Ar,Er,yr,Tr,br,Or,kr,Pr,wr,Ur,Vr,Fr,Wr,na,ta,ia,sa],"st",p);var os=[Kt,Xt,$t,Jt,Qt,Zt,nr,er,tr,rr,ar,ir,or,sr,ur,cr,lr,dr,fr,pr,mr,_r,vr,hr,gr,Er,yr,Sr,Ir,Ar,Tr,br,Or,Cr,Mr,Dr,Rr,Nr,kr,Pr,wr,Lr,xr,Ur,Vr,Fr,Wr,jr,Br,Hr,qr,Gr,ve,zr,Yr,Kr,Xr,$r,Jr,Qr,Zr,na,ea,ta,ra,aa,ia,oa,sa,ua,ca,la,da,fa,pa,ma,_a,va,ha,ga,Ea,ya,Sa,Ia,Aa,Ta,ba,Oa,Ca,Ma],ss=[],us=(os.forEach(function(n){null!=n.ts&&ss.push(n)}),[]),cs=[];function ls(n){var e,t=Jn(os),r={};n?(n=Ve(e=ie.tt&&o.beta_fd)?n.concat(e.split(".")):n).forEach(function(n){t[n]?r[n]=!0:ce("Unknown flux data: "+n)}):r=null,us=[],cs=[],os.forEach(function(n){n.on=!(r&&!r[n.nm]),n.on&&(n.ap==a?cs:us).push(n)})}ls(),Qn([vi,hi],"st",p);var ds,fs,ps,ms,_s,vs=[Ri,Ni,s,ro,Ki,Li,Ai],hs={},gs=(vs.forEach(function(n){hs[n.nm.toUpperCase()]=q+n.nm}),[Ua,Va,Fa,Wa,ja,Ba,Da,Ra,Ha,qa,Ga,za,Ya,Ka,Xa,$a,Ja,Qa,Za,ni,ei,ti,ri,ai,i,ii,oi,si,ui,ci,li,di,fi,pi,mi,_i,vi,hi,r,gi,Ei,yi,Si,Na,Ii,Ai,Ti,bi,Oi,Ci,Mi,Di,Ri,Ni,ki,Pi,wi,Li,xi,s,Ui,Vi,Fi,Wi,ji,Bi,Hi,qi,Gi,zi,Yi,u,Ki,Xi,$i,Ji,Qi,Zi,no,eo,to,ro,ao,io,oo,so,uo,co,lo,fo,po,mo,c,_o,vo,ho,l,go,Eo,yo,So,Io,ka,Ao,To,bo,Oo,Co,Mo,Do,Ro,No,ko,Po,wo,Lo,xo,Uo,Vo,Fo,Wo,jo,Bo,Ho,qo,Go,Pa,zo,Yo,Ko,Xo,e,$o,Jo,Qo,Zo,ns,es,n]),Es=$n(gs),ys=gs.concat(os),Ss=$n(ys),Is=[Wa],As=[],Ts=[];function bs(n){var e,t=Jn(gs),r={};fs=ps=ms=_s=!1,n?((n=Ve(e=ie.tt&&o.beta_md)?n.concat(e.split(".")):n).forEach(function(n){t[n]?r[n]=!0:"custom_metadata_all"==n?fs=!0:"custom_events_all"==n?ps=!0:"vendor_metadata_all"==n?ms=!0:"vendor_events_all"==n?_s=!0:ce("Unknown metadata: "+n)}),Is.forEach(function(n){r[n.nm]=!0})):fs=ps=ms=_s=!(r=null),As=[],Ts=[],gs.forEach(function(n){n.on=!(r&&!r[n.nm]),n.on&&(n.ap==a?Ts:As).push(n)})}bs();var Os="ad",Cs=/^live$/i,Ms={"application/x-mpegURL":"HLS","application/dash+xml":"DASH","application/vnd.ms-sstr+xm":"Smooth","video/x-flv":"Flash","video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"},Ds={m3u8:"HLS",mpd:"DASH",mp4:"MP4"};var t=[[/Opera\/([\d.]+)/,"Opera"],[/OPR\/([\d.]+)/,"Opera"],[/Edge\/([\d.]+)/,"Microsoft Edge"],[/Edg\/([\d.]+)/,"Microsoft Edge"],[/MSIE ([\d.]+)/,"Microsoft Internet Explorer"],[/Trident\/.*rv:([\d.]+)/,"Microsoft Internet Explorer"],[/Seamonkey\/([\d.]+)/,"Seamonkey"],[/Firefox\/([\d.]+)/,"Firefox"],[/Chromium\/([\d.]+)/,"Chromium"],[/Chrome\/([\d.]+)/,"Chrome"],[/Safari\/([\d.]+)/,"Safari"]],d=[[/Windows 10\.0|Windows NT 10\.0/,"Windows 10"],[/Windows 8\.1|Windows NT 6\.3/,"Windows 8.1"],[/Windows 8|Windows NT 6\.2/,"Windows 8"],[/Windows 7|Windows NT 6\.1/,"Windows 7"],[/Windows NT 6\.0/,"Windows Vista"],[/Windows NT 5\.2/,"Windows Server 2003"],[/Windows NT 5\.1|Windows XP/,"Windows XP"],[/Windows NT 5\.0|Windows 2000/,"Windows 2000"],[/Win 9x 4\.90|Windows ME/,"Windows ME"],[/Windows 98|Win98/,"Windows 98"],[/Windows 95|Win95|Windows_95/,"Windows 95"],[/Windows NT 4\.0|WinNT4\.0|WinNT|Windows NT/,"Windows NT 4.0"],[/Windows CE/,"Windows CE"],[/Win16/,"Windows 3.11"],[/Tizen/,"Tizen"],[/Android/,"Android"],[/OpenBSD/,"Open BSD"],[/SunOS/,"Sun OS"],[/Linux|X11/,"Linux"],[/iPhone|iPad|iPod/,"iOS"],[/Mac OS X/,"Mac OS X"],[/MacPPC|MacIntel|Mac_PowerPC|Macintosh/,"Mac OS"],[/QNX/,"QNX"],[/UNIX/,"UNIX"],[/BeOS/,"BeOS"],[/OS\/2/,"OS/2"],[/nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver/,"Search Bot"]],lt=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],Rs=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function Ns(n,e,t){e&&t.push(n)}function ks(n,e,t){t.push(n+"="+e)}function Ps(n,e,t){t.push(n+(o.cmcd_ntq?"="+e:'="'+e+'"'))}function ws(n,e,t){t.push(n+'="'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function Ls(n){return"false"!==n}function xs(n){return+n}function Us(n){return n.replace(/"/g,"")}function Vs(n){return n.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var Fs,Ws,he={bl:[0,[ks,xs],Da],br:[1,[ks,xs],Ra],bs:[2,[Ns,Ls],Ha],cid:[3,[ws,Vs],qa],d:[1,[ks,xs],Ga],dl:[0,[ks,xs],za],mtp:[0,[ks,xs],Ya],nor:[0,[ws,Vs],Ka],nrr:[0,[ws,Vs],Xa],ot:[1,[Ps,Us],$a],pr:[3,[ks,xs],Ja],rtp:[2,[ks,xs],Za],sf:[3,[Ps,Us],ni],sid:[3,[ws,Vs],ei],st:[3,[Ps,Us],ti],su:[0,[Ns,Ls],ri],tb:[1,[ks,xs],ai],v:[3,[ks,xs],i]},js={bs:!1,su:!1,v:1,pr:1},Bs="org.svalabs-";function Hs(n){for(var e,t,r=[[],[],[],[]],a=oe.keys(n),i=0;i<a.length;i++)e=a[i],(t=he[e])&&t[3]&&t[1][0](e,n[e],r[t[0]]);return r}function qs(n){var e,t=oe.keys(he);for(Fs=!1,Ws="header"===(Oe.options.cmcdMode||o.cmcd_mode),e=0;e<t.length;e++)he[t[e]][3]=!1;if(n&&We(n)&&0<n.length)if(Fs=!0,"na"==n[0])for(e=0;e<t.length;e++)he[t[e]][3]=!0;else n.forEach(function(n){var e=he[n];e?e[3]=!0:ce("Unknown CMCD key: "+n)})}function Gs(n,e,t){for(var r,a,i=oe.keys(n),o=0;o<i.length;o++)delete n[i[o]];for(o=0;o<e.length;o++)0!=((r=e[o]).ap&t)&&null!=(a=null==(a=(a=r.st||r.se)&&re(a,r.nm))?r.df:a)&&(n[r.nm]=a)}function zs(n,e,t,r){for(var a,i,o,s,u=0;u<r.length;u++)o=(i=(a=r[u])[0]).nm,0!=(i.ap&t)?(s=e[o])&&s(a)||(n[o]=a[1],(s=i.st||i.on&&i.se)&&m(s,o,a[1])):ce("Setting inapplicable data",i)}function Ys(n,e){return n[e.nm]}function Ks(n,e,t,r,a){var i,o=[];return t&&o.push([t,i=e(t)+r]),a&&o.push([a,e(a)+r]),n(o),i}function ge(n,e,t){if(e)for(var r,a,i=0;i<e.length;i++)if(a=n[r=e[i]])n=a;else{if(t)return null;n=n[r]={}}return n}function Xs(n,e){n=ge(n,e.p||Yt,!0);return n&&n[e.nm]}function $s(n,e,t,r){for(var a,i,o,s=0;s<e.length;s++)0!=((a=e[s]).ap&t)&&null!=(o=ze(n[i=a.nm],a.dv))&&(ge(r,a.p)[i]=o)}he[Bs+"rid"]=[0,[ws,Vs],Qa],he[Bs+"tid"]=[0,[ws,Vs]],he[Bs+"cmi"]=[0,[ks,xs]],he[Bs+"pmi"]=[0,[ks,xs]],qs();var Js,Qs,Zs,nu,eu,tu,ru,au,iu,ou,su,uu,cu,lu,du,fu,pu,_,mu={},_u={},vu=re(p,hn)||[],hu=[],gu=1,Eu=2,yu=4,Su=yu,Iu=Eu|gu|Su,Au=0,Tu=1,bu=[];function Ou(n){return null!=n?6e4*n:12e5}function Cu(n,e){if(!Iu&&0<vu.length){for(var t,r=de(),a=0,i=0;i<vu.length;i++)vu[i].p&&(t=!0,$s(mu,As,nt,vu[i].m)),a=se.max(a,r-vu[i].t);uu&&xu(vu,0,Bn(Nn,r,a,t),n),e=!0}e&&(vu=[],xe(p,hn)),ru=null}function Mu(n){if(!(Iu&=~n)){n=bu[Au];if(null==ru&&Cu(),ue(n))try{n()}catch(n){le(n,"onConfigReady")}}}function Du(n,e,t,r,a,i,o,s,u){if(4==n.readyState){var c=de(),l=n.status;if(e+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){i=i[a++];if(null!=i)return w(function(){o.retry(de()),t(r,a,o)},1e3*i),void ce(e+"retry #"+a+" after "+i+"s")}o.log(c,l),!(l<200||299<l||s&&!s(n,c))||u&&u(e,l)||ce(e+"failed")}}function Ru(e,t,r){iu=ee("POST",Zn(ie.sm),{"Content-Type":"application/json","cache-control":"no-cache"},e,function(n){4==n.readyState&&(iu=null,Du(n,"Sampling API",Ru,e,t,ie.rd,r,function(n){n=me(n.responseText);if(ou=n&&n[ie.ss+"_sampling"])return uu=ou.in_sample,su=!1,Mu(Eu),m(p,gn,ou),!0},function(n){return uu=su=!0,Mu(Eu),ce(n+"forced in"),!0}))})}function Nu(){var n;!au||Iu&gu||(ie.sw&&ie.sm?(ie.sp,(n=Es[ie.sd])&&(au.sampling_definition_params={namespace:ie.ss,key_name:n.nm,key_value:Fu(n)}),(n=Es[ie.sc])&&(au.sampling_criteria_params={sampling:{key_name:n.nm,key_value:Fu(n)}}),au.sampling_override=o.sampling_override||"NONE",au.sampling_request_id=fe(),Ru(pe(au),0,Bn(Dn,de()))):(uu=!0,Mu(Eu)),au=null)}function ku(r,e,t){var n,a;ie.ci?(ie.tt&&(ie.mf=o.mock_config||ie.mf),Ne("Get config from "+(n=ie.mf||Le(Zn("https://"+ie.cf+"platform.datazoom.io/beacon/v2/config"),function(n){n.append(Z,ie.ci)}))),a=de(),ee("GET",n,null,null,function(n){Du(n,"Config API",ku,r,e,ie.rd,t,function(n,e){var t=me(n.responseText);if(t)return r(t,n.getResponseHeader("dz-extra"),a,e),!0},function(n,e){e<400||429==e||499<e||(ie.om=!1),r()})})):(ce("Missing configuration ID"),ie.om=!1,r())}function Pu(){ku(function(n,e,t,r){ie.st=null,n&&function r(a,i){_e(a)?oe.keys(a).forEach(function(n){var e=a[n],t=i[n];_e(t)?r(e,t):null==t?Re("Unknown config key: "+n):null==e?Re("Undefined config key: "+n):t&&(ie[t]=e)}):ce("Invalid config object",a)}(n,$),m(p,En,ie.st),ie.st=Ou(ie.st),m(p,yn,ie.od),is(ie.ev,n),ls(ie.fd),bs(ie.md),qs(ie.cd),ds={ad_blocker:1,device_id:1,mobile_connection:1,page_url:1,referrer_url:1},ie.og||(Fn=[]),ie.os||(wn=null),f(ie.cm,"sort"),f(ie.am,"sort"),f(ie.cq,"sort"),f(ie.aq,"sort"),Vu([[Fa,ie.cc],[Va,ie.cl]]),hu.forEach(function(n){var e,t,r,a,i,o=!1,s=Xs(n.m,Ba),u=rs[s];u?o=u.on:s.startsWith(z)?o=ps:s.startsWith(Y)&&(o=_s),o&&(e=n.m,t={},As.concat(Ts).forEach(function(n){null!=(r=Xs(e,n))&&(ge(t,n.p)[n.nm]=r)}),a=ge(e,Yt),i=ge(t,Yt),us.concat(cs).forEach(function(n){null!=(r=Xs(a,n))&&(i[n.nm]=r)}),fs&&(r=ge(e,La,!0))&&oe.assign(ge(t,La),r),ms&&(r=ge(e,xa,!0))&&oe.assign(ge(t,xa),r),wu(t,i),n.m=t,vu.push(n))}),m(p,hn,vu),hu=[];var a,n=Bi.nm,n=(Bi.on?(a=re(v,n))||(a=fe(),m(v,n,a)):xe(v,n),Vu([[Bi,a]]),e);try{var i,o,s,u,c,l=n&&me(atob(n));l?(i=l.latitude,o=l.longitude,s=l.timezone_offset,c=(u=l.time_sync)&&+u,Vu([[yi,l.client_ip],[yo,l.mobile_connection],[ho,l.asn],[fo,l.region_code],[lo,l.region],[oo,l.country_code],[io,l.country],[co,l.postal_code],[ao,l.city],[so,i?+i:null],[uo,o?+o:null],[po,l.continent],[mo,l.continent_code],[_o,l.timezone_name],[vo,null!=s?s/3600:null]]),c&&Vu([[bo,se.round(c-(t+r)/2)]])):ce("Missing or invalid dz-extra header")}catch(n){le(n,"processDzExtra")}ie.ab&&Vo.on&&null==Fu(Vo)?ee("GET",Zn(ie.ab),null,null,function(n){4==n.readyState&&(Vu([[Vo,!n.status]]),Mu(yu))}):Mu(yu),Mu(gu),Nu(),w(function(){Mu(Su),Nu()},ie.mh),oe.keys(ye).forEach(function(n){n=ye[n].configCallback;n&&n(ie)})},0,Bn(Rn,de()))}function wu(n,e){var t=""+(eu+1e7);ge(n,Wa.p)[Wa.nm]=Zs+"_"+t.substr(-7,2)+"."+t.substr(-5),m(p,mn,++eu),fr.on&&(e[fr.nm]=eu)}function Lu(n,e,t,r,a,i,o){var s,u,c,l,d,o=o?Je:Ze,f=ge(n,Yt);for($s(mu,As,o,n),$s(mu,us,o,f),(r=r||[]).push([Ba,e],[ja,t]),s=0;s<r.length;s++)u=(c=r[s])[0],c[2]||0!=(u.ap&Qe)?u.on&&null!=(c=ze(c[1],u.dv))&&(ge(n,u.p)[u.nm]=c):ce("Invalid event data",u);fs&&(o=Gn(Js,a),e=n,a=pe(o),d=a?a.length:0,(l=ie.ml)&&l<d?ce("Custom metadata size: "+d+" > "+l):2<d&&(o=me(a))&&oe.assign(ge(e,La),o)),ms&&(l=Yn(Qs,i),d=n,l)&&oe.assign(ge(d,xa),l),Ce&&Pe("evInfo",n),!(cn<on)&&ie.le&&ie.le(n)||(a={p:Iu,m:n,t:t},Iu&gu?hu.push(a):(wu(n,f),vu.push(a),m(p,hn,vu),null==ru&&(ru=w(Cu,ie.bd))))}function xu(t,e,r,n){var a,i=t.map(function(n){return n.m}),o=(i.forEach(function(n,e){var t,r=ge(n,wa);r.versions=bl,Ao.on&&(ge(n,Ao.p)[Ao.nm]=de()),ou&&(r[ie.ss+"_sampling"]=ou),null!=su&&(r[ie.ss+"_forced_sampling_in"]=su),e||(a=r[Sn],wn&&(oe.keys(wn).forEach(qn),wn=null),Fn.length&&(a=a?a.concat(Fn):Fn,Fn=[],a.length>ie.mc&&(a.sort(function(n,e){return n.batch()>e.batch()?1:-1}),t=a[a.length-ie.mc-1].batch(),a=a.filter(function(n){return n.batch()>t})),r[Sn]=a))}),Zn(ie.mb)),i=pe(i);n&&D.sendBeacon&&D.sendBeacon(o,i)||ee("POST",o,{"Content-Type":"application/json"},i,function(n){Du(n,"Message post",xu,t,e,ie.rd,r,null,function(n,e){t.forEach(function(n){Hn(n,e)}),a&&(Fn=a.concat(Fn))})})}function Uu(){for(var n,e,t=mu,r=_u,a=ys,i=Je,o=[],s=0;s<a.length;s++)0!=((n=a[s]).ap&i)&&null!=(e=n.df)&&o.push([n,e]);zs(t,r,i,o)}function Vu(n){zs(mu,_u,Je,n)}function Fu(n){return mu[n.nm]}function Wu(n){if(vl&&(vl=!1,ju(gt,n)),!Zs||!nu||(e=n,t=ie.st,e<tu&&ce("Activity time reversal: "+tu+" -> "+e),0<=t&&(e<tu||tu+t<=e))){Cu(!(hu=[]),!0);t=n,e=bu[Tu];if(Zs=fe(),nu=tu=t,eu=0,Vu([[vi,Zs],[hi,nu]]),Uu(),m(p,mn,eu),m(p,_n,tu),xe(p,gn),iu&&iu.abort(),iu=ou=null,uu=su=null,Iu|=Eu,au={},Nu(),ue(e))try{e()}catch(n){le(n,"onAppSessionStart")}}else m(p,_n,tu=n);var e,t;Vu([[cr,n-nu],[Wi,ae.outerWidth],[Vi,ae.outerHeight],[Mo,Te.title],[Do,M.href],[Ro,Te.referrer],[No,M.hostname],[ji,D.cookieEnabled]])}function Ee(n,e,t){Ks(Vu,Fu,n,e,t)}function ju(n,e,t,r,a){0!=(n.ap&Je)?(Wu(e),n.on&&Lu({},n.nm,e,t,r,a,!0)):ce("Event inapplicable: "+n.nm+", ss",n)}function Bu(e,t){var r,a;e&&vs.forEach(function(n){r=q+n.nm,null!=(a=e[r])&&(t([[n,a]]),delete e[r])})}if(Gs(mu,ys,Je),Zs=Fu(vi),nu=Fu(hi),eu=re(p,mn)||0,tu=re(p,_n)||0,ou=re(p,gn),Js=re(p,vn),Qs=re(p,"__ss_vendor_md"),ie.st=Ou(re(p,En)),ie.od=re(p,yn),ou?(uu=ou.in_sample,su=!1,Mu(Eu)):au={},t.some(function(n){if(_=n[0].exec(R))return cu=n[1],lu=_[1],!0})||(_=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(R))&&(cu=_[1],lu=_[2]),(_=/Version\/([\d.]+)/.exec(R))&&(lu=_[1]),d.some(function(n){if(n[0].test(R))return du=n[1],!0})){switch(_=null,du){case"Mac OS X":_=/Mac OS X (10[\d._]+)/.exec(R);break;case"Android":_=/Android ([\d._]+)/.exec(R);break;case"iOS":_=/OS (\d+_\d+(_\d+)?)/.exec(R);break;case"Tizen":_=/Tizen[ \/]([\d._]+)/.exec(R);break;default:(_=/Windows (.*)/.exec(du))&&(du="Windows")}_&&(fu=_[1].replace(/_/g,"."))}else du=fu="-";lt.some(function(n){if(n[0].test(R))return pu=n[1],!0}),Vu([[Na,R],[Ui,cu],[Fi,lu],[Yi,du],[u,fu],[Gi,pu],[Oo,ie.cn],[Co,ie.sv],[ka,3]]);var Hu="adapterID",qu="adapterOptions",Gu="baseContext",zu="contextType",Yu="contextName",Ku="metadata",Xu=0,$u=2,Ju=["base","player","app"],ye={},Qu=[];function Zu(n){if(!n.destroyed){n.setTimer(null);try{var e=n.destroyCallback;e&&e()}catch(n){le(n,"onDestroy")}delete ye[n.id],n.removeListeners(),n.destroyed=!0}}function nc(n,e,t,r,a,i,o){(a=a||[]).push([So,n.id],[Io,n.name]),Lu(e,t,r,a,Gn(n.customMetadata,i),Yn(n.vendorMetadata,o))}function ec(n,e){return!(null!=e&&!_e(e)||(n.customMetadata=me(pe(e)),0))}function tc(n){var e=we(mu);return e._c_=Gn(Js,n.customMetadata),e._v_=Yn(Qs,n.vendorMetadata),e}function rc(){var t,c=[],r={},i={id:fe(),type:Xu,destroyed:!1,destroyCallback:null,configCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(n,e,t){if(i.destroyed)return ce(n+" after destroyed"+(e?": "+e:""),t),!0},onDestroy:function(n){i.destroyCallback=n},onConfig:function(n){i.configCallback=n},setTimer:function(n){var e;t&&(0<=(e=Qu.indexOf(t))&&Qu.splice(e,1),t=null),n&&(Qu.push(n),t=n)},fireEvent:function(n,e,t,r,a){i.shallBlock("fireEvent",n.nm,n)||(Wu(e),n.on&&nc(i,{},n.nm,e,t,r,a))},fireVendorEvent:function(n,e,t){i.fireEvent({ap:A,nm:as(n,e),on:_s},de(),null,null,zn(n,t))},addListener:function(n,e,t,r,a){if(n&&e){var i=n[r=r||"addEventListener"];if(ue(i)){u=Kn(n,t,s="listener: "+(s=e));var o=cn<sn?u:function(){Pn(s,arguments),u.apply(null,arguments)};try{"-"===e?i.call(n,o):i.call(n,e,o),c.push([n,e,t,o,a||"removeEventListener"])}catch(n){le(n,"addListener: "+e)}}else ce("Invalid add-listener method: "+r,n)}var s,u},removeListeners:function(a,i,o){c=c.filter(function(n){var e=n[0],t=n[1];if(a&&a!=e||i&&i!=t||o&&o!=n[2])return!0;var r=e&&e[n[4]];if(ue(r))try{"-"===t?r.call(e,n[3]):r.call(e,t,n[3])}catch(n){}else ce("Invalid remove-listener method: "+n[4],e)})},stash:function(n,e,t){r[n]=[e,t]},unstash:function(n){n.forEach(function(e){var n=r[e];if(n){delete r[e];try{n[0].apply(null,n[1])}catch(n){le(n,"unstash: "+e)}}})}},n={getError:function(){return null},contextID:function(){return i.id},contextName:function(){return i.name},contextType:function(){return Ju[i.type]},isDestroyed:function(){return i.destroyed},destroy:function(){Zu(i)},setMetadata:function(n){return ec(i,n)},getMetadata:function(){return me(pe(i.customMetadata))},generateEvent:function(n,e){i.fireEvent({ap:A,nm:z+n,on:ps},de(),null,e)},dumpDzData:function(n){var e=me(pe(tc(i)));return null==n?e:e[n]}};return i.basePublicMethods=n,i.publicContext=we(n),ye[i.id]=i}function ac(n,e){var t,r;return null==n?r=rc():(r=(t=_e(n)&&ue(n.contextID)&&n.contextID())&&Ve(t)&&ye[t])&&r.type===Xu&&r.publicContext===n||(ce("Invalid contextOptions."+Gu,n),r=rc()),null!=e&&(r.name=e),r}Ol("player_ctx_core","2.4.0");function ic(n){return ie.sn&&ie.sn[n]||""+n}var oc,sc,uc,cc,Se=[],lc="idle",dc=(Se[2]=Se[9]="buffering",Se[3]=Se[10]="playing",Se[4]=Se[11]="paused",Se[5]=Se[12]="seeking",Se[6]="ended",Se[0]=Se[7]=Se[8]=lc,"impression"),fc="firstQuartile",pc="midPoint",mc="thirdQuartile",_c="complete",vc="bufferStart",hc="bufferFinish",gc="clickThrough",Ec="volumeChange",yc="fullscreen",Sc="exitFullscreen",Ic="finish",Ac=function(x,U,a){var r,i,o,V,F,W,j,B,_={},H={},g={},q={},G={},z={},Y=[],K=[],X=[],$=[],J=[],Q=[],Z=[],v=[],nn=fe(),h=ac(a[Gu],a[Yu]),s=pl(a[Hu],1),u=a[qu];function en(){var e,n;o&&(e=de(),n=oe.keys(o).map(function(n){return o[n]}),o=null,n.forEach(function(n){L(n.ev,e,n.dl)}))}function E(n,e,t){(o=o||{})[t||n.nm]={ev:n,dl:e}}function y(n){zs(_,H,1,n)}function S(n){zs(g,q,2,n)}function I(n,e){return Ys(e?g:_,n)}function A(n){return g[n.nm]}function tn(){var n=I(Ri),e=I(Ni);Gs(_,ys,1),y([[Zi,"content"],[Ri,n],[Ni,e]])}function rn(){Gs(g,ys,2),S([[Zi,"ad"]])}function n(n,e){H[n.nm]=e}function an(n,e){q[n.nm]=e}function on(n,e){z[n.nm]=e}function e(n,e,t,r){for(var a=[],i=0;i<e.length;i++)a[e[i]]=!0;Z[n]={tr:a,en:t,ex:r}}u=_e(u)?we(u):{},s&&(W=s[2],j=s[3],oe.assign(u,s[4]||{}),V=u[ll],F=u[dl],(u[cl]||[]).forEach(function(n){G[n[0].nm]=n[1]})),x&&oe.keys(ye).some(function(n){n=ye[n];if(1==n.type&&n.player===x)return n.publicContext.destroy(),!0});var sn,c,un,l,cn,d,ln,dn,fn,pn,mn,_n,T,vn,hn,b,gn,O,C,En,yn,Sn,In,An,M,D,Tn,bn,f,p,R,N,On,k,P,Cn,m=0,Mn=lc,Dn=1,Rn=de(),Nn=ke(ce,"Abnormal duration increment: ",1,1e3,3e5);function kn(){return 2==Dn}function Pn(){return!!O&&O.type===Os}function wn(n){T=n+ie.hi,Ne("Heartbeats started")}function Ln(){T&&Ne("Heartbeats stopped"),T=0}function w(n,e,t){return Ks(y,I,n,e,t)}function xn(n){var e,t,r,a=n-Rn;a<0||a>ie.ed?Nn.log(a):0<a&&(e=Pn(),4==m?e?t=!0:w(Dr,a,Cr):11==m?t=!0:2==m?e?r=!0:(c&&(w(oa,a,ra),Ee(sa,a)),w(tr,a,Zt),Ee(rr,a)):9==m&&(r=!0),t&&w(Mr,a,Cr),r)&&(c&&(w(aa,a,ra),Ee(ia,a)),w(nr,a,Zt),Ee(er,a)),Rn=n}function Un(n,e){null!=n&&(v[n]=e)}function L(e,t,r,n,a,i){if(!h.shallBlock("fireEvent",e.nm,e))if(i=i||(Pn()?2:Dn),0!=(e.ap&i)){if(Wu(t),(r=r||[]).push([To,h.id]),Cn||(Cn=!0,(d=X.some(function(n){try{return n(t,r,e,i)}catch(n){le(n,"extEventHandler")}}))||(d=(f=z&&z[e.nm])&&f(t,r,e,i)),Cn=!1),!d){var o=2==i;xn(t);for(var s,u,c,l,d,f,p=[[Hr,Mn]],m=0;m<ss.length;m++)u=v[(s=ss[m]).ts],p.push([s,u?t-u:0]);switch(y(p),null==I(Qt)&&be&&(f=be.downlink)&&y([[Qt,1e3*f]]),e){case Rt:case xt:case Ut:o||(c=I(eo)*I(no),l=I(Jr)*I(Kr),0<c&&0<l&&(ln=c<=l));break;case Nt:o&&Ee(mr,1);break;case jt:w(o?Zr:ea,1,Qr),Ee(o?na:ta,1);break;case it:w(Kt,1),Ee(Xt,1);break;case ct:w($t,1),Ee(Jt,1)}Un(e.rt,t),Un(o?e.rta:e.rtc,t),!e.on||e.mm&&!e.mm[I(Zi,o)]||(f=ge(d={},Yt),o?($s(g,As,2,d),$s(g,us,2,f),$s(_,As,Ze,d),$s(_,us,Ze,f)):($s(_,As,1,d),$s(_,us,1,f),$s(g,As,Ze,d),$s(g,us,Ze,f)),nc(h,d,e.nm,t,r,n,a))}}else ce("Event inapplicable: "+e.nm+", "+i,e)}function Vn(n){var e=n[1];e&&e!=I(n[0])&&E(vt)}function Fn(n,e){var t=3==e?M:D;if(n!=t){var r,a,i,o,s,u,c,l,d=de();if(T||wn(d),vn=!0,3==e){if(s=V||ie.mp,M=n,i=d-Tn,Tn=d,r=I($i),b){var f,p=O;if(null==En&&0<r&&(f=b.locate(r),En=(f.type?f.start:r)-f._e),r=En,C&&t>=C.start&&t<=C.end||(C=b.locate(t)),(O=O&&n>=O.start&&n<=O.end?O:b.locate(n))&&(u=O.type,c=O.start,l=O._d),O!=p&&(f=P<=n&&n<P+s,u===Os?k!==c&&l&&((null==k?Hn:(f&&L(Nt,d),Yn))(d),k=c,P=O.end,Gn(),S(l.concat([[Bo,P-k]])),zn(d,O._a),L(ot,d,null,null,null,2),D=0,bn=d):null!=k&&(f&&L(Nt,d,null,null,null,2),Yn(),qn(d))),u===Os)return void(l&&(Fn(p=n-c,10),g[ve.nm]=p))}_n||(a=yn=!yn&&ie.cm?ie.cm.slice():yn)}else s=F||ie.mp,D=n,i=d-bn,bn=d,r=A(Bo),a=Sn=!Sn&&ie.am?ie.am.slice():Sn;if(null!=t&&null!=n&&0<=t&&t<n&&n<=t+s){if(0<r&&a)for(var m,_,v=0,h=3==e&&C&&O?(_=((C.type?C.start:t)-C._e)/r,((u?c:n)-O._e)/r):(_=t/r,n/r);v<a.length&&!(h<(m=a[v]/100));)_<m?(a.splice(v,1),E(Ot,[[li,100*m]],Ot.nm+m)):v++;if(3==e){if(R=n,i<0||i>ie.ed)Nn.log(i);else if(0<i)if(u)w("promo"===u?jr:null,i,Rr);else if(r=w(xr,i,Rr)/1e3,Ee(Ur,i),!1===I(Di)&&Ee(Vr,i),I(qr)&&Ee(Wr,i),ln&&Ee(Fr,i),ie.cq)for(In=In||ie.cq.slice();null!=(o=In[0])&&o<=r;)In.shift(),E(wt,[[di,o]],wt.nm+o)}else if(N=n,i<0||i>ie.ed)Nn.log(i);else if(0<i&&(w(Nr,i,Rr),Ee(kr,i),!1===I(Di)&&(Ee(Pr,i),fn||Ee(vr,1),fn=!0),I(qr)&&(Ee(wr,i),pn||Ee(gr,1),pn=!0),r=Ks(S,A,Lr,i)/1e3,ie.aq))for(An=An||ie.aq.slice();null!=(o=An[0])&&o<=r;)An.shift(),E(wt,[[di,o]],wt.nm+o),mn||Ee(hr,1),mn=!0}}}function Wn(n,e){null==f&&null!=n&&null!=R&&n!=R&&(f=R,Ee(Or,1),L(Ft,e||de()))}function jn(n,e){null==p&&null!=n&&null!=N&&n!=N&&(p=N,L(Ft,e||de()))}function Bn(n){sn&&L(Ht,n),sn=un=!1,Dn=1,f=R=null,Ln()}function Hn(n){var e,t,r="pre";I(xr)>1e3*ie.ep&&(e=I(ve),t=I($i),r=null!=e&&null!=t&&e+ie.ep>t?"post":"mid"),l=d=dn=fn=pn=mn=!1,rn(),y([[Fo,fe()],[zo,r],[pr,0]]),L(rt,n)}function qn(n){On+=n-v[14],L(at,n,null,null,null,2),y([[Fo,null],[zo,null],[pr,null]])}function Gn(){dn||(dn=!0,S([[Yo,i||fe()],[Lr,0]]),i=null)}function zn(n,e){var t=bu[4];if(l=!0,Sn=An=null,Ee(_r,1),w(pr,1),ue(t))try{t(r,e)}catch(n){le(n,"onAdStart")}L(Rt,n)}function Yn(){if(l){var n=bu[5];if(ue(n))try{n(r)}catch(n){le(n,"onAdEnd")}}l=d=dn=fn=pn=mn=!1,p=N=k=P=null,rn()}function Kn(n,e,t,r){var a,i,o,s;n!=m&&(o=Z[m],a=ic(m)+" => "+ic(n),i=Se[n]||Mn,h.shallBlock("setState",a)||(o.tr[n]?(Ne("state: "+a+" ("+i+")"),(o=o.ex)&&o(e,n,t,r),xn(e),s=m,Mn=i,(o=Z[m=n].en)&&o(e,s,t,r),vn=!0):ce("Invalid transition: "+a)))}function Xn(n){return n!=m&&!!Z[m].tr[n]}function $n(){return 0==m||7==m||8==m}function t(o,s,u){return function(n){var e,t,r,a,i;e=o,t=s,r=u,i=(n=n)[0],n=n[1]=ze(n[1],i.dv),i=I(i,r),null!=r&&r!=kn()||null==i||null==n||(t?!n!=!i&&E(n?e:t):n!=i&&(e==xt&&(a=i<n?[[ii,"up"]]:n<i?[[ii,"down"]]:null,r||Ee(yr,1)),E(e,a)))}}function Jn(n){n[1]=ze(n[1],n[0].dv)}e(0,[1,8]),e(1,[2,7,8,16],function(n){var e=bu[2];if(Bn(n),sn=!(cn=!1),ln=null,_n=Cs.test(I(Li)),On=0,y([[Si,nn],[or,n]]),nn=fe(),Ee(br,1),B&&B(),ue(e))try{e(r)}catch(n){le(n,"onContentSessionStart")}b=gn,gn=O=C=En=null,k=P=null,hn=0,L(bt,n)}),e(2,[3,4,5,7,8,16],function(n,e){(c=3==e)&&L(jt,n),L(ft,n)},function(n){L(pt,n),c&&L(Bt,n),c=!1,un||L(At,n)}),e(3,[2,4,5,6,7,8,16],function(n){var e,t;un||(t=(e=n-v[0])-On,un=!0,yn=In=null,Ee(Er,1),y([[Oa,t],[Ca,e]]),L(Rt,n,[[mi,t],[_i,e]])),M=R=I(ve),Tn=n,null!=f&&(L(Wt,n,[[fi,1e3*f],[pi,null!=M?1e3*M:null]]),f=null),L(Pt,n),cn&&(cn=!1,L(Vt,n)),T||wn(n)},function(){M=null}),e(4,[2,3,5,6,7,8,16],function(n){cn||(cn=!0,Ee(Tr,1),L(Mt,n))}),e(5,[2,3,4,6,7,8,16],function(n){Wn(I(ve),n)}),e(6,[2,3,4,5,7,8,16],function(n){L(Nt,n)}),e(7,[],function(n){Bn(n)}),e(8,[],function(n,e,t){L(Et,n,t),Bn(n)}),e(9,[10,11,12,14,15,7],function(n,e){Gn(),(c=10==e)&&L(jt,n),L(ft,n)},function(n){L(pt,n),c&&L(Bt,n),c=!1}),e(10,[9,11,12,13,14,15,7],function(n,e,t,r){Gn(),l||zn(n,r),D=N=A(ve),bn=n,null!=p&&(L(Wt,n,[[fi,1e3*p],[pi,null!=D?1e3*D:null]]),p=null),L(Pt,n),d&&(d=!1,L(Vt,n)),T||wn(n)},function(){D=null}),e(11,[9,10,12,14,15,7],function(n){d||(d=!0,L(Mt,n))}),e(12,[9,10,11,13,14,15,7],function(n){jn(A(ve),n)}),e(13,[9,10,17,7],function(n){L(Nt,n),Yn()}),e(14,[9,10,17,7],function(n){L(ct,n),Yn()}),e(15,[9,10,17,7],function(n,e,t){L(Et,n,t),Yn()}),e(16,[9,10,15,17,7],function(n){Dn=2,Hn(n)}),e(17,[2,3,4,5,6,7],function(n){qn(n),Dn=1});var Qn,Zn=$r,ne=$r;function ee(n){var r=[],a=0,i=0;return r.locate=function(e){return r.find(function(n){return e>=n.start&&e<=n.end})},n.forEach(function(n){var e=n.start,t=n.end;Fe(e)&&Fe(t)&&(e=e<a?a:e)<t?(a<e&&r.push({start:a,end:e,_e:i}),r.push(oe.assign({},n,{start:e,_e:i})),n.type&&(i+=t-e),a=t):ce("Skipped time span",n)}),r.push({start:a,end:Ie.MAX_VALUE,_e:i}),r}function te(n,e){n=n&&n({type:Me,ack:e,appSID:Fu(vi),ctSID:I(Si)});n&&n["catch"](function(n){Re("Cast transfer message rejected",n)})}function re(n){var e,t=h.publicContext,r=null;h.player=n,oe.assign(t,h.basePublicMethods,{getError:function(){return r},getPlayer:function(){return n},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return I(Si)},nextContentSessionID:function(){return nn},playerState:function(){return Mn},destroy:function(){if(!h.destroyed){Xn(7)&&Kn(7,de());for(var n=0;n<K.length;n++)try{K[n]()}catch(n){le(n,"extOnDestroy")}Zu(h)}},startContentSession:function(){return!!$n()&&(h.reset(),h.setState(1),h.setState(2),!0)},setMetadata:function(n){return!!ec(h,n)&&(Bu(h.customMetadata,h.setData),!0)},annotateContentSession:function(n){return null==n?!(gn=null):!!We(n)&&(gn=ee(n.slice().sort(function(n,e){return n.start>e.start?1:-1})),!0)},dumpDzData:function(n){var e=oe.assign(tc(h),_,g),t=Zi.nm;return e[t]=(kn()||Pn()?g:_)[t],e=me(pe(e)),null==n?e:e[n]}}),bc.forEach(function(n){try{n(t,h,Y,K,X,$,J,Q)}catch(n){le(n,"extInit")}});try{r=s?W?W(n,h,u):null:"Missing adapter"}catch(n){r=le(n,s[0]+" initContext")}return r?(De(r),t.destroy()):(null!=(e=a[Ku])&&t.setMetadata(e),e=de(),L(ht,e),L(kt,e),h.setTimer(function(){for(var n=0;n<Y.length;n++)try{Y[n]()}catch(n){le(n,"extOnTimer")}if(Qn)try{Qn()}catch(n){le(n,"onTimer")}var e=de();xn(e),T&&T<=e&&(vn?(L(It,e,[[ci,++hn]]),T=e+ie.hi,vn=!1):Ln())})),t}return 1&(G[Zn.nm]||0)&&(Zn=Kr),2&(G[ne.nm]||0)&&(ne=Kr),n($i,Jn),an(Bo,Jn),n(wi,function(n){var e=n[1];n[1]=e&&Ms[e]||e}),n(Li,function(n){_n=Cs.test(n[1])}),n(ve,function(n){5==m||2==m?Wn(n[1]):3==m&&Fn(n[1],3);for(var e=0;e<$.length;e++)try{$[e](n)}catch(n){le(n,"extPlayheadHandler")}}),an(ve,function(n){12==m?jn(n[1]):10==m&&Fn(n[1],10)}),n(Zn,t(xt,null,!1)),an(ne,t(xt,null,!0)),n(Di,t(Ct,Gt)),n(Ci,t(St,yt)),n(Ai,t(mt,_t)),n(eo,t(Ut)),n(no,t(Ut)),n(Ma,t(zt)),n(sr,t(dt,null,!1)),an(sr,t(dt,null,!0)),n(ur,t(qt)),n(xi,t(qt)),n(gi,Vn),n(Ei,Vn),n(Gr,function(n){var e,t,r,a,i=n[1];i=i&&ue(i.getBoundingClientRect)?"visible"==Te.visibilityState?(e=(a=i.getBoundingClientRect()).left,t=a.right,r=a.top,a=a.bottom,se.min(100,se.max(0,se.round(100*(se.min(t,ae.innerWidth)-se.max(e,0))*(se.min(a,ae.innerHeight)-se.max(r,0))/((t-e)*(a-r)))))):0:ze(i,Gr.dv),null!=(n[1]=i)&&y([[qr,50<=i]])}),n(ir,function(n){var e=n[1];if(e&&ue(e.end)){var t,r,a=I(ve);if(null!=a)for(t=0;t<e.length;t++)if(r=e.end(t),a>=e.start(t)&&a<=r)return void(n[1]=1e3*(r-a));n[1]=0}}),on(At,function(n,e,t,r){2==r&&(i=fe(),e.push([Yo,i,!0]))}),on(ot,function(n,e){i&&e.push([Yo,i,!0])}),on(Et,function(n,e,t,r){Ee(1==r?Ar:Ir,1,Sr)}),tn(),rn(),oe.assign(h,{type:1,fireEvent:L,fire:function(n,e,t){L(n,de(),e,null,null,t)},setState:function(n,e,t){Kn(n,de(),e,t)},canSetState:Xn,reset:function(){Xn(7)&&Kn(7,de()),tn(),rn(),v=[],m=0,Mn=lc},setData:function(n){y(n),en()},setAdData:function(n){S(n),en()},getData:I,getAdData:A,getState:function(){return m},isIdle:$n,isAdIdle:function(){return 13==m||14==m||15==m},isInAds:kn,isInSsaiAds:Pn,onTimer:function(n){Qn=n},onCtSessionStart:function(n){B=n},matchCtSource:function(n){return I(to)==n},reqCtSID:function(){return $n()?nn:I(Si)},reqTracer:function(n,i){n=Le(n,function(n){n["delete"]("CMCD")});var e,t=h.reqCtSID(),r=fe(),a=((i=oe.assign({},i||{},{sid:t}))[Bs+"rid"]=r,1==i.v&&delete i.v,1==i.pr&&delete i.pr,null==i.cid&&null!=(e=I(Ki))&&(i.cid=e),{url:n,sid:t,rid:r,cmcd:i,start:de()});return{reqID:r,urlBase:n,url:function(){var e=Hs(i);return Le(n,function(n){n.append("CMCD",e[0].concat(e[1],e[2],e[3]).sort().join())})},headers:function(){for(var n={},e=Hs(i),t=0;t<4;t++)e[t].length&&(n[Rs[t]]=e[t].sort().join());return n},enabledData:function(){for(var n,e,t=oe.keys(i),r={},a=0;a<t.length;a++)n=t[a],(e=he[n])&&e[3]&&(r[n]=i[n]);return r},status:function(n){a.status=n},start:function(){a.start=de()},resp:function(n){a.resp=null!=n?a.start+n:de(),Ce&&Pe("reqInfo",a)},end:function(n){var e=de(),t=(a.end=null!=n?a.start+n:e,oe.assign({},js,i)),r=[];oe.keys(t).forEach(function(n){var e=he[n];e&&e[2]&&r.push([e[2],t[n]])}),L(Tt,e,r,null,null,1),Ce&&Pe("reqInfo",a)}}},updateTimedMetadata:function(n,e,t,r,a){for(var i=0;i<J.length;i++)try{J[i](n,e,t,r,a)}catch(n){le(n,"extTimedMetadataHandler")}},addCtTimeSpans:function(n){var u=b?b.filter(function(n){return n.type}):[];n.forEach(function(n){for(var e,t,r,a,i=n.start,o=n.end,s=0;s<u.length&&(r=(t=u[s]).start,a=t.end,!(o<=r));s++)i<a&&(r<i?(u.splice(s+1,0,oe.assign({},t,{start:i})),t.end=i):(e||(u.splice(s++,0,n),e=!0),o<a?t.start=o:u.splice(s--,1)));e||u.splice(s,0,n)}),b=ee(u),O=C=En=null},initCastTransfer:function(n){$n()||te(n,!1)},handleCastMessage:function(n,e){!n||n.type!==Me||$n()||(h.setData([[gi,n.appSID],[Ei,n.ctSID]]),n.ack)||te(e,!0)},sa:{}}),s&&y([[Ri,s[1]]]),Iu&gu&&qs((Zn=Oe.options).cmcdEnable?Zn.cmcdKeys||["sid","org.svalabs-rid"]:null),U?j?new Ae(function(e,t){try{j(U,h,u).then(function(n){r=re(n),e(r)},function(n){De(n),t(n)})}catch(n){t(le(n,s[0]+" createTargetObject"))}}):Ae.reject("Not implemented"):r=re(x)},Tc=function(n,i){var o=new(n||Al),s=(i=i||Tl,{});function u(){return{currentTime:o.currentTime}}function c(){return{getAdId:function(){return s.adId},getAdSystem:function(){return s.adSystem},getAdvertiserName:function(){return s.advertiserName},getCreativeId:function(){return s.creativeId},getDealId:function(){return s.dealId},getDuration:function(){return s.duration},getSkipTimeOffset:function(){return s.skipTimeOffset},getVastMediaBitrate:function(){return s.vastMediaBitrate},getVastMediaWidth:function(){return s.vastMediaWidth},getVastMediaHeight:function(){return s.vastMediaHeight},getWrapperAdIds:function(){return s.wrapperAdIds},getWrapperAdSystems:function(){return s.wrapperAdSystems},getWrapperCreativeIds:function(){return s.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return s.adPodIndex},getTimeOffset:function(){return s.adTimeOffset}}},h:{clickThroughUrl:s.clickThroughUrl}}}return o.dispatch=function(n,e,t){var r,a;t=t||{},e&&((r=e.media)&&oe.assign(o,r),r=e.ima)&&((e=r.adsManager)&&oe.assign(o,e),(e=r.ad)&&oe.assign(s,e),t.getAd=c,t.getAdData=u,a=r.error)&&(t.getError=function(){return{getErrorCode:function(){return a.code},getMessage:function(){return a.message},getInnerError:function(){return a.innerError}}}),n&&(e=new i(n),oe.assign(e,t),o.dispatchEvent(e))},o.getBoundingClientRect=function(){return o.boundingClientRect||{left:0,right:0,top:0,bottom:0}},o.getVolume=function(){return o.volume},o},bc=[],Oc="REQUEST_COMPLETE",Cc="SLOT_STARTED",Mc="SLOT_ENDED",Dc="AD_INITIATED",Rc="AD_BUFFERING_START",Nc="AD_BUFFERING_END",kc="AD_PAUSE",Pc="AD_RESUME",wc="AD_IMPRESSION",Lc="AD_IMPRESSION_END",xc="AD_COMPLETE",Uc="AD_SKIPPED",Vc="AD_CLICK",Fc=(Cl("freewheel","2.0.0"),bc.push(function(n,r,e,t){var a,i,o=r.setState,s=r.setAdData,u=r.fire,c={},l={on:{}};function d(){a&&(r.removeListeners(a),c={},a=i=null)}l.$update=l.update=function(n,e){var t;r.isInAds()&&(e&&s([[Xo,f(e,"getTimePosition")]]),i&&(s([[ve,f(i,"getPlayheadTime")],[Bo,f(i,"getDuration")],[Ho,f(i,"getAdId")],[jo,i._creativeId],[Jo,f(i,"getDealId")],[Qo,f(i,"getSkipOffset")]]),e=f(i,"getActiveCreativeRendition"))&&(t=f(e,"getHeight"),s([[Jr,f(e,"getWidth")],[Kr,t],[Xr,t?t+"p":null]])),n)&&(e=f(n,"getAdVolume"),r.setData([[Ma,100*e],[Di,0==e]]))},l.on[Oc]=function(n,e){e.success?u(bt,null,2):u(Et,null,2)},l.on[Cc]=function(n,e){i=null,o(16),l.update(n,e.slot)},l.on[Mc]=function(){o(17),i=null},l.on[Dc]=function(){s([[Br,1]]),u(At,null,2)},l.on[Rc]=function(){o(9)},l.on[Nc]=l.on[Pc]=function(){o(10,null,i)},l.on[wc]=function(){o(10,null,i),u(ot,null,2)},l.on[kc]=function(){o(11)},l.on[xc]=function(){o(13),i=null},l.on[Uc]=function(){o(14),i=null},l.on[Lc]=function(){i=null},l.on[Vc]=function(){u(it)},l.on["ERROR"]=function(n,e){o(15,[[oi,e.errorCode],[si,e.errorInfo]]),i=null},l.on["AD"]=function(n,e){i=e.adInstance,l.update(n);var t=c[e.subType];t&&t(n,e)},l.$on=we(l.on),r.sa.fwContext=l,e.push(function(){a&&l.update(a)}),t.push(d),Xn({attachFwContext:function(n){var e;!r.shallBlock("attachFwContext",null,n)&&n!=a&&(d(),a=n)&&(e=I(ae.tv,["freewheel","SDK"]),[Oc,Cc,Mc,"AD"].forEach(function(t){var n=e&&e["EVENT_"+t];n&&r.addListener(a,n,function(n){var e=l.on[t];e&&e(a,n)})}),[Dc,Rc,Nc,kc,Pc,wc,Lc,xc,Uc,Vc,"ERROR"].forEach(function(r){var n=e&&e["EVENT_"+r];n&&(c[n]=function(n,e){var t=l.on[r];t&&t(n,e)})}))},detachFwContext:d},[n,r])}),"play"),Wc="waiting",jc="playing",Bc="pause",Hc="seeking",qc="seeked",Gc="ended",zc="durationchange",Yc="ratechange",Kc="timeupdate",Xc=(Cl("html5","2.1.0"),bc.push(function(n,i,e,t){var a,o,s,u,r=i.setState,c=i.setData,l=i.addListener,d=i.removeListeners;function f(){o&&d(o),a&&d(a),a=o=null}function p(){if(a){for(var n,e,t,r=0;r<a.length;r++)"metadata"===(t=a[r]).kind?e=e||t:"showing"===t.mode&&(n=n||t);s||c([[xi,!!n],[ur,n?n.label||n.language:null]]),o!=e&&(o&&d(o),o=e)&&l(o,"cuechange",function(){var n=o.activeCues;if(n)for(var e,t,r=0;r<n.length;r++)(t=(e=n[r]).value)&&i.updateTimedMetadata("ID3",e.startTime,e.endTime,t.key,t.data)})}}t.push(f);var m,_,v={on:{}};function h(){u&&d(u),u=null}function g(){var n,e;u&&(n=u.webkitDisplayingFullscreen,e=Te.fullscreenElement||Te.webkitFullscreenElement||0,c([[Ci,null!=n?n:e===u||e===u.parentElement]]))}v.$update=v.update=function(n,e){e&&(c([[$i,n.duration],[bi,n.muted],[Oi,n.playbackRate]]),p(),m)&&g(),i.isInAds()||(e=[[Br,n.playbackRate],[eo,n.offsetWidth],[no,n.offsetHeight],[Gr,n],[ir,n.buffered],[Mi,n.loop],[Di,n.muted],[Ma,100*n.volume],[Pi,n.readyState]],_||e.push([ve,n.currentTime]),c(e))},v.on[Fc]=function(n){i.isIdle()&&(i.reset(),v.update(n,!0),r(1),r(2))},v.on[Wc]=function(n){v.update(n),r(2)},v.on[jc]=function(n){v.update(n),i.isAdIdle()&&r(17),r(3)},v.on[Bc]=function(n){v.update(n),r(4)},v.on[Hc]=function(n){v.update(n),r(5)},v.on[qc]=function(n){v.update(n),r(n.paused?4:3)},v.on[Gc]=function(n){v.update(n),i.isAdIdle()&&r(17),r(6)},v.on["error"]=function(n){var e,t=n.error;t&&(e=[[oi,t.code],[si,t.message]]),v.update(n),r(8,e)},v.on[zc]=function(n){c([[$i,n.duration]])},v.on[Yc]=function(n){c([[Br,n.playbackRate]])},v.on[Kc]=function(n){v.update(n)},v.$on=we(v.on),i.sa.mediaElement=v,e.push(function(){u&&v.update(u)}),t.push(h),Xn({attachMediaElement:function(n,e){h(),(u=n)&&(m=e&&e["track_fs"],_=e&&e["omit_ph"],[[Fc,(n=[[Gc,Bc,Hc,Fc,Wc,qc,jc]])[0]],[Wc,n[0]],[jc,n[0]],[Bc,n[0]],[Hc,n[0]],[qc,n[0]],[Gc,n[0]],["error"],[zc],[Yc],[Kc]].forEach(function(r){var a=r[0];l(u,a,function(n){var e,t=v.on[a];t&&((e=r[1])?(i.stash(a,t,[u,n]),w(function(){i.unstash(e)},0)):t(u,n))})}),m)&&["fullscreenchange","webkitbeginfullscreen","webkitendfullscreen"].forEach(function(n){l(u,n,g),l(u.parentElement,n,g)})},detachMediaElement:h,attachTextTracks:function(n,e){f(),s=e,(a=n)&&["change","addtrack","removetrack"].forEach(function(n){l(a,n,p)})},detachTextTracks:f},[i])}),"CLICK"),$c="STARTED",Jc="AD_PROGRESS",Qc="AD_BUFFERING",Zc="IMPRESSION",nl="PAUSED",el="RESUMED",tl="COMPLETE",rl="LOADED",al="ALL_ADS_COMPLETED",il="SKIPPED",ol="VOLUME_CHANGED",sl="AD_ERROR",ul={CLICK:"click",STARTED:"start",AD_PROGRESS:"adProgress",AD_BUFFERING:"adBuffering",IMPRESSION:"impression",PAUSED:"pause",RESUMED:"resume",COMPLETE:"complete",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",VOLUME_CHANGED:"volumeChange",AD_ERROR:"adError"},cl=(Cl("ima","2.0.0"),bc.push(function(n,i,e,t){var o,r=i.setState,a=i.setAdData,s=i.fire,u=i.addListener,c=i.removeListeners;function l(n){var e,n=n.getError();return n&&(e=[[oi,n.getErrorCode()],[si,n.getMessage()]],n=n.getInnerError())&&e.push([ui,""+n]),e}var d,f,p={on:{}};function m(){o&&c(o),o=null}function _(n){var e=n.getAdPodInfo(),t=n.getVastMediaHeight(),t=[[Ho,n.getAdId(),!0],[Ko,n.getAdSystem(),!0],[$o,n.getAdvertiserName(),!0],[jo,n.getCreativeId(),!0],[Jo,n.getDealId(),!0],[Bo,n.getDuration(),!0],[Qo,n.getSkipTimeOffset(),!0],[$r,n.getVastMediaBitrate(),!0],[Jr,n.getVastMediaWidth(),!0],[Kr,t,!0],[Xr,t?t+"p":null,!0],[ns,n.getWrapperAdIds(),!0],[es,n.getWrapperAdSystems(),!0],[Zo,n.getWrapperCreativeIds(),!0],[Wo,I(n,[/[a-z]/,"clickThroughUrl"]),!0]];return e&&t.push([Xo,e.getTimeOffset(),!0]),t}p.$update=p.update=function(n,e){i.isInAds()&&(e&&a(_(e)),n)&&(e=n.getVolume(),i.setData([[Ma,100*e],[Di,0==e]]))},p.on[Xc]=function(n){p.update(n),s(it)},p.on[$c]=function(n,e){e=e.getAd();i.isInAds()||r(16),a([[Br,1]]),p.update(n,e),r(10,null,e)},p.on[Jc]=function(n,e){e=I(e.getAdData(),["currentTime"]);null!=e&&(p.update(n),9==i.getState()&&(null==d?d=e:d!=e&&r(10)),a([[ve,e]]))},p.on[Qc]=function(n){p.update(n),r(9),d=null},p.on[Zc]=function(n){p.update(n),s(ot,null,2)},p.on[nl]=function(n){p.update(n),r(11)},p.on[el]=function(n){p.update(n),r(10)},p.on[tl]=function(n){p.update(n),r(13)},p.on[rl]=function(n,e){e=e.getAd();s(At,e&&_(e),2)},p.on[al]=function(){r(17),m()},p.on[il]=function(n){p.update(n),r(14)},p.on[ol]=function(n){p.update(n)},p.on[sl]=function(n,e){p.update(n),i.canSetState(15)?r(15,l(e)):s(Et,l(e),2)},p.$on=we(p.on),i.sa.imaAdsManager=p,e.push(function(){o&&p.update(o)}),t.push(m);var v={on:{}};function h(){f&&c(f),f=null}v.on[sl]=function(n,e){s(Et,l(e),2)},v.$on=we(v.on),i.sa.imaAdsLoader=v,t.push(h),Xn({attachImaAdsManager:function(n){var e,t;!i.shallBlock("attachImaAdsManager",null,n)&&n!=o&&(m(),o=n)&&(n=I(ae.google,["ima"]),e=I(n,["AdEvent","Type"],ul),[[Xc],[$c,null,(t=[[$c,Zc]])[0]],[Jc],[Qc],[Zc,null,t[0]],[nl],[el],[tl],[rl],[al],[il],[ol],[sl,I(n,["AdErrorEvent","Type"])]].forEach(function(r){var a=r[0],n=(r[1]||e)[a];n&&u(o,n,function(n){var e,t=p.on[a];t&&((e=r[2])?(i.stash(a,t,[o,n]),w(function(){i.unstash(e)},0)):t(o,n))})}),s(bt,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(n){i.shallBlock("attachImaAdsLoader",null,n)||n==f||(h(),(f=n)&&(n=I(ae.google,["ima","AdErrorEvent","Type"],ul)[sl])&&u(f,n,function(n){var e=v.on[sl];e&&e(f,n)}))},detachImaAdsLoader:h},[n,i])}),Cl("ima_dai","2.0.0"),bc.push(function(e,a,n,t,r,i,o){var s,u,c,l=a.addListener;function d(){s&&a.removeListeners(s),s=u=c=null}function f(n){for(var e;(e=u[0])&&e.t<=n;)u.shift(),delete e.t,s.onTimedMetadata(e)}t.push(d),i.push(function(n){s&&f(c=n[1])}),o.push(function(n,e,t,r,a){var i;s&&r&&a&&Ve(i="ID3"===n?a:i)&&((n={t:e})[r]=i,u.push(n),null!=c)&&f(c)}),Xn({attachImaDaiStreamManager:function(n){a.shallBlock("attachImaDaiStreamManager",null,n)||n==s||(d(),(s=n)&&(n=I(ae.google,["ima","dai","api","StreamEvent","Type"]),u=[],n)&&(l(s,n.CUEPOINTS_CHANGED,function(n){a.isIdle()&&(n=I(n.getStreamData(),["cuepoints"]))&&n.length&&e.annotateContentSession(n.map(function(n){return{type:Os,start:n.start,end:n.end}}))}),l(s,n.STARTED,function(n){var e,t,r,n=n.getAd();n&&(e=c||0,t=n.getAdPodInfo(),r=n.getVastMediaHeight(),a.addCtTimeSpans([{type:Os,start:e,end:e+(n.getDuration()||0),_d:[[Ho,n.getAdId()],[Ko,n.getAdSystem()],[$o,n.getAdvertiserName()],[jo,n.getCreativeId()],[Jo,n.getDealId()],[Qo,n.getSkipTimeOffset()],[Jr,n.getVastMediaWidth()],[Kr,r],[Xr,r?r+"p":null],[ns,n.getWrapperAdIds()],[es,n.getWrapperAdSystems()],[Zo,n.getWrapperCreativeIds()],[Xo,t?t.getTimeOffset():null]],_a:n}]))})))},detachImaDaiStreamManager:d},[e,a])}),Oe.mediatailor=(Dt=T.mediatailor,Lt=Ue.omidPartnerName,ar=Ue.omidPartnerVersion,Dt&&(Dt.clientInfo+=" DZSDK "+ie.cn+" v"+ie.sv,Dt.enableAdBeaconsDelivery=!1,Lt)&&ar&&(Dt.defaultOmidPartnerName=Lt,Dt.defaultOmidPartnerVersion=ar),Dt),Cl("mediatailor","2.2.0"),bc.push(function(n,m,e,t,r,a,i,o){var _,v,h,g,E;function y(n,e,t){if(n&&1===n.playCount)for(var r=o.length,a=0;a<r;a++)o[a](e,t)}function S(){_&&v&&_.removeAdObserver(v),_=v=null,h=g=E=null}t.push(S),r.push(function(n,e,t,r){var a=h&&h[t.nm];return a&&a(n,e,t,r)}),a.push(function(n){_&&3==m.getState()&&(g=n[1],E=m.getData(zr),cn<sn||Pn("MT onPlayheadUpdate: "+g+", "+E),_.onPlayheadUpdate(g,E||null))}),i.push(function(n,e,t,r,a){var i,o,s,u,c;_&&"EMT-TRACKING"===n&&a&&(e=e,(i=(i=a)&&i.avails)&&i.length&&(o=e-i[0].startTimeInSeconds,u=function(n){n.startTimeInSeconds+=o},c=function(n){var e=n.trackingEvents;n.adId=s+n.adId,n.startTimeInSeconds+=o,n.adProgramDateTime=null,e&&e.forEach(u)},i.forEach(function(n){var e=n.ads;s=(n.availId||"")+";",n.startTimeInSeconds+=o,n.availProgramDateTime=null,e&&e.forEach(c)})),_.updateAdTrackingInfo(a,n))}),Xn({attachMediaTailorSession:function(n,e){var o,s,u,c,l,t,r,a,i,d,f,p;e=e||Oe.mediatailor,!m.shallBlock("attachMediaTailorSession",null,n)&&e&&n!=_&&(S(),t=function(){var n=m.getData(Ma);Fe(n)&&y(o,Ec,n)},r=e.AdTrackingEvent,(a=[])[r.IMPRESSION]=(i=function(n){return function(){y(o,n)}})(dc),a[r.LOADED]=i("loaded"),a[r.START]=i("start"),a[r.FIRST_QUARTILE]=i(fc),a[r.MID_POINT]=i(pc),a[r.THIRD_QUARTILE]=i(mc),a[r.COMPLETE]=i(_c),a[r.PAUSE]=i("pause"),a[r.RESUME]=i("resume"),a[r.FULLSCREEN]=i(yc),a[r.EXIT_FULLSCREEN]=i(Sc),a[r.MUTE]=function(){y(o,Ec,0)},a[r.UNMUTE]=t,a[r.CLICK_THROUGH]=function(){m.fire(it),y(o,gc)},a[r.SKIP]=function(){m.fire(ct),y(o,"skip")},_=n)&&(i=e.PlaybackEvent,h={},[[i.START,Rt,1],[i.END,Ht,A],[i.PAUSE,Mt,A],[i.RESUME,Vt,A],[i.MUTE,Ct,A],[i.UNMUTE,Gt,A],[i.FULLSCREEN,St,A],[i.EXIT_FULLSCREEN,yt,A]].forEach(function(a){h[a[1].nm]=function(n,e,t,r){a[2]&r&&_.onPlaybackEvent(a[0])}}),h[zt.nm]=t,h[ft.nm]=function(){y(o,vc)},h[pt.nm]=function(){y(o,hc)},f=function(e,t,r,n){n&&U?fetch(r,{mode:"no-cors"}):ee("GET",r,null,null,function(n){4==n.readyState&&d(e,t,r,n.status)})},p=function(n){l&&s&&s.forEach(function(n){f(n[0],n[1],n[2],n[3])}),l=!1,s=null},v={onNewAd:function(n){var e,t;m.addCtTimeSpans([(e=(n=n).startDate,t=n.trackingEvents,e=e&&E?e-E+g:n.start,{type:Os,start:e,end:e+n.duration,_a:n,_d:[[Ho,n.vastAdId],[Ko,n.adSystem],[jo,n.creativeId],[Qo,n.skipOffset],[Xo,n.availStart],[Wo,n.videoClickThrough],[Lo,t&&t.map(function(n){return n.eventType}).join(",")]]})])},onAdLoad:function(n){var e,a,t,r,i=n.adVerifications;s=[],u={},c={},(l=1===(o=n).playCount)&&(e={},a=[],t=m.getData(Ma),r=n.skipOffset,Fe(t)?e["v"]=t:(ce("Undefined audio volume on AM_INIT"),e["v"]=0),e["d"]=n.duration,e["ap"]=!!m.getData(Ii),e["po"]=0===n.availStart?0:1,e["sk"]=0<=r,e["so"]=e["sk"]?r:null,e["vf"]=a,e["cb"]=p,i&&i.forEach(function(n){var e,t=I(n.javaScriptResource,[0,"uri"]),r=n.vendor;t&&r&&((e={})["url"]=t,e["vd"]=r,e["p"]=n.verificationParameters||"",a.push(e))}),y(n,"init",e))},onAdEnd:function(n){y(n,Ic),o=s=u=c=null,l=!1},onAdTrackingEvent:function(n,e){e=a[e];e&&e()},onAdBeaconRequest:function(n,e,t,r){1===n.playCount&&(l?s.push([n,e,t,r]):f(n,e,t,r))},onAdBeaconResponse:d=function(n,e,t,r){e=e&&e.eventType;n==o&&e&&(r<200||299<r?c&&(c[e]=1,m.setAdData([[xo,oe.keys(c).join(",")]])):u&&(u[e]=1,m.setAdData([[Uo,oe.keys(u).join(",")]]))),m.fire(tt,[[Po,e],[wo,t],[ko,r]],2)},onNonLinearAdsStart:function(n,e,t){},onNonLinearAdsEnd:function(n){}},_.addAdObserver(v))},detachMediaTailorSession:S},[n])}),Cl("yospace","2.0.0"),bc.push(function(s,u,n,e,t,r,a){var f,c,l,i,d,p,m,_,v,h=["YMID","YSEQ","YTYP","YDUR"];function g(){f&&c&&f.removeAnalyticObserver(c),f=c=null,l=i=d=m=null}function o(n){for(var e;(e=l[0])&&e.t<=n;)l.shift(),f.onTimedMetadata(v.createFromMetadata(e.YMID,e.YSEQ,e.YTYP,e.YDUR,1e3*e.t))}function E(n,e,t){(i=i&&i.t===n?i:{t:n})[e]=t||"",oe.keys(i).length===h.length+1&&(l.push(i),(i=null)!=m)&&o(m)}e.push(g),t.push(function(n,e,t,r){var a=d&&d[t.nm];return a&&a(n,e,t,r)}),r.push(function(n){f&&!u.isIdle()&&(m=n[1],p===_.VOD||p===_.DVRLIVE?f.onPlayheadUpdate(se.round(1e3*m)):o(m))});var y=b.fromCharCode;function S(n,e,t){for(var r,a=[];e<t;)31<(r=n[e++])&&r<127&&a.push(y(r));return a.join("")}a.push(function(n,e,t,r,a){var i;if(f&&a&&p===_.LIVE)if("ID3"===n||"org.id3"===n)h.includes(r)&&(a instanceof C&&(a=new O(a))||a instanceof O?3===a[0]&&(i=S(a,1,a.length)):i=a,Ve(i))&&E(e,r,i);else if("urn:yospace:a:id3:2016"===n){if(a instanceof O)for(var o,s=S(a,0,a.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),h.includes(o[0])&&E(e,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===n&&a instanceof O){var c=a.length;if(9<c&&73===a[0]&&68===a[1]&&51===a[2]&&(a[3]<<8|a[4])<=1024&&!(192&a[5])){u=6;for(var l=0,d=10;u<d;)l=l<<7|127&a[u++];for(c=se.min(c,l+10);u+9<c;){for(r="",d=u+4;u<d;)r+=y(a[u++]);for(l=0,d=u+4;u<d;)l=l<<7|127&a[u++];d=(u+=2)+l,h.includes(r)&&d<=c&&E(e,r,S(a,u,d)),u=d}}}}),Xn({attachYospaceSession:function(n){var e,i,o,t,r,a=ae.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,n)&&a&&n!=f&&(g(),f=n)&&(e=a.PlayerEvent,n=a.BreakType,_=a.PlaybackMode,v=a.TimedMetadata,p=f.getPlaybackMode(),l=[],d={},[[e.START,Rt,1],[e.STOP,Ht,A],[e.PAUSE,Mt,A],[e.RESUME,Vt,A],[e.STALL,jt,A],[e.CONTINUE,Bt,A]].forEach(function(a){d[a[1].nm]=function(n,e,t,r){a[2]&r&&f.onPlayerEvent(a[0],0)}}),d[Wt.nm]=function(){f.onPlayerEvent(e.SEEK,1e3*(m||0))},d[Ct.nm]=function(){f.onVolumeChange(!0)},d[Gt.nm]=function(){f.onVolumeChange(!1)},i=function(n,e){n=n.getProperty(e);return n&&n.getValue()},o=function(n,e,t,r){n&&(e.push(n.getIdentifier()),t.push(n.getAdSystem()),r.push(n.getCreativeIdentifier()),o(n.getLineage(),e,t,r))},t=function(n){var e=n.getSkipOffset(),t=[],r=[],a=[],e=(o(n.getLineage(),t,r,a),[[Ho,n.getIdentifier()],[Ko,i(n,"AdSystem")],[$o,i(n,"Advertiser")],[Qo,0<e?e/1e3:e],[ns,t],[es,r],[Zo,a]]),t=n.getLinearCreative(),r=(t&&e.push([jo,t.getCreativeIdentifier()],[Wo,t.getClickThroughUrl()]),n.getStart()/1e3);return{type:Os,start:r,end:r+n.getDuration()/1e3,_d:e,_a:n}},c={onAdvertBreakStart:function(n){},onAdvertBreakEnd:function(){},onAdvertStart:function(n){u.addCtTimeSpans([t(n)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(n){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(n){}},f.addAnalyticObserver(c),p===_.VOD)&&(r=[],(a=f.getAdBreaksByType(n.LINEAR))&&a.forEach(function(n){n=n.adverts;n&&n.forEach(function(n){r.push(t(n))})}),r.length)&&s.annotateContentSession(r)},detachYospaceSession:g},[s])}),Cl("open_measurement","2.2.0"),bc.push(function(n,S,e,t,r,a,i,o){var s,I,u,c;function l(){c&&c(Ic),I=u=c=null,s=!1}t.push(l),o.push(function(n,e){s&&("init"===n?(c&&c(Ic),c=u(e)):c&&(c(n,e),n===Ic)&&(c=null))}),Xn({startOmidSessionClient:function(n){var v,h,g,E,y=T.OmidSessionClient,e=Ue.omidPartnerName,t=Ue.omidPartnerVersion;S.shallBlock("startOmidSessionClient",null,n=n||{})||(v=n.omidServiceWindow||ae.self,h=n.videoElement,g=n.contentURL||M.href,E=n.accessModeHandler,y&&e&&t&&h?(l(),I=new y.Partner(e,t),u=function(r){var t=[],a=r["cb"]||function(){};function n(n){var e=n?ut:st,t=[[qo,pe(r)]];n&&t.push([si,n]),S.fire(e,t,2)}function i(n,e){t.push(null==e?n:n+"("+e+")"),S.setAdData([[Go,t.join(",")]])}if(S.setAdData([[Go,null]]),!1===ie.om)return n("OM disabled"),a(!1),null;var e=r["vf"],o=e&&e.map(function(n){var e=n["url"],t=n["vd"],n=n["p"]||"";return new y.VerificationScriptResource(e,t,n,E&&E(e,t,n)||"full")});if(!o||!o.length)return n("Resources not found"),a(!1),null;var s,u,o=new y.Context(I,o,g),c=(o.setServiceWindow(v),"VIDEO"===h.tagName?o.setVideoElement(h):o.setVideoElement(h.getElementsByTagName("video")[0]||h),new y.AdSession(o)),l=!1,d=[],f=e.length;function p(){0<--f||l&&a(!0)}if(c.setCreativeType("video"),c.setImpressionType("beginToRender"),!c.isSupported())return ce("OMID ad session unsupported"),n("Unsupported"),a(!1),null;e.forEach(function(n){n=n["url"];U?fetch(n,{mode:"no-cors"}).then(p,p):ee("GET",n,null,null,function(n){4==n.readyState&&p()})});var m={};function _(n,e){var t;l?(t=m[n])?(i(n,e),t(e)):ce("Unknown amEvent: "+n):d.push([n,e])}return m["loaded"]=function(){s.loaded(new y.VastProperties(r["sk"],r["so"],r["ap"],r["po"]))},m["start"]=function(){u.start(r["d"],r["v"]/100)},m[dc]=function(){s.impressionOccurred()},m[fc]=function(){u.firstQuartile()},m[pc]=function(){u.midpoint()},m[mc]=function(){u.thirdQuartile()},m[_c]=function(){u.complete()},m["pause"]=function(){u.pause()},m["resume"]=function(){u.resume()},m[vc]=function(){u.bufferStart()},m[hc]=function(){u.bufferFinish()},m["skip"]=function(){u.skipped()},m[gc]=function(){u.adUserInteraction("click")},m[Ec]=function(n){r["v"]=n,u.volumeChange(n/100)},m[yc]=function(){u.playerStateChange("fullscreen")},m[Sc]=function(){u.playerStateChange("normal")},m[Ic]=function(){c.finish()},c.registerSessionObserver(function(n){switch(n.type){case"sessionStart":var e;for(i(n.type),s=new y.AdEvents(c),u=new y.MediaEvents(c),l=!0;e=d.shift();)_(e[0],e[1]);0<f||a(!0);break;case"sessionError":i(n.type),ce("OMID ad session error"),a(!1)}}),n(),c.start(),_},s=!0):De("Missing OM SDK library or parameters"))},stopOmidSessionClient:l},[n])}),Oe.omidPartnerName=Ue.omidPartnerName,Oe.omidPartnerVersion=Ue.omidPartnerVersion,"unsupportedDataList"),ll="maxCtPlayheadInterval",dl="maxAdPlayheadInterval",fl={};function pl(n,e){var t=null==n?oc:Ve(n)&&fl[n];return t&&t[5]===e?t:(ce("Invalid adapter for id: "+n),null)}function ml(n,e,t,r,a,i){r=[n,sc,r,a,i,t];oc=oc||r,fl[n]=r,Ol("adt_"+n,e)}function _l(){if(!uc){var n=bu[3];if(ue(n))try{n()}catch(n){le(n,"onPageUnload")}oe.keys(ye).forEach(function(n){ye[n].publicContext.destroy()}),Cu(!0),uc=!0}}sc="Brightcove Player",ml("videojs","2.29.0",1,function(o,s,n){var u,c,e,r,n=n.videojsClass||ae.videojs;if(!o||!n)return"Invalid player or missing videojs class";function l(n,e,t){s.addListener(n,e,t,"on","off")}function d(n){n&&s.removeListeners(n)}s.setData([[Ni,n.VERSION]]);var f,n=I(ae.cast,["framework","CastContext"]),n=n&&n.getInstance();function a(){var n=I(ae.cast,["framework","CastContext"]),n=n&&n.getInstance();return n&&n.getCurrentSession()}function i(n){var e=a();return e&&e.sendMessage(nn,n)}function p(){var n;s.isIdle()||(e&&(n=e.getInstance().getCastState(),s.setData([[Ai,"CONNECTED"==n]])),0!==o.duration()&&s.setData([[Li,o.duration()==1/0?"Live":"VOD"]]),s.isInAds())||(n=o.currentTime(),null!=f&&s.setData([[zr,n+f]]),s.setData([[ve,n],[Br,o.playbackRate()],[eo,o.currentWidth()],[no,o.currentHeight()],[Gr,o.contentEl()],[Mi,o.loop()],[Di,o.muted()],[Ma,100*o.volume()],[Pi,o.readyState()],[ir,o.buffered()],[Ci,o.isFullscreen()],[Ii,o.autoplay()]]))}function m(n){n&&s.setData([[Ki,n.id],[ro,n.name],[Xi,n.description]])}function _(){var n,e=o.audioTracks();if(e)for(var t,r=0;r<e.length;r++)if((t=e[r]).enabled){n=t;break}s.setData([[sr,n?n.label||n.language:null]])}function v(){var n,e,t,r=o.textTracks();if(r)for(var a,i=0;i<r.length;i++)"segment-metadata"==(a=r[i]).label?e=a:"metadata"===a.kind?t=a:"showing"==a.mode&&(n=a);s.setData([[xi,!!n],[ur,n?n.label||n.language:null]]),u!=e&&(d(u),u=e)&&l(u,"cuechange",function(){var n,e,t,r,a=I(u.activeCues,[0,"value"]);a&&(e=(n=a.resolution||{}).height,t=a.start,r=a.programDateTime,s.setData([[$r,a.bandwidth/1e3],[Jr,n.width],[Kr,e],[Xr,null!=e?e+"p":null]]),null!=t)&&r&&(f=r/1e3-t)}),c!=t&&(d(c),c=t)&&l(c,"cuechange",function(){var n=c.activeCues;if(n)for(var e,t,r=0;r<n.length;r++)(t=(e=n[r]).value)&&s.updateTimedMetadata("ID3",e.startTime,e.endTime,t.key,t.data)})}function t(){p(),s.setState(4)}function h(){p(),s.setState(6)}function g(){s.setData([[$i,o.duration()]])}function E(n){w(function(){s.unstash(["ended","pause"])},n)}Fs&&(o.cmcd&&o.cmcd({sid:s.reqCtSID(),cid:"-",useHeaders:!1}),l(o,"xhr-hooks-ready",function(){function n(n){var r,e,a,t=n.uri;return t&&(e=ne(t,"CMCD"),a={},e&&e.split(",").forEach(function(n){var n=n.split("="),e=n[0],t=he[e];t&&(a[e]=t[1][1](n[1]))}),delete(e=a).cid,r=s.reqTracer(t,e),n.uri=Ws?r.urlBase:r.url(),n.beforeSend=function(e){var t;e.addEventListener("readystatechange",function(){var n=e.readyState;1==n?r.start():2==n?(r.status(e.status),r.resp()):4==n&&r.end()}),Ws&&(t=r.headers(),oe.keys(t).forEach(function(n){e.setRequestHeader(n,t[n])}))}),n}w(function(){s.addListener(I(o.tech(),["vhs","xhr"]),"-",n,"onRequest","offRequest")},0)})),s.addListener(n,I(ae.cast,["framework","CastContextEventType","CAST_STATE_CHANGED"]),function(n){var t,n="CONNECTED"==n.castState;n&&(t=a(),s.addListener(t,"mediasession",function(n){var e=I(n,["mediaSession"]);s.removeListeners(r,"-"),r=e,s.addListener(e,"-",function(){switch(e.playerState){case"PLAYING":s.setState(3);break;case"PAUSED":s.setState(4);break;case"BUFFERING":s.isIdle()&&(s.setState(1),s.initCastTransfer(i)),s.setState(2);break;case"IDLE":"FINISHED"==I(e,["idleReason"])&&s.setState(6)}},"addUpdateListener","removeUpdateListener"),s.removeListeners(null,nn),s.addListener(t,nn,function(n,e){s.handleCastMessage(me(e),i)},"addMessageListener","removeMessageListener"),s.initCastTransfer(i)})),s.setData([[Ai,n]])}),s.onTimer(function(){p()}),l(o,"play",function(){var n,e,t=o.src();s.isIdle()||s.matchCtSource(t)||s.reset(),s.isIdle()&&(s.reset(),s.setData([[wi,(e=t,n=(n=(n=null)&&Ms[n])||(e=(e=(e=e)&&/\.(\w+)($|\?)/.exec(e))&&e[1])&&Ds[e.toLowerCase()])],[to,t],[$i,o.duration()],[bi,o.muted()],[Oi,o.playbackRate()],[ki,o.preload()],[Ti,o.controls()]]),f=null,m(o.mediainfo),p(),_(),v(),s.setState(1),s.setState(2))}),l(o,"waiting",function(){p(),s.setState(2)}),l(o,"playing",function(){p(),s.isAdIdle()&&s.setState(17),s.setState(3)}),l(o,"pause",function(){s.stash("pause",t),E(0)}),l(o,"seeking",function(){s.setState(5)}),l(o,"seeked",function(){p(),s.setState(o.paused()?4:3)}),l(o,"ended",function(){s.stash("ended",h),E(0)}),l(o,"error",function(){var n,e=o.error();e&&(n=[[oi,e.code],[si,e.message]]),p(),s.setState(8,n)}),l(o,"durationchange",g),l(o,"ratechange",function(){s.setData([[Br,o.playbackRate()]])}),l(o,"loadedmetadata",function(){e=I(ae,["cast","framework","CastContext"]),m(o.mediainfo),g(),_(),v(),["change","addtrack","removetrack"].forEach(function(n){l(o.audioTracks(),n,_),l(o.textTracks(),n,v)})}),_e(o.ima3)&&(l(o,"ima3-ready",function(){s.attachImaAdsLoader(I(o.ima3,["adsLoader"]))}),l(o,"ima3-ads-manager-loaded",function(){s.attachImaAdsManager(I(o.ima3,["adsManager"]))}))}),sc="DOM",ml("dom","2.1.0",$u,function(f,c){var l=c.publicContext;if(!f)return"Invalid DOM element";function e(n){var o,s;function u(c,l){var d=null;return c&&oe.keys(c).forEach(function(n){var e=c[n],t=e.query_selector,r=e.attribute_name,a=e.relative;if(r){var i,o,s,u=null;if(null!=a&&l){if(0<=a&&a<100)for(i=l,s=0;s<a&&i;s++)i=i.parentElement}else i=f;if(i)if(t)try{o=i.querySelectorAll(t)}catch(n){le(n,"querySelectorAll for: "+t)}else o=[i];if(o)for(u=[],s=0;s<o.length;s++)u.push(o[s][r]);(d=d||{})[n]=u}}),d}n&&(c.removeListeners(),o=n.events,s=n.metadata,o)&&oe.keys(o).forEach(function(t){var n=o[t],r=n.attributes,e=n.query_selector,a=n.interaction_type;if(e&&a)try{var i=f.querySelectorAll(e);i&&i.forEach(function(e){c.addListener(e,a,function(){var n=u(s),n=(n&&l.setMetadata(oe.assign(l.getMetadata()||{},n)),u(r,e));l.generateEvent(t,n)})})}catch(n){le(n,"querySelectorAll for: "+e)}})}e(ie.od),c.onConfig(function(n){e(n.od)})});var vl=!0;function hl(t){if(!cc){if(!(ie.ci||ne(J,Z)||t&&t[Z]))return!1;t&&(J=Le(J,function(e){oe.keys(t).forEach(function(n){e.set(n,t[n])})}),dn()),vl&&(vl=!1,ju(gt,de()));var n=ne(J,"env");ie.cf="staging"===n||"dev"===n||"sandbox"===n?n:"",ie.ci=ne(J,Z)||ie.ci,ie.om=null,Vu([[Ua,ie.ci]]),Pu(),cc=!0}return!0}function gl(n){n()}function El(n,e,t){_e(t)||(null!=t&&ce("Invalid contextOptions",t),t={});var r,a,i,o,s,u,c,l,d,f,p,m,_,v,h=t[zu]||Ju[1];switch(h){case Ju[1]:return Ac(n,e,t);case Ju[$u]:return o=n,s=e,p=ac((u=t)[Gu],u[Yu]),m=pl(u[Hu],$u),_=_e(_=u[qu])?we(_):{},m&&(l=m[2],d=m[3],oe.assign(_,m[4]||{})),oe.assign(p,{type:$u,fire:function(n,e){p.fireEvent(n,de(),e)},onTimer:function(n){f=n}}),s?d?new Ae(function(e,t){try{d(s,p,_).then(function(n){c=g(n),e(c)},function(n){De(n),t(n)})}catch(n){t(le(n,m[0]+" createTargetObject"))}}):Ae.reject("Not implemented"):c=g(o);case Ju[Xu]:if(!e)return a=(o=ac(null,t[Yu])).publicContext,null!=(i=t[Ku])&&a.setMetadata(i),o.fireEvent(ht,de()),a;r="Invalid context type: "+h;break;default:r="Unknown context type: "+h}function g(n){var e,t=p.publicContext,r=null;p.target=n,oe.assign(t,p.basePublicMethods,{getError:function(){return r},getTarget:function(){return n},adapterID:function(){return m?m[0]:null}});try{r=m?l?l(n,p,_):null:"Missing adapter"}catch(n){r=le(n,m[0]+" initContext")}return r?(De(r),t.destroy()):(null!=(e=u[Ku])&&t.setMetadata(e),p.fire(ht),p.setTimer(function(){if(f)try{f()}catch(n){le(n,"onTimer")}})),t}return De(r),e?Ae.reject(r):(v=r,{getError:function(){return v}})}f(ae,"addEventListener",["pagehide",_l]),"Safari"==cu&&f(ae,"addEventListener",["beforeunload",function(n){w(function(){n.defaultPrevented||n.returnValue||_l()},0)}]),Re("Datazoom SDK "+ie.sv+" ("+ie.cn+") DDv3",bl),P(function(){Qu.length?Qu.forEach(gl):de()},ie.ti),oe.assign(Oe,{init:hl,setLogLevel:ln,createContext:function(n,e){return El(n,null,e)},createBaseContext:function(n){return(n=_e(n)?we(n):{})[zu]=Ju[Xu],El(null,null,n)},createContextAndTarget:function(n){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);return El(null,e,n)},createCollectorProxy:function(n,e,t){return(n=n||Ju[1])===Ju[1]?Tc(e,t):(De("Unsupported context type: "+n),null)},adapterIDs:function(){return oe.keys(fl)},contexts:function(){return oe.keys(ye).map(function(n){return ye[n].publicContext})},playerContexts:function(){return oe.keys(ye).filter(function(n){return 1==ye[n].type}).map(function(n){return ye[n].publicContext})},setMetadata:function(n){return!(null!=n&&!_e(n)||(Bu(Js=me(pe(n)),Vu),m(p,vn,Js),0))},getMetadata:function(){return me(pe(Js))},getAppSessionData:function(n){var e=null;return e=ds&&ds[n]&&(n=Ss[n])?Fu(n):e},generateEvent:function(n,e,t){t=!t&&oe.keys(ye)[0];t?ye[t].publicContext.generateEvent(n,e):ju({ap:et,nm:z+n,on:ps},de(),null,e)},on:function(n,e){bu[n]=e},appSessionID:function(){return Zs},generateUUID:function(){return fe()},sdkEvent:{CONFIG_READY:Au,APP_SESSION_START:Tu,CONTENT_SESSION_START:2,PAGE_UNLOAD:3,AD_START:4,AD_END:5},timeSpanType:{AD:Os,PROMO:"promo"},overridableMetadata:hs,name:ie.cn,version:ie.sv,dictionaryVersion:3}),yl||w(hl,ie.kd),We(F)&&F.forEach(function(n){Oe.cmdQueue.push(n)})}(window&&window.dzEmulatedWindow||("object"==typeof globalThis?globalThis:window),{tt:!0},(s={},Cl("omid_session_client","1.6.6"),function(){function n(e,r){var u=u||{},t=(u.scope={},u.createTemplateTagFirstArg=function(n){return n.raw=n},u.createTemplateTagFirstArgWithRaw=function(n,e){return n.raw=e,n},u.arrayIteratorImpl=function(n){var e=0;return function(){return e<n.length?{done:!1,value:n[e++]}:{done:!0}}},u.arrayIterator=function(n){return{next:u.arrayIteratorImpl(n)}},u.makeIterator=function(n){var e="undefined"!=typeof Symbol&&Symbol.iterator&&n[Symbol.iterator];if(e)return e.call(n);if("number"==typeof n.length)return u.arrayIterator(n);throw Error(String(n)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(n){for(var e,t=[];!(e=n.next()).done;)t.push(e.value);return t},u.arrayFromIterable=function(n){return n instanceof Array?n:u.arrayFromIterator(u.makeIterator(n))},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.objectCreate=u.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(n){function e(){}return e.prototype=n,new e},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(n,e,t){return n!=Array.prototype&&n!=Object.prototype&&(n[e]=t.value),n},u.getGlobal=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof cn&&cn];for(var e=0;e<n.length;++e){var t=n[e];if(t&&t.Math==Math)return t}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$",u.polyfill=function(n,e,t,r){e&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(n,e,t,r):u.polyfillUnisolated(n,e,t,r))},u.polyfillUnisolated=function(n,e,t,r){for(t=u.global,n=n.split("."),r=0;r<n.length-1;r++){var a=n[r];if(!(a in t))return;t=t[a]}(e=e(r=t[n=n[n.length-1]]))!=r&&null!=e&&u.defineProperty(t,n,{configurable:!0,writable:!0,value:e})},u.polyfillIsolated=function(n,e,t,r){var a=n.split(".");n=1===a.length,r=a[0],r=!n&&r in u.polyfills?u.polyfills:u.global;for(var i=0;i<a.length-1;i++){var o=a[i];if(!(o in r))return;r=r[o]}a=a[a.length-1],null!=(e=e(t=u.IS_SYMBOL_NATIVE&&"es6"===t?r[a]:null))&&(n?u.defineProperty(u.polyfills,a,{configurable:!0,writable:!0,value:e}):e!==t&&(void 0===u.propertyToPolyfillSymbol[a]&&(t=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[a]=u.IS_SYMBOL_NATIVE?u.global.Symbol(a):u.POLYFILL_PREFIX+t+"$"+a),u.defineProperty(r,u.propertyToPolyfillSymbol[a],{configurable:!0,writable:!0,value:e})))},u.getConstructImplementation=function(){var r;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(n,[],function(){}),new n instanceof n?Reflect.construct:(r=Reflect.construct,function(n,e,t){return n=r(n,e),t&&Reflect.setPrototypeOf(n,t.prototype),n})):function(n,e,t){return t=u.objectCreate((t=void 0===t?n:t).prototype||Object.prototype),Function.prototype.apply.call(n,t,e)||t};function n(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var n={};try{return n.__proto__={a:!0},n.a}catch(n){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(n,e){if(n.__proto__=e,n.__proto__!==e)throw new TypeError(n+" is not extensible");return n}:null,u.inherits=function(n,e){if(n.prototype=u.objectCreate(e.prototype),n.prototype.constructor=n,u.setPrototypeOf){var t=u.setPrototypeOf;t(n,e)}else for(t in e){var r;"prototype"!=t&&(Object.defineProperties?(r=Object.getOwnPropertyDescriptor(e,t))&&Object.defineProperty(n,t,r):n[t]=e[t])}n.superClass_=e.prototype},u.getRestArguments=function(){for(var n=Number(this),e=[],t=n;t<arguments.length;t++)e[t-n]=arguments[t];return e},u.polyfill("Reflect",function(n){return n||{}},"es6","es3"),u.polyfill("Reflect.construct",function(n){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(n){var t;return n||(u.setPrototypeOf?(t=u.setPrototypeOf,function(n,e){try{return t(n,e),!0}catch(n){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(n){var e,t,r,a;return n||((e=function(n,e){this.$jscomp$symbol$id_=n,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0,a=function(n){if(this instanceof a)throw new TypeError("Symbol is not a constructor");return new e(t+(n||"")+"_"+r++,n)})},"es6","es3"),u.polyfill("Symbol.iterator",function(n){if(!n){n=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<e.length;t++){var r=u.global[e[t]];"function"==typeof r&&"function"!=typeof r.prototype[n]&&u.defineProperty(r.prototype,n,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return n},"es6","es3"),u.iteratorPrototype=function(n){return(n={next:n})[Symbol.iterator]=function(){return this},n},u.iteratorFromArray=function(e,t){e instanceof String&&(e+="");var r=0,a=!1,n={next:function(){var n;return!a&&r<e.length?(n=r++,{value:t(n,e[n]),done:!1}):{done:a=!0,value:void 0}}};return n[Symbol.iterator]=function(){return n},n},u.polyfill("Array.prototype.keys",function(n){return n||function(){return u.iteratorFromArray(this,function(n){return n})}},"es6","es3"),u.checkStringArgs=function(n,e,t){if(null==n)throw new TypeError("The 'this' value for String.prototype."+t+" must not be null or undefined");if(e instanceof RegExp)throw new TypeError("First argument to String.prototype."+t+" must not be a regular expression");return n+""},u.polyfill("String.prototype.repeat",function(n){return n||function(n){var e=u.checkStringArgs(this,null,"repeat");if(n<0||1342177279<n)throw new RangeError("Invalid count value");n|=0;for(var t="";n;)1&n&&(t+=e),(n>>>=1)&&(e+=e);return t}},"es6","es3"),u.stringPadding=function(n,e){return n=void 0!==n?String(n):" ",0<e&&n?n.repeat(Math.ceil(e/n.length)).substring(0,e):""},u.polyfill("String.prototype.padStart",function(n){return n||function(n,e){var t=u.checkStringArgs(this,null,"padStart");return u.stringPadding(e,n-t.length)+t}},"es8","es3"),u.owns=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},u.polyfill("Object.values",function(n){return n||function(n){var e,t=[];for(e in n)u.owns(n,e)&&t.push(n[e]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var r={},a=Object.create(new u.global.Proxy(r,{get:function(n,e,t){return n==r&&"q"==e&&t==a}}));return!0===a.q}catch(n){return!1}},u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,u.ES6_CONFORMANCE=u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&u.checkEs6ConformanceViaProxy(),u.polyfill("WeakMap",function(r){function t(){}function a(n){var e=typeof n;return"object"==e&&null!==n||"function"==e}function i(n){var e;u.owns(n,o)||(e=new t,u.defineProperty(n,o,{value:e}))}function n(n){var e;u.ISOLATE_POLYFILLS||(e=Object[n])&&(Object[n]=function(n){return n instanceof t?n:(Object.isExtensible(n)&&i(n),e(n))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if(function(){if(r&&Object.seal)try{var n=Object.seal({}),e=Object.seal({}),t=new r([[n,2],[e,3]]);return 2==t.get(n)&&3==t.get(e)?(t["delete"](n),t.set(e,4),!t.has(n)&&4==t.get(e)):void 0}catch(n){}}())return r;function e(n){if(this.id_=(s+=Math.random()+1).toString(),n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var o="$jscomp_hidden_"+Math.random(),s=(n("freeze"),n("preventExtensions"),n("seal"),0);return e.prototype.set=function(n,e){if(!a(n))throw Error("Invalid WeakMap key");if(i(n),u.owns(n,o))return n[o][this.id_]=e,this;throw Error("WeakMap key fail: "+n)},e.prototype.get=function(n){return a(n)&&u.owns(n,o)?n[o][this.id_]:void 0},e.prototype.has=function(n){return a(n)&&u.owns(n,o)&&u.owns(n[o],this.id_)},e.prototype["delete"]=function(n){return!!(a(n)&&u.owns(n,o)&&u.owns(n[o],this.id_))&&delete n[o][this.id_]},e},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(a){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(a&&u.ES6_CONFORMANCE)return a}else if(function(){if(!u.ASSUME_NO_NATIVE_MAP&&a&&"function"==typeof a&&a.prototype.entries&&"function"==typeof Object.seal)try{var n,e,t=Object.seal({x:4}),r=new a(u.makeIterator([[t,"s"]]));return"s"!=r.get(t)||1!=r.size||r.get({x:4})||r.set({x:4},"t")!=r||2!=r.size?void 0:(e=(n=r.entries()).next()).done||e.value[0]!=t||"s"!=e.value[1]?void 0:!((e=n.next()).done||4!=e.value[0].x||"t"!=e.value[1]||!n.next().done)}catch(n){}}())return a;function n(n){if(this.data_={},this.head_=t(),this.size=0,n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var i=new WeakMap,r=(n.prototype.set=function(n,e){var t=r(this,n=0===n?0:n);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=e:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:n,value:e},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},n.prototype["delete"]=function(n){return!(!(n=r(this,n)).entry||!n.list||(n.list.splice(n.index,1),n.list.length||delete this.data_[n.id],n.entry.previous.next=n.entry.next,n.entry.next.previous=n.entry.previous,n.entry.head=null,this.size--,0))},n.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},n.prototype.has=function(n){return!!r(this,n).entry},n.prototype.get=function(n){return(n=r(this,n).entry)&&n.value},n.prototype.entries=function(){return e(this,function(n){return[n.key,n.value]})},n.prototype.keys=function(){return e(this,function(n){return n.key})},n.prototype.values=function(){return e(this,function(n){return n.value})},n.prototype.forEach=function(n,e){for(var t,r=this.entries();!(t=r.next()).done;)t=t.value,n.call(e,t[1],t[0],this)},n.prototype[Symbol.iterator]=n.prototype.entries,function(n,e){var t=e&&typeof e,r=("object"==t||"function"==t?i.has(e)?t=i.get(e):(t=""+ ++o,i.set(e,t)):t="p_"+e,n.data_[t]);if(r&&u.owns(n.data_,t))for(n=0;n<r.length;n++){var a=r[n];if(e!=e&&a.key!=a.key||e===a.key)return{id:t,list:r,index:n,entry:a}}return{id:t,list:r,index:-1,entry:void 0}}),e=function(n,e){var t=n.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=n.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:e(t)};t=null}return{done:!0,value:void 0}})},t=function(){var n={};return n.previous=n.next=n.head=n},o=0;return n},"es6","es3"),"omid_message_guid"),a="omid_message_method",i="omid_message_version",o="omid_message_args",s=function(n,e,t,r){this.guid=n,this.method=e,this.version=t,this.args=r},c=(s.isValidSerializedMessage=function(n){return!!n&&void 0!==n[t]&&void 0!==n[a]&&void 0!==n[i]&&"string"==typeof n[t]&&"string"==typeof n[a]&&"string"==typeof n[i]&&(void 0===n[o]||void 0!==n[o])},s.deserialize=function(n){return new s(n[t],n[a],n[i],n[o])},s.prototype.serialize=function(){var n={};return n[t]=this.guid,n[a]=this.method,n[i]=this.version,void 0!==this.args&&(n[o]=this.args),n},{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",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",STATE_CHANGE:"stateChange"},MediaEventType:{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"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},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",LEFT:"left",Y:"y",TOP:"top",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",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),l=function(n){this.to=n,this.communicationType_=c.CommunicationType.NONE};function d(n,e){if(!e)throw Error("Value for "+n+" is undefined, null or blank.");if("string"!=typeof e&&!(e instanceof String))throw Error("Value for "+n+" is not a string.");if(""===e.trim())throw Error("Value for "+n+" is empty string.")}function f(n,e){if(null==e)throw Error("Value for "+n+" is undefined or null")}function p(n,e){if(null==e)throw Error(n+" must not be null or undefined.");if("number"!=typeof e||isNaN(e))throw Error("Value for "+n+" is not a number")}function m(n,e,t,r){if(p(n,e),e<t||r<e)throw Error("Value for "+n+" is outside the range ["+t+","+r+"]")}function x(n,e){return n&&(n[e]||(n[e]={}))}function n(n,e,t){(t=void 0===t?void 0===r?null:r:t)&&((n=n.split(".")).slice(0,n.length-1).reduce(x,t)[n[n.length-1]]=e)}function _(n,e,t,r){r=void 0===r?c.AccessMode.FULL:r,d("VerificationScriptResource.resourceUrl",n),this.resourceUrl=n,this.vendorKey=e,this.verificationParameters=t,this.accessMode=r}function v(n,e){d("UniversalAdId.value",n),d("UniversalAdId.idRegistry",e),this.value=n,this.idRegistry=e}function h(n,e,t,r,a){t=void 0===t?null:t,r=void 0===r?null:r,a=void 0===a?null:a,f("Context.partner",n),this.partner=n,this.verificationScriptResources=e,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=r,this.underEvaluation=!1,this.serviceWindow=null,this.universalAdId=a}l.prototype.sendMessage=function(n,e){},l.prototype.handleMessage=function(n,e){this.onMessage&&this.onMessage(n,e)},l.prototype.serialize=function(n){return JSON.stringify(n)},l.prototype.deserialize=function(n){return JSON.parse(n)},l.prototype.isDirectCommunication=function(){return this.communicationType_===c.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},n("OmidSessionClient.Partner",function(n,e){d("Partner.name",n),d("Partner.version",e),this.name=n,this.version=e}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},n("OmidSessionClient.VerificationScriptResource",_),v.prototype.toSerialisedValue=function(){return this.value+"; "+this.idRegistry},n("OmidSessionClient.UniversalAdId",v),h.prototype.setVideoElement=function(n){f("Context.videoElement",n),this.videoElement=n},h.prototype.setSlotElement=function(n){f("Context.slotElement",n),this.slotElement=n},h.prototype.setServiceWindow=function(n){f("Context.serviceWindow",n),this.serviceWindow=n},n("OmidSessionClient.Context",h);var g={},E=(g.omidGlobal=function(){if(void 0!==e&&e)return e;if(void 0!==cn&&cn)return cn;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var n=Function("return this")();if(n)return n;throw Error("Could not determine global object context.")}(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),y={sessionError:"reportError"},U=Object.keys(c.MediaEventType).map(function(n){return c.MediaEventType[n]}),V=["impressionOccurred"],S=function(n){n=void 0===n?g.omidGlobal:n,this.interfaceRoot_=n[E.ROOT]};function F(){return"undefined"!=typeof crypto&&"function"==typeof crypto.getRandomValues}function I(){return(F()?W:j)()}function W(){var n=new Uint8Array(16);crypto.getRandomValues(n),n[6]=15&n[6]|64,n[8]=63&n[8]|128;for(var e=[],t=0;t<16;t++)e.push(n[t].toString(16).padStart(2,"0"));return e[0]+e[1]+e[2]+e[3]+"-"+e[4]+e[5]+"-"+e[6]+e[7]+"-"+e[8]+e[9]+"-"+e[10]+e[11]+e[12]+e[13]+e[14]+e[15]}function j(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random()|0;return n=("y"===n?3&e|8:e).toString(16)})}function A(){var n=u.getRestArguments.apply(0,arguments);B(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(n))))},function(){console.error.apply(console,u.arrayFromIterable(n))})}function B(n,e){"undefined"!=typeof jasmine&&jasmine?n():"undefined"!=typeof console&&console&&console.error&&e()}S.prototype.isSupported=function(){return null!=this.interfaceRoot_},S.prototype.sendMessage=function(n,e,t){if("registerSessionObserver"==n&&(t=[e]),e=this.interfaceRoot_,0<=V.indexOf(n=y[n]?y[n]:n)&&(e=e[E.AD_EVENTS]),!(e=(e=0<=U.indexOf(n)?e[E.MEDIA_EVENTS]:e)[n]))throw Error("Unrecognized method name: "+n+".");e.apply(null,u.arrayFromIterable(t))};var T="1.6.6-iab457",H=3;function b(n){return/\d+\.\d+\.\d+(-.*)?/.test(n)}function O(n,e){n=n.split("-")[0].split("."),e=e.split("-")[0].split(".");for(var t=0;t<H;t++){var r=parseInt(n[t],10),a=parseInt(e[t],10);if(a<r)break;if(r<a)return!1}return!0}var C="1.0.3";function q(n,e){return b(n)&&O(n,C)?e:JSON.stringify(e)}function G(n,e){return b(n)&&O(n,C)?e||[]:e&&"string"==typeof e?JSON.parse(e):[]}var z={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function Y(n){return K(n,z.SESSION_SERVICE)}function K(n,e){return e+n}function M(n){return null!=n&&void 0!==n.top&&null!=n.top}function X(n){var e;if(n!==g.omidGlobal)try{if(void 0===n.location.hostname)return!0;""!==(e=n).x&&e.x}catch(n){return!0}return!1}function $(n){return M(n=void 0===n&&"undefined"!=typeof window&&window?window:n)?n:g.omidGlobal}function J(n){return M(n)?n.top:g.omidGlobal}var D=function(n){l.call(this,n),this.communicationType_=c.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,l),D.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.handleExportedMessage(n.serialize(),this)},D.prototype.handleExportedMessage=function(n,e){s.isValidSerializedMessage(n)&&this.handleMessage(s.deserialize(n),e)},D.prototype.isCrossOrigin=function(){return!1},function(n,e){e=void 0===e?g.omidGlobal:e,l.call(this,e);var t=this;this.communicationType_=c.CommunicationType.POST_MESSAGE,n.addEventListener("message",function(n){var e;"object"==typeof n.data&&(e=n.data,s.isValidSerializedMessage(e))&&(e=s.deserialize(e),n.source)&&t.handleMessage(e,n.source)})}),N=(u.inherits(R,l),R.isCompatibleContext=function(n){return!!(n&&n.addEventListener&&n.postMessage)},R.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.postMessage(n.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||X(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(n){var e={};return e[c.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,e[c.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,e[n]}});function Q(n,e){try{return n.frames&&!!n.frames[e]}catch(n){return!1}}function Z(n,e){n.document.write('<iframe style="display:none" id="'+e+'" name="'+e+'" sandbox></iframe>')}N.isOmidPresent=function(e){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return Q(e,n)})},N.getOmidEnvironment=function(n){for(var e=u.makeIterator(Object.values(c.Environment)),t=e.next();!t.done;t=e.next()){t=t.value;if(Q(n,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(e,n){e.frames&&e.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return!!e.frames[n]})&&(null==e.document.body&&N.isMutationObserverAvailable_(e)?N.registerMutationObserver_(e,n):(n=N.getEnvironmentIframeName(n),e.document.body?(N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n)):(Z(e,N.OMID_PRESENT_FRAME_NAME),Z(e,n))))},N.appendPresenceIframe_=function(n,e){var t=n.document.createElement("iframe");t.id=e,t.name=e,t.style.display="none",t.sandbox="",n.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(n){return"MutationObserver"in n},N.registerMutationObserver_=function(e,t){var r=new MutationObserver(function(n){n.forEach(function(n){"BODY"===n.addedNodes[0].nodeName&&(n=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n),r.disconnect())})});r.observe(e.document.documentElement,{childList:!0})};var nn=["omid","v1_SessionServiceCommunication"];function en(n,e){return e.reduce(function(n,e){return n&&n[e]},n)}function tn(n,e,t,r){for(var a=(e=u.makeIterator(e)).next();!a.done;a=e.next())if(a=function(n,e,t,r){if(!X(e))try{var a=en(e,t);if(a)return new D(a)}catch(n){}return r(e)?new R(n,e):null}(n,a.value,t,r))return a;return null}function rn(n,e,t){t=void 0===t?N.isOmidPresent:t;var r=[n,J(n)];return e&&r.unshift(e),tn(n,r,nn,t)}function k(n,e,t){f("AdSession.context",n),this.adSessionId_=I(),this.context_=n,this.impressionOccurred_=!1;var r=this.context_.serviceWindow||void 0;this.communication_=e||rn($(),r),this.sessionInterface_=t||new S,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(n.verificationScriptResources),this.sendSlotElement_(n.slotElement),this.sendVideoElement_(n.videoElement),this.sendContentUrl_(n.contentUrl),this.watchSessionEvents_()}function an(n,e,t,r){this.isSkippable=n,this.skipOffset=e,this.isAutoPlay=t,this.position=r}function P(n){f("AdEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerAdEvents(),this.adSession=n}catch(n){throw Error("AdSession already has an ad events instance registered")}}function w(n){f("MediaEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerMediaEvents(),this.adSession=n}catch(n){throw Error("AdSession already has a media events instance registered")}}function on(t){var n=$();new R(n).onMessage=function(n,e){n.method===c.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(e)}}k.prototype.getAdSessionId=function(){return this.adSessionId_},k.prototype.setCreativeType=function(n){if(n===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+c.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",n,this.adSessionId_),this.creativeType_=n},k.prototype.setImpressionType=function(n){if(n===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+c.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",n,this.adSessionId_),this.impressionType_=n},k.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},k.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},k.prototype.registerSessionObserver=function(n){this.sendMessage("registerSessionObserver",n,this.adSessionId_)},k.prototype.start=function(){var n={customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation};this.context_.universalAdId&&(n.universalAdId=this.context_.universalAdId.toSerialisedValue()),this.sendOneWayMessage("startSession",n,this.adSessionId_)},k.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},k.prototype.error=function(n,e){this.sendOneWayMessage("sessionError",n,e,this.adSessionId_)},k.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},k.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},k.prototype.sendOneWayMessage=function(n){var e=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[n,null].concat(u.arrayFromIterable(e)))},k.prototype.sendMessage=function(n,e){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(n,e,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(n,e,t)},k.prototype.sendInternalMessage_=function(n,e,t){var r=I();e&&(this.callbackMap_[r]=e),n=new s(r,Y(n),T,q(T,t)),this.communication_.sendMessage(n)},k.prototype.handleInternalMessage_=function(n,e){e=n.method;var t,r=n.guid;n=n.args,"response"===e&&this.callbackMap_[r]&&(t=G(T,n),this.callbackMap_[r].apply(this,t)),"error"===e&&window.console&&A(n)},k.prototype.sendInterfaceMessage_=function(n,e,t){try{this.sessionInterface_.sendMessage(n,e,t)}catch(n){A("Failed to communicate with SessionInterface with error:"),A(n)}},k.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},k.prototype.impressionOccurred=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},k.prototype.creativeLoaded=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},k.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",T,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},k.prototype.injectVerificationScripts_=function(n){n&&(n=n.map(function(n){return n.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",n,this.adSessionId_))},k.prototype.sendSlotElement_=function(n){this.sendElement_(n,"setSlotElement")},k.prototype.sendVideoElement_=function(n){this.sendElement_(n,"setVideoElement")},k.prototype.sendElement_=function(n,e){n&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(e,n,this.adSessionId_):this.error(c.ErrorType.GENERIC,"Session Client "+e+" called when communication is cross-origin"))},k.prototype.sendContentUrl_=function(n){n&&this.sendOneWayMessage("setContentUrl",n,this.adSessionId_)},k.prototype.setElementBounds=function(n){f("AdSession.elementBounds",n),this.sendOneWayMessage("setElementBounds",n,this.adSessionId_)},k.prototype.watchSessionEvents_=function(){var e=this;this.registerSessionObserver(function(n){n.type===c.AdEventType.SESSION_START&&(e.isSessionRunning_=!0,e.creativeType_=n.data.creativeType,e.impressionType_=n.data.impressionType),n.type===c.AdEventType.SESSION_FINISH&&(e.isSessionRunning_=!1)})},n("OmidSessionClient.AdSession",k),an.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},P.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},P.prototype.loaded=function(n){n=void 0===n?null:n,this.adSession.creativeLoaded(),n=n?n.toJSON():null,this.adSession.sendOneWayMessage("loaded",n,this.adSessionId_)},n("OmidSessionClient.AdEvents",P),n("OmidSessionClient.CreativeType",c.CreativeType),n("OmidSessionClient.ImpressionType",c.ImpressionType),n("OmidSessionClient.VideoPlayerState",c.VideoPlayerState),n("OmidSessionClient.InteractionType",c.InteractionType),n("OmidSessionClient.ErrorType",c.ErrorType),n("OmidSessionClient.VastProperties",an),w.prototype.start=function(n,e){p("MediaEvents.start.duration",n),m("MediaEvents.start.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("start",n,e,this.adSessionId_)},w.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},w.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},w.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},w.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},w.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},w.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},w.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},w.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},w.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},w.prototype.volumeChange=function(n){m("MediaEvents.volumeChange.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("volumeChange",n,this.adSessionId_)},w.prototype.playerStateChange=function(n){f("MediaEvents.playerStateChange.playerState",n),this.adSession.sendOneWayMessage("playerStateChange",n,this.adSessionId_)},w.prototype.adUserInteraction=function(n){f("MediaEvents.adUserInteraction.interactionType",n),this.adSession.sendOneWayMessage("adUserInteraction",n,this.adSessionId_)},n("OmidSessionClient.MediaEvents",w),n("OmidSessionClient.OmidVersion",function(n,e){d("OmidVersion.semanticVersion",n),d("OmidVersion.apiLevel",e)}),n("OmidSessionClient.listenForServiceWindow",on);var L={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9,HUMAN:10,MOBIAN:11}};function sn(n){for(var e=u.makeIterator(un.keys()),t=e.next();!t.done;t=e.next())for(var t=t.value,r=u.makeIterator(un.get(t)),a=r.next();!a.done;a=r.next())if(a.value.test(n))return t;return L.VerificationVendorId.OTHER}var un=new Map([[L.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[L.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[L.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[L.VerificationVendorId.NIELSEN,[]],[L.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[L.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[L.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]],[L.VerificationVendorId.HUMAN,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.script\.ac\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\/(2|ag|static)\/[a-zA-Z0-9.]*\/analytics.js.*$/]],[L.VerificationVendorId.MOBIAN,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.outcomes\.net\/.*$/]]]);n("OmidSessionClient.verificationVendorIdForScriptUrl",sn),n("OmidSessionClient.VerificationVendorId",L.VerificationVendorId),L.verificationVendorIdForScriptUrl=sn}var cn="object"==typeof globalThis?globalThis:window,e={},t=void 0===cn?this:cn;if("object"==typeof(a=void 0===e?void 0:e)&&"string"!=typeof a.nodeName)n(t,a);else{var r,a={},i=["1.6.6-iab457"],o="default";for(r in i.push(o),n(t,a),a)a.hasOwnProperty(r)&&(null==Object.getOwnPropertyDescriptor(t,r)&&Object.defineProperty(t,r,{value:{}}),i.forEach(function(n){var e;null==Object.getOwnPropertyDescriptor(t[r],n)&&(e=function n(e){if("string"==typeof e)return e;for(var t in e)e.hasOwnProperty(t)&&(e[t]=n(e[t]));return Object.freeze(e)}(a[r]),Object.defineProperty(t[r],n,{get:function(){return e},enumerable:!0}))}))}s.OmidSessionClient=e.OmidSessionClient}(),Cl("aws_mtsdk","1.15.1"),t={},n=self,e=function(){"use strict";var r={d:function(n,e){for(var t in e)r.o(e,t)&&!r.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}},d={},f=(r.d(d,{"default":function(){return g}}),1),m=2,_=4,E="[MT] ",A=function(n){return n[n["NONE"]=0]="NONE",n[n["ERROR"]=1]="ERROR",n[n["WARNING"]=2]="WARNING",n[n["INFO"]=3]="INFO",n[n["DEBUG"]=4]="DEBUG",n[n["VERBOSE"]=5]="VERBOSE",n}({}),T=m;function G(n,e,t,r){n<=T&&(t=E+t,void 0===r?e.call(console,t):e.call(console,t,r))}var b=console.error,O=console.warn,ln=(console.info,console.debug);function u(n,e){G(f,b,n,e)}function z(n,e){G(m,O,n,e)}function Y(n,e){G(_,ln,n,e)}function t(n){return(t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function i(n){var e;return null==(e="object"===("undefined"==typeof globalThis?"undefined":t(globalThis))?globalThis:window)?void 0:e[n]}function v(n){if(n){if(Array.isArray(n))return n.slice();if("object"===t(n))return Object.assign({},n)}return null}function K(n){if(n)try{return JSON.parse(JSON.stringify(n))}catch(n){u("Exception during deep-copy: ".concat(n),n)}return null}function C(n,e){if(null!=n)try{return new Sl(n,e).toString()}catch(n){u("URL Exception: ".concat(n),n)}return null}function X(n,e,t){var r=(null==e?void 0:e.length)||0;if(0<r)for(var a=0,i=r-1;a<=i;){var o=Math.ceil((a+i)/2),s=t(n,e[o]);if(0===s)return o;0<s?a=o+1:i=o-1}return-1}function dn(n,e,t){var r=(null==e?void 0:e.length)||0;if(0<r){for(var a=0,i=r-1;a<i;){var o=Math.ceil((a+i)/2),s=t(n,e[o]);if(0===s)return o;0<s?a=o:i=o-1}if(0<a||0<=t(n,e[a]))return a}return-1}for(var o=[],n=0;n<256;n++)o.push((n+256).toString(16).substr(1).toLowerCase());var M=!(null==(e=i("crypto"))||!e.getRandomValues);M||z("crypto.getRandomValues() unavailable");var D=/P.*T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?/;var R=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],s=null;function N(t){var n,r,e,a="nonceReq: ";return s?(n=null==(n=i("goog"))||null==(n=n.pal)?void 0:n.NonceRequest)?((r=new n).omidPartnerName=g.defaultOmidPartnerName,r.omidPartnerVersion=g.defaultOmidPartnerVersion,r.supportedApiFrameworks=v(g.defaultSupportedApiFrameworks),R.forEach(function(n){var e=t[n];null!=e&&(r[n]=e)}),r.sessionId||(r.sessionId=function(){var n=new Uint8Array(16);if(M)crypto.getRandomValues(n);else for(var e=0;e<16;e++)n[e]=Math.floor(256*Math.random());return n[6]=15&n[6]|64,n[8]=63&n[8]|128,o[n[0]]+o[n[1]]+o[n[2]]+o[n[3]]+"-"+o[n[4]]+o[n[5]]+"-"+o[n[6]]+o[n[7]]+"-"+o[n[8]]+o[n[9]]+"-"+o[n[10]]+o[n[11]]+o[n[12]]+o[n[13]]+o[n[14]]+o[n[15]]}()),(e=null==(e=(n=s).loadNonceManager)?void 0:e.call(n,r))?Y(a+"Request sent",r):u(a+"Request failed",r),e):(u(a+"Missing PAL SDK classes"),null):(u(a+"PAL isn't initialized"),null)}function fn(n){try{return JSON.parse(n)}catch(n){return z("JSON Parse Exception: ".concat(n),n),null}}function k(a,i,o,s,r){var u=new XMLHttpRequest,c=null==s?void 0:s.retryHeuristics,l=0,d=!1;function f(){if(!d)try{e=u,n=a,r=null==(t=s)?void 0:t.headers,e.open(n,i,!0),e.timeout=null!=(n=null==t?void 0:t.timeout)?n:0,r&&Object.keys(r).forEach(function(n){e.setRequestHeader(n,r[n])}),l++,u.send(o),Y("XHR (".concat(a," ").concat(i,", #").concat(l,") request sent"),o)}catch(n){z("XHR Exception: ".concat(n),n)}var e,n,t,r}return u.onreadystatechange=function(){if(!d&&4===u.readyState){var n=u.status,e=u.responseText;if(Y("XHR (".concat(i,") response received, status ").concat(n),e),n<200||299<n){var t=c?c(l,n,e):-1;if(0<=t)return setTimeout(f,t),void z("XHR (".concat(i,") failed (status ").concat(n,"), retry in ").concat(t," ms"),e)}r&&r(e,n,i)}},f(),{abort:function(){d=!0,u.abort(),Y("XHR (".concat(i,") aborted"))}}}function pn(n,e,t){return k("GET",n,null,e,t)}function P(n,e,t,r){try{(t=v(t)||{}).headers=(o={"Content-Type":"application/json; charset=utf-8"},s=t.headers,o&&s?Object.assign(o,s):o),a=n,i=JSON.stringify(e),k("POST",a,i,t,function(n,e,t){200===e&&null!=n&&(n=fn(n)),r&&r(n,e,t)})}catch(n){z("JSON Encode Exception: ".concat(n),n)}var a,i,o,s}function w(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function $(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var r,a,i,o,s=[],u=!0,c=!1;try{if(i=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(r=i.call(t)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(n){c=!0,a=n}finally{try{if(!u&&null!=t["return"]&&(o=t["return"](),Object(o)!==o))return}finally{if(c)throw a}}return s}}(n,e)||function(n,e){var t;if(n)return"string"==typeof n?w(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?w(n,e):void 0}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var L="ad_start",x="ad_progress",U="ad_click",V="ad_can_skip",mn="ad_incoming",F="nonlinear_ad_start",W="nonlinear_ad_end",j="ad_tracking_info_response",e="impression",J="firstQuartile",Q="midpoint",Z="thirdQuartile",nn="complete",a="creativeView",p=[],B=(p[0]=[e],p[1]=["clickTracking"],p[2]=["loaded"],p[3]=["start",a],p[4]=[J],p[5]=[Q],p[6]=[Z],p[7]=[nn],p[8]=["skip"],p[9]=["pause"],p[10]=["resume"],p[11]=["mute"],p[12]=["unmute"],p[13]=["fullscreen","playerExpand"],p[14]=["exitFullscreen","playerCollapse"],{});function _n(s,u,c,l){var d={},f=null;return{onAdLoad:function(n){f={},null!=(n=n.trackingEvents)&&n.forEach(function(n){f[n.eventType]=n})},onAdEnd:function(n){f=null},onAdTrackingEvent:function(n,e){var t=p[e];if(f&&1===n.playCount&&t)for(var r=t.length,a=0;a<r;a++){var i,o=t[a];s&&null!=(i=B[o])&&i.noninteractive||!function(r,a){var n=null==a?void 0:a.beaconUrls;if(n)for(var e=n.length,t=0;t<e;t++){var i=null==(i=n[t])?void 0:i.trim();i&&(c(r,a,i,u),g.enableAdBeaconsDelivery)&&(u?fetch(i,{mode:"no-cors"}):pn(i,d,function(n,e,t){l(r,a,t,e)}))}}(n,f[o])}}}}function H(n,e){var t,r,a,i,o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(o)return r=!(t=!0),{s:function(){o=o.call(n)},n:function(){var n=o.next();return t=n.done,n},e:function(n){r=!0,a=n},f:function(){try{t||null==o["return"]||o["return"]()}finally{if(r)throw a}}};if(Array.isArray(n)||(o=function(n,e){var t;if(n)return"string"==typeof n?q(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?q(n,e):void 0}(n))||e&&n&&"number"==typeof n.length)return o&&(n=o),i=0,{s:e=function(){},n:function(){return i>=n.length?{done:!0}:{done:!1,value:n[i++]}},e:function(n){throw n},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function q(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}[e,"loaded","start",a,J,Q,Z,nn].forEach(function(n){B[n]={noninteractive:!0}});var en="adData: ";function y(n){return n&&"object"===t(n)&&n}function tn(n,e){if(!y(n))return null;for(var t=$(e,2)[1],r={},a=t.length,i=0;i<a;i++){var o=$(t[i],3),s=o[0],u=o[1],o=o[2],o=o[0](n[s],o);if(null!=o)r[s]=o;else if(!u)return Y(en+"Missing object field: ".concat(s),n),null}return r}function S(n){return n&&Array.isArray(n)?n:null}function I(n,e){if(!S(n))return null;for(var e=$(e,3),t=e[1],r=e[2],a=[],i=n.length,o=0;o<i;o++){var s=r[0](n[o],r);null!=s||t?a.push(s):Y(en+"Invalid array entry at: ".concat(o),n)}return a}function rn(n){return"number"==typeof n?n:null}function an(n){return"string"==typeof n?n:null}var e=[rn],a=[an],vn=[function(n){return"boolean"==typeof n?n:null}],c=[tn,[["creativeType",!0,a],["uri",!1,a]]],hn=[tn,[["content",!1,a],["type",!1,a]]],gn=[tn,[["beaconUrls",!1,[I,!1,a]],["durationInSeconds",!0,e],["eventId",!0,a],["eventProgramDateTime",!0,a],["eventType",!1,a],["startTimeInSeconds",!0,e]]],En=[I,!1,[tn,[["beaconUrls",!1,[I,!1,a]],["eventType",!1,a]]]],yn=[tn,[["adId",!0,a],["adParameters",!0,a],["adSystem",!0,a],["adTitle",!0,a],["adVerifications",!0,[I,!1,[tn,[["executableResource",!0,[I,!1,[tn,[["apiFramework",!0,a],["language",!0,a],["type",!0,a],["uri",!0,a]]]]],["javaScriptResource",!0,[I,!1,[tn,[["apiFramework",!0,a],["browserOptional",!0,a],["uri",!0,a]]]]],["trackingEvents",!0,[I,!1,[tn,[["event",!1,a],["uri",!1,a]]]]],["vendor",!0,a],["verificationParameters",!0,a]]]]],["icons",!0,[I,!1,[tn,[["program",!0,a],["width",!0,a],["height",!0,a],["xPosition",!0,a],["yPosition",!0,a],["apiFramework",!0,a],["duration",!0,a],["offset",!0,a],["pxratio",!0,a],["staticResources",!0,[I,!1,c]],["iconClicks",!0,[tn,[["iconClickThrough",!0,a],["iconClickFallbackImages",!0,[I,!1,[tn,[["width",!0,a],["height",!0,a],["altText",!0,a],["staticResources",!0,[I,!1,c]]]]]]]]]]]]],["companionAds",!0,[I,!1,[tn,[["adParameters",!0,a],["altText",!0,a],["attributes",!0,[tn,[["adSlotId",!0,a],["apiFramework",!0,a],["assetHeight",!0,a],["assetWidth",!0,a],["expandedHeight",!0,a],["expandedWidth",!0,a],["height",!0,a],["id",!0,a],["pxratio",!0,a],["renderingMode",!0,a],["width",!0,a]]]],["companionClickThrough",!0,a],["companionClickTracking",!0,a],["htmlResource",!0,a],["iFrameResource",!0,a],["sequence",!0,a],["staticResource",!0,a],["trackingEvents",!0,[I,!1,[tn,[["beaconUrls",!1,[I,!1,a]],["eventType",!1,a]]]]]]]]],["creativeId",!0,a],["creativeSequence",!0,a],["extensions",!0,[I,!1,hn]],["trackingEvents",!0,[I,!1,gn]],["vastAdId",!0,a]]],Sn=[tn,[["nonLinearAdList",!1,[I,!1,[tn,[["durationInSeconds",!0,e],["adId",!0,a],["adParameters",!0,a],["adSystem",!0,a],["adTitle",!0,a],["creativeId",!0,a],["creativeAdId",!0,a],["creativeSequence",!0,a],["width",!0,a],["height",!0,a],["expandedWidth",!0,a],["expandedHeight",!0,a],["scalable",!0,vn],["maintainAspectRatio",!0,vn],["minSuggestedDuration",!0,a],["apiFramework",!0,a],["staticResource",!0,a],["staticResourceCreativeType",!0,a],["iFrameResource",!0,a],["htmlResource",!0,a],["clickThrough",!0,a],["clickTracking",!0,a],["clickTrackingId",!0,a]]]]],["extensions",!0,[I,!1,hn]],["trackingEvents",!0,[I,!1,gn]]]],In=new DOMParser,An=/\n|<!\[CDATA\[|\]\]>/g;function on(n){n=null==n?void 0:n.textContent;return null==n?null:n.replace(An,"").trim()}function sn(n,e,t){t&&(n[e]=t)}function un(n,e){var t,r=H(n.children);try{for(r.s();!(t=r.n()).done;){var a,i=t.value;null!=(a=e[i.tagName])&&a.call(e,i)}}catch(n){r.e(n)}finally{r.f()}}function Tn(n){var t=[];return un(n,{IconClickFallbackImage:function(n){var e={};t.push(e),sn(e,"width",n.getAttribute("width")),sn(e,"height",n.getAttribute("height")),un(n,{AltText:function(n){sn(e,"altText",on(n))},StaticResource:function(n){sn(e,"staticResource",on(n))}})}}),t}function bn(n){return n&&new Date("1970-01-01T".concat(n,"Z")).getTime()/1e3}function On(n,i,v){var h,g,a;if(y(n))return h=an(n.dashAvailabilityStartTime),null!=(g=S(n.avails))&&g.forEach(function(n){if(y(n)){var o=an(n.availId);if(o){var s=rn(n.startTimeInSeconds),u=rn(n.durationInSeconds),c=(e=(e=an(n.adMarkerDuration))&&D.exec(e))?3600*((r=e[1])?+r:0)+60*((r=e[2])?+r:0)+((r=e[3])?+r:0):null,l=I(n.adBreakTrackingEvents,En),d=((d=an(n.availProgramDateTime))?new Date(d).getTime()/1e3:h?new Date(h).getTime()/1e3+s:0)||0,e=(E(!1,n,o,s,u,d,c,l),i[o]),t="",f=S(n.ads),r=(null!=f&&f.forEach(function(n){y(n)&&(t+="".concat(n.adId,",").concat(n.startTime,",").concat(n.duration,";"))}),!e||t!==e.digest);if(Y(en+"Avail ".concat(r?e?"!":"":"~").concat(o," ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),r){var p={},m=null==e?void 0:e.ads,_=null==f?void 0:f.length;if(null!=f&&f.forEach(function(n,e){var t,r,a,i;y(n)?(t=an(n.adId))?null==(r=rn(n.startTimeInSeconds))?z(en+"Invalid or missing ad start time",n):(p[t]={start:r,duration:n.duration},a=null,m&&(a=m[t],m[t]=null),i=!a||r!==a.start||n.duration!==a.duration,Y(en+"Ad ".concat(i?a?"!":"":"~").concat(t," ")+"(#".concat(e+1," of ").concat(_,") ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.adProgramDateTime,")"),n),i&&v(r,o,e,_,s,u,d,c,l,n,!1,!1,null==(t=a)?void 0:t.start)):z(en+"Missing ad ID",n):z(en+"Invalid ad object",f)}),m)for(var a in m){a=m[a];a&&v(0,o,0,0,s,u,d,c,l,null,!1,!1,a.start)}i[o]={digest:t,ads:p}}}else z(en+"Missing avail ID",n)}else z(en+"Invalid avail object",g)}),null!=(a=S(n.nonLinearAvails))&&a.forEach(function(n){var e,t,r;y(n)?(r=an(n.availId),Y(en+"nonLinearAvail ".concat(r," (").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),e=rn(n.startTimeInSeconds),t=I(n.adBreakTrackingEvents,En),E(!0,n,r,e,null,r=((r=an(n.availProgramDateTime))?new Date(r).getTime()/1e3:h?new Date(h).getTime()/1e3+e:0)||0,null,t)):z(en+"Invalid nonLinearAvail object",a)}),(n=an(n.nextToken))&&Y(en+'nextToken "'.concat(n,'"')),n;function E(n,e,t,r,a,i,o,s){e=null==(e=S(e.nonLinearAdsList))?void 0:e[0];e&&(y(e)?null==r?z(en+"Invalid or missing nonlinear ad start time",e):(Y(en+"nonLinearAds",e),v(r,t,0,1,r,a,i,o,s,e,!0,n)):z(en+"Invalid nonLinearAds object",e))}z(en+"Invalid tracking-info response")}c=function(n){return n[n["AD_START"]=L]="AD_START",n[n["AD_END"]="ad_end"]="AD_END",n[n["AD_PROGRESS"]=x]="AD_PROGRESS",n[n["AD_CLICK"]=U]="AD_CLICK",n[n["AD_CAN_SKIP"]=V]="AD_CAN_SKIP",n[n["AD_INCOMING"]=mn]="AD_INCOMING",n[n["NONLINEAR_AD_START"]=F]="NONLINEAR_AD_START",n[n["NONLINEAR_AD_END"]=W]="NONLINEAR_AD_END",n[n["AD_TRACKING_INFO_RESPONSE"]=j]="AD_TRACKING_INFO_RESPONSE",n}({});function Cn(){var r=new Al,i=null,a=null,o=-1,s=!1;function u(n,e){r.dispatchEvent(new Tl(n,{detail:e}))}function c(n,e){var t=n.availDuration,r=n.inAvailStartOffset;return{toAdEnd:n.duration-e,toAvailEnd:null!=t&&null!=r?t-r-e:null,toSkipThreshold:0<=o?Math.max(0,o-e):null}}return{addEventListener:function(n,e,t){r.addEventListener(n,e,t)},removeEventListener:function(n,e,t){r.removeEventListener(n,e,t)},onTrackingInfoResponse:function(n){u(j,{failedAdTrackingInfoRequest:n})},onAdStart:function(n,e,t){var r,a;a=e,t=t,i={adData:K(r=n),adClickthroughUrl:r.videoClickThrough,targetPlayheadForAdSkip:t+r.duration-a},o=n.skipOffset,s=!1,u(L,{adObject:i,adElapsedTime:e,adCountdown:c(n,e)})},onAdEnd:function(n){u("ad_end",{adObject:i}),i=null},onAdProgress:function(n,e,t){u(x,{adObject:i,adElapsedTime:e,adCountdown:c(n,e)}),!s&&0<=o&&o<=e&&(s=!0,u(V,{adObject:i}))},onAdClick:function(n){u(U,{adObject:i,adClickthroughUrl:i.adClickthroughUrl})},onNonLinearAdsStart:function(n,e,t){a={adData:K(n)},u(F,{nonLinearAdsObject:a,adElapsedTime:e})},onNonLinearAdsEnd:function(n){u(W,{nonLinearAdsObject:a}),a=null},dispatchEvent:u}}var e=function(n){return n[n["START"]=0]="START",n[n["END"]=1]="END",n[n["PAUSE"]=2]="PAUSE",n[n["RESUME"]=3]="RESUME",n[n["MUTE"]=4]="MUTE",n[n["UNMUTE"]=5]="UNMUTE",n[n["FULLSCREEN"]=6]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=7]="EXIT_FULLSCREEN",n}({}),cn=[],vn=(cn[0]="IMPRESSION",cn[1]="CLICK_THROUGH",cn[2]="LOADED",cn[3]="START",cn[4]="FIRST_QUARTILE",cn[5]="MID_POINT",cn[6]="THIRD_QUARTILE",cn[7]="COMPLETE",cn[8]="SKIP",cn[9]="PAUSE",cn[10]="RESUME",cn[11]="MUTE",cn[12]="UNMUTE",cn[13]="FULLSCREEN",cn[14]="EXIT_FULLSCREEN",function(n){return n[n["IMPRESSION"]=0]="IMPRESSION",n[n["CLICK_THROUGH"]=1]="CLICK_THROUGH",n[n["LOADED"]=2]="LOADED",n[n["START"]=3]="START",n[n["FIRST_QUARTILE"]=4]="FIRST_QUARTILE",n[n["MID_POINT"]=5]="MID_POINT",n[n["THIRD_QUARTILE"]=6]="THIRD_QUARTILE",n[n["COMPLETE"]=7]="COMPLETE",n[n["SKIP"]=8]="SKIP",n[n["PAUSE"]=9]="PAUSE",n[n["RESUME"]=10]="RESUME",n[n["MUTE"]=11]="MUTE",n[n["UNMUTE"]=12]="UNMUTE",n[n["FULLSCREEN"]=13]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=14]="EXIT_FULLSCREEN",n}({}));function Mn(i,e,S){var s,u="adTracking: ",I=function(n,e){return n-e.start},x=function(n,e){return n-e.startDate},t=function(n,e){return n.start-e.start},U={headers:{"Cache-Control":"no-cache, no-store"}},n=null,c=(i&&(r=i.split("/"),n=r[r.length-1]),i?S.defaultTrackingRequestInterval||10:-1),V=null!=(r=S.incomingAdCountdownInterval)?r:5,r=S.adTrackingUpdateMode||"pagination",F="playhead"===r,W="pagination"===r,A=[],j={},T=[],b={},l=null,d=null,f=null,p=null,m=null,_=null,v=null,h=null,g=null,E=null,o=null,O=null,y=null,C=null,M=0,D=0,R=0,N=[],k=Cn();function P(n,e){for(var t=N.length,r=0;r<t;r++){var a,i=N[r];null!=(a=i[n])&&a.apply(i,e)}}function w(n,e){e=e||l,Y(u+"Ad tracking event ".concat(cn[n]),e),P("onAdTrackingEvent",[e,n])}function B(n,e){!n.startDate&&O&&(n.startDate=e+O);e=s;(s=!!n.startDate)!==e&&Y(u+"Set adHasStartDate to ".concat(s))}function H(n,e){var E,y;200===e?(y=E=!1,o=On(n,j,function(n,e,t,r,a,i,o,s,u,c,l,d,f){var p,m,_,v,h,g;null!=a&&o&&(O=o-a),l?(l="".concat(e||n||0),!b[l]&&(p=n,o=o,m=e,_=u,d=d,m=(g=tn(v=c,Sn))?g.nonLinearAdList.length?(h=g.nonLinearAdList.reduce(function(n,e){var t=e.durationInSeconds||0;return t<=0&&(t=bn(e.minSuggestedDuration)||0),Math.max(n,t)},0)||5,Object.assign(g,{start:p,startDate:o,duration:h,availId:m,nonlinearAvail:d,adBreakTrackingEvents:_}),Y(en+"New NonLinearAdsData (".concat(h,"s @ ").concat(p,"s / ").concat(o,"s)"),g),g):(z(en+"Empty nonLinearAdList",v),null):(z(en+"Missing required fields for NonLinearAdsData",v),null))&&(B(m,n),b[l]=m,X(n,T,I)<0&&(T.push(m),y=!0),P("onNewNonLinearAds",[m]))):(d=null!=f?X(f,A,I):-1,(_=c&&function(t,n,e,r,a,i,o,s,u){var c=rn(u.durationInSeconds);if(null==c||c<=0)return z(en+"Invalid or missing ad duration",u),null;var l=(l=an(u.adProgramDateTime))&&new Date(l).getTime()/1e3,d=bn(an(u.skipOffset)),f=(d||0===d||(d=-1),tn(u,yn));if(!f)return z(en+"Missing required fields for AdData",u),null;function p(n,e){var t=n.getElementsByTagName("JavaScriptResource"),r=n.getElementsByTagName("VerificationParameters"),n=n.getAttribute("vendor"),t=on(null==t?void 0:t[0]),r=on(null==r?void 0:r[0]);n&&t?(f.adVerifications||(f.adVerifications=[])).push({vendor:n,javaScriptResource:[{uri:t}],verificationParameters:r}):z(en+"Invalid AdVerifications extension content",e)}null!=(u=f.extensions)&&u.forEach(function(n){if("AdVerifications"===n.type){var e=n.content;try{var t=null==(i=In.parseFromString(e,"application/xml"))?void 0:i.documentElement;if(t)if("Verification"===t.tagName)p(t,n);else{var r=t.getElementsByTagName("Verification");if(r)for(var a=0;a<r.length;a++)p(r[a],n)}}catch(n){z(en+"Exception parsing AdVerifications extension: ".concat(e),n)}}else if("companion_about_this_ad"===n.type){var i="<root>"+n.content+"</root>";try{var o,s=null==(o=In.parseFromString(i,"application/xml"))?void 0:o.documentElement;s&&un(s,{Icon:function(n){var e=f.icons||(f.icons=[]),t={};e.push(t),sn(t,"program",n.getAttribute("program")),sn(t,"width",n.getAttribute("width")),sn(t,"height",n.getAttribute("height")),sn(t,"xPosition",n.getAttribute("xPosition")),sn(t,"yPosition",n.getAttribute("yPosition")),un(n,{StaticResource:function(n){sn(t,"staticResource",on(n))},IconClicks:function(n){var e={};t.iconClicks=e,un(n,{IconClickThrough:function(n){sn(e,"iconClickThrough",on(n))},IconClickFallbackImages:function(n){n=Tn(n);n.length&&(e.iconClickFallbackImages=n)}})}})}})}catch(n){z(en+"Exception parsing AdChoices extension: ".concat(i),n)}}else if("IconClickFallbackImages"===n.type){t="<root>"+n.content+"</root>";try{var u,c=null==(u=In.parseFromString(t,"application/xml"))?void 0:u.documentElement;c&&un(c,{IconClickFallbackImages:function(n){var e={},n=((f.icons||(f.icons=[])).push(e),sn(e,"program",n.getAttribute("program")),Tn(n));n.length&&(e.iconClicks={iconClickFallbackImages:n})}})}catch(n){z(en+"Exception parsing AdChoices extension: ".concat(t),n)}}});var m=[0,0,0,0];function _(n,e){e-=t;0<e&&e<c+.01&&(m[n]=e)}return Object.assign(f,{start:t,startDate:l||0,duration:c,skipOffset:d,availId:n,availAdIndex:e,availAdCount:r,availStart:a,availDuration:i,availMarkedDuration:o,adBreakTrackingEvents:s,inAvailStartOffset:null!=a?t-a:null,playCount:0,quartileEventOffsets:m}),f.videoClickThrough=null,f.trackingEvents=null==(u=f.trackingEvents)?void 0:u.filter(function(n){switch(n.eventType){case"clickThrough":var e=n.beaconUrls[0];return e&&(f.videoClickThrough=e),!1;case J:_(0,n.startTimeInSeconds);break;case Q:_(1,n.startTimeInSeconds);break;case Z:_(2,n.startTimeInSeconds);break;case nn:_(3,n.startTimeInSeconds)}return!0}),Y(en+"New AdData (".concat(c,"s @ ").concat(t,"s / ").concat(l,")"),f),f}(n,e,t,r,a,i,s,u,c))?(B(_,n),0<=d&&(_.playCount=A[d].playCount,A.splice(d,1)),n!==f&&0<=(h=X(n,A,I))&&A.splice(h,1),A.push(_),E=!0,P("onNewAd",[_,0<=d])):0<=d&&(c||S.detectAdRemoval)&&(A.splice(d,1),E=!0))}),E&&(A.sort(t),d=f=null,p=null),y&&(T.sort(t),_=v=null,h=null),P("onTrackingInfoResponse",[!1])):(z(u+"Request failed, status ".concat(e),n),P("onTrackingInfoResponse",[!0])),g=null}function L(n,e){var t,r,a;i&&(t=[["tttt","".concat(Date.now())]],F&&t.push(["aws.playheadPositionInSeconds",""+Math.round(e&&O?e-O:n)]),W&&o&&t.push(["aws.nextToken",o]),null!=(e=g)&&e.abort(),n=t,e=new Sl(e=i),a=new Il(e.search),n.forEach(function(n){a.append(n[0],n[1])}),e.search="?"+a.toString(),t=e.toString(),r=H,g=pn(t,U,function(n,e,t){200===e&&null!=n&&(n=fn(n)),r&&r(n,e,t)}))}function q(n,e,t,r){var a,i,o=r?"startDate":"start",t=dn(t,e,r?x:I),r=0<=t?(i=(a=e[t])[o],t+1<e.length?e[t+1][o]:Number.MAX_VALUE):(a=null,i=Number.MIN_VALUE,e.length?e[0][o]:Number.MAX_VALUE);return Y(u+"Update time range (".concat(i," - ").concat(r,"), ")+"".concat(n," ad index ").concat(t),a),[a,i,r]}function a(n){n&&N.indexOf(n)<0&&N.push(n)}return 0<=c&&L(0),a(k),a(_n(S.disableNoninteractiveClientSideBeaconing||"server"===(null==(r=S.sessionFeatures)?void 0:r.reportingMode),S.sendAdBeaconsInNoCorsMode&&"function"==typeof fetch,function(n,e,t,r){P("onAdBeaconRequest",[n,e,t,r])},function(n,e,t,r){P("onAdBeaconResponse",[n,e,t,r])})),{updateAdTrackingInfo:function(n,e){var t;null==n?(L(null!=(t=y)?t:0,C),E=y):(null!=(t=g)&&t.abort(),H(n,200))},startUpdatingAdTrackingInfo:function(n){i?(c=n||10,E=null):z(u+"Missing 'trackingUrl'")},stopUpdatingAdTrackingInfo:function(){c=-1},onPlayheadUpdate:function(n,e){var t,r,a,i,o=null!=y&&y<=n&&n<y+2.5;y=n,C=e,o&&(0<=c&&!g&&(null==E||Math.abs(n-E)>=c)&&(L(n,e),E=n),o=u+"onPlayheadUpdate(".concat(n,", ").concat(e,"), ")+"adHasStartDate => ".concat(s),G(5,ln,o,i),(o=(e=!1===s?null:e)||n)<M||D+2.5<o?M=D=o:D<o&&(D=o),(null==d||o<d||f<=o)&&(i=$(q("linear",A,o,e),3),p=i[0],d=i[1],f=i[2]),i=l,a=o-d,(null==(t=l=p&&o<d+p.duration?p:null)?void 0:t.adId)===(null==i?void 0:i.adId)?l&&(Y(u+"Ad progresses, time => ".concat(a)),P("onAdProgress",[l,a,n]),t=D-d,M<=R+d+2.5)&&R<t&&(r=R,R=t,(t=l.quartileEventOffsets[0])&&r<t&&t<=R&&w(4),(t=l.quartileEventOffsets[1])&&r<t&&t<=R&&w(5),t=l.quartileEventOffsets[2])&&r<t&&t<=R&&w(6):(i&&((r=i.quartileEventOffsets[3])&&r<R+2.5&&w(7,i),Y(u+"Ad ends",i),P("onAdEnd",[i])),R=0,l&&(l.playCount++,e&&Y(u+"PDT offset => player ".concat(e-n,", ")+"ad ".concat(l.startDate-l.start),l),Y(u+"Ad loads",l),P("onAdLoad",[l]),w(2),Y(u+"Ad starts, time => ".concat(a),l),P("onAdStart",[l,a,n]),w(3),w(0))),l||(t=f-o)<=V&&k.dispatchEvent(mn,{timeToNextAd:t}),(null==_||o<_||v<=o)&&(r=$(q("nonlinear",T,o,e),3),h=r[0],_=r[1],v=r[2]),i=m,a=o-_,(m=h&&o<_+h.duration?h:null)!==i)&&(i&&(Y(u+"Nonlinear ad ends",i),P("onNonLinearAdsEnd",[i])),m)&&(e&&Y(u+"PDT offset => player ".concat(e-n,", ")+"nonlinear ad ".concat(m.startDate-m.start),m),Y(u+"Nonlinear ad starts, time => ".concat(a),m),P("onNonLinearAdsStart",[m,a,n]))},onPlaybackRateUpdate:function(n){},onPlaybackEvent:function(n){switch(n){case 0:null!=e&&e.sendPlaybackStart();break;case 1:null!=e&&e.sendPlaybackEnd()}if(l)switch(n){case 2:w(9);break;case 3:w(10);break;case 4:w(11);break;case 5:w(12);break;case 6:w(13);break;case 7:w(14)}},onVideoClick:function(n){l&&(null!=e&&e.sendAdTouch(n),P("onAdClick",[l]))},onPlayerControlClick:function(n){l&&null!=e&&e.sendAdTouch(n)},onAdClickthrough:function(){l&&(null!=e&&e.sendAdClick(),w(1))},onAdSkip:function(){l&&w(8)},addAdObserver:a,removeAdObserver:function(n){n&&0<=(n=N.indexOf(n))&&N.splice(n,1)},getAllAds:function(){return A.map(K)},getAllNonLinearAds:function(n){return n?Object.keys(b).map(function(n){return K(b[n])}):T.map(K)},getSessionId:function(){return n},addEventListener:function(n,e,t){k.addEventListener(n,e,t)},removeEventListener:function(n,e,t){k.removeEventListener(n,e,t)}}}var h=function(n){return n[n["INVALID_CONFIG"]=0]="INVALID_CONFIG",n[n["INVALID_INIT_RESPONSE"]=1]="INVALID_INIT_RESPONSE",n[n["INIT_DISRUPTED"]=2]="INIT_DISRUPTED",n[n["INIT_ERROR"]=3]="INIT_ERROR",n}({});function l(t,n,r,a){var i,e,o=null,s=t.trackingUrl,u=t.sessionInitUrl,c=t.sessionInitHeaders,l=null!=(e=t.sessionInitTimeout)?e:3e4,d=null!=(e=t.sessionInitMaxRetries)?e:8,f=t.palNonceManager||n,p=null!=(e=null==f||null==(e=f.getNonce)?void 0:e.call(f))?e:null,m=n?v(t.palNonceRequestParams):null,_={getPlaybackUrl:function(){return o},getTrackingUrl:function(){return s},getPalNonce:function(){return p},getPalNonceRequestParams:function(){return m},getSessionId:function(){return i.getSessionId()},updateAdTrackingInfo:function(n,e){i.updateAdTrackingInfo(n,e)},startUpdatingAdTrackingInfo:function(n){i.startUpdatingAdTrackingInfo(n)},stopUpdatingAdTrackingInfo:function(){i.stopUpdatingAdTrackingInfo()},onPlayheadUpdate:function(n,e){i.onPlayheadUpdate(n,e)},onPlaybackRateUpdate:function(n){i.onPlaybackRateUpdate(n)},onPlaybackEvent:function(n){i.onPlaybackEvent(n)},onVideoClick:function(n){i.onVideoClick(n)},onPlayerControlClick:function(n){i.onPlayerControlClick(n)},onAdClickthrough:function(){i.onAdClickthrough()},onAdSkip:function(){i.onAdSkip()},addAdObserver:function(n){i.addAdObserver(n)},removeAdObserver:function(n){i.removeAdObserver(n)},getAllAds:function(){return i.getAllAds()},getAllNonLinearAds:function(n){return i.getAllNonLinearAds(n)},destroy:function(){},addEventListener:function(n,e,t){i.addEventListener(n,e,t)},removeEventListener:function(n,e,t){i.removeEventListener(n,e,t)}};u?(e=v(t.originParams)||{},(n=t.sessionFeatures)&&("off"===n.overlayAvails&&(e.overlayAvails="off"),"server"===n.reportingMode&&(e.reportingMode="server"),"on"===n.adSignaling&&(e.adSignaling={enabled:"true"}),Object.assign(e,n.extra||{})),(n=v(t.playerParams)||{}).device_sdk_info||(n.device_sdk_info=g.clientInfo),p&&(n.givn=p),e.playerParams=n,n={retryHeuristics:function(n,e,t){return(0==e||429==e||500<=e&&e<=599)&&n<=d?0==e?0:l:-1}},c&&(n.headers=c),l&&(n.timeout=l),Y('createSession: Request sent to URL "'.concat(u,'"'),e),P(u,e,n,function(n,e){200===e?(o=C(null==n?void 0:n.manifestUrl,u))&&(s=C(null==n?void 0:n.trackingUrl,u))?(i=Mn(s,f,t),r(_,"Successful session response",n)):a(h.INVALID_INIT_RESPONSE,"Invalid session response"):0===e?a(h.INIT_DISRUPTED,"Disrupted session initialization"):a(h.INIT_ERROR,"Failed session initialization")})):(i=Mn(s,f,t),r(_,"Session initialized ".concat(s?"elsewhere":"without 'trackingUrl'")))}function Dn(e,r,a,i){var n,o="createSession: ";function t(n,e,t){Y(o+e,t),r?r(n,null):a(n)}function s(n,e){var t={code:n,message:e};u(o+"(".concat(n,") ").concat(e)),r?r(null,t):i(t)}e?(n=e.palNonceRequestParams,e.trackingUrl||e.palNonceManager||!n?l(e,null,t,s):(n=N(n))?n.then(function(n){Y(o+"NonceManager received",n),l(e,n,t,s)})["catch"](function(n){z(o+"Nonce request rejected",n),l(e,null,t,s)}):(z(o+"Unable to create a nonce request"),l(e,null,t,s))):s(h.INVALID_CONFIG,"Missing config")}var Rn="1.15.1";console.debug("[MT] AWS Elemental MediaTailor SDK v".concat(Rn));var g={initPal:function(n,e){var t="initPal: ";if(!n){if(!e)return u(t+"Missing consent settings"),!1;var r=null==(r=i("goog"))?void 0:r.pal,a=null==r?void 0:r.NonceLoader,r=null==r?void 0:r.ConsentSettings;if(!a||!r)return u(t+"Missing PAL SDK classes"),!1;r=new r;r.allowStorage=null!=(e=e.allowStorage)&&e,n=new a(r)}return s&&z(t+"Resetting NonceLoader"),s=n,!0},createSession:function(t,n){if(!n)return new Promise(function(n,e){Dn(t,null,n,e)});Dn(t,n,null,null)},PlaybackEvent:e,AdTrackingEvent:vn,SessionUiEvent:c,setLogLevel:function(n){0<=n&&n<=5?T=n:console.warn(E+"Invalid log level: ".concat(n))},LogLevel:A,getSdkVersion:function(){return Rn},clientInfo:"MTSDK v"+Rn,defaultOmidPartnerName:"MediaTailor",defaultOmidPartnerVersion:"1.0.0",defaultSupportedApiFrameworks:[2,9],enableAdBeaconsDelivery:!0};return d["default"]},"object"==typeof t?t["mediatailor"]=e():n["mediatailor"]=e(),s.mediatailor=t.mediatailor,s)),yl&&(module.exports=yl.datazoom)}();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datazoom/collector_brightcove_mt_om",
3
- "version": "2.24.0",
3
+ "version": "2.25.0-rc.1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {