@datazoom/collector_theo_mt_om 2.25.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,n,t,s,Mc="object"==typeof module?{}:null;((Ze,en,y)=>{var S,f,nn=Ze.Object,A=Ze.Array,T=Ze.Date,_n=Ze.Number,O=Ze.String,b=Ze.RegExp,tn=Ze.Math,C=Ze.XMLHttpRequest,M=Ze.Uint8Array,R=Ze.ArrayBuffer,D=Ze.JSON,hn=Ze.Promise,N=Ze.URL,P=Ze.URLSearchParams,k=Ze.EventTarget,L=Ze.CustomEvent,vn=Ze.document||{},e=vn.currentScript||{},w=Ze.location||{},U=Ze.navigator||{},x=U.userAgent||"",En=U.connection||U.mozConnection||U.webkitConnection,V=Ze.crypto,F=Ze.console||{},n=Ze.performance,W=Ze.setInterval,j=Ze.setTimeout,B=Ze.decodeURIComponent,H=Ze.encodeURIComponent;try{S=Ze.localStorage,f=Ze.sessionStorage}catch(e){}function G(t){return t?function(e,n){e="[DZ] "+e,void 0===n?t.call(F,e):t.call(F,e,n)}:null}var t=G(F.log)||function(){},$=G(F.error)||t,q=G(F.warn)||t,Y=G(F.info)||t,z=G(F.debug)||t,gn={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},K="datazoom_",X="custom_",J="v_";if(gn[t="__"+K+"rootobj"]=1,Mc)Mc.datazoom=gn;else{if(Yn(Ze.datazoom)){if(Ze.datazoom[t])return q("Collector already loaded");q("Overwriting window.datazoom")}Ze.datazoom=gn}function g(n,t,e){var r,i=t.shift();return null==i?r=n:n?i instanceof b?nn.keys(n).some(function(e){if(i.test(e))return null!=(r=g(n[e],t.slice()))}):r=g(n[i],t):r=null,null!=r?r:e}function rn(e){return"function"==typeof e}function Q(e,n){if(rn(e))try{return new(e=n?e.bind.apply(e,[null].concat(n)):e),1}catch(e){}}Q(N,["http://x.io"])&&Q(P)||(P=function(e){var r=[];function t(e,n){!1!==n&&r.push([e,n])}function i(n){r=r.filter(function(e){return e[0]!==n})}e&&e.slice(1).split("&").forEach(function(e){e=e.split("=");try{r.push([B(e[0]),null==e[1]||B(e[1])])}catch(e){on(e,"URLSearchParams()")}});e=this;e.append=t,e["delete"]=i,e.set=function(e,n){i(e),t(e,n)},e.get=function(n){var t=null;return r.some(function(e){if(e[0]===n)return t=e[1],!0}),t},e.toString=function(){return r.map(function(e){var n=H(e[0]);return!0===e[1]?n:n+"="+H(e[1])}).join("&")}},N=function(e){var n=this,e=e.split("?"),t=e[0],e=e[1]?"?"+e[1]:"";n.search=e,n.searchParams=new P(e),n.toString=function(){return t+n.search}}),Q(k)&&Q(L,["x"])||(k=function(){var t=this,r={};t.addEventListener=function(e,n){var t=r[e];t||(r[e]=t=[]),t.push(n)},t.removeEventListener=function(e,n){var t=r[e];t&&(r[e]=t.filter(function(e){return e!=n}))},t.dispatchEvent=function(n){var e=r[n.type];e&&e.forEach(function(e){j(function(){e.call(t,n)},0)})}},L=function(e){this.type=e}),en=nn.assign({},{cn:"THEOplayer (MT/OM)",sv:"2.25.0",cf:"",mf:null,ev:[],fd:[],md:[],mb:"",sw:!1,sm:"",sp:[],ss:"",sd:"",sc:"",ip:"",ts:"",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,ep:2,ed:2e3,ec:_n.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(e){var n=e.event,t=e.video;Tn("[Event] "+n.type+(t?" ("+t.media_type+")":"")+" @"+n.timestamp,cn(e))}},en||{});var o,Z,yn,ee={datapoints:{events:"ev",flux_data:"fd",metadata:"md",cmcd:"cd"},endpoints:{event_ingest:"mb",sampling:"sm",server_ts:"ts",ad_blocker_bait:"ab",ip_api:"ip"},sampling:{enable:"sw",definition_namespace:"ss",definition_key_name:"sd",criteria_sampling_key_name:"sc",criteria_matching_fields:"sp"},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:""},ne=!Mc&&e.src||"/",te=w.href||"https://localhost",re="configuration_id",ie="urn:x-cast:io.datazoom.collector",Sn="transfer",ae=0,oe=1,se=2,ue=3,ce=4,le=5,de={off:ae,error:oe,warning:se,info:ue,debug:ce,verbose:le},pe=se;function fe(e){var n;e&&(n=de[e],ae<=(n=null!=n?n:+e)&&n<=le?pe=n:q("Invalid log level: "+e))}function me(){o={},Z=[],[[en.ps],[ne.split("?")[1]],[te.split("?")[1],K]].forEach(function(e){var r=e[1];e[0]&&e[0].split("&").forEach(function(e){try{var n=e.split("="),t=B(n[0]);if(r){if(!t.startsWith(r))return;t=t.slice(r.length)}o[t]=null==n[1]||B(n[1]),t.startsWith("x-")&&Z.push([t,o[t]])}catch(e){q("Invalid query string: "+e.message)}})}),yn="true"==o.demo,fe(o.log)}me();var _e="io.datazoom.",he=_e,ve="__ss_ev_count",Ee="__ss_last_act",ge="__ss_custom_md",ye="__ss_msg_queue",Se="__ss_sm_resp",Ie="__ss_appss_to",Ae="collector_observability",Te="loss",Oe="process_duration_ms",be="send_duration_ms",Ce="call_duration_ms",Me="queue_duration_ms",Re="evnt_fail",De="attempt_count",Ne="attempt",Pe="status_code",ke="status_codes",Le="b4_ss",we="sample",Ue="config",xe="log",Ve="server_ts",Fe="ip_api";function We(e,n,t,r){pe<e||n(t,r)}function In(e,n){We(oe,$,e,n)}function an(e,n){We(se,q,e,n)}function An(e,n){We(ue,Y,e,n)}function Tn(e,n){We(ce,z,e,n)}function je(e,n){We(le,z,e,n)}function on(e,n){n="[Exception] "+(n?"("+n+") ":"")+e;return In(n,e),n}function On(t,r,i,a,o){var s,u=0,c=1,l=0;return r=r||"",i=i||1,a=a||_n.MAX_VALUE,{log:function(e,n){o&&(s=sn())>=l+o&&(u=0,c=1,l=s),++u>=c&&(t("["+u+"] "+r+e,n),c+=tn.min(c*i,a))}}}function bn(e,n){p(Ze,"postMessage",[{type:e,data:n},"*"])}var Be,sn,He,Ge,$e,qe,Ye=[],ze=0;function Ke(e,n,t,r,i,a,o,s){var t={time:t,metric_name:r,dimension:{},batch:function(){return a}},u=(e&&(t.type=e),null!=i&&(t.metric_value=i),t.dimension);return n&&(u.target=n),s&&s.forEach(function(e){u[e[0]]=e[1]}),o&&(u[Le]=!0),t}function Xe(r,i,a,o){var s=i,u=1,c=ze++;return{retry:function(e){s=e,u++},log:function(e,n){var t;en.og&&(null!=a&&Ye.push(Ke(null,r,t=i-a,Oe,e-t,c,o,[[De,u],[Pe,n]]),Ke(null,r,t,Me,a,c,o)),Ye.push(Ke(null,r,i,be,e-i,c,!1,[[De,u],[Pe,n]]),Ke(null,r,s,Ce,e-s,c,!1,[[Ne,u],[Pe,n]])))}}}function Je(e,n){var t,r;en.os&&(r=e.t,r=tn.trunc(r/6e4),(r=(Be=Be||{})[r]||(Be[r]=[0,0,0]))[2]++,t=(r=r[3]||(r[3]={}))[n],e=Es(e.m,fi),t?t.push(e):r[n]=[e])}function Qe(e){var n,t=Be[e],r=ze++;t[2]&&(t[3]&&(n=[[ke,t[3]]]),Ye.push(Ke(Te,null,6e4*+e,Re,t[2],r,!1,n)))}function Cn(e){return e&&(qn(e)?e.slice():nn.assign({},e))}function Mn(e,n){return Yn(n)?e?nn.assign({},e,n):n:e}function Rn(e,n){var t;return n?((t={})[e]=n,t):null}function Dn(t,r){var i;return r?t?(i=Cn(t),nn.keys(r).forEach(function(e){var n=t[e];i[e]=n?nn.assign({},n,r[e]):r[e]}),i):r:t}function p(e,n,t,r){n=g(e,[n],r);return rn(n)?n.apply(e,t):null}function Nn(e,n,t){return function(){try{return n.apply(e,arguments)}catch(e){on(e,t)}}}function Pn(t,e){nn.keys(t).forEach(function(n){e.forEach(function(e){e[n]=Nn(e,t[n],n)})}),e[0]}function kn(e){var n={};return e.forEach(function(e){n[e.nm]=e}),n}function Ln(e){var n={};return e.forEach(function(e){n[e.nm]=!0}),n}function wn(e,n,t){e.forEach(function(e){e[n]=t})}function Un(e,n){var e=new N(e,te),t=new P(e.search);return n(t),e.search="?"+t.toString(),e.toString()}function xn(e){var n,t=Z.length;return t?Un(e,function(e){for(n=0;n<t;n++)e.append(Z[n][0],Z[n][1])}):e}function Vn(e,n,t){var r;return null!=(r=e?new N(e,te).searchParams.get(n):r)?r:t}He=0,Ge=en.ec,$e=On(an,"Abnormal clock increment: ",.2,1e3,3e5),n&&n.now,qe=He+T.now(),sn=function(e){var n=T.now(),t=qe,r=(qe=He+n)-t;return(r<0||Ge<r)&&(qe=t+en.ti,He=qe-n,$e.log(r)),qe};var un=(()=>{for(var t=[],e=0;e<256;e++)t.push((e+256).toString(16).substr(1).toLowerCase());return function(){var e=new M(16);if(V&&V.getRandomValues)V.getRandomValues(e);else{an("getRandomValues() not supported");for(var n=0;n<16;n++)e[n]=tn.floor(256*tn.random())}return e[6]=15&e[6]|64,e[8]=63&e[8]|128,t[e[0]]+t[e[1]]+t[e[2]]+t[e[3]]+"-"+t[e[4]]+t[e[5]]+"-"+t[e[6]]+t[e[7]]+"-"+t[e[8]]+t[e[9]]+"-"+t[e[10]]+t[e[11]]+t[e[12]]+t[e[13]]+t[e[14]]+t[e[15]]}})();function Fn(e,n,t,r,i,a){var o=new C;if(o.open(e,n,!0),null!=a&&(o.timeout=a),t)for(var s=nn.keys(t),u=0;u<s.length;u++)o.setRequestHeader(s[u],t[s[u]]);return i&&(o.onreadystatechange=function(){i(o)}),o.send(r),{abort:function(){delete o.onreadystatechange,o.abort()}}}function cn(e){if(e)try{return D.stringify(e)}catch(e){on(e,"toJSON")}return null}function ln(e){if(e)try{return D.parse(e)}catch(e){on(e,"fromJSON")}return null}function Wn(e,n){return(e===f?he:_e)+n}function m(e,n,t){if(e)if(null==t)Bn(e,n);else try{e.setItem(Wn(e,n),cn({v:t}))}catch(e){on(e,"storageSet")}}function jn(e,n){e=e?ln(e.getItem(Wn(e,n))):null;return e?e.v:null}function Bn(e,n){e&&e.removeItem(Wn(e,n))}Ze.self!==Ze.top&&Tn("Page loaded in a frame, set sessionStorage prefix to: "+(he+=(o.frame_id||un())+"."));var Hn=ln('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Gn(e){return"string"==typeof e}function $n(e){return _n.isFinite(e)}function qn(e){return A.isArray(e)}function Yn(e){return null!=e&&"object"==typeof e&&!qn(e)}function zn(e){return Gn(e)?e:""+e}function Kn(e){return $n(e=+e)?e:null}function Xn(n,t,r){return null==n&&null==t?Kn:function(e){return null!=(e=Kn(e))&&(null!=n&&e<n?e=r?null:n:null!=t&&t<e&&(e=r?null:t)),e}}function Jn(e){return tn.round(e)}function Qn(e,n){for(var t=0;t<n.length;t++)!function(e){for(var n=e,t=1;t<arguments.length;t++)n.dv||(n.dv=[]),n.dv.push(arguments[t])}(n[t],e)}function Zn(e,n){if(n)for(var t=0;t<n.length&&null!=e;t++)e=n[t](e);return e}var et,nt,tt,rt,it=4,at=8,ot=16,st=32,I=65535,ut=it,t=1|ot,n=(e=it|ot)|st,i=at,ct={ap:2,nm:"ad_break_start"},lt={ap:2,nm:"ad_break_end"},dt={ap:2,nm:"ad_click"},pt={ap:2,nm:"ad_impression"},ft={ap:2,nm:"ad_skip"},mt={ap:ut,nm:"app_session_end"},_t={ap:3,nm:"audio_track_changed"},ht={ap:3,nm:"buffer_start"},vt={ap:3,nm:"buffer_end"},Et={ap:3,nm:"cast_start"},gt={ap:3,nm:"cast_end"},yt={ap:3,nm:"cast_transfer"},St={ap:I,nm:"context_ready"},It={ap:ut,nm:"datazoom_loaded"},At={ap:3,nm:"error"},Tt={ap:3,nm:"exit_fullscreen"},Ot={ap:3,nm:"fullscreen"},bt={ap:3,nm:"heartbeat"},Ct={ap:3,nm:"media_loaded"},Mt={ap:1,nm:"media_object_request"},Rt={ap:3,nm:"media_request"},Dt={ap:3,nm:"milestone"},Nt={ap:3,nm:"mute"},Pt={ap:3,nm:"pause"},kt={ap:3,nm:"play_btn"},Lt={ap:3,nm:"playback_start"},wt={ap:3,nm:"playback_complete"},Ut={ap:1,nm:"player_ready"},xt={ap:3,nm:"playing"},Vt={ap:3,nm:"qualified_view"},Ft={ap:1,nm:"quality_change_request"},Wt={ap:3,nm:"rendition_change"},jt={ap:3,nm:"resize"},Bt={ap:3,nm:"resume"},Ht={ap:3,nm:"seek_start"},Gt={ap:3,nm:"seek_end"},$t={ap:3,nm:"stall_start"},qt={ap:3,nm:"stall_end"},Yt={ap:3,nm:"stop"},zt={ap:3,nm:"subtitle_change"},Kt={ap:3,nm:"unmute"},Xt={ap:3,nm:"volume_change"},Jt=(Rt.rtc=0,Lt.rtc=1,Pt.rtc=2,ht.rtc=3,$t.rtc=4,Ht.rtc=5,Wt.rtc=6,Dt.rtc=7,Rt.rta=8,Lt.rta=9,ht.rta=10,$t.rta=11,Dt.rta=12,At.rta=ft.rta=wt.rta=13,ct.rta=14,lt.rta=15,bt.rt=16,ht.rt=17,$t.rt=18,["event","metrics"]),Qt={ap:t,nm:"bandwidth_kbps"},Zt={ap:t,nm:"buffer_duration_ms"},er={ap:t,nm:"buffer_duration_ads_ms"},nr={ap:t,nm:"buffer_duration_content_ms"},tr={ap:t,nm:"buffer_fill_percent"},rr={ap:t,nm:"buffer_length_ms"},ir={ap:t,nm:"content_session_start_ts_ms"},ar={ap:3,nm:"current_audio_track"},or={ap:t,nm:"current_subtitles"},sr={ap:e,nm:"engagement_duration_ms"},ur={ap:e,nm:"engagement_duration_ads_ms"},cr={ap:e,nm:"engagement_duration_content_ms"},lr={ap:i,nm:"event_count"},dr={ap:t,nm:"num_ad_break_plays"},pr={ap:e,nm:"num_ad_plays"},fr={ap:e,nm:"num_content_plays"},mr={ap:e,nm:"num_errors"},_r={ap:e,nm:"num_errors_ads"},hr={ap:e,nm:"num_errors_content"},vr={ap:e,nm:"num_requests_content"},Er={ap:t,nm:"pause_duration_ms"},gr={ap:t,nm:"pause_duration_ads_ms"},yr={ap:t,nm:"pause_duration_content_ms"},Sr={ap:t,nm:"playback_duration_ms"},Ir={ap:t,nm:"playback_duration_ads_ms"},Ar={ap:2,nm:"playback_duration_ad_session_ms"},Tr={ap:t,nm:"playback_duration_content_ms"},Or={ap:t,nm:"playback_duration_promo_ms"},br={ap:3,nm:"playback_rate"},Cr={ap:t,nm:"player_state"},Mr={ap:t,nm:"player_viewable"},Rr={ap:t,nm:"player_viewable_percent"},dn={ap:3,nm:"playhead_position_sec"},Dr={ap:t,nm:"playhead_pdt_sec"},Nr={ap:3,nm:"rendition_audio_bitrate_kbps"},Pr={ap:3,nm:"rendition_height"},kr={ap:3,nm:"rendition_name"},Lr={ap:3,nm:"rendition_video_bitrate_kbps"},wr={ap:3,nm:"rendition_width"},Ur={ap:t,nm:"stall_count"},xr={ap:t,nm:"stall_count_ads"},Vr={ap:t,nm:"stall_count_content"},Fr={ap:t,nm:"stall_duration_ms"},Wr={ap:t,nm:"stall_duration_ads_ms"},jr={ap:t,nm:"stall_duration_content_ms"},Br={ap:t,nm:"time_since_last_ad_break_start_ms"},Hr={ap:t,nm:"time_since_last_ad_completed_ms"},Gr={ap:t,nm:"time_since_last_buffer_start_ms"},$r={ap:t,nm:"time_since_last_buffer_start_ad_ms"},qr={ap:t,nm:"time_since_last_buffer_start_content_ms"},Yr={ap:t,nm:"time_since_last_heartbeat_ms"},zr={ap:t,nm:"time_since_last_milestone_ad_ms"},Kr={ap:t,nm:"time_since_last_milestone_content_ms"},Xr={ap:t,nm:"time_since_last_pause_ms"},Jr={ap:t,nm:"time_since_last_rendition_change_ms"},Qr={ap:t,nm:"time_since_last_request_ad_ms"},Zr={ap:t,nm:"time_since_last_seek_start_ms"},ei={ap:t,nm:"time_since_last_stall_start_ms"},ni={ap:t,nm:"time_since_last_stall_start_ad_ms"},ti={ap:t,nm:"time_since_last_stall_start_content_ms"},ri={ap:t,nm:"time_since_last_started_ad_ms"},ii={ap:t,nm:"time_since_request_content_ms"},ai={ap:t,nm:"time_since_started_content_ms"},oi={ap:t,nm:"volume_level_percent"};wn([Zt,er,nr,Er,gr,yr,Sr,Ir,Tr,Or,Ur,xr,Vr,Fr,Wr,jr,pr,mr,_r,hr,fr,vr],"df",0),ii.ts=0,ai.ts=1,Xr.ts=2,qr.ts=3,ti.ts=4,Zr.ts=5,Jr.ts=6,Kr.ts=7,Qr.ts=8,ri.ts=9,$r.ts=10,ni.ts=11,zr.ts=12,Br.ts=14,Hr.ts=13,Yr.ts=16,Gr.ts=17,ei.ts=18;var si=["ops_metadata"],ui=["custom"],ci=["vendor"],li={p:hi=[],ap:n,nm:"configuration_id"},di={p:hi,ap:n,nm:"connector_list"},pi={p:hi,ap:n,nm:"customer_code"},fi={p:hi,ap:i,nm:"event_id"},mi={p:vi=["event"],ap:i,nm:"timestamp"},_i={p:vi,ap:i,nm:"type"},hi={p:r=["cmcd"],ap:i,nm:"bl"},vi={p:r,ap:i,nm:"br"},Ei={p:r,ap:i,nm:"bs"},gi={p:r,ap:i,nm:"cid"},yi={p:r,ap:i,nm:"d"},Si={p:r,ap:i,nm:"dl"},Ii={p:r,ap:i,nm:"mtp"},Ai={p:r,ap:i,nm:"nor"},Ti={p:r,ap:i,nm:"nrr"},Oi={p:r,ap:i,nm:"ot"},bi={p:r,ap:i,nm:"pr"},Ci={p:r,ap:i,nm:"rid"},Mi={p:r,ap:i,nm:"rtp"},Ri={p:r,ap:i,nm:"sf"},Di={p:r,ap:i,nm:"sid"},Ni={p:r,ap:i,nm:"st"},Pi={p:r,ap:i,nm:"su"},ki={p:r,ap:i,nm:"tb"},r={p:r,ap:i,nm:"v"},Li={p:a=["event","attributes"],ap:i,nm:"abs_shift"},wi={p:a,ap:i,nm:"error_code"},Ui={p:a,ap:i,nm:"error_msg"},xi={p:a,ap:i,nm:"inner_error"},Vi={p:a,ap:i,nm:"heartbeat_count"},Fi={p:a,ap:i,nm:"milestone_percent"},Wi={p:a,ap:i,nm:"qualified_view_sec"},ji={p:a,ap:i,nm:"seek_start_point_ms"},Bi={p:a,ap:i,nm:"seek_end_point_ms"},Hi={p:a,ap:i,nm:"startup_duration_content_ms"},Gi={p:a,ap:i,nm:"startup_duration_total_ms"},$i={p:s=["user_details"],ap:e,nm:"app_session_id"},qi={p:s,ap:e,nm:"app_session_start_ts_ms"},a={p:s,ap:e,nm:"app_session_end_ts_ms"},Yi={p:s,ap:t,nm:"cast_app_session_id"},zi={p:s,ap:t,nm:"cast_content_session_id"},Ki={p:s,ap:n,nm:"client_ip"},Xi={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:e,nm:"user_agent"},Ji={p:u=["player"],ap:t,nm:"autostart"},Qi={p:u,ap:t,nm:"casting"},Zi={p:u,ap:t,nm:"controls"},ea={p:u,ap:t,nm:"default_muted"},na={p:u,ap:t,nm:"default_playback_rate"},ta={p:u,ap:t,nm:"fullscreen"},ra={p:u,ap:t,nm:"loop"},ia={p:u,ap:t,nm:"muted"},aa={p:u,ap:t,nm:"player_name"},oa={p:u,ap:t,nm:"player_version"},sa={p:u,ap:t,nm:"preload"},ua={p:u,ap:t,nm:"ready_state"},ca={p:u,ap:t,nm:"streaming_protocol"},la={p:u,ap:t,nm:"streaming_type"},da={p:u,ap:t,nm:"subtitles"},u={p:c=["device"],ap:e,nm:"advertising_id"},pa={p:c,ap:e,nm:"browser_name"},fa={p:c,ap:e,nm:"browser_height"},ma={p:c,ap:e,nm:"browser_version"},_a={p:c,ap:e,nm:"browser_width"},ha={p:c,ap:e,nm:"cookies_enabled"},va={p:c,ap:n,nm:"device_id"},Ea={p:c,ap:e,nm:"device_mfg"},ga={p:c,ap:e,nm:"device_name"},ya={p:c,ap:e,nm:"device_type"},Sa={p:c,ap:e,nm:"orientation"},Ia={p:c,ap:e,nm:"os_name"},c={p:c,ap:e,nm:"os_version"},Aa={p:l=["video"],ap:t,nm:"asset_id"},Ta={p:l,ap:t,nm:"description"},Oa={p:l,ap:t,nm:"duration_sec"},ba={p:l,ap:t,nm:"frame_rate"},Ca={p:l,ap:t,nm:"media_tags"},Ma={p:l,ap:3,nm:"media_type"},Ra={p:l,ap:t,nm:"player_height"},Da={p:l,ap:t,nm:"player_width"},Na={p:l,ap:t,nm:"source"},l={p:l,ap:t,nm:"title"},Pa={p:d=["geo_location"],ap:n,nm:"city"},ka={p:d,ap:n,nm:"country"},La={p:d,ap:n,nm:"country_code"},wa={p:d,ap:n,nm:"latitude"},Ua={p:d,ap:n,nm:"longitude"},xa={p:d,ap:n,nm:"postal_code"},Va={p:d,ap:n,nm:"region"},Fa={p:d,ap:n,nm:"region_code"},Wa={p:d,ap:n,nm:"continent"},ja={p:d,ap:n,nm:"continent_code"},Ba={p:d,ap:n,nm:"district"},Ha={p:d,ap:n,nm:"timezone_name"},Ga={p:d,ap:n,nm:"timezone_offset"},$a={p:Ja=["network"],ap:n,nm:"asn"},qa={p:Ja,ap:n,nm:"asn_org"},d={p:Ja,ap:e,nm:"connection_type"},Ya={p:Ja,ap:n,nm:"isp"},za={p:Ja,ap:n,nm:"mobile_connection"},Ka={p:si,ap:i,nm:"context_id"},Xa={p:si,ap:i,nm:"context_name"},Ja={p:si,ap:e,nm:"dz_dictionary_version"},Qa={p:si,ap:i,nm:"msg_send_client_ts_ms"},Za={p:si,ap:i,nm:"player_context_id"},eo={p:si,ap:n,nm:"server_ts_offset_ms"},no={p:mo=["page"],ap:e,nm:"collector_name"},to={p:mo,ap:e,nm:"dz_sdk_version"},ro={p:mo,ap:e,nm:"page_title"},io={p:mo,ap:e,nm:"page_url"},ao={p:mo,ap:e,nm:"referrer_url"},oo={p:mo,ap:e,nm:"site_domain"},so={p:_=["ad"],ap:n,nm:"ad_blocker"},uo={p:_,ap:t,nm:"ad_break_id"},co={p:_,ap:2,nm:"ad_click_url"},lo={p:_,ap:2,nm:"ad_creative_id"},po={p:_,ap:2,nm:"ad_duration_sec"},fo={p:_,ap:2,nm:"ad_id"},mo={p:_,ap:2,nm:"ad_partner"},_o={p:_,ap:t,nm:"ad_position"},ho={p:_,ap:2,nm:"ad_session_id"},vo={p:_,ap:2,nm:"ad_system"},Eo={p:_,ap:2,nm:"ad_time_offset_sec"},n={p:_,ap:e,nm:"ad_tracking_opt_out"},go={p:_,ap:2,nm:"advertiser_name"},yo={p:_,ap:2,nm:"deal_id"},So={p:_,ap:2,nm:"skip_time_offset_sec"},Io={p:_,ap:2,nm:"wrapper_creative_ids"},Ao={p:_,ap:2,nm:"wrapper_id"},To={p:_,ap:2,nm:"wrapper_systems"},e={p:["cdn"],ap:t,nm:"cdn"},Oo=(yo.df="",wn([Io,Ao,To],"df",[]),Qn(function(e){return!!e},[so,n,Ji,Ei,Qi,Zi,ha,ea,ta,ra,za,ia,Pi,da,Mr]),Qn(function(e){qn(e)||(e=[e]);for(var n=0;n<e.length;n++)e[n]=zn(e[n])||"";return e},[Io,Ao,To]),Qn(null==et&&null==nt?zn:function(e){var n;return null!=(e=zn(e))&&(n=e.length,null!=et&&n<et?e=null:null!=nt&&nt<n&&(e=tt?null:e.slice(0,nt))),e},[Li,uo,co,lo,fo,mo,_o,ho,vo,go,u,$i,$a,qa,Aa,pa,ma,Yi,zi,e,gi,Pa,Ki,li,di,Xi,Wa,ja,ka,La,pi,yo,Ta,va,Ea,ga,ya,Ba,to,wi,Ui,fi,xi,Ya,Ma,Ai,Ti,Sa,Ia,c,Oi,ro,io,Za,aa,oa,xa,sa,ao,Va,Fa,Ci,Ri,Di,oo,Na,Ni,ca,la,Ha,l,_i,s,ar,or,Cr,kr]),Qn(Xn(0,100),[tr,Rr,oi]),Qn(Xn(0,1e9,!0),[Qt]),Qn(Xn(),[po,Eo,a,qi,hi,vi,fa,_a,yi,na,Si,Oa,ba,Vi,wa,Ua,Fi,Ii,Ra,Da,bi,Wi,ua,Mi,Bi,ji,eo,So,Hi,Gi,ki,mi,Ga,r,er,nr,Zt,rr,ir,ur,cr,sr,lr,dr,pr,fr,mr,_r,hr,vr,gr,yr,Er,Ir,Ar,Tr,Sr,Or,br,dn,Nr,Pr,Lr,wr,Ur,xr,Vr,Wr,jr,Fr,Br,Hr,$r,qr,Gr,Yr,zr,Kr,Xr,Jr,Qr,Zr,ni,ti,ei,ri,ii,ai]),Qn(0==(_=5)?Jn:(rt=tn.pow(10,_),function(e){return tn.round(e*rt)/rt}),[po,Eo,a,qi,hi,vi,fa,_a,yi,na,Si,Oa,ba,Vi,wa,Ua,Fi,Ii,Ra,Da,bi,Wi,ua,Mi,Bi,ji,eo,So,Hi,Gi,ki,mi,Ga,r,Qt,er,nr,Zt,tr,rr,ir,ur,cr,sr,lr,dr,pr,fr,mr,_r,hr,vr,gr,yr,Er,Ir,Ar,Tr,Sr,Or,br,Rr,dn,Nr,Pr,Lr,wr,Ur,xr,Vr,Wr,jr,Fr,Br,Hr,$r,qr,Gr,Yr,zr,Kr,Xr,Jr,Qr,Zr,ni,ti,ei,ri,ii,ai,oi]),[ct,lt,dt,pt,ft,mt,_t,ht,vt,Et,gt,yt,St,It,At,Tt,Ot,bt,Ct,Mt,Rt,Dt,Nt,Pt,kt,Lt,wt,Ut,xt,Vt,Ft,Wt,jt,Bt,Ht,Gt,$t,qt,Yt,zt,Kt,Xt]),bo=kn(Oo);function Co(e,n){return J+e+"_"+n}function Mo(e,n){var t,r=Ln(Oo),i={},a={};e?0<e.length?(e=Gn(t=en.tt&&o.beta_ev)?e.concat(t.split(".").map(function(e){return{name:e,media_types:["na"]}})):e).forEach(function(e){var n,t=e&&e.name;t&&r[t]?(e=e.media_types)&&0<e.length&&(i[t]=!0,"na"!=e[0])&&(n={},e.forEach(function(e){n[e]=!0}),a[t]=n):an("Unknown event: "+t)}):n&&an("This collector is not active. Configure it to a data pipe to start sending events."):i=a=null,Oo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.mm=a&&a[e.nm]})}Mo(),wn([pr,mr,_r,hr,fr,vr],"st",f);var Ro=[Qt,Zt,er,nr,tr,rr,ir,ar,or,sr,ur,cr,lr,dr,pr,fr,mr,_r,hr,vr,Er,gr,yr,Sr,Ir,Ar,Tr,Or,br,Cr,Mr,Rr,dn,Dr,Nr,Pr,kr,Lr,wr,Ur,xr,Vr,Fr,Wr,jr,Br,Hr,Gr,$r,qr,Yr,zr,Kr,Xr,Jr,Qr,Zr,ei,ni,ti,ri,ii,ai,oi],Do=[],No=(Ro.forEach(function(e){null!=e.ts&&Do.push(e)}),[]),Po=[];function ko(e){var n,t=Ln(Ro),r={};e?(e=Gn(n=en.tt&&o.beta_fd)?e.concat(n.split(".")):e).forEach(function(e){t[e]?r[e]=!0:an("Unknown flux data: "+e)}):r=null,No=[],Po=[],Ro.forEach(function(e){e.on=!(r&&!r[e.nm]),e.on&&(e.ap==i?Po:No).push(e)})}ko(),wn([$i,qi,eo],"st",f);var Lo,wo,Uo,xo,Vo=[Ki,Ya,za,$a,qa,Fa,Va,La,ka,xa,Pa,wa,Ua,Wa,ja,Ba,Ha,Ga],Fo=(wn(Vo,"se",f),[aa,oa,u,l,Aa,la,Qi]),Wo={},jo=(Fo.forEach(function(e){Wo[e.nm.toUpperCase()]=K+e.nm}),[li,di,pi,fi,mi,_i,hi,vi,Ei,gi,yi,Si,Ii,Ai,Ti,Oi,bi,Ci,Mi,Ri,Di,Ni,Pi,ki,r,Li,wi,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,Gi,$i,qi,a,Yi,zi,Ki,Xi,s,Ji,Qi,Zi,ea,na,ta,ra,ia,aa,oa,sa,ua,ca,la,da,u,pa,fa,ma,_a,ha,va,Ea,ga,ya,Sa,Ia,c,Aa,Ta,Oa,ba,Ca,Ma,Ra,Da,Na,l,Pa,ka,La,wa,Ua,xa,Va,Fa,Wa,ja,Ba,Ha,Ga,$a,qa,d,Ya,za,Ka,Xa,Ja,Qa,Za,eo,no,to,ro,io,ao,oo,so,uo,co,lo,po,fo,mo,_o,ho,vo,Eo,n,go,yo,So,Io,Ao,To,e]),Bo=kn(jo),Ho=jo.concat(Ro),Go=[fi],$o=[],qo=[];function Yo(e){var n,t=Ln(jo),r={};Lo=wo=Uo=xo=!1,e?((e=Gn(n=en.tt&&o.beta_md)?e.concat(n.split(".")):e).forEach(function(e){t[e]?r[e]=!0:"custom_metadata_all"==e?Lo=!0:"custom_events_all"==e?wo=!0:"vendor_metadata_all"==e?Uo=!0:"vendor_events_all"==e?xo=!0:an("Unknown metadata: "+e)}),Go.forEach(function(e){r[e.nm]=!0})):Lo=wo=Uo=xo=!(r=null),$o=[],qo=[],jo.forEach(function(e){e.on=!(r&&!r[e.nm]),e.on&&(e.ap==i?qo:$o).push(e)})}Yo();var zo="ad",Ko=/^live$/i,Xo={"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"},Jo={m3u8:"HLS",mpd:"DASH",mp4:"MP4"},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"]],_=[[/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"]],mt=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],Qo=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function Zo(e,n,t){n&&t.push(e)}function es(e,n,t){t.push(e+"="+n)}function ns(e,n,t){t.push(e+(o.cmcd_ntq?"="+n:'="'+n+'"'))}function ts(e,n,t){t.push(e+'="'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function rs(e){return"false"!==e}function is(e){return+e}function as(e){return e.replace(/"/g,"")}function os(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var ss,us,cs={bl:[0,[es,is],hi],br:[1,[es,is],vi],bs:[2,[Zo,rs],Ei],cid:[3,[ts,os],gi],d:[1,[es,is],yi],dl:[0,[es,is],Si],mtp:[0,[es,is],Ii],nor:[0,[ts,os],Ai],nrr:[0,[ts,os],Ti],ot:[1,[ns,as],Oi],pr:[3,[es,is],bi],rtp:[2,[es,is],Mi],sf:[3,[ns,as],Ri],sid:[3,[ts,os],Di],st:[3,[ns,as],Ni],su:[0,[Zo,rs],Pi],tb:[1,[es,is],ki],v:[3,[es,is],r]},ls={bs:!1,su:!1,v:1,pr:1},ds="org.svalabs-";function ps(e){for(var n,t,r=[[],[],[],[]],i=nn.keys(e),a=0;a<i.length;a++)n=i[a],(t=cs[n])&&t[3]&&t[1][0](n,e[n],r[t[0]]);return r}function fs(e){var n,t=nn.keys(cs);for(ss=!1,us="header"===(gn.options.cmcdMode||o.cmcd_mode),n=0;n<t.length;n++)cs[t[n]][3]=!1;if(e&&qn(e)&&0<e.length)if(ss=!0,"na"==e[0])for(n=0;n<t.length;n++)cs[t[n]][3]=!0;else e.forEach(function(e){var n=cs[e];n?n[3]=!0:an("Unknown CMCD key: "+e)})}function ms(e,n,t){for(var r,i,a=nn.keys(e),o=0;o<a.length;o++)delete e[a[o]];for(o=0;o<n.length;o++)0!=((r=n[o]).ap&t)&&null!=(i=null==(i=(i=r.st||r.se)&&jn(i,r.nm))?r.df:i)&&(e[r.nm]=i)}function _s(e,n,t,r){for(var i,a,o,s,u=0;u<r.length;u++)o=(a=(i=r[u])[0]).nm,0!=(a.ap&t)?(s=n[o])&&s(i)||(e[o]=i[1],(s=a.st||a.on&&a.se)&&m(s,o,i[1])):an("Setting inapplicable data",a)}function hs(e,n){return e[n.nm]}function vs(e,n,t,r,i){var a,o=[];return t&&o.push([t,a=n(t)+r]),i&&o.push([i,n(i)+r]),e(o),a}function pn(e,n,t){if(n)for(var r,i,a=0;a<n.length;a++)if(i=e[r=n[a]])e=i;else{if(t)return null;e=e[r]={}}return e}function Es(e,n){e=pn(e,n.p||Jt,!0);return e&&e[n.nm]}function gs(e,n,t,r){for(var i,a,o,s=0;s<n.length;s++)0!=((i=n[s]).ap&t)&&null!=(o=Zn(e[a=i.nm],i.dv))&&(pn(r,i.p)[a]=o)}cs[ds+"rid"]=[0,[ts,os],Ci],cs[ds+"tid"]=[0,[ts,os]],cs[ds+"cmi"]=[0,[es,is]],cs[ds+"pmi"]=[0,[es,is]],fs();var ys,Ss,Is,As,Ts,Os,bs,Cs,Ms,Rs,Ds,Ns,Ps,ks,Ls,ws,Us,h,xs={},Vs={},Fs=jn(f,ye)||[],Ws=[],js=1,Bs=2,Hs=4,Gs=8,$s=16,qs=Hs|Gs|$s,Ys=Bs|js|qs,zs=0,Ks=[];function Xs(e){return null!=e?6e4*e:12e5}function Js(e,n){if(!Ys&&0<Fs.length){for(var t,r=sn(),i=0,a=0;a<Fs.length;a++)Fs[a].p&&(t=!0,gs(xs,$o,st,Fs[a].m)),i=tn.max(i,r-Fs[a].t);Ns&&su(Fs,0,Xe(xe,r,i,t),e),n=!0}n&&(Fs=[],Bn(f,ye)),bs=null}function v(e){(Ys&=~e)||null!=bs||Js()}function Qs(e,n,t,r,i,a,o,s,u){if(4==e.readyState){var c=sn(),l=e.status;if(n+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[i++];if(null!=a)return j(function(){o.retry(sn()),t(r,i,o)},1e3*a),void an(n+"retry #"+i+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(e,c))||u&&u(n,l)||an(n+"failed")}}function Zs(n,t,r){Fn("GET",en.ip,{Accept:"application/json"},null,function(e){Qs(e,"IP API",Zs,n,t,en.rd,r,function(e){e=ln(e.responseText);if(e)return E([[Ki,e.query],[Ya,e.isp],[za,e.mobile],[$a,e.as],[qa,e.org],[Fa,e.region],[Va,e.regionName],[La,e.countryCode],[ka,e.country],[xa,e.zip],[Pa,e.city],[wa,e.lat],[Ua,e.lon],[Wa,e.continent],[ja,e.continentCode],[Ba,e.district],[Ha,e.timezone],[Ga,e.offset/3600]]),v(Gs),tu(),!0},function(){v(Gs),tu()})})}function eu(n,t,r){var i=sn();Fn("GET",xn(en.ts),{"cache-control":"no-cache"},null,function(e){Qs(e,"SERVER TS",eu,n,t,en.rd,r,function(e,n){e=ln(e.responseText),e=e&&e.epoch_millis;if(e)return E([[eo,tn.round(e-(i+n)/2)]]),v(Hs),!0},function(){v(Hs)})})}function nu(n,t,r){Ms=Fn("POST",xn(en.sm),{"Content-Type":"application/json","cache-control":"no-cache"},n,function(e){4==e.readyState&&(Ms=null,Qs(e,"Sampling API",nu,n,t,en.rd,r,function(e){e=ln(e.responseText);if(Rs=e&&e[en.ss+"_sampling"])return Ns=Rs.in_sample,Ds=!1,v(Bs),m(f,Se,Rs),!0},function(e){return Ns=Ds=!0,v(Bs),an(e+"forced in"),!0}))})}function tu(){var e;!Cs||Ys&js||(en.sw&&en.sm?(en.sp&&Ln(Vo),(e=Bo[en.sd])&&(Cs.sampling_definition_params={namespace:en.ss,key_name:e.nm,key_value:uu(e)}),(e=Bo[en.sc])&&(Cs.sampling_criteria_params={sampling:{key_name:e.nm,key_value:uu(e)}}),Cs.sampling_override=o.sampling_override||"NONE",Cs.sampling_request_id=un(),nu(cn(Cs),0,Xe(we,sn()))):(Ns=!0,v(Bs)),Cs=null)}function ru(t,n,r){var e;en.ci?(en.tt&&(en.mf=o.mock_config||en.mf),Tn("Get config from "+(e=en.mf||Un(xn("https://"+en.cf+"platform.datazoom.io/beacon/v2/config"),function(e){e.append(re,en.ci)}))),Fn("GET",e,null,null,function(e){Qs(e,"Config API",ru,t,n,en.rd,r,function(e){e=ln(e.responseText);if(e)return t(e),!0},function(e,n){n<400||429==n||499<n||(en.om=!1),t()})})):(an("Missing configuration ID"),en.om=!1,t())}function iu(){ru(function(e){en.st=null,e&&function r(i,a){Yn(i)?nn.keys(i).forEach(function(e){var n=i[e],t=a[e];Yn(t)?r(n,t):null==t?an("Unknown config key: "+e):null==n?an("Undefined config key: "+e):t&&(en[t]=n)}):an("Invalid config object",i)}(e,ee),m(f,Ie,en.st),en.st=Xs(en.st),Mo(en.ev,e),ko(en.fd),Yo(en.md),fs(en.cd),en.og||(Ye=[]),en.os||(Be=null),p(en.cm,"sort"),p(en.am,"sort"),p(en.cq,"sort"),p(en.aq,"sort"),E([[pi,en.cc],[di,en.cl]]),Ws.forEach(function(e){var n,t,r,i,a,o=!1,s=Es(e.m,_i),u=bo[s];u?o=u.on:s.startsWith(X)?o=wo:s.startsWith(J)&&(o=xo),o&&(n=e.m,t={},$o.concat(qo).forEach(function(e){null!=(r=Es(n,e))&&(pn(t,e.p)[e.nm]=r)}),i=pn(n,Jt),a=pn(t,Jt),No.concat(Po).forEach(function(e){null!=(r=Es(i,e))&&(a[e.nm]=r)}),Lo&&(r=pn(n,ui,!0))&&nn.assign(pn(t,ui),r),Uo&&(r=pn(n,ci,!0))&&nn.assign(pn(t,ci),r),au(t,a),e.m=t,Fs.push(e))}),m(f,ye,Fs),Ws=[];var n,e=va.nm;va.on?(n=jn(S,e))||(n=un(),m(S,e,n)):Bn(S,e),E([[va,n]]),en.ts&&eo.on&&null==uu(eo)?eu(0,0,Xe(Ve,sn())):v(Hs),en.ab&&so.on&&null==uu(so)?Fn("GET",xn(en.ab),null,null,function(e){4==e.readyState&&(E([[so,!e.status]]),v($s))}):v($s),en.ip&&Vo.some(function(e){return e.on&&null==uu(e)})?Zs(0,0,Xe(Fe,sn())):v(Gs),v(js),tu(),j(function(){v(qs),tu()},en.mh)},0,Xe(Ue,sn()))}function au(e,n){var t=""+(Ts+1e7);pn(e,fi.p)[fi.nm]=Is+"_"+t.substr(-7,2)+"."+t.substr(-5),m(f,ve,++Ts),lr.on&&(n[lr.nm]=Ts)}function ou(e,n,t,r,i,a,o){var s,u,c,l,d,o=o?it:ot,p=pn(e,Jt);for(gs(xs,$o,o,e),gs(xs,No,o,p),(r=r||[]).push([_i,n],[mi,t]),s=0;s<r.length;s++)u=(c=r[s])[0],c[2]||0!=(u.ap&at)?u.on&&null!=(c=Zn(c[1],u.dv))&&(pn(e,u.p)[u.nm]=c):an("Invalid event data",u);Lo&&(o=Mn(ys,i),n=e,i=cn(o),d=i?i.length:0,(l=en.ml)&&l<d?an("Custom metadata size: "+d+" > "+l):2<d&&(o=ln(i))&&nn.assign(pn(n,ui),o)),Uo&&(l=Dn(Ss,a),d=e,l)&&nn.assign(pn(d,ci),l),yn&&bn("evInfo",e),!(pe<ce)&&en.le&&en.le(e)||(i={p:Ys,m:e,t:t},Ys&js?Ws.push(i):(au(e,p),Fs.push(i),m(f,ye,Fs),null==bs&&(bs=j(Js,en.bd))))}function su(t,n,r,e){var i,a=t.map(function(e){return e.m}),o=(a.forEach(function(e,n){var t,r=pn(e,si);Qa.on&&(pn(e,Qa.p)[Qa.nm]=sn()),Rs&&(r[en.ss+"_sampling"]=Rs),null!=Ds&&(r[en.ss+"_forced_sampling_in"]=Ds),n||(i=r[Ae],Be&&(nn.keys(Be).forEach(Qe),Be=null),Ye.length&&(i=i?i.concat(Ye):Ye,Ye=[],i.length>en.mc&&(i.sort(function(e,n){return e.batch()>n.batch()?1:-1}),t=i[i.length-en.mc-1].batch(),i=i.filter(function(e){return e.batch()>t})),r[Ae]=i))}),xn(en.mb)),a=cn(a);e&&U.sendBeacon&&U.sendBeacon(o,a)||Fn("POST",o,{"Content-Type":"application/json"},a,function(e){Qs(e,"Message post",su,t,n,en.rd,r,null,function(e,n){t.forEach(function(e){Je(e,n)}),i&&(Ye=i.concat(Ye))})})}function E(e){_s(xs,Vs,it,e)}function uu(e){return xs[e.nm]}function cu(e){var n=en.st;return e<Os&&an("Activity time reversal: "+Os+" -> "+e),0<=n&&(e<Os||Os+n<=e)}function lu(e){if(Tc&&(Tc=!1,pu(It,e)),Is&&As&&!cu(e))m(f,Ee,Os=e);else{Js(!(Ws=[]),!0);var n=e,t=Ks[zs];if(Is=un(),As=Os=n,E([[$i,Is],[qi,As],[pr,Ts=0],[mr,0],[_r,0],[hr,0],[fr,0],[vr,0]]),m(f,ve,Ts),m(f,Ee,Os),Bn(f,Se),Ms&&Ms.abort(),Ms=Rs=null,Ns=Ds=null,Ys|=Bs,Cs={},tu(),rn(t))try{t()}catch(e){on(e,"onAppSessionStart")}}E([[sr,e-As],[_a,Ze.outerWidth],[fa,Ze.outerHeight],[ro,vn.title],[io,w.href],[ao,vn.referrer],[oo,w.hostname],[ha,U.cookieEnabled]])}function du(e,n,t){vs(E,uu,e,n,t)}function pu(e,n,t,r,i){0!=(e.ap&it)?(lu(n),e.on&&ou({},e.nm,n,t,r,i,!0)):an("Event inapplicable: "+e.nm+", ss",e)}function fu(n,t){var r,i;n&&Fo.forEach(function(e){r=K+e.nm,null!=(i=n[r])&&(t([[e,i]]),delete n[r])})}if(ms(xs,Ho,it),Is=uu($i),As=uu(qi),Ts=jn(f,ve)||0,Os=jn(f,Ee)||0,Rs=jn(f,Se),ys=jn(f,ge),Ss=jn(f,"__ss_vendor_md"),en.st=Xs(jn(f,Ie)),Is&&As&&!cu(sn())||(E([[eo,null]]),Vo.forEach(function(e){E([[e,null]])})),Rs?(Ns=Rs.in_sample,Ds=!1,v(Bs)):Cs={},t.some(function(e){if(h=e[0].exec(x))return Ps=e[1],ks=h[1],!0})||(h=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(x))&&(Ps=h[1],ks=h[2]),(h=/Version\/([\d.]+)/.exec(x))&&(ks=h[1]),_.some(function(e){if(e[0].test(x))return Ls=e[1],!0})){switch(h=null,Ls){case"Mac OS X":h=/Mac OS X (10[\d._]+)/.exec(x);break;case"Android":h=/Android ([\d._]+)/.exec(x);break;case"iOS":h=/OS (\d+_\d+(_\d+)?)/.exec(x);break;case"Tizen":h=/Tizen[ \/]([\d._]+)/.exec(x);break;default:(h=/Windows (.*)/.exec(Ls))&&(Ls="Windows")}h&&(ws=h[1].replace(/_/g,"."))}else Ls=ws="-";mt.some(function(e){if(e[0].test(x))return Us=e[1],!0}),E([[s,x],[pa,Ps],[ma,ks],[Ia,Ls],[c,ws],[ya,Us],[no,en.cn],[to,en.sv],[Ja,3]]);var mu="baseContext",_u="contextType",hu="contextName",vu="metadata",Eu=0,gu=["base","player"],fn={},yu=[];function Su(e){if(!e.destroyed){e.setTimer(null);try{var n=e.destroyCallback;n&&n()}catch(e){on(e,"onDestroy")}delete fn[e.id],e.removeListeners(),e.destroyed=!0}}function Iu(e,n,t,r,i,a,o){(i=i||[]).push([Ka,e.id],[Xa,e.name]),ou(n,t,r,i,Mn(e.customMetadata,a),Dn(e.vendorMetadata,o))}function Au(e,n){return!(null!=n&&!Yn(n)||(e.customMetadata=ln(cn(n)),0))}function Tu(e){var n=Cn(xs);return n._c_=Mn(ys,e.customMetadata),n._v_=Dn(Ss,e.vendorMetadata),n}function Ou(){var t,c=[],r={},a={id:un(),type:Eu,destroyed:!1,destroyCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(e,n,t){if(a.destroyed)return an(e+" after destroyed"+(n?": "+n:""),t),!0},onDestroy:function(e){a.destroyCallback=e},setTimer:function(e){var n;t&&(0<=(n=yu.indexOf(t))&&yu.splice(n,1),t=null),e&&(yu.push(e),t=e)},fireEvent:function(e,n,t,r,i){a.shallBlock("fireEvent",e.nm,e)||(lu(n),e.on&&Iu(a,{},e.nm,n,t,r,i))},fireVendorEvent:function(e,n,t){a.fireEvent({ap:I,nm:Co(e,n),on:xo},sn(),null,null,Rn(e,t))},addListener:function(e,n,t,r,i){if(e&&n){var a=e[r=r||"addEventListener"];if(rn(a)){u=Nn(e,t,s="listener: "+(s=n));var o=pe<le?u:function(){je(s,arguments),u.apply(null,arguments)};try{"-"===n?a.call(e,o):a.call(e,n,o),c.push([e,n,t,o,i||"removeEventListener"])}catch(e){on(e,"addListener: "+n)}}else an("Invalid add-listener method: "+r,e)}var s,u},removeListeners:function(i,a,o){c=c.filter(function(e){var n=e[0],t=e[1];if(i&&i!=n||a&&a!=t||o&&o!=e[2])return!0;var r=n&&n[e[4]];if(rn(r))try{"-"===t?r.call(n,e[3]):r.call(n,t,e[3])}catch(e){}else an("Invalid remove-listener method: "+e[4],n)})},stash:function(e,n,t){r[e]=[n,t]},unstash:function(e){e.forEach(function(n){var e=r[n];if(e){delete r[n];try{e[0].apply(null,e[1])}catch(e){on(e,"unstash: "+n)}}})}},e={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return gu[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){Su(a)},setMetadata:function(e){return Au(a,e)},getMetadata:function(){return ln(cn(a.customMetadata))},generateEvent:function(e,n){a.fireEvent({ap:I,nm:X+e,on:wo},sn(),null,n)}};return yn&&(e.dumpDzData=function(){return ln(cn(Tu(a)))}),a.basePublicMethods=e,a.publicContext=Cn(e),fn[a.id]=a}function bu(e){return en.sn&&en.sn[e]||""+e}var Cu,Mu,Ru,Du,Nu,mn=[],Pu="idle",ku=(mn[2]=mn[9]="buffering",mn[3]=mn[10]="playing",mn[4]=mn[11]="paused",mn[5]=mn[12]="seeking",mn[6]="ended",mn[0]=mn[7]=mn[8]=Pu,function(U,x,i){var r,a,o,V,F,W,j,p={},B={},E={},H={},G={},$={},q=[],Y=[],z=[],K=[],X=[],J=[],Q=[],f=[],Z=un(),m=(w=i[mu],(e=(e=Yn(w)&&rn(w.contextID)&&w.contextID())&&Gn(e)&&fn[e])&&e.type==Eu&&e.publicContext===w?e:(null!=w&&an("Invalid contextOptions."+mu,w),Ou())),e=i[hu],s=(null!=e&&(m.name=e),(w=i["adapterID"])&&Gn(w)&&Ic[w]||(null!=w&&an("Adapter not found for id: "+w),Cu)),u=i["adapterOptions"];function ee(){if(o){for(var e,n=nn.keys(o),t=sn(),r=0;r<n.length;r++)k((e=o[n[r]]).ev,t,e.dl);o=null}}function g(e,n,t){(o=o||{})[t||e.nm]={ev:e,dl:n}}function _(e){_s(p,B,1,e)}function y(e){_s(E,H,2,e)}function S(e,n){return hs(n?E:p,e)}function ne(e){return E[e.nm]}function te(){var e=S(aa),n=S(oa);ms(p,Ho,1),_([[Ma,"content"],[aa,e],[oa,n]])}function re(){ms(E,Ho,2),y([[Ma,"ad"]])}function n(e,n){B[e.nm]=n}function ie(e,n){H[e.nm]=n}function ae(e,n){$[e.nm]=n}function t(e,n,t,r){for(var i=[],a=0;a<n.length;a++)i[n[a]]=!0;Q[e]={tr:i,en:t,ex:r}}u=Yn(u)?Cn(u):{},s&&(W=s[2],j=s[3],nn.assign(u,s[4]||{}),V=u[yc],F=u[Sc],(u[gc]||[]).forEach(function(e){G[e[0].nm]=e[1]})),U&&nn.keys(fn).some(function(e){e=fn[e];if(1==e.type&&e.player===U)return e.publicContext.destroy(),!0});var oe,c,se,ue,ce,l,le,de,I,pe,fe,A,me,T,O,_e,he,ve,Ee,ge,b,C,ye,Se,d,h,M,R,Ie,Ae,D,N,Te,v=0,Oe=Pu,be=1,Ce=sn(),Me=On(an,"Abnormal duration increment: ",1,1e3,3e5);function Re(){return 2==be}function De(){return!!T&&T.type===zo}function Ne(e){I=e+en.hi,Tn("Heartbeats started")}function Pe(){I&&Tn("Heartbeats stopped"),I=0}function P(e,n,t){return vs(_,S,e,n,t)}function ke(e){var n=e-Ce;n<0||n>en.ed?Me.log(n):0<n&&(4==v?P(yr,n,Er):11==v?P(gr,n,Er):2==v?(c&&P(jr,n,Fr),P(nr,n,Zt)):9==v&&(c&&P(Wr,n,Fr),P(er,n,Zt))),Ce=e}function Le(e,n){null!=e&&(f[e]=n)}function k(n,t,r,e,i,a){if(!m.shallBlock("fireEvent",n.nm,n))if(a=a||(De()?2:be),0!=(n.ap&a)){if(lu(t),(r=r||[]).push([Za,m.id]),Te||(Te=!0,(u=z.some(function(e){try{return e(t,r,n,a)}catch(e){on(e,"extEventHandler")}}))||(u=(c=$&&$[n.nm])&&c(t,r,n,a)),Te=!1),!u){ke(t);for(var o,s,u,c,l=[[Cr,Oe]],d=0;d<Do.length;d++)s=f[(o=Do[d]).ts],l.push([o,s?t-s:0]);_(l),null==S(Qt)&&En&&(c=En.downlink)&&_([[Qt,1e3*c]]),Le(n.rt,t),Le(2==a?n.rta:n.rtc,t),!n.on||n.mm&&!n.mm[S(Ma,2==a)]||(c=pn(u={},Jt),2==a?(gs(E,$o,2,u),gs(E,No,2,c),gs(p,$o,ot,u),gs(p,No,ot,c)):(gs(p,$o,1,u),gs(p,No,1,c),gs(E,$o,ot,u),gs(E,No,ot,c)),Iu(m,u,n.nm,t,r,e,i))}}else an("Event inapplicable: "+n.nm+", "+a,n)}function we(e){var n=e[1];n&&n!=S(e[0])&&g(yt)}function Ue(e,n){var t=3==n?b:C;if(e!=t){var r,i,a,o,s,u,c,l,d=sn();if(I||Ne(d),pe=!0,3==n){if(s=V||en.mp,b=e,a=d-ye,ye=d,r=S(Oa),A){var p,f=T;if(null==_e&&0<r&&(p=A.locate(r),_e=(p.type?p.start:r)-p._e),r=_e,O&&t>=O.start&&t<=O.end||(O=A.locate(t)),(T=T&&e>=T.start&&e<=T.end?T:A.locate(e))&&(u=T.type,c=T.start,l=T._d),T!=f&&(p=N<=e&&e<N+s,u===zo?D!==c&&l&&((null==D?We:(p&&k(wt,d),Ge))(d),D=c,N=T.end,Be(),y(l.concat([[po,N-D]])),He(d,T._a),k(pt,d,null,null,null,2),C=0,Se=d):null!=D&&(p&&k(wt,d,null,null,null,2),Ge(d),je(d))),u===zo)return void(l&&(Ue(f=e-c,10),E[dn.nm]=f))}de||(i=he=!he&&en.cm?en.cm.slice():he)}else s=F||en.mp,C=e,a=d-Se,Se=d,r=ne(po),i=ve=!ve&&en.am?en.am.slice():ve;if(null!=t&&null!=e&&0<=t&&t<e&&e<=t+s){if(0<r&&i)for(var m,_,h=0,v=3==n&&O&&T?(_=((O.type?O.start:t)-O._e)/r,((u?c:e)-T._e)/r):(_=t/r,e/r);h<i.length&&!(v<(m=i[h]/100));)_<m?(i.splice(h,1),g(Dt,[[Fi,100*m]],Dt.nm+m)):h++;if(3==n){if(M=e,a<0||a>en.ed)Me.log(a);else if(0<a)if(u)P("promo"===u?Or:null,a,Sr);else if(r=P(Tr,a,Sr)/1e3,en.cq)for(Ee=Ee||en.cq.slice();null!=(o=Ee[0])&&o<=r;)Ee.shift(),g(Vt,[[Wi,o]],Vt.nm+o)}else if(R=e,a<0||a>en.ed)Me.log(a);else if(0<a&&(P(Ir,a,Sr),r=vs(y,ne,Ar,a)/1e3,en.aq))for(ge=ge||en.aq.slice();null!=(o=ge[0])&&o<=r;)ge.shift(),g(Vt,[[Wi,o]],Vt.nm+o)}}}function xe(e,n){null==d&&null!=e&&null!=M&&e!=M&&(d=M,k(Ht,n||sn()))}function Ve(e,n){null==h&&null!=e&&null!=R&&e!=R&&(h=R,k(Ht,n||sn()))}function Fe(e){oe&&k(Yt,e),oe=se=!1,be=1,d=M=null,Pe()}function We(e){var n,t,r="pre";S(Tr)>1e3*en.ep&&(n=S(dn),t=S(Oa),r=null!=n&&null!=t&&n+en.ep>t?"post":"mid"),ue=l=le=!1,re(),_([[uo,un()],[_o,r],[dr,0]]),k(ct,e)}function je(e){Ie+=e-f[14],k(lt,e,null,null,null,2),_([[uo,null],[_o,null],[dr,null]])}function Be(){le||(le=!0,y([[ho,a||un()],[Ar,0]]),a=null)}function He(e,n){var t=Ks[3];if(ue=!0,ve=ge=null,du(pr,1),P(dr,1),rn(t))try{t(r,n)}catch(e){on(e,"onAdStart")}k(Lt,e)}function Ge(e){if(ue){var n=Ks[4];if(Ae+=e-f[9],rn(n))try{n(r)}catch(e){on(e,"onAdEnd")}}ue=l=le=!1,h=R=D=N=null,re()}function $e(e,n,t,r){var i,a,o,s;e!=v&&(o=Q[v],i=bu(v)+" => "+bu(e),a=mn[e]||Oe,m.shallBlock("setState",i)||(o.tr[e]?(Tn("state: "+i+" ("+a+")"),(o=o.ex)&&o(n,e,t,r),ke(n),s=v,Oe=a,(o=Q[v=e].en)&&o(n,s,t,r),pe=!0):an("Invalid transition: "+i)))}function qe(e){return e!=v&&!!Q[v].tr[e]}function Ye(){return 0==v||7==v||8==v}function L(o,s,u){return function(e){var n,t,r,i,a;n=o,t=s,r=u,a=(e=e)[0],e=e[1]=Zn(e[1],a.dv),a=S(a,r),null!=r&&r!=Re()||null==a||null==e||(t?!e!=!a&&g(e?n:t):e!=a&&g(n,i=n==Wt?a<e?[[Li,"up"]]:e<a?[[Li,"down"]]:null:i))}}function ze(e){e[1]=Zn(e[1],e[0].dv)}t(0,[1,8]),t(1,[2,7,8,16],function(e){var n=Ks[1];if(Fe(e),oe=!(ce=!1),de=Ko.test(S(la)),Ie=Ae=0,_([[Xi,Z],[ir,e]]),Z=un(),du(vr,1),rn(n))try{n(r)}catch(e){on(e,"onContentSessionStart")}A=me,me=T=O=_e=null,D=N=null,fe=0,k(Rt,e)}),t(2,[3,4,5,7,8,16],function(e,n){(c=3==n)&&(P(Vr,1,Ur),k($t,e)),k(ht,e)},function(e){k(vt,e),c&&k(qt,e),c=!1,se||k(Ct,e)}),t(3,[2,4,5,6,7,8,16],function(e){var n;se||(n=e-f[0],se=!0,he=Ee=null,du(fr,1),k(Lt,e,[[Hi,n-Ie],[Gi,n-Ae]])),b=M=S(dn),ye=e,null!=d&&(k(Gt,e,[[ji,1e3*d],[Bi,null!=b?1e3*b:null]]),d=null),k(xt,e),ce&&(ce=!1,k(Bt,e)),I||Ne(e)},function(){b=null}),t(4,[2,3,5,6,7,8,16],function(e){ce||(ce=!0,k(Pt,e))}),t(5,[2,3,4,6,7,8,16],function(e){xe(S(dn),e)}),t(6,[2,3,4,5,7,8,16],function(e){k(wt,e)}),t(7,[],function(e){Fe(e)}),t(8,[],function(e,n,t){k(At,e,t),Fe(e)}),t(9,[10,11,12,14,15,7],function(e,n){Be(),(c=10==n)&&(P(xr,1,Ur),k($t,e)),k(ht,e)},function(e){k(vt,e),c&&k(qt,e),c=!1}),t(10,[9,11,12,13,14,15,7],function(e,n,t,r){Be(),ue||He(e,r),C=R=ne(dn),Se=e,null!=h&&(k(Gt,e,[[ji,1e3*h],[Bi,null!=C?1e3*C:null]]),h=null),k(xt,e),l&&(l=!1,k(Bt,e)),I||Ne(e)},function(){C=null}),t(11,[9,10,12,14,15,7],function(e){l||(l=!0,k(Pt,e))}),t(12,[9,10,11,13,14,15,7],function(e){Ve(ne(dn),e)}),t(13,[9,10,17,7],function(e){k(wt,e),Ge(e)}),t(14,[9,10,17,7],function(e){k(ft,e),Ge(e)}),t(15,[9,10,17,7],function(e,n,t){k(At,e,t),Ge(e)}),t(16,[9,10,15,17,7],function(e){be=2,We(e)}),t(17,[2,3,4,5,6,7],function(e){je(e),be=1});var Ke,e=Lr,w=Lr;function Xe(e){var r=[],i=0,a=0;return r.locate=function(n){return r.find(function(e){return n>=e.start&&n<=e.end})},e.forEach(function(e){var n=e.start,t=e.end;$n(n)&&$n(t)&&(n=n<i?i:n)<t?(i<n&&r.push({start:i,end:n,_e:a}),r.push(nn.assign({},e,{start:n,_e:a})),e.type&&(a+=t-n),i=t):an("Skipped time span",e)}),r.push({start:i,end:_n.MAX_VALUE,_e:a}),r}function Je(e,n){e=e&&e({type:Sn,ack:n,appSID:uu($i),ctSID:S(Xi)});e&&e["catch"](function(e){An("Cast transfer message rejected",e)})}function Qe(e){var n,t=m.publicContext,r=null;m.player=e,nn.assign(t,m.basePublicMethods,{getError:function(){return r},getPlayer:function(){return e},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(Xi)},nextContentSessionID:function(){return Z},playerState:function(){return Oe},destroy:function(){if(!m.destroyed){qe(7)&&$e(7,sn());for(var e=0;e<Y.length;e++)try{Y[e]()}catch(e){on(e,"extOnDestroy")}Su(m)}},setMetadata:function(e){return!!Au(m,e)&&(fu(m.customMetadata,m.setData),!0)},annotateContentSession:function(e){return null==e?!(me=null):!!qn(e)&&(me=Xe(e.slice().sort(function(e,n){return e.start>n.start?1:-1})),!0)}}),yn&&(t.dumpDzData=function(){var e=nn.assign(Tu(m),p,E),n=Ma.nm;return e[n]=(Re()||De()?E:p)[n],ln(cn(e))}),wu.forEach(function(e){try{e(t,m,q,Y,z,K,X,J)}catch(e){on(e,"extInit")}});try{r=W?W(e,m,u):null}catch(e){r=on(e,s[0]+" initContext")}return r?(In(r),t.destroy()):(null!=(n=i[vu])&&t.setMetadata(n),n=sn(),k(St,n),k(Ut,n),m.setTimer(function(){for(var e=0;e<q.length;e++)try{q[e]()}catch(e){on(e,"extOnTimer")}if(Ke)try{Ke()}catch(e){on(e,"onTimer")}var n=sn();ke(n),I&&I<=n&&(pe?(k(bt,n,[[Vi,++fe]]),I=n+en.hi,pe=!1):Pe())})),t}return 1&(G[e.nm]||0)&&(e=Pr),2&(G[w.nm]||0)&&(w=Pr),n(Oa,ze),ie(po,ze),n(ca,function(e){var n=e[1];e[1]=n&&Xo[n]||n}),n(la,function(e){de=Ko.test(e[1])}),n(dn,function(e){for(var n=0;n<K.length;n++)try{K[n](e)}catch(e){on(e,"extPlayheadHandler")}5==v||2==v?xe(e[1]):3==v&&Ue(e[1],3)}),ie(dn,function(e){12==v?Ve(e[1]):10==v&&Ue(e[1],10)}),n(e,L(Wt,null,!1)),ie(w,L(Wt,null,!0)),n(ia,L(Nt,Kt)),n(ta,L(Ot,Tt)),n(Qi,L(Et,gt)),n(Da,L(jt)),n(Ra,L(jt)),n(oi,L(Xt)),n(ar,L(_t,null,!1)),ie(ar,L(_t,null,!0)),n(or,L(zt)),n(da,L(zt)),n(Yi,we),n(zi,we),n(Rr,function(e){var n,t,r,i,a=e[1];a=a&&rn(a.getBoundingClientRect)?"visible"==vn.visibilityState?(n=(t=a.getBoundingClientRect()).left,r=t.top,i=t.bottom,tn.min(100,tn.max(0,tn.round(100*(tn.min(t=t.right,Ze.innerWidth)-tn.max(n,0))*(tn.min(i,Ze.innerHeight)-tn.max(r,0))/((t-n)*(i-r)))))):0:Zn(a,Rr.dv),null!=(e[1]=a)&&_([[Mr,50<=a]])}),n(rr,function(e){var n=e[1];if(n&&rn(n.end)){var t,r,i=S(dn);if(null!=i)for(t=0;t<n.length;t++)if(r=n.end(t),i>=n.start(t)&&i<=r)return void(e[1]=1e3*(r-i));e[1]=0}}),ae(Ct,function(e,n,t,r){2==r&&(a=un(),n.push([ho,a,!0]))}),ae(pt,function(e,n){a&&n.push([ho,a,!0])}),ae(At,function(e,n,t,r){du(1==r?hr:_r,1,mr)}),te(),re(),nn.assign(m,{type:1,fireEvent:k,fire:function(e,n,t){k(e,sn(),n,null,null,t)},setState:function(e,n,t){$e(e,sn(),n,t)},canSetState:qe,reset:function(){qe(7)&&$e(7,sn()),te(),re(),f=[],v=0,Oe=Pu},setData:function(e){_(e),ee()},setAdData:function(e){y(e),ee()},getData:S,getAdData:ne,getState:function(){return v},isIdle:Ye,isAdIdle:function(){return 13==v||14==v||15==v},isInAds:Re,isInSsaiAds:De,onTimer:function(e){Ke=e},matchCtSource:function(e){return S(Na)==e},reqCtSID:function(){return Ye()?Z:S(Xi)},reqTracer:function(e,a){e=Un(e,function(e){e["delete"]("CMCD")});var n,t=m.reqCtSID(),r=un(),i=((a=nn.assign({},a||{},{sid:t}))[ds+"rid"]=r,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(n=S(Aa))&&(a.cid=n),{url:e,sid:t,rid:r,cmcd:a,start:sn()});return{reqID:r,urlBase:e,url:function(){var n=ps(a);return Un(e,function(e){e.append("CMCD",n[0].concat(n[1],n[2],n[3]).sort().join())})},headers:function(){for(var e={},n=ps(a),t=0;t<4;t++)n[t].length&&(e[Qo[t]]=n[t].sort().join());return e},enabledData:function(){for(var e,n,t=nn.keys(a),r={},i=0;i<t.length;i++)e=t[i],(n=cs[e])&&n[3]&&(r[e]=a[e]);return r},status:function(e){i.status=e},start:function(){i.start=sn()},resp:function(e){i.resp=null!=e?i.start+e:sn(),yn&&bn("reqInfo",i)},end:function(e){var n=sn(),t=(i.end=null!=e?i.start+e:n,nn.assign({},ls,a)),r=[];nn.keys(t).forEach(function(e){var n=cs[e];n&&n[2]&&r.push([n[2],t[e]])}),k(Mt,n,r,null,null,1),yn&&bn("reqInfo",i)}}},updateTimedMetadata:function(e,n,t,r,i){for(var a=0;a<X.length;a++)try{X[a](e,n,t,r,i)}catch(e){on(e,"extTimedMetadataHandler")}},addCtTimeSpans:function(e){var u=A?A.filter(function(e){return e.type}):[];e.forEach(function(e){for(var n,t,r,i,a=e.start,o=e.end,s=0;s<u.length&&(r=(t=u[s]).start,i=t.end,!(o<=r));s++)a<i&&(r<a?(u.splice(s+1,0,nn.assign({},t,{start:a})),t.end=a):(n||(u.splice(s++,0,e),n=!0),o<i?t.start=o:u.splice(s--,1)));n||u.splice(s,0,e)}),A=Xe(u),T=O=_e=null},initCastTransfer:function(e){Ye()||Je(e,!1)},handleCastMessage:function(e,n){!e||e.type!==Sn||Ye()||(m.setData([[Yi,e.appSID],[zi,e.ctSID]]),e.ack)||Je(n,!0)},sa:{}}),s&&_([[aa,s[1]]]),Ys&js&&fs((e=gn.options).cmcdEnable?e.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new hn(function(n,t){try{j(x,m,u).then(function(e){r=Qe(e),n(r)},function(e){In(e),t(e)})}catch(e){t(on(e,s[0]+" createTargetObject"))}}):hn.reject("Not implemented"):r=Qe(U)}),Lu=function(e,o){var s=new(e||k);return o=o||L,s.dispatch=function(e,n,t){var r,i,a;t=t||{},n&&((a=n.media)&&nn.assign(s,a),a=n.ima)&&((n=a.adsManager)&&nn.assign(s,n),t.getAdData=function(){return{currentTime:s.currentTime}},(r=a.ad)&&(t.getAd=function(){return{getAdId:function(){return r.adId},getAdSystem:function(){return r.adSystem},getAdvertiserName:function(){return r.advertiserName},getCreativeId:function(){return r.creativeId},getDealId:function(){return r.dealId},getDuration:function(){return r.duration},getSkipTimeOffset:function(){return r.skipTimeOffset},getVastMediaBitrate:function(){return r.vastMediaBitrate},getVastMediaWidth:function(){return r.vastMediaWidth},getVastMediaHeight:function(){return r.vastMediaHeight},getWrapperAdIds:function(){return r.wrapperAdIds},getWrapperAdSystems:function(){return r.wrapperAdSystems},getWrapperCreativeIds:function(){return r.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return r.adPodIndex},getTimeOffset:function(){return r.adTimeOffset}}},h:{clickThroughUrl:r.clickThroughUrl}}}),i=a.error)&&(t.getError=function(){return{getErrorCode:function(){return i.code},getMessage:function(){return i.message},getInnerError:function(){return i.innerError}}}),e&&(n=new o(e),nn.assign(n,t),s.dispatchEvent(n))},s.getBoundingClientRect=function(){return s.boundingClientRect||{left:0,right:0,top:0,bottom:0}},s.getVolume=function(){return s.volume},s},wu=[],Uu="REQUEST_COMPLETE",xu="SLOT_STARTED",Vu="SLOT_ENDED",Fu="AD_INITIATED",Wu="AD_BUFFERING_START",ju="AD_BUFFERING_END",Bu="AD_PAUSE",Hu="AD_RESUME",Gu="AD_IMPRESSION",$u="AD_IMPRESSION_END",qu="AD_COMPLETE",Yu="AD_SKIPPED",zu="AD_CLICK",Ku=(wu.push(function(e,r,n,t){var i,a,o=r.setState,s=r.setAdData,u=r.fire,c={},l={on:{}};function d(){i&&(r.removeListeners(i),c={},i=a=null)}l.$update=l.update=function(e,n){var t;r.isInAds()&&(n&&s([[Eo,p(n,"getTimePosition")]]),a&&(s([[dn,p(a,"getPlayheadTime")],[po,p(a,"getDuration")],[fo,p(a,"getAdId")],[lo,a._creativeId],[yo,p(a,"getDealId")],[So,p(a,"getSkipOffset")]]),n=p(a,"getActiveCreativeRendition"))&&(t=p(n,"getHeight"),s([[wr,p(n,"getWidth")],[Pr,t],[kr,t?t+"p":null]])),e)&&(n=p(e,"getAdVolume"),r.setData([[oi,100*n],[ia,0==n]]))},l.on[Uu]=function(e,n){n.success?u(Rt,null,2):u(At,null,2)},l.on[xu]=function(e,n){a=null,o(16),l.update(e,n.slot)},l.on[Vu]=function(){o(17),a=null},l.on[Fu]=function(){s([[br,1]]),u(Ct,null,2)},l.on[Wu]=function(){o(9)},l.on[ju]=l.on[Hu]=function(){o(10,null,a)},l.on[Gu]=function(){o(10,null,a),u(pt,null,2)},l.on[Bu]=function(){o(11)},l.on[qu]=function(){o(13),a=null},l.on[Yu]=function(){o(14),a=null},l.on[$u]=function(){a=null},l.on[zu]=function(){u(dt)},l.on["ERROR"]=function(e,n){o(15,[[wi,n.errorCode],[Ui,n.errorInfo]]),a=null},l.on["AD"]=function(e,n){a=n.adInstance,l.update(e);var t=c[n.subType];t&&t(e,n)},l.$on=Cn(l.on),r.sa.fwContext=l,n.push(function(){i&&l.update(i)}),t.push(d),Pn({attachFwContext:function(e){var n;!r.shallBlock("attachFwContext",null,e)&&e!=i&&(d(),i=e)&&(n=g(Ze.tv,["freewheel","SDK"]),[Uu,xu,Vu,"AD"].forEach(function(t){var e=n&&n["EVENT_"+t];e&&r.addListener(i,e,function(e){var n=l.on[t];n&&n(i,e)})}),[Fu,Wu,ju,Bu,Hu,Gu,$u,qu,Yu,zu,"ERROR"].forEach(function(r){var e=n&&n["EVENT_"+r];e&&(c[e]=function(e,n){var t=l.on[r];t&&t(e,n)})}))},detachFwContext:d},[e,r])}),"play"),Xu="waiting",Ju="playing",Qu="pause",Zu="seeking",ec="seeked",nc="ended",tc="durationchange",rc="ratechange",ic="timeupdate",ac=(wu.push(function(e,a,n,t){var i,o,s,u,r=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function p(){o&&d(o),i&&d(i),i=o=null}function f(){if(i){for(var e,n,t,r=0;r<i.length;r++)"metadata"===(t=i[r]).kind?n=n||t:"showing"===t.mode&&(e=e||t);s||c([[da,!!e],[or,e?e.label||e.language:null]]),o!=n&&(o&&d(o),o=n)&&l(o,"cuechange",function(){var e=o.activeCues;if(e)for(var n,t,r=0;r<e.length;r++)(t=(n=e[r]).value)&&a.updateTimedMetadata("ID3",n.startTime,n.endTime,t.key,t.data)})}}t.push(p);var m={on:{}};function _(){u&&d(u),u=null}m.$update=m.update=function(e,n){n&&(c([[Oa,e.duration],[ea,e.muted],[na,e.playbackRate]]),f()),a.isInAds()||c([[dn,e.currentTime],[br,e.playbackRate],[Da,e.offsetWidth],[Ra,e.offsetHeight],[Rr,e],[rr,e.buffered],[ra,e.loop],[ia,e.muted],[oi,100*e.volume],[ua,e.readyState]])},m.on[Ku]=function(e){a.isIdle()&&(a.reset(),m.update(e,!0),r(1),r(2))},m.on[Xu]=function(e){m.update(e),r(2)},m.on[Ju]=function(e){m.update(e),a.isAdIdle()&&r(17),r(3)},m.on[Qu]=function(e){m.update(e),r(4)},m.on[Zu]=function(e){m.update(e),r(5)},m.on[ec]=function(e){m.update(e),r(e.paused?4:3)},m.on[nc]=function(e){m.update(e),a.isAdIdle()&&r(17),r(6)},m.on["error"]=function(e){var n,t=e.error;t&&(n=[[wi,t.code],[Ui,t.message]]),m.update(e),r(8,n)},m.on[tc]=function(e){c([[Oa,e.duration]])},m.on[rc]=function(e){c([[br,e.playbackRate]])},m.on[ic]=function(e){m.update(e)},m.$on=Cn(m.on),a.sa.mediaElement=m,n.push(function(){u&&m.update(u)}),t.push(_),Pn({attachMediaElement:function(e){_(),(u=e)&&[[Ku,(e=[[nc,Qu,Zu,Ku,Xu,ec,Ju]])[0]],[Xu,e[0]],[Ju,e[0]],[Qu,e[0]],[Zu,e[0]],[ec,e[0]],[nc,e[0]],["error"],[tc],[rc],[ic]].forEach(function(r){var i=r[0];l(u,i,function(e){var n,t=m.on[i];t&&((n=r[1])?(a.stash(i,t,[u,e]),j(function(){a.unstash(n)},0)):t(u,e))})})},detachMediaElement:_,attachTextTracks:function(e,n){p(),s=n,(i=e)&&["change","addtrack","removetrack"].forEach(function(e){l(i,e,f)})},detachTextTracks:p},[a])}),"CLICK"),oc="STARTED",sc="AD_PROGRESS",uc="AD_BUFFERING",cc="IMPRESSION",lc="PAUSED",dc="RESUMED",pc="COMPLETE",fc="LOADED",mc="ALL_ADS_COMPLETED",_c="SKIPPED",hc="VOLUME_CHANGED",vc="AD_ERROR",Ec={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"},gc=(wu.push(function(e,a,n,t){var o,r=a.setState,i=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(e){var n,e=e.getError();return e&&(n=[[wi,e.getErrorCode()],[Ui,e.getMessage()]],e=e.getInnerError())&&n.push([xi,""+e]),n}var d,p,f={on:{}};function m(){o&&c(o),o=null}function _(e){var n=e.getAdPodInfo(),t=e.getVastMediaHeight(),t=[[fo,e.getAdId(),!0],[vo,e.getAdSystem(),!0],[go,e.getAdvertiserName(),!0],[lo,e.getCreativeId(),!0],[yo,e.getDealId(),!0],[po,e.getDuration(),!0],[So,e.getSkipTimeOffset(),!0],[Lr,e.getVastMediaBitrate(),!0],[wr,e.getVastMediaWidth(),!0],[Pr,t,!0],[kr,t?t+"p":null,!0],[Ao,e.getWrapperAdIds(),!0],[To,e.getWrapperAdSystems(),!0],[Io,e.getWrapperCreativeIds(),!0],[co,g(e,[/[a-z]/,"clickThroughUrl"]),!0]];return n&&t.push([Eo,n.getTimeOffset(),!0]),t}f.$update=f.update=function(e,n){a.isInAds()&&(n&&i(_(n)),e)&&(n=e.getVolume(),a.setData([[oi,100*n],[ia,0==n]]))},f.on[ac]=function(e){f.update(e),s(dt)},f.on[oc]=function(e,n){n=n.getAd();a.isInAds()||r(16),i([[br,1]]),f.update(e,n),r(10,null,n)},f.on[sc]=function(e,n){n=g(n.getAdData(),["currentTime"]);null!=n&&(f.update(e),9==a.getState()&&(null==d?d=n:d!=n&&r(10)),i([[dn,n]]))},f.on[uc]=function(e){f.update(e),r(9),d=null},f.on[cc]=function(e){f.update(e),s(pt,null,2)},f.on[lc]=function(e){f.update(e),r(11)},f.on[dc]=function(e){f.update(e),r(10)},f.on[pc]=function(e){f.update(e),r(13)},f.on[fc]=function(e,n){n=n.getAd();s(Ct,n&&_(n),2)},f.on[mc]=function(){r(17),m()},f.on[_c]=function(e){f.update(e),r(14)},f.on[hc]=function(e){f.update(e)},f.on[vc]=function(e,n){f.update(e),a.canSetState(15)?r(15,l(n)):s(At,l(n),2)},f.$on=Cn(f.on),a.sa.imaAdsManager=f,n.push(function(){o&&f.update(o)}),t.push(m);var h={on:{}};function v(){p&&c(p),p=null}h.on[vc]=function(e,n){s(At,l(n),2)},h.$on=Cn(h.on),a.sa.imaAdsLoader=h,t.push(v),Pn({attachImaAdsManager:function(e){var n,t;!a.shallBlock("attachImaAdsManager",null,e)&&e!=o&&(m(),o=e)&&(e=g(Ze.google,["ima"]),n=g(e,["AdEvent","Type"],Ec),[[ac],[oc,null,(t=[[oc,cc]])[0]],[sc],[uc],[cc,null,t[0]],[lc],[dc],[pc],[fc],[mc],[_c],[hc],[vc,g(e,["AdErrorEvent","Type"])]].forEach(function(r){var i=r[0],e=(r[1]||n)[i];e&&u(o,e,function(e){var n,t=f.on[i];t&&((n=r[2])?(a.stash(i,t,[o,e]),j(function(){a.unstash(n)},0)):t(o,e))})}),s(Rt,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(e){a.shallBlock("attachImaAdsLoader",null,e)||e==p||(v(),(p=e)&&(e=g(Ze.google,["ima","AdErrorEvent","Type"],Ec)[vc])&&u(p,e,function(e){var n=h.on[vc];n&&n(p,e)}))},detachImaAdsLoader:v},[e,a])}),wu.push(function(n,i,e,t,r,a,o){var s,u,c,l=i.addListener;function d(){s&&i.removeListeners(s),s=u=c=null}function p(e){for(var n;(n=u[0])&&n.t<=e;)u.shift(),delete n.t,s.onTimedMetadata(n)}t.push(d),a.push(function(e){s&&p(c=e[1])}),o.push(function(e,n,t,r,i){var a;s&&r&&i&&Gn(a="ID3"===e?i:a)&&((e={t:n})[r]=a,u.push(e),null!=c)&&p(c)}),Pn({attachImaDaiStreamManager:function(e){i.shallBlock("attachImaDaiStreamManager",null,e)||e==s||(d(),(s=e)&&(e=g(Ze.google,["ima","dai","api","StreamEvent","Type"]),u=[],e)&&(l(s,e.CUEPOINTS_CHANGED,function(e){i.isIdle()&&(e=g(e.getStreamData(),["cuepoints"]))&&e.length&&n.annotateContentSession(e.map(function(e){return{type:zo,start:e.start,end:e.end}}))}),l(s,e.STARTED,function(e){var n,t,r,e=e.getAd();e&&(n=c||0,t=e.getAdPodInfo(),r=e.getVastMediaHeight(),i.addCtTimeSpans([{type:zo,start:n,end:n+(e.getDuration()||0),_d:[[fo,e.getAdId()],[vo,e.getAdSystem()],[go,e.getAdvertiserName()],[lo,e.getCreativeId()],[yo,e.getDealId()],[So,e.getSkipTimeOffset()],[wr,e.getVastMediaWidth()],[Pr,r],[kr,r?r+"p":null],[Ao,e.getWrapperAdIds()],[To,e.getWrapperAdSystems()],[Io,e.getWrapperCreativeIds()],[Eo,t?t.getTimeOffset():null]],_a:e}]))})))},detachImaDaiStreamManager:d},[n,i])}),gn.mediatailor=((kt=y.mediatailor)&&(kt.clientInfo+=" DZSDK "+en.cn+" v"+en.sv),kt),wu.push(function(e,s,n,t,r,i,a,o){var u,c,l,d,p;function f(e,n,t){if(e&&1===e.playCount)for(var r=o.length,i=0;i<r;i++)o[i](n,t)}function m(){u&&c&&u.removeAdObserver(c),u=c=null,l=d=p=null}t.push(m),r.push(function(e,n,t,r){var i=l&&l[t.nm];return i&&i(e,n,t,r)}),i.push(function(e){u&&!s.isIdle()&&(d=e[1],p=s.getData(Dr),pe<le||je("MT onPlayheadUpdate: "+d+", "+p),u.onPlayheadUpdate(d,p||null))}),Pn({attachMediaTailorSession:function(e,n){var o,t,r,i,a;n=n||gn.mediatailor,!s.shallBlock("attachMediaTailorSession",null,e)&&n&&e!=u&&(m(),t=function(){var e=s.getData(oi);$n(e)&&f(o,14,e)},r=n.AdTrackingEvent,(i=[])[r.IMPRESSION]=(a=function(e){return function(){f(o,e)}})(3),i[r.LOADED]=a(1),i[r.START]=a(2),i[r.FIRST_QUARTILE]=a(4),i[r.MID_POINT]=a(5),i[r.THIRD_QUARTILE]=a(6),i[r.COMPLETE]=a(7),i[r.PAUSE]=a(8),i[r.RESUME]=a(9),i[r.FULLSCREEN]=a(15),i[r.EXIT_FULLSCREEN]=a(16),i[r.MUTE]=function(){f(o,14,0)},i[r.UNMUTE]=t,i[r.CLICK_THROUGH]=function(){s.fire(dt),f(o,13)},i[r.SKIP]=function(){s.fire(ft),f(o,12)},u=e)&&(a=n.PlaybackEvent,l={},[[a.START,Lt,1],[a.END,Yt,I],[a.PAUSE,Pt,I],[a.RESUME,Bt,I],[a.MUTE,Nt,I],[a.UNMUTE,Kt,I],[a.FULLSCREEN,Ot,I],[a.EXIT_FULLSCREEN,Tt,I]].forEach(function(i){l[i[1].nm]=function(e,n,t,r){i[2]&r&&u.onPlaybackEvent(i[0])}}),l[Xt.nm]=t,l[ht.nm]=function(){f(o,10)},l[vt.nm]=function(){f(o,11)},c={onNewAd:function(e){var n;s.addCtTimeSpans([(n=(n=(e=e).startDate)&&p?n-p+d:e.start,{type:zo,start:n,end:n+e.duration,_a:e,_d:[[fo,e.vastAdId],[vo,e.adSystem],[lo,e.creativeId],[So,e.skipOffset],[Eo,e.availStart],[co,e.videoClickThrough]]})])},onAdLoad:function(e){var n,t,r,i,a;1===(o=e).playCount&&(n=e.adVerifications)&&(t={},r=[],i=s.getData(oi),a=e.skipOffset,$n(i)&&(t["v"]=i),t["d"]=e.duration,t["ap"]=!!s.getData(Ji),t["po"]=0===e.availStart?0:1,t["sk"]=0<=a,t["so"]=t["sk"]?a:null,t["vf"]=r,n.forEach(function(e){var n=g(e.javaScriptResource,[0,"uri"]),t=e.vendor;n&&t&&r.push({url:n,vd:t,p:e.verificationParameters||""})}),f(e,0,t))},onAdEnd:function(e){f(e,17),o=null},onAdTrackingEvent:function(e,n){n=i[n];n&&n()}},u.addAdObserver(c))},detachMediaTailorSession:m},[e])}),wu.push(function(s,u,e,n,t,r,i){var p,c,l,a,d,f,m,_,h,v=["YMID","YSEQ","YTYP","YDUR"];function E(){p&&c&&p.removeAnalyticObserver(c),p=c=null,l=a=d=m=null}function o(e){for(var n;(n=l[0])&&n.t<=e;)l.shift(),p.onTimedMetadata(h.createFromMetadata(n.YMID,n.YSEQ,n.YTYP,n.YDUR,1e3*n.t))}function g(e,n,t){(a=a&&a.t===e?a:{t:e})[n]=t||"",nn.keys(a).length===v.length+1&&(l.push(a),(a=null)!=m)&&o(m)}n.push(E),t.push(function(e,n,t,r){var i=d&&d[t.nm];return i&&i(e,n,t,r)}),r.push(function(e){p&&!u.isIdle()&&(m=e[1],f===_.VOD||f===_.DVRLIVE?p.onPlayheadUpdate(tn.round(1e3*m)):o(m))});var y=O.fromCharCode;function S(e,n,t){for(var r,i=[];n<t;)31<(r=e[n++])&&r<127&&i.push(y(r));return i.join("")}i.push(function(e,n,t,r,i){var a;if(p&&i&&f===_.LIVE)if("ID3"===e||"org.id3"===e)v.includes(r)&&(i instanceof R&&(i=new M(i))||i instanceof M?3===i[0]&&(a=S(i,1,i.length)):a=i,Gn(a))&&g(n,r,a);else if("urn:yospace:a:id3:2016"===e){if(i instanceof M)for(var o,s=S(i,0,i.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),v.includes(o[0])&&g(n,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===e&&i instanceof M){var c=i.length;if(9<c&&73===i[0]&&68===i[1]&&51===i[2]&&(i[3]<<8|i[4])<=1024&&!(192&i[5])){u=6;for(var l=0,d=10;u<d;)l=l<<7|127&i[u++];for(c=tn.min(c,l+10);u+9<c;){for(r="",d=u+4;u<d;)r+=y(i[u++]);for(l=0,d=u+4;u<d;)l=l<<7|127&i[u++];d=(u+=2)+l,v.includes(r)&&d<=c&&g(n,r,S(i,u,d)),u=d}}}}),Pn({attachYospaceSession:function(e){var n,a,o,t,r,i=Ze.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,e)&&i&&e!=p&&(E(),p=e)&&(n=i.PlayerEvent,e=i.BreakType,_=i.PlaybackMode,h=i.TimedMetadata,f=p.getPlaybackMode(),l=[],d={},[[n.START,Lt,1],[n.STOP,Yt,I],[n.PAUSE,Pt,I],[n.RESUME,Bt,I],[n.STALL,$t,I],[n.CONTINUE,qt,I]].forEach(function(i){d[i[1].nm]=function(e,n,t,r){i[2]&r&&p.onPlayerEvent(i[0],0)}}),d[Gt.nm]=function(){p.onPlayerEvent(n.SEEK,1e3*(m||0))},d[Nt.nm]=function(){p.onVolumeChange(!0)},d[Kt.nm]=function(){p.onVolumeChange(!1)},a=function(e,n){e=e.getProperty(n);return e&&e.getValue()},o=function(e,n,t,r){e&&(n.push(e.getIdentifier()),t.push(e.getAdSystem()),r.push(e.getCreativeIdentifier()),o(e.getLineage(),n,t,r))},t=function(e){var n=e.getSkipOffset(),t=[],r=[],i=[],n=(o(e.getLineage(),t,r,i),[[fo,e.getIdentifier()],[vo,a(e,"AdSystem")],[go,a(e,"Advertiser")],[So,0<n?n/1e3:n],[Ao,t],[To,r],[Io,i]]),t=e.getLinearCreative(),r=(t&&n.push([lo,t.getCreativeIdentifier()],[co,t.getClickThroughUrl()]),e.getStart()/1e3);return{type:zo,start:r,end:r+e.getDuration()/1e3,_d:n,_a:e}},c={onAdvertBreakStart:function(e){},onAdvertBreakEnd:function(){},onAdvertStart:function(e){u.addCtTimeSpans([t(e)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(e){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(e){}},p.addAnalyticObserver(c),f===_.VOD)&&(r=[],(i=p.getAdBreaksByType(e.LINEAR))&&i.forEach(function(e){e=e.adverts;e&&e.forEach(function(e){r.push(t(e))})}),r.length)&&s.annotateContentSession(r)},detachYospaceSession:E},[s])}),wu.push(function(e,r,n,t,i,a,o,s){var u,m,_,c;function h(){c&&c(17),m=_=c=null,u=!1}t.push(h),s.push(function(e,n){u&&(0===e?(c&&c(17),c=!1===en.om?null:_(n)):c&&(c(e,n),17===e)&&(c=null))}),Pn({startOmidSessionClient:function(e){var c,l,d,p,f=y.OmidSessionClient,n=Hn.omidPartnerName,t=Hn.omidPartnerVersion;r.shallBlock("startOmidSessionClient",null,e=e||{})||(c=e.omidServiceWindow||Ze.self,l=e.videoElement,d=e.contentURL||w.href,p=e.accessModeHandler,f&&n&&t&&l?(h(),m=new f.Partner(n,t),_=function(n){var t,r,i,a,o,s,e=n["vf"],e=e&&e.map(function(e){var n=e["url"],t=e["vd"],e=e["p"]||"";return new f.VerificationScriptResource(n,t,e,p&&p(n,t,e)||"full")});return e&&e.length?((e=new f.Context(m,e,d)).setServiceWindow(c),"VIDEO"===l.tagName?e.setVideoElement(l):e.setVideoElement(l.getElementsByTagName("video")[0]||l),t=new f.AdSession(e),r=!1,i=[],t.setCreativeType("video"),t.setImpressionType("beginToRender"),t.isSupported()?(s=[,function(){a.loaded(new f.VastProperties(n["sk"],n["so"],n["ap"],n["po"]))},function(){o.start(n["d"],n["v"]/100)},function(){a.impressionOccurred()},function(){o.firstQuartile()},function(){o.midpoint()},function(){o.thirdQuartile()},function(){o.complete()},function(){o.pause()},function(){o.resume()},function(){o.bufferStart()},function(){o.bufferFinish()},function(){o.skipped()},function(){o.adUserInteraction("click")},function(e){n["v"]=e,o.volumeChange(e/100)},function(){o.playerStateChange("fullscreen")},function(){o.playerStateChange("normal")},function(){t.finish()}],t.registerSessionObserver(function(e){switch(e.type){case"sessionStart":var n;for(a=new f.AdEvents(t),o=new f.MediaEvents(t),r=!0;n=i.shift();)u(n[0],n[1]);break;case"sessionError":an("OMID ad session error")}}),t.start(),u):(an("OMID ad session unsupported"),null)):null;function u(e,n){var t;r?(t=s[e])&&t(n):i.push([e,n])}},u=!0):In("Missing OM SDK library or parameters"))},stopOmidSessionClient:h},[e])}),gn.omidPartnerName=Hn.omidPartnerName,gn.omidPartnerVersion=Hn.omidPartnerVersion,"unsupportedDataList"),yc="maxCtPlayheadInterval",Sc="maxAdPlayheadInterval",Ic={};function Ac(){if(!Du){var e=Ks[2];if(rn(e))try{e()}catch(e){on(e,"onPageUnload")}nn.keys(fn).forEach(function(e){fn[e].publicContext.destroy()}),Js(!0),Du=!0}}cr=[ur="theo","THEOplayer",cr=function(o,s,e){var n,e=e.THEOplayerRoot||Ze.THEOplayer;if(!o||!e)return"Invalid player or missing THEOplayer root";function t(e,n,t){s.addListener(e,n,t)}function r(e,n){t(o,e,n)}function i(e,n){t(o.ads,e,n)}function a(e,n){t(o.audioTracks,e,n)}function u(e,n){t(o.textTracks,e,n)}s.setData([[oa,e.version]]);var c,l,e=e.cmcd,d=e&&e.Connector,e=e&&e.TransmissionMode;function p(){var e=g(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();return e&&e.getCurrentSession()}function f(e){var n=p();return n&&n.sendMessage(ie,e)}function m(){s.removeListeners(null,ie),s.addListener(p(),ie,function(e,n){s.handleCastMessage(ln(n),f)},"addMessageListener","removeMessageListener")}function _(){for(var e,n,t=o.audioTracks,r=0;r<t.length;r++)if((n=t[r]).enabled){e=n;break}t&&s.setData([[ar,e?e.label||e.language:null],[Nr,g(e,["activeQuality","bandwidth"])/1e3]])}function h(){if(!s.isInAds()){for(var e,n,t,r=o.textTracks,i=0;i<r.length;i++)"metadata"===(t=r[i]).kind?n=n||t:"showing"===t.mode&&(e=e||t);s.setData([[da,!!e],[or,e?e.label||e.language:null]]),l!=n&&(l&&s.removeListeners(l),l=n)&&s.addListener(l,"cuechange",function(){var e=l.activeCues;if(e)for(var n,t,r=0;r<e.length;r++)(t=(n=e[r]).content)&&s.updateTimedMetadata("ID3",n.startTime,n.endTime,t.id,t.text)})}}function v(){var e,n,t,r,i,a;s.isIdle()||(e=g(o,["element"]),n=g(o,["duration"]),t="inline"!=g(o,["presentation","currentMode"]),r=isNaN(n)?null:n==1/0?"Live":"VOD",0<o.buffered.length&&0<o.seekable.length&&0<o.seekable.end(0)&&(a=tn.max(o.buffered.end(o.buffered.length-1)-o.currentTime,0),i=tn.min(o.abr.targetBuffer,o.seekable.end(0)-o.currentTime),a=100*tn.min(a/i,1)),isNaN(a)||s.setData([[tr,a]]),_(),h(),e&&s.setData([[Da,e.offsetWidth],[Ra,e.offsetHeight],[Rr,e],[Pr,g(o,["videoHeight"])],[wr,g(o,["videoWidth"])]]),s.setData([[Ji,g(o,["autoplay"])],[Zi,g(o,["controls"])],[ia,g(o,["muted"])],[oi,100*g(o,["volume"])],[br,g(o,["playbackRate"])],[rr,o.buffered],[ba,g(o,["videoTracks",0,"activeQuality","frameRate"])],[Oa,isNaN(n)?null:n],[ta,t],[ra,g(o,["loop"])],[Aa,g(o,["source","sources","0","id"],null)],[la,r],[ua,g(o,["readyState"])]]))}function E(e){e&&s.setAdData([[po,g(e,["ad","duration"])]])}ss&&d&&e&&(c={},new d(o,{sessionID:s.reqCtSID(),transmissionMode:us?e.HTTP_HEADER:e.QUERY_ARGUMENT,sendRequestID:!1}).processor=function(e,n){!1===e.bs&&delete e.bs;n=n.url,e=s.reqTracer(n,e);return(c[n.split("?")[0]]=e).enabledData()},o.network.addResponseInterceptor(function(e){var n=e.url.split("?")[0],t=c[n];t&&(t.status(e.status),t.resp(),t.end(),delete c[n])})),o.cast&&t(o.cast.chromecast,"statechange",function(e){e="connected"==e.state;e&&(m(),s.initCastTransfer(f)),s.setData([[Qi,e]])}),r("play",function(){var e,n,t=g(o.cast,["chromecast","casting"]),r=o.src;s.isIdle()||s.matchCtSource(r)||s.reset(),s.isInAds()||(s.isIdle()&&(s.reset(),s.setData([[ca,(n=r,e=(e=(e=null)&&Xo[e])||(n=(n=(n=n)&&/\.(\w+)($|\?)/.exec(n))&&n[1])&&Jo[n.toLowerCase()])],[Na,r],[Rr,o.element||null],[ea,o.muted],[na,o.playbackRate],[sa,o.preload]]),v(),s.setState(1),s.setState(2),t)&&(m(),s.initCastTransfer(f)),t&&s.setState(3))}),r("waiting",function(){s.setState(2)}),r("playing",function(){s.isInAds()?(E(),s.setState(10)):(v(),s.setState(3))}),r("pause",function(){s.isInAds()?(E(),s.setState(11)):(v(),s.setState(4))}),r("seeking",function(){s.isInAds()||(v(),s.setState(5))}),r("seeked",function(){v(),s.setState(o.paused?4:3)}),r("ended",function(){s.setState(6)}),r("error",function(e){var n=[];e&&(n.push([Ui,g(e,["errorObject","message"])]),n.push([wi,g(e,["errorObject","code"])])),v(),s.setState(8,n)}),r("durationchange",function(){s.isInAds()||(v(),s.setData([[Oa,o.duration]]))}),r("ratechange",function(){s.setData([[br,o.playbackRate]]),v()}),t(o.videoTracks,"addtrack",function(e){s.isInAds()||(t(e.track,"activequalitychanged",function(e){var n=g(e,["quality","height"]),e=g(e,["quality","bandwidth"])/1e3;s.setData([[Lr,e],[kr,n?n+"p":null]])}),t(e.track,"targetqualitychanged",function(e){s.fire(Ft)}),v())}),u("change",h),u("addtrack",h),u("removetrack",h),a("change",_),a("addtrack",_),a("removetrack",_),r("timeupdate",function(e){s.isInAds()?(null!=(e=g(e,["currentTime"]))&&(E(),9==s.getState())&&(null==n?n=e:n!=e&&s.setState(10)),s.setAdData([[dn,e]])):((e=o.currentProgramDateTime)&&s.setData([[Dr,e.getTime()/1e3]]),s.setData([[dn,o.currentTime]]))}),i("adbreakbegin",function(e){s.setState(16)}),i("adbuffering",function(e){s.setState(9),n=null}),i("adbegin",function(e){e&&s.setAdData([[So,g(e,["ad","skipOffset"])],[Io,g(e,["ad","wrapperCreativeIds"])],[Ao,g(e,["ad","wrapperAdIds"])],[To,g(e,["ad","wrapperAdSystems"])],[lo,g(e,["ad","creativeId"])],[fo,g(e,["ad","id"])],[vo,g(e,["ad","adSystem"])],[Eo,g(e,["ad","adBreak","timeOffset"])]]),E(e),s.setState(10)}),i("adskip",function(e){s.setState(14)}),i("adend",function(e){j(function(){s.setState(13)},0)}),i("adbreakend",function(e){j(function(){s.setState(17)},0)}),i("adimpression",function(e){s.fire(pt,null,2)}),s.onTimer(function(){(s.isInAds()?E:v)()})},Mu,Ru],Cu=Cu||cr,Ic[ur]=cr;var Tc=!0;function Oc(t){if(!Nu){if(!(en.ci||Vn(ne,re)||t&&t[re]))return!1;t&&(ne=Un(ne,function(n){nn.keys(t).forEach(function(e){n.set(e,t[e])})}),me()),Tc&&(Tc=!1,pu(It,sn()));var e=Vn(ne,"env");en.cf="staging"===e||"dev"===e||"sandbox"===e?e:"",en.ci=Vn(ne,re)||en.ci,en.om=null,E([[li,en.ci]]),iu(),Nu=!0}return!0}function bc(e){e()}function Cc(e,n,t){Yn(t)||(null!=t&&an("Invalid contextOptions",t),t={});var r,i,a,o,s=t[_u];return s&&s!==gu[1]?s===gu[Eu]?(i=(r=Ou()).publicContext,a=t[vu],r.name=t[hu],null!=a&&i.setMetadata(a),r.fireEvent(St,sn()),i):(In(a="Unknown context type: "+s),n?hn.reject(a):(o=a,{getError:function(){return o}})):ku(e,n,t)}p(Ze,"addEventListener",["pagehide",Ac]),"Safari"==Ps&&p(Ze,"addEventListener",["beforeunload",function(e){j(function(){e.defaultPrevented||e.returnValue||Ac()},0)}]),An("Datazoom SDK "+en.sv+" ("+en.cn+") DDv3"),W(function(){yu.length?yu.forEach(bc):sn()},en.ti),nn.assign(gn,{init:Oc,setLogLevel:fe,createContext:function(e,n){return Cc(e,null,n)},createBaseContext:function(e){return(e=Yn(e)?Cn(e):{})[_u]=gu[Eu],Cc(null,null,e)},createContextAndTarget:function(e){for(var n=[],t=1;t<arguments.length;t++)n.push(arguments[t]);return Cc(null,n,e)},createCollectorProxy:function(e,n,t){return e&&e!==gu[1]?(In("Unsupported context type: "+e),null):Lu(n,t)},adapterIDs:function(){return nn.keys(Ic)},contexts:function(){return nn.keys(fn).map(function(e){return fn[e].publicContext})},playerContexts:function(){return nn.keys(fn).filter(function(e){return 1==fn[e].type}).map(function(e){return fn[e].publicContext})},setMetadata:function(e){return!(null!=e&&!Yn(e)||(fu(ys=ln(cn(e)),E),m(f,ge,ys),0))},getMetadata:function(){return ln(cn(ys))},generateEvent:function(e,n,t){t=!t&&nn.keys(fn)[0];t?fn[t].publicContext.generateEvent(e,n):pu({ap:ut,nm:X+e,on:wo},sn(),null,n)},on:function(e,n){Ks[e]=n},appSessionID:function(){return Is},generateUUID(){return un()},sdkEvent:{APP_SESSION_START:zs,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:zo,PROMO:"promo"},overridableMetadata:Wo,name:en.cn,version:en.sv,dictionaryVersion:3}),Mc||j(Oc,en.kd)})("object"==typeof globalThis?globalThis:window,{},(s={},function(){function e(n,r){var u=u||{},i=(u.scope={},u.createTemplateTagFirstArg=function(e){return e.raw=e},u.createTemplateTagFirstArgWithRaw=function(e,n){return e.raw=n,e},u.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}},u.arrayIterator=function(e){return{next:u.arrayIteratorImpl(e)}},u.makeIterator=function(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.call(e);if("number"==typeof e.length)return u.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t},u.arrayFromIterable=function(e){return e instanceof Array?e:u.arrayFromIterator(u.makeIterator(e))},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(e){function n(){}return n.prototype=e,new n},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,n,t){return e!=Array.prototype&&e!=Object.prototype&&(e[n]=t.value),e},u.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ie&&ie];for(var n=0;n<e.length;++n){var t=e[n];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(e,n,t,r){n&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(e,n,t,r):u.polyfillUnisolated(e,n,t,r))},u.polyfillUnisolated=function(e,n,t,r){for(t=u.global,e=e.split("."),r=0;r<e.length-1;r++){var i=e[r];if(!(i in t))return;t=t[i]}(n=n(r=t[e=e[e.length-1]]))!=r&&null!=n&&u.defineProperty(t,e,{configurable:!0,writable:!0,value:n})},u.polyfillIsolated=function(e,n,t,r){var i=e.split(".");e=1===i.length,r=i[0],r=!e&&r in u.polyfills?u.polyfills:u.global;for(var a=0;a<i.length-1;a++){var o=i[a];if(!(o in r))return;r=r[o]}i=i[i.length-1],null!=(n=n(t=u.IS_SYMBOL_NATIVE&&"es6"===t?r[i]:null))&&(e?u.defineProperty(u.polyfills,i,{configurable:!0,writable:!0,value:n}):n!==t&&(void 0===u.propertyToPolyfillSymbol[i]&&(t=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[i]=u.IS_SYMBOL_NATIVE?u.global.Symbol(i):u.POLYFILL_PREFIX+t+"$"+i),u.defineProperty(r,u.propertyToPolyfillSymbol[i],{configurable:!0,writable:!0,value:n})))},u.getConstructImplementation=function(){var r;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(e,[],function(){}),new e instanceof e?Reflect.construct:(r=Reflect.construct,function(e,n,t){return e=r(e,n),t&&Reflect.setPrototypeOf(e,t.prototype),e})):function(e,n,t){return t=u.objectCreate((t=void 0===t?e:t).prototype||Object.prototype),Function.prototype.apply.call(e,t,n)||t};function e(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var e={};try{return e.__proto__={a:!0},e.a}catch(e){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(e,n){if(e.__proto__=n,e.__proto__!==n)throw new TypeError(e+" is not extensible");return e}:null,u.inherits=function(e,n){if(e.prototype=u.objectCreate(n.prototype),e.prototype.constructor=e,u.setPrototypeOf){var t=u.setPrototypeOf;t(e,n)}else for(t in n){var r;"prototype"!=t&&(Object.defineProperties?(r=Object.getOwnPropertyDescriptor(n,t))&&Object.defineProperty(e,t,r):e[t]=n[t])}e.superClass_=n.prototype},u.getRestArguments=function(){for(var e=Number(this),n=[],t=e;t<arguments.length;t++)n[t-e]=arguments[t];return n},u.polyfill("Reflect",function(e){return e||{}},"es6","es3"),u.polyfill("Reflect.construct",function(e){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(e){var t;return e||(u.setPrototypeOf?(t=u.setPrototypeOf,function(e,n){try{return t(e,n),!0}catch(e){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(e){var n,t,r,i;return e||((n=function(e,n){this.$jscomp$symbol$id_=e,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:n})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0,i=function(e){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return new n(t+(e||"")+"_"+r++,e)})},"es6","es3"),u.polyfill("Symbol.iterator",function(e){if(!e){e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<n.length;t++){var r=u.global[n[t]];"function"==typeof r&&"function"!=typeof r.prototype[e]&&u.defineProperty(r.prototype,e,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return e},"es6","es3"),u.iteratorPrototype=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e},u.iteratorFromArray=function(n,t){n instanceof String&&(n+="");var r=0,i=!1,e={next:function(){var e;return!i&&r<n.length?(e=r++,{value:t(e,n[e]),done:!1}):{done:i=!0,value:void 0}}};return e[Symbol.iterator]=function(){return e},e},u.polyfill("Array.prototype.keys",function(e){return e||function(){return u.iteratorFromArray(this,function(e){return e})}},"es6","es3"),u.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.polyfill("Object.values",function(e){return e||function(e){var n,t=[];for(n in e)u.owns(e,n)&&t.push(e[n]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var r={},i=Object.create(new u.global.Proxy(r,{get:function(e,n,t){return e==r&&"q"==n&&t==i}}));return!0===i.q}catch(e){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 i(e){var n=typeof e;return"object"==n&&null!==e||"function"==n}function a(e){var n;u.owns(e,o)||(n=new t,u.defineProperty(e,o,{value:n}))}function e(e){var n;u.ISOLATE_POLYFILLS||(n=Object[e])&&(Object[e]=function(e){return e instanceof t?e:(Object.isExtensible(e)&&a(e),n(e))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if((()=>{if(r&&Object.seal)try{var e=Object.seal({}),n=Object.seal({}),t=new r([[e,2],[n,3]]);return 2==t.get(e)&&3==t.get(n)?(t.delete(e),t.set(n,4),!t.has(e)&&4==t.get(n)):void 0}catch(e){}})())return r;function n(e){if(this.id_=(s+=Math.random()+1).toString(),e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var o="$jscomp_hidden_"+Math.random(),s=(e("freeze"),e("preventExtensions"),e("seal"),0);return n.prototype.set=function(e,n){if(!i(e))throw Error("Invalid WeakMap key");if(a(e),u.owns(e,o))return e[o][this.id_]=n,this;throw Error("WeakMap key fail: "+e)},n.prototype.get=function(e){return i(e)&&u.owns(e,o)?e[o][this.id_]:void 0},n.prototype.has=function(e){return i(e)&&u.owns(e,o)&&u.owns(e[o],this.id_)},n.prototype.delete=function(e){return!!(i(e)&&u.owns(e,o)&&u.owns(e[o],this.id_))&&delete e[o][this.id_]},n},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(i){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if((()=>{if(!u.ASSUME_NO_NATIVE_MAP&&i&&"function"==typeof i&&i.prototype.entries&&"function"==typeof Object.seal)try{var e,n,t=Object.seal({x:4}),r=new i(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:(n=(e=r.entries()).next()).done||n.value[0]!=t||"s"!=n.value[1]?void 0:!((n=e.next()).done||4!=n.value[0].x||"t"!=n.value[1]||!e.next().done)}catch(e){}})())return i;function e(e){if(this.data_={},this.head_=t(),this.size=0,e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var a=new WeakMap,r=(e.prototype.set=function(e,n){var t=r(this,e=0===e?0:e);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=n:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:e,value:n},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},e.prototype.delete=function(e){return!(!(e=r(this,e)).entry||!e.list||(e.list.splice(e.index,1),e.list.length||delete this.data_[e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,0))},e.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},e.prototype.has=function(e){return!!r(this,e).entry},e.prototype.get=function(e){return(e=r(this,e).entry)&&e.value},e.prototype.entries=function(){return n(this,function(e){return[e.key,e.value]})},e.prototype.keys=function(){return n(this,function(e){return e.key})},e.prototype.values=function(){return n(this,function(e){return e.value})},e.prototype.forEach=function(e,n){for(var t,r=this.entries();!(t=r.next()).done;)e.call(n,(t=t.value)[1],t[0],this)},e.prototype[Symbol.iterator]=e.prototype.entries,function(e,n){var t=n&&typeof n,r=("object"==t||"function"==t?a.has(n)?t=a.get(n):(t=""+ ++o,a.set(n,t)):t="p_"+n,e.data_[t]);if(r&&u.owns(e.data_,t))for(e=0;e<r.length;e++){var i=r[e];if(n!=n&&i.key!=i.key||n===i.key)return{id:t,list:r,index:e,entry:i}}return{id:t,list:r,index:-1,entry:void 0}}),n=function(e,n){var t=e.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=e.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:n(t)};t=null}return{done:!0,value:void 0}})},t=function(){var e={};return e.previous=e.next=e.head=e},o=0;return e},"es6","es3"),{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"}}),t="omid_message_guid",a="omid_message_method",o="omid_message_version",s="omid_message_args",c=function(e,n,t,r){this.guid=e,this.method=n,this.version=t,this.args=r},l=(c.isValidSerializedMessage=function(e){return!!e&&void 0!==e[t]&&void 0!==e[a]&&void 0!==e[o]&&"string"==typeof e[t]&&"string"==typeof e[a]&&"string"==typeof e[o]&&(void 0===e[s]||void 0!==e[s])},c.deserialize=function(e){return new c(e[t],e[a],e[o],e[s])},c.prototype.serialize=function(){var e={};return e[t]=this.guid,e[a]=this.method,e[o]=this.version,void 0!==this.args&&(e[s]=this.args),e},function(e){this.to=e,this.communicationType_=i.CommunicationType.NONE});function d(e,n){if(!n)throw Error("Value for "+e+" is undefined, null or blank.");if("string"!=typeof n&&!(n instanceof String))throw Error("Value for "+e+" is not a string.");if(""===n.trim())throw Error("Value for "+e+" is empty string.")}function p(e,n){if(null==n)throw Error("Value for "+e+" is undefined or null")}function f(e,n){if(null==n)throw Error(e+" must not be null or undefined.");if("number"!=typeof n||isNaN(n))throw Error("Value for "+e+" is not a number")}function m(e,n,t,r){if(f(e,n),n<t||r<n)throw Error("Value for "+e+" is outside the range ["+t+","+r+"]")}function U(e,n){return e&&(e[n]||(e[n]={}))}function e(e,n,t){(t=void 0===t?void 0===r?null:r:t)&&((e=e.split(".")).slice(0,e.length-1).reduce(U,t)[e[e.length-1]]=n)}function _(e,n,t,r){r=void 0===r?i.AccessMode.FULL:r,d("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=n,this.verificationParameters=t,this.accessMode=r}function h(e,n,t,r){t=void 0===t?null:t,r=void 0===r?null:r,p("Context.partner",e),this.partner=e,this.verificationScriptResources=n,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=r,this.underEvaluation=!1,this.serviceWindow=null}l.prototype.sendMessage=function(e,n){},l.prototype.handleMessage=function(e,n){this.onMessage&&this.onMessage(e,n)},l.prototype.serialize=function(e){return JSON.stringify(e)},l.prototype.deserialize=function(e){return JSON.parse(e)},l.prototype.isDirectCommunication=function(){return this.communicationType_===i.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},e("OmidSessionClient.Partner",function(e,n){d("Partner.name",e),d("Partner.version",n),this.name=e,this.version=n}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},e("OmidSessionClient.VerificationScriptResource",_),h.prototype.setVideoElement=function(e){p("Context.videoElement",e),this.videoElement=e},h.prototype.setSlotElement=function(e){p("Context.slotElement",e),this.slotElement=e},h.prototype.setServiceWindow=function(e){p("Context.serviceWindow",e),this.serviceWindow=e},e("OmidSessionClient.Context",h);var v={},E=(v.omidGlobal=(()=>{if(void 0!==n&&n)return n;if(void 0!==ie&&ie)return ie;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var e=Function("return this")();if(e)return e;throw Error("Could not determine global object context.")})(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),g={sessionError:"reportError"},x=Object.keys(i.MediaEventType).map(function(e){return i.MediaEventType[e]}),V=["impressionOccurred"],y=function(e){e=void 0===e?v.omidGlobal:e,this.interfaceRoot_=e[E.ROOT]};function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return e=("y"===e?3&n|8:n).toString(16)})}function I(){var e=u.getRestArguments.apply(0,arguments);F(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(e))))},function(){console.error.apply(console,u.arrayFromIterable(e))})}function F(e,n){"undefined"!=typeof jasmine&&jasmine?e():"undefined"!=typeof console&&console&&console.error&&n()}y.prototype.isSupported=function(){return null!=this.interfaceRoot_},y.prototype.sendMessage=function(e,n,t){if("registerSessionObserver"==e&&(t=[n]),n=this.interfaceRoot_,0<=V.indexOf(e=g[e]?g[e]:e)&&(n=n[E.AD_EVENTS]),!(n=(n=0<=x.indexOf(e)?n[E.MEDIA_EVENTS]:n)[e]))throw Error("Unrecognized method name: "+e+".");n.apply(null,u.arrayFromIterable(t))};var A="1.5.0-iab4484",W=3;function T(e){return/\d+\.\d+\.\d+(-.*)?/.test(e)}function O(e,n){e=e.split("-")[0].split("."),n=n.split("-")[0].split(".");for(var t=0;t<W;t++){var r=parseInt(e[t],10),i=parseInt(n[t],10);if(i<r)break;if(r<i)return!1}return!0}var b="1.0.3";function j(e,n){return T(e)&&O(e,b)?n:JSON.stringify(n)}function B(e,n){return T(e)&&O(e,b)?n||[]:n&&"string"==typeof n?JSON.parse(n):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function G(e){return $(e,H.SESSION_SERVICE)}function $(e,n){return n+e}function C(e){return null!=e&&void 0!==e.top&&null!=e.top}function M(e){var n;if(e!==v.omidGlobal)try{if(void 0===e.location.hostname)return!0;""!==(n=e).x&&n.x}catch(e){return!0}return!1}function q(e){return C(e=void 0===e&&"undefined"!=typeof window&&window?window:e)?e:v.omidGlobal}function Y(e){return C(e)?e.top:v.omidGlobal}var R=function(e){l.call(this,e),this.communicationType_=i.CommunicationType.DIRECT,this.handleExportedMessage=R.prototype.handleExportedMessage.bind(this)},D=(u.inherits(R,l),R.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.handleExportedMessage(e.serialize(),this)},R.prototype.handleExportedMessage=function(e,n){c.isValidSerializedMessage(e)&&this.handleMessage(c.deserialize(e),n)},R.prototype.isCrossOrigin=function(){return!1},function(e,n){n=void 0===n?v.omidGlobal:n,l.call(this,n);var t=this;this.communicationType_=i.CommunicationType.POST_MESSAGE,e.addEventListener("message",function(e){var n;"object"==typeof e.data&&(n=e.data,c.isValidSerializedMessage(n))&&(n=c.deserialize(n),e.source)&&t.handleMessage(n,e.source)})}),N=(u.inherits(D,l),D.isCompatibleContext=function(e){return!!(e&&e.addEventListener&&e.postMessage)},D.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.postMessage(e.serialize(),"*")},D.prototype.isCrossOrigin=function(){return!this.to||M(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(e){var n={};return n[i.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,n[i.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,n[e]}});function z(e,n){try{return e.frames&&!!e.frames[n]}catch(e){return!1}}function K(e,n){e.document.write('<iframe style="display:none" id="'+n+'" name="'+n+'" sandbox></iframe>')}N.isOmidPresent=function(n){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return z(n,e)})},N.getOmidEnvironment=function(e){for(var n=u.makeIterator(Object.values(i.Environment)),t=n.next();!t.done;t=n.next()){t=t.value;if(z(e,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(n,e){n.frames&&n.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return!!n.frames[e]})&&(null==n.document.body&&N.isMutationObserverAvailable_(n)?N.registerMutationObserver_(n,e):(e=N.getEnvironmentIframeName(e),n.document.body?(N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e)):(K(n,N.OMID_PRESENT_FRAME_NAME),K(n,e))))},N.appendPresenceIframe_=function(e,n){var t=e.document.createElement("iframe");t.id=n,t.name=n,t.style.display="none",t.sandbox="",e.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(e){return"MutationObserver"in e},N.registerMutationObserver_=function(n,t){var r=new MutationObserver(function(e){e.forEach(function(e){"BODY"===e.addedNodes[0].nodeName&&(e=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e),r.disconnect())})});r.observe(n.document.documentElement,{childList:!0})};var X=["omid","v1_SessionServiceCommunication"];function J(e,n){return n.reduce(function(e,n){return e&&e[n]},e)}function Q(e,n,t,r){for(var i=(n=u.makeIterator(n)).next();!i.done;i=n.next())if(i=((e,n,t,r)=>{if(!M(n))try{var i=J(n,t);if(i)return new R(i)}catch(e){}return r(n)?new D(e,n):null})(e,i.value,t,r))return i;return null}function Z(e,n,t){t=void 0===t?N.isOmidPresent:t;var r=[e,Y(e)];return n&&r.unshift(n),Q(e,r,X,t)}function P(e,n,t){p("AdSession.context",e),this.adSessionId_=S(),this.context_=e,this.impressionOccurred_=!1;var r=this.context_.serviceWindow||void 0;this.communication_=n||Z(q(),r),this.sessionInterface_=t||new y,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_(e.verificationScriptResources),this.sendSlotElement_(e.slotElement),this.sendVideoElement_(e.videoElement),this.sendContentUrl_(e.contentUrl),this.watchSessionEvents_()}function ee(e,n,t,r){this.isSkippable=e,this.skipOffset=n,this.isAutoPlay=t,this.position=r}function k(e){p("AdEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerAdEvents(),this.adSession=e}catch(e){throw Error("AdSession already has an ad events instance registered")}}function L(e){p("MediaEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerMediaEvents(),this.adSession=e}catch(e){throw Error("AdSession already has a media events instance registered")}}function ne(t){var e=q();new D(e).onMessage=function(e,n){e.method===i.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(n)}}P.prototype.getAdSessionId=function(){return this.adSessionId_},P.prototype.setCreativeType=function(e){if(e===i.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+i.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_!==i.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",e,this.adSessionId_),this.creativeType_=e},P.prototype.setImpressionType=function(e){if(e===i.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+i.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_!==i.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",e,this.adSessionId_),this.impressionType_=e},P.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},P.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},P.prototype.registerSessionObserver=function(e){this.sendMessage("registerSessionObserver",e,this.adSessionId_)},P.prototype.start=function(){this.sendOneWayMessage("startSession",{customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation},this.adSessionId_)},P.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},P.prototype.error=function(e,n){this.sendOneWayMessage("sessionError",e,n,this.adSessionId_)},P.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},P.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},P.prototype.sendOneWayMessage=function(e){var n=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[e,null].concat(u.arrayFromIterable(n)))},P.prototype.sendMessage=function(e,n){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(e,n,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(e,n,t)},P.prototype.sendInternalMessage_=function(e,n,t){var r=S();n&&(this.callbackMap_[r]=n),e=new c(r,G(e),A,j(A,t)),this.communication_.sendMessage(e)},P.prototype.handleInternalMessage_=function(e,n){n=e.method;var t,r=e.guid;e=e.args,"response"===n&&this.callbackMap_[r]&&(t=B(A,e),this.callbackMap_[r].apply(this,t)),"error"===n&&window.console&&I(e)},P.prototype.sendInterfaceMessage_=function(e,n,t){try{this.sessionInterface_.sendMessage(e,n,t)}catch(e){I("Failed to communicate with SessionInterface with error:"),I(e)}},P.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},P.prototype.impressionOccurred=function(){if(this.creativeType_===i.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===i.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},P.prototype.creativeLoaded=function(){if(this.creativeType_===i.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===i.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},P.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",A,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},P.prototype.injectVerificationScripts_=function(e){e&&(e=e.map(function(e){return e.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",e,this.adSessionId_))},P.prototype.sendSlotElement_=function(e){this.sendElement_(e,"setSlotElement")},P.prototype.sendVideoElement_=function(e){this.sendElement_(e,"setVideoElement")},P.prototype.sendElement_=function(e,n){e&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(n,e,this.adSessionId_):this.error(i.ErrorType.GENERIC,"Session Client "+n+" called when communication is cross-origin"))},P.prototype.sendContentUrl_=function(e){e&&this.sendOneWayMessage("setContentUrl",e,this.adSessionId_)},P.prototype.setElementBounds=function(e){p("AdSession.elementBounds",e),this.sendOneWayMessage("setElementBounds",e,this.adSessionId_)},P.prototype.watchSessionEvents_=function(){var n=this;this.registerSessionObserver(function(e){e.type===i.AdEventType.SESSION_START&&(n.isSessionRunning_=!0,n.creativeType_=e.data.creativeType,n.impressionType_=e.data.impressionType),e.type===i.AdEventType.SESSION_FINISH&&(n.isSessionRunning_=!1)})},e("OmidSessionClient.AdSession",P),ee.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},k.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},k.prototype.loaded=function(e){e=void 0===e?null:e,this.adSession.creativeLoaded(),e=e?e.toJSON():null,this.adSession.sendOneWayMessage("loaded",e,this.adSessionId_)},e("OmidSessionClient.AdEvents",k),L.prototype.start=function(e,n){f("MediaEvents.start.duration",e),m("MediaEvents.start.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("start",e,n,this.adSessionId_)},L.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},L.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},L.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},L.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},L.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},L.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},L.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},L.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},L.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},L.prototype.volumeChange=function(e){m("MediaEvents.volumeChange.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("volumeChange",e,this.adSessionId_)},L.prototype.playerStateChange=function(e){p("MediaEvents.playerStateChange.playerState",e),this.adSession.sendOneWayMessage("playerStateChange",e,this.adSessionId_)},L.prototype.adUserInteraction=function(e){p("MediaEvents.adUserInteraction.interactionType",e),this.adSession.sendOneWayMessage("adUserInteraction",e,this.adSessionId_)},e("OmidSessionClient.MediaEvents",L),e("OmidSessionClient.OmidVersion",function(e,n){d("OmidVersion.semanticVersion",e),d("OmidVersion.apiLevel",n)}),e("OmidSessionClient.listenForServiceWindow",ne),e("OmidSessionClient.VastProperties",ee);var w={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9}};function te(e){for(var n=u.makeIterator(re.keys()),t=n.next();!t.done;t=n.next())for(var t=t.value,r=u.makeIterator(re.get(t)),i=r.next();!i.done;i=r.next())if(i.value.test(e))return t;return w.VerificationVendorId.OTHER}var re=new Map([[w.VerificationVendorId.MOAT,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.moatads\.com\/.*$/]],[w.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\/.*$/]],[w.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[w.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[w.VerificationVendorId.NIELSEN,[]],[w.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[w.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[w.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]]]);e("OmidSessionClient.verificationVendorIdForScriptUrl",te),e("OmidSessionClient.VerificationVendorId",w.VerificationVendorId),w.verificationVendorIdForScriptUrl=te}var ie="object"==typeof globalThis?globalThis:window,n={},t=void 0===ie?this:ie;if("object"==typeof(i=void 0===n?void 0:n)&&"string"!=typeof i.nodeName)e(t,i);else{var r,i={},a=["1.5.0-iab4484"],o="default";for(r in a.push(o),e(t,i),i)i.hasOwnProperty(r)&&(null==Object.getOwnPropertyDescriptor(t,r)&&Object.defineProperty(t,r,{value:{}}),a.forEach(function(e){var n;null==Object.getOwnPropertyDescriptor(t[r],e)&&(n=function e(n){for(var t in n)n.hasOwnProperty(t)&&(n[t]=e(n[t]));return Object.freeze(n)}(i[r]),Object.defineProperty(t[r],e,{get:function(){return n},enumerable:!0}))}))}s.OmidSessionClient=n.OmidSessionClient}(),t={},e=self,n=function(){{var O,b,C,M,R={d:function(e,n){for(var t in n)R.o(n,t)&&!R.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},D={};R.d(D,{default:function(){return T}});let o=1,t=2,r=4,i="[MT] ",s=((O={})[O.NONE=0]="NONE",O[O.ERROR=1]="ERROR",O[O.WARNING=2]="WARNING",O[O.INFO=3]="INFO",O[O.DEBUG=4]="DEBUG",O),a=t;function N(e,n,t,r){a>=e&&(t=i+t,void 0===r?n.call(console,t):n.call(console,t,r))}let u=console.error,p=console.warn,f=console.debug;function P(e,n){N(o,u,e,n)}function Me(e,n){N(t,p,e,n)}function Re(e,n){N(r,f,e,n)}function k(e){return("object"==typeof globalThis?globalThis:window)?.[e]}function L(e){if(e){if(Array.isArray(e))return e.slice();if("object"==typeof e)return Object.assign({},e)}return null}function De(e){if(e)try{return JSON.parse(JSON.stringify(e))}catch(e){P("Exception during deep-copy: "+e,e)}return null}function w(e,n){if(null!=e)try{return new URL(e,n).toString()}catch(e){P("URL Exception: "+e,e)}return null}function Ne(i,a,o){let e=a?.length||0;if(0<e){let t=0,r=e-1;for(;t<r;){let e=Math.ceil((t+r)/2),n=o(i,a[e]);if(0===n)return e;0<n?t=e:r=e-1}if(0<t||0<=o(i,a[t]))return t}return-1}let c=[];for(let e=0;e<256;e++)c.push((e+256).toString(16).substr(1).toLowerCase());let l=!!k("crypto")?.getRandomValues,m=(l||Me("crypto.getRandomValues() unavailable"),[2,9]),W=10,pe=5,j=2,B="ad_start",H="ad_end",G="ad_progress",$="ad_click",q="ad_can_skip",fe="ad_incoming",me="nonlinear_ad_start",_e="nonlinear_ad_end",he="ad_tracking_info_response",ve=0,Ee=1,ge=2,ye=3,Se=4,Ie=5,Ae=6,Te=7,Y=0,z=1,K=2,X=3,J=4,Q=5,Z=6,ee=7,ne=8,te=9,re=10,ie=11,ae=12,oe=13,se=14,_=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],d=null;function Pe(e){try{return JSON.parse(e)}catch(e){return Me("JSON Parse Exception: "+e,e),null}}function U(r,i,n,a,o){let s=new XMLHttpRequest,u=a?.retryHeuristics,c=0,l=!1;function d(){if(!l)try{{var t=s;var e=a;let n=e?.headers;t.open(r,i,!0),t.timeout=e?.timeout??0,n&&Object.keys(n).forEach(e=>{t.setRequestHeader(e,n[e])})}c++,s.send(n),Re(`XHR (${r} ${i}, #${c}) request sent`,n)}catch(e){Me("XHR Exception: "+e,e)}}return s.onreadystatechange=()=>{if(!l&&4===s.readyState){var e=s.status,n=s.responseText;if(Re(`XHR (${i}) response received, status `+e,n),e<200||299<e){var t=u?u(c,e,n):-1;if(0<=t)return setTimeout(d,t),void Me(`XHR (${i}) failed (status ${e}), retry in ${t} ms`,n)}o&&o(n,e,i)}},d(),{abort(){l=!0,s.abort(),Re(`XHR (${i}) aborted`)}}}function ke(e,n,t){return U("GET",e,null,n,t)}let Oe="clickThrough",ue=[],ce=(ue[Y]=["impression"],ue[z]=["clickTracking"],ue[K]=["loaded"],ue[X]=["start","creativeView"],ue[J]=["firstQuartile"],ue[Q]=["midpoint"],ue[Z]=["thirdQuartile"],ue[ee]=["complete"],ue[ne]=["skip"],ue[te]=["pause"],ue[re]=["resume"],ue[ie]=["mute"],ue[ae]=["unmute"],ue[oe]=["fullscreen","playerExpand"],ue[se]=["exitFullscreen","playerCollapse"],"adData: ");function Le(e){return e&&"object"==typeof e&&e}function we(a,e){if(!Le(a))return null;let[,o]=e,s={},n=o.length;for(let i=0;i<n;i++){let[e,n,t]=o[i],r=t[0](a[e],t);if(null!=r)s[e]=r;else if(!n)return Re(ce+("Missing object field: "+e),a),null}return s}function Ue(e){return e&&Array.isArray(e)?e:null}function x(t,e){if(!Ue(t))return null;let[,r,i]=e,a=[],o=t.length;for(let n=0;n<o;n++){let e=i[0](t[n],i);null!=e||r?a.push(e):Re(ce+("Invalid array entry at: "+n),t)}return a}function xe(e){return"number"==typeof e?e:null}function Ve(e){return"string"==typeof e?e:null}let e=[xe],n=[Ve],h=[function(e){return"boolean"==typeof e?e:null}],v=[we,[["content",!1,n],["type",!1,n]]],E=[we,[["beaconUrls",!1,[x,!1,n]],["durationInSeconds",!0,e],["eventId",!0,n],["eventProgramDateTime",!0,n],["eventType",!1,n],["startTimeInSeconds",!0,e]]],be=[we,[["adId",!0,n],["adParameters",!0,n],["adSystem",!0,n],["adTitle",!0,n],["adVerifications",!0,[x,!1,[we,[["executableResource",!0,[x,!1,[we,[["apiFramework",!0,n],["language",!0,n],["type",!0,n],["uri",!0,n]]]]],["javaScriptResource",!0,[x,!1,[we,[["apiFramework",!0,n],["browserOptional",!0,n],["uri",!0,n]]]]],["trackingEvents",!0,[x,!1,[we,[["event",!1,n],["uri",!1,n]]]]],["vendor",!0,n],["verificationParameters",!0,n]]]]],["companionAds",!0,[x,!1,[we,[["adParameters",!0,n],["altText",!0,n],["attributes",!0,[we,[["adSlotId",!0,n],["apiFramework",!0,n],["assetHeight",!0,n],["assetWidth",!0,n],["expandedHeight",!0,n],["expandedWidth",!0,n],["height",!0,n],["id",!0,n],["pxratio",!0,n],["renderingMode",!0,n],["width",!0,n]]]],["companionClickThrough",!0,n],["companionClickTracking",!0,n],["htmlResource",!0,n],["iFrameResource",!0,n],["sequence",!0,n],["staticResource",!0,n],["trackingEvents",!0,[x,!1,[we,[["beaconUrls",!1,[x,!1,n]],["eventType",!1,n]]]]]]]]],["creativeId",!0,n],["creativeSequence",!0,n],["extensions",!0,[x,!1,v]],["trackingEvents",!0,[x,!1,E]],["vastAdId",!0,n]]],Ce=[we,[["nonLinearAdList",!1,[x,!1,[we,[["durationInSeconds",!1,e],["adId",!0,n],["adParameters",!0,n],["adSystem",!0,n],["adTitle",!0,n],["creativeId",!0,n],["creativeAdId",!0,n],["creativeSequence",!0,n],["width",!0,n],["height",!0,n],["expandedWidth",!0,n],["expandedHeight",!0,n],["scalable",!0,h],["maintainAspectRatio",!0,h],["minSuggestedDuration",!0,n],["apiFramework",!0,n],["staticResource",!0,n],["staticResourceCreativeType",!0,n],["iFrameResource",!0,n],["htmlResource",!0,n],["clickThrough",!0,n],["clickTracking",!0,n],["clickTrackingId",!0,n]]]]],["extensions",!0,[x,!1,v]],["trackingEvents",!0,[x,!1,E]]]],le=new DOMParser,g=/\n|<!\[CDATA\[|\]\]>/g;function Fe(e){e=e?.textContent;return null==e?null:e.replace(g,"").trim()}function We(e,n,t){t&&(e[n]=t)}function je(e,n){for(var t of e.children)n[t.tagName]?.(t)}function Be(e){let t=[];return je(e,{IconClickFallbackImage:e=>{let n={};t.push(n),We(n,"width",e.getAttribute("width")),We(n,"height",e.getAttribute("height")),je(e,{AltText:e=>{We(n,"altText",Fe(e))},StaticResource:e=>{We(n,"staticResource",Fe(e))}})}}),t}(O={})[O.AD_START=B]="AD_START",O[O.AD_END=H]="AD_END",O[O.AD_PROGRESS=G]="AD_PROGRESS",O[O.AD_CLICK=$]="AD_CLICK",O[O.AD_CAN_SKIP=q]="AD_CAN_SKIP",O[O.AD_INCOMING=fe]="AD_INCOMING",O[O.NONLINEAR_AD_START=me]="NONLINEAR_AD_START",O[O.NONLINEAR_AD_END=_e]="NONLINEAR_AD_END",O[O.AD_TRACKING_INFO_RESPONSE=he]="AD_TRACKING_INFO_RESPONSE",(b={})[b.START=ve]="START",b[b.END=Ee]="END",b[b.PAUSE=ge]="PAUSE",b[b.RESUME=ye]="RESUME",b[b.MUTE=Se]="MUTE",b[b.UNMUTE=Ie]="UNMUTE",b[b.FULLSCREEN=Ae]="FULLSCREEN",b[b.EXIT_FULLSCREEN=Te]="EXIT_FULLSCREEN";let de=[];function V(i,n,e){let u="adTracking: ",_=(e,n)=>e-n.start,c=(e,n)=>e-n.startDate,a=(e,n)=>e.start-n.start,o={headers:{"Cache-Control":"no-cache, no-store"}},s=e.defaultTrackingRequestInterval||W,U=e.incomingAdCountdownInterval??pe,t=e.adTrackingUpdateMode||"pagination",x="playhead"===t,V="pagination"===t,h=[],F={},v=[],l,d=null,p=null,E=null,g=null,f=null,y=null,S=null,I=null,m=null,A=null,T=null,O=null,b=null,C=null,M=0,R=[],D=(()=>{let r=new EventTarget,a=null,i=null,o=-1,s=!1;function u(e,n){r.dispatchEvent(new CustomEvent(e,{detail:n}))}function c(e,n){var t=e.availDuration,r=e.inAvailStartOffset;return{toAdEnd:e.duration-n,toAvailEnd:null!=t&&null!=r?t-r-n:null,toSkipThreshold:0<=o?Math.max(0,o-n):null}}return{addEventListener(e,n,t){r.addEventListener(e,n,t)},removeEventListener(e,n,t){r.removeEventListener(e,n,t)},onTrackingInfoResponse(e){u(he,{failedAdTrackingInfoRequest:e})},onAdStart(e,n,t){var r,i;a=(i=n,t=t,{adData:De(r=e),adClickthroughUrl:r.videoClickThrough,targetPlayheadForAdSkip:t+r.duration-i}),o=e.skipOffset,s=!1,u(B,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)})},onAdEnd(e){u(H,{adObject:a}),a=null},onAdProgress(e,n,t){u(G,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)}),!s&&0<=o&&n>=o&&(s=!0,u(q,{adObject:a}))},onAdClick(e){u($,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart(e,n,t){i={adData:De(e)},u(me,{nonLinearAdsObject:i,adElapsedTime:n})},onNonLinearAdsEnd(e){u(_e,{nonLinearAdsObject:i}),i=null},dispatchEvent:u}})();function N(t,r){let e=R.length;for(let n=0;n<e;n++){let e=R[n];e[t]?.apply(e,r)}}function P(e,n){n=n||d,Re(u+("Ad tracking event "+de[e]),n),N("onAdTrackingEvent",[n,e])}function k(e,n){!e.startDate&&O&&(e.startDate=n+O);n=l;(l=!!e.startDate)!==n&&Re(u+("Set adHasStartDate to "+l))}function L(e,n){var r,t=[["tttt",""+Date.now()]];x&&t.push(["aws.playheadPositionInSeconds",""+Math.round(n&&O?n-O:e)]),V&&T&&t.push(["aws.nextToken",T]),m?.abort(),n=(e=>{let n=new URL(i),t=new URLSearchParams(n.search);return e.forEach(e=>{t.append(e[0],e[1])}),n.search="?"+t.toString(),n.toString()})(t),r=(e,n)=>{if(200===n){let f=!1,m=!1;T=((e,c,l)=>{if(Le(e)){let u=Ve(e.dashAvailabilityStartTime),n=Ue(e.avails),t=(n?.forEach(e=>{if(Le(e)){let i=xe(e.startTimeInSeconds),a=xe(e.durationInSeconds),o=Ve(e.availProgramDateTime);o=(o?new Date(o).getTime()/1e3:u?new Date(u).getTime()/1e3+i:0)||0,d(!1,e,i,a,o);var t=null!=i?c[""+i]:null;let n="",s=Ue(e.ads);s?.forEach(e=>{Le(e)&&(n+=e.startTime+`,${e.duration};`)});var r=n!==t;if(Re(ce+"Avail"+(r?"*":"")+` (${e.duration} @ ${e.startTime} / ${e.availProgramDateTime})`,e),r){let r=s?.length;null!=i&&(c[""+i]=n),Re(`BLAH ${t} -> `+n),l(0,0,r,i,a,o,null,!1,!1,!0),s?.forEach((e,n)=>{var t;Le(e)?null!=(t=xe(e.startTimeInSeconds))?(Re(ce+`Ad #${n+1} of ${r} `+`(${e.duration} @ ${e.startTime} / ${e.adProgramDateTime})`,e),l(t,n,r,i,a,o,e,!1,!1,!1)):Me(ce+"Invalid or missing ad start time",e):Me(ce+"Invalid ad object",s)})}}else Me(ce+"Invalid avail object",n)}),Ue(e.nonLinearAvails));t?.forEach(e=>{var n;Le(e)?(Re(ce+`nonLinearAvail (${e.startTime} / ${e.availProgramDateTime})`,e),d(!0,e,n=xe(e.startTimeInSeconds),null,e=((e=Ve(e.availProgramDateTime))?new Date(e).getTime()/1e3:u?new Date(u).getTime()/1e3+n:0)||0)):Me(ce+"Invalid nonLinearAvail object",t)});e=Ve(e.nextToken);return e&&Re(ce+`nextToken "${e}"`),e;function d(e,n,t,r,i){n=Ue(n.nonLinearAdsList)?.[0];n&&(Le(n)?null==t?Me(ce+"Invalid or missing nonlinear ad start time",n):(Re(ce+"nonLinearAds",n),l(t,0,1,t,r,i,n,!0,e,!1)):Me(ce+"Invalid nonLinearAds object",n))}}else Me(ce+"Invalid tracking-info response")})(e,F,(n,t,r,i,a,o,s,u,c,e)=>{if(null!=i&&o&&(O=o-i),u){if(((i,a,o)=>{let e=a?.length||0;if(0<e){let t=0,r=e-1;for(;t<=r;){let e=Math.ceil((t+r)/2),n=o(i,a[e]);if(0===n)return e;0<n?t=e+1:r=e-1}}return-1})(n,v,_)<0){u=n,o=o,c=c;let e=(p=we(l=s,Ce))?(d=p.nonLinearAdList.reduce((e,n)=>Math.max(e,n.durationInSeconds),0))?(Object.assign(p,{start:u,startDate:o,duration:d,nonlinearAvail:c}),Re(ce+`New NonLinearAdsData (${d}s @ ${u}s / ${o}s)`,p),p):(Me(ce+"Invalid nonlinear ad duration",l),null):(Me(ce+"Missing required fields for NonLinearAdsData",l),null);e&&(k(e,n),v.push(e),m=!0,N("onNewNonLinearAds",[e]))}}else if(e){if(null!=i&&null!=a){let e=i+a,n=((e,n,t)=>{var r=n?.length||0;if(0<r){var i=Ne(e,n,t);if(i<0)return 0;if(0===t(e,n[i]))return i;if(++i<r)return i}return-1})(i,h,_),t=n;if(0<=n){for(;t<h.length&&!(h[t].start>=e);t++);t>n&&(Re(`BLAH remove ad ${n} to `+(t-1),h),h.splice(n,t-n),f=!0)}}}else{let e=((e,n,t,r,i,a)=>{var o=xe(a.durationInSeconds);if(null==o||o<=0)return Me(ce+"Invalid or missing ad duration",a),null;let s=Ve(a.adProgramDateTime);s=s&&new Date(s).getTime()/1e3;var u=Ve(a.skipOffset);let c=u&&new Date(`1970-01-01T${u}Z`).getTime()/1e3,l=(c||0===c||(c=-1),we(a,be));return l?(l.extensions?.forEach(e=>{if("AdVerifications"===e.type){var n=e.content;try{var t=le.parseFromString(n,"application/xml")?.documentElement,r=t?.getElementsByTagName("JavaScriptResource"),i=t?.getElementsByTagName("VerificationParameters"),a=t?.getAttribute("vendor"),o=Fe(r?.[0]),s=Fe(i?.[0]);a&&o?(l.adVerifications||(l.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):Me(ce+"Invalid AdVerifications extension content",e)}catch(e){Me(ce+"Exception parsing AdVerifications extension: "+n,e)}}else if("companion_about_this_ad"===e.type){t="<root>"+e.content+"</root>";try{let e=le.parseFromString(t,"application/xml")?.documentElement;e&&je(e,{Icon:e=>{let n=l.icons||(l.icons=[]),t={};n.push(t),We(t,"program",e.getAttribute("program")),We(t,"width",e.getAttribute("width")),We(t,"height",e.getAttribute("height")),We(t,"xPosition",e.getAttribute("xPosition")),We(t,"yPosition",e.getAttribute("yPosition")),je(e,{StaticResource:e=>{We(t,"staticResource",Fe(e))},IconClicks:e=>{let n={};t.iconClicks=n,je(e,{IconClickThrough:e=>{We(n,"iconClickThrough",Fe(e))},IconClickFallbackImages:e=>{e=Be(e);e.length&&(n.iconClickFallbackImages=e)}})}})}})}catch(e){Me(ce+"Exception parsing AdChoices extension: "+t,e)}}else if("IconClickFallbackImages"===e.type){r="<root>"+e.content+"</root>";try{let e=le.parseFromString(r,"application/xml")?.documentElement;e&&je(e,{IconClickFallbackImages:e=>{var n={},e=((l.icons||(l.icons=[])).push(n),We(n,"program",e.getAttribute("program")),Be(e));e.length&&(n.iconClicks={iconClickFallbackImages:e})}})}catch(e){Me(ce+"Exception parsing AdChoices extension: "+r,e)}}}),Object.assign(l,{start:e,startDate:s||0,duration:o,skipOffset:c,availAdIndex:n,availAdCount:t,availStart:r,availDuration:i,inAvailStartOffset:null!=r?e-r:null,playCount:0}),l.videoClickThrough=null,l.trackingEvents=l.trackingEvents?.filter(e=>e.eventType!==Oe||((e=e.beaconUrls[0])&&(l.videoClickThrough=e),!1)),Re(ce+`New AdData (${o}s @ ${e}s / ${s})`,l),l):(Me(ce+"Missing required fields for AdData",a),null)})(n,t,r,i,a,s);e&&(k(e,n),h.push(e),f=!0,N("onNewAd",[e]))}var l,d,p}),f&&(h.sort(a),p=E=null,g=null),m&&(v.sort(a),y=S=null,I=null),N("onTrackingInfoResponse",[!1])}else Me(u+"Request failed, status "+n,e),N("onTrackingInfoResponse",[!0]);m=null},m=ke(n,o,(e,n,t)=>{200===n&&null!=e&&(e=Pe(e)),r(e,n)})}function w(e,n,t,r){let i,a,o;var s=r?"startDate":"start",t=Ne(t,n,r?c:_);return o=0<=t?(i=n[t],a=i[s],t+1<n.length?n[t+1][s]:Number.MAX_VALUE):(i=null,a=Number.MIN_VALUE,n.length?n[0][s]:Number.MAX_VALUE),Re(u+`Update time range (${a} - ${o}), `+e+" ad index "+t,i),[i,a,o]}function r(e){e&&R.indexOf(e)<0&&R.push(e)}return 0<=s&&L(0),r(D),r((a=>{let o={},i=null;return{onAdLoad(e){i={},e.trackingEvents?.forEach(e=>{i[e.eventType]=e})},onAdEnd(e){i=null},onAdTrackingEvent(t,e){var r=ue[e];if(i&&1===t.playCount&&r){let n=r.length;for(let e=0;e<n;e++)((r,i)=>{var n=i?.beaconUrls;if(n){var t=n.length;for(let e=0;e<t;e++)ke(n[e],o,(e,n,t)=>{a(r,i,t,n)})}})(t,i[r[e]])}}}})((e,n,t,r)=>{N("onAdBeaconResponse",[e,n,t,r])})),{updateAdTrackingInfo:function(){L(b??0,C),A=b},startUpdatingAdTrackingInfo:function(e){s=e||W,A=null},stopUpdatingAdTrackingInfo:function(){s=-1},onPlayheadUpdate:function(e,n){if(null!=b&&e>b&&e<b+j){0<=s&&!m&&(null==A||Math.abs(e-A)>=s)&&(L(e,n),A=e);var t=(n=l?n:null)||e,r=((null==p||t<p||t>=E)&&([g,p,E]=w("linear",h,t,n)),d),i=t-p;if((d=g&&t<p+g.duration?g:null)===r){if(d&&(Re(u+"Ad progresses, time => "+i),N("onAdProgress",[d,i,e]),i>M)&&i<M+j){let e=d.duration,n=M/e;var a=(M=i)/e;n<.25&&.25<=a&&P(J),n<.5&&.5<=a&&P(Q),n<.75&&.75<=a&&P(Z)}}else r&&(M+j>r.duration&&P(ee,r),Re(u+"Ad ends",r),N("onAdEnd",[r])),M=0,d&&(d.playCount++,n&&Re(u+`PDT offset => player ${n-e}, ad `+(d.startDate-d.start),d),Re(u+"Ad loads",d),N("onAdLoad",[d]),P(K),Re(u+"Ad starts, time => "+i,d),N("onAdStart",[d,i,e]),P(X),P(Y));if(!d){let e=E-t;e<=U&&D.dispatchEvent(fe,{timeToNextAd:e})}(null==y||t<y||t>=S)&&([I,y,S]=w("nonlinear",v,t,n));a=f,r=t-y;(f=I&&t<y+I.duration?I:null)!==a&&(a&&(Re(u+"Nonlinear ad ends",a),N("onNonLinearAdsEnd",[a])),f)&&(n&&Re(u+`PDT offset => player ${n-e}, nonlinear ad `+(f.startDate-f.start),f),Re(u+"Nonlinear ad starts, time => "+r,f),N("onNonLinearAdsStart",[f,r,e]))}b=e,C=n},onPlaybackRateUpdate:function(e){},onPlaybackEvent:function(e){switch(e){case ve:n?.sendPlaybackStart();break;case Ee:n?.sendPlaybackEnd()}if(d)switch(e){case ge:P(te);break;case ye:P(re);break;case Se:P(ie);break;case Ie:P(ae);break;case Ae:P(oe);break;case Te:P(se)}},onVideoClick:function(e){d&&(n?.sendAdTouch(e),N("onAdClick",[d]))},onPlayerControlClick:function(e){d&&n?.sendAdTouch(e)},onAdClickthrough:function(){d&&(n?.sendAdClick(),P(z))},onAdSkip:function(){d&&P(ne)},addAdObserver:r,removeAdObserver:function(e){e&&0<=(e=R.indexOf(e))&&R.splice(e,1)},getAllAds:function(){return h.map(e=>De(e))},getAllNonLinearAds:function(){return v.map(e=>De(e))},addEventListener(e,n,t){D.addEventListener(e,n,t)},removeEventListener(e,n,t){D.removeEventListener(e,n,t)}}}de[Y]="IMPRESSION",de[z]="CLICK_THROUGH",de[K]="LOADED",de[X]="START",de[J]="FIRST_QUARTILE",de[Q]="MID_POINT",de[Z]="THIRD_QUARTILE",de[ee]="COMPLETE",de[ne]="SKIP",de[te]="PAUSE",de[re]="RESUME",de[ie]="MUTE",de[ae]="UNMUTE",de[oe]="FULLSCREEN",de[se]="EXIT_FULLSCREEN",(M={})[M.IMPRESSION=Y]="IMPRESSION",M[M.CLICK_THROUGH=z]="CLICK_THROUGH",M[M.LOADED=K]="LOADED",M[M.START=X]="START",M[M.FIRST_QUARTILE=J]="FIRST_QUARTILE",M[M.MID_POINT=Q]="MID_POINT",M[M.THIRD_QUARTILE=Z]="THIRD_QUARTILE",M[M.COMPLETE=ee]="COMPLETE",M[M.SKIP=ne]="SKIP",M[M.PAUSE=te]="PAUSE",M[M.RESUME=re]="RESUME",M[M.MUTE=ie]="MUTE",M[M.UNMUTE=ae]="UNMUTE",M[M.FULLSCREEN=oe]="FULLSCREEN",M[M.EXIT_FULLSCREEN=se]="EXIT_FULLSCREEN";let A=["overlayAvails","availSuppression","adSignaling","reportingMode"],I=((C={})[C.INVALID_CONFIG=0]="INVALID_CONFIG",C[C.INVALID_INIT_RESPONSE=1]="INVALID_INIT_RESPONSE",C[C.INIT_ERROR=2]="INIT_ERROR",C);function F(i,e,a,o){let s,u=null,c=i.trackingUrl,l=i.sessionInitUrl,n=i.sessionInitHeaders,d=i.palNonceManager||e,p=d?.getNonce?.()??null,f={getPlaybackUrl:()=>u,getTrackingUrl:()=>c,getPalNonce:()=>p,updateAdTrackingInfo(){s.updateAdTrackingInfo()},startUpdatingAdTrackingInfo(e){s.startUpdatingAdTrackingInfo(e)},stopUpdatingAdTrackingInfo(){s.stopUpdatingAdTrackingInfo()},onPlayheadUpdate(e,n){s.onPlayheadUpdate(e,n)},onPlaybackRateUpdate(e){s.onPlaybackRateUpdate(e)},onPlaybackEvent(e){s.onPlaybackEvent(e)},onVideoClick(e){s.onVideoClick(e)},onPlayerControlClick(e){s.onPlayerControlClick(e)},onAdClickthrough(){s.onAdClickthrough()},onAdSkip(){s.onAdSkip()},addAdObserver(e){s.addAdObserver(e)},removeAdObserver(e){s.removeAdObserver(e)},getAllAds:()=>s.getAllAds(),getAllNonLinearAds:()=>s.getAllNonLinearAds(),destroy(){},addEventListener(e,n,t){s.addEventListener(e,n,t)},removeEventListener(e,n,t){s.removeEventListener(e,n,t)}};if(c)s=V(c,d,i),a(f,"Session initialized elsewhere");else if(l){let t=L(i.originParams)||{},r=i.sessionFeatures;r&&A.forEach(e=>{var n=r[e];null!=n&&(t[e]=n)});var m,_,h,v,E=L(i.playerParams)||{},E=(E.device_sdk_info||=T.clientInfo,p&&(E.givn=p),t.playerParams=E,{}),g=(n&&(E.headers=n),Re(`createSession: Request sent to URL "${l}"`,t),l),y=t,S=(e,n)=>{200===n?(u=w(e?.manifestUrl,l))&&(c=w(e?.trackingUrl,l))?(s=V(c,d,i),a(f,"Successful session response",e)):o(I.INVALID_INIT_RESPONSE,"Invalid session response"):o(I.INIT_ERROR)};try{(E=L(E)||{}).headers=(h={"Content-Type":"application/json; charset=utf-8"},(v=E.headers)?Object.assign(h,v):h),m=g,_=JSON.stringify(y),U("POST",m,_,E,(e,n,t)=>{200===n&&null!=e&&(e=Pe(e)),S&&S(e,n)})}catch(g){return void Me("JSON Encode Exception: "+g,g)}}else o(I.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function He(t,r,i,a){let o="createSession: ";function s(e,n,t){Re(o+n,t),r?r(e,null):i(e)}function u(e,n){var t={code:e,message:n};P(o+`(${e}) `+n),r?r(null,t):a(t)}if(t){let e=t.palNonceRequestParams;if(t.trackingUrl||t.palNonceManager||!e)return F(t,null,s,u);let n=(r=>{var e="nonceReq: ";if(d){var n=k("goog")?.pal?.NonceRequest;if(n){let t=new n;t.omidPartnerName="MediaTailor",t.omidPartnerVersion="1.0.0",t.supportedApiFrameworks=m,_.forEach(e=>{var n=r[e];null!=n&&(t[e]=n)}),t.sessionId||(t.sessionId=(()=>{var n=new Uint8Array(16);if(l)crypto.getRandomValues(n);else for(let 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,c[n[0]]+c[n[1]]+c[n[2]]+c[n[3]]+"-"+c[n[4]]+c[n[5]]+"-"+c[n[6]]+c[n[7]]+"-"+c[n[8]]+c[n[9]]+"-"+c[n[10]]+c[n[11]]+c[n[12]]+c[n[13]]+c[n[14]]+c[n[15]]})());n=d.loadNonceManager?.(t);return n?Re(e+"Request sent",t):P(e+"Request failed",t),n}P(e+"Missing PAL SDK classes")}else P(e+"PAL isn't initialized");return null})(e);n?n.then(e=>{Re(o+"NonceManager received",e),F(t,e,s,u)}).catch(e=>{Me(o+"Nonce request rejected",e),F(t,null,s,u)}):(Me(o+"Unable to create a nonce request"),F(t,null,s,u))}else u(I.INVALID_CONFIG,"Missing config")}let y="1.5.0",S=(console.debug("[MT] AWS Elemental MediaTailor SDK v1.5.0"),{initPal:function(n,t){let e="initPal: ";if(!n){if(!t)return P(e+"Missing consent settings"),!1;var r=k("goog")?.pal,i=r?.NonceLoader,r=r?.ConsentSettings;if(!i||!r)return P(e+"Missing PAL SDK classes"),!1;{let e=new r;e.allowStorage=t.allowStorage??!1,n=new i(e)}}return d&&Me(e+"Resetting NonceLoader"),d=n,!0},createSession:function(t,e){if(!e)return new Promise((e,n)=>{He(t,null,e,n)});He(t,e,null,null)},PlaybackEvent:b,AdTrackingEvent:M,SessionUiEvent:O,setLogLevel:function(e){0<=e&&e<=r?a=e:console.warn(i+"Invalid log level: "+e)},LogLevel:s,getSdkVersion:()=>y,clientInfo:"MTSDK v"+y}),T=S;return D.default}},"object"==typeof t?t.mediatailor=n():e.mediatailor=n(),s.mediatailor=t.mediatailor,s)),Mc&&(module.exports=Mc.datazoom)})();
1
+ (()=>{var e,n,t,s,yc="object"==typeof module?{}:null;((Ze,en,y)=>{var S,f,nn=Ze.Object,A=Ze.Array,T=Ze.Date,_n=Ze.Number,O=Ze.String,b=Ze.RegExp,tn=Ze.Math,C=Ze.XMLHttpRequest,D=Ze.Uint8Array,M=Ze.ArrayBuffer,R=Ze.JSON,hn=Ze.Promise,N=Ze.URL,P=Ze.URLSearchParams,k=Ze.EventTarget,L=Ze.CustomEvent,vn=Ze.document||{},e=vn.currentScript||{},w=Ze.location||{},U=Ze.navigator||{},x=U.userAgent||"",En=U.connection||U.mozConnection||U.webkitConnection,V=Ze.crypto,F=Ze.console||{},n=Ze.performance,W=Ze.setInterval,j=Ze.setTimeout,B=Ze.decodeURIComponent,H=Ze.encodeURIComponent;try{S=Ze.localStorage,f=Ze.sessionStorage}catch(e){}function G(t){return t?function(e,n){e="[DZ] "+e,void 0===n?t.call(F,e):t.call(F,e,n)}:null}var t=G(F.log)||function(){},$=G(F.error)||t,q=G(F.warn)||t,Y=G(F.info)||t,z=G(F.debug)||t,gn={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},K="datazoom_",X="custom_",J="v_";if(gn[t="__"+K+"rootobj"]=1,yc)yc.datazoom=gn;else{if($n(Ze.datazoom)){if(Ze.datazoom[t])return q("Collector already loaded");q("Overwriting window.datazoom")}Ze.datazoom=gn}function g(n,t,e){var i,r=t.shift();return null==r?i=n:n?r instanceof b?nn.keys(n).some(function(e){if(r.test(e))return null!=(i=g(n[e],t.slice()))}):i=g(n[r],t):i=null,null!=i?i:e}function rn(e){return"function"==typeof e}function Q(e,n){if(rn(e))try{return new(e=n?e.bind.apply(e,[null].concat(n)):e),1}catch(e){}}Q(N,["http://x.io"])&&Q(P)||(P=function(e){var i=[];function t(e,n){!1!==n&&i.push([e,n])}function r(n){i=i.filter(function(e){return e[0]!==n})}e&&e.slice(1).split("&").forEach(function(e){e=e.split("=");try{i.push([B(e[0]),null==e[1]||B(e[1])])}catch(e){on(e,"URLSearchParams()")}});e=this;e.append=t,e["delete"]=r,e.set=function(e,n){r(e),t(e,n)},e.get=function(n){var t=null;return i.some(function(e){if(e[0]===n)return t=e[1],!0}),t},e.toString=function(){return i.map(function(e){var n=H(e[0]);return!0===e[1]?n:n+"="+H(e[1])}).join("&")}},N=function(e){var n=this,e=e.split("?"),t=e[0],e=e[1]?"?"+e[1]:"";n.search=e,n.searchParams=new P(e),n.toString=function(){return t+n.search}}),Q(k)&&Q(L,["x"])||(k=function(){var t=this,i={};t.addEventListener=function(e,n){var t=i[e];t||(i[e]=t=[]),t.push(n)},t.removeEventListener=function(e,n){var t=i[e];t&&(i[e]=t.filter(function(e){return e!=n}))},t.dispatchEvent=function(n){var e=i[n.type];e&&e.forEach(function(e){j(function(){e.call(t,n)},0)})}},L=function(e){this.type=e}),en=nn.assign({},{cn:"THEOplayer (MT/OM)",sv:"2.26.0",cf:"",mf:null,ev:[],fd:[],md:[],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,ep:2,ed:2e3,ec:_n.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(e){var n=e.event,t=e.video;Tn("[Event] "+n.type+(t?" ("+t.media_type+")":"")+" @"+n.timestamp,cn(e))}},en||{});var o,Z,yn,ee={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"},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:""},ne=!yc&&e.src||"/",te=w.href||"https://localhost",ie="configuration_id",re="urn:x-cast:io.datazoom.collector",Sn="transfer",ae=0,oe=1,se=2,ue=3,ce=4,le=5,de={off:ae,error:oe,warning:se,info:ue,debug:ce,verbose:le},pe=se;function fe(e){var n;e&&(n=de[e],ae<=(n=null!=n?n:+e)&&n<=le?pe=n:q("Invalid log level: "+e))}function me(){o={},Z=[],[[en.ps],[ne.split("?")[1]],[te.split("?")[1],K]].forEach(function(e){var i=e[1];e[0]&&e[0].split("&").forEach(function(e){try{var n=e.split("="),t=B(n[0]);if(i){if(!t.startsWith(i))return;t=t.slice(i.length)}o[t]=null==n[1]||B(n[1]),t.startsWith("x-")&&Z.push([t,o[t]])}catch(e){q("Invalid query string: "+e.message)}})}),yn="true"==o.demo,fe(o.log)}me();var _e="io.datazoom.",he=_e,ve="__ss_ev_count",Ee="__ss_last_act",ge="__ss_custom_md",ye="__ss_msg_queue",Se="__ss_sm_resp",Ie="__ss_appss_to",Ae="collector_observability",Te="loss",Oe="process_duration_ms",be="send_duration_ms",Ce="call_duration_ms",De="queue_duration_ms",Me="evnt_fail",Re="attempt_count",Ne="attempt",Pe="status_code",ke="status_codes",Le="b4_ss",we="sample",Ue="config",xe="log";function Ve(e,n,t,i){pe<e||n(t,i)}function In(e,n){Ve(oe,$,e,n)}function an(e,n){Ve(se,q,e,n)}function An(e,n){Ve(ue,Y,e,n)}function Tn(e,n){Ve(ce,z,e,n)}function Fe(e,n){Ve(le,z,e,n)}function on(e,n){n="[Exception] "+(n?"("+n+") ":"")+e;return In(n,e),n}function On(t,i,r,a,o){var s,u=0,c=1,l=0;return i=i||"",r=r||1,a=a||_n.MAX_VALUE,{log:function(e,n){o&&(s=sn())>=l+o&&(u=0,c=1,l=s),++u>=c&&(t("["+u+"] "+i+e,n),c+=tn.min(c*r,a))}}}function bn(e,n){p(Ze,"postMessage",[{type:e,data:n},"*"])}var We,sn,je,Be,He,Ge,$e=[],qe=0;function Ye(e,n,t,i,r,a,o,s){var t={time:t,metric_name:i,dimension:{},batch:function(){return a}},u=(e&&(t.type=e),null!=r&&(t.metric_value=r),t.dimension);return n&&(u.target=n),s&&s.forEach(function(e){u[e[0]]=e[1]}),o&&(u[Le]=!0),t}function ze(i,r,a,o){var s=r,u=1,c=qe++;return{retry:function(e){s=e,u++},log:function(e,n){var t;en.og&&(null!=a&&$e.push(Ye(null,i,t=r-a,Oe,e-t,c,o,[[Re,u],[Pe,n]]),Ye(null,i,t,De,a,c,o)),$e.push(Ye(null,i,r,be,e-r,c,!1,[[Re,u],[Pe,n]]),Ye(null,i,s,Ce,e-s,c,!1,[[Ne,u],[Pe,n]])))}}}function Ke(e,n){var t,i;en.os&&(i=e.t,i=tn.trunc(i/6e4),(i=(We=We||{})[i]||(We[i]=[0,0,0]))[2]++,t=(i=i[3]||(i[3]={}))[n],e=fs(e.m,dr),t?t.push(e):i[n]=[e])}function Xe(e){var n,t=We[e],i=qe++;t[2]&&(t[3]&&(n=[[ke,t[3]]]),$e.push(Ye(Te,null,6e4*+e,Me,t[2],i,!1,n)))}function Cn(e){return e&&(Gn(e)?e.slice():nn.assign({},e))}function Je(e,n){return $n(n)?e?nn.assign({},e,n):n:e}function Qe(e,n){var t;return n?((t={})[e]=n,t):null}function Dn(t,i){var r;return i?t?(r=Cn(t),nn.keys(i).forEach(function(e){var n=t[e];r[e]=n?nn.assign({},n,i[e]):i[e]}),r):i:t}function p(e,n,t,i){n=g(e,[n],i);return rn(n)?n.apply(e,t):null}function Mn(e,n,t){return function(){try{return n.apply(e,arguments)}catch(e){on(e,t)}}}function Rn(t,e){nn.keys(t).forEach(function(n){e.forEach(function(e){e[n]=Mn(e,t[n],n)})}),e[0]}function Nn(e){var n={};return e.forEach(function(e){n[e.nm]=e}),n}function Pn(e){var n={};return e.forEach(function(e){n[e.nm]=!0}),n}function kn(e,n,t){e.forEach(function(e){e[n]=t})}function Ln(e,n){var e=new N(e,te),t=new P(e.search);return n(t),e.search="?"+t.toString(),e.toString()}function wn(e){var n,t=Z.length;return t?Ln(e,function(e){for(n=0;n<t;n++)e.append(Z[n][0],Z[n][1])}):e}function Un(e,n,t){var i;return null!=(i=e?new N(e,te).searchParams.get(n):i)?i:t}je=0,Be=en.ec,He=On(an,"Abnormal clock increment: ",.2,1e3,3e5),n&&n.now,Ge=je+T.now(),sn=function(e){var n=T.now(),t=Ge,i=(Ge=je+n)-t;return(i<0||Be<i)&&(Ge=t+en.ti,je=Ge-n,He.log(i)),Ge};var un=(()=>{for(var t=[],e=0;e<256;e++)t.push((e+256).toString(16).substr(1).toLowerCase());return function(){var e=new D(16);if(V&&V.getRandomValues)V.getRandomValues(e);else{an("getRandomValues() not supported");for(var n=0;n<16;n++)e[n]=tn.floor(256*tn.random())}return e[6]=15&e[6]|64,e[8]=63&e[8]|128,t[e[0]]+t[e[1]]+t[e[2]]+t[e[3]]+"-"+t[e[4]]+t[e[5]]+"-"+t[e[6]]+t[e[7]]+"-"+t[e[8]]+t[e[9]]+"-"+t[e[10]]+t[e[11]]+t[e[12]]+t[e[13]]+t[e[14]]+t[e[15]]}})();function xn(e,n,t,i,r,a){var o=new C;if(o.open(e,n,!0),null!=a&&(o.timeout=a),t)for(var s=nn.keys(t),u=0;u<s.length;u++)o.setRequestHeader(s[u],t[s[u]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function cn(e){if(e)try{return R.stringify(e)}catch(e){on(e,"toJSON")}return null}function ln(e){if(e)try{return R.parse(e)}catch(e){on(e,"fromJSON")}return null}function Vn(e,n){return(e===f?he:_e)+n}function m(e,n,t){if(e)if(null==t)Wn(e,n);else try{e.setItem(Vn(e,n),cn({v:t}))}catch(e){on(e,"storageSet")}}function Fn(e,n){e=e?ln(e.getItem(Vn(e,n))):null;return e?e.v:null}function Wn(e,n){e&&e.removeItem(Vn(e,n))}Ze.self!==Ze.top&&Tn("Page loaded in a frame, set sessionStorage prefix to: "+(he+=(o.frame_id||un())+"."));var jn=ln('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Bn(e){return"string"==typeof e}function Hn(e){return _n.isFinite(e)}function Gn(e){return A.isArray(e)}function $n(e){return null!=e&&"object"==typeof e&&!Gn(e)}function qn(e){return Bn(e)?e:""+e}function Yn(e){return Hn(e=+e)?e:null}function zn(n,t,i){return null==n&&null==t?Yn:function(e){return null!=(e=Yn(e))&&(null!=n&&e<n?e=i?null:n:null!=t&&t<e&&(e=i?null:t)),e}}function Kn(e){return tn.round(e)}function Xn(e,n){for(var t=0;t<n.length;t++)!function(e){for(var n=e,t=1;t<arguments.length;t++)n.dv||(n.dv=[]),n.dv.push(arguments[t])}(n[t],e)}function Jn(e,n){if(n)for(var t=0;t<n.length&&null!=e;t++)e=n[t](e);return e}var Qn,Zn,et,nt,tt=4,it=8,rt=16,at=32,I=65535,ot=tt,t=1|rt,n=(e=tt|rt)|at,r=it,st={ap:2,nm:"ad_break_start"},ut={ap:2,nm:"ad_break_end"},ct={ap:2,nm:"ad_click"},lt={ap:2,nm:"ad_impression"},dt={ap:2,nm:"ad_skip"},pt={ap:ot,nm:"app_session_end"},ft={ap:3,nm:"audio_track_changed"},mt={ap:3,nm:"buffer_start"},_t={ap:3,nm:"buffer_end"},ht={ap:3,nm:"cast_start"},vt={ap:3,nm:"cast_end"},Et={ap:3,nm:"cast_transfer"},gt={ap:I,nm:"context_ready"},yt={ap:ot,nm:"datazoom_loaded"},St={ap:3,nm:"error"},It={ap:3,nm:"exit_fullscreen"},At={ap:3,nm:"fullscreen"},Tt={ap:3,nm:"heartbeat"},Ot={ap:3,nm:"media_loaded"},bt={ap:1,nm:"media_object_request"},Ct={ap:3,nm:"media_request"},Dt={ap:3,nm:"milestone"},Mt={ap:3,nm:"mute"},Rt={ap:3,nm:"pause"},Nt={ap:3,nm:"play_btn"},Pt={ap:3,nm:"playback_start"},kt={ap:3,nm:"playback_complete"},Lt={ap:1,nm:"player_ready"},wt={ap:3,nm:"playing"},Ut={ap:3,nm:"qualified_view"},xt={ap:1,nm:"quality_change_request"},Vt={ap:3,nm:"rendition_change"},Ft={ap:3,nm:"resize"},Wt={ap:3,nm:"resume"},jt={ap:3,nm:"seek_start"},Bt={ap:3,nm:"seek_end"},Ht={ap:3,nm:"stall_start"},Gt={ap:3,nm:"stall_end"},$t={ap:3,nm:"stop"},qt={ap:3,nm:"subtitle_change"},Yt={ap:3,nm:"unmute"},zt={ap:3,nm:"volume_change"},Kt=(Ct.rtc=0,Pt.rtc=1,Rt.rtc=2,mt.rtc=3,Ht.rtc=4,jt.rtc=5,Vt.rtc=6,Dt.rtc=7,Ct.rta=8,Pt.rta=9,mt.rta=10,Ht.rta=11,Dt.rta=12,St.rta=dt.rta=kt.rta=13,st.rta=14,ut.rta=15,Tt.rt=16,mt.rt=17,Ht.rt=18,["event","metrics"]),Xt={ap:t,nm:"bandwidth_kbps"},Jt={ap:t,nm:"buffer_duration_ms"},Qt={ap:t,nm:"buffer_duration_ads_ms"},Zt={ap:t,nm:"buffer_duration_content_ms"},ei={ap:t,nm:"buffer_fill_percent"},ni={ap:t,nm:"buffer_length_ms"},ti={ap:t,nm:"content_session_start_ts_ms"},ii={ap:3,nm:"current_audio_track"},ri={ap:t,nm:"current_subtitles"},ai={ap:e,nm:"engagement_duration_ms"},oi={ap:e,nm:"engagement_duration_ads_ms"},si={ap:e,nm:"engagement_duration_content_ms"},ui={ap:r,nm:"event_count"},ci={ap:t,nm:"num_ad_break_plays"},li={ap:e,nm:"num_ad_plays"},di={ap:e,nm:"num_content_plays"},pi={ap:e,nm:"num_errors"},fi={ap:e,nm:"num_errors_ads"},mi={ap:e,nm:"num_errors_content"},_i={ap:e,nm:"num_requests_content"},hi={ap:t,nm:"pause_duration_ms"},vi={ap:t,nm:"pause_duration_ads_ms"},Ei={ap:t,nm:"pause_duration_content_ms"},gi={ap:t,nm:"playback_duration_ms"},yi={ap:t,nm:"playback_duration_ads_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"},Oi={ap:t,nm:"player_state"},bi={ap:t,nm:"player_viewable"},Ci={ap:t,nm:"player_viewable_percent"},dn={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"},Pi={ap:3,nm:"rendition_video_bitrate_kbps"},ki={ap:3,nm:"rendition_width"},Li={ap:t,nm:"stall_count"},wi={ap:t,nm:"stall_count_ads"},Ui={ap:t,nm:"stall_count_content"},xi={ap:t,nm:"stall_duration_ms"},Vi={ap:t,nm:"stall_duration_ads_ms"},Fi={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"},$i={ap:t,nm:"time_since_last_heartbeat_ms"},qi={ap:t,nm:"time_since_last_milestone_ad_ms"},Yi={ap:t,nm:"time_since_last_milestone_content_ms"},zi={ap:t,nm:"time_since_last_pause_ms"},Ki={ap:t,nm:"time_since_last_rendition_change_ms"},Xi={ap:t,nm:"time_since_last_request_ad_ms"},Ji={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"},er={ap:t,nm:"time_since_last_stall_start_content_ms"},nr={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:"volume_level_percent"};kn([Jt,Qt,Zt,hi,vi,Ei,gi,yi,Ii,Ai,Li,wi,Ui,xi,Vi,Fi,li,pi,fi,mi,di,_i],"df",0),tr.ts=0,ir.ts=1,zi.ts=2,Gi.ts=3,er.ts=4,Ji.ts=5,Ki.ts=6,Yi.ts=7,Xi.ts=8,nr.ts=9,Hi.ts=10,Zi.ts=11,qi.ts=12,Wi.ts=14,ji.ts=13,$i.ts=16,Bi.ts=17,Qi.ts=18;var ar=["ops_metadata"],or=["custom"],sr=["vendor"],ur={p:mr=[],ap:n,nm:"configuration_id"},cr={p:mr,ap:n,nm:"connector_list"},lr={p:mr,ap:n,nm:"customer_code"},dr={p:mr,ap:r,nm:"event_id"},pr={p:_r=["event"],ap:r,nm:"timestamp"},fr={p:_r,ap:r,nm:"type"},mr={p:i=["cmcd"],ap:r,nm:"bl"},_r={p:i,ap:r,nm:"br"},hr={p:i,ap:r,nm:"bs"},vr={p:i,ap:r,nm:"cid"},Er={p:i,ap:r,nm:"d"},gr={p:i,ap:r,nm:"dl"},yr={p:i,ap:r,nm:"mtp"},Sr={p:i,ap:r,nm:"nor"},Ir={p:i,ap:r,nm:"nrr"},Ar={p:i,ap:r,nm:"ot"},Tr={p:i,ap:r,nm:"pr"},Or={p:i,ap:r,nm:"rid"},br={p:i,ap:r,nm:"rtp"},Cr={p:i,ap:r,nm:"sf"},Dr={p:i,ap:r,nm:"sid"},Mr={p:i,ap:r,nm:"st"},Rr={p:i,ap:r,nm:"su"},Nr={p:i,ap:r,nm:"tb"},i={p:i,ap:r,nm:"v"},Pr={p:a=["event","attributes"],ap:r,nm:"abs_shift"},kr={p:a,ap:r,nm:"error_code"},Lr={p:a,ap:r,nm:"error_msg"},wr={p:a,ap:r,nm:"inner_error"},Ur={p:a,ap:r,nm:"heartbeat_count"},xr={p:a,ap:r,nm:"milestone_percent"},Vr={p:a,ap:r,nm:"qualified_view_sec"},Fr={p:a,ap:r,nm:"seek_start_point_ms"},Wr={p:a,ap:r,nm:"seek_end_point_ms"},jr={p:a,ap:r,nm:"startup_duration_content_ms"},Br={p:a,ap:r,nm:"startup_duration_total_ms"},Hr={p:s=["user_details"],ap:e,nm:"app_session_id"},Gr={p:s,ap:e,nm:"app_session_start_ts_ms"},a={p:s,ap:e,nm:"app_session_end_ts_ms"},$r={p:s,ap:t,nm:"cast_app_session_id"},qr={p:s,ap:t,nm:"cast_content_session_id"},Yr={p:s,ap:n,nm:"client_ip"},zr={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:e,nm:"user_agent"},Kr={p:u=["player"],ap:t,nm:"autostart"},Xr={p:u,ap:t,nm:"casting"},Jr={p:u,ap:t,nm:"controls"},Qr={p:u,ap:t,nm:"default_muted"},Zr={p:u,ap:t,nm:"default_playback_rate"},ea={p:u,ap:t,nm:"fullscreen"},na={p:u,ap:t,nm:"loop"},ta={p:u,ap:t,nm:"muted"},ia={p:u,ap:t,nm:"player_name"},ra={p:u,ap:t,nm:"player_version"},aa={p:u,ap:t,nm:"preload"},oa={p:u,ap:t,nm:"ready_state"},sa={p:u,ap:t,nm:"streaming_protocol"},ua={p:u,ap:t,nm:"streaming_type"},ca={p:u,ap:t,nm:"subtitles"},u={p:c=["device"],ap:e,nm:"advertising_id"},la={p:c,ap:e,nm:"browser_name"},da={p:c,ap:e,nm:"browser_height"},pa={p:c,ap:e,nm:"browser_version"},fa={p:c,ap:e,nm:"browser_width"},ma={p:c,ap:e,nm:"cookies_enabled"},_a={p:c,ap:n,nm:"device_id"},ha={p:c,ap:e,nm:"device_mfg"},va={p:c,ap:e,nm:"device_name"},Ea={p:c,ap:e,nm:"device_type"},ga={p:c,ap:e,nm:"orientation"},ya={p:c,ap:e,nm:"os_name"},c={p:c,ap:e,nm:"os_version"},Sa={p:l=["video"],ap:t,nm:"asset_id"},Ia={p:l,ap:t,nm:"description"},Aa={p:l,ap:t,nm:"duration_sec"},Ta={p:l,ap:t,nm:"frame_rate"},Oa={p:l,ap:t,nm:"media_tags"},ba={p:l,ap:3,nm:"media_type"},Ca={p:l,ap:t,nm:"player_height"},Da={p:l,ap:t,nm:"player_width"},Ma={p:l,ap:t,nm:"source"},l={p:l,ap:t,nm:"title"},Ra={p:d=["geo_location"],ap:n,nm:"city"},Na={p:d,ap:n,nm:"country"},Pa={p:d,ap:n,nm:"country_code"},ka={p:d,ap:n,nm:"latitude"},La={p:d,ap:n,nm:"longitude"},wa={p:d,ap:n,nm:"postal_code"},Ua={p:d,ap:n,nm:"region"},xa={p:d,ap:n,nm:"region_code"},Va={p:d,ap:n,nm:"continent"},Fa={p:d,ap:n,nm:"continent_code"},Wa={p:d,ap:n,nm:"district"},ja={p:d,ap:n,nm:"timezone_name"},Ba={p:d,ap:n,nm:"timezone_offset"},Ha={p:Ka=["network"],ap:n,nm:"asn"},d={p:Ka,ap:n,nm:"asn_org"},Ga={p:Ka,ap:e,nm:"connection_type"},$a={p:Ka,ap:n,nm:"isp"},qa={p:Ka,ap:n,nm:"mobile_connection"},Ya={p:ar,ap:r,nm:"context_id"},za={p:ar,ap:r,nm:"context_name"},Ka={p:ar,ap:e,nm:"dz_dictionary_version"},Xa={p:ar,ap:r,nm:"msg_send_client_ts_ms"},Ja={p:ar,ap:r,nm:"player_context_id"},Qa={p:ar,ap:n,nm:"server_ts_offset_ms"},Za={p:po=["page"],ap:e,nm:"collector_name"},eo={p:po,ap:e,nm:"dz_sdk_version"},no={p:po,ap:e,nm:"page_title"},to={p:po,ap:e,nm:"page_url"},io={p:po,ap:e,nm:"referrer_url"},ro={p:po,ap:e,nm:"site_domain"},ao={p:_=["ad"],ap:n,nm:"ad_blocker"},oo={p:_,ap:t,nm:"ad_break_id"},so={p:_,ap:2,nm:"ad_click_url"},uo={p:_,ap:2,nm:"ad_creative_id"},co={p:_,ap:2,nm:"ad_duration_sec"},lo={p:_,ap:2,nm:"ad_id"},po={p:_,ap:2,nm:"ad_partner"},fo={p:_,ap:t,nm:"ad_position"},mo={p:_,ap:2,nm:"ad_session_id"},_o={p:_,ap:2,nm:"ad_system"},ho={p:_,ap:2,nm:"ad_time_offset_sec"},n={p:_,ap:e,nm:"ad_tracking_opt_out"},vo={p:_,ap:2,nm:"advertiser_name"},Eo={p:_,ap:2,nm:"deal_id"},go={p:_,ap:2,nm:"skip_time_offset_sec"},yo={p:_,ap:2,nm:"wrapper_creative_ids"},So={p:_,ap:2,nm:"wrapper_id"},Io={p:_,ap:2,nm:"wrapper_systems"},e={p:["cdn"],ap:t,nm:"cdn"},Ao=(Eo.df="",kn([yo,So,Io],"df",[]),Xn(function(e){return!!e},[ao,n,Kr,hr,Xr,Jr,ma,Qr,ea,na,qa,ta,Rr,ca,bi]),Xn(function(e){Gn(e)||(e=[e]);for(var n=0;n<e.length;n++)e[n]=qn(e[n])||"";return e},[yo,So,Io]),Xn(null==Qn&&null==Zn?qn:function(e){var n;return null!=(e=qn(e))&&(n=e.length,null!=Qn&&n<Qn?e=null:null!=Zn&&Zn<n&&(e=et?null:e.slice(0,Zn))),e},[Pr,oo,so,uo,lo,po,fo,mo,_o,vo,u,Hr,Ha,d,Sa,la,pa,$r,qr,e,vr,Ra,Yr,ur,cr,zr,Va,Fa,Na,Pa,lr,Eo,Ia,_a,ha,va,Ea,Wa,eo,kr,Lr,dr,wr,$a,ba,Sr,Ir,ga,ya,c,Ar,no,to,Ja,ia,ra,wa,aa,io,Ua,xa,Or,Cr,Dr,ro,Ma,Mr,sa,ua,ja,l,fr,s,ii,ri,Oi,Ni]),Xn(zn(0,100),[ei,Ci,rr]),Xn(zn(0,1e9,!0),[Xt]),Xn(zn(),[co,ho,a,Gr,mr,_r,da,fa,Er,Zr,gr,Aa,Ta,Ur,ka,La,xr,yr,Ca,Da,Tr,Vr,oa,br,Wr,Fr,Qa,go,jr,Br,Nr,pr,Ba,i,Qt,Zt,Jt,ni,ti,oi,si,ai,ui,ci,li,di,pi,fi,mi,_i,vi,Ei,hi,yi,Si,Ii,gi,Ai,Ti,dn,Mi,Ri,Pi,ki,Li,wi,Ui,Vi,Fi,xi,Wi,ji,Hi,Gi,Bi,$i,qi,Yi,zi,Ki,Xi,Ji,Zi,er,Qi,nr,tr,ir]),Xn(0==(_=5)?Kn:(nt=tn.pow(10,_),function(e){return tn.round(e*nt)/nt}),[co,ho,a,Gr,mr,_r,da,fa,Er,Zr,gr,Aa,Ta,Ur,ka,La,xr,yr,Ca,Da,Tr,Vr,oa,br,Wr,Fr,Qa,go,jr,Br,Nr,pr,Ba,i,Xt,Qt,Zt,Jt,ei,ni,ti,oi,si,ai,ui,ci,li,di,pi,fi,mi,_i,vi,Ei,hi,yi,Si,Ii,gi,Ai,Ti,Ci,dn,Mi,Ri,Pi,ki,Li,wi,Ui,Vi,Fi,xi,Wi,ji,Hi,Gi,Bi,$i,qi,Yi,zi,Ki,Xi,Ji,Zi,er,Qi,nr,tr,ir,rr]),[st,ut,ct,lt,dt,pt,ft,mt,_t,ht,vt,Et,gt,yt,St,It,At,Tt,Ot,bt,Ct,Dt,Mt,Rt,Nt,Pt,kt,Lt,wt,Ut,xt,Vt,Ft,Wt,jt,Bt,Ht,Gt,$t,qt,Yt,zt]),To=Nn(Ao);function Oo(e,n){return J+e+"_"+n}function bo(e,n){var t,i=Pn(Ao),r={},a={};e?0<e.length?(e=Bn(t=en.tt&&o.beta_ev)?e.concat(t.split(".").map(function(e){return{name:e,media_types:["na"]}})):e).forEach(function(e){var n,t=e&&e.name;t&&i[t]?(e=e.media_types)&&0<e.length&&(r[t]=!0,"na"!=e[0])&&(n={},e.forEach(function(e){n[e]=!0}),a[t]=n):an("Unknown event: "+t)}):n&&an("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,Ao.forEach(function(e){e.on=!(r&&!r[e.nm]),e.mm=a&&a[e.nm]})}bo(),kn([li,pi,fi,mi,di,_i],"st",f);var Co=[Xt,Jt,Qt,Zt,ei,ni,ti,ii,ri,ai,oi,si,ui,ci,li,di,pi,fi,mi,_i,hi,vi,Ei,gi,yi,Si,Ii,Ai,Ti,Oi,bi,Ci,dn,Di,Mi,Ri,Ni,Pi,ki,Li,wi,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,Gi,$i,qi,Yi,zi,Ki,Xi,Ji,Qi,Zi,er,nr,tr,ir,rr],Do=[],Mo=(Co.forEach(function(e){null!=e.ts&&Do.push(e)}),[]),Ro=[];function No(e){var n,t=Pn(Co),i={};e?(e=Bn(n=en.tt&&o.beta_fd)?e.concat(n.split(".")):e).forEach(function(e){t[e]?i[e]=!0:an("Unknown flux data: "+e)}):i=null,Mo=[],Ro=[],Co.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Ro:Mo).push(e)})}No(),kn([Hr,Gr],"st",f);var Po,ko,Lo,wo,Uo=[ia,ra,u,l,Sa,ua,Xr],xo={},Vo=(Uo.forEach(function(e){xo[e.nm.toUpperCase()]=K+e.nm}),[ur,cr,lr,dr,pr,fr,mr,_r,hr,vr,Er,gr,yr,Sr,Ir,Ar,Tr,Or,br,Cr,Dr,Mr,Rr,Nr,i,Pr,kr,Lr,wr,Ur,xr,Vr,Fr,Wr,jr,Br,Hr,Gr,a,$r,qr,Yr,zr,s,Kr,Xr,Jr,Qr,Zr,ea,na,ta,ia,ra,aa,oa,sa,ua,ca,u,la,da,pa,fa,ma,_a,ha,va,Ea,ga,ya,c,Sa,Ia,Aa,Ta,Oa,ba,Ca,Da,Ma,l,Ra,Na,Pa,ka,La,wa,Ua,xa,Va,Fa,Wa,ja,Ba,Ha,d,Ga,$a,qa,Ya,za,Ka,Xa,Ja,Qa,Za,eo,no,to,io,ro,ao,oo,so,uo,co,lo,po,fo,mo,_o,ho,n,vo,Eo,go,yo,So,Io,e]),Fo=Nn(Vo),Wo=Vo.concat(Co),jo=[dr],Bo=[],Ho=[];function Go(e){var n,t=Pn(Vo),i={};Po=ko=Lo=wo=!1,e?((e=Bn(n=en.tt&&o.beta_md)?e.concat(n.split(".")):e).forEach(function(e){t[e]?i[e]=!0:"custom_metadata_all"==e?Po=!0:"custom_events_all"==e?ko=!0:"vendor_metadata_all"==e?Lo=!0:"vendor_events_all"==e?wo=!0:an("Unknown metadata: "+e)}),jo.forEach(function(e){i[e.nm]=!0})):Po=ko=Lo=wo=!(i=null),Bo=[],Ho=[],Vo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Ho:Bo).push(e)})}Go();var $o="ad",qo=/^live$/i,Yo={"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"},zo={m3u8:"HLS",mpd:"DASH",mp4:"MP4"},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"]],_=[[/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"]],pt=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],Ko=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function Xo(e,n,t){n&&t.push(e)}function h(e,n,t){t.push(e+"="+n)}function Jo(e,n,t){t.push(e+(o.cmcd_ntq?"="+n:'="'+n+'"'))}function Qo(e,n,t){t.push(e+'="'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function Zo(e){return"false"!==e}function v(e){return+e}function es(e){return e.replace(/"/g,"")}function ns(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var ts,is,rs={bl:[0,[h,v],mr],br:[1,[h,v],_r],bs:[2,[Xo,Zo],hr],cid:[3,[Qo,ns],vr],d:[1,[h,v],Er],dl:[0,[h,v],gr],mtp:[0,[h,v],yr],nor:[0,[Qo,ns],Sr],nrr:[0,[Qo,ns],Ir],ot:[1,[Jo,es],Ar],pr:[3,[h,v],Tr],rtp:[2,[h,v],br],sf:[3,[Jo,es],Cr],sid:[3,[Qo,ns],Dr],st:[3,[Jo,es],Mr],su:[0,[Xo,Zo],Rr],tb:[1,[h,v],Nr],v:[3,[h,v],i]},as={bs:!1,su:!1,v:1,pr:1},os="org.svalabs-";function ss(e){for(var n,t,i=[[],[],[],[]],r=nn.keys(e),a=0;a<r.length;a++)n=r[a],(t=rs[n])&&t[3]&&t[1][0](n,e[n],i[t[0]]);return i}function us(e){var n,t=nn.keys(rs);for(ts=!1,is="header"===(gn.options.cmcdMode||o.cmcd_mode),n=0;n<t.length;n++)rs[t[n]][3]=!1;if(e&&Gn(e)&&0<e.length)if(ts=!0,"na"==e[0])for(n=0;n<t.length;n++)rs[t[n]][3]=!0;else e.forEach(function(e){var n=rs[e];n?n[3]=!0:an("Unknown CMCD key: "+e)})}function cs(e,n,t){for(var i,r,a=nn.keys(e),o=0;o<a.length;o++)delete e[a[o]];for(o=0;o<n.length;o++)0!=((i=n[o]).ap&t)&&null!=(r=null==(r=(r=i.st||i.se)&&Fn(r,i.nm))?i.df:r)&&(e[i.nm]=r)}function ls(e,n,t,i){for(var r,a,o,s,u=0;u<i.length;u++)o=(a=(r=i[u])[0]).nm,0!=(a.ap&t)?(s=n[o])&&s(r)||(e[o]=r[1],(s=a.st||a.on&&a.se)&&m(s,o,r[1])):an("Setting inapplicable data",a)}function ds(e,n){return e[n.nm]}function ps(e,n,t,i,r){var a,o=[];return t&&o.push([t,a=n(t)+i]),r&&o.push([r,n(r)+i]),e(o),a}function pn(e,n,t){if(n)for(var i,r,a=0;a<n.length;a++)if(r=e[i=n[a]])e=r;else{if(t)return null;e=e[i]={}}return e}function fs(e,n){e=pn(e,n.p||Kt,!0);return e&&e[n.nm]}function ms(e,n,t,i){for(var r,a,o,s=0;s<n.length;s++)0!=((r=n[s]).ap&t)&&null!=(o=Jn(e[a=r.nm],r.dv))&&(pn(i,r.p)[a]=o)}rs[os+"rid"]=[0,[Qo,ns],Or],rs[os+"tid"]=[0,[Qo,ns]],rs[os+"cmi"]=[0,[h,v]],rs[os+"pmi"]=[0,[h,v]],us();var _s,hs,vs,Es,gs,ys,Ss,Is,As,Ts,Os,bs,Cs,Ds,Ms,Rs,Ns,E,Ps={},ks={},Ls=Fn(f,ye)||[],ws=[],Us=1,xs=2,Vs=4,Fs=Vs,Ws=xs|Us|Fs,js=0,Bs=[];function Hs(e){return null!=e?6e4*e:12e5}function Gs(e,n){if(!Ws&&0<Ls.length){for(var t,i=sn(),r=0,a=0;a<Ls.length;a++)Ls[a].p&&(t=!0,ms(Ps,Bo,at,Ls[a].m)),r=tn.max(r,i-Ls[a].t);bs&&Zs(Ls,0,ze(xe,i,r,t),e),n=!0}n&&(Ls=[],Wn(f,ye)),Ss=null}function $s(e){(Ws&=~e)||null!=Ss||Gs()}function qs(e,n,t,i,r,a,o,s,u){if(4==e.readyState){var c=sn(),l=e.status;if(n+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[r++];if(null!=a)return j(function(){o.retry(sn()),t(i,r,o)},1e3*a),void an(n+"retry #"+r+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(e,c))||u&&u(n,l)||an(n+"failed")}}function Ys(n,t,i){As=xn("POST",wn(en.sm),{"Content-Type":"application/json","cache-control":"no-cache"},n,function(e){4==e.readyState&&(As=null,qs(e,"Sampling API",Ys,n,t,en.rd,i,function(e){e=ln(e.responseText);if(Ts=e&&e[en.ss+"_sampling"])return bs=Ts.in_sample,Os=!1,$s(xs),m(f,Se,Ts),!0},function(e){return bs=Os=!0,$s(xs),an(e+"forced in"),!0}))})}function zs(){var e;!Is||Ws&Us||(en.sw&&en.sm?(en.sp,(e=Fo[en.sd])&&(Is.sampling_definition_params={namespace:en.ss,key_name:e.nm,key_value:nu(e)}),(e=Fo[en.sc])&&(Is.sampling_criteria_params={sampling:{key_name:e.nm,key_value:nu(e)}}),Is.sampling_override=o.sampling_override||"NONE",Is.sampling_request_id=un(),Ys(cn(Is),0,ze(we,sn()))):(bs=!0,$s(xs)),Is=null)}function Ks(i,n,t){var e,r;en.ci?(en.tt&&(en.mf=o.mock_config||en.mf),Tn("Get config from "+(e=en.mf||Ln(wn("https://"+en.cf+"platform.datazoom.io/beacon/v2/config"),function(e){e.append(ie,en.ci)}))),r=sn(),xn("GET",e,null,null,function(e){qs(e,"Config API",Ks,i,n,en.rd,t,function(e,n){var t=ln(e.responseText);if(t)return i(t,e.getResponseHeader("dz-extra"),r,n),!0},function(e,n){n<400||429==n||499<n||(en.om=!1),i()})})):(an("Missing configuration ID"),en.om=!1,i())}function Xs(){Ks(function(e,n,t,i){en.st=null,e&&function i(r,a){$n(r)?nn.keys(r).forEach(function(e){var n=r[e],t=a[e];$n(t)?i(n,t):null==t?An("Unknown config key: "+e):null==n?An("Undefined config key: "+e):t&&(en[t]=n)}):an("Invalid config object",r)}(e,ee),m(f,Ie,en.st),en.st=Hs(en.st),bo(en.ev,e),No(en.fd),Go(en.md),us(en.cd),en.og||($e=[]),en.os||(We=null),p(en.cm,"sort"),p(en.am,"sort"),p(en.cq,"sort"),p(en.aq,"sort"),eu([[lr,en.cc],[cr,en.cl]]),ws.forEach(function(e){var n,t,i,r,a,o=!1,s=fs(e.m,fr),u=To[s];u?o=u.on:s.startsWith(X)?o=ko:s.startsWith(J)&&(o=wo),o&&(n=e.m,t={},Bo.concat(Ho).forEach(function(e){null!=(i=fs(n,e))&&(pn(t,e.p)[e.nm]=i)}),r=pn(n,Kt),a=pn(t,Kt),Mo.concat(Ro).forEach(function(e){null!=(i=fs(r,e))&&(a[e.nm]=i)}),Po&&(i=pn(n,or,!0))&&nn.assign(pn(t,or),i),Lo&&(i=pn(n,sr,!0))&&nn.assign(pn(t,sr),i),Js(t,a),e.m=t,Ls.push(e))}),m(f,ye,Ls),ws=[];var r,e=_a.nm,e=(_a.on?(r=Fn(S,e))||(r=un(),m(S,e,r)):Wn(S,e),eu([[_a,r]]),n);try{var a,o,s,u,c,l=e&&ln(atob(e));l?(a=l.latitude,o=l.longitude,s=l.timezone_offset,c=(u=l.time_sync)&&+u,eu([[Yr,l.client_ip],[qa,l.mobile_connection],[Ha,l.asn],[xa,l.region_code],[Ua,l.region],[Pa,l.country_code],[Na,l.country],[wa,l.postal_code],[Ra,l.city],[ka,a?+a:null],[La,o?+o:null],[Va,l.continent],[Fa,l.continent_code],[ja,l.timezone_name],[Ba,null!=s?s/3600:null]]),c&&eu([[Qa,tn.round(c-(t+i)/2)]])):an("Missing or invalid dz-extra header")}catch(e){on(e,"processDzExtra")}en.ab&&ao.on&&null==nu(ao)?xn("GET",wn(en.ab),null,null,function(e){4==e.readyState&&(eu([[ao,!e.status]]),$s(Vs))}):$s(Vs),$s(Us),zs(),j(function(){$s(Fs),zs()},en.mh)},0,ze(Ue,sn()))}function Js(e,n){var t=""+(gs+1e7);pn(e,dr.p)[dr.nm]=vs+"_"+t.substr(-7,2)+"."+t.substr(-5),m(f,ve,++gs),ui.on&&(n[ui.nm]=gs)}function Qs(e,n,t,i,r,a,o){var s,u,c,l,d,o=o?tt:rt,p=pn(e,Kt);for(ms(Ps,Bo,o,e),ms(Ps,Mo,o,p),(i=i||[]).push([fr,n],[pr,t]),s=0;s<i.length;s++)u=(c=i[s])[0],c[2]||0!=(u.ap&it)?u.on&&null!=(c=Jn(c[1],u.dv))&&(pn(e,u.p)[u.nm]=c):an("Invalid event data",u);Po&&(o=Je(_s,r),n=e,r=cn(o),d=r?r.length:0,(l=en.ml)&&l<d?an("Custom metadata size: "+d+" > "+l):2<d&&(o=ln(r))&&nn.assign(pn(n,or),o)),Lo&&(l=Dn(hs,a),d=e,l)&&nn.assign(pn(d,sr),l),yn&&bn("evInfo",e),!(pe<ce)&&en.le&&en.le(e)||(r={p:Ws,m:e,t:t},Ws&Us?ws.push(r):(Js(e,p),Ls.push(r),m(f,ye,Ls),null==Ss&&(Ss=j(Gs,en.bd))))}function Zs(t,n,i,e){var r,a=t.map(function(e){return e.m}),o=(a.forEach(function(e,n){var t,i=pn(e,ar);Xa.on&&(pn(e,Xa.p)[Xa.nm]=sn()),Ts&&(i[en.ss+"_sampling"]=Ts),null!=Os&&(i[en.ss+"_forced_sampling_in"]=Os),n||(r=i[Ae],We&&(nn.keys(We).forEach(Xe),We=null),$e.length&&(r=r?r.concat($e):$e,$e=[],r.length>en.mc&&(r.sort(function(e,n){return e.batch()>n.batch()?1:-1}),t=r[r.length-en.mc-1].batch(),r=r.filter(function(e){return e.batch()>t})),i[Ae]=r))}),wn(en.mb)),a=cn(a);e&&U.sendBeacon&&U.sendBeacon(o,a)||xn("POST",o,{"Content-Type":"application/json"},a,function(e){qs(e,"Message post",Zs,t,n,en.rd,i,null,function(e,n){t.forEach(function(e){Ke(e,n)}),r&&($e=r.concat($e))})})}function eu(e){ls(Ps,ks,tt,e)}function nu(e){return Ps[e.nm]}function tu(e){if(hc&&(hc=!1,ru(yt,e)),!vs||!Es||(n=e,t=en.st,n<ys&&an("Activity time reversal: "+ys+" -> "+n),0<=t&&(n<ys||ys+t<=n))){Gs(!(ws=[]),!0);t=e,n=Bs[js];if(vs=un(),Es=ys=t,eu([[Hr,vs],[Gr,Es],[li,gs=0],[pi,0],[fi,0],[mi,0],[di,0],[_i,0]]),m(f,ve,gs),m(f,Ee,ys),Wn(f,Se),As&&As.abort(),As=Ts=null,bs=Os=null,Ws|=xs,Is={},zs(),rn(n))try{n()}catch(e){on(e,"onAppSessionStart")}}else m(f,Ee,ys=e);var n,t;eu([[ai,e-Es],[fa,Ze.outerWidth],[da,Ze.outerHeight],[no,vn.title],[to,w.href],[io,vn.referrer],[ro,w.hostname],[ma,U.cookieEnabled]])}function iu(e,n,t){ps(eu,nu,e,n,t)}function ru(e,n,t,i,r){0!=(e.ap&tt)?(tu(n),e.on&&Qs({},e.nm,n,t,i,r,!0)):an("Event inapplicable: "+e.nm+", ss",e)}function au(n,t){var i,r;n&&Uo.forEach(function(e){i=K+e.nm,null!=(r=n[i])&&(t([[e,r]]),delete n[i])})}if(cs(Ps,Wo,tt),vs=nu(Hr),Es=nu(Gr),gs=Fn(f,ve)||0,ys=Fn(f,Ee)||0,Ts=Fn(f,Se),_s=Fn(f,ge),hs=Fn(f,"__ss_vendor_md"),en.st=Hs(Fn(f,Ie)),Ts?(bs=Ts.in_sample,Os=!1,$s(xs)):Is={},t.some(function(e){if(E=e[0].exec(x))return Cs=e[1],Ds=E[1],!0})||(E=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(x))&&(Cs=E[1],Ds=E[2]),(E=/Version\/([\d.]+)/.exec(x))&&(Ds=E[1]),_.some(function(e){if(e[0].test(x))return Ms=e[1],!0})){switch(E=null,Ms){case"Mac OS X":E=/Mac OS X (10[\d._]+)/.exec(x);break;case"Android":E=/Android ([\d._]+)/.exec(x);break;case"iOS":E=/OS (\d+_\d+(_\d+)?)/.exec(x);break;case"Tizen":E=/Tizen[ \/]([\d._]+)/.exec(x);break;default:(E=/Windows (.*)/.exec(Ms))&&(Ms="Windows")}E&&(Rs=E[1].replace(/_/g,"."))}else Ms=Rs="-";pt.some(function(e){if(e[0].test(x))return Ns=e[1],!0}),eu([[s,x],[la,Cs],[pa,Ds],[ya,Ms],[c,Rs],[Ea,Ns],[Za,en.cn],[eo,en.sv],[Ka,3]]);var ou="baseContext",su="contextType",uu="contextName",cu="metadata",lu=0,du=["base","player"],fn={},pu=[];function fu(e){if(!e.destroyed){e.setTimer(null);try{var n=e.destroyCallback;n&&n()}catch(e){on(e,"onDestroy")}delete fn[e.id],e.removeListeners(),e.destroyed=!0}}function mu(e,n,t,i,r,a,o){(r=r||[]).push([Ya,e.id],[za,e.name]),Qs(n,t,i,r,Je(e.customMetadata,a),Dn(e.vendorMetadata,o))}function _u(e,n){return!(null!=n&&!$n(n)||(e.customMetadata=ln(cn(n)),0))}function hu(e){var n=Cn(Ps);return n._c_=Je(_s,e.customMetadata),n._v_=Dn(hs,e.vendorMetadata),n}function vu(){var t,c=[],i={},a={id:un(),type:lu,destroyed:!1,destroyCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(e,n,t){if(a.destroyed)return an(e+" after destroyed"+(n?": "+n:""),t),!0},onDestroy:function(e){a.destroyCallback=e},setTimer:function(e){var n;t&&(0<=(n=pu.indexOf(t))&&pu.splice(n,1),t=null),e&&(pu.push(e),t=e)},fireEvent:function(e,n,t,i,r){a.shallBlock("fireEvent",e.nm,e)||(tu(n),e.on&&mu(a,{},e.nm,n,t,i,r))},fireVendorEvent:function(e,n,t){a.fireEvent({ap:I,nm:Oo(e,n),on:wo},sn(),null,null,Qe(e,t))},addListener:function(e,n,t,i,r){if(e&&n){var a=e[i=i||"addEventListener"];if(rn(a)){u=Mn(e,t,s="listener: "+(s=n));var o=pe<le?u:function(){Fe(s,arguments),u.apply(null,arguments)};try{"-"===n?a.call(e,o):a.call(e,n,o),c.push([e,n,t,o,r||"removeEventListener"])}catch(e){on(e,"addListener: "+n)}}else an("Invalid add-listener method: "+i,e)}var s,u},removeListeners:function(r,a,o){c=c.filter(function(e){var n=e[0],t=e[1];if(r&&r!=n||a&&a!=t||o&&o!=e[2])return!0;var i=n&&n[e[4]];if(rn(i))try{"-"===t?i.call(n,e[3]):i.call(n,t,e[3])}catch(e){}else an("Invalid remove-listener method: "+e[4],n)})},stash:function(e,n,t){i[e]=[n,t]},unstash:function(e){e.forEach(function(n){var e=i[n];if(e){delete i[n];try{e[0].apply(null,e[1])}catch(e){on(e,"unstash: "+n)}}})}},e={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return du[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){fu(a)},setMetadata:function(e){return _u(a,e)},getMetadata:function(){return ln(cn(a.customMetadata))},generateEvent:function(e,n){a.fireEvent({ap:I,nm:X+e,on:ko},sn(),null,n)},dumpDzData:function(e){var n=ln(cn(hu(a)));return null==e?n:n[e]}};return a.basePublicMethods=e,a.publicContext=Cn(e),fn[a.id]=a}function Eu(e){return en.sn&&en.sn[e]||""+e}var gu,yu,Su,Iu,Au,mn=[],Tu="idle",Ou=(mn[2]=mn[9]="buffering",mn[3]=mn[10]="playing",mn[4]=mn[11]="paused",mn[5]=mn[12]="seeking",mn[6]="ended",mn[0]=mn[7]=mn[8]=Tu,function(U,x,r){var i,a,o,V,F,W,j,p={},B={},E={},H={},G={},$={},q=[],Y=[],z=[],K=[],X=[],J=[],Q=[],f=[],Z=un(),m=(w=r[ou],(e=(e=$n(w)&&rn(w.contextID)&&w.contextID())&&Bn(e)&&fn[e])&&e.type==lu&&e.publicContext===w?e:(null!=w&&an("Invalid contextOptions."+ou,w),vu())),e=r[uu],s=(null!=e&&(m.name=e),(w=r["adapterID"])&&Bn(w)&&mc[w]||(null!=w&&an("Adapter not found for id: "+w),gu)),u=r["adapterOptions"];function ee(){if(o){for(var e,n=nn.keys(o),t=sn(),i=0;i<n.length;i++)k((e=o[n[i]]).ev,t,e.dl);o=null}}function g(e,n,t){(o=o||{})[t||e.nm]={ev:e,dl:n}}function _(e){ls(p,B,1,e)}function y(e){ls(E,H,2,e)}function S(e,n){return ds(n?E:p,e)}function ne(e){return E[e.nm]}function te(){var e=S(ia),n=S(ra);cs(p,Wo,1),_([[ba,"content"],[ia,e],[ra,n]])}function ie(){cs(E,Wo,2),y([[ba,"ad"]])}function n(e,n){B[e.nm]=n}function re(e,n){H[e.nm]=n}function ae(e,n){$[e.nm]=n}function t(e,n,t,i){for(var r=[],a=0;a<n.length;a++)r[n[a]]=!0;Q[e]={tr:r,en:t,ex:i}}u=$n(u)?Cn(u):{},s&&(W=s[2],j=s[3],nn.assign(u,s[4]||{}),V=u[pc],F=u[fc],(u[dc]||[]).forEach(function(e){G[e[0].nm]=e[1]})),U&&nn.keys(fn).some(function(e){e=fn[e];if(1==e.type&&e.player===U)return e.publicContext.destroy(),!0});var oe,c,se,ue,ce,l,le,de,I,pe,fe,A,me,T,O,_e,he,ve,Ee,ge,b,C,ye,Se,d,h,D,M,Ie,Ae,R,N,Te,v=0,Oe=Tu,be=1,Ce=sn(),De=On(an,"Abnormal duration increment: ",1,1e3,3e5);function Me(){return 2==be}function Re(){return!!T&&T.type===$o}function Ne(e){I=e+en.hi,Tn("Heartbeats started")}function Pe(){I&&Tn("Heartbeats stopped"),I=0}function P(e,n,t){return ps(_,S,e,n,t)}function ke(e){var n=e-Ce;n<0||n>en.ed?De.log(n):0<n&&(4==v?P(Ei,n,hi):11==v?P(vi,n,hi):2==v?(c&&P(Fi,n,xi),P(Zt,n,Jt)):9==v&&(c&&P(Vi,n,xi),P(Qt,n,Jt))),Ce=e}function Le(e,n){null!=e&&(f[e]=n)}function k(n,t,i,e,r,a){if(!m.shallBlock("fireEvent",n.nm,n))if(a=a||(Re()?2:be),0!=(n.ap&a)){if(tu(t),(i=i||[]).push([Ja,m.id]),Te||(Te=!0,(u=z.some(function(e){try{return e(t,i,n,a)}catch(e){on(e,"extEventHandler")}}))||(u=(c=$&&$[n.nm])&&c(t,i,n,a)),Te=!1),!u){ke(t);for(var o,s,u,c,l=[[Oi,Oe]],d=0;d<Do.length;d++)s=f[(o=Do[d]).ts],l.push([o,s?t-s:0]);_(l),null==S(Xt)&&En&&(c=En.downlink)&&_([[Xt,1e3*c]]),Le(n.rt,t),Le(2==a?n.rta:n.rtc,t),!n.on||n.mm&&!n.mm[S(ba,2==a)]||(c=pn(u={},Kt),2==a?(ms(E,Bo,2,u),ms(E,Mo,2,c),ms(p,Bo,rt,u),ms(p,Mo,rt,c)):(ms(p,Bo,1,u),ms(p,Mo,1,c),ms(E,Bo,rt,u),ms(E,Mo,rt,c)),mu(m,u,n.nm,t,i,e,r))}}else an("Event inapplicable: "+n.nm+", "+a,n)}function we(e){var n=e[1];n&&n!=S(e[0])&&g(Et)}function Ue(e,n){var t=3==n?b:C;if(e!=t){var i,r,a,o,s,u,c,l,d=sn();if(I||Ne(d),pe=!0,3==n){if(s=V||en.mp,b=e,a=d-ye,ye=d,i=S(Aa),A){var p,f=T;if(null==_e&&0<i&&(p=A.locate(i),_e=(p.type?p.start:i)-p._e),i=_e,O&&t>=O.start&&t<=O.end||(O=A.locate(t)),(T=T&&e>=T.start&&e<=T.end?T:A.locate(e))&&(u=T.type,c=T.start,l=T._d),T!=f&&(p=N<=e&&e<N+s,u===$o?R!==c&&l&&((null==R?We:(p&&k(kt,d),Ge))(d),R=c,N=T.end,Be(),y(l.concat([[co,N-R]])),He(d,T._a),k(lt,d,null,null,null,2),C=0,Se=d):null!=R&&(p&&k(kt,d,null,null,null,2),Ge(d),je(d))),u===$o)return void(l&&(Ue(f=e-c,10),E[dn.nm]=f))}de||(r=he=!he&&en.cm?en.cm.slice():he)}else s=F||en.mp,C=e,a=d-Se,Se=d,i=ne(co),r=ve=!ve&&en.am?en.am.slice():ve;if(null!=t&&null!=e&&0<=t&&t<e&&e<=t+s){if(0<i&&r)for(var m,_,h=0,v=3==n&&O&&T?(_=((O.type?O.start:t)-O._e)/i,((u?c:e)-T._e)/i):(_=t/i,e/i);h<r.length&&!(v<(m=r[h]/100));)_<m?(r.splice(h,1),g(Dt,[[xr,100*m]],Dt.nm+m)):h++;if(3==n){if(D=e,a<0||a>en.ed)De.log(a);else if(0<a)if(u)P("promo"===u?Ai:null,a,gi);else if(i=P(Ii,a,gi)/1e3,en.cq)for(Ee=Ee||en.cq.slice();null!=(o=Ee[0])&&o<=i;)Ee.shift(),g(Ut,[[Vr,o]],Ut.nm+o)}else if(M=e,a<0||a>en.ed)De.log(a);else if(0<a&&(P(yi,a,gi),i=ps(y,ne,Si,a)/1e3,en.aq))for(ge=ge||en.aq.slice();null!=(o=ge[0])&&o<=i;)ge.shift(),g(Ut,[[Vr,o]],Ut.nm+o)}}}function xe(e,n){null==d&&null!=e&&null!=D&&e!=D&&(d=D,k(jt,n||sn()))}function Ve(e,n){null==h&&null!=e&&null!=M&&e!=M&&(h=M,k(jt,n||sn()))}function Fe(e){oe&&k($t,e),oe=se=!1,be=1,d=D=null,Pe()}function We(e){var n,t,i="pre";S(Ii)>1e3*en.ep&&(n=S(dn),t=S(Aa),i=null!=n&&null!=t&&n+en.ep>t?"post":"mid"),ue=l=le=!1,ie(),_([[oo,un()],[fo,i],[ci,0]]),k(st,e)}function je(e){Ie+=e-f[14],k(ut,e,null,null,null,2),_([[oo,null],[fo,null],[ci,null]])}function Be(){le||(le=!0,y([[mo,a||un()],[Si,0]]),a=null)}function He(e,n){var t=Bs[3];if(ue=!0,ve=ge=null,iu(li,1),P(ci,1),rn(t))try{t(i,n)}catch(e){on(e,"onAdStart")}k(Pt,e)}function Ge(e){if(ue){var n=Bs[4];if(Ae+=e-f[9],rn(n))try{n(i)}catch(e){on(e,"onAdEnd")}}ue=l=le=!1,h=M=R=N=null,ie()}function $e(e,n,t,i){var r,a,o,s;e!=v&&(o=Q[v],r=Eu(v)+" => "+Eu(e),a=mn[e]||Oe,m.shallBlock("setState",r)||(o.tr[e]?(Tn("state: "+r+" ("+a+")"),(o=o.ex)&&o(n,e,t,i),ke(n),s=v,Oe=a,(o=Q[v=e].en)&&o(n,s,t,i),pe=!0):an("Invalid transition: "+r)))}function qe(e){return e!=v&&!!Q[v].tr[e]}function Ye(){return 0==v||7==v||8==v}function L(o,s,u){return function(e){var n,t,i,r,a;n=o,t=s,i=u,a=(e=e)[0],e=e[1]=Jn(e[1],a.dv),a=S(a,i),null!=i&&i!=Me()||null==a||null==e||(t?!e!=!a&&g(e?n:t):e!=a&&g(n,r=n==Vt?a<e?[[Pr,"up"]]:e<a?[[Pr,"down"]]:null:r))}}function ze(e){e[1]=Jn(e[1],e[0].dv)}t(0,[1,8]),t(1,[2,7,8,16],function(e){var n=Bs[1];if(Fe(e),oe=!(ce=!1),de=qo.test(S(ua)),Ie=Ae=0,_([[zr,Z],[ti,e]]),Z=un(),iu(_i,1),rn(n))try{n(i)}catch(e){on(e,"onContentSessionStart")}A=me,me=T=O=_e=null,R=N=null,fe=0,k(Ct,e)}),t(2,[3,4,5,7,8,16],function(e,n){(c=3==n)&&(P(Ui,1,Li),k(Ht,e)),k(mt,e)},function(e){k(_t,e),c&&k(Gt,e),c=!1,se||k(Ot,e)}),t(3,[2,4,5,6,7,8,16],function(e){var n;se||(n=e-f[0],se=!0,he=Ee=null,iu(di,1),k(Pt,e,[[jr,n-Ie],[Br,n-Ae]])),b=D=S(dn),ye=e,null!=d&&(k(Bt,e,[[Fr,1e3*d],[Wr,null!=b?1e3*b:null]]),d=null),k(wt,e),ce&&(ce=!1,k(Wt,e)),I||Ne(e)},function(){b=null}),t(4,[2,3,5,6,7,8,16],function(e){ce||(ce=!0,k(Rt,e))}),t(5,[2,3,4,6,7,8,16],function(e){xe(S(dn),e)}),t(6,[2,3,4,5,7,8,16],function(e){k(kt,e)}),t(7,[],function(e){Fe(e)}),t(8,[],function(e,n,t){k(St,e,t),Fe(e)}),t(9,[10,11,12,14,15,7],function(e,n){Be(),(c=10==n)&&(P(wi,1,Li),k(Ht,e)),k(mt,e)},function(e){k(_t,e),c&&k(Gt,e),c=!1}),t(10,[9,11,12,13,14,15,7],function(e,n,t,i){Be(),ue||He(e,i),C=M=ne(dn),Se=e,null!=h&&(k(Bt,e,[[Fr,1e3*h],[Wr,null!=C?1e3*C:null]]),h=null),k(wt,e),l&&(l=!1,k(Wt,e)),I||Ne(e)},function(){C=null}),t(11,[9,10,12,14,15,7],function(e){l||(l=!0,k(Rt,e))}),t(12,[9,10,11,13,14,15,7],function(e){Ve(ne(dn),e)}),t(13,[9,10,17,7],function(e){k(kt,e),Ge(e)}),t(14,[9,10,17,7],function(e){k(dt,e),Ge(e)}),t(15,[9,10,17,7],function(e,n,t){k(St,e,t),Ge(e)}),t(16,[9,10,15,17,7],function(e){be=2,We(e)}),t(17,[2,3,4,5,6,7],function(e){je(e),be=1});var Ke,e=Pi,w=Pi;function Xe(e){var i=[],r=0,a=0;return i.locate=function(n){return i.find(function(e){return n>=e.start&&n<=e.end})},e.forEach(function(e){var n=e.start,t=e.end;Hn(n)&&Hn(t)&&(n=n<r?r:n)<t?(r<n&&i.push({start:r,end:n,_e:a}),i.push(nn.assign({},e,{start:n,_e:a})),e.type&&(a+=t-n),r=t):an("Skipped time span",e)}),i.push({start:r,end:_n.MAX_VALUE,_e:a}),i}function Je(e,n){e=e&&e({type:Sn,ack:n,appSID:nu(Hr),ctSID:S(zr)});e&&e["catch"](function(e){An("Cast transfer message rejected",e)})}function Qe(e){var n,t=m.publicContext,i=null;m.player=e,nn.assign(t,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return e},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(zr)},nextContentSessionID:function(){return Z},playerState:function(){return Oe},destroy:function(){if(!m.destroyed){qe(7)&&$e(7,sn());for(var e=0;e<Y.length;e++)try{Y[e]()}catch(e){on(e,"extOnDestroy")}fu(m)}},setMetadata:function(e){return!!_u(m,e)&&(au(m.customMetadata,m.setData),!0)},annotateContentSession:function(e){return null==e?!(me=null):!!Gn(e)&&(me=Xe(e.slice().sort(function(e,n){return e.start>n.start?1:-1})),!0)},dumpDzData:function(e){var n=nn.assign(hu(m),p,E),t=ba.nm;return n[t]=(Me()||Re()?E:p)[t],n=ln(cn(n)),null==e?n:n[e]}}),Cu.forEach(function(e){try{e(t,m,q,Y,z,K,X,J)}catch(e){on(e,"extInit")}});try{i=W?W(e,m,u):null}catch(e){i=on(e,s[0]+" initContext")}return i?(In(i),t.destroy()):(null!=(n=r[cu])&&t.setMetadata(n),n=sn(),k(gt,n),k(Lt,n),m.setTimer(function(){for(var e=0;e<q.length;e++)try{q[e]()}catch(e){on(e,"extOnTimer")}if(Ke)try{Ke()}catch(e){on(e,"onTimer")}var n=sn();ke(n),I&&I<=n&&(pe?(k(Tt,n,[[Ur,++fe]]),I=n+en.hi,pe=!1):Pe())})),t}return 1&(G[e.nm]||0)&&(e=Ri),2&(G[w.nm]||0)&&(w=Ri),n(Aa,ze),re(co,ze),n(sa,function(e){var n=e[1];e[1]=n&&Yo[n]||n}),n(ua,function(e){de=qo.test(e[1])}),n(dn,function(e){for(var n=0;n<K.length;n++)try{K[n](e)}catch(e){on(e,"extPlayheadHandler")}5==v||2==v?xe(e[1]):3==v&&Ue(e[1],3)}),re(dn,function(e){12==v?Ve(e[1]):10==v&&Ue(e[1],10)}),n(e,L(Vt,null,!1)),re(w,L(Vt,null,!0)),n(ta,L(Mt,Yt)),n(ea,L(At,It)),n(Xr,L(ht,vt)),n(Da,L(Ft)),n(Ca,L(Ft)),n(rr,L(zt)),n(ii,L(ft,null,!1)),re(ii,L(ft,null,!0)),n(ri,L(qt)),n(ca,L(qt)),n($r,we),n(qr,we),n(Ci,function(e){var n,t,i,r,a=e[1];a=a&&rn(a.getBoundingClientRect)?"visible"==vn.visibilityState?(n=(t=a.getBoundingClientRect()).left,i=t.top,r=t.bottom,tn.min(100,tn.max(0,tn.round(100*(tn.min(t=t.right,Ze.innerWidth)-tn.max(n,0))*(tn.min(r,Ze.innerHeight)-tn.max(i,0))/((t-n)*(r-i)))))):0:Jn(a,Ci.dv),null!=(e[1]=a)&&_([[bi,50<=a]])}),n(ni,function(e){var n=e[1];if(n&&rn(n.end)){var t,i,r=S(dn);if(null!=r)for(t=0;t<n.length;t++)if(i=n.end(t),r>=n.start(t)&&r<=i)return void(e[1]=1e3*(i-r));e[1]=0}}),ae(Ot,function(e,n,t,i){2==i&&(a=un(),n.push([mo,a,!0]))}),ae(lt,function(e,n){a&&n.push([mo,a,!0])}),ae(St,function(e,n,t,i){iu(1==i?mi:fi,1,pi)}),te(),ie(),nn.assign(m,{type:1,fireEvent:k,fire:function(e,n,t){k(e,sn(),n,null,null,t)},setState:function(e,n,t){$e(e,sn(),n,t)},canSetState:qe,reset:function(){qe(7)&&$e(7,sn()),te(),ie(),f=[],v=0,Oe=Tu},setData:function(e){_(e),ee()},setAdData:function(e){y(e),ee()},getData:S,getAdData:ne,getState:function(){return v},isIdle:Ye,isAdIdle:function(){return 13==v||14==v||15==v},isInAds:Me,isInSsaiAds:Re,onTimer:function(e){Ke=e},matchCtSource:function(e){return S(Ma)==e},reqCtSID:function(){return Ye()?Z:S(zr)},reqTracer:function(e,a){e=Ln(e,function(e){e["delete"]("CMCD")});var n,t=m.reqCtSID(),i=un(),r=((a=nn.assign({},a||{},{sid:t}))[os+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(n=S(Sa))&&(a.cid=n),{url:e,sid:t,rid:i,cmcd:a,start:sn()});return{reqID:i,urlBase:e,url:function(){var n=ss(a);return Ln(e,function(e){e.append("CMCD",n[0].concat(n[1],n[2],n[3]).sort().join())})},headers:function(){for(var e={},n=ss(a),t=0;t<4;t++)n[t].length&&(e[Ko[t]]=n[t].sort().join());return e},enabledData:function(){for(var e,n,t=nn.keys(a),i={},r=0;r<t.length;r++)e=t[r],(n=rs[e])&&n[3]&&(i[e]=a[e]);return i},status:function(e){r.status=e},start:function(){r.start=sn()},resp:function(e){r.resp=null!=e?r.start+e:sn(),yn&&bn("reqInfo",r)},end:function(e){var n=sn(),t=(r.end=null!=e?r.start+e:n,nn.assign({},as,a)),i=[];nn.keys(t).forEach(function(e){var n=rs[e];n&&n[2]&&i.push([n[2],t[e]])}),k(bt,n,i,null,null,1),yn&&bn("reqInfo",r)}}},updateTimedMetadata:function(e,n,t,i,r){for(var a=0;a<X.length;a++)try{X[a](e,n,t,i,r)}catch(e){on(e,"extTimedMetadataHandler")}},addCtTimeSpans:function(e){var u=A?A.filter(function(e){return e.type}):[];e.forEach(function(e){for(var n,t,i,r,a=e.start,o=e.end,s=0;s<u.length&&(i=(t=u[s]).start,r=t.end,!(o<=i));s++)a<r&&(i<a?(u.splice(s+1,0,nn.assign({},t,{start:a})),t.end=a):(n||(u.splice(s++,0,e),n=!0),o<r?t.start=o:u.splice(s--,1)));n||u.splice(s,0,e)}),A=Xe(u),T=O=_e=null},initCastTransfer:function(e){Ye()||Je(e,!1)},handleCastMessage:function(e,n){!e||e.type!==Sn||Ye()||(m.setData([[$r,e.appSID],[qr,e.ctSID]]),e.ack)||Je(n,!0)},sa:{}}),s&&_([[ia,s[1]]]),Ws&Us&&us((e=gn.options).cmcdEnable?e.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new hn(function(n,t){try{j(x,m,u).then(function(e){i=Qe(e),n(i)},function(e){In(e),t(e)})}catch(e){t(on(e,s[0]+" createTargetObject"))}}):hn.reject("Not implemented"):i=Qe(U)}),bu=function(e,o){var s=new(e||k);return o=o||L,s.dispatch=function(e,n,t){var i,r,a;t=t||{},n&&((a=n.media)&&nn.assign(s,a),a=n.ima)&&((n=a.adsManager)&&nn.assign(s,n),t.getAdData=function(){return{currentTime:s.currentTime}},(i=a.ad)&&(t.getAd=function(){return{getAdId:function(){return i.adId},getAdSystem:function(){return i.adSystem},getAdvertiserName:function(){return i.advertiserName},getCreativeId:function(){return i.creativeId},getDealId:function(){return i.dealId},getDuration:function(){return i.duration},getSkipTimeOffset:function(){return i.skipTimeOffset},getVastMediaBitrate:function(){return i.vastMediaBitrate},getVastMediaWidth:function(){return i.vastMediaWidth},getVastMediaHeight:function(){return i.vastMediaHeight},getWrapperAdIds:function(){return i.wrapperAdIds},getWrapperAdSystems:function(){return i.wrapperAdSystems},getWrapperCreativeIds:function(){return i.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return i.adPodIndex},getTimeOffset:function(){return i.adTimeOffset}}},h:{clickThroughUrl:i.clickThroughUrl}}}),r=a.error)&&(t.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),e&&(n=new o(e),nn.assign(n,t),s.dispatchEvent(n))},s.getBoundingClientRect=function(){return s.boundingClientRect||{left:0,right:0,top:0,bottom:0}},s.getVolume=function(){return s.volume},s},Cu=[],Du="REQUEST_COMPLETE",Mu="SLOT_STARTED",Ru="SLOT_ENDED",Nu="AD_INITIATED",Pu="AD_BUFFERING_START",ku="AD_BUFFERING_END",Lu="AD_PAUSE",wu="AD_RESUME",Uu="AD_IMPRESSION",xu="AD_IMPRESSION_END",Vu="AD_COMPLETE",Fu="AD_SKIPPED",Wu="AD_CLICK",ju=(Cu.push(function(e,i,n,t){var r,a,o=i.setState,s=i.setAdData,u=i.fire,c={},l={on:{}};function d(){r&&(i.removeListeners(r),c={},r=a=null)}l.$update=l.update=function(e,n){var t;i.isInAds()&&(n&&s([[ho,p(n,"getTimePosition")]]),a&&(s([[dn,p(a,"getPlayheadTime")],[co,p(a,"getDuration")],[lo,p(a,"getAdId")],[uo,a._creativeId],[Eo,p(a,"getDealId")],[go,p(a,"getSkipOffset")]]),n=p(a,"getActiveCreativeRendition"))&&(t=p(n,"getHeight"),s([[ki,p(n,"getWidth")],[Ri,t],[Ni,t?t+"p":null]])),e)&&(n=p(e,"getAdVolume"),i.setData([[rr,100*n],[ta,0==n]]))},l.on[Du]=function(e,n){n.success?u(Ct,null,2):u(St,null,2)},l.on[Mu]=function(e,n){a=null,o(16),l.update(e,n.slot)},l.on[Ru]=function(){o(17),a=null},l.on[Nu]=function(){s([[Ti,1]]),u(Ot,null,2)},l.on[Pu]=function(){o(9)},l.on[ku]=l.on[wu]=function(){o(10,null,a)},l.on[Uu]=function(){o(10,null,a),u(lt,null,2)},l.on[Lu]=function(){o(11)},l.on[Vu]=function(){o(13),a=null},l.on[Fu]=function(){o(14),a=null},l.on[xu]=function(){a=null},l.on[Wu]=function(){u(ct)},l.on["ERROR"]=function(e,n){o(15,[[kr,n.errorCode],[Lr,n.errorInfo]]),a=null},l.on["AD"]=function(e,n){a=n.adInstance,l.update(e);var t=c[n.subType];t&&t(e,n)},l.$on=Cn(l.on),i.sa.fwContext=l,n.push(function(){r&&l.update(r)}),t.push(d),Rn({attachFwContext:function(e){var n;!i.shallBlock("attachFwContext",null,e)&&e!=r&&(d(),r=e)&&(n=g(Ze.tv,["freewheel","SDK"]),[Du,Mu,Ru,"AD"].forEach(function(t){var e=n&&n["EVENT_"+t];e&&i.addListener(r,e,function(e){var n=l.on[t];n&&n(r,e)})}),[Nu,Pu,ku,Lu,wu,Uu,xu,Vu,Fu,Wu,"ERROR"].forEach(function(i){var e=n&&n["EVENT_"+i];e&&(c[e]=function(e,n){var t=l.on[i];t&&t(e,n)})}))},detachFwContext:d},[e,i])}),"play"),Bu="waiting",Hu="playing",Gu="pause",$u="seeking",qu="seeked",Yu="ended",zu="durationchange",Ku="ratechange",Xu="timeupdate",Ju=(Cu.push(function(e,a,n,t){var r,o,s,u,i=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function p(){o&&d(o),r&&d(r),r=o=null}function f(){if(r){for(var e,n,t,i=0;i<r.length;i++)"metadata"===(t=r[i]).kind?n=n||t:"showing"===t.mode&&(e=e||t);s||c([[ca,!!e],[ri,e?e.label||e.language:null]]),o!=n&&(o&&d(o),o=n)&&l(o,"cuechange",function(){var e=o.activeCues;if(e)for(var n,t,i=0;i<e.length;i++)(t=(n=e[i]).value)&&a.updateTimedMetadata("ID3",n.startTime,n.endTime,t.key,t.data)})}}t.push(p);var m={on:{}};function _(){u&&d(u),u=null}m.$update=m.update=function(e,n){n&&(c([[Aa,e.duration],[Qr,e.muted],[Zr,e.playbackRate]]),f()),a.isInAds()||c([[dn,e.currentTime],[Ti,e.playbackRate],[Da,e.offsetWidth],[Ca,e.offsetHeight],[Ci,e],[ni,e.buffered],[na,e.loop],[ta,e.muted],[rr,100*e.volume],[oa,e.readyState]])},m.on[ju]=function(e){a.isIdle()&&(a.reset(),m.update(e,!0),i(1),i(2))},m.on[Bu]=function(e){m.update(e),i(2)},m.on[Hu]=function(e){m.update(e),a.isAdIdle()&&i(17),i(3)},m.on[Gu]=function(e){m.update(e),i(4)},m.on[$u]=function(e){m.update(e),i(5)},m.on[qu]=function(e){m.update(e),i(e.paused?4:3)},m.on[Yu]=function(e){m.update(e),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(e){var n,t=e.error;t&&(n=[[kr,t.code],[Lr,t.message]]),m.update(e),i(8,n)},m.on[zu]=function(e){c([[Aa,e.duration]])},m.on[Ku]=function(e){c([[Ti,e.playbackRate]])},m.on[Xu]=function(e){m.update(e)},m.$on=Cn(m.on),a.sa.mediaElement=m,n.push(function(){u&&m.update(u)}),t.push(_),Rn({attachMediaElement:function(e){_(),(u=e)&&[[ju,(e=[[Yu,Gu,$u,ju,Bu,qu,Hu]])[0]],[Bu,e[0]],[Hu,e[0]],[Gu,e[0]],[$u,e[0]],[qu,e[0]],[Yu,e[0]],["error"],[zu],[Ku],[Xu]].forEach(function(i){var r=i[0];l(u,r,function(e){var n,t=m.on[r];t&&((n=i[1])?(a.stash(r,t,[u,e]),j(function(){a.unstash(n)},0)):t(u,e))})})},detachMediaElement:_,attachTextTracks:function(e,n){p(),s=n,(r=e)&&["change","addtrack","removetrack"].forEach(function(e){l(r,e,f)})},detachTextTracks:p},[a])}),"CLICK"),Qu="STARTED",Zu="AD_PROGRESS",ec="AD_BUFFERING",nc="IMPRESSION",tc="PAUSED",ic="RESUMED",rc="COMPLETE",ac="LOADED",oc="ALL_ADS_COMPLETED",sc="SKIPPED",uc="VOLUME_CHANGED",cc="AD_ERROR",lc={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"},dc=(Cu.push(function(e,a,n,t){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(e){var n,e=e.getError();return e&&(n=[[kr,e.getErrorCode()],[Lr,e.getMessage()]],e=e.getInnerError())&&n.push([wr,""+e]),n}var d,p,f={on:{}};function m(){o&&c(o),o=null}function _(e){var n=e.getAdPodInfo(),t=e.getVastMediaHeight(),t=[[lo,e.getAdId(),!0],[_o,e.getAdSystem(),!0],[vo,e.getAdvertiserName(),!0],[uo,e.getCreativeId(),!0],[Eo,e.getDealId(),!0],[co,e.getDuration(),!0],[go,e.getSkipTimeOffset(),!0],[Pi,e.getVastMediaBitrate(),!0],[ki,e.getVastMediaWidth(),!0],[Ri,t,!0],[Ni,t?t+"p":null,!0],[So,e.getWrapperAdIds(),!0],[Io,e.getWrapperAdSystems(),!0],[yo,e.getWrapperCreativeIds(),!0],[so,g(e,[/[a-z]/,"clickThroughUrl"]),!0]];return n&&t.push([ho,n.getTimeOffset(),!0]),t}f.$update=f.update=function(e,n){a.isInAds()&&(n&&r(_(n)),e)&&(n=e.getVolume(),a.setData([[rr,100*n],[ta,0==n]]))},f.on[Ju]=function(e){f.update(e),s(ct)},f.on[Qu]=function(e,n){n=n.getAd();a.isInAds()||i(16),r([[Ti,1]]),f.update(e,n),i(10,null,n)},f.on[Zu]=function(e,n){n=g(n.getAdData(),["currentTime"]);null!=n&&(f.update(e),9==a.getState()&&(null==d?d=n:d!=n&&i(10)),r([[dn,n]]))},f.on[ec]=function(e){f.update(e),i(9),d=null},f.on[nc]=function(e){f.update(e),s(lt,null,2)},f.on[tc]=function(e){f.update(e),i(11)},f.on[ic]=function(e){f.update(e),i(10)},f.on[rc]=function(e){f.update(e),i(13)},f.on[ac]=function(e,n){n=n.getAd();s(Ot,n&&_(n),2)},f.on[oc]=function(){i(17),m()},f.on[sc]=function(e){f.update(e),i(14)},f.on[uc]=function(e){f.update(e)},f.on[cc]=function(e,n){f.update(e),a.canSetState(15)?i(15,l(n)):s(St,l(n),2)},f.$on=Cn(f.on),a.sa.imaAdsManager=f,n.push(function(){o&&f.update(o)}),t.push(m);var h={on:{}};function v(){p&&c(p),p=null}h.on[cc]=function(e,n){s(St,l(n),2)},h.$on=Cn(h.on),a.sa.imaAdsLoader=h,t.push(v),Rn({attachImaAdsManager:function(e){var n,t;!a.shallBlock("attachImaAdsManager",null,e)&&e!=o&&(m(),o=e)&&(e=g(Ze.google,["ima"]),n=g(e,["AdEvent","Type"],lc),[[Ju],[Qu,null,(t=[[Qu,nc]])[0]],[Zu],[ec],[nc,null,t[0]],[tc],[ic],[rc],[ac],[oc],[sc],[uc],[cc,g(e,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],e=(i[1]||n)[r];e&&u(o,e,function(e){var n,t=f.on[r];t&&((n=i[2])?(a.stash(r,t,[o,e]),j(function(){a.unstash(n)},0)):t(o,e))})}),s(Ct,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(e){a.shallBlock("attachImaAdsLoader",null,e)||e==p||(v(),(p=e)&&(e=g(Ze.google,["ima","AdErrorEvent","Type"],lc)[cc])&&u(p,e,function(e){var n=h.on[cc];n&&n(p,e)}))},detachImaAdsLoader:v},[e,a])}),Cu.push(function(n,r,e,t,i,a,o){var s,u,c,l=r.addListener;function d(){s&&r.removeListeners(s),s=u=c=null}function p(e){for(var n;(n=u[0])&&n.t<=e;)u.shift(),delete n.t,s.onTimedMetadata(n)}t.push(d),a.push(function(e){s&&p(c=e[1])}),o.push(function(e,n,t,i,r){var a;s&&i&&r&&Bn(a="ID3"===e?r:a)&&((e={t:n})[i]=a,u.push(e),null!=c)&&p(c)}),Rn({attachImaDaiStreamManager:function(e){r.shallBlock("attachImaDaiStreamManager",null,e)||e==s||(d(),(s=e)&&(e=g(Ze.google,["ima","dai","api","StreamEvent","Type"]),u=[],e)&&(l(s,e.CUEPOINTS_CHANGED,function(e){r.isIdle()&&(e=g(e.getStreamData(),["cuepoints"]))&&e.length&&n.annotateContentSession(e.map(function(e){return{type:$o,start:e.start,end:e.end}}))}),l(s,e.STARTED,function(e){var n,t,i,e=e.getAd();e&&(n=c||0,t=e.getAdPodInfo(),i=e.getVastMediaHeight(),r.addCtTimeSpans([{type:$o,start:n,end:n+(e.getDuration()||0),_d:[[lo,e.getAdId()],[_o,e.getAdSystem()],[vo,e.getAdvertiserName()],[uo,e.getCreativeId()],[Eo,e.getDealId()],[go,e.getSkipTimeOffset()],[ki,e.getVastMediaWidth()],[Ri,i],[Ni,i?i+"p":null],[So,e.getWrapperAdIds()],[Io,e.getWrapperAdSystems()],[yo,e.getWrapperCreativeIds()],[ho,t?t.getTimeOffset():null]],_a:e}]))})))},detachImaDaiStreamManager:d},[n,r])}),gn.mediatailor=((Nt=y.mediatailor)&&(Nt.clientInfo+=" DZSDK "+en.cn+" v"+en.sv),Nt),Cu.push(function(e,s,n,t,i,r,a,o){var u,c,l,d,p;function f(e,n,t){if(e&&1===e.playCount)for(var i=o.length,r=0;r<i;r++)o[r](n,t)}function m(){u&&c&&u.removeAdObserver(c),u=c=null,l=d=p=null}t.push(m),i.push(function(e,n,t,i){var r=l&&l[t.nm];return r&&r(e,n,t,i)}),r.push(function(e){u&&!s.isIdle()&&(d=e[1],p=s.getData(Di),pe<le||Fe("MT onPlayheadUpdate: "+d+", "+p),u.onPlayheadUpdate(d,p||null))}),Rn({attachMediaTailorSession:function(e,n){var o,t,i,r,a;n=n||gn.mediatailor,!s.shallBlock("attachMediaTailorSession",null,e)&&n&&e!=u&&(m(),t=function(){var e=s.getData(rr);Hn(e)&&f(o,14,e)},i=n.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(e){return function(){f(o,e)}})(3),r[i.LOADED]=a(1),r[i.START]=a(2),r[i.FIRST_QUARTILE]=a(4),r[i.MID_POINT]=a(5),r[i.THIRD_QUARTILE]=a(6),r[i.COMPLETE]=a(7),r[i.PAUSE]=a(8),r[i.RESUME]=a(9),r[i.FULLSCREEN]=a(15),r[i.EXIT_FULLSCREEN]=a(16),r[i.MUTE]=function(){f(o,14,0)},r[i.UNMUTE]=t,r[i.CLICK_THROUGH]=function(){s.fire(ct),f(o,13)},r[i.SKIP]=function(){s.fire(dt),f(o,12)},u=e)&&(a=n.PlaybackEvent,l={},[[a.START,Pt,1],[a.END,$t,I],[a.PAUSE,Rt,I],[a.RESUME,Wt,I],[a.MUTE,Mt,I],[a.UNMUTE,Yt,I],[a.FULLSCREEN,At,I],[a.EXIT_FULLSCREEN,It,I]].forEach(function(r){l[r[1].nm]=function(e,n,t,i){r[2]&i&&u.onPlaybackEvent(r[0])}}),l[zt.nm]=t,l[mt.nm]=function(){f(o,10)},l[_t.nm]=function(){f(o,11)},c={onNewAd:function(e){var n;s.addCtTimeSpans([(n=(n=(e=e).startDate)&&p?n-p+d:e.start,{type:$o,start:n,end:n+e.duration,_a:e,_d:[[lo,e.vastAdId],[_o,e.adSystem],[uo,e.creativeId],[go,e.skipOffset],[ho,e.availStart],[so,e.videoClickThrough]]})])},onAdLoad:function(e){var n,t,i,r,a;1===(o=e).playCount&&(n=e.adVerifications)&&(t={},i=[],r=s.getData(rr),a=e.skipOffset,Hn(r)&&(t["v"]=r),t["d"]=e.duration,t["ap"]=!!s.getData(Kr),t["po"]=0===e.availStart?0:1,t["sk"]=0<=a,t["so"]=t["sk"]?a:null,t["vf"]=i,n.forEach(function(e){var n=g(e.javaScriptResource,[0,"uri"]),t=e.vendor;n&&t&&i.push({url:n,vd:t,p:e.verificationParameters||""})}),f(e,0,t))},onAdEnd:function(e){f(e,17),o=null},onAdTrackingEvent:function(e,n){n=r[n];n&&n()}},u.addAdObserver(c))},detachMediaTailorSession:m},[e])}),Cu.push(function(s,u,e,n,t,i,r){var p,c,l,a,d,f,m,_,h,v=["YMID","YSEQ","YTYP","YDUR"];function E(){p&&c&&p.removeAnalyticObserver(c),p=c=null,l=a=d=m=null}function o(e){for(var n;(n=l[0])&&n.t<=e;)l.shift(),p.onTimedMetadata(h.createFromMetadata(n.YMID,n.YSEQ,n.YTYP,n.YDUR,1e3*n.t))}function g(e,n,t){(a=a&&a.t===e?a:{t:e})[n]=t||"",nn.keys(a).length===v.length+1&&(l.push(a),(a=null)!=m)&&o(m)}n.push(E),t.push(function(e,n,t,i){var r=d&&d[t.nm];return r&&r(e,n,t,i)}),i.push(function(e){p&&!u.isIdle()&&(m=e[1],f===_.VOD||f===_.DVRLIVE?p.onPlayheadUpdate(tn.round(1e3*m)):o(m))});var y=O.fromCharCode;function S(e,n,t){for(var i,r=[];n<t;)31<(i=e[n++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(e,n,t,i,r){var a;if(p&&r&&f===_.LIVE)if("ID3"===e||"org.id3"===e)v.includes(i)&&(r instanceof M&&(r=new D(r))||r instanceof D?3===r[0]&&(a=S(r,1,r.length)):a=r,Bn(a))&&g(n,i,a);else if("urn:yospace:a:id3:2016"===e){if(r instanceof D)for(var o,s=S(r,0,r.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),v.includes(o[0])&&g(n,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===e&&r instanceof D){var c=r.length;if(9<c&&73===r[0]&&68===r[1]&&51===r[2]&&(r[3]<<8|r[4])<=1024&&!(192&r[5])){u=6;for(var l=0,d=10;u<d;)l=l<<7|127&r[u++];for(c=tn.min(c,l+10);u+9<c;){for(i="",d=u+4;u<d;)i+=y(r[u++]);for(l=0,d=u+4;u<d;)l=l<<7|127&r[u++];d=(u+=2)+l,v.includes(i)&&d<=c&&g(n,i,S(r,u,d)),u=d}}}}),Rn({attachYospaceSession:function(e){var n,a,o,t,i,r=Ze.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,e)&&r&&e!=p&&(E(),p=e)&&(n=r.PlayerEvent,e=r.BreakType,_=r.PlaybackMode,h=r.TimedMetadata,f=p.getPlaybackMode(),l=[],d={},[[n.START,Pt,1],[n.STOP,$t,I],[n.PAUSE,Rt,I],[n.RESUME,Wt,I],[n.STALL,Ht,I],[n.CONTINUE,Gt,I]].forEach(function(r){d[r[1].nm]=function(e,n,t,i){r[2]&i&&p.onPlayerEvent(r[0],0)}}),d[Bt.nm]=function(){p.onPlayerEvent(n.SEEK,1e3*(m||0))},d[Mt.nm]=function(){p.onVolumeChange(!0)},d[Yt.nm]=function(){p.onVolumeChange(!1)},a=function(e,n){e=e.getProperty(n);return e&&e.getValue()},o=function(e,n,t,i){e&&(n.push(e.getIdentifier()),t.push(e.getAdSystem()),i.push(e.getCreativeIdentifier()),o(e.getLineage(),n,t,i))},t=function(e){var n=e.getSkipOffset(),t=[],i=[],r=[],n=(o(e.getLineage(),t,i,r),[[lo,e.getIdentifier()],[_o,a(e,"AdSystem")],[vo,a(e,"Advertiser")],[go,0<n?n/1e3:n],[So,t],[Io,i],[yo,r]]),t=e.getLinearCreative(),i=(t&&n.push([uo,t.getCreativeIdentifier()],[so,t.getClickThroughUrl()]),e.getStart()/1e3);return{type:$o,start:i,end:i+e.getDuration()/1e3,_d:n,_a:e}},c={onAdvertBreakStart:function(e){},onAdvertBreakEnd:function(){},onAdvertStart:function(e){u.addCtTimeSpans([t(e)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(e){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(e){}},p.addAnalyticObserver(c),f===_.VOD)&&(i=[],(r=p.getAdBreaksByType(e.LINEAR))&&r.forEach(function(e){e=e.adverts;e&&e.forEach(function(e){i.push(t(e))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:E},[s])}),Cu.push(function(e,i,n,t,r,a,o,s){var u,m,_,c;function h(){c&&c(17),m=_=c=null,u=!1}t.push(h),s.push(function(e,n){u&&(0===e?(c&&c(17),c=!1===en.om?null:_(n)):c&&(c(e,n),17===e)&&(c=null))}),Rn({startOmidSessionClient:function(e){var c,l,d,p,f=y.OmidSessionClient,n=jn.omidPartnerName,t=jn.omidPartnerVersion;i.shallBlock("startOmidSessionClient",null,e=e||{})||(c=e.omidServiceWindow||Ze.self,l=e.videoElement,d=e.contentURL||w.href,p=e.accessModeHandler,f&&n&&t&&l?(h(),m=new f.Partner(n,t),_=function(n){var t,i,r,a,o,s,e=n["vf"],e=e&&e.map(function(e){var n=e["url"],t=e["vd"],e=e["p"]||"";return new f.VerificationScriptResource(n,t,e,p&&p(n,t,e)||"full")});return e&&e.length?((e=new f.Context(m,e,d)).setServiceWindow(c),"VIDEO"===l.tagName?e.setVideoElement(l):e.setVideoElement(l.getElementsByTagName("video")[0]||l),t=new f.AdSession(e),i=!1,r=[],t.setCreativeType("video"),t.setImpressionType("beginToRender"),t.isSupported()?(s=[,function(){a.loaded(new f.VastProperties(n["sk"],n["so"],n["ap"],n["po"]))},function(){o.start(n["d"],n["v"]/100)},function(){a.impressionOccurred()},function(){o.firstQuartile()},function(){o.midpoint()},function(){o.thirdQuartile()},function(){o.complete()},function(){o.pause()},function(){o.resume()},function(){o.bufferStart()},function(){o.bufferFinish()},function(){o.skipped()},function(){o.adUserInteraction("click")},function(e){n["v"]=e,o.volumeChange(e/100)},function(){o.playerStateChange("fullscreen")},function(){o.playerStateChange("normal")},function(){t.finish()}],t.registerSessionObserver(function(e){switch(e.type){case"sessionStart":var n;for(a=new f.AdEvents(t),o=new f.MediaEvents(t),i=!0;n=r.shift();)u(n[0],n[1]);break;case"sessionError":an("OMID ad session error")}}),t.start(),u):(an("OMID ad session unsupported"),null)):null;function u(e,n){var t;i?(t=s[e])&&t(n):r.push([e,n])}},u=!0):In("Missing OM SDK library or parameters"))},stopOmidSessionClient:h},[e])}),gn.omidPartnerName=jn.omidPartnerName,gn.omidPartnerVersion=jn.omidPartnerVersion,"unsupportedDataList"),pc="maxCtPlayheadInterval",fc="maxAdPlayheadInterval",mc={};function _c(){if(!Iu){var e=Bs[2];if(rn(e))try{e()}catch(e){on(e,"onPageUnload")}nn.keys(fn).forEach(function(e){fn[e].publicContext.destroy()}),Gs(!0),Iu=!0}}si=[oi="theo","THEOplayer",si=function(o,s,e){var n,e=e.THEOplayerRoot||Ze.THEOplayer;if(!o||!e)return"Invalid player or missing THEOplayer root";function t(e,n,t){s.addListener(e,n,t)}function i(e,n){t(o,e,n)}function r(e,n){t(o.ads,e,n)}function a(e,n){t(o.audioTracks,e,n)}function u(e,n){t(o.textTracks,e,n)}s.setData([[ra,e.version]]);var c,l,e=e.cmcd,d=e&&e.Connector,e=e&&e.TransmissionMode;function p(){var e=g(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();return e&&e.getCurrentSession()}function f(e){var n=p();return n&&n.sendMessage(re,e)}function m(){s.removeListeners(null,re),s.addListener(p(),re,function(e,n){s.handleCastMessage(ln(n),f)},"addMessageListener","removeMessageListener")}function _(){for(var e,n,t=o.audioTracks,i=0;i<t.length;i++)if((n=t[i]).enabled){e=n;break}t&&s.setData([[ii,e?e.label||e.language:null],[Mi,g(e,["activeQuality","bandwidth"])/1e3]])}function h(){if(!s.isInAds()){for(var e,n,t,i=o.textTracks,r=0;r<i.length;r++)"metadata"===(t=i[r]).kind?n=n||t:"showing"===t.mode&&(e=e||t);s.setData([[ca,!!e],[ri,e?e.label||e.language:null]]),l!=n&&(l&&s.removeListeners(l),l=n)&&s.addListener(l,"cuechange",function(){var e=l.activeCues;if(e)for(var n,t,i=0;i<e.length;i++)(t=(n=e[i]).content)&&s.updateTimedMetadata("ID3",n.startTime,n.endTime,t.id,t.text)})}}function v(){var e,n,t,i,r,a;s.isIdle()||(e=g(o,["element"]),n=g(o,["duration"]),t="inline"!=g(o,["presentation","currentMode"]),i=isNaN(n)?null:n==1/0?"Live":"VOD",0<o.buffered.length&&0<o.seekable.length&&0<o.seekable.end(0)&&(a=tn.max(o.buffered.end(o.buffered.length-1)-o.currentTime,0),r=tn.min(o.abr.targetBuffer,o.seekable.end(0)-o.currentTime),a=100*tn.min(a/r,1)),isNaN(a)||s.setData([[ei,a]]),_(),h(),e&&s.setData([[Da,e.offsetWidth],[Ca,e.offsetHeight],[Ci,e],[Ri,g(o,["videoHeight"])],[ki,g(o,["videoWidth"])]]),s.setData([[Kr,g(o,["autoplay"])],[Jr,g(o,["controls"])],[ta,g(o,["muted"])],[rr,100*g(o,["volume"])],[Ti,g(o,["playbackRate"])],[ni,o.buffered],[Ta,g(o,["videoTracks",0,"activeQuality","frameRate"])],[Aa,isNaN(n)?null:n],[ea,t],[na,g(o,["loop"])],[Sa,g(o,["source","sources","0","id"],null)],[ua,i],[oa,g(o,["readyState"])]]))}function E(e){e&&s.setAdData([[co,g(e,["ad","duration"])]])}ts&&d&&e&&(c={},new d(o,{sessionID:s.reqCtSID(),transmissionMode:is?e.HTTP_HEADER:e.QUERY_ARGUMENT,sendRequestID:!1}).processor=function(e,n){!1===e.bs&&delete e.bs;n=n.url,e=s.reqTracer(n,e);return(c[n.split("?")[0]]=e).enabledData()},o.network.addResponseInterceptor(function(e){var n=e.url.split("?")[0],t=c[n];t&&(t.status(e.status),t.resp(),t.end(),delete c[n])})),o.cast&&t(o.cast.chromecast,"statechange",function(e){e="connected"==e.state;e&&(m(),s.initCastTransfer(f)),s.setData([[Xr,e]])}),i("play",function(){var e,n,t=g(o.cast,["chromecast","casting"]),i=o.src;s.isIdle()||s.matchCtSource(i)||s.reset(),s.isInAds()||(s.isIdle()&&(s.reset(),s.setData([[sa,(n=i,e=(e=(e=null)&&Yo[e])||(n=(n=(n=n)&&/\.(\w+)($|\?)/.exec(n))&&n[1])&&zo[n.toLowerCase()])],[Ma,i],[Ci,o.element||null],[Qr,o.muted],[Zr,o.playbackRate],[aa,o.preload]]),v(),s.setState(1),s.setState(2),t)&&(m(),s.initCastTransfer(f)),t&&s.setState(3))}),i("waiting",function(){s.setState(2)}),i("playing",function(){s.isInAds()?(E(),s.setState(10)):(v(),s.setState(3))}),i("pause",function(){s.isInAds()?(E(),s.setState(11)):(v(),s.setState(4))}),i("seeking",function(){s.isInAds()||(v(),s.setState(5))}),i("seeked",function(){v(),s.setState(o.paused?4:3)}),i("ended",function(){s.setState(6)}),i("error",function(e){var n=[];e&&(n.push([Lr,g(e,["errorObject","message"])]),n.push([kr,g(e,["errorObject","code"])])),v(),s.setState(8,n)}),i("durationchange",function(){s.isInAds()||(v(),s.setData([[Aa,o.duration]]))}),i("ratechange",function(){s.setData([[Ti,o.playbackRate]]),v()}),t(o.videoTracks,"addtrack",function(e){s.isInAds()||(t(e.track,"activequalitychanged",function(e){var n=g(e,["quality","height"]),e=g(e,["quality","bandwidth"])/1e3;s.setData([[Pi,e],[Ni,n?n+"p":null]])}),t(e.track,"targetqualitychanged",function(e){s.fire(xt)}),v())}),u("change",h),u("addtrack",h),u("removetrack",h),a("change",_),a("addtrack",_),a("removetrack",_),i("timeupdate",function(e){s.isInAds()?(null!=(e=g(e,["currentTime"]))&&(E(),9==s.getState())&&(null==n?n=e:n!=e&&s.setState(10)),s.setAdData([[dn,e]])):((e=o.currentProgramDateTime)&&s.setData([[Di,e.getTime()/1e3]]),s.setData([[dn,o.currentTime]]))}),r("adbreakbegin",function(e){s.setState(16)}),r("adbuffering",function(e){s.setState(9),n=null}),r("adbegin",function(e){e&&s.setAdData([[go,g(e,["ad","skipOffset"])],[yo,g(e,["ad","wrapperCreativeIds"])],[So,g(e,["ad","wrapperAdIds"])],[Io,g(e,["ad","wrapperAdSystems"])],[uo,g(e,["ad","creativeId"])],[lo,g(e,["ad","id"])],[_o,g(e,["ad","adSystem"])],[ho,g(e,["ad","adBreak","timeOffset"])]]),E(e),s.setState(10)}),r("adskip",function(e){s.setState(14)}),r("adend",function(e){j(function(){s.setState(13)},0)}),r("adbreakend",function(e){j(function(){s.setState(17)},0)}),r("adimpression",function(e){s.fire(lt,null,2)}),s.onTimer(function(){(s.isInAds()?E:v)()})},yu,Su],gu=gu||si,mc[oi]=si;var hc=!0;function vc(t){if(!Au){if(!(en.ci||Un(ne,ie)||t&&t[ie]))return!1;t&&(ne=Ln(ne,function(n){nn.keys(t).forEach(function(e){n.set(e,t[e])})}),me()),hc&&(hc=!1,ru(yt,sn()));var e=Un(ne,"env");en.cf="staging"===e||"dev"===e||"sandbox"===e?e:"",en.ci=Un(ne,ie)||en.ci,en.om=null,eu([[ur,en.ci]]),Xs(),Au=!0}return!0}function Ec(e){e()}function gc(e,n,t){$n(t)||(null!=t&&an("Invalid contextOptions",t),t={});var i,r,a,o,s=t[su];return s&&s!==du[1]?s===du[lu]?(r=(i=vu()).publicContext,a=t[cu],i.name=t[uu],null!=a&&r.setMetadata(a),i.fireEvent(gt,sn()),r):(In(a="Unknown context type: "+s),n?hn.reject(a):(o=a,{getError:function(){return o}})):Ou(e,n,t)}p(Ze,"addEventListener",["pagehide",_c]),"Safari"==Cs&&p(Ze,"addEventListener",["beforeunload",function(e){j(function(){e.defaultPrevented||e.returnValue||_c()},0)}]),An("Datazoom SDK "+en.sv+" ("+en.cn+") DDv3"),W(function(){pu.length?pu.forEach(Ec):sn()},en.ti),nn.assign(gn,{init:vc,setLogLevel:fe,createContext:function(e,n){return gc(e,null,n)},createBaseContext:function(e){return(e=$n(e)?Cn(e):{})[su]=du[lu],gc(null,null,e)},createContextAndTarget:function(e){for(var n=[],t=1;t<arguments.length;t++)n.push(arguments[t]);return gc(null,n,e)},createCollectorProxy:function(e,n,t){return e&&e!==du[1]?(In("Unsupported context type: "+e),null):bu(n,t)},adapterIDs:function(){return nn.keys(mc)},contexts:function(){return nn.keys(fn).map(function(e){return fn[e].publicContext})},playerContexts:function(){return nn.keys(fn).filter(function(e){return 1==fn[e].type}).map(function(e){return fn[e].publicContext})},setMetadata:function(e){return!(null!=e&&!$n(e)||(au(_s=ln(cn(e)),eu),m(f,ge,_s),0))},getMetadata:function(){return ln(cn(_s))},generateEvent:function(e,n,t){t=!t&&nn.keys(fn)[0];t?fn[t].publicContext.generateEvent(e,n):ru({ap:ot,nm:X+e,on:ko},sn(),null,n)},on:function(e,n){Bs[e]=n},appSessionID:function(){return vs},generateUUID(){return un()},sdkEvent:{APP_SESSION_START:js,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:$o,PROMO:"promo"},overridableMetadata:xo,name:en.cn,version:en.sv,dictionaryVersion:3}),yc||j(vc,en.kd)})("object"==typeof globalThis?globalThis:window,{},(s={},function(){function e(n,i){var u=u||{},r=(u.scope={},u.createTemplateTagFirstArg=function(e){return e.raw=e},u.createTemplateTagFirstArgWithRaw=function(e,n){return e.raw=n,e},u.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}},u.arrayIterator=function(e){return{next:u.arrayIteratorImpl(e)}},u.makeIterator=function(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.call(e);if("number"==typeof e.length)return u.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t},u.arrayFromIterable=function(e){return e instanceof Array?e:u.arrayFromIterator(u.makeIterator(e))},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(e){function n(){}return n.prototype=e,new n},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,n,t){return e!=Array.prototype&&e!=Object.prototype&&(e[n]=t.value),e},u.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof re&&re];for(var n=0;n<e.length;++n){var t=e[n];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(e,n,t,i){n&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(e,n,t,i):u.polyfillUnisolated(e,n,t,i))},u.polyfillUnisolated=function(e,n,t,i){for(t=u.global,e=e.split("."),i=0;i<e.length-1;i++){var r=e[i];if(!(r in t))return;t=t[r]}(n=n(i=t[e=e[e.length-1]]))!=i&&null!=n&&u.defineProperty(t,e,{configurable:!0,writable:!0,value:n})},u.polyfillIsolated=function(e,n,t,i){var r=e.split(".");e=1===r.length,i=r[0],i=!e&&i in u.polyfills?u.polyfills:u.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!=(n=n(t=u.IS_SYMBOL_NATIVE&&"es6"===t?i[r]:null))&&(e?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:n}):n!==t&&(void 0===u.propertyToPolyfillSymbol[r]&&(t=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+t+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:n})))},u.getConstructImplementation=function(){var i;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(e,[],function(){}),new e instanceof e?Reflect.construct:(i=Reflect.construct,function(e,n,t){return e=i(e,n),t&&Reflect.setPrototypeOf(e,t.prototype),e})):function(e,n,t){return t=u.objectCreate((t=void 0===t?e:t).prototype||Object.prototype),Function.prototype.apply.call(e,t,n)||t};function e(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var e={};try{return e.__proto__={a:!0},e.a}catch(e){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(e,n){if(e.__proto__=n,e.__proto__!==n)throw new TypeError(e+" is not extensible");return e}:null,u.inherits=function(e,n){if(e.prototype=u.objectCreate(n.prototype),e.prototype.constructor=e,u.setPrototypeOf){var t=u.setPrototypeOf;t(e,n)}else for(t in n){var i;"prototype"!=t&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(n,t))&&Object.defineProperty(e,t,i):e[t]=n[t])}e.superClass_=n.prototype},u.getRestArguments=function(){for(var e=Number(this),n=[],t=e;t<arguments.length;t++)n[t-e]=arguments[t];return n},u.polyfill("Reflect",function(e){return e||{}},"es6","es3"),u.polyfill("Reflect.construct",function(e){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(e){var t;return e||(u.setPrototypeOf?(t=u.setPrototypeOf,function(e,n){try{return t(e,n),!0}catch(e){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(e){var n,t,i,r;return e||((n=function(e,n){this.$jscomp$symbol$id_=e,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:n})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new n(t+(e||"")+"_"+i++,e)})},"es6","es3"),u.polyfill("Symbol.iterator",function(e){if(!e){e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<n.length;t++){var i=u.global[n[t]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&u.defineProperty(i.prototype,e,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return e},"es6","es3"),u.iteratorPrototype=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e},u.iteratorFromArray=function(n,t){n instanceof String&&(n+="");var i=0,r=!1,e={next:function(){var e;return!r&&i<n.length?(e=i++,{value:t(e,n[e]),done:!1}):{done:r=!0,value:void 0}}};return e[Symbol.iterator]=function(){return e},e},u.polyfill("Array.prototype.keys",function(e){return e||function(){return u.iteratorFromArray(this,function(e){return e})}},"es6","es3"),u.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.polyfill("Object.values",function(e){return e||function(e){var n,t=[];for(n in e)u.owns(e,n)&&t.push(e[n]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(e,n,t){return e==i&&"q"==n&&t==r}}));return!0===r.q}catch(e){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(i){function t(){}function r(e){var n=typeof e;return"object"==n&&null!==e||"function"==n}function a(e){var n;u.owns(e,o)||(n=new t,u.defineProperty(e,o,{value:n}))}function e(e){var n;u.ISOLATE_POLYFILLS||(n=Object[e])&&(Object[e]=function(e){return e instanceof t?e:(Object.isExtensible(e)&&a(e),n(e))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if((()=>{if(i&&Object.seal)try{var e=Object.seal({}),n=Object.seal({}),t=new i([[e,2],[n,3]]);return 2==t.get(e)&&3==t.get(n)?(t.delete(e),t.set(n,4),!t.has(e)&&4==t.get(n)):void 0}catch(e){}})())return i;function n(e){if(this.id_=(s+=Math.random()+1).toString(),e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var o="$jscomp_hidden_"+Math.random(),s=(e("freeze"),e("preventExtensions"),e("seal"),0);return n.prototype.set=function(e,n){if(!r(e))throw Error("Invalid WeakMap key");if(a(e),u.owns(e,o))return e[o][this.id_]=n,this;throw Error("WeakMap key fail: "+e)},n.prototype.get=function(e){return r(e)&&u.owns(e,o)?e[o][this.id_]:void 0},n.prototype.has=function(e){return r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_)},n.prototype.delete=function(e){return!!(r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_))&&delete e[o][this.id_]},n},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(r){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if((()=>{if(!u.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var e,n,t=Object.seal({x:4}),i=new r(u.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:(n=(e=i.entries()).next()).done||n.value[0]!=t||"s"!=n.value[1]?void 0:!((n=e.next()).done||4!=n.value[0].x||"t"!=n.value[1]||!e.next().done)}catch(e){}})())return r;function e(e){if(this.data_={},this.head_=t(),this.size=0,e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var a=new WeakMap,i=(e.prototype.set=function(e,n){var t=i(this,e=0===e?0:e);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=n:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:e,value:n},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},e.prototype.delete=function(e){return!(!(e=i(this,e)).entry||!e.list||(e.list.splice(e.index,1),e.list.length||delete this.data_[e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,0))},e.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},e.prototype.has=function(e){return!!i(this,e).entry},e.prototype.get=function(e){return(e=i(this,e).entry)&&e.value},e.prototype.entries=function(){return n(this,function(e){return[e.key,e.value]})},e.prototype.keys=function(){return n(this,function(e){return e.key})},e.prototype.values=function(){return n(this,function(e){return e.value})},e.prototype.forEach=function(e,n){for(var t,i=this.entries();!(t=i.next()).done;)e.call(n,(t=t.value)[1],t[0],this)},e.prototype[Symbol.iterator]=e.prototype.entries,function(e,n){var t=n&&typeof n,i=("object"==t||"function"==t?a.has(n)?t=a.get(n):(t=""+ ++o,a.set(n,t)):t="p_"+n,e.data_[t]);if(i&&u.owns(e.data_,t))for(e=0;e<i.length;e++){var r=i[e];if(n!=n&&r.key!=r.key||n===r.key)return{id:t,list:i,index:e,entry:r}}return{id:t,list:i,index:-1,entry:void 0}}),n=function(e,n){var t=e.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=e.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:n(t)};t=null}return{done:!0,value:void 0}})},t=function(){var e={};return e.previous=e.next=e.head=e},o=0;return e},"es6","es3"),{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"}}),t="omid_message_guid",a="omid_message_method",o="omid_message_version",s="omid_message_args",c=function(e,n,t,i){this.guid=e,this.method=n,this.version=t,this.args=i},l=(c.isValidSerializedMessage=function(e){return!!e&&void 0!==e[t]&&void 0!==e[a]&&void 0!==e[o]&&"string"==typeof e[t]&&"string"==typeof e[a]&&"string"==typeof e[o]&&(void 0===e[s]||void 0!==e[s])},c.deserialize=function(e){return new c(e[t],e[a],e[o],e[s])},c.prototype.serialize=function(){var e={};return e[t]=this.guid,e[a]=this.method,e[o]=this.version,void 0!==this.args&&(e[s]=this.args),e},function(e){this.to=e,this.communicationType_=r.CommunicationType.NONE});function d(e,n){if(!n)throw Error("Value for "+e+" is undefined, null or blank.");if("string"!=typeof n&&!(n instanceof String))throw Error("Value for "+e+" is not a string.");if(""===n.trim())throw Error("Value for "+e+" is empty string.")}function p(e,n){if(null==n)throw Error("Value for "+e+" is undefined or null")}function f(e,n){if(null==n)throw Error(e+" must not be null or undefined.");if("number"!=typeof n||isNaN(n))throw Error("Value for "+e+" is not a number")}function m(e,n,t,i){if(f(e,n),n<t||i<n)throw Error("Value for "+e+" is outside the range ["+t+","+i+"]")}function U(e,n){return e&&(e[n]||(e[n]={}))}function e(e,n,t){(t=void 0===t?void 0===i?null:i:t)&&((e=e.split(".")).slice(0,e.length-1).reduce(U,t)[e[e.length-1]]=n)}function _(e,n,t,i){i=void 0===i?r.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=n,this.verificationParameters=t,this.accessMode=i}function h(e,n,t,i){t=void 0===t?null:t,i=void 0===i?null:i,p("Context.partner",e),this.partner=e,this.verificationScriptResources=n,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null}l.prototype.sendMessage=function(e,n){},l.prototype.handleMessage=function(e,n){this.onMessage&&this.onMessage(e,n)},l.prototype.serialize=function(e){return JSON.stringify(e)},l.prototype.deserialize=function(e){return JSON.parse(e)},l.prototype.isDirectCommunication=function(){return this.communicationType_===r.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},e("OmidSessionClient.Partner",function(e,n){d("Partner.name",e),d("Partner.version",n),this.name=e,this.version=n}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},e("OmidSessionClient.VerificationScriptResource",_),h.prototype.setVideoElement=function(e){p("Context.videoElement",e),this.videoElement=e},h.prototype.setSlotElement=function(e){p("Context.slotElement",e),this.slotElement=e},h.prototype.setServiceWindow=function(e){p("Context.serviceWindow",e),this.serviceWindow=e},e("OmidSessionClient.Context",h);var v={},E=(v.omidGlobal=(()=>{if(void 0!==n&&n)return n;if(void 0!==re&&re)return re;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var e=Function("return this")();if(e)return e;throw Error("Could not determine global object context.")})(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),g={sessionError:"reportError"},x=Object.keys(r.MediaEventType).map(function(e){return r.MediaEventType[e]}),V=["impressionOccurred"],y=function(e){e=void 0===e?v.omidGlobal:e,this.interfaceRoot_=e[E.ROOT]};function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return e=("y"===e?3&n|8:n).toString(16)})}function I(){var e=u.getRestArguments.apply(0,arguments);F(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(e))))},function(){console.error.apply(console,u.arrayFromIterable(e))})}function F(e,n){"undefined"!=typeof jasmine&&jasmine?e():"undefined"!=typeof console&&console&&console.error&&n()}y.prototype.isSupported=function(){return null!=this.interfaceRoot_},y.prototype.sendMessage=function(e,n,t){if("registerSessionObserver"==e&&(t=[n]),n=this.interfaceRoot_,0<=V.indexOf(e=g[e]?g[e]:e)&&(n=n[E.AD_EVENTS]),!(n=(n=0<=x.indexOf(e)?n[E.MEDIA_EVENTS]:n)[e]))throw Error("Unrecognized method name: "+e+".");n.apply(null,u.arrayFromIterable(t))};var A="1.5.0-iab4484",W=3;function T(e){return/\d+\.\d+\.\d+(-.*)?/.test(e)}function O(e,n){e=e.split("-")[0].split("."),n=n.split("-")[0].split(".");for(var t=0;t<W;t++){var i=parseInt(e[t],10),r=parseInt(n[t],10);if(r<i)break;if(i<r)return!1}return!0}var b="1.0.3";function j(e,n){return T(e)&&O(e,b)?n:JSON.stringify(n)}function B(e,n){return T(e)&&O(e,b)?n||[]:n&&"string"==typeof n?JSON.parse(n):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function G(e){return $(e,H.SESSION_SERVICE)}function $(e,n){return n+e}function C(e){return null!=e&&void 0!==e.top&&null!=e.top}function D(e){var n;if(e!==v.omidGlobal)try{if(void 0===e.location.hostname)return!0;""!==(n=e).x&&n.x}catch(e){return!0}return!1}function q(e){return C(e=void 0===e&&"undefined"!=typeof window&&window?window:e)?e:v.omidGlobal}function Y(e){return C(e)?e.top:v.omidGlobal}var M=function(e){l.call(this,e),this.communicationType_=r.CommunicationType.DIRECT,this.handleExportedMessage=M.prototype.handleExportedMessage.bind(this)},R=(u.inherits(M,l),M.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.handleExportedMessage(e.serialize(),this)},M.prototype.handleExportedMessage=function(e,n){c.isValidSerializedMessage(e)&&this.handleMessage(c.deserialize(e),n)},M.prototype.isCrossOrigin=function(){return!1},function(e,n){n=void 0===n?v.omidGlobal:n,l.call(this,n);var t=this;this.communicationType_=r.CommunicationType.POST_MESSAGE,e.addEventListener("message",function(e){var n;"object"==typeof e.data&&(n=e.data,c.isValidSerializedMessage(n))&&(n=c.deserialize(n),e.source)&&t.handleMessage(n,e.source)})}),N=(u.inherits(R,l),R.isCompatibleContext=function(e){return!!(e&&e.addEventListener&&e.postMessage)},R.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.postMessage(e.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||D(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(e){var n={};return n[r.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,n[r.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,n[e]}});function z(e,n){try{return e.frames&&!!e.frames[n]}catch(e){return!1}}function K(e,n){e.document.write('<iframe style="display:none" id="'+n+'" name="'+n+'" sandbox></iframe>')}N.isOmidPresent=function(n){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return z(n,e)})},N.getOmidEnvironment=function(e){for(var n=u.makeIterator(Object.values(r.Environment)),t=n.next();!t.done;t=n.next()){t=t.value;if(z(e,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(n,e){n.frames&&n.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return!!n.frames[e]})&&(null==n.document.body&&N.isMutationObserverAvailable_(n)?N.registerMutationObserver_(n,e):(e=N.getEnvironmentIframeName(e),n.document.body?(N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e)):(K(n,N.OMID_PRESENT_FRAME_NAME),K(n,e))))},N.appendPresenceIframe_=function(e,n){var t=e.document.createElement("iframe");t.id=n,t.name=n,t.style.display="none",t.sandbox="",e.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(e){return"MutationObserver"in e},N.registerMutationObserver_=function(n,t){var i=new MutationObserver(function(e){e.forEach(function(e){"BODY"===e.addedNodes[0].nodeName&&(e=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e),i.disconnect())})});i.observe(n.document.documentElement,{childList:!0})};var X=["omid","v1_SessionServiceCommunication"];function J(e,n){return n.reduce(function(e,n){return e&&e[n]},e)}function Q(e,n,t,i){for(var r=(n=u.makeIterator(n)).next();!r.done;r=n.next())if(r=((e,n,t,i)=>{if(!D(n))try{var r=J(n,t);if(r)return new M(r)}catch(e){}return i(n)?new R(e,n):null})(e,r.value,t,i))return r;return null}function Z(e,n,t){t=void 0===t?N.isOmidPresent:t;var i=[e,Y(e)];return n&&i.unshift(n),Q(e,i,X,t)}function P(e,n,t){p("AdSession.context",e),this.adSessionId_=S(),this.context_=e,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=n||Z(q(),i),this.sessionInterface_=t||new y,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_(e.verificationScriptResources),this.sendSlotElement_(e.slotElement),this.sendVideoElement_(e.videoElement),this.sendContentUrl_(e.contentUrl),this.watchSessionEvents_()}function ee(e,n,t,i){this.isSkippable=e,this.skipOffset=n,this.isAutoPlay=t,this.position=i}function k(e){p("AdEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerAdEvents(),this.adSession=e}catch(e){throw Error("AdSession already has an ad events instance registered")}}function L(e){p("MediaEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerMediaEvents(),this.adSession=e}catch(e){throw Error("AdSession already has a media events instance registered")}}function ne(t){var e=q();new R(e).onMessage=function(e,n){e.method===r.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(n)}}P.prototype.getAdSessionId=function(){return this.adSessionId_},P.prototype.setCreativeType=function(e){if(e===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+r.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_!==r.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",e,this.adSessionId_),this.creativeType_=e},P.prototype.setImpressionType=function(e){if(e===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+r.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_!==r.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",e,this.adSessionId_),this.impressionType_=e},P.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},P.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},P.prototype.registerSessionObserver=function(e){this.sendMessage("registerSessionObserver",e,this.adSessionId_)},P.prototype.start=function(){this.sendOneWayMessage("startSession",{customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation},this.adSessionId_)},P.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},P.prototype.error=function(e,n){this.sendOneWayMessage("sessionError",e,n,this.adSessionId_)},P.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},P.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},P.prototype.sendOneWayMessage=function(e){var n=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[e,null].concat(u.arrayFromIterable(n)))},P.prototype.sendMessage=function(e,n){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(e,n,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(e,n,t)},P.prototype.sendInternalMessage_=function(e,n,t){var i=S();n&&(this.callbackMap_[i]=n),e=new c(i,G(e),A,j(A,t)),this.communication_.sendMessage(e)},P.prototype.handleInternalMessage_=function(e,n){n=e.method;var t,i=e.guid;e=e.args,"response"===n&&this.callbackMap_[i]&&(t=B(A,e),this.callbackMap_[i].apply(this,t)),"error"===n&&window.console&&I(e)},P.prototype.sendInterfaceMessage_=function(e,n,t){try{this.sessionInterface_.sendMessage(e,n,t)}catch(e){I("Failed to communicate with SessionInterface with error:"),I(e)}},P.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},P.prototype.impressionOccurred=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},P.prototype.creativeLoaded=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},P.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",A,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},P.prototype.injectVerificationScripts_=function(e){e&&(e=e.map(function(e){return e.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",e,this.adSessionId_))},P.prototype.sendSlotElement_=function(e){this.sendElement_(e,"setSlotElement")},P.prototype.sendVideoElement_=function(e){this.sendElement_(e,"setVideoElement")},P.prototype.sendElement_=function(e,n){e&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(n,e,this.adSessionId_):this.error(r.ErrorType.GENERIC,"Session Client "+n+" called when communication is cross-origin"))},P.prototype.sendContentUrl_=function(e){e&&this.sendOneWayMessage("setContentUrl",e,this.adSessionId_)},P.prototype.setElementBounds=function(e){p("AdSession.elementBounds",e),this.sendOneWayMessage("setElementBounds",e,this.adSessionId_)},P.prototype.watchSessionEvents_=function(){var n=this;this.registerSessionObserver(function(e){e.type===r.AdEventType.SESSION_START&&(n.isSessionRunning_=!0,n.creativeType_=e.data.creativeType,n.impressionType_=e.data.impressionType),e.type===r.AdEventType.SESSION_FINISH&&(n.isSessionRunning_=!1)})},e("OmidSessionClient.AdSession",P),ee.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},k.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},k.prototype.loaded=function(e){e=void 0===e?null:e,this.adSession.creativeLoaded(),e=e?e.toJSON():null,this.adSession.sendOneWayMessage("loaded",e,this.adSessionId_)},e("OmidSessionClient.AdEvents",k),L.prototype.start=function(e,n){f("MediaEvents.start.duration",e),m("MediaEvents.start.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("start",e,n,this.adSessionId_)},L.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},L.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},L.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},L.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},L.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},L.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},L.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},L.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},L.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},L.prototype.volumeChange=function(e){m("MediaEvents.volumeChange.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("volumeChange",e,this.adSessionId_)},L.prototype.playerStateChange=function(e){p("MediaEvents.playerStateChange.playerState",e),this.adSession.sendOneWayMessage("playerStateChange",e,this.adSessionId_)},L.prototype.adUserInteraction=function(e){p("MediaEvents.adUserInteraction.interactionType",e),this.adSession.sendOneWayMessage("adUserInteraction",e,this.adSessionId_)},e("OmidSessionClient.MediaEvents",L),e("OmidSessionClient.OmidVersion",function(e,n){d("OmidVersion.semanticVersion",e),d("OmidVersion.apiLevel",n)}),e("OmidSessionClient.listenForServiceWindow",ne),e("OmidSessionClient.VastProperties",ee);var w={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9}};function te(e){for(var n=u.makeIterator(ie.keys()),t=n.next();!t.done;t=n.next())for(var t=t.value,i=u.makeIterator(ie.get(t)),r=i.next();!r.done;r=i.next())if(r.value.test(e))return t;return w.VerificationVendorId.OTHER}var ie=new Map([[w.VerificationVendorId.MOAT,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.moatads\.com\/.*$/]],[w.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\/.*$/]],[w.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[w.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[w.VerificationVendorId.NIELSEN,[]],[w.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[w.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[w.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]]]);e("OmidSessionClient.verificationVendorIdForScriptUrl",te),e("OmidSessionClient.VerificationVendorId",w.VerificationVendorId),w.verificationVendorIdForScriptUrl=te}var re="object"==typeof globalThis?globalThis:window,n={},t=void 0===re?this:re;if("object"==typeof(r=void 0===n?void 0:n)&&"string"!=typeof r.nodeName)e(t,r);else{var i,r={},a=["1.5.0-iab4484"],o="default";for(i in a.push(o),e(t,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(t,i)&&Object.defineProperty(t,i,{value:{}}),a.forEach(function(e){var n;null==Object.getOwnPropertyDescriptor(t[i],e)&&(n=function e(n){for(var t in n)n.hasOwnProperty(t)&&(n[t]=e(n[t]));return Object.freeze(n)}(r[i]),Object.defineProperty(t[i],e,{get:function(){return n},enumerable:!0}))}))}s.OmidSessionClient=n.OmidSessionClient}(),t={},e=self,n=function(){{var D,M,R,N,P={d:function(e,n){for(var t in n)P.o(n,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},k={};P.d(k,{default:function(){return C}});let o=1,t=2,i=4,r="[MT] ",s=((D={})[D.NONE=0]="NONE",D[D.ERROR=1]="ERROR",D[D.WARNING=2]="WARNING",D[D.INFO=3]="INFO",D[D.DEBUG=4]="DEBUG",D),a=t;function L(e,n,t,i){a>=e&&(t=r+t,void 0===i?n.call(console,t):n.call(console,t,i))}let u=console.error,p=console.warn,f=console.debug;function w(e,n){L(o,u,e,n)}function ke(e,n){L(t,p,e,n)}function Le(e,n){L(i,f,e,n)}function U(e){return("object"==typeof globalThis?globalThis:window)?.[e]}function x(e){if(e){if(Array.isArray(e))return e.slice();if("object"==typeof e)return Object.assign({},e)}return null}function we(e){if(e)try{return JSON.parse(JSON.stringify(e))}catch(e){w("Exception during deep-copy: "+e,e)}return null}function V(e,n){if(null!=e)try{return new URL(e,n).toString()}catch(e){w("URL Exception: "+e,e)}return null}function Ue(r,a,o){let e=a?.length||0;if(0<e){let t=0,i=e-1;for(;t<=i;){let e=Math.ceil((t+i)/2),n=o(r,a[e]);if(0===n)return e;0<n?t=e+1:i=e-1}}return-1}let c=[];for(let e=0;e<256;e++)c.push((e+256).toString(16).substr(1).toLowerCase());let l=!!U("crypto")?.getRandomValues,_=(l||ke("crypto.getRandomValues() unavailable"),/P.*T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?/),m=[2,9],W=10,pe=5,j=2,B="ad_start",fe="ad_end",me="ad_progress",_e="ad_click",he="ad_can_skip",ve="ad_incoming",Ee="nonlinear_ad_start",ge="nonlinear_ad_end",ye="ad_tracking_info_response",Se=0,Ie=1,Ae=2,Te=3,Oe=4,be=5,Ce=6,De=7,H=0,G=1,$=2,q=3,Y=4,z=5,K=6,X=7,J=8,Q=9,Z=10,ee=11,ne=12,te=13,ie=14,h=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],d=null;function xe(e){try{return JSON.parse(e)}catch(e){return ke("JSON Parse Exception: "+e,e),null}}function F(i,r,n,a,o){let s=new XMLHttpRequest,u=a?.retryHeuristics,c=0,l=!1;function d(){if(!l)try{{var t=s;var e=a;let n=e?.headers;t.open(i,r,!0),t.timeout=e?.timeout??0,n&&Object.keys(n).forEach(e=>{t.setRequestHeader(e,n[e])})}c++,s.send(n),Le(`XHR (${i} ${r}, #${c}) request sent`,n)}catch(e){ke("XHR Exception: "+e,e)}}return s.onreadystatechange=()=>{if(!l&&4===s.readyState){var e=s.status,n=s.responseText;if(Le(`XHR (${r}) response received, status `+e,n),e<200||299<e){var t=u?u(c,e,n):-1;if(0<=t)return setTimeout(d,t),void ke(`XHR (${r}) failed (status ${e}), retry in ${t} ms`,n)}o&&o(n,e,r)}},d(),{abort(){l=!0,s.abort(),Le(`XHR (${r}) aborted`)}}}function Ve(e,n,t){return F("GET",e,null,n,t)}let v="impression",Me="clickThrough",re="firstQuartile",ae="midpoint",oe="thirdQuartile",se="complete",E="creativeView",ue=[],Re=(ue[H]=[v],ue[G]=["clickTracking"],ue[$]=["loaded"],ue[q]=["start",E],ue[Y]=[re],ue[z]=[ae],ue[K]=[oe],ue[X]=[se],ue[J]=["skip"],ue[Q]=["pause"],ue[Z]=["resume"],ue[ee]=["mute"],ue[ne]=["unmute"],ue[te]=["fullscreen","playerExpand"],ue[ie]=["exitFullscreen","playerCollapse"],{}),ce=([v,"loaded","start",E,re,ae,oe,se].forEach(e=>{Re[e]={noninteractive:!0}}),"adData: ");function Fe(e){return e&&"object"==typeof e&&e}function We(a,e){if(!Fe(a))return null;let[,o]=e,s={},n=o.length;for(let r=0;r<n;r++){let[e,n,t]=o[r],i=t[0](a[e],t);if(null!=i)s[e]=i;else if(!n)return Le(ce+("Missing object field: "+e),a),null}return s}function je(e){return e&&Array.isArray(e)?e:null}function Be(t,e){if(!je(t))return null;let[,i,r]=e,a=[],o=t.length;for(let n=0;n<o;n++){let e=r[0](t[n],r);null!=e||i?a.push(e):Le(ce+("Invalid array entry at: "+n),t)}return a}function He(e){return"number"==typeof e?e:null}function Ge(e){return"string"==typeof e?e:null}let e=[He],n=[Ge],g=[function(e){return"boolean"==typeof e?e:null}],y=[We,[["content",!1,n],["type",!1,n]]],S=[We,[["beaconUrls",!1,[Be,!1,n]],["durationInSeconds",!0,e],["eventId",!0,n],["eventProgramDateTime",!0,n],["eventType",!1,n],["startTimeInSeconds",!0,e]]],Ne=[We,[["adId",!0,n],["adParameters",!0,n],["adSystem",!0,n],["adTitle",!0,n],["adVerifications",!0,[Be,!1,[We,[["executableResource",!0,[Be,!1,[We,[["apiFramework",!0,n],["language",!0,n],["type",!0,n],["uri",!0,n]]]]],["javaScriptResource",!0,[Be,!1,[We,[["apiFramework",!0,n],["browserOptional",!0,n],["uri",!0,n]]]]],["trackingEvents",!0,[Be,!1,[We,[["event",!1,n],["uri",!1,n]]]]],["vendor",!0,n],["verificationParameters",!0,n]]]]],["companionAds",!0,[Be,!1,[We,[["adParameters",!0,n],["altText",!0,n],["attributes",!0,[We,[["adSlotId",!0,n],["apiFramework",!0,n],["assetHeight",!0,n],["assetWidth",!0,n],["expandedHeight",!0,n],["expandedWidth",!0,n],["height",!0,n],["id",!0,n],["pxratio",!0,n],["renderingMode",!0,n],["width",!0,n]]]],["companionClickThrough",!0,n],["companionClickTracking",!0,n],["htmlResource",!0,n],["iFrameResource",!0,n],["sequence",!0,n],["staticResource",!0,n],["trackingEvents",!0,[Be,!1,[We,[["beaconUrls",!1,[Be,!1,n]],["eventType",!1,n]]]]]]]]],["creativeId",!0,n],["creativeSequence",!0,n],["extensions",!0,[Be,!1,y]],["trackingEvents",!0,[Be,!1,S]],["vastAdId",!0,n]]],Pe=[We,[["nonLinearAdList",!1,[Be,!1,[We,[["durationInSeconds",!1,e],["adId",!0,n],["adParameters",!0,n],["adSystem",!0,n],["adTitle",!0,n],["creativeId",!0,n],["creativeAdId",!0,n],["creativeSequence",!0,n],["width",!0,n],["height",!0,n],["expandedWidth",!0,n],["expandedHeight",!0,n],["scalable",!0,g],["maintainAspectRatio",!0,g],["minSuggestedDuration",!0,n],["apiFramework",!0,n],["staticResource",!0,n],["staticResourceCreativeType",!0,n],["iFrameResource",!0,n],["htmlResource",!0,n],["clickThrough",!0,n],["clickTracking",!0,n],["clickTrackingId",!0,n]]]]],["extensions",!0,[Be,!1,y]],["trackingEvents",!0,[Be,!1,S]]]],le=new DOMParser,I=/\n|<!\[CDATA\[|\]\]>/g;function $e(e){e=e?.textContent;return null==e?null:e.replace(I,"").trim()}function qe(e,n,t){t&&(e[n]=t)}function Ye(e,n){for(var t of e.children)n[t.tagName]?.(t)}function ze(e){let t=[];return Ye(e,{IconClickFallbackImage:e=>{let n={};t.push(n),qe(n,"width",e.getAttribute("width")),qe(n,"height",e.getAttribute("height")),Ye(e,{AltText:e=>{qe(n,"altText",$e(e))},StaticResource:e=>{qe(n,"staticResource",$e(e))}})}}),t}function Ke(n,f,m){if(Fe(n)){let o=Ge(n.dashAvailabilityStartTime),e=je(n.avails),t=(e?.forEach(t=>{if(Fe(t)){var i=Ge(t.availId);if(i){let c=He(t.startTimeInSeconds),l=He(t.durationInSeconds),d=(r=(r=Ge(t.adMarkerDuration))&&_.exec(r))?3600*((a=r[1])?+a:0)+60*((a=r[2])?+a:0)+((a=r[3])?+a:0):null;let p=Ge(t.availProgramDateTime);p=(p?new Date(p).getTime()/1e3:o?new Date(o).getTime()/1e3+c:0)||0,s(!1,t,c,l,p,d);var r=f[i];let n="",e=je(t.ads);e?.forEach(e=>{Fe(e)&&(n+=e.adId+`,${e.startTime},${e.duration};`)});var a=!r||n!==r.digest;if(Le(ce+`Avail ${a?r?"!":"":"~"}${i} `+`(${t.duration} @ ${t.startTime} / ${t.availProgramDateTime})`,t),a){let o={},s=r?.ads,u=e?.length;if(e?.forEach((n,t)=>{if(Fe(n)){var i=Ge(n.adId);if(i){var r=He(n.startTimeInSeconds);if(null==r)ke(ce+"Invalid or missing ad start time",n);else{o[i]={start:r,duration:n.duration};let e=null;s&&(e=s[i],s[i]=null);var a=!e||r!==e.start||n.duration!==e.duration;Le(ce+`Ad ${a?e?"!":"":"~"}${i} `+`(#${t+1} of ${u}) `+`(${n.duration} @ ${n.startTime} / ${n.adProgramDateTime})`,n),a&&m(r,t,u,c,l,p,d,n,!1,!1,e?.start)}}else ke(ce+"Missing ad ID",n)}else ke(ce+"Invalid ad object",e)}),s)for(let n in s){let e=s[n];e&&m(0,0,0,c,l,p,d,null,!1,!1,e.start)}f[i]={digest:n,ads:o}}}else ke(ce+"Missing avail ID",t)}else ke(ce+"Invalid avail object",e)}),je(n.nonLinearAvails));t?.forEach(e=>{var n;Fe(e)?(Le(ce+`nonLinearAvail (${e.startTime} / ${e.availProgramDateTime})`,e),s(!0,e,n=He(e.startTimeInSeconds),null,e=((e=Ge(e.availProgramDateTime))?new Date(e).getTime()/1e3:o?new Date(o).getTime()/1e3+n:0)||0,null)):ke(ce+"Invalid nonLinearAvail object",t)});n=Ge(n.nextToken);return n&&Le(ce+`nextToken "${n}"`),n;function s(e,n,t,i,r,a){n=je(n.nonLinearAdsList)?.[0];n&&(Fe(n)?null==t?ke(ce+"Invalid or missing nonlinear ad start time",n):(Le(ce+"nonLinearAds",n),m(t,0,1,t,i,r,a,n,!0,e)):ke(ce+"Invalid nonLinearAds object",n))}}else ke(ce+"Invalid tracking-info response")}(D={})[D.AD_START=B]="AD_START",D[D.AD_END=fe]="AD_END",D[D.AD_PROGRESS=me]="AD_PROGRESS",D[D.AD_CLICK=_e]="AD_CLICK",D[D.AD_CAN_SKIP=he]="AD_CAN_SKIP",D[D.AD_INCOMING=ve]="AD_INCOMING",D[D.NONLINEAR_AD_START=Ee]="NONLINEAR_AD_START",D[D.NONLINEAR_AD_END=ge]="NONLINEAR_AD_END",D[D.AD_TRACKING_INFO_RESPONSE=ye]="AD_TRACKING_INFO_RESPONSE",(M={})[M.START=Se]="START",M[M.END=Ie]="END",M[M.PAUSE=Ae]="PAUSE",M[M.RESUME=Te]="RESUME",M[M.MUTE=Oe]="MUTE",M[M.UNMUTE=be]="UNMUTE",M[M.FULLSCREEN=Ce]="FULLSCREEN",M[M.EXIT_FULLSCREEN=De]="EXIT_FULLSCREEN";let de=[];function Xe(r,n,e){let u="adTracking: ",v=(e,n)=>e-n.start,c=(e,n)=>e-n.startDate,a=(e,n)=>e.start-n.start,o={headers:{"Cache-Control":"no-cache, no-store"}},s=e.defaultTrackingRequestInterval||W,U=e.incomingAdCountdownInterval??pe,t=e.adTrackingUpdateMode||"pagination",x="playhead"===t,V="pagination"===t,E=[],F={},g=[],l,d=null,p=null,f=null,m=null,_=null,y=null,S=null,I=null,h=null,A=null,T=null,O=null,b=null,C=null,D=0,M=[],R=(()=>{let i=new EventTarget,a=null,r=null,o=-1,s=!1;function u(e,n){i.dispatchEvent(new CustomEvent(e,{detail:n}))}function c(e,n){var t=e.availDuration,i=e.inAvailStartOffset;return{toAdEnd:e.duration-n,toAvailEnd:null!=t&&null!=i?t-i-n:null,toSkipThreshold:0<=o?Math.max(0,o-n):null}}return{addEventListener(e,n,t){i.addEventListener(e,n,t)},removeEventListener(e,n,t){i.removeEventListener(e,n,t)},onTrackingInfoResponse(e){u(ye,{failedAdTrackingInfoRequest:e})},onAdStart(e,n,t){var i,r;a=(r=n,t=t,{adData:we(i=e),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:t+i.duration-r}),o=e.skipOffset,s=!1,u(B,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)})},onAdEnd(e){u(fe,{adObject:a}),a=null},onAdProgress(e,n,t){u(me,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)}),!s&&0<=o&&n>=o&&(s=!0,u(he,{adObject:a}))},onAdClick(e){u(_e,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart(e,n,t){r={adData:we(e)},u(Ee,{nonLinearAdsObject:r,adElapsedTime:n})},onNonLinearAdsEnd(e){u(ge,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}})();function N(t,i){let e=M.length;for(let n=0;n<e;n++){let e=M[n];e[t]?.apply(e,i)}}function P(e,n){n=n||d,Le(u+("Ad tracking event "+de[e]),n),N("onAdTrackingEvent",[n,e])}function k(e,n){!e.startDate&&O&&(e.startDate=n+O);n=l;(l=!!e.startDate)!==n&&Le(u+("Set adHasStartDate to "+l))}function L(e,n){var i,t=[["tttt",""+Date.now()]];x&&t.push(["aws.playheadPositionInSeconds",""+Math.round(n&&O?n-O:e)]),V&&T&&t.push(["aws.nextToken",T]),h?.abort(),n=(e=>{let n=new URL(r),t=new URLSearchParams(n.search);return e.forEach(e=>{t.append(e[0],e[1])}),n.search="?"+t.toString(),n.toString()})(t),i=(e,n)=>{if(200===n){let _=!1,h=!1;T=Ke(e,F,(t,i,r,a,o,n,s,u,c,l,d)=>{if(null!=a&&n&&(O=n-a),c){if(Ue(t,g,v)<0){c=t,n=n,l=l;let e=(m=We(p=u,Pe))?(f=m.nonLinearAdList.reduce((e,n)=>Math.max(e,n.durationInSeconds),0))?(Object.assign(m,{start:c,startDate:n,duration:f,nonlinearAvail:l}),Le(ce+`New NonLinearAdsData (${f}s @ ${c}s / ${n}s)`,m),m):(ke(ce+"Invalid nonlinear ad duration",p),null):(ke(ce+"Missing required fields for NonLinearAdsData",p),null);e&&(k(e,t),g.push(e),h=!0,N("onNewNonLinearAds",[e]))}}else{let e=null!=d?Ue(d,E,v):-1,n=u&&((t,e,n,i,r,a,o)=>{let s=He(o.durationInSeconds);if(null==s||s<=0)return ke(ce+"Invalid or missing ad duration",o),null;let u=Ge(o.adProgramDateTime);u=u&&new Date(u).getTime()/1e3;var c=Ge(o.skipOffset);let l=c&&new Date(`1970-01-01T${c}Z`).getTime()/1e3,d=(l||0===l||(l=-1),We(o,Ne));if(!d)return ke(ce+"Missing required fields for AdData",o),null;d.extensions?.forEach(e=>{if("AdVerifications"===e.type){var n=e.content;try{var t=le.parseFromString(n,"application/xml")?.documentElement,i=t?.getElementsByTagName("JavaScriptResource"),r=t?.getElementsByTagName("VerificationParameters"),a=t?.getAttribute("vendor"),o=$e(i?.[0]),s=$e(r?.[0]);a&&o?(d.adVerifications||(d.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):ke(ce+"Invalid AdVerifications extension content",e)}catch(e){ke(ce+"Exception parsing AdVerifications extension: "+n,e)}}else if("companion_about_this_ad"===e.type){t="<root>"+e.content+"</root>";try{let e=le.parseFromString(t,"application/xml")?.documentElement;e&&Ye(e,{Icon:e=>{let n=d.icons||(d.icons=[]),t={};n.push(t),qe(t,"program",e.getAttribute("program")),qe(t,"width",e.getAttribute("width")),qe(t,"height",e.getAttribute("height")),qe(t,"xPosition",e.getAttribute("xPosition")),qe(t,"yPosition",e.getAttribute("yPosition")),Ye(e,{StaticResource:e=>{qe(t,"staticResource",$e(e))},IconClicks:e=>{let n={};t.iconClicks=n,Ye(e,{IconClickThrough:e=>{qe(n,"iconClickThrough",$e(e))},IconClickFallbackImages:e=>{e=ze(e);e.length&&(n.iconClickFallbackImages=e)}})}})}})}catch(e){ke(ce+"Exception parsing AdChoices extension: "+t,e)}}else if("IconClickFallbackImages"===e.type){i="<root>"+e.content+"</root>";try{let e=le.parseFromString(i,"application/xml")?.documentElement;e&&Ye(e,{IconClickFallbackImages:e=>{var n={},e=((d.icons||(d.icons=[])).push(n),qe(n,"program",e.getAttribute("program")),ze(e));e.length&&(n.iconClicks={iconClickFallbackImages:e})}})}catch(e){ke(ce+"Exception parsing AdChoices extension: "+i,e)}}});let p=[0,0,0,0];function f(e,n){n-=t;0<n&&n<s+.01&&(p[e]=n)}return Object.assign(d,{start:t,startDate:u||0,duration:s,skipOffset:l,availAdIndex:e,availAdCount:n,availStart:i,availDuration:r,availMarkedDuration:a,inAvailStartOffset:null!=i?t-i:null,playCount:0,quartileEventOffsets:p}),d.videoClickThrough=null,d.trackingEvents=d.trackingEvents?.filter(e=>{switch(e.eventType){case Me:var n=e.beaconUrls[0];return n&&(d.videoClickThrough=n),!1;case re:f(0,e.startTimeInSeconds);break;case ae:f(1,e.startTimeInSeconds);break;case oe:f(2,e.startTimeInSeconds);break;case se:f(3,e.startTimeInSeconds)}return!0}),Le(ce+`New AdData (${s}s @ ${t}s / ${u})`,d),d})(t,i,r,a,o,s,u);n?(k(n,t),0<=e?(n.playCount=E[e].playCount,E[e]=n):E.push(n),_=!0,N("onNewAd",[n,0<=e])):0<=e&&(E.splice(e,1),_=!0)}var p,f,m}),_&&(E.sort(a),p=f=null,m=null),h&&(g.sort(a),y=S=null,I=null),N("onTrackingInfoResponse",[!1])}else ke(u+"Request failed, status "+n,e),N("onTrackingInfoResponse",[!0]);h=null},h=Ve(n,o,(e,n,t)=>{200===n&&null!=e&&(e=xe(e)),i(e,n)})}function w(e,n,t,i){let r,a,o;var s=i?"startDate":"start",t=((r,a,o)=>{let e=a?.length||0;if(0<e){let t=0,i=e-1;for(;t<i;){let e=Math.ceil((t+i)/2),n=o(r,a[e]);if(0===n)return e;0<n?t=e:i=e-1}if(0<t||0<=o(r,a[t]))return t}return-1})(t,n,i?c:v);return o=0<=t?(r=n[t],a=r[s],t+1<n.length?n[t+1][s]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,n.length?n[0][s]:Number.MAX_VALUE),Le(u+`Update time range (${a} - ${o}), `+e+" ad index "+t,r),[r,a,o]}function i(e){e&&M.indexOf(e)<0&&M.push(e)}return 0<=s&&L(0),i(R),i(((r,o)=>{let s={},a=null;return{onAdLoad(e){a={},e.trackingEvents?.forEach(e=>{a[e.eventType]=e})},onAdEnd(e){a=null},onAdTrackingEvent(t,e){var i=ue[e];if(a&&1===t.playCount&&i){let e=i.length;for(let n=0;n<e;n++){let e=i[n];r&&Re[e]?.noninteractive||((i,r)=>{var n=r?.beaconUrls;if(n){var t=n.length;for(let e=0;e<t;e++){var a=n[e]?.trim();a&&Ve(a,s,(e,n,t)=>{o(i,r,t,n)})}}})(t,a[e])}}}}})(e.disableNoninteractiveClientSideBeaconing,(e,n,t,i)=>{N("onAdBeaconResponse",[e,n,t,i])})),{updateAdTrackingInfo:function(){L(b??0,C),A=b},startUpdatingAdTrackingInfo:function(e){s=e||W,A=null},stopUpdatingAdTrackingInfo:function(){s=-1},onPlayheadUpdate:function(e,n){if(null!=b&&e>b&&e<b+j){0<=s&&!h&&(null==A||Math.abs(e-A)>=s)&&(L(e,n),A=e);var t=(n=l?n:null)||e,i=((null==p||t<p||t>=f)&&([m,p,f]=w("linear",E,t,n)),d),r=t-p;if((d=m&&t<p+m.duration?m:null)?.adId===i?.adId){if(d&&(Le(u+"Ad progresses, time => "+r),N("onAdProgress",[d,r,e]),r>D)&&r<D+j){let e=D;D=r,(a=d.quartileEventOffsets[0])&&e<a&&D>=a&&P(Y),(a=d.quartileEventOffsets[1])&&e<a&&D>=a&&P(z),(a=d.quartileEventOffsets[2])&&e<a&&D>=a&&P(K)}}else{if(i){let e=i.quartileEventOffsets[3];e&&D+j>e&&P(X,i),Le(u+"Ad ends",i),N("onAdEnd",[i])}D=0,d&&(d.playCount++,n&&Le(u+`PDT offset => player ${n-e}, ad `+(d.startDate-d.start),d),Le(u+"Ad loads",d),N("onAdLoad",[d]),P($),Le(u+"Ad starts, time => "+r,d),N("onAdStart",[d,r,e]),P(q),P(H))}if(!d){let e=f-t;e<=U&&R.dispatchEvent(ve,{timeToNextAd:e})}(null==y||t<y||t>=S)&&([I,y,S]=w("nonlinear",g,t,n));var a=_,i=t-y;(_=I&&t<y+I.duration?I:null)!==a&&(a&&(Le(u+"Nonlinear ad ends",a),N("onNonLinearAdsEnd",[a])),_)&&(n&&Le(u+`PDT offset => player ${n-e}, nonlinear ad `+(_.startDate-_.start),_),Le(u+"Nonlinear ad starts, time => "+i,_),N("onNonLinearAdsStart",[_,i,e]))}b=e,C=n},onPlaybackRateUpdate:function(e){},onPlaybackEvent:function(e){switch(e){case Se:n?.sendPlaybackStart();break;case Ie:n?.sendPlaybackEnd()}if(d)switch(e){case Ae:P(Q);break;case Te:P(Z);break;case Oe:P(ee);break;case be:P(ne);break;case Ce:P(te);break;case De:P(ie)}},onVideoClick:function(e){d&&(n?.sendAdTouch(e),N("onAdClick",[d]))},onPlayerControlClick:function(e){d&&n?.sendAdTouch(e)},onAdClickthrough:function(){d&&(n?.sendAdClick(),P(G))},onAdSkip:function(){d&&P(J)},addAdObserver:i,removeAdObserver:function(e){e&&0<=(e=M.indexOf(e))&&M.splice(e,1)},getAllAds:function(){return E.map(e=>we(e))},getAllNonLinearAds:function(){return g.map(e=>we(e))},addEventListener(e,n,t){R.addEventListener(e,n,t)},removeEventListener(e,n,t){R.removeEventListener(e,n,t)}}}de[H]="IMPRESSION",de[G]="CLICK_THROUGH",de[$]="LOADED",de[q]="START",de[Y]="FIRST_QUARTILE",de[z]="MID_POINT",de[K]="THIRD_QUARTILE",de[X]="COMPLETE",de[J]="SKIP",de[Q]="PAUSE",de[Z]="RESUME",de[ee]="MUTE",de[ne]="UNMUTE",de[te]="FULLSCREEN",de[ie]="EXIT_FULLSCREEN",(N={})[N.IMPRESSION=H]="IMPRESSION",N[N.CLICK_THROUGH=G]="CLICK_THROUGH",N[N.LOADED=$]="LOADED",N[N.START=q]="START",N[N.FIRST_QUARTILE=Y]="FIRST_QUARTILE",N[N.MID_POINT=z]="MID_POINT",N[N.THIRD_QUARTILE=K]="THIRD_QUARTILE",N[N.COMPLETE=X]="COMPLETE",N[N.SKIP=J]="SKIP",N[N.PAUSE=Q]="PAUSE",N[N.RESUME=Z]="RESUME",N[N.MUTE=ee]="MUTE",N[N.UNMUTE=ne]="UNMUTE",N[N.FULLSCREEN=te]="FULLSCREEN",N[N.EXIT_FULLSCREEN=ie]="EXIT_FULLSCREEN";let T=["overlayAvails","availSuppression","adSignaling","reportingMode"],A=((R={})[R.INVALID_CONFIG=0]="INVALID_CONFIG",R[R.INVALID_INIT_RESPONSE=1]="INVALID_INIT_RESPONSE",R[R.INIT_DISRUPTED=2]="INIT_DISRUPTED",R[R.INIT_ERROR=3]="INIT_ERROR",R);function Je(r,e,a,o){let s,u=null,c=r.trackingUrl,l=r.sessionInitUrl,n=r.sessionInitHeaders,d=r.sessionInitTimeout,p=r.palNonceManager||e,f=p?.getNonce?.()??null,m={getPlaybackUrl:()=>u,getTrackingUrl:()=>c,getPalNonce:()=>f,updateAdTrackingInfo(){s.updateAdTrackingInfo()},startUpdatingAdTrackingInfo(e){s.startUpdatingAdTrackingInfo(e)},stopUpdatingAdTrackingInfo(){s.stopUpdatingAdTrackingInfo()},onPlayheadUpdate(e,n){s.onPlayheadUpdate(e,n)},onPlaybackRateUpdate(e){s.onPlaybackRateUpdate(e)},onPlaybackEvent(e){s.onPlaybackEvent(e)},onVideoClick(e){s.onVideoClick(e)},onPlayerControlClick(e){s.onPlayerControlClick(e)},onAdClickthrough(){s.onAdClickthrough()},onAdSkip(){s.onAdSkip()},addAdObserver(e){s.addAdObserver(e)},removeAdObserver(e){s.removeAdObserver(e)},getAllAds:()=>s.getAllAds(),getAllNonLinearAds:()=>s.getAllNonLinearAds(),destroy(){},addEventListener(e,n,t){s.addEventListener(e,n,t)},removeEventListener(e,n,t){s.removeEventListener(e,n,t)}};if(c)s=Xe(c,p,r),a(m,"Session initialized elsewhere");else if(l){let t=x(r.originParams)||{},i=r.sessionFeatures;i&&T.forEach(e=>{var n=i[e];null!=n&&(t[e]=n)});var _,h,v,E,g=x(r.playerParams)||{},g=(g.device_sdk_info||=C.clientInfo,f&&(g.givn=f),t.playerParams=g,{}),y=(n&&(g.headers=n),d&&(g.timeout=d),Le(`createSession: Request sent to URL "${l}"`,t),l),S=t,I=(e,n)=>{200===n?(u=V(e?.manifestUrl,l))&&(c=V(e?.trackingUrl,l))?(s=Xe(c,p,r),a(m,"Successful session response",e)):o(A.INVALID_INIT_RESPONSE,"Invalid session response"):0===n?o(A.INIT_DISRUPTED,"Disrupted session initialization"):o(A.INIT_ERROR,"Failed session initialization")};try{(g=x(g)||{}).headers=(v={"Content-Type":"application/json; charset=utf-8"},(E=g.headers)?Object.assign(v,E):v),_=y,h=JSON.stringify(S),F("POST",_,h,g,(e,n,t)=>{200===n&&null!=e&&(e=xe(e)),I&&I(e,n)})}catch(y){return void ke("JSON Encode Exception: "+y,y)}}else o(A.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function Qe(t,i,r,a){let o="createSession: ";function s(e,n,t){Le(o+n,t),i?i(e,null):r(e)}function u(e,n){var t={code:e,message:n};w(o+`(${e}) `+n),i?i(null,t):a(t)}if(t){let e=t.palNonceRequestParams;if(t.trackingUrl||t.palNonceManager||!e)return Je(t,null,s,u);let n=(i=>{var e="nonceReq: ";if(d){var n=U("goog")?.pal?.NonceRequest;if(n){let t=new n;t.omidPartnerName="MediaTailor",t.omidPartnerVersion="1.0.0",t.supportedApiFrameworks=m,h.forEach(e=>{var n=i[e];null!=n&&(t[e]=n)}),t.sessionId||(t.sessionId=(()=>{var n=new Uint8Array(16);if(l)crypto.getRandomValues(n);else for(let 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,c[n[0]]+c[n[1]]+c[n[2]]+c[n[3]]+"-"+c[n[4]]+c[n[5]]+"-"+c[n[6]]+c[n[7]]+"-"+c[n[8]]+c[n[9]]+"-"+c[n[10]]+c[n[11]]+c[n[12]]+c[n[13]]+c[n[14]]+c[n[15]]})());n=d.loadNonceManager?.(t);return n?Le(e+"Request sent",t):w(e+"Request failed",t),n}w(e+"Missing PAL SDK classes")}else w(e+"PAL isn't initialized");return null})(e);n?n.then(e=>{Le(o+"NonceManager received",e),Je(t,e,s,u)}).catch(e=>{ke(o+"Nonce request rejected",e),Je(t,null,s,u)}):(ke(o+"Unable to create a nonce request"),Je(t,null,s,u))}else u(A.INVALID_CONFIG,"Missing config")}let O="1.7.0",b=(console.debug("[MT] AWS Elemental MediaTailor SDK v1.7.0"),{initPal:function(n,t){let e="initPal: ";if(!n){if(!t)return w(e+"Missing consent settings"),!1;var i=U("goog")?.pal,r=i?.NonceLoader,i=i?.ConsentSettings;if(!r||!i)return w(e+"Missing PAL SDK classes"),!1;{let e=new i;e.allowStorage=t.allowStorage??!1,n=new r(e)}}return d&&ke(e+"Resetting NonceLoader"),d=n,!0},createSession:function(t,e){if(!e)return new Promise((e,n)=>{Qe(t,null,e,n)});Qe(t,e,null,null)},PlaybackEvent:M,AdTrackingEvent:N,SessionUiEvent:D,setLogLevel:function(e){0<=e&&e<=i?a=e:console.warn(r+"Invalid log level: "+e)},LogLevel:s,getSdkVersion:()=>O,clientInfo:"MTSDK v"+O}),C=b;return k.default}},"object"==typeof t?t.mediatailor=n():e.mediatailor=n(),s.mediatailor=t.mediatailor,s)),yc&&(module.exports=yc.datazoom)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datazoom/collector_theo_mt_om",
3
- "version": "2.25.0",
3
+ "version": "2.26.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {