@datazoom/collector_jw_mt_om 2.25.0 → 2.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e,n,t,s,Dc="object"==typeof module?{}:null;((Ze,en,g)=>{var y,f,nn=Ze.Object,S=Ze.Array,A=Ze.Date,hn=Ze.Number,T=Ze.String,O=Ze.RegExp,tn=Ze.Math,b=Ze.XMLHttpRequest,C=Ze.Uint8Array,M=Ze.ArrayBuffer,D=Ze.JSON,vn=Ze.Promise,R=Ze.URL,N=Ze.URLSearchParams,P=Ze.EventTarget,k=Ze.CustomEvent,En=Ze.document||{},e=En.currentScript||{},L=Ze.location||{},w=Ze.navigator||{},U=w.userAgent||"",gn=w.connection||w.mozConnection||w.webkitConnection,x=Ze.crypto,V=Ze.console||{},n=Ze.performance,F=Ze.setInterval,W=Ze.setTimeout,j=Ze.decodeURIComponent,B=Ze.encodeURIComponent;try{y=Ze.localStorage,f=Ze.sessionStorage}catch(e){}function H(t){return t?function(e,n){e="[DZ] "+e,void 0===n?t.call(V,e):t.call(V,e,n)}:null}var t=H(V.log)||function(){},G=H(V.error)||t,z=H(V.warn)||t,$=H(V.info)||t,Y=H(V.debug)||t,yn={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},q="datazoom_",K="custom_",X="v_";if(yn[t="__"+q+"rootobj"]=1,Dc)Dc.datazoom=yn;else{if($n(Ze.datazoom)){if(Ze.datazoom[t])return z("Collector already loaded");z("Overwriting window.datazoom")}Ze.datazoom=yn}function E(n,t,e){var i,r=t.shift();return null==r?i=n:n?r instanceof O?nn.keys(n).some(function(e){if(r.test(e))return null!=(i=E(n[e],t.slice()))}):i=E(n[r],t):i=null,null!=i?i:e}function rn(e){return"function"==typeof e}function J(e,n){if(rn(e))try{return new(e=n?e.bind.apply(e,[null].concat(n)):e),1}catch(e){}}J(R,["http://x.io"])&&J(N)||(N=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([j(e[0]),null==e[1]||j(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=B(e[0]);return!0===e[1]?n:n+"="+B(e[1])}).join("&")}},R=function(e){var n=this,e=e.split("?"),t=e[0],e=e[1]?"?"+e[1]:"";n.search=e,n.searchParams=new N(e),n.toString=function(){return t+n.search}}),J(P)&&J(k,["x"])||(P=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){W(function(){e.call(t,n)},0)})}},k=function(e){this.type=e}),en=nn.assign({},{cn:"JW Player (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:hn.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;On("[Event] "+n.type+(t?" ("+t.media_type+")":"")+" @"+n.timestamp,ln(e))}},en||{});var o,Q,Sn,Z={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:""},ee=!Dc&&e.src||"/",ne=L.href||"https://localhost",te="configuration_id",ie="urn:x-cast:io.datazoom.collector",In="transfer",re=0,ae=1,oe=2,se=3,ue=4,ce=5,le={off:re,error:ae,warning:oe,info:se,debug:ue,verbose:ce},de=oe;function pe(e){var n;e&&(n=le[e],re<=(n=null!=n?n:+e)&&n<=ce?de=n:z("Invalid log level: "+e))}function fe(){o={},Q=[],[[en.ps],[ee.split("?")[1]],[ne.split("?")[1],q]].forEach(function(e){var i=e[1];e[0]&&e[0].split("&").forEach(function(e){try{var n=e.split("="),t=j(n[0]);if(i){if(!t.startsWith(i))return;t=t.slice(i.length)}o[t]=null==n[1]||j(n[1]),t.startsWith("x-")&&Q.push([t,o[t]])}catch(e){z("Invalid query string: "+e.message)}})}),Sn="true"==o.demo,pe(o.log)}fe();var me="io.datazoom.",_e=me,he="__ss_ev_count",ve="__ss_last_act",Ee="__ss_custom_md",ge="__ss_msg_queue",ye="__ss_sm_resp",Se="__ss_appss_to",Ie="collector_observability",Ae="loss",Te="process_duration_ms",Oe="send_duration_ms",be="call_duration_ms",Ce="queue_duration_ms",Me="evnt_fail",De="attempt_count",Re="attempt",Ne="status_code",Pe="status_codes",ke="b4_ss",Le="sample",we="config",Ue="log",xe="server_ts",Ve="ip_api";function Fe(e,n,t,i){de<e||n(t,i)}function An(e,n){Fe(ae,G,e,n)}function an(e,n){Fe(oe,z,e,n)}function Tn(e,n){Fe(se,$,e,n)}function On(e,n){Fe(ue,Y,e,n)}function We(e,n){Fe(ce,Y,e,n)}function on(e,n){n="[Exception] "+(n?"("+n+") ":"")+e;return An(n,e),n}function bn(t,i,r,a,o){var s,u=0,c=1,l=0;return i=i||"",r=r||1,a=a||hn.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 Cn(e,n){m(Ze,"postMessage",[{type:e,data:n},"*"])}var je,sn,Be,He,Ge,ze,$e=[],Ye=0;function qe(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[ke]=!0),t}function Ke(i,r,a,o){var s=r,u=1,c=Ye++;return{retry:function(e){s=e,u++},log:function(e,n){var t;en.og&&(null!=a&&$e.push(qe(null,i,t=r-a,Te,e-t,c,o,[[De,u],[Ne,n]]),qe(null,i,t,Ce,a,c,o)),$e.push(qe(null,i,r,Oe,e-r,c,!1,[[De,u],[Ne,n]]),qe(null,i,s,be,e-s,c,!1,[[Re,u],[Ne,n]])))}}}function Xe(e,n){var t,i;en.os&&(i=e.t,i=tn.trunc(i/6e4),(i=(je=je||{})[i]||(je[i]=[0,0,0]))[2]++,t=(i=i[3]||(i[3]={}))[n],e=ys(e.m,pr),t?t.push(e):i[n]=[e])}function Je(e){var n,t=je[e],i=Ye++;t[2]&&(t[3]&&(n=[[Pe,t[3]]]),$e.push(qe(Ae,null,6e4*+e,Me,t[2],i,!1,n)))}function un(e){return e&&(zn(e)?e.slice():nn.assign({},e))}function Qe(e,n){return $n(n)?e?nn.assign({},e,n):n:e}function Mn(e,n){var t;return n?((t={})[e]=n,t):null}function Dn(t,i){var r;return i?t?(r=un(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 m(e,n,t,i){n=E(e,[n],i);return rn(n)?n.apply(e,t):null}function Rn(e,n,t){return function(){try{return n.apply(e,arguments)}catch(e){on(e,t)}}}function Nn(t,e){nn.keys(t).forEach(function(n){e.forEach(function(e){e[n]=Rn(e,t[n],n)})}),e[0]}function Pn(e){var n={};return e.forEach(function(e){n[e.nm]=e}),n}function kn(e){var n={};return e.forEach(function(e){n[e.nm]=!0}),n}function Ln(e,n,t){e.forEach(function(e){e[n]=t})}function wn(e,n){var e=new R(e,ne),t=new N(e.search);return n(t),e.search="?"+t.toString(),e.toString()}function Un(e){var n,t=Q.length;return t?wn(e,function(e){for(n=0;n<t;n++)e.append(Q[n][0],Q[n][1])}):e}function xn(e,n,t){var i;return null!=(i=e?new R(e,ne).searchParams.get(n):i)?i:t}Be=0,He=en.ec,Ge=bn(an,"Abnormal clock increment: ",.2,1e3,3e5),n&&n.now,ze=Be+A.now(),sn=function(e){var n=A.now(),t=ze,i=(ze=Be+n)-t;return(i<0||He<i)&&(ze=t+en.ti,Be=ze-n,Ge.log(i)),ze};var cn=(()=>{for(var t=[],e=0;e<256;e++)t.push((e+256).toString(16).substr(1).toLowerCase());return function(){var e=new C(16);if(x&&x.getRandomValues)x.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 Vn(e,n,t,i,r,a){var o=new b;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 ln(e){if(e)try{return D.stringify(e)}catch(e){on(e,"toJSON")}return null}function dn(e){if(e)try{return D.parse(e)}catch(e){on(e,"fromJSON")}return null}function Fn(e,n){return(e===f?_e:me)+n}function _(e,n,t){if(e)if(null==t)jn(e,n);else try{e.setItem(Fn(e,n),ln({v:t}))}catch(e){on(e,"storageSet")}}function Wn(e,n){e=e?dn(e.getItem(Fn(e,n))):null;return e?e.v:null}function jn(e,n){e&&e.removeItem(Fn(e,n))}Ze.self!==Ze.top&&On("Page loaded in a frame, set sessionStorage prefix to: "+(_e+=(o.frame_id||cn())+"."));var Bn=dn('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Hn(e){return"string"==typeof e}function Gn(e){return hn.isFinite(e)}function zn(e){return S.isArray(e)}function $n(e){return null!=e&&"object"==typeof e&&!zn(e)}function Yn(e){return Hn(e)?e:""+e}function qn(e){return Gn(e=+e)?e:null}function Kn(n,t,i){return null==n&&null==t?qn:function(e){return null!=(e=qn(e))&&(null!=n&&e<n?e=i?null:n:null!=t&&t<e&&(e=i?null:t)),e}}function Xn(e){return tn.round(e)}function Jn(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 Qn(e,n){if(n)for(var t=0;t<n.length&&null!=e;t++)e=n[t](e);return e}var Zn,et,nt,tt,it=4,rt=8,at=16,ot=32,I=65535,st=it,t=1|at,n=(e=it|at)|ot,r=rt,ut={ap:2,nm:"ad_break_start"},ct={ap:2,nm:"ad_break_end"},lt={ap:2,nm:"ad_click"},dt={ap:2,nm:"ad_impression"},pt={ap:2,nm:"ad_skip"},ft={ap:st,nm:"app_session_end"},mt={ap:3,nm:"audio_track_changed"},_t={ap:3,nm:"buffer_start"},ht={ap:3,nm:"buffer_end"},vt={ap:3,nm:"cast_start"},Et={ap:3,nm:"cast_end"},gt={ap:3,nm:"cast_transfer"},yt={ap:I,nm:"context_ready"},St={ap:st,nm:"datazoom_loaded"},It={ap:3,nm:"error"},At={ap:3,nm:"exit_fullscreen"},Tt={ap:3,nm:"fullscreen"},Ot={ap:3,nm:"heartbeat"},bt={ap:3,nm:"media_loaded"},Ct={ap:1,nm:"media_object_request"},Mt={ap:3,nm:"media_request"},Dt={ap:3,nm:"milestone"},Rt={ap:3,nm:"mute"},Nt={ap:3,nm:"pause"},Pt={ap:3,nm:"play_btn"},kt={ap:3,nm:"playback_start"},Lt={ap:3,nm:"playback_complete"},wt={ap:1,nm:"player_ready"},Ut={ap:3,nm:"playing"},xt={ap:3,nm:"qualified_view"},Vt={ap:1,nm:"quality_change_request"},Ft={ap:3,nm:"rendition_change"},Wt={ap:3,nm:"resize"},jt={ap:3,nm:"resume"},Bt={ap:3,nm:"seek_start"},Ht={ap:3,nm:"seek_end"},Gt={ap:3,nm:"stall_start"},zt={ap:3,nm:"stall_end"},$t={ap:3,nm:"stop"},Yt={ap:3,nm:"subtitle_change"},qt={ap:3,nm:"unmute"},Kt={ap:3,nm:"volume_change"},Xt=(Mt.rtc=0,kt.rtc=1,Nt.rtc=2,_t.rtc=3,Gt.rtc=4,Bt.rtc=5,Ft.rtc=6,Dt.rtc=7,Mt.rta=8,kt.rta=9,_t.rta=10,Gt.rta=11,Dt.rta=12,It.rta=pt.rta=Lt.rta=13,ut.rta=14,ct.rta=15,Ot.rt=16,_t.rt=17,Gt.rt=18,["event","metrics"]),Jt={ap:t,nm:"bandwidth_kbps"},Qt={ap:t,nm:"buffer_duration_ms"},Zt={ap:t,nm:"buffer_duration_ads_ms"},ei={ap:t,nm:"buffer_duration_content_ms"},ni={ap:t,nm:"buffer_fill_percent"},ti={ap:t,nm:"buffer_length_ms"},ii={ap:t,nm:"content_session_start_ts_ms"},ri={ap:3,nm:"current_audio_track"},ai={ap:t,nm:"current_subtitles"},oi={ap:e,nm:"engagement_duration_ms"},si={ap:e,nm:"engagement_duration_ads_ms"},ui={ap:e,nm:"engagement_duration_content_ms"},ci={ap:r,nm:"event_count"},li={ap:t,nm:"num_ad_break_plays"},di={ap:e,nm:"num_ad_plays"},pi={ap:e,nm:"num_content_plays"},fi={ap:e,nm:"num_errors"},mi={ap:e,nm:"num_errors_ads"},_i={ap:e,nm:"num_errors_content"},hi={ap:e,nm:"num_requests_content"},vi={ap:t,nm:"pause_duration_ms"},Ei={ap:t,nm:"pause_duration_ads_ms"},gi={ap:t,nm:"pause_duration_content_ms"},yi={ap:t,nm:"playback_duration_ms"},Si={ap:t,nm:"playback_duration_ads_ms"},Ii={ap:2,nm:"playback_duration_ad_session_ms"},Ai={ap:t,nm:"playback_duration_content_ms"},Ti={ap:t,nm:"playback_duration_promo_ms"},Oi={ap:3,nm:"playback_rate"},bi={ap:t,nm:"player_state"},Ci={ap:t,nm:"player_viewable"},Mi={ap:t,nm:"player_viewable_percent"},pn={ap:3,nm:"playhead_position_sec"},Di={ap:t,nm:"playhead_pdt_sec"},Ri={ap:3,nm:"rendition_audio_bitrate_kbps"},Ni={ap:3,nm:"rendition_height"},Pi={ap:3,nm:"rendition_name"},ki={ap:3,nm:"rendition_video_bitrate_kbps"},Li={ap:3,nm:"rendition_width"},wi={ap:t,nm:"stall_count"},Ui={ap:t,nm:"stall_count_ads"},xi={ap:t,nm:"stall_count_content"},Vi={ap:t,nm:"stall_duration_ms"},Fi={ap:t,nm:"stall_duration_ads_ms"},Wi={ap:t,nm:"stall_duration_content_ms"},ji={ap:t,nm:"time_since_last_ad_break_start_ms"},Bi={ap:t,nm:"time_since_last_ad_completed_ms"},Hi={ap:t,nm:"time_since_last_buffer_start_ms"},Gi={ap:t,nm:"time_since_last_buffer_start_ad_ms"},zi={ap:t,nm:"time_since_last_buffer_start_content_ms"},$i={ap:t,nm:"time_since_last_heartbeat_ms"},Yi={ap:t,nm:"time_since_last_milestone_ad_ms"},qi={ap:t,nm:"time_since_last_milestone_content_ms"},Ki={ap:t,nm:"time_since_last_pause_ms"},Xi={ap:t,nm:"time_since_last_rendition_change_ms"},Ji={ap:t,nm:"time_since_last_request_ad_ms"},Qi={ap:t,nm:"time_since_last_seek_start_ms"},Zi={ap:t,nm:"time_since_last_stall_start_ms"},er={ap:t,nm:"time_since_last_stall_start_ad_ms"},nr={ap:t,nm:"time_since_last_stall_start_content_ms"},tr={ap:t,nm:"time_since_last_started_ad_ms"},ir={ap:t,nm:"time_since_request_content_ms"},rr={ap:t,nm:"time_since_started_content_ms"},ar={ap:t,nm:"volume_level_percent"};Ln([Qt,Zt,ei,vi,Ei,gi,yi,Si,Ai,Ti,wi,Ui,xi,Vi,Fi,Wi,di,fi,mi,_i,pi,hi],"df",0),ir.ts=0,rr.ts=1,Ki.ts=2,zi.ts=3,nr.ts=4,Qi.ts=5,Xi.ts=6,qi.ts=7,Ji.ts=8,tr.ts=9,Gi.ts=10,er.ts=11,Yi.ts=12,ji.ts=14,Bi.ts=13,$i.ts=16,Hi.ts=17,Zi.ts=18;var or=["ops_metadata"],sr=["custom"],ur=["vendor"],cr={p:_r=[],ap:n,nm:"configuration_id"},lr={p:_r,ap:n,nm:"connector_list"},dr={p:_r,ap:n,nm:"customer_code"},pr={p:_r,ap:r,nm:"event_id"},fr={p:hr=["event"],ap:r,nm:"timestamp"},mr={p:hr,ap:r,nm:"type"},_r={p:i=["cmcd"],ap:r,nm:"bl"},hr={p:i,ap:r,nm:"br"},vr={p:i,ap:r,nm:"bs"},Er={p:i,ap:r,nm:"cid"},gr={p:i,ap:r,nm:"d"},yr={p:i,ap:r,nm:"dl"},Sr={p:i,ap:r,nm:"mtp"},Ir={p:i,ap:r,nm:"nor"},Ar={p:i,ap:r,nm:"nrr"},Tr={p:i,ap:r,nm:"ot"},Or={p:i,ap:r,nm:"pr"},br={p:i,ap:r,nm:"rid"},Cr={p:i,ap:r,nm:"rtp"},Mr={p:i,ap:r,nm:"sf"},Dr={p:i,ap:r,nm:"sid"},Rr={p:i,ap:r,nm:"st"},Nr={p:i,ap:r,nm:"su"},Pr={p:i,ap:r,nm:"tb"},i={p:i,ap:r,nm:"v"},kr={p:a=["event","attributes"],ap:r,nm:"abs_shift"},Lr={p:a,ap:r,nm:"error_code"},wr={p:a,ap:r,nm:"error_msg"},Ur={p:a,ap:r,nm:"inner_error"},xr={p:a,ap:r,nm:"heartbeat_count"},Vr={p:a,ap:r,nm:"milestone_percent"},Fr={p:a,ap:r,nm:"qualified_view_sec"},Wr={p:a,ap:r,nm:"seek_start_point_ms"},jr={p:a,ap:r,nm:"seek_end_point_ms"},Br={p:a,ap:r,nm:"startup_duration_content_ms"},Hr={p:a,ap:r,nm:"startup_duration_total_ms"},Gr={p:s=["user_details"],ap:e,nm:"app_session_id"},zr={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"},Yr={p:s,ap:t,nm:"cast_content_session_id"},qr={p:s,ap:n,nm:"client_ip"},Kr={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:e,nm:"user_agent"},Xr={p:u=["player"],ap:t,nm:"autostart"},Jr={p:u,ap:t,nm:"casting"},Qr={p:u,ap:t,nm:"controls"},Zr={p:u,ap:t,nm:"default_muted"},ea={p:u,ap:t,nm:"default_playback_rate"},na={p:u,ap:t,nm:"fullscreen"},ta={p:u,ap:t,nm:"loop"},ia={p:u,ap:t,nm:"muted"},ra={p:u,ap:t,nm:"player_name"},aa={p:u,ap:t,nm:"player_version"},oa={p:u,ap:t,nm:"preload"},sa={p:u,ap:t,nm:"ready_state"},ua={p:u,ap:t,nm:"streaming_protocol"},ca={p:u,ap:t,nm:"streaming_type"},la={p:u,ap:t,nm:"subtitles"},u={p:c=["device"],ap:e,nm:"advertising_id"},da={p:c,ap:e,nm:"browser_name"},pa={p:c,ap:e,nm:"browser_height"},fa={p:c,ap:e,nm:"browser_version"},ma={p:c,ap:e,nm:"browser_width"},_a={p:c,ap:e,nm:"cookies_enabled"},ha={p:c,ap:n,nm:"device_id"},va={p:c,ap:e,nm:"device_mfg"},Ea={p:c,ap:e,nm:"device_name"},ga={p:c,ap:e,nm:"device_type"},ya={p:c,ap:e,nm:"orientation"},Sa={p:c,ap:e,nm:"os_name"},c={p:c,ap:e,nm:"os_version"},Ia={p:Ya=["video"],ap:t,nm:"asset_id"},Aa={p:Ya,ap:t,nm:"description"},Ta={p:Ya,ap:t,nm:"duration_sec"},Oa={p:Ya,ap:t,nm:"frame_rate"},ba={p:Ya,ap:t,nm:"media_tags"},Ca={p:Ya,ap:3,nm:"media_type"},Ma={p:Ya,ap:t,nm:"player_height"},Da={p:Ya,ap:t,nm:"player_width"},Ra={p:Ya,ap:t,nm:"source"},Na={p:Ya,ap:t,nm:"title"},Pa={p:l=["geo_location"],ap:n,nm:"city"},ka={p:l,ap:n,nm:"country"},La={p:l,ap:n,nm:"country_code"},wa={p:l,ap:n,nm:"latitude"},Ua={p:l,ap:n,nm:"longitude"},xa={p:l,ap:n,nm:"postal_code"},Va={p:l,ap:n,nm:"region"},Fa={p:l,ap:n,nm:"region_code"},Wa={p:l,ap:n,nm:"continent"},ja={p:l,ap:n,nm:"continent_code"},Ba={p:l,ap:n,nm:"district"},Ha={p:l,ap:n,nm:"timezone_name"},Ga={p:l,ap:n,nm:"timezone_offset"},za={p:no=["network"],ap:n,nm:"asn"},$a={p:no,ap:n,nm:"asn_org"},Ya={p:no,ap:e,nm:"connection_type"},qa={p:no,ap:n,nm:"isp"},Ka={p:no,ap:n,nm:"mobile_connection"},Xa={p:or,ap:r,nm:"context_id"},Ja={p:or,ap:r,nm:"context_name"},l={p:or,ap:e,nm:"dz_dictionary_version"},Qa={p:or,ap:r,nm:"msg_send_client_ts_ms"},Za={p:or,ap:r,nm:"player_context_id"},eo={p:or,ap:n,nm:"server_ts_offset_ms"},no={p:go=["page"],ap:e,nm:"collector_name"},to={p:go,ap:e,nm:"dz_sdk_version"},io={p:go,ap:e,nm:"page_title"},ro={p:go,ap:e,nm:"page_url"},ao={p:go,ap:e,nm:"referrer_url"},oo={p:go,ap:e,nm:"site_domain"},so={p:d=["ad"],ap:n,nm:"ad_blocker"},uo={p:d,ap:t,nm:"ad_break_id"},co={p:d,ap:2,nm:"ad_click_url"},lo={p:d,ap:2,nm:"ad_creative_id"},po={p:d,ap:2,nm:"ad_duration_sec"},fo={p:d,ap:2,nm:"ad_id"},mo={p:d,ap:2,nm:"ad_partner"},_o={p:d,ap:t,nm:"ad_position"},ho={p:d,ap:2,nm:"ad_session_id"},vo={p:d,ap:2,nm:"ad_system"},Eo={p:d,ap:2,nm:"ad_time_offset_sec"},go={p:d,ap:e,nm:"ad_tracking_opt_out"},yo={p:d,ap:2,nm:"advertiser_name"},So={p:d,ap:2,nm:"deal_id"},Io={p:d,ap:2,nm:"skip_time_offset_sec"},Ao={p:d,ap:2,nm:"wrapper_creative_ids"},To={p:d,ap:2,nm:"wrapper_id"},Oo={p:d,ap:2,nm:"wrapper_systems"},n={p:["cdn"],ap:t,nm:"cdn"},bo=(So.df="",Ln([Ao,To,Oo],"df",[]),Jn(function(e){return!!e},[so,go,Xr,vr,Jr,Qr,_a,Zr,na,ta,Ka,ia,Nr,la,Ci]),Jn(function(e){zn(e)||(e=[e]);for(var n=0;n<e.length;n++)e[n]=Yn(e[n])||"";return e},[Ao,To,Oo]),Jn(null==Zn&&null==et?Yn:function(e){var n;return null!=(e=Yn(e))&&(n=e.length,null!=Zn&&n<Zn?e=null:null!=et&&et<n&&(e=nt?null:e.slice(0,et))),e},[kr,uo,co,lo,fo,mo,_o,ho,vo,yo,u,Gr,za,$a,Ia,da,fa,$r,Yr,n,Er,Pa,qr,cr,lr,Kr,Wa,ja,ka,La,dr,So,Aa,ha,va,Ea,ga,Ba,to,Lr,wr,pr,Ur,qa,Ca,Ir,Ar,ya,Sa,c,Tr,io,ro,Za,ra,aa,xa,oa,ao,Va,Fa,br,Mr,Dr,oo,Ra,Rr,ua,ca,Ha,Na,mr,s,ri,ai,bi,Pi]),Jn(Kn(0,100),[ni,Mi,ar]),Jn(Kn(0,1e9,!0),[Jt]),Jn(Kn(),[po,Eo,a,zr,_r,hr,pa,ma,gr,ea,yr,Ta,Oa,xr,wa,Ua,Vr,Sr,Ma,Da,Or,Fr,sa,Cr,jr,Wr,eo,Io,Br,Hr,Pr,fr,Ga,i,Zt,ei,Qt,ti,ii,si,ui,oi,ci,li,di,pi,fi,mi,_i,hi,Ei,gi,vi,Si,Ii,Ai,yi,Ti,Oi,pn,Ri,Ni,ki,Li,wi,Ui,xi,Fi,Wi,Vi,ji,Bi,Gi,zi,Hi,$i,Yi,qi,Ki,Xi,Ji,Qi,er,nr,Zi,tr,ir,rr]),Jn(0==(e=5)?Xn:(tt=tn.pow(10,e),function(e){return tn.round(e*tt)/tt}),[po,Eo,a,zr,_r,hr,pa,ma,gr,ea,yr,Ta,Oa,xr,wa,Ua,Vr,Sr,Ma,Da,Or,Fr,sa,Cr,jr,Wr,eo,Io,Br,Hr,Pr,fr,Ga,i,Jt,Zt,ei,Qt,ni,ti,ii,si,ui,oi,ci,li,di,pi,fi,mi,_i,hi,Ei,gi,vi,Si,Ii,Ai,yi,Ti,Oi,Mi,pn,Ri,Ni,ki,Li,wi,Ui,xi,Fi,Wi,Vi,ji,Bi,Gi,zi,Hi,$i,Yi,qi,Ki,Xi,Ji,Qi,er,nr,Zi,tr,ir,rr,ar]),[ut,ct,lt,dt,pt,ft,mt,_t,ht,vt,Et,gt,yt,St,It,At,Tt,Ot,bt,Ct,Mt,Dt,Rt,Nt,Pt,kt,Lt,wt,Ut,xt,Vt,Ft,Wt,jt,Bt,Ht,Gt,zt,$t,Yt,qt,Kt]),Co=Pn(bo);function Mo(e,n){return X+e+"_"+n}function Do(e,n){var t,i=kn(bo),r={},a={};e?0<e.length?(e=Hn(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,bo.forEach(function(e){e.on=!(r&&!r[e.nm]),e.mm=a&&a[e.nm]})}Do(),Ln([di,fi,mi,_i,pi,hi],"st",f);var Ro=[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,Mi,pn,Di,Ri,Ni,Pi,ki,Li,wi,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,Gi,zi,$i,Yi,qi,Ki,Xi,Ji,Qi,Zi,er,nr,tr,ir,rr,ar],No=[],Po=(Ro.forEach(function(e){null!=e.ts&&No.push(e)}),[]),ko=[];function Lo(e){var n,t=kn(Ro),i={};e?(e=Hn(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,Po=[],ko=[],Ro.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?ko:Po).push(e)})}Lo(),Ln([Gr,zr,eo],"st",f);var wo,Uo,xo,Vo,Fo=[qr,qa,Ka,za,$a,Fa,Va,La,ka,xa,Pa,wa,Ua,Wa,ja,Ba,Ha,Ga],Wo=(Ln(Fo,"se",f),[ra,aa,u,Na,Ia,ca,Jr]),jo={},Bo=(Wo.forEach(function(e){jo[e.nm.toUpperCase()]=q+e.nm}),[cr,lr,dr,pr,fr,mr,_r,hr,vr,Er,gr,yr,Sr,Ir,Ar,Tr,Or,br,Cr,Mr,Dr,Rr,Nr,Pr,i,kr,Lr,wr,Ur,xr,Vr,Fr,Wr,jr,Br,Hr,Gr,zr,a,$r,Yr,qr,Kr,s,Xr,Jr,Qr,Zr,ea,na,ta,ia,ra,aa,oa,sa,ua,ca,la,u,da,pa,fa,ma,_a,ha,va,Ea,ga,ya,Sa,c,Ia,Aa,Ta,Oa,ba,Ca,Ma,Da,Ra,Na,Pa,ka,La,wa,Ua,xa,Va,Fa,Wa,ja,Ba,Ha,Ga,za,$a,Ya,qa,Ka,Xa,Ja,l,Qa,Za,eo,no,to,io,ro,ao,oo,so,uo,co,lo,po,fo,mo,_o,ho,vo,Eo,go,yo,So,Io,Ao,To,Oo,n]),Ho=Pn(Bo),Go=Bo.concat(Ro),zo=[pr],$o=[],Yo=[];function qo(e){var n,t=kn(Bo),i={};wo=Uo=xo=Vo=!1,e?((e=Hn(n=en.tt&&o.beta_md)?e.concat(n.split(".")):e).forEach(function(e){t[e]?i[e]=!0:"custom_metadata_all"==e?wo=!0:"custom_events_all"==e?Uo=!0:"vendor_metadata_all"==e?xo=!0:"vendor_events_all"==e?Vo=!0:an("Unknown metadata: "+e)}),zo.forEach(function(e){i[e.nm]=!0})):wo=Uo=xo=Vo=!(i=null),$o=[],Yo=[],Bo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Yo:$o).push(e)})}qo();var Ko="ad",Xo=/^live$/i,Jo="DASH",Qo="Flash",Zo={"application/x-mpegURL":"HLS","application/dash+xml":Jo,"application/vnd.ms-sstr+xm":"Smooth","video/x-flv":Qo,"video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"},d=[[/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"]],t=[[/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"]],e=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],es=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function ns(e,n,t){n&&t.push(e)}function ts(e,n,t){t.push(e+"="+n)}function is(e,n,t){t.push(e+(o.cmcd_ntq?"="+n:'="'+n+'"'))}function rs(e,n,t){t.push(e+'="'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function as(e){return"false"!==e}function os(e){return+e}function ss(e){return e.replace(/"/g,"")}function us(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var cs,ls,ds={bl:[0,[ts,os],_r],br:[1,[ts,os],hr],bs:[2,[ns,as],vr],cid:[3,[rs,us],Er],d:[1,[ts,os],gr],dl:[0,[ts,os],yr],mtp:[0,[ts,os],Sr],nor:[0,[rs,us],Ir],nrr:[0,[rs,us],Ar],ot:[1,[is,ss],Tr],pr:[3,[ts,os],Or],rtp:[2,[ts,os],Cr],sf:[3,[is,ss],Mr],sid:[3,[rs,us],Dr],st:[3,[is,ss],Rr],su:[0,[ns,as],Nr],tb:[1,[ts,os],Pr],v:[3,[ts,os],i]},ps={bs:!1,su:!1,v:1,pr:1},fs="org.svalabs-";function ms(e){for(var n,t,i=[[],[],[],[]],r=nn.keys(e),a=0;a<r.length;a++)n=r[a],(t=ds[n])&&t[3]&&t[1][0](n,e[n],i[t[0]]);return i}function _s(e){var n,t=nn.keys(ds);for(cs=!1,ls="header"===(yn.options.cmcdMode||o.cmcd_mode),n=0;n<t.length;n++)ds[t[n]][3]=!1;if(e&&zn(e)&&0<e.length)if(cs=!0,"na"==e[0])for(n=0;n<t.length;n++)ds[t[n]][3]=!0;else e.forEach(function(e){var n=ds[e];n?n[3]=!0:an("Unknown CMCD key: "+e)})}function hs(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)&&Wn(r,i.nm))?i.df:r)&&(e[i.nm]=r)}function vs(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)&&_(s,o,r[1])):an("Setting inapplicable data",a)}function Es(e,n){return e[n.nm]}function gs(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 fn(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 ys(e,n){e=fn(e,n.p||Xt,!0);return e&&e[n.nm]}function Ss(e,n,t,i){for(var r,a,o,s=0;s<n.length;s++)0!=((r=n[s]).ap&t)&&null!=(o=Qn(e[a=r.nm],r.dv))&&(fn(i,r.p)[a]=o)}ds[fs+"rid"]=[0,[rs,us],br],ds[fs+"tid"]=[0,[rs,us]],ds[fs+"cmi"]=[0,[ts,os]],ds[fs+"pmi"]=[0,[ts,os]],_s();var Is,As,Ts,Os,bs,Cs,Ms,Ds,Rs,Ns,Ps,ks,Ls,ws,Us,xs,Vs,p,Fs={},Ws={},js=Wn(f,ge)||[],Bs=[],Hs=1,Gs=2,zs=4,$s=8,Ys=16,qs=zs|$s|Ys,Ks=Gs|Hs|qs,Xs=0,Js=[];function Qs(e){return null!=e?6e4*e:12e5}function Zs(e,n){if(!Ks&&0<js.length){for(var t,i=sn(),r=0,a=0;a<js.length;a++)js[a].p&&(t=!0,Ss(Fs,$o,ot,js[a].m)),r=tn.max(r,i-js[a].t);ks&&cu(js,0,Ke(Ue,i,r,t),e),n=!0}n&&(js=[],jn(f,ge)),Ms=null}function h(e){(Ks&=~e)||null!=Ms||Zs()}function eu(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 W(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 nu(n,t,i){Vn("GET",en.ip,{Accept:"application/json"},null,function(e){eu(e,"IP API",nu,n,t,en.rd,i,function(e){e=dn(e.responseText);if(e)return v([[qr,e.query],[qa,e.isp],[Ka,e.mobile],[za,e.as],[$a,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]]),h($s),ru(),!0},function(){h($s),ru()})})}function tu(n,t,i){var r=sn();Vn("GET",Un(en.ts),{"cache-control":"no-cache"},null,function(e){eu(e,"SERVER TS",tu,n,t,en.rd,i,function(e,n){e=dn(e.responseText),e=e&&e.epoch_millis;if(e)return v([[eo,tn.round(e-(r+n)/2)]]),h(zs),!0},function(){h(zs)})})}function iu(n,t,i){Rs=Vn("POST",Un(en.sm),{"Content-Type":"application/json","cache-control":"no-cache"},n,function(e){4==e.readyState&&(Rs=null,eu(e,"Sampling API",iu,n,t,en.rd,i,function(e){e=dn(e.responseText);if(Ns=e&&e[en.ss+"_sampling"])return ks=Ns.in_sample,Ps=!1,h(Gs),_(f,ye,Ns),!0},function(e){return ks=Ps=!0,h(Gs),an(e+"forced in"),!0}))})}function ru(){var e;!Ds||Ks&Hs||(en.sw&&en.sm?(en.sp&&kn(Fo),(e=Ho[en.sd])&&(Ds.sampling_definition_params={namespace:en.ss,key_name:e.nm,key_value:lu(e)}),(e=Ho[en.sc])&&(Ds.sampling_criteria_params={sampling:{key_name:e.nm,key_value:lu(e)}}),Ds.sampling_override=o.sampling_override||"NONE",Ds.sampling_request_id=cn(),iu(ln(Ds),0,Ke(Le,sn()))):(ks=!0,h(Gs)),Ds=null)}function au(t,n,i){var e;en.ci?(en.tt&&(en.mf=o.mock_config||en.mf),On("Get config from "+(e=en.mf||wn(Un("https://"+en.cf+"platform.datazoom.io/beacon/v2/config"),function(e){e.append(te,en.ci)}))),Vn("GET",e,null,null,function(e){eu(e,"Config API",au,t,n,en.rd,i,function(e){e=dn(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 ou(){au(function(e){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,Z),_(f,Se,en.st),en.st=Qs(en.st),Do(en.ev,e),Lo(en.fd),qo(en.md),_s(en.cd),en.og||($e=[]),en.os||(je=null),m(en.cm,"sort"),m(en.am,"sort"),m(en.cq,"sort"),m(en.aq,"sort"),v([[dr,en.cc],[lr,en.cl]]),Bs.forEach(function(e){var n,t,i,r,a,o=!1,s=ys(e.m,mr),u=Co[s];u?o=u.on:s.startsWith(K)?o=Uo:s.startsWith(X)&&(o=Vo),o&&(n=e.m,t={},$o.concat(Yo).forEach(function(e){null!=(i=ys(n,e))&&(fn(t,e.p)[e.nm]=i)}),r=fn(n,Xt),a=fn(t,Xt),Po.concat(ko).forEach(function(e){null!=(i=ys(r,e))&&(a[e.nm]=i)}),wo&&(i=fn(n,sr,!0))&&nn.assign(fn(t,sr),i),xo&&(i=fn(n,ur,!0))&&nn.assign(fn(t,ur),i),su(t,a),e.m=t,js.push(e))}),_(f,ge,js),Bs=[];var n,e=ha.nm;ha.on?(n=Wn(y,e))||(n=cn(),_(y,e,n)):jn(y,e),v([[ha,n]]),en.ts&&eo.on&&null==lu(eo)?tu(0,0,Ke(xe,sn())):h(zs),en.ab&&so.on&&null==lu(so)?Vn("GET",Un(en.ab),null,null,function(e){4==e.readyState&&(v([[so,!e.status]]),h(Ys))}):h(Ys),en.ip&&Fo.some(function(e){return e.on&&null==lu(e)})?nu(0,0,Ke(Ve,sn())):h($s),h(Hs),ru(),W(function(){h(qs),ru()},en.mh)},0,Ke(we,sn()))}function su(e,n){var t=""+(bs+1e7);fn(e,pr.p)[pr.nm]=Ts+"_"+t.substr(-7,2)+"."+t.substr(-5),_(f,he,++bs),ci.on&&(n[ci.nm]=bs)}function uu(e,n,t,i,r,a,o){var s,u,c,l,d,o=o?it:at,p=fn(e,Xt);for(Ss(Fs,$o,o,e),Ss(Fs,Po,o,p),(i=i||[]).push([mr,n],[fr,t]),s=0;s<i.length;s++)u=(c=i[s])[0],c[2]||0!=(u.ap&rt)?u.on&&null!=(c=Qn(c[1],u.dv))&&(fn(e,u.p)[u.nm]=c):an("Invalid event data",u);wo&&(o=Qe(Is,r),n=e,r=ln(o),d=r?r.length:0,(l=en.ml)&&l<d?an("Custom metadata size: "+d+" > "+l):2<d&&(o=dn(r))&&nn.assign(fn(n,sr),o)),xo&&(l=Dn(As,a),d=e,l)&&nn.assign(fn(d,ur),l),Sn&&Cn("evInfo",e),!(de<ue)&&en.le&&en.le(e)||(r={p:Ks,m:e,t:t},Ks&Hs?Bs.push(r):(su(e,p),js.push(r),_(f,ge,js),null==Ms&&(Ms=W(Zs,en.bd))))}function cu(t,n,i,e){var r,a=t.map(function(e){return e.m}),o=(a.forEach(function(e,n){var t,i=fn(e,or);Qa.on&&(fn(e,Qa.p)[Qa.nm]=sn()),Ns&&(i[en.ss+"_sampling"]=Ns),null!=Ps&&(i[en.ss+"_forced_sampling_in"]=Ps),n||(r=i[Ie],je&&(nn.keys(je).forEach(Je),je=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[Ie]=r))}),Un(en.mb)),a=ln(a);e&&w.sendBeacon&&w.sendBeacon(o,a)||Vn("POST",o,{"Content-Type":"application/json"},a,function(e){eu(e,"Message post",cu,t,n,en.rd,i,null,function(e,n){t.forEach(function(e){Xe(e,n)}),r&&($e=r.concat($e))})})}function v(e){vs(Fs,Ws,it,e)}function lu(e){return Fs[e.nm]}function du(e){var n=en.st;return e<Cs&&an("Activity time reversal: "+Cs+" -> "+e),0<=n&&(e<Cs||Cs+n<=e)}function pu(e){if(Oc&&(Oc=!1,mu(St,e)),Ts&&Os&&!du(e))_(f,ve,Cs=e);else{Zs(!(Bs=[]),!0);var n=e,t=Js[Xs];if(Ts=cn(),Os=Cs=n,v([[Gr,Ts],[zr,Os],[di,bs=0],[fi,0],[mi,0],[_i,0],[pi,0],[hi,0]]),_(f,he,bs),_(f,ve,Cs),jn(f,ye),Rs&&Rs.abort(),Rs=Ns=null,ks=Ps=null,Ks|=Gs,Ds={},ru(),rn(t))try{t()}catch(e){on(e,"onAppSessionStart")}}v([[oi,e-Os],[ma,Ze.outerWidth],[pa,Ze.outerHeight],[io,En.title],[ro,L.href],[ao,En.referrer],[oo,L.hostname],[_a,w.cookieEnabled]])}function fu(e,n,t){gs(v,lu,e,n,t)}function mu(e,n,t,i,r){0!=(e.ap&it)?(pu(n),e.on&&uu({},e.nm,n,t,i,r,!0)):an("Event inapplicable: "+e.nm+", ss",e)}function _u(n,t){var i,r;n&&Wo.forEach(function(e){i=q+e.nm,null!=(r=n[i])&&(t([[e,r]]),delete n[i])})}if(hs(Fs,Go,it),Ts=lu(Gr),Os=lu(zr),bs=Wn(f,he)||0,Cs=Wn(f,ve)||0,Ns=Wn(f,ye),Is=Wn(f,Ee),As=Wn(f,"__ss_vendor_md"),en.st=Qs(Wn(f,Se)),Ts&&Os&&!du(sn())||(v([[eo,null]]),Fo.forEach(function(e){v([[e,null]])})),Ns?(ks=Ns.in_sample,Ps=!1,h(Gs)):Ds={},d.some(function(e){if(p=e[0].exec(U))return Ls=e[1],ws=p[1],!0})||(p=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(U))&&(Ls=p[1],ws=p[2]),(p=/Version\/([\d.]+)/.exec(U))&&(ws=p[1]),t.some(function(e){if(e[0].test(U))return Us=e[1],!0})){switch(p=null,Us){case"Mac OS X":p=/Mac OS X (10[\d._]+)/.exec(U);break;case"Android":p=/Android ([\d._]+)/.exec(U);break;case"iOS":p=/OS (\d+_\d+(_\d+)?)/.exec(U);break;case"Tizen":p=/Tizen[ \/]([\d._]+)/.exec(U);break;default:(p=/Windows (.*)/.exec(Us))&&(Us="Windows")}p&&(xs=p[1].replace(/_/g,"."))}else Us=xs="-";e.some(function(e){if(e[0].test(U))return Vs=e[1],!0}),v([[s,U],[da,Ls],[fa,ws],[Sa,Us],[c,xs],[ga,Vs],[no,en.cn],[to,en.sv],[l,3]]);var hu="baseContext",vu="contextType",Eu="contextName",gu="metadata",yu=0,Su=["base","player"],mn={},Iu=[];function Au(e){if(!e.destroyed){e.setTimer(null);try{var n=e.destroyCallback;n&&n()}catch(e){on(e,"onDestroy")}delete mn[e.id],e.removeListeners(),e.destroyed=!0}}function Tu(e,n,t,i,r,a,o){(r=r||[]).push([Xa,e.id],[Ja,e.name]),uu(n,t,i,r,Qe(e.customMetadata,a),Dn(e.vendorMetadata,o))}function Ou(e,n){return!(null!=n&&!$n(n)||(e.customMetadata=dn(ln(n)),0))}function bu(e){var n=un(Fs);return n._c_=Qe(Is,e.customMetadata),n._v_=Dn(As,e.vendorMetadata),n}function Cu(){var t,c=[],i={},a={id:cn(),type:yu,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=Iu.indexOf(t))&&Iu.splice(n,1),t=null),e&&(Iu.push(e),t=e)},fireEvent:function(e,n,t,i,r){a.shallBlock("fireEvent",e.nm,e)||(pu(n),e.on&&Tu(a,{},e.nm,n,t,i,r))},fireVendorEvent:function(e,n,t){a.fireEvent({ap:I,nm:Mo(e,n),on:Vo},sn(),null,null,Mn(e,t))},addListener:function(e,n,t,i,r){if(e&&n){var a=e[i=i||"addEventListener"];if(rn(a)){u=Rn(e,t,s="listener: "+(s=n));var o=de<ce?u:function(){We(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 Su[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){Au(a)},setMetadata:function(e){return Ou(a,e)},getMetadata:function(){return dn(ln(a.customMetadata))},generateEvent:function(e,n){a.fireEvent({ap:I,nm:K+e,on:Uo},sn(),null,n)}};return Sn&&(e.dumpDzData=function(){return dn(ln(bu(a)))}),a.basePublicMethods=e,a.publicContext=un(e),mn[a.id]=a}function Mu(e){return en.sn&&en.sn[e]||""+e}var Du,Ru,Nu,Pu,_n=[],ku="idle",Lu=(_n[2]=_n[9]="buffering",_n[3]=_n[10]="playing",_n[4]=_n[11]="paused",_n[5]=_n[12]="seeking",_n[6]="ended",_n[0]=_n[7]=_n[8]=ku,function(U,x,r){var i,a,o,V,F,W,j,p={},B={},E={},H={},G={},z={},$=[],Y=[],q=[],K=[],X=[],J=[],Q=[],f=[],Z=cn(),m=(w=r[hu],(e=(e=$n(w)&&rn(w.contextID)&&w.contextID())&&Hn(e)&&mn[e])&&e.type==yu&&e.publicContext===w?e:(null!=w&&an("Invalid contextOptions."+hu,w),Cu())),e=r[Eu],s=(null!=e&&(m.name=e),(w=r["adapterID"])&&Hn(w)&&Ac[w]||(null!=w&&an("Adapter not found for id: "+w),Du)),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){vs(p,B,1,e)}function y(e){vs(E,H,2,e)}function S(e,n){return Es(n?E:p,e)}function ne(e){return E[e.nm]}function te(){var e=S(ra),n=S(aa);hs(p,Go,1),_([[Ca,"content"],[ra,e],[aa,n]])}function ie(){hs(E,Go,2),y([[Ca,"ad"]])}function n(e,n){B[e.nm]=n}function re(e,n){H[e.nm]=n}function ae(e,n){z[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)?un(u):{},s&&(W=s[2],j=s[3],nn.assign(u,s[4]||{}),V=u[Sc],F=u[Ic],(u[yc]||[]).forEach(function(e){G[e[0].nm]=e[1]})),U&&nn.keys(mn).some(function(e){e=mn[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,D,Ie,Ae,R,N,Te,v=0,Oe=ku,be=1,Ce=sn(),Me=bn(an,"Abnormal duration increment: ",1,1e3,3e5);function De(){return 2==be}function Re(){return!!T&&T.type===Ko}function Ne(e){I=e+en.hi,On("Heartbeats started")}function Pe(){I&&On("Heartbeats stopped"),I=0}function P(e,n,t){return gs(_,S,e,n,t)}function ke(e){var n=e-Ce;n<0||n>en.ed?Me.log(n):0<n&&(4==v?P(gi,n,vi):11==v?P(Ei,n,vi):2==v?(c&&P(Wi,n,Vi),P(ei,n,Qt)):9==v&&(c&&P(Fi,n,Vi),P(Zt,n,Qt))),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(pu(t),(i=i||[]).push([Za,m.id]),Te||(Te=!0,(u=q.some(function(e){try{return e(t,i,n,a)}catch(e){on(e,"extEventHandler")}}))||(u=(c=z&&z[n.nm])&&c(t,i,n,a)),Te=!1),!u){ke(t);for(var o,s,u,c,l=[[bi,Oe]],d=0;d<No.length;d++)s=f[(o=No[d]).ts],l.push([o,s?t-s:0]);_(l),null==S(Jt)&&gn&&(c=gn.downlink)&&_([[Jt,1e3*c]]),Le(n.rt,t),Le(2==a?n.rta:n.rtc,t),!n.on||n.mm&&!n.mm[S(Ca,2==a)]||(c=fn(u={},Xt),2==a?(Ss(E,$o,2,u),Ss(E,Po,2,c),Ss(p,$o,at,u),Ss(p,Po,at,c)):(Ss(p,$o,1,u),Ss(p,Po,1,c),Ss(E,$o,at,u),Ss(E,Po,at,c)),Tu(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(gt)}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(Ta),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===Ko?R!==c&&l&&((null==R?We:(p&&k(Lt,d),Ge))(d),R=c,N=T.end,Be(),y(l.concat([[po,N-R]])),He(d,T._a),k(dt,d,null,null,null,2),C=0,Se=d):null!=R&&(p&&k(Lt,d,null,null,null,2),Ge(d),je(d))),u===Ko)return void(l&&(Ue(f=e-c,10),E[pn.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(po),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,[[Vr,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?Ti:null,a,yi);else if(i=P(Ai,a,yi)/1e3,en.cq)for(Ee=Ee||en.cq.slice();null!=(o=Ee[0])&&o<=i;)Ee.shift(),g(xt,[[Fr,o]],xt.nm+o)}else if(D=e,a<0||a>en.ed)Me.log(a);else if(0<a&&(P(Si,a,yi),i=gs(y,ne,Ii,a)/1e3,en.aq))for(ge=ge||en.aq.slice();null!=(o=ge[0])&&o<=i;)ge.shift(),g(xt,[[Fr,o]],xt.nm+o)}}}function xe(e,n){null==d&&null!=e&&null!=M&&e!=M&&(d=M,k(Bt,n||sn()))}function Ve(e,n){null==h&&null!=e&&null!=D&&e!=D&&(h=D,k(Bt,n||sn()))}function Fe(e){oe&&k($t,e),oe=se=!1,be=1,d=M=null,Pe()}function We(e){var n,t,i="pre";S(Ai)>1e3*en.ep&&(n=S(pn),t=S(Ta),i=null!=n&&null!=t&&n+en.ep>t?"post":"mid"),ue=l=le=!1,ie(),_([[uo,cn()],[_o,i],[li,0]]),k(ut,e)}function je(e){Ie+=e-f[14],k(ct,e,null,null,null,2),_([[uo,null],[_o,null],[li,null]])}function Be(){le||(le=!0,y([[ho,a||cn()],[Ii,0]]),a=null)}function He(e,n){var t=Js[3];if(ue=!0,ve=ge=null,fu(di,1),P(li,1),rn(t))try{t(i,n)}catch(e){on(e,"onAdStart")}k(kt,e)}function Ge(e){if(ue){var n=Js[4];if(Ae+=e-f[9],rn(n))try{n(i)}catch(e){on(e,"onAdEnd")}}ue=l=le=!1,h=D=R=N=null,ie()}function ze(e,n,t,i){var r,a,o,s;e!=v&&(o=Q[v],r=Mu(v)+" => "+Mu(e),a=_n[e]||Oe,m.shallBlock("setState",r)||(o.tr[e]?(On("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 $e(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]=Qn(e[1],a.dv),a=S(a,i),null!=i&&i!=De()||null==a||null==e||(t?!e!=!a&&g(e?n:t):e!=a&&g(n,r=n==Ft?a<e?[[kr,"up"]]:e<a?[[kr,"down"]]:null:r))}}function qe(e){e[1]=Qn(e[1],e[0].dv)}t(0,[1,8]),t(1,[2,7,8,16],function(e){var n=Js[1];if(Fe(e),oe=!(ce=!1),de=Xo.test(S(ca)),Ie=Ae=0,_([[Kr,Z],[ii,e]]),Z=cn(),fu(hi,1),rn(n))try{n(i)}catch(e){on(e,"onContentSessionStart")}A=me,me=T=O=_e=null,R=N=null,fe=0,k(Mt,e)}),t(2,[3,4,5,7,8,16],function(e,n){(c=3==n)&&(P(xi,1,wi),k(Gt,e)),k(_t,e)},function(e){k(ht,e),c&&k(zt,e),c=!1,se||k(bt,e)}),t(3,[2,4,5,6,7,8,16],function(e){var n;se||(n=e-f[0],se=!0,he=Ee=null,fu(pi,1),k(kt,e,[[Br,n-Ie],[Hr,n-Ae]])),b=M=S(pn),ye=e,null!=d&&(k(Ht,e,[[Wr,1e3*d],[jr,null!=b?1e3*b:null]]),d=null),k(Ut,e),ce&&(ce=!1,k(jt,e)),I||Ne(e)},function(){b=null}),t(4,[2,3,5,6,7,8,16],function(e){ce||(ce=!0,k(Nt,e))}),t(5,[2,3,4,6,7,8,16],function(e){xe(S(pn),e)}),t(6,[2,3,4,5,7,8,16],function(e){k(Lt,e)}),t(7,[],function(e){Fe(e)}),t(8,[],function(e,n,t){k(It,e,t),Fe(e)}),t(9,[10,11,12,14,15,7],function(e,n){Be(),(c=10==n)&&(P(Ui,1,wi),k(Gt,e)),k(_t,e)},function(e){k(ht,e),c&&k(zt,e),c=!1}),t(10,[9,11,12,13,14,15,7],function(e,n,t,i){Be(),ue||He(e,i),C=D=ne(pn),Se=e,null!=h&&(k(Ht,e,[[Wr,1e3*h],[jr,null!=C?1e3*C:null]]),h=null),k(Ut,e),l&&(l=!1,k(jt,e)),I||Ne(e)},function(){C=null}),t(11,[9,10,12,14,15,7],function(e){l||(l=!0,k(Nt,e))}),t(12,[9,10,11,13,14,15,7],function(e){Ve(ne(pn),e)}),t(13,[9,10,17,7],function(e){k(Lt,e),Ge(e)}),t(14,[9,10,17,7],function(e){k(pt,e),Ge(e)}),t(15,[9,10,17,7],function(e,n,t){k(It,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=ki,w=ki;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;Gn(n)&&Gn(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:hn.MAX_VALUE,_e:a}),i}function Je(e,n){e=e&&e({type:In,ack:n,appSID:lu(Gr),ctSID:S(Kr)});e&&e["catch"](function(e){Tn("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(Kr)},nextContentSessionID:function(){return Z},playerState:function(){return Oe},destroy:function(){if(!m.destroyed){$e(7)&&ze(7,sn());for(var e=0;e<Y.length;e++)try{Y[e]()}catch(e){on(e,"extOnDestroy")}Au(m)}},setMetadata:function(e){return!!Ou(m,e)&&(_u(m.customMetadata,m.setData),!0)},annotateContentSession:function(e){return null==e?!(me=null):!!zn(e)&&(me=Xe(e.slice().sort(function(e,n){return e.start>n.start?1:-1})),!0)}}),Sn&&(t.dumpDzData=function(){var e=nn.assign(bu(m),p,E),n=Ca.nm;return e[n]=(De()||Re()?E:p)[n],dn(ln(e))}),Uu.forEach(function(e){try{e(t,m,$,Y,q,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?(An(i),t.destroy()):(null!=(n=r[gu])&&t.setMetadata(n),n=sn(),k(yt,n),k(wt,n),m.setTimer(function(){for(var e=0;e<$.length;e++)try{$[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(Ot,n,[[xr,++fe]]),I=n+en.hi,pe=!1):Pe())})),t}return 1&(G[e.nm]||0)&&(e=Ni),2&(G[w.nm]||0)&&(w=Ni),n(Ta,qe),re(po,qe),n(ua,function(e){var n=e[1];e[1]=n&&Zo[n]||n}),n(ca,function(e){de=Xo.test(e[1])}),n(pn,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(pn,function(e){12==v?Ve(e[1]):10==v&&Ue(e[1],10)}),n(e,L(Ft,null,!1)),re(w,L(Ft,null,!0)),n(ia,L(Rt,qt)),n(na,L(Tt,At)),n(Jr,L(vt,Et)),n(Da,L(Wt)),n(Ma,L(Wt)),n(ar,L(Kt)),n(ri,L(mt,null,!1)),re(ri,L(mt,null,!0)),n(ai,L(Yt)),n(la,L(Yt)),n($r,we),n(Yr,we),n(Mi,function(e){var n,t,i,r,a=e[1];a=a&&rn(a.getBoundingClientRect)?"visible"==En.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:Qn(a,Mi.dv),null!=(e[1]=a)&&_([[Ci,50<=a]])}),n(ti,function(e){var n=e[1];if(n&&rn(n.end)){var t,i,r=S(pn);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(bt,function(e,n,t,i){2==i&&(a=cn(),n.push([ho,a,!0]))}),ae(dt,function(e,n){a&&n.push([ho,a,!0])}),ae(It,function(e,n,t,i){fu(1==i?_i:mi,1,fi)}),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){ze(e,sn(),n,t)},canSetState:$e,reset:function(){$e(7)&&ze(7,sn()),te(),ie(),f=[],v=0,Oe=ku},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:De,isInSsaiAds:Re,onTimer:function(e){Ke=e},matchCtSource:function(e){return S(Ra)==e},reqCtSID:function(){return Ye()?Z:S(Kr)},reqTracer:function(e,a){e=wn(e,function(e){e["delete"]("CMCD")});var n,t=m.reqCtSID(),i=cn(),r=((a=nn.assign({},a||{},{sid:t}))[fs+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(n=S(Ia))&&(a.cid=n),{url:e,sid:t,rid:i,cmcd:a,start:sn()});return{reqID:i,urlBase:e,url:function(){var n=ms(a);return wn(e,function(e){e.append("CMCD",n[0].concat(n[1],n[2],n[3]).sort().join())})},headers:function(){for(var e={},n=ms(a),t=0;t<4;t++)n[t].length&&(e[es[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=ds[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(),Sn&&Cn("reqInfo",r)},end:function(e){var n=sn(),t=(r.end=null!=e?r.start+e:n,nn.assign({},ps,a)),i=[];nn.keys(t).forEach(function(e){var n=ds[e];n&&n[2]&&i.push([n[2],t[e]])}),k(Ct,n,i,null,null,1),Sn&&Cn("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!==In||Ye()||(m.setData([[$r,e.appSID],[Yr,e.ctSID]]),e.ack)||Je(n,!0)},sa:{}}),s&&_([[ra,s[1]]]),Ks&Hs&&_s((e=yn.options).cmcdEnable?e.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new vn(function(n,t){try{j(x,m,u).then(function(e){i=Qe(e),n(i)},function(e){An(e),t(e)})}catch(e){t(on(e,s[0]+" createTargetObject"))}}):vn.reject("Not implemented"):i=Qe(U)}),wu=function(e,o){var s=new(e||P);return o=o||k,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},Uu=[],xu="REQUEST_COMPLETE",Vu="SLOT_STARTED",Fu="SLOT_ENDED",Wu="AD_INITIATED",ju="AD_BUFFERING_START",Bu="AD_BUFFERING_END",Hu="AD_PAUSE",Gu="AD_RESUME",zu="AD_IMPRESSION",$u="AD_IMPRESSION_END",Yu="AD_COMPLETE",qu="AD_SKIPPED",Ku="AD_CLICK",Xu=(Uu.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([[Eo,m(n,"getTimePosition")]]),a&&(s([[pn,m(a,"getPlayheadTime")],[po,m(a,"getDuration")],[fo,m(a,"getAdId")],[lo,a._creativeId],[So,m(a,"getDealId")],[Io,m(a,"getSkipOffset")]]),n=m(a,"getActiveCreativeRendition"))&&(t=m(n,"getHeight"),s([[Li,m(n,"getWidth")],[Ni,t],[Pi,t?t+"p":null]])),e)&&(n=m(e,"getAdVolume"),i.setData([[ar,100*n],[ia,0==n]]))},l.on[xu]=function(e,n){n.success?u(Mt,null,2):u(It,null,2)},l.on[Vu]=function(e,n){a=null,o(16),l.update(e,n.slot)},l.on[Fu]=function(){o(17),a=null},l.on[Wu]=function(){s([[Oi,1]]),u(bt,null,2)},l.on[ju]=function(){o(9)},l.on[Bu]=l.on[Gu]=function(){o(10,null,a)},l.on[zu]=function(){o(10,null,a),u(dt,null,2)},l.on[Hu]=function(){o(11)},l.on[Yu]=function(){o(13),a=null},l.on[qu]=function(){o(14),a=null},l.on[$u]=function(){a=null},l.on[Ku]=function(){u(lt)},l.on["ERROR"]=function(e,n){o(15,[[Lr,n.errorCode],[wr,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=un(l.on),i.sa.fwContext=l,n.push(function(){r&&l.update(r)}),t.push(d),Nn({attachFwContext:function(e){var n;!i.shallBlock("attachFwContext",null,e)&&e!=r&&(d(),r=e)&&(n=E(Ze.tv,["freewheel","SDK"]),[xu,Vu,Fu,"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)})}),[Wu,ju,Bu,Hu,Gu,zu,$u,Yu,qu,Ku,"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"),Ju="waiting",Qu="playing",Zu="pause",ec="seeking",nc="seeked",tc="ended",ic="durationchange",rc="ratechange",ac="timeupdate",oc=(Uu.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([[la,!!e],[ai,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([[Ta,e.duration],[Zr,e.muted],[ea,e.playbackRate]]),f()),a.isInAds()||c([[pn,e.currentTime],[Oi,e.playbackRate],[Da,e.offsetWidth],[Ma,e.offsetHeight],[Mi,e],[ti,e.buffered],[ta,e.loop],[ia,e.muted],[ar,100*e.volume],[sa,e.readyState]])},m.on[Xu]=function(e){a.isIdle()&&(a.reset(),m.update(e,!0),i(1),i(2))},m.on[Ju]=function(e){m.update(e),i(2)},m.on[Qu]=function(e){m.update(e),a.isAdIdle()&&i(17),i(3)},m.on[Zu]=function(e){m.update(e),i(4)},m.on[ec]=function(e){m.update(e),i(5)},m.on[nc]=function(e){m.update(e),i(e.paused?4:3)},m.on[tc]=function(e){m.update(e),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(e){var n,t=e.error;t&&(n=[[Lr,t.code],[wr,t.message]]),m.update(e),i(8,n)},m.on[ic]=function(e){c([[Ta,e.duration]])},m.on[rc]=function(e){c([[Oi,e.playbackRate]])},m.on[ac]=function(e){m.update(e)},m.$on=un(m.on),a.sa.mediaElement=m,n.push(function(){u&&m.update(u)}),t.push(_),Nn({attachMediaElement:function(e){_(),(u=e)&&[[Xu,(e=[[tc,Zu,ec,Xu,Ju,nc,Qu]])[0]],[Ju,e[0]],[Qu,e[0]],[Zu,e[0]],[ec,e[0]],[nc,e[0]],[tc,e[0]],["error"],[ic],[rc],[ac]].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]),W(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"),sc="STARTED",uc="AD_PROGRESS",cc="AD_BUFFERING",lc="IMPRESSION",dc="PAUSED",pc="RESUMED",fc="COMPLETE",mc="LOADED",_c="ALL_ADS_COMPLETED",hc="SKIPPED",vc="VOLUME_CHANGED",Ec="AD_ERROR",gc={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"},yc=(Uu.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=[[Lr,e.getErrorCode()],[wr,e.getMessage()]],e=e.getInnerError())&&n.push([Ur,""+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],[yo,e.getAdvertiserName(),!0],[lo,e.getCreativeId(),!0],[So,e.getDealId(),!0],[po,e.getDuration(),!0],[Io,e.getSkipTimeOffset(),!0],[ki,e.getVastMediaBitrate(),!0],[Li,e.getVastMediaWidth(),!0],[Ni,t,!0],[Pi,t?t+"p":null,!0],[To,e.getWrapperAdIds(),!0],[Oo,e.getWrapperAdSystems(),!0],[Ao,e.getWrapperCreativeIds(),!0],[co,E(e,[/[a-z]/,"clickThroughUrl"]),!0]];return n&&t.push([Eo,n.getTimeOffset(),!0]),t}f.$update=f.update=function(e,n){a.isInAds()&&(n&&r(_(n)),e)&&(n=e.getVolume(),a.setData([[ar,100*n],[ia,0==n]]))},f.on[oc]=function(e){f.update(e),s(lt)},f.on[sc]=function(e,n){n=n.getAd();a.isInAds()||i(16),r([[Oi,1]]),f.update(e,n),i(10,null,n)},f.on[uc]=function(e,n){n=E(n.getAdData(),["currentTime"]);null!=n&&(f.update(e),9==a.getState()&&(null==d?d=n:d!=n&&i(10)),r([[pn,n]]))},f.on[cc]=function(e){f.update(e),i(9),d=null},f.on[lc]=function(e){f.update(e),s(dt,null,2)},f.on[dc]=function(e){f.update(e),i(11)},f.on[pc]=function(e){f.update(e),i(10)},f.on[fc]=function(e){f.update(e),i(13)},f.on[mc]=function(e,n){n=n.getAd();s(bt,n&&_(n),2)},f.on[_c]=function(){i(17),m()},f.on[hc]=function(e){f.update(e),i(14)},f.on[vc]=function(e){f.update(e)},f.on[Ec]=function(e,n){f.update(e),a.canSetState(15)?i(15,l(n)):s(It,l(n),2)},f.$on=un(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[Ec]=function(e,n){s(It,l(n),2)},h.$on=un(h.on),a.sa.imaAdsLoader=h,t.push(v),Nn({attachImaAdsManager:function(e){var n,t;!a.shallBlock("attachImaAdsManager",null,e)&&e!=o&&(m(),o=e)&&(e=E(Ze.google,["ima"]),n=E(e,["AdEvent","Type"],gc),[[oc],[sc,null,(t=[[sc,lc]])[0]],[uc],[cc],[lc,null,t[0]],[dc],[pc],[fc],[mc],[_c],[hc],[vc],[Ec,E(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]),W(function(){a.unstash(n)},0)):t(o,e))})}),s(Mt,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(e){a.shallBlock("attachImaAdsLoader",null,e)||e==p||(v(),(p=e)&&(e=E(Ze.google,["ima","AdErrorEvent","Type"],gc)[Ec])&&u(p,e,function(e){var n=h.on[Ec];n&&n(p,e)}))},detachImaAdsLoader:v},[e,a])}),Uu.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&&Hn(a="ID3"===e?r:a)&&((e={t:n})[i]=a,u.push(e),null!=c)&&p(c)}),Nn({attachImaDaiStreamManager:function(e){r.shallBlock("attachImaDaiStreamManager",null,e)||e==s||(d(),(s=e)&&(e=E(Ze.google,["ima","dai","api","StreamEvent","Type"]),u=[],e)&&(l(s,e.CUEPOINTS_CHANGED,function(e){r.isIdle()&&(e=E(e.getStreamData(),["cuepoints"]))&&e.length&&n.annotateContentSession(e.map(function(e){return{type:Ko,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:Ko,start:n,end:n+(e.getDuration()||0),_d:[[fo,e.getAdId()],[vo,e.getAdSystem()],[yo,e.getAdvertiserName()],[lo,e.getCreativeId()],[So,e.getDealId()],[Io,e.getSkipTimeOffset()],[Li,e.getVastMediaWidth()],[Ni,i],[Pi,i?i+"p":null],[To,e.getWrapperAdIds()],[Oo,e.getWrapperAdSystems()],[Ao,e.getWrapperCreativeIds()],[Eo,t?t.getTimeOffset():null]],_a:e}]))})))},detachImaDaiStreamManager:d},[n,r])}),yn.mediatailor=((ft=g.mediatailor)&&(ft.clientInfo+=" DZSDK "+en.cn+" v"+en.sv),ft),Uu.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),de<ce||We("MT onPlayheadUpdate: "+d+", "+p),u.onPlayheadUpdate(d,p||null))}),Nn({attachMediaTailorSession:function(e,n){var o,t,i,r,a;n=n||yn.mediatailor,!s.shallBlock("attachMediaTailorSession",null,e)&&n&&e!=u&&(m(),t=function(){var e=s.getData(ar);Gn(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(lt),f(o,13)},r[i.SKIP]=function(){s.fire(pt),f(o,12)},u=e)&&(a=n.PlaybackEvent,l={},[[a.START,kt,1],[a.END,$t,I],[a.PAUSE,Nt,I],[a.RESUME,jt,I],[a.MUTE,Rt,I],[a.UNMUTE,qt,I],[a.FULLSCREEN,Tt,I],[a.EXIT_FULLSCREEN,At,I]].forEach(function(r){l[r[1].nm]=function(e,n,t,i){r[2]&i&&u.onPlaybackEvent(r[0])}}),l[Kt.nm]=t,l[_t.nm]=function(){f(o,10)},l[ht.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:Ko,start:n,end:n+e.duration,_a:e,_d:[[fo,e.vastAdId],[vo,e.adSystem],[lo,e.creativeId],[Io,e.skipOffset],[Eo,e.availStart],[co,e.videoClickThrough]]})])},onAdLoad:function(e){var n,t,i,r,a;1===(o=e).playCount&&(n=e.adVerifications)&&(t={},i=[],r=s.getData(ar),a=e.skipOffset,Gn(r)&&(t["v"]=r),t["d"]=e.duration,t["ap"]=!!s.getData(Xr),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=E(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])}),Uu.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=T.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 C(r))||r instanceof C?3===r[0]&&(a=S(r,1,r.length)):a=r,Hn(a))&&g(n,i,a);else if("urn:yospace:a:id3:2016"===e){if(r instanceof C)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 C){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}}}}),Nn({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,kt,1],[n.STOP,$t,I],[n.PAUSE,Nt,I],[n.RESUME,jt,I],[n.STALL,Gt,I],[n.CONTINUE,zt,I]].forEach(function(r){d[r[1].nm]=function(e,n,t,i){r[2]&i&&p.onPlayerEvent(r[0],0)}}),d[Ht.nm]=function(){p.onPlayerEvent(n.SEEK,1e3*(m||0))},d[Rt.nm]=function(){p.onVolumeChange(!0)},d[qt.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),[[fo,e.getIdentifier()],[vo,a(e,"AdSystem")],[yo,a(e,"Advertiser")],[Io,0<n?n/1e3:n],[To,t],[Oo,i],[Ao,r]]),t=e.getLinearCreative(),i=(t&&n.push([lo,t.getCreativeIdentifier()],[co,t.getClickThroughUrl()]),e.getStart()/1e3);return{type:Ko,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])}),Uu.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))}),Nn({startOmidSessionClient:function(e){var c,l,d,p,f=g.OmidSessionClient,n=Bn.omidPartnerName,t=Bn.omidPartnerVersion;i.shallBlock("startOmidSessionClient",null,e=e||{})||(c=e.omidServiceWindow||Ze.self,l=e.videoElement,d=e.contentURL||L.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):An("Missing OM SDK library or parameters"))},stopOmidSessionClient:h},[e])}),yn.omidPartnerName=Bn.omidPartnerName,yn.omidPartnerVersion=Bn.omidPartnerVersion,"unsupportedDataList"),Sc="maxCtPlayheadInterval",Ic="maxAdPlayheadInterval",Ac={};function Tc(){if(!Nu){var e=Js[2];if(rn(e))try{e()}catch(e){on(e,"onPageUnload")}nn.keys(mn).forEach(function(e){mn[e].publicContext.destroy()}),Zs(!0),Nu=!0}}ni=[Pt="jw","JW Player",ni=function(l,d){var p,i={"hlsjs":"HLS","html5":"MP4","shaka":Jo,"flash_video":Qo,"flash_adaptive":Qo,"flash_sound":Qo};if(!l)return"Invalid player";function e(e,n){d.addListener(l,e,n,"on","off")}function n(e,n){d.addListener(l,e,n,"on","off")}function t(){var e=E(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();return e&&e.getCurrentSession()}function r(e){var n=t();return n&&n.sendMessage(ie,e)}function a(e){var n,t,i,r,a,o,s,u,c=l.getConfig();e&&(e=[],(n=l.getPlaylistItem())&&(t=n.file,i=n.title,r=n.description,a=n.tags),a=a||c.tags,t&&e.push([Ra,t]),null!=i&&e.push([Na,i]),null!=r&&e.push([Aa,r]),a&&e.push([ba,a]),d.setData(e)),d.isIdle()||(n=l.getCurrentTime(),t=l.getDuration(),i=l.getVisualQuality(),r=E(c,["streamType"],"").toUpperCase(),a=l.getCurrentAudioTrack(),o=0<(e=l.getCurrentCaptions()),s=E(i,["level","height"]),u=E(i,["level","bitrate"])/1e3,null!=p&&d.setData([[Di,n+p]]),d.setData([[pn,n],[Ta,t||0],[ta,E(c,["repeat"])],[ki,u],[Li,E(i,["level","width"])],[Ni,s],[Pi,s?s+"p":null],[Oi,l.getPlaybackRate()],[ri,0<=a?E(m(l,"getAudioTracks"),[a,"name"]):null],[ai,o?l.getCaptionsList()[e].label:null],[la,o]]),c.streamType&&d.setData([[ca,"VOD"==r?"VOD":"Live"]]),rn(l.getViewable)&&d.setData([[Ci,1===l.getViewable()]]),rn(l.getPercentViewable)&&d.setData([[Mi,100*l.getPercentViewable()]]))}function o(){d.setAdData([[ri,null]]),rn(l.getViewable)&&d.setData([[Ci,1===l.getViewable()]]),rn(l.getPercentViewable)&&d.setData([[Mi,100*l.getPercentViewable()]])}d.setData([[aa,l.version]]),e("playlistItem",function(){d.isIdle()||d.reset()}),e("cast",function(e){e=e.active;d.setData([[Jr,e]]),e&&(d.removeListeners(null,ie),d.addListener(t(),ie,function(e,n){d.handleCastMessage(dn(n),r)},"addMessageListener","removeMessageListener"),d.initCastTransfer(r))}),e("meta",function(n){var e,t,i=n.metadataType,r=n.metadata;r&&("program-date-time"===i?(e=r.start,t=(t=r.programDateTime)&&new A(t).getTime(),null!=e&&t&&(p=t/1e3-e)):"id3"===i?nn.keys(r).forEach(function(e){d.updateTimedMetadata("ID3",n.metadataTime,null,e,r[e])}):"emsg"===i&&d.updateTimedMetadata(r.schemeIdUri,r.start,r.end,null,r.messageData))}),e("beforePlay",function(){var e=l.getConfig(),n=l.getProvider(),t=E(e,["autostart"]);null!=l.getPlaylist()&&!t&&1<=l.getPlaylist().length&&(t=0!=l.getPlaylistIndex()),d.isIdle()&&(d.reset(),d.setData([[Zr,l.getMute()],[ua,i[E(n,["name"])]],[oa,E(e,["setupConfig","preload"])],[Ia,E(e,["playlistItem","mediaid"],"")],[ea,E(e,["defaultPlaybackRate"])],[Xr,t]]),a(!(p=null)),d.setState(1))}),e("buffer",function(){a(!0),d.setState(2)}),e("time",function(){a()}),e("idle",function(e){l.getConfig().castActive&&(a(),d.setState(7))}),e("play",function(){l.getConfig().castActive&&d.isIdle()&&(d.setState(1),d.initCastTransfer(r),d.setState(2)),d.isInAds()||(a(),d.setState(3))}),e("pause",function(){a(),d.setState(4)}),e("seek",function(){a(),d.setState(5)}),e("complete",function(){a(),d.setState(6)}),e("error",function(e){var n=[];e&&(n.push([wr,e.message]),n.push([Lr,e.code])),a(),d.setState(8,n)}),e("levelsChanged",function(){a(),d.fire(Vt)}),e("fullscreen",function(){W(a,200)}),e("mutechange",a),e("volumechange",a),n("adRequest",function(){d.fire(Mt,null,2)}),n("adTime",function(e){var n=E(e,["ima","ad",/[a-z]/,"vastMediaHeight"],null);d.setAdData([[pn,e.position],[po,e.duration],[ki,E(e,["ima","ad",/[a-z]/,"vastMediaBitrate"],null)],[Li,E(e,["ima","ad",/[a-z]/,"vastMediaWidth"],null)],[Ni,n],[Pi,n?n+"p":null]]),o()}),n("adBreakStart",function(){o(),d.setState(16)}),n("adBreakEnd",function(){o(),d.setState(17)}),n("adClick",function(){o(),d.fire(lt)}),n("adLoaded",function(){d.fire(bt,null,2)}),n("adPlay",function(){o(),d.setState(10)}),n("adPause",function(){o(),d.setState(11)}),n("adStarted",function(){d.setAdData([[Oi,1]]),o(),d.setState(10)}),n("adSkipped",function(){o(),d.setState(14)}),n("adImpression",function(e){o(),e&&d.setAdData([[co,e.tag],[lo,E(e,["ima","ad",/[a-z]/,"creativeId"])],[fo,E(e,["ima","ad",/[a-z]/,"adId"])],[mo,e.client],[vo,e.adsystem],[Oo,E(e,["ima","ad",/[a-z]/,"adWrapperSystems"],[])],[Eo,E(e,["ima","ad",/[a-z]/,"adPodInfo","timeOffset"])],[So,E(e,["ima","ad",/[a-z]/,"dealId"])],[Io,E(e,["ima","ad",/[a-z]/,"skipTimeOffset"])],[Ao,E(e,["ima","ad",/[a-z]/,"adWrapperCreativeIds"],[])],[To,E(e,["ima","ad",/[a-z]/,"adWrapperIds"],[])],[yo,e.advertiser]]),d.fire(dt,null,2)}),n("adError",function(e){var n;e&&(n=[[wr,e.message],[Lr,e.adErrorCode],[Ur,E(e,["sourceError","stack"])]]),o(),d.setState(15,n)}),n("adComplete",function(){o(),d.setState(13)}),d.onTimer(function(){var e,n=l.getConfig();n&&(e=n.autostart,n=l.getPlaylist())&&!e&&1<=n.length&&(e=0!=l.getPlaylistIndex()),(d.isInAds()?o:a)(),d.setData([[Da,l.getWidth()],[Ma,l.getHeight()],[na,l.getFullscreen()],[ia,l.getMute()],[ar,l.getMute()?0:l.getVolume()],[Xr,e],[Qr,l.getControls()]])})},function(e,r,n){var t,i,a=e[1];function o(n,e){var t,i=r.reqTracer(e);n.addEventListener("readystatechange",function(){var e=this.readyState;1==e?i.start():2==e?(i.status(this.status),i.resp()):4==e&&i.end()}),ls?(t=i.headers(),i.urlBase!=e&&n.open("GET",i.urlBase,!0),nn.keys(t).forEach(function(e){n.setRequestHeader(e,t[e])})):n.open("GET",i.url(),!0)}cs&&a&&(S.isArray(a.playlist)?(a=un(a)).playlist=a.playlist.map(function(e){return(e=un(e)).sources?e.sources=e.sources.map(function(e){return(e=un(e)).onXhrOpen=o,e}):e.file&&(e.sources=[{file:e.file,onXhrOpen:o}],delete e.file),e}):a.file&&!a.playlist&&((a=un(a)).playlist=[{sources:[{onXhrOpen:o}]}],t=a.playlist[0],["description","image","mediaid","title"].forEach(function(e){a[e]&&(t[e]=a[e],delete a[e])}),i=t.sources[0],["file","type"].forEach(function(e){a[e]&&(i[e]=a[e],delete a[e])})));n=n.jwplayerFunction||Ze.jwplayer;return n?vn.resolve(n(e[0]).setup(a)):vn.reject("Missing jwplayer function")},Ru],Du=Du||ni,Ac[Pt]=ni;var Oc=!0;function bc(t){if(!Pu){if(!(en.ci||xn(ee,te)||t&&t[te]))return!1;t&&(ee=wn(ee,function(n){nn.keys(t).forEach(function(e){n.set(e,t[e])})}),fe()),Oc&&(Oc=!1,mu(St,sn()));var e=xn(ee,"env");en.cf="staging"===e||"dev"===e||"sandbox"===e?e:"",en.ci=xn(ee,te)||en.ci,en.om=null,v([[cr,en.ci]]),ou(),Pu=!0}return!0}function Cc(e){e()}function Mc(e,n,t){$n(t)||(null!=t&&an("Invalid contextOptions",t),t={});var i,r,a,o,s=t[vu];return s&&s!==Su[1]?s===Su[yu]?(r=(i=Cu()).publicContext,a=t[gu],i.name=t[Eu],null!=a&&r.setMetadata(a),i.fireEvent(yt,sn()),r):(An(a="Unknown context type: "+s),n?vn.reject(a):(o=a,{getError:function(){return o}})):Lu(e,n,t)}m(Ze,"addEventListener",["pagehide",Tc]),"Safari"==Ls&&m(Ze,"addEventListener",["beforeunload",function(e){W(function(){e.defaultPrevented||e.returnValue||Tc()},0)}]),Tn("Datazoom SDK "+en.sv+" ("+en.cn+") DDv3"),F(function(){Iu.length?Iu.forEach(Cc):sn()},en.ti),nn.assign(yn,{init:bc,setLogLevel:pe,createContext:function(e,n){return Mc(e,null,n)},createBaseContext:function(e){return(e=$n(e)?un(e):{})[vu]=Su[yu],Mc(null,null,e)},createContextAndTarget:function(e){for(var n=[],t=1;t<arguments.length;t++)n.push(arguments[t]);return Mc(null,n,e)},createCollectorProxy:function(e,n,t){return e&&e!==Su[1]?(An("Unsupported context type: "+e),null):wu(n,t)},adapterIDs:function(){return nn.keys(Ac)},contexts:function(){return nn.keys(mn).map(function(e){return mn[e].publicContext})},playerContexts:function(){return nn.keys(mn).filter(function(e){return 1==mn[e].type}).map(function(e){return mn[e].publicContext})},setMetadata:function(e){return!(null!=e&&!$n(e)||(_u(Is=dn(ln(e)),v),_(f,Ee,Is),0))},getMetadata:function(){return dn(ln(Is))},generateEvent:function(e,n,t){t=!t&&nn.keys(mn)[0];t?mn[t].publicContext.generateEvent(e,n):mu({ap:st,nm:K+e,on:Uo},sn(),null,n)},on:function(e,n){Js[e]=n},appSessionID:function(){return Ts},generateUUID(){return cn()},sdkEvent:{APP_SESSION_START:Xs,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:Ko,PROMO:"promo"},overridableMetadata:jo,name:en.cn,version:en.sv,dictionaryVersion:3}),Dc||W(bc,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 z(e,H.SESSION_SERVICE)}function z(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 $(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 D=function(e){l.call(this,e),this.communicationType_=r.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,l),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.handleExportedMessage(e.serialize(),this)},D.prototype.handleExportedMessage=function(e,n){c.isValidSerializedMessage(e)&&this.handleMessage(c.deserialize(e),n)},D.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||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[r.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,n[r.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,n[e]}});function q(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 q(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(q(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(!M(n))try{var r=J(n,t);if(r)return new D(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($(),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=$();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 O,b,C,M,D={d:function(e,n){for(var t in n)D.o(n,t)&&!D.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},R={};D.d(R,{default:function(){return T}});let o=1,t=2,i=4,r="[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,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 P(e,n){N(o,u,e,n)}function Me(e,n){N(t,p,e,n)}function De(e,n){N(i,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 Re(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(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}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",z="ad_click",$="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,q=1,K=2,X=3,J=4,Q=5,Z=6,ee=7,ne=8,te=9,ie=10,re=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(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),De(`XHR (${i} ${r}, #${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(De(`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 Me(`XHR (${r}) failed (status ${e}), retry in ${t} ms`,n)}o&&o(n,e,r)}},d(),{abort(){l=!0,s.abort(),De(`XHR (${r}) aborted`)}}}function ke(e,n,t){return U("GET",e,null,n,t)}let Oe="clickThrough",ue=[],ce=(ue[Y]=["impression"],ue[q]=["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[ie]=["resume"],ue[re]=["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 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 De(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[,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):De(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=z]="AD_CLICK",O[O.AD_CAN_SKIP=$]="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(r,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,D=[],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(he,{failedAdTrackingInfoRequest:e})},onAdStart(e,n,t){var i,r;a=(r=n,t=t,{adData:Re(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(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($,{adObject:a}))},onAdClick(e){u(z,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart(e,n,t){r={adData:Re(e)},u(me,{nonLinearAdsObject:r,adElapsedTime:n})},onNonLinearAdsEnd(e){u(_e,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}})();function N(t,i){let e=D.length;for(let n=0;n<e;n++){let e=D[n];e[t]?.apply(e,i)}}function P(e,n){n=n||d,De(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&&De(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]),m?.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 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 r=xe(e.startTimeInSeconds),a=xe(e.durationInSeconds),o=Ve(e.availProgramDateTime);o=(o?new Date(o).getTime()/1e3:u?new Date(u).getTime()/1e3+r:0)||0,d(!1,e,r,a,o);var t=null!=r?c[""+r]:null;let n="",s=Ue(e.ads);s?.forEach(e=>{Le(e)&&(n+=e.startTime+`,${e.duration};`)});var i=n!==t;if(De(ce+"Avail"+(i?"*":"")+` (${e.duration} @ ${e.startTime} / ${e.availProgramDateTime})`,e),i){let i=s?.length;null!=r&&(c[""+r]=n),De(`BLAH ${t} -> `+n),l(0,0,i,r,a,o,null,!1,!1,!0),s?.forEach((e,n)=>{var t;Le(e)?null!=(t=xe(e.startTimeInSeconds))?(De(ce+`Ad #${n+1} of ${i} `+`(${e.duration} @ ${e.startTime} / ${e.adProgramDateTime})`,e),l(t,n,i,r,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)?(De(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&&De(ce+`nextToken "${e}"`),e;function d(e,n,t,i,r){n=Ue(n.nonLinearAdsList)?.[0];n&&(Le(n)?null==t?Me(ce+"Invalid or missing nonlinear ad start time",n):(De(ce+"nonLinearAds",n),l(t,0,1,t,i,r,n,!0,e,!1)):Me(ce+"Invalid nonLinearAds object",n))}}else Me(ce+"Invalid tracking-info response")})(e,F,(n,t,i,r,a,o,s,u,c,e)=>{if(null!=r&&o&&(O=o-r),u){if(((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})(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}),De(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!=r&&null!=a){let e=r+a,n=((e,n,t)=>{var i=n?.length||0;if(0<i){var r=Ne(e,n,t);if(r<0)return 0;if(0===t(e,n[r]))return r;if(++r<i)return r}return-1})(r,h,_),t=n;if(0<=n){for(;t<h.length&&!(h[t].start>=e);t++);t>n&&(De(`BLAH remove ad ${n} to `+(t-1),h),h.splice(n,t-n),f=!0)}}}else{let e=((e,n,t,i,r,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,i=t?.getElementsByTagName("JavaScriptResource"),r=t?.getElementsByTagName("VerificationParameters"),a=t?.getAttribute("vendor"),o=Fe(i?.[0]),s=Fe(r?.[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){i="<root>"+e.content+"</root>";try{let e=le.parseFromString(i,"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: "+i,e)}}}),Object.assign(l,{start:e,startDate:s||0,duration:o,skipOffset:c,availAdIndex:n,availAdCount:t,availStart:i,availDuration:r,inAvailStartOffset:null!=i?e-i:null,playCount:0}),l.videoClickThrough=null,l.trackingEvents=l.trackingEvents?.filter(e=>e.eventType!==Oe||((e=e.beaconUrls[0])&&(l.videoClickThrough=e),!1)),De(ce+`New AdData (${o}s @ ${e}s / ${s})`,l),l):(Me(ce+"Missing required fields for AdData",a),null)})(n,t,i,r,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)),i(e,n)})}function w(e,n,t,i){let r,a,o;var s=i?"startDate":"start",t=Ne(t,n,i?c:_);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),De(u+`Update time range (${a} - ${o}), `+e+" ad index "+t,r),[r,a,o]}function i(e){e&&D.indexOf(e)<0&&D.push(e)}return 0<=s&&L(0),i(R),i((a=>{let o={},r=null;return{onAdLoad(e){r={},e.trackingEvents?.forEach(e=>{r[e.eventType]=e})},onAdEnd(e){r=null},onAdTrackingEvent(t,e){var i=ue[e];if(r&&1===t.playCount&&i){let n=i.length;for(let e=0;e<n;e++)((i,r)=>{var n=r?.beaconUrls;if(n){var t=n.length;for(let e=0;e<t;e++)ke(n[e],o,(e,n,t)=>{a(i,r,t,n)})}})(t,r[i[e]])}}}})((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&&!m&&(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>=E)&&([g,p,E]=w("linear",h,t,n)),d),r=t-p;if((d=g&&t<p+g.duration?g:null)===i){if(d&&(De(u+"Ad progresses, time => "+r),N("onAdProgress",[d,r,e]),r>M)&&r<M+j){let e=d.duration,n=M/e;var a=(M=r)/e;n<.25&&.25<=a&&P(J),n<.5&&.5<=a&&P(Q),n<.75&&.75<=a&&P(Z)}}else i&&(M+j>i.duration&&P(ee,i),De(u+"Ad ends",i),N("onAdEnd",[i])),M=0,d&&(d.playCount++,n&&De(u+`PDT offset => player ${n-e}, ad `+(d.startDate-d.start),d),De(u+"Ad loads",d),N("onAdLoad",[d]),P(K),De(u+"Ad starts, time => "+r,d),N("onAdStart",[d,r,e]),P(X),P(Y));if(!d){let e=E-t;e<=U&&R.dispatchEvent(fe,{timeToNextAd:e})}(null==y||t<y||t>=S)&&([I,y,S]=w("nonlinear",v,t,n));a=f,i=t-y;(f=I&&t<y+I.duration?I:null)!==a&&(a&&(De(u+"Nonlinear ad ends",a),N("onNonLinearAdsEnd",[a])),f)&&(n&&De(u+`PDT offset => player ${n-e}, nonlinear ad `+(f.startDate-f.start),f),De(u+"Nonlinear ad starts, time => "+i,f),N("onNonLinearAdsStart",[f,i,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(ie);break;case Se:P(re);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(q))},onAdSkip:function(){d&&P(ne)},addAdObserver:i,removeAdObserver:function(e){e&&0<=(e=D.indexOf(e))&&D.splice(e,1)},getAllAds:function(){return h.map(e=>Re(e))},getAllNonLinearAds:function(){return v.map(e=>Re(e))},addEventListener(e,n,t){R.addEventListener(e,n,t)},removeEventListener(e,n,t){R.removeEventListener(e,n,t)}}}de[Y]="IMPRESSION",de[q]="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[ie]="RESUME",de[re]="MUTE",de[ae]="UNMUTE",de[oe]="FULLSCREEN",de[se]="EXIT_FULLSCREEN",(M={})[M.IMPRESSION=Y]="IMPRESSION",M[M.CLICK_THROUGH=q]="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=ie]="RESUME",M[M.MUTE=re]="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(r,e,a,o){let s,u=null,c=r.trackingUrl,l=r.sessionInitUrl,n=r.sessionInitHeaders,d=r.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,r),a(f,"Session initialized elsewhere");else if(l){let t=L(r.originParams)||{},i=r.sessionFeatures;i&&A.forEach(e=>{var n=i[e];null!=n&&(t[e]=n)});var m,_,h,v,E=L(r.playerParams)||{},E=(E.device_sdk_info||=T.clientInfo,p&&(E.givn=p),t.playerParams=E,{}),g=(n&&(E.headers=n),De(`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,r),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,i,r,a){let o="createSession: ";function s(e,n,t){De(o+n,t),i?i(e,null):r(e)}function u(e,n){var t={code:e,message:n};P(o+`(${e}) `+n),i?i(null,t):a(t)}if(t){let e=t.palNonceRequestParams;if(t.trackingUrl||t.palNonceManager||!e)return F(t,null,s,u);let n=(i=>{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=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?De(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=>{De(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 i=k("goog")?.pal,r=i?.NonceLoader,i=i?.ConsentSettings;if(!r||!i)return P(e+"Missing PAL SDK classes"),!1;{let e=new i;e.allowStorage=t.allowStorage??!1,n=new r(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<=i?a=e:console.warn(r+"Invalid log level: "+e)},LogLevel:s,getSdkVersion:()=>y,clientInfo:"MTSDK v"+y}),T=S;return R.default}},"object"==typeof t?t.mediatailor=n():e.mediatailor=n(),s.mediatailor=t.mediatailor,s)),Dc&&(module.exports=Dc.datazoom)})();
|
|
1
|
+
!function(){var n,e,t,s,pc="object"==typeof module?{}:null,mc=window.URL,vc=window.URLSearchParams,_c=window.EventTarget,hc=window.CustomEvent;!function(ne,ee,E){"use strict";var y,p,te=ne.Object,S=ne.Array,A=ne.Date,_e=ne.Number,T=ne.String,O=ne.RegExp,ie=ne.Math,b=ne.XMLHttpRequest,C=ne.Uint8Array,M=ne.ArrayBuffer,D=ne.JSON,he=ne.Promise,ge=ne.document||{},n=ge.currentScript||{},R=ne.location||{},N=ne.navigator||{},P=N.userAgent||"",Ee=N.connection||N.mozConnection||N.webkitConnection,k=ne.crypto,w=ne.console||{},e=ne.performance,L=ne.setInterval,U=ne.setTimeout,x=(ne.clearInterval,ne.decodeURIComponent),V=ne.encodeURIComponent;try{y=ne.localStorage,p=ne.sessionStorage}catch(n){}function F(t){return t?function(n,e){n="[DZ] "+n,void 0===e?t.call(w,n):t.call(w,n,e)}:null}var t=F(w.log)||function(){},W=F(w.error)||t,j=F(w.warn)||t,B=F(w.info)||t,H=F(w.debug)||t,ye={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},z="datazoom_",t="__"+z+"rootobj",G="custom_",q="v_";if(ye[t]=1,pc)pc.datazoom=ye;else{if(Ue(ne.datazoom)){if(ne.datazoom[t])return j("Collector already loaded");j("Overwriting window.datazoom")}ne.datazoom=ye}function g(e,t,n){var i,r=t.shift();return null==r?i=e:e?r instanceof O?te.keys(e).some(function(n){if(r.test(n))return null!=(i=g(e[n],t.slice()))}):i=g(e[r],t):i=null,null!=i?i:n}function re(n){return"function"==typeof n}function Y(n,e){if(re(n))try{return new(n=e?n.bind.apply(n,[null].concat(e)):n),1}catch(n){}}Y(mc,["http://x.io"])&&Y(vc)||(vc=function(n){var i=[];function t(n,e){!1!==e&&i.push([n,e])}function r(e){i=i.filter(function(n){return n[0]!==e})}n&&n.slice(1).split("&").forEach(function(n){n=n.split("=");try{i.push([x(n[0]),null==n[1]||x(n[1])])}catch(n){oe(n,"URLSearchParams()")}});n=this;n.append=t,n["delete"]=r,n.set=function(n,e){r(n),t(n,e)},n.get=function(e){var t=null;return i.some(function(n){if(n[0]===e)return t=n[1],!0}),t},n.toString=function(){return i.map(function(n){var e=V(n[0]);return!0===n[1]?e:e+"="+V(n[1])}).join("&")}},mc=function(n){var e=this,n=n.split("?"),t=n[0],n=n[1]?"?"+n[1]:"";e.search=n,e.searchParams=new vc(n),e.toString=function(){return t+e.search}}),Y(_c)&&Y(hc,["x"])||(_c=function(){var t=this,i={};t.addEventListener=function(n,e){var t=i[n];t||(i[n]=t=[]),t.push(e)},t.removeEventListener=function(n,e){var t=i[n];t&&(i[n]=t.filter(function(n){return n!=e}))},t.dispatchEvent=function(e){var n=i[e.type];n&&n.forEach(function(n){U(function(){n.call(t,e)},0)})}},hc=function(n,e){this.type=n,e&&(this.detail=e.detail)}),ee=te.assign({},{cn:"JW Player (MT/OM)",sv:"2.27.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.5,ep:2,ed:2500,ec:_e.MAX_VALUE,cc:"",cl:"",ci:"",cd:[],og:!0,os:!0,tt:!1,om:!1,ps:null,sn:["IDLE","CT_REQUESTED","CT_BUFFERING","CT_PLAYING","CT_PAUSED","CT_SEEKING","CT_COMPLETED","CT_STOPPED","CT_ERROR","AD_BUFFERING","AD_PLAYING","AD_PAUSED","AD_SEEKING","AD_COMPLETED","AD_SKIPPED","AD_ERROR","AD_BREAK_STARTED","AD_BREAK_ENDED"],le:function(n){var e=n.event,t=n.video;Oe("[Event] "+e.type+(t?" ("+t.media_type+")":"")+" @"+e.timestamp,le(n))}},ee||{});var o,K,Se,X={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:""},J=!pc&&n.src||"/",$=R.href||"https://localhost",Q="configuration_id",Z="urn:x-cast:io.datazoom.collector",Ie="transfer",nn=0,en=1,tn=2,rn=3,an=4,on=5,sn={off:nn,error:en,warning:tn,info:rn,debug:an,verbose:on},un=tn;function cn(n){var e;n&&(e=sn[n],nn<=(e=null!=e?e:+n)&&e<=on?un=e:j("Invalid log level: "+n))}function ln(){o={},K=[],[[ee.ps],[J.split("?")[1]],[$.split("?")[1],z]].forEach(function(n){var i=n[1];n[0]&&n[0].split("&").forEach(function(n){try{var e=n.split("="),t=x(e[0]);if(i){if(!t.startsWith(i))return;t=t.slice(i.length)}o[t]=null==e[1]||x(e[1]),t.startsWith("x-")&&K.push([t,o[t]])}catch(n){j("Invalid query string: "+n.message)}})}),Se="true"==o.demo,cn(o.log)}ln();var dn="io.datazoom.",fn=dn,pn="__ss_ev_count",mn="__ss_last_act",vn="__ss_custom_md",_n="__ss_msg_queue",hn="__ss_sm_resp",gn="__ss_appss_to",En="collector_observability",yn="process_duration_ms",Sn="send_duration_ms",In="call_duration_ms",An="queue_duration_ms",Tn="attempt_count",On="attempt",bn="status_code",Cn="sample",Mn="config",Dn="log";function Rn(n,e,t,i){un<n||e(t,i)}function Ae(n,e){Rn(en,W,n,e)}function ae(n,e){Rn(tn,j,n,e)}function Te(n,e){Rn(rn,B,n,e)}function Oe(n,e){Rn(an,H,n,e)}function Nn(n,e){Rn(on,H,n,e)}function oe(n,e){e="[Exception] "+(e?"("+e+") ":"")+n;return Ae(e,n),e}function be(t,i,r,a,o){var s,u=0,c=1,l=0;return i=i||"",r=r||1,a=a||_e.MAX_VALUE,{log:function(n,e){o&&(s=se())>=l+o&&(u=0,c=1,l=s),++u>=c&&(t("["+u+"] "+i+n,e),c+=ie.min(c*r,a))}}}function Ce(n,e){m(ne,"postMessage",[{type:n,data:e},"*"])}var Pn,se,kn,wn,Ln,Un,xn=[],Vn=0;function Fn(n,e,t,i,r,a,o,s){var t={time:t,metric_name:i,dimension:{},batch:function(){return a}},u=(n&&(t.type=n),null!=r&&(t.metric_value=r),t.dimension);return e&&(u.target=e),s&&s.forEach(function(n){u[n[0]]=n[1]}),o&&(u["b4_ss"]=!0),t}function Wn(i,r,a,o){var s=r,u=1,c=Vn++;return{retry:function(n){s=n,u++},log:function(n,e){var t;ee.og&&(null!=a&&xn.push(Fn(null,i,t=r-a,yn,n-t,c,o,[[Tn,u],[bn,e]]),Fn(null,i,t,An,a,c,o)),xn.push(Fn(null,i,r,Sn,n-r,c,!1,[[Tn,u],[bn,e]]),Fn(null,i,s,In,n-s,c,!1,[[On,u],[bn,e]])))}}}function jn(n,e){var t,i;ee.os&&(i=n.t,i=ie.trunc(i/6e4),(i=(Pn=Pn||{})[i]||(Pn[i]=[0,0,0]))[2]++,t=(i=i[3]||(i[3]={}))[e],n=ss(n.m,or),t?t.push(n):i[e]=[n])}function Bn(n){var e,t=Pn[n],i=Vn++;t[2]&&(t[3]&&(e=[["status_codes",t[3]]]),xn.push(Fn("loss",null,6e4*+n,"evnt_fail",t[2],i,!1,e)))}function ue(n){return n&&(Le(n)?n.slice():te.assign({},n))}function Hn(n,e){return Ue(e)?n?te.assign({},n,e):e:n}function zn(n,e){var t;return e?((t={})[n]=e,t):null}function Gn(t,i){var r;return i?t?(r=ue(t),te.keys(i).forEach(function(n){var e=t[n];r[n]=e?te.assign({},e,i[n]):i[n]}),r):i:t}function m(n,e,t,i){e=g(n,[e],i);return re(e)?e.apply(n,t):null}function qn(n,e,t){return function(){try{return e.apply(n,arguments)}catch(n){oe(n,t)}}}function Yn(t,n){te.keys(t).forEach(function(e){n.forEach(function(n){n[e]=qn(n,t[e],e)})}),n[0]}function Kn(n){var e={};return n.forEach(function(n){e[n.nm]=n}),e}function Xn(n){var e={};return n.forEach(function(n){e[n.nm]=!0}),e}function Jn(n,e,t){n.forEach(function(n){n[e]=t})}function Me(n,e){var n=new mc(n,$),t=new vc(n.search);return e(t),n.search="?"+t.toString(),n.toString()}function $n(n){var e,t=K.length;return t?Me(n,function(n){for(e=0;e<t;e++)n.append(K[e][0],K[e][1])}):n}function Qn(n,e,t){var i;return null!=(i=n?new mc(n,$).searchParams.get(e):i)?i:t}kn=0,wn=ee.ec,Ln=be(ae,"Abnormal clock increment: ",.2,1e3,3e5),e&&e.now,Un=kn+A.now(),se=function(n){var e=A.now(),t=Un,i=(Un=kn+e)-t;return(i<0||wn<i)&&(Un=t+ee.ti,kn=Un-e,Ln.log(i)),Un};var ce=function(){for(var t=[],n=0;n<256;n++)t.push((n+256).toString(16).substr(1).toLowerCase());return function(){var n=new C(16);if(k&&k.getRandomValues)k.getRandomValues(n);else{ae("getRandomValues() not supported");for(var e=0;e<16;e++)n[e]=ie.floor(256*ie.random())}return n[6]=15&n[6]|64,n[8]=63&n[8]|128,t[n[0]]+t[n[1]]+t[n[2]]+t[n[3]]+"-"+t[n[4]]+t[n[5]]+"-"+t[n[6]]+t[n[7]]+"-"+t[n[8]]+t[n[9]]+"-"+t[n[10]]+t[n[11]]+t[n[12]]+t[n[13]]+t[n[14]]+t[n[15]]}}();function Zn(n,e,t,i,r,a){var o=new b;if(o.open(n,e,!0),null!=a&&(o.timeout=a),t)for(var s=te.keys(t),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 le(n){if(n)try{return D.stringify(n)}catch(n){oe(n,"toJSON")}return null}function de(n){if(n)try{return D.parse(n)}catch(n){oe(n,"fromJSON")}return null}function De(n,e){return(n===p?fn:dn)+e}function v(n,e,t){if(n)if(null==t)Ne(n,e);else try{n.setItem(De(n,e),le({v:t}))}catch(n){oe(n,"storageSet")}}function Re(n,e){n=n?de(n.getItem(De(n,e))):null;return n?n.v:null}function Ne(n,e){n&&n.removeItem(De(n,e))}ne.self!==ne.top&&Oe("Page loaded in a frame, set sessionStorage prefix to: "+(fn+=(o.frame_id||ce())+"."));var Pe=de('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function ke(n){return"string"==typeof n}function we(n){return _e.isFinite(n)}function Le(n){return S.isArray(n)}function Ue(n){return null!=n&&"object"==typeof n&&!Le(n)}function xe(n){return ke(n)?n:""+n}function Ve(n){return we(n=+n)?n:null}function Fe(e,t,i){return null==e&&null==t?Ve:function(n){return null!=(n=Ve(n))&&(null!=e&&n<e?n=i?null:e:null!=t&&t<n&&(n=i?null:t)),n}}function We(n){return ie.round(n)}function je(n,e){for(var t=0;t<e.length;t++)!function(n){for(var e=n,t=1;t<arguments.length;t++)e.dv||(e.dv=[]),e.dv.push(arguments[t])}(e[t],n)}function Be(n,e){if(e)for(var t=0;t<e.length&&null!=n;t++)n=e[t](n);return n}var He,ze,Ge,qe,Ye=4,Ke=8,Xe=16,Je=32,I=65535,$e=Ye,t=1|Xe,n=Ye|Xe,e=n|Je,r=Ke,Qe={ap:2,nm:"ad_break_start"},Ze={ap:2,nm:"ad_break_end"},nt={ap:2,nm:"ad_click"},et={ap:2,nm:"ad_impression"},tt={ap:2,nm:"ad_skip"},it={ap:$e,nm:"app_session_end"},rt={ap:3,nm:"audio_track_changed"},at={ap:3,nm:"buffer_start"},ot={ap:3,nm:"buffer_end"},st={ap:3,nm:"cast_start"},ut={ap:3,nm:"cast_end"},ct={ap:3,nm:"cast_transfer"},lt={ap:I,nm:"context_ready"},dt={ap:$e,nm:"datazoom_loaded"},ft={ap:3,nm:"error"},pt={ap:3,nm:"exit_fullscreen"},mt={ap:3,nm:"fullscreen"},vt={ap:3,nm:"heartbeat"},_t={ap:3,nm:"media_loaded"},ht={ap:1,nm:"media_object_request"},gt={ap:3,nm:"media_request"},Et={ap:3,nm:"milestone"},yt={ap:3,nm:"mute"},St={ap:3,nm:"pause"},It={ap:3,nm:"play_btn"},At={ap:3,nm:"playback_start"},Tt={ap:3,nm:"playback_complete"},Ot={ap:1,nm:"player_ready"},bt={ap:3,nm:"playing"},Ct={ap:3,nm:"qualified_view"},Mt={ap:1,nm:"quality_change_request"},Dt={ap:3,nm:"rendition_change"},Rt={ap:3,nm:"resize"},Nt={ap:3,nm:"resume"},Pt={ap:3,nm:"seek_start"},kt={ap:3,nm:"seek_end"},wt={ap:3,nm:"stall_start"},Lt={ap:3,nm:"stall_end"},Ut={ap:3,nm:"stop"},xt={ap:3,nm:"subtitle_change"},Vt={ap:3,nm:"unmute"},Ft={ap:3,nm:"volume_change"},Wt=(gt.rtc=0,At.rtc=1,St.rtc=2,at.rtc=3,wt.rtc=4,Pt.rtc=5,Dt.rtc=6,Et.rtc=7,gt.rta=8,At.rta=9,at.rta=10,wt.rta=11,Et.rta=12,ft.rta=tt.rta=Tt.rta=13,Qe.rta=14,Ze.rta=15,vt.rt=16,at.rt=17,wt.rt=18,["event","metrics"]),jt={ap:t,nm:"bandwidth_kbps"},Bt={ap:t,nm:"buffer_duration_ms"},Ht={ap:t,nm:"buffer_duration_ads_ms"},zt={ap:t,nm:"buffer_duration_content_ms"},Gt={ap:t,nm:"buffer_fill_percent"},qt={ap:t,nm:"buffer_length_ms"},Yt={ap:t,nm:"content_session_start_ts_ms"},Kt={ap:3,nm:"current_audio_track"},Xt={ap:t,nm:"current_subtitles"},Jt={ap:n,nm:"engagement_duration_ms"},$t={ap:n,nm:"engagement_duration_ads_ms"},Qt={ap:n,nm:"engagement_duration_content_ms"},Zt={ap:r,nm:"event_count"},ni={ap:t,nm:"num_ad_break_plays"},ei={ap:n,nm:"num_ad_plays"},ti={ap:n,nm:"num_content_plays"},ii={ap:n,nm:"num_errors"},ri={ap:n,nm:"num_errors_ads"},ai={ap:n,nm:"num_errors_content"},oi={ap:n,nm:"num_requests_content"},si={ap:t,nm:"pause_duration_ms"},ui={ap:t,nm:"pause_duration_ads_ms"},ci={ap:t,nm:"pause_duration_content_ms"},li={ap:t,nm:"playback_duration_ms"},di={ap:t,nm:"playback_duration_ads_ms"},fi={ap:2,nm:"playback_duration_ad_session_ms"},pi={ap:t,nm:"playback_duration_content_ms"},mi={ap:t,nm:"playback_duration_promo_ms"},vi={ap:3,nm:"playback_rate"},_i={ap:t,nm:"player_state"},hi={ap:t,nm:"player_viewable"},gi={ap:t,nm:"player_viewable_percent"},fe={ap:3,nm:"playhead_position_sec"},Ei={ap:t,nm:"playhead_pdt_sec"},yi={ap:3,nm:"rendition_audio_bitrate_kbps"},Si={ap:3,nm:"rendition_height"},Ii={ap:3,nm:"rendition_name"},Ai={ap:3,nm:"rendition_video_bitrate_kbps"},Ti={ap:3,nm:"rendition_width"},Oi={ap:t,nm:"stall_count"},bi={ap:t,nm:"stall_count_ads"},Ci={ap:t,nm:"stall_count_content"},Mi={ap:t,nm:"stall_duration_ms"},Di={ap:t,nm:"stall_duration_ads_ms"},Ri={ap:t,nm:"stall_duration_content_ms"},Ni={ap:t,nm:"time_since_last_ad_break_start_ms"},Pi={ap:t,nm:"time_since_last_ad_completed_ms"},ki={ap:t,nm:"time_since_last_buffer_start_ms"},wi={ap:t,nm:"time_since_last_buffer_start_ad_ms"},Li={ap:t,nm:"time_since_last_buffer_start_content_ms"},Ui={ap:t,nm:"time_since_last_heartbeat_ms"},xi={ap:t,nm:"time_since_last_milestone_ad_ms"},Vi={ap:t,nm:"time_since_last_milestone_content_ms"},Fi={ap:t,nm:"time_since_last_pause_ms"},Wi={ap:t,nm:"time_since_last_rendition_change_ms"},ji={ap:t,nm:"time_since_last_request_ad_ms"},Bi={ap:t,nm:"time_since_last_seek_start_ms"},Hi={ap:t,nm:"time_since_last_stall_start_ms"},zi={ap:t,nm:"time_since_last_stall_start_ad_ms"},Gi={ap:t,nm:"time_since_last_stall_start_content_ms"},qi={ap:t,nm:"time_since_last_started_ad_ms"},Yi={ap:t,nm:"time_since_request_content_ms"},Ki={ap:t,nm:"time_since_started_content_ms"},Xi={ap:t,nm:"volume_level_percent"},Ji=(Jn([Bt,Ht,zt,si,ui,ci,li,di,pi,mi,Oi,bi,Ci,Mi,Di,Ri,ei,ii,ri,ai,ti,oi],"df",0),Yi.ts=0,Ki.ts=1,Fi.ts=2,Li.ts=3,Gi.ts=4,Bi.ts=5,Wi.ts=6,Vi.ts=7,ji.ts=8,qi.ts=9,wi.ts=10,zi.ts=11,xi.ts=12,Ni.ts=14,Pi.ts=13,Ui.ts=16,ki.ts=17,Hi.ts=18,[]),$i=["event"],i=["event","attributes"],a=["cmcd"],s=["user_details"],u=["player"],c=["device"],l=["video"],d=["geo_location"],Qi=["network"],Zi=["page"],f=["ad"],nr=["ops_metadata"],er=["custom"],tr=["vendor"],ir={p:Ji,ap:e,nm:"configuration_id"},rr={p:Ji,ap:e,nm:"connector_list"},ar={p:Ji,ap:e,nm:"customer_code"},or={p:Ji,ap:r,nm:"event_id"},sr={p:$i,ap:r,nm:"timestamp"},ur={p:$i,ap:r,nm:"type"},Ji={p:a,ap:r,nm:"bl"},$i={p:a,ap:r,nm:"br"},cr={p:a,ap:r,nm:"bs"},lr={p:a,ap:r,nm:"cid"},dr={p:a,ap:r,nm:"d"},fr={p:a,ap:r,nm:"dl"},pr={p:a,ap:r,nm:"mtp"},mr={p:a,ap:r,nm:"nor"},vr={p:a,ap:r,nm:"nrr"},_r={p:a,ap:r,nm:"ot"},hr={p:a,ap:r,nm:"pr"},gr={p:a,ap:r,nm:"rid"},Er={p:a,ap:r,nm:"rtp"},yr={p:a,ap:r,nm:"sf"},Sr={p:a,ap:r,nm:"sid"},Ir={p:a,ap:r,nm:"st"},Ar={p:a,ap:r,nm:"su"},Tr={p:a,ap:r,nm:"tb"},a={p:a,ap:r,nm:"v"},Or={p:i,ap:r,nm:"abs_shift"},br={p:i,ap:r,nm:"error_code"},Cr={p:i,ap:r,nm:"error_msg"},Mr={p:i,ap:r,nm:"inner_error"},Dr={p:i,ap:r,nm:"heartbeat_count"},Rr={p:i,ap:r,nm:"milestone_percent"},Nr={p:i,ap:r,nm:"qualified_view_sec"},Pr={p:i,ap:r,nm:"seek_start_point_ms"},kr={p:i,ap:r,nm:"seek_end_point_ms"},wr={p:i,ap:r,nm:"startup_duration_content_ms"},Lr={p:i,ap:r,nm:"startup_duration_total_ms"},Ur={p:s,ap:n,nm:"app_session_id"},xr={p:s,ap:n,nm:"app_session_start_ts_ms"},i={p:s,ap:n,nm:"app_session_end_ts_ms"},Vr={p:s,ap:t,nm:"cast_app_session_id"},Fr={p:s,ap:t,nm:"cast_content_session_id"},Wr={p:s,ap:e,nm:"client_ip"},jr={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:n,nm:"user_agent"},Br={p:u,ap:t,nm:"autostart"},Hr={p:u,ap:t,nm:"casting"},zr={p:u,ap:t,nm:"controls"},Gr={p:u,ap:t,nm:"default_muted"},qr={p:u,ap:t,nm:"default_playback_rate"},Yr={p:u,ap:t,nm:"fullscreen"},Kr={p:u,ap:t,nm:"loop"},Xr={p:u,ap:t,nm:"muted"},Jr={p:u,ap:t,nm:"player_name"},$r={p:u,ap:t,nm:"player_version"},Qr={p:u,ap:t,nm:"preload"},Zr={p:u,ap:t,nm:"ready_state"},na={p:u,ap:t,nm:"streaming_protocol"},ea={p:u,ap:t,nm:"streaming_type"},ta={p:u,ap:t,nm:"subtitles"},u={p:c,ap:n,nm:"advertising_id"},ia={p:c,ap:n,nm:"browser_name"},ra={p:c,ap:n,nm:"browser_height"},aa={p:c,ap:n,nm:"browser_version"},oa={p:c,ap:n,nm:"browser_width"},sa={p:c,ap:n,nm:"cookies_enabled"},ua={p:c,ap:e,nm:"device_id"},ca={p:c,ap:n,nm:"device_mfg"},la={p:c,ap:n,nm:"device_name"},da={p:c,ap:n,nm:"device_type"},fa={p:c,ap:n,nm:"orientation"},pa={p:c,ap:n,nm:"os_name"},c={p:c,ap:n,nm:"os_version"},ma={p:l,ap:t,nm:"asset_id"},va={p:l,ap:t,nm:"description"},_a={p:l,ap:t,nm:"duration_sec"},ha={p:l,ap:t,nm:"frame_rate"},ga={p:l,ap:t,nm:"media_tags"},Ea={p:l,ap:3,nm:"media_type"},ya={p:l,ap:t,nm:"player_height"},Sa={p:l,ap:t,nm:"player_width"},Ia={p:l,ap:t,nm:"source"},Aa={p:l,ap:t,nm:"title"},Ta={p:d,ap:e,nm:"city"},Oa={p:d,ap:e,nm:"country"},ba={p:d,ap:e,nm:"country_code"},Ca={p:d,ap:e,nm:"latitude"},Ma={p:d,ap:e,nm:"longitude"},Da={p:d,ap:e,nm:"postal_code"},Ra={p:d,ap:e,nm:"region"},Na={p:d,ap:e,nm:"region_code"},Pa={p:d,ap:e,nm:"continent"},ka={p:d,ap:e,nm:"continent_code"},l={p:d,ap:e,nm:"district"},wa={p:d,ap:e,nm:"timezone_name"},La={p:d,ap:e,nm:"timezone_offset"},Ua={p:Qi,ap:e,nm:"asn"},d={p:Qi,ap:e,nm:"asn_org"},xa={p:Qi,ap:n,nm:"connection_type"},Va={p:Qi,ap:e,nm:"isp"},Fa={p:Qi,ap:e,nm:"mobile_connection"},Wa={p:nr,ap:r,nm:"context_id"},ja={p:nr,ap:r,nm:"context_name"},Qi={p:nr,ap:n,nm:"dz_dictionary_version"},Ba={p:nr,ap:r,nm:"msg_send_client_ts_ms"},Ha={p:nr,ap:r,nm:"player_context_id"},za={p:nr,ap:e,nm:"server_ts_offset_ms"},Ga={p:Zi,ap:n,nm:"collector_name"},qa={p:Zi,ap:n,nm:"dz_sdk_version"},Ya={p:Zi,ap:n,nm:"page_title"},Ka={p:Zi,ap:n,nm:"page_url"},Xa={p:Zi,ap:n,nm:"referrer_url"},Ja={p:Zi,ap:n,nm:"site_domain"},$a={p:f,ap:e,nm:"ad_blocker"},Qa={p:f,ap:t,nm:"ad_break_id"},Za={p:f,ap:2,nm:"ad_click_url"},no={p:f,ap:2,nm:"ad_creative_id"},eo={p:f,ap:2,nm:"ad_duration_sec"},to={p:f,ap:2,nm:"ad_id"},io={p:f,ap:2,nm:"ad_partner"},ro={p:f,ap:t,nm:"ad_position"},ao={p:f,ap:2,nm:"ad_session_id"},oo={p:f,ap:2,nm:"ad_system"},so={p:f,ap:2,nm:"ad_time_offset_sec"},Zi={p:f,ap:n,nm:"ad_tracking_opt_out"},uo={p:f,ap:2,nm:"advertiser_name"},co={p:f,ap:2,nm:"deal_id"},lo={p:f,ap:2,nm:"skip_time_offset_sec"},fo={p:f,ap:2,nm:"wrapper_creative_ids"},po={p:f,ap:2,nm:"wrapper_id"},mo={p:f,ap:2,nm:"wrapper_systems"},e={p:["cdn"],ap:t,nm:"cdn"},vo=(co.df="",Jn([fo,po,mo],"df",[]),je(function(n){return!!n},[$a,Zi,Br,cr,Hr,zr,sa,Gr,Yr,Kr,Fa,Xr,Ar,ta,hi]),je(function(n){Le(n)||(n=[n]);for(var e=0;e<n.length;e++)n[e]=xe(n[e])||"";return n},[fo,po,mo]),je(null==He&&null==ze?xe:function(n){var e;return null!=(n=xe(n))&&(e=n.length,null!=He&&e<He?n=null:null!=ze&&ze<e&&(n=Ge?null:n.slice(0,ze))),n},[Or,Qa,Za,no,to,io,ro,ao,oo,uo,u,Ur,Ua,d,ma,ia,aa,Vr,Fr,e,lr,Ta,Wr,ir,rr,jr,Pa,ka,Oa,ba,ar,co,va,ua,ca,la,da,l,qa,br,Cr,or,Mr,Va,Ea,mr,vr,fa,pa,c,_r,Ya,Ka,Ha,Jr,$r,Da,Qr,Xa,Ra,Na,gr,yr,Sr,Ja,Ia,Ir,na,ea,wa,Aa,ur,s,Kt,Xt,_i,Ii]),je(Fe(0,100),[Gt,gi,Xi]),je(Fe(0,1e9,!0),[jt]),je(Fe(),[eo,so,i,xr,Ji,$i,ra,oa,dr,qr,fr,_a,ha,Dr,Ca,Ma,Rr,pr,ya,Sa,hr,Nr,Zr,Er,kr,Pr,za,lo,wr,Lr,Tr,sr,La,a,Ht,zt,Bt,qt,Yt,$t,Qt,Jt,Zt,ni,ei,ti,ii,ri,ai,oi,ui,ci,si,di,fi,pi,li,mi,vi,fe,yi,Si,Ai,Ti,Oi,bi,Ci,Di,Ri,Mi,Ni,Pi,wi,Li,ki,Ui,xi,Vi,Fi,Wi,ji,Bi,zi,Gi,Hi,qi,Yi,Ki]),je(0==(n=5)?We:(qe=ie.pow(10,n),function(n){return ie.round(n*qe)/qe}),[eo,so,i,xr,Ji,$i,ra,oa,dr,qr,fr,_a,ha,Dr,Ca,Ma,Rr,pr,ya,Sa,hr,Nr,Zr,Er,kr,Pr,za,lo,wr,Lr,Tr,sr,La,a,jt,Ht,zt,Bt,Gt,qt,Yt,$t,Qt,Jt,Zt,ni,ei,ti,ii,ri,ai,oi,ui,ci,si,di,fi,pi,li,mi,vi,gi,fe,yi,Si,Ai,Ti,Oi,bi,Ci,Di,Ri,Mi,Ni,Pi,wi,Li,ki,Ui,xi,Vi,Fi,Wi,ji,Bi,zi,Gi,Hi,qi,Yi,Ki,Xi]),[Qe,Ze,nt,et,tt,it,rt,at,ot,st,ut,ct,lt,dt,ft,pt,mt,vt,_t,ht,gt,Et,yt,St,It,At,Tt,Ot,bt,Ct,Mt,Dt,Rt,Nt,Pt,kt,wt,Lt,Ut,xt,Vt,Ft]),_o=Kn(vo);function ho(n,e){return q+n+"_"+e}function go(n,e){var t,i=Xn(vo),r={},a={};n?0<n.length?(n=ke(t=ee.tt&&o.beta_ev)?n.concat(t.split(".").map(function(n){return{name:n,media_types:["na"]}})):n).forEach(function(n){var e,t=n&&n.name;t&&i[t]?(n=n.media_types)&&0<n.length&&(r[t]=!0,"na"!=n[0])&&(e={},n.forEach(function(n){e[n]=!0}),a[t]=e):ae("Unknown event: "+t)}):e&&ae("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,vo.forEach(function(n){n.on=!(r&&!r[n.nm]),n.mm=a&&a[n.nm]})}go(),Jn([ei,ii,ri,ai,ti,oi],"st",p);var Eo=[jt,Bt,Ht,zt,Gt,qt,Yt,Kt,Xt,Jt,$t,Qt,Zt,ni,ei,ti,ii,ri,ai,oi,si,ui,ci,li,di,fi,pi,mi,vi,_i,hi,gi,fe,Ei,yi,Si,Ii,Ai,Ti,Oi,bi,Ci,Mi,Di,Ri,Ni,Pi,ki,wi,Li,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,zi,Gi,qi,Yi,Ki,Xi],yo=[],So=(Eo.forEach(function(n){null!=n.ts&&yo.push(n)}),[]),Io=[];function Ao(n){var e,t=Xn(Eo),i={};n?(n=ke(e=ee.tt&&o.beta_fd)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:ae("Unknown flux data: "+n)}):i=null,So=[],Io=[],Eo.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?Io:So).push(n)})}Ao(),Jn([Ur,xr],"st",p);var To,Oo,bo,Co,Mo=[Jr,$r,u,Aa,ma,ea,Hr],Do={},Ro=(Mo.forEach(function(n){Do[n.nm.toUpperCase()]=z+n.nm}),[ir,rr,ar,or,sr,ur,Ji,$i,cr,lr,dr,fr,pr,mr,vr,_r,hr,gr,Er,yr,Sr,Ir,Ar,Tr,a,Or,br,Cr,Mr,Dr,Rr,Nr,Pr,kr,wr,Lr,Ur,xr,i,Vr,Fr,Wr,jr,s,Br,Hr,zr,Gr,qr,Yr,Kr,Xr,Jr,$r,Qr,Zr,na,ea,ta,u,ia,ra,aa,oa,sa,ua,ca,la,da,fa,pa,c,ma,va,_a,ha,ga,Ea,ya,Sa,Ia,Aa,Ta,Oa,ba,Ca,Ma,Da,Ra,Na,Pa,ka,l,wa,La,Ua,d,xa,Va,Fa,Wa,ja,Qi,Ba,Ha,za,Ga,qa,Ya,Ka,Xa,Ja,$a,Qa,Za,no,eo,to,io,ro,ao,oo,so,Zi,uo,co,lo,fo,po,mo,e]),No=Kn(Ro),Po=Ro.concat(Eo),ko=[or],wo=[],Lo=[];function Uo(n){var e,t=Xn(Ro),i={};To=Oo=bo=Co=!1,n?((n=ke(e=ee.tt&&o.beta_md)?n.concat(e.split(".")):n).forEach(function(n){t[n]?i[n]=!0:"custom_metadata_all"==n?To=!0:"custom_events_all"==n?Oo=!0:"vendor_metadata_all"==n?bo=!0:"vendor_events_all"==n?Co=!0:ae("Unknown metadata: "+n)}),ko.forEach(function(n){i[n.nm]=!0})):To=Oo=bo=Co=!(i=null),wo=[],Lo=[],Ro.forEach(function(n){n.on=!(i&&!i[n.nm]),n.on&&(n.ap==r?Lo:wo).push(n)})}Uo();var xo="ad",Vo=/^live$/i,Fo="DASH",Wo="Flash",jo={"application/x-mpegURL":"HLS","application/dash+xml":Fo,"application/vnd.ms-sstr+xm":"Smooth","video/x-flv":Wo,"video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"};var f=[[/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"]],t=[[/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"]],n=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],Bo=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function Ho(n,e,t){e&&t.push(n)}function _(n,e,t){t.push(n+"="+e)}function zo(n,e,t){t.push(n+(o.cmcd_ntq?"="+e:'="'+e+'"'))}function Go(n,e,t){t.push(n+'="'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function qo(n){return"false"!==n}function Yo(n){return+n}function Ko(n){return n.replace(/"/g,"")}function Xo(n){return n.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var Jo,$o,Qo={bl:[0,[_,Yo],Ji],br:[1,[_,Yo],$i],bs:[2,[Ho,qo],cr],cid:[3,[Go,Xo],lr],d:[1,[_,Yo],dr],dl:[0,[_,Yo],fr],mtp:[0,[_,Yo],pr],nor:[0,[Go,Xo],mr],nrr:[0,[Go,Xo],vr],ot:[1,[zo,Ko],_r],pr:[3,[_,Yo],hr],rtp:[2,[_,Yo],Er],sf:[3,[zo,Ko],yr],sid:[3,[Go,Xo],Sr],st:[3,[zo,Ko],Ir],su:[0,[Ho,qo],Ar],tb:[1,[_,Yo],Tr],v:[3,[_,Yo],a]},Zo={bs:!1,su:!1,v:1,pr:1},ns="org.svalabs-";function es(n){for(var e,t,i=[[],[],[],[]],r=te.keys(n),a=0;a<r.length;a++)e=r[a],(t=Qo[e])&&t[3]&&t[1][0](e,n[e],i[t[0]]);return i}function ts(n){var e,t=te.keys(Qo);for(Jo=!1,$o="header"===(ye.options.cmcdMode||o.cmcd_mode),e=0;e<t.length;e++)Qo[t[e]][3]=!1;if(n&&Le(n)&&0<n.length)if(Jo=!0,"na"==n[0])for(e=0;e<t.length;e++)Qo[t[e]][3]=!0;else n.forEach(function(n){var e=Qo[n];e?e[3]=!0:ae("Unknown CMCD key: "+n)})}function is(n,e,t){for(var i,r,a=te.keys(n),o=0;o<a.length;o++)delete n[a[o]];for(o=0;o<e.length;o++)0!=((i=e[o]).ap&t)&&null!=(r=null==(r=(r=i.st||i.se)&&Re(r,i.nm))?i.df:r)&&(n[i.nm]=r)}function rs(n,e,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=e[o])&&s(r)||(n[o]=r[1],(s=a.st||a.on&&a.se)&&v(s,o,r[1])):ae("Setting inapplicable data",a)}function as(n,e){return n[e.nm]}function os(n,e,t,i,r){var a,o=[];return t&&o.push([t,a=e(t)+i]),r&&o.push([r,e(r)+i]),n(o),a}function pe(n,e,t){if(e)for(var i,r,a=0;a<e.length;a++)if(r=n[i=e[a]])n=r;else{if(t)return null;n=n[i]={}}return n}function ss(n,e){n=pe(n,e.p||Wt,!0);return n&&n[e.nm]}function us(n,e,t,i){for(var r,a,o,s=0;s<e.length;s++)0!=((r=e[s]).ap&t)&&null!=(o=Be(n[a=r.nm],r.dv))&&(pe(i,r.p)[a]=o)}Qo[ns+"rid"]=[0,[Go,Xo],gr],Qo[ns+"tid"]=[0,[Go,Xo]],Qo[ns+"cmi"]=[0,[_,Yo]],Qo[ns+"pmi"]=[0,[_,Yo]],ts();var cs,ls,ds,fs,ps,ms,vs,_s,hs,gs,Es,ys,Ss,Is,As,Ts,Os,h,bs={},Cs={},Ms=Re(p,_n)||[],Ds=[],Rs=1,Ns=2,Ps=4,ks=Ps,ws=Ns|Rs|ks,Ls=0,Us=[];function xs(n){return null!=n?6e4*n:12e5}function Vs(n,e){if(!ws&&0<Ms.length){for(var t,i=se(),r=0,a=0;a<Ms.length;a++)Ms[a].p&&(t=!0,us(bs,wo,Je,Ms[a].m)),r=ie.max(r,i-Ms[a].t);ys&&Ys(Ms,0,Wn(Dn,i,r,t),n),e=!0}e&&(Ms=[],Ne(p,_n)),vs=null}function Fs(n){(ws&=~n)||null!=vs||Vs()}function Ws(n,e,t,i,r,a,o,s,u){if(4==n.readyState){var c=se(),l=n.status;if(e+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[r++];if(null!=a)return U(function(){o.retry(se()),t(i,r,o)},1e3*a),void ae(e+"retry #"+r+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(n,c))||u&&u(e,l)||ae(e+"failed")}}function js(e,t,i){hs=Zn("POST",$n(ee.sm),{"Content-Type":"application/json","cache-control":"no-cache"},e,function(n){4==n.readyState&&(hs=null,Ws(n,"Sampling API",js,e,t,ee.rd,i,function(n){n=de(n.responseText);if(gs=n&&n[ee.ss+"_sampling"])return ys=gs.in_sample,Es=!1,Fs(Ns),v(p,hn,gs),!0},function(n){return ys=Es=!0,Fs(Ns),ae(n+"forced in"),!0}))})}function Bs(){var n;!_s||ws&Rs||(ee.sw&&ee.sm?(ee.sp,(n=No[ee.sd])&&(_s.sampling_definition_params={namespace:ee.ss,key_name:n.nm,key_value:Xs(n)}),(n=No[ee.sc])&&(_s.sampling_criteria_params={sampling:{key_name:n.nm,key_value:Xs(n)}}),_s.sampling_override=o.sampling_override||"NONE",_s.sampling_request_id=ce(),js(le(_s),0,Wn(Cn,se()))):(ys=!0,Fs(Ns)),_s=null)}function Hs(i,e,t){var n,r;ee.ci?(ee.tt&&(ee.mf=o.mock_config||ee.mf),Oe("Get config from "+(n=ee.mf||Me($n("https://"+ee.cf+"platform.datazoom.io/beacon/v2/config"),function(n){n.append(Q,ee.ci)}))),r=se(),Zn("GET",n,null,null,function(n){Ws(n,"Config API",Hs,i,e,ee.rd,t,function(n,e){var t=de(n.responseText);if(t)return i(t,n.getResponseHeader("dz-extra"),r,e),!0},function(n,e){e<400||429==e||499<e||(ee.om=!1),i()})})):(ae("Missing configuration ID"),ee.om=!1,i())}function zs(){Hs(function(n,e,t,i){ee.st=null,n&&function i(r,a){Ue(r)?te.keys(r).forEach(function(n){var e=r[n],t=a[n];Ue(t)?i(e,t):null==t?Te("Unknown config key: "+n):null==e?Te("Undefined config key: "+n):t&&(ee[t]=e)}):ae("Invalid config object",r)}(n,X),v(p,gn,ee.st),ee.st=xs(ee.st),go(ee.ev,n),Ao(ee.fd),Uo(ee.md),ts(ee.cd),ee.og||(xn=[]),ee.os||(Pn=null),m(ee.cm,"sort"),m(ee.am,"sort"),m(ee.cq,"sort"),m(ee.aq,"sort"),Ks([[ar,ee.cc],[rr,ee.cl]]),Ds.forEach(function(n){var e,t,i,r,a,o=!1,s=ss(n.m,ur),u=_o[s];u?o=u.on:s.startsWith(G)?o=Oo:s.startsWith(q)&&(o=Co),o&&(e=n.m,t={},wo.concat(Lo).forEach(function(n){null!=(i=ss(e,n))&&(pe(t,n.p)[n.nm]=i)}),r=pe(e,Wt),a=pe(t,Wt),So.concat(Io).forEach(function(n){null!=(i=ss(r,n))&&(a[n.nm]=i)}),To&&(i=pe(e,er,!0))&&te.assign(pe(t,er),i),bo&&(i=pe(e,tr,!0))&&te.assign(pe(t,tr),i),Gs(t,a),n.m=t,Ms.push(n))}),v(p,_n,Ms),Ds=[];var r,n=ua.nm,n=(ua.on?(r=Re(y,n))||(r=ce(),v(y,n,r)):Ne(y,n),Ks([[ua,r]]),e);try{var a,o,s,u,c,l=n&&de(atob(n));l?(a=l.latitude,o=l.longitude,s=l.timezone_offset,c=(u=l.time_sync)&&+u,Ks([[Wr,l.client_ip],[Fa,l.mobile_connection],[Ua,l.asn],[Na,l.region_code],[Ra,l.region],[ba,l.country_code],[Oa,l.country],[Da,l.postal_code],[Ta,l.city],[Ca,a?+a:null],[Ma,o?+o:null],[Pa,l.continent],[ka,l.continent_code],[wa,l.timezone_name],[La,null!=s?s/3600:null]]),c&&Ks([[za,ie.round(c-(t+i)/2)]])):ae("Missing or invalid dz-extra header")}catch(n){oe(n,"processDzExtra")}ee.ab&&$a.on&&null==Xs($a)?Zn("GET",$n(ee.ab),null,null,function(n){4==n.readyState&&(Ks([[$a,!n.status]]),Fs(Ps))}):Fs(Ps),Fs(Rs),Bs(),U(function(){Fs(ks),Bs()},ee.mh)},0,Wn(Mn,se()))}function Gs(n,e){var t=""+(ps+1e7);pe(n,or.p)[or.nm]=ds+"_"+t.substr(-7,2)+"."+t.substr(-5),v(p,pn,++ps),Zt.on&&(e[Zt.nm]=ps)}function qs(n,e,t,i,r,a,o){var s,u,c,l,d,o=o?Ye:Xe,f=pe(n,Wt);for(us(bs,wo,o,n),us(bs,So,o,f),(i=i||[]).push([ur,e],[sr,t]),s=0;s<i.length;s++)u=(c=i[s])[0],c[2]||0!=(u.ap&Ke)?u.on&&null!=(c=Be(c[1],u.dv))&&(pe(n,u.p)[u.nm]=c):ae("Invalid event data",u);To&&(o=Hn(cs,r),e=n,r=le(o),d=r?r.length:0,(l=ee.ml)&&l<d?ae("Custom metadata size: "+d+" > "+l):2<d&&(o=de(r))&&te.assign(pe(e,er),o)),bo&&(l=Gn(ls,a),d=n,l)&&te.assign(pe(d,tr),l),Se&&Ce("evInfo",n),!(un<an)&&ee.le&&ee.le(n)||(r={p:ws,m:n,t:t},ws&Rs?Ds.push(r):(Gs(n,f),Ms.push(r),v(p,_n,Ms),null==vs&&(vs=U(Vs,ee.bd))))}function Ys(t,e,i,n){var r,a=t.map(function(n){return n.m}),o=(a.forEach(function(n,e){var t,i=pe(n,nr);Ba.on&&(pe(n,Ba.p)[Ba.nm]=se()),gs&&(i[ee.ss+"_sampling"]=gs),null!=Es&&(i[ee.ss+"_forced_sampling_in"]=Es),e||(r=i[En],Pn&&(te.keys(Pn).forEach(Bn),Pn=null),xn.length&&(r=r?r.concat(xn):xn,xn=[],r.length>ee.mc&&(r.sort(function(n,e){return n.batch()>e.batch()?1:-1}),t=r[r.length-ee.mc-1].batch(),r=r.filter(function(n){return n.batch()>t})),i[En]=r))}),$n(ee.mb)),a=le(a);n&&N.sendBeacon&&N.sendBeacon(o,a)||Zn("POST",o,{"Content-Type":"application/json"},a,function(n){Ws(n,"Message post",Ys,t,e,ee.rd,i,null,function(n,e){t.forEach(function(n){jn(n,e)}),r&&(xn=r.concat(xn))})})}function Ks(n){rs(bs,Cs,Ye,n)}function Xs(n){return bs[n.nm]}function Js(n){if(cc&&(cc=!1,Qs(dt,n)),!ds||!fs||(e=n,t=ee.st,e<ms&&ae("Activity time reversal: "+ms+" -> "+e),0<=t&&(e<ms||ms+t<=e))){Vs(!(Ds=[]),!0);t=n,e=Us[Ls];if(ds=ce(),fs=ms=t,Ks([[Ur,ds],[xr,fs],[ei,ps=0],[ii,0],[ri,0],[ai,0],[ti,0],[oi,0]]),v(p,pn,ps),v(p,mn,ms),Ne(p,hn),hs&&hs.abort(),hs=gs=null,ys=Es=null,ws|=Ns,_s={},Bs(),re(e))try{e()}catch(n){oe(n,"onAppSessionStart")}}else v(p,mn,ms=n);var e,t;Ks([[Jt,n-fs],[oa,ne.outerWidth],[ra,ne.outerHeight],[Ya,ge.title],[Ka,R.href],[Xa,ge.referrer],[Ja,R.hostname],[sa,N.cookieEnabled]])}function $s(n,e,t){os(Ks,Xs,n,e,t)}function Qs(n,e,t,i,r){0!=(n.ap&Ye)?(Js(e),n.on&&qs({},n.nm,e,t,i,r,!0)):ae("Event inapplicable: "+n.nm+", ss",n)}function Zs(e,t){var i,r;e&&Mo.forEach(function(n){i=z+n.nm,null!=(r=e[i])&&(t([[n,r]]),delete e[i])})}if(is(bs,Po,Ye),ds=Xs(Ur),fs=Xs(xr),ps=Re(p,pn)||0,ms=Re(p,mn)||0,gs=Re(p,hn),cs=Re(p,vn),ls=Re(p,"__ss_vendor_md"),ee.st=xs(Re(p,gn)),gs?(ys=gs.in_sample,Es=!1,Fs(Ns)):_s={},f.some(function(n){if(h=n[0].exec(P))return Ss=n[1],Is=h[1],!0})||(h=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(P))&&(Ss=h[1],Is=h[2]),(h=/Version\/([\d.]+)/.exec(P))&&(Is=h[1]),t.some(function(n){if(n[0].test(P))return As=n[1],!0})){switch(h=null,As){case"Mac OS X":h=/Mac OS X (10[\d._]+)/.exec(P);break;case"Android":h=/Android ([\d._]+)/.exec(P);break;case"iOS":h=/OS (\d+_\d+(_\d+)?)/.exec(P);break;case"Tizen":h=/Tizen[ \/]([\d._]+)/.exec(P);break;default:(h=/Windows (.*)/.exec(As))&&(As="Windows")}h&&(Ts=h[1].replace(/_/g,"."))}else As=Ts="-";n.some(function(n){if(n[0].test(P))return Os=n[1],!0}),Ks([[s,P],[ia,Ss],[aa,Is],[pa,As],[c,Ts],[da,Os],[Ga,ee.cn],[qa,ee.sv],[Qi,3]]);var nu="baseContext",eu="contextType",tu="contextName",iu="metadata",ru=0,au=["base","player"],me={},ou=[];function su(n){if(!n.destroyed){n.setTimer(null);try{var e=n.destroyCallback;e&&e()}catch(n){oe(n,"onDestroy")}delete me[n.id],n.removeListeners(),n.destroyed=!0}}function uu(n,e,t,i,r,a,o){(r=r||[]).push([Wa,n.id],[ja,n.name]),qs(e,t,i,r,Hn(n.customMetadata,a),Gn(n.vendorMetadata,o))}function cu(n,e){return!(null!=e&&!Ue(e)||(n.customMetadata=de(le(e)),0))}function lu(n){var e=ue(bs);return e._c_=Hn(cs,n.customMetadata),e._v_=Gn(ls,n.vendorMetadata),e}function du(){var t,c=[],i={},a={id:ce(),type:ru,destroyed:!1,destroyCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(n,e,t){if(a.destroyed)return ae(n+" after destroyed"+(e?": "+e:""),t),!0},onDestroy:function(n){a.destroyCallback=n},setTimer:function(n){var e;t&&(0<=(e=ou.indexOf(t))&&ou.splice(e,1),t=null),n&&(ou.push(n),t=n)},fireEvent:function(n,e,t,i,r){a.shallBlock("fireEvent",n.nm,n)||(Js(e),n.on&&uu(a,{},n.nm,e,t,i,r))},fireVendorEvent:function(n,e,t){a.fireEvent({ap:I,nm:ho(n,e),on:Co},se(),null,null,zn(n,t))},addListener:function(n,e,t,i,r){if(n&&e){var a=n[i=i||"addEventListener"];if(re(a)){u=qn(n,t,s="listener: "+(s=e));var o=un<on?u:function(){Nn(s,arguments),u.apply(null,arguments)};try{"-"===e?a.call(n,o):a.call(n,e,o),c.push([n,e,t,o,r||"removeEventListener"])}catch(n){oe(n,"addListener: "+e)}}else ae("Invalid add-listener method: "+i,n)}var s,u},removeListeners:function(r,a,o){c=c.filter(function(n){var e=n[0],t=n[1];if(r&&r!=e||a&&a!=t||o&&o!=n[2])return!0;var i=e&&e[n[4]];if(re(i))try{"-"===t?i.call(e,n[3]):i.call(e,t,n[3])}catch(n){}else ae("Invalid remove-listener method: "+n[4],e)})},stash:function(n,e,t){i[n]=[e,t]},unstash:function(n){n.forEach(function(e){var n=i[e];if(n){delete i[e];try{n[0].apply(null,n[1])}catch(n){oe(n,"unstash: "+e)}}})}},n={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return au[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){su(a)},setMetadata:function(n){return cu(a,n)},getMetadata:function(){return de(le(a.customMetadata))},generateEvent:function(n,e){a.fireEvent({ap:I,nm:G+n,on:Oo},se(),null,e)},dumpDzData:function(n){var e=de(le(lu(a)));return null==n?e:e[n]}};return a.basePublicMethods=n,a.publicContext=ue(n),me[a.id]=a}function fu(n){return ee.sn&&ee.sn[n]||""+n}var pu,mu,vu,_u,ve=[],hu="idle",gu=(ve[2]=ve[9]="buffering",ve[3]=ve[10]="playing",ve[4]=ve[11]="paused",ve[5]=ve[12]="seeking",ve[6]="ended",ve[0]=ve[7]=ve[8]=hu,function(U,x,r){var i,a,o,V,F,W,j,f={},B={},g={},H={},z={},G={},q=[],Y=[],K=[],X=[],J=[],$=[],Q=[],p=[],Z=ce(),m=(L=r[nu],(n=(n=Ue(L)&&re(L.contextID)&&L.contextID())&&ke(n)&&me[n])&&n.type==ru&&n.publicContext===L?n:(null!=L&&ae("Invalid contextOptions."+nu,L),du())),n=r[tu],s=(null!=n&&(m.name=n),L=r["adapterID"],L&&ke(L)&&sc[L]||(null!=L&&ae("Adapter not found for id: "+L),pu)),u=r["adapterOptions"];function nn(){if(o){for(var n,e=te.keys(o),t=se(),i=0;i<e.length;i++)k((n=o[e[i]]).ev,t,n.dl);o=null}}function E(n,e,t){(o=o||{})[t||n.nm]={ev:n,dl:e}}function v(n){rs(f,B,1,n)}function y(n){rs(g,H,2,n)}function S(n,e){return as(e?g:f,n)}function en(n){return g[n.nm]}function tn(){var n=S(Jr),e=S($r);is(f,Po,1),v([[Ea,"content"],[Jr,n],[$r,e]])}function rn(){is(g,Po,2),y([[Ea,"ad"]])}function e(n,e){B[n.nm]=e}function an(n,e){H[n.nm]=e}function on(n,e){G[n.nm]=e}function t(n,e,t,i){for(var r=[],a=0;a<e.length;a++)r[e[a]]=!0;Q[n]={tr:r,en:t,ex:i}}u=Ue(u)?ue(u):{},s&&(W=s[2],j=s[3],te.assign(u,s[4]||{}),V=u[ac],F=u[oc],(u[rc]||[]).forEach(function(n){z[n[0].nm]=n[1]})),U&&te.keys(me).some(function(n){n=me[n];if(1==n.type&&n.player===U)return n.publicContext.destroy(),!0});var sn,c,un,cn,ln,l,dn,fn,I,pn,mn,A,vn,T,O,_n,hn,gn,En,yn,b,C,Sn,In,d,_,M,D,An,Tn,R,N,On,h=0,bn=hu,Cn=1,Mn=se(),Dn=be(ae,"Abnormal duration increment: ",1,1e3,3e5);function Rn(){return 2==Cn}function Nn(){return!!T&&T.type===xo}function Pn(n){I=n+ee.hi,Oe("Heartbeats started")}function kn(){I&&Oe("Heartbeats stopped"),I=0}function P(n,e,t){return os(v,S,n,e,t)}function wn(n){var e=n-Mn;e<0||e>ee.ed?Dn.log(e):0<e&&(4==h?P(ci,e,si):11==h?P(ui,e,si):2==h?(c&&P(Ri,e,Mi),P(zt,e,Bt)):9==h&&(c&&P(Di,e,Mi),P(Ht,e,Bt))),Mn=n}function Ln(n,e){null!=n&&(p[n]=e)}function k(e,t,i,n,r,a){if(!m.shallBlock("fireEvent",e.nm,e))if(a=a||(Nn()?2:Cn),0!=(e.ap&a)){if(Js(t),(i=i||[]).push([Ha,m.id]),On||(On=!0,(u=K.some(function(n){try{return n(t,i,e,a)}catch(n){oe(n,"extEventHandler")}}))||(u=(c=G&&G[e.nm])&&c(t,i,e,a)),On=!1),!u){wn(t);for(var o,s,u,c,l=[[_i,bn]],d=0;d<yo.length;d++)s=p[(o=yo[d]).ts],l.push([o,s?t-s:0]);v(l),null==S(jt)&&Ee&&(c=Ee.downlink)&&v([[jt,1e3*c]]),Ln(e.rt,t),Ln(2==a?e.rta:e.rtc,t),!e.on||e.mm&&!e.mm[S(Ea,2==a)]||(c=pe(u={},Wt),2==a?(us(g,wo,2,u),us(g,So,2,c),us(f,wo,Xe,u),us(f,So,Xe,c)):(us(f,wo,1,u),us(f,So,1,c),us(g,wo,Xe,u),us(g,So,Xe,c)),uu(m,u,e.nm,t,i,n,r))}}else ae("Event inapplicable: "+e.nm+", "+a,e)}function Un(n){var e=n[1];e&&e!=S(n[0])&&E(ct)}function xn(n,e){var t=3==e?b:C;if(n!=t){var i,r,a,o,s,u,c,l,d=se();if(I||Pn(d),pn=!0,3==e){if(s=V||ee.mp,b=n,a=d-Sn,Sn=d,i=S(_a),A){var f,p=T;if(null==_n&&0<i&&(f=A.locate(i),_n=(f.type?f.start:i)-f._e),i=_n,O&&t>=O.start&&t<=O.end||(O=A.locate(t)),(T=T&&n>=T.start&&n<=T.end?T:A.locate(n))&&(u=T.type,c=T.start,l=T._d),T!=p&&(f=N<=n&&n<N+s,u===xo?R!==c&&l&&((null==R?jn:(f&&k(Tt,d),Gn))(d),R=c,N=T.end,Hn(),y(l.concat([[eo,N-R]])),zn(d,T._a),k(et,d,null,null,null,2),C=0,In=d):null!=R&&(f&&k(Tt,d,null,null,null,2),Gn(d),Bn(d))),u===xo)return void(l&&(xn(p=n-c,10),g[fe.nm]=p))}fn||(r=hn=!hn&&ee.cm?ee.cm.slice():hn)}else s=F||ee.mp,C=n,a=d-In,In=d,i=en(eo),r=gn=!gn&&ee.am?ee.am.slice():gn;if(null!=t&&null!=n&&0<=t&&t<n&&n<=t+s){if(0<i&&r)for(var m,v,_=0,h=3==e&&O&&T?(v=((O.type?O.start:t)-O._e)/i,((u?c:n)-T._e)/i):(v=t/i,n/i);_<r.length&&!(h<(m=r[_]/100));)v<m?(r.splice(_,1),E(Et,[[Rr,100*m]],Et.nm+m)):_++;if(3==e){if(M=n,a<0||a>ee.ed)Dn.log(a);else if(0<a)if(u)P("promo"===u?mi:null,a,li);else if(i=P(pi,a,li)/1e3,ee.cq)for(En=En||ee.cq.slice();null!=(o=En[0])&&o<=i;)En.shift(),E(Ct,[[Nr,o]],Ct.nm+o)}else if(D=n,a<0||a>ee.ed)Dn.log(a);else if(0<a&&(P(di,a,li),i=os(y,en,fi,a)/1e3,ee.aq))for(yn=yn||ee.aq.slice();null!=(o=yn[0])&&o<=i;)yn.shift(),E(Ct,[[Nr,o]],Ct.nm+o)}}}function Vn(n,e){null==d&&null!=n&&null!=M&&n!=M&&(d=M,k(Pt,e||se()))}function Fn(n,e){null==_&&null!=n&&null!=D&&n!=D&&(_=D,k(Pt,e||se()))}function Wn(n){sn&&k(Ut,n),sn=un=!1,Cn=1,d=M=null,kn()}function jn(n){var e,t,i="pre";S(pi)>1e3*ee.ep&&(e=S(fe),t=S(_a),i=null!=e&&null!=t&&e+ee.ep>t?"post":"mid"),cn=l=dn=!1,rn(),v([[Qa,ce()],[ro,i],[ni,0]]),k(Qe,n)}function Bn(n){An+=n-p[14],k(Ze,n,null,null,null,2),v([[Qa,null],[ro,null],[ni,null]])}function Hn(){dn||(dn=!0,y([[ao,a||ce()],[fi,0]]),a=null)}function zn(n,e){var t=Us[3];if(cn=!0,gn=yn=null,$s(ei,1),P(ni,1),re(t))try{t(i,e)}catch(n){oe(n,"onAdStart")}k(At,n)}function Gn(n){if(cn){var e=Us[4];if(Tn+=n-p[9],re(e))try{e(i)}catch(n){oe(n,"onAdEnd")}}cn=l=dn=!1,_=D=R=N=null,rn()}function qn(n,e,t,i){var r,a,o,s;n!=h&&(o=Q[h],r=fu(h)+" => "+fu(n),a=ve[n]||bn,m.shallBlock("setState",r)||(o.tr[n]?(Oe("state: "+r+" ("+a+")"),(o=o.ex)&&o(e,n,t,i),wn(e),s=h,bn=a,(o=Q[h=n].en)&&o(e,s,t,i),pn=!0):ae("Invalid transition: "+r)))}function Yn(n){return n!=h&&!!Q[h].tr[n]}function Kn(){return 0==h||7==h||8==h}function w(o,s,u){return function(n){var e,t,i,r,a;e=o,t=s,i=u,a=(n=n)[0],n=n[1]=Be(n[1],a.dv),a=S(a,i),null!=i&&i!=Rn()||null==a||null==n||(t?!n!=!a&&E(n?e:t):n!=a&&E(e,r=e==Dt?a<n?[[Or,"up"]]:n<a?[[Or,"down"]]:null:r))}}function Xn(n){n[1]=Be(n[1],n[0].dv)}t(0,[1,8]),t(1,[2,7,8,16],function(n){var e=Us[1];if(Wn(n),sn=!(ln=!1),fn=Vo.test(S(ea)),An=Tn=0,v([[jr,Z],[Yt,n]]),Z=ce(),$s(oi,1),re(e))try{e(i)}catch(n){oe(n,"onContentSessionStart")}A=vn,vn=T=O=_n=null,R=N=null,mn=0,k(gt,n)}),t(2,[3,4,5,7,8,16],function(n,e){(c=3==e)&&(P(Ci,1,Oi),k(wt,n)),k(at,n)},function(n){k(ot,n),c&&k(Lt,n),c=!1,un||k(_t,n)}),t(3,[2,4,5,6,7,8,16],function(n){var e;un||(e=n-p[0],un=!0,hn=En=null,$s(ti,1),k(At,n,[[wr,e-An],[Lr,e-Tn]])),b=M=S(fe),Sn=n,null!=d&&(k(kt,n,[[Pr,1e3*d],[kr,null!=b?1e3*b:null]]),d=null),k(bt,n),ln&&(ln=!1,k(Nt,n)),I||Pn(n)},function(){b=null}),t(4,[2,3,5,6,7,8,16],function(n){ln||(ln=!0,k(St,n))}),t(5,[2,3,4,6,7,8,16],function(n){Vn(S(fe),n)}),t(6,[2,3,4,5,7,8,16],function(n){k(Tt,n)}),t(7,[],function(n){Wn(n)}),t(8,[],function(n,e,t){k(ft,n,t),Wn(n)}),t(9,[10,11,12,14,15,7],function(n,e){Hn(),(c=10==e)&&(P(bi,1,Oi),k(wt,n)),k(at,n)},function(n){k(ot,n),c&&k(Lt,n),c=!1}),t(10,[9,11,12,13,14,15,7],function(n,e,t,i){Hn(),cn||zn(n,i),C=D=en(fe),In=n,null!=_&&(k(kt,n,[[Pr,1e3*_],[kr,null!=C?1e3*C:null]]),_=null),k(bt,n),l&&(l=!1,k(Nt,n)),I||Pn(n)},function(){C=null}),t(11,[9,10,12,14,15,7],function(n){l||(l=!0,k(St,n))}),t(12,[9,10,11,13,14,15,7],function(n){Fn(en(fe),n)}),t(13,[9,10,17,7],function(n){k(Tt,n),Gn(n)}),t(14,[9,10,17,7],function(n){k(tt,n),Gn(n)}),t(15,[9,10,17,7],function(n,e,t){k(ft,n,t),Gn(n)}),t(16,[9,10,15,17,7],function(n){Cn=2,jn(n)}),t(17,[2,3,4,5,6,7],function(n){Bn(n),Cn=1});var Jn,n=Ai,L=Ai;function $n(n){var i=[],r=0,a=0;return i.locate=function(e){return i.find(function(n){return e>=n.start&&e<=n.end})},n.forEach(function(n){var e=n.start,t=n.end;we(e)&&we(t)&&(e=e<r?r:e)<t?(r<e&&i.push({start:r,end:e,_e:a}),i.push(te.assign({},n,{start:e,_e:a})),n.type&&(a+=t-e),r=t):ae("Skipped time span",n)}),i.push({start:r,end:_e.MAX_VALUE,_e:a}),i}function Qn(n,e){n=n&&n({type:Ie,ack:e,appSID:Xs(Ur),ctSID:S(jr)});n&&n["catch"](function(n){Te("Cast transfer message rejected",n)})}function Zn(n){var e,t=m.publicContext,i=null;m.player=n,te.assign(t,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return n},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(jr)},nextContentSessionID:function(){return Z},playerState:function(){return bn},destroy:function(){if(!m.destroyed){Yn(7)&&qn(7,se());for(var n=0;n<Y.length;n++)try{Y[n]()}catch(n){oe(n,"extOnDestroy")}su(m)}},setMetadata:function(n){return!!cu(m,n)&&(Zs(m.customMetadata,m.setData),!0)},annotateContentSession:function(n){return null==n?!(vn=null):!!Le(n)&&(vn=$n(n.slice().sort(function(n,e){return n.start>e.start?1:-1})),!0)},dumpDzData:function(n){var e=te.assign(lu(m),f,g),t=Ea.nm;return e[t]=(Rn()||Nn()?g:f)[t],e=de(le(e)),null==n?e:e[n]}}),yu.forEach(function(n){try{n(t,m,q,Y,K,X,J,$)}catch(n){oe(n,"extInit")}});try{i=W?W(n,m,u):null}catch(n){i=oe(n,s[0]+" initContext")}return i?(Ae(i),t.destroy()):(null!=(e=r[iu])&&t.setMetadata(e),e=se(),k(lt,e),k(Ot,e),m.setTimer(function(){for(var n=0;n<q.length;n++)try{q[n]()}catch(n){oe(n,"extOnTimer")}if(Jn)try{Jn()}catch(n){oe(n,"onTimer")}var e=se();wn(e),I&&I<=e&&(pn?(k(vt,e,[[Dr,++mn]]),I=e+ee.hi,pn=!1):kn())})),t}return 1&(z[n.nm]||0)&&(n=Si),2&(z[L.nm]||0)&&(L=Si),e(_a,Xn),an(eo,Xn),e(na,function(n){var e=n[1];n[1]=e&&jo[e]||e}),e(ea,function(n){fn=Vo.test(n[1])}),e(fe,function(n){for(var e=0;e<X.length;e++)try{X[e](n)}catch(n){oe(n,"extPlayheadHandler")}5==h||2==h?Vn(n[1]):3==h&&xn(n[1],3)}),an(fe,function(n){12==h?Fn(n[1]):10==h&&xn(n[1],10)}),e(n,w(Dt,null,!1)),an(L,w(Dt,null,!0)),e(Xr,w(yt,Vt)),e(Yr,w(mt,pt)),e(Hr,w(st,ut)),e(Sa,w(Rt)),e(ya,w(Rt)),e(Xi,w(Ft)),e(Kt,w(rt,null,!1)),an(Kt,w(rt,null,!0)),e(Xt,w(xt)),e(ta,w(xt)),e(Vr,Un),e(Fr,Un),e(gi,function(n){var e,t,i,r,a=n[1];a=a&&re(a.getBoundingClientRect)?"visible"==ge.visibilityState?(e=(r=a.getBoundingClientRect()).left,t=r.right,i=r.top,r=r.bottom,ie.min(100,ie.max(0,ie.round(100*(ie.min(t,ne.innerWidth)-ie.max(e,0))*(ie.min(r,ne.innerHeight)-ie.max(i,0))/((t-e)*(r-i)))))):0:Be(a,gi.dv),null!=(n[1]=a)&&v([[hi,50<=a]])}),e(qt,function(n){var e=n[1];if(e&&re(e.end)){var t,i,r=S(fe);if(null!=r)for(t=0;t<e.length;t++)if(i=e.end(t),r>=e.start(t)&&r<=i)return void(n[1]=1e3*(i-r));n[1]=0}}),on(_t,function(n,e,t,i){2==i&&(a=ce(),e.push([ao,a,!0]))}),on(et,function(n,e){a&&e.push([ao,a,!0])}),on(ft,function(n,e,t,i){$s(1==i?ai:ri,1,ii)}),tn(),rn(),te.assign(m,{type:1,fireEvent:k,fire:function(n,e,t){k(n,se(),e,null,null,t)},setState:function(n,e,t){qn(n,se(),e,t)},canSetState:Yn,reset:function(){Yn(7)&&qn(7,se()),tn(),rn(),p=[],h=0,bn=hu},setData:function(n){v(n),nn()},setAdData:function(n){y(n),nn()},getData:S,getAdData:en,getState:function(){return h},isIdle:Kn,isAdIdle:function(){return 13==h||14==h||15==h},isInAds:Rn,isInSsaiAds:Nn,onTimer:function(n){Jn=n},matchCtSource:function(n){return S(Ia)==n},reqCtSID:function(){return Kn()?Z:S(jr)},reqTracer:function(n,a){n=Me(n,function(n){n["delete"]("CMCD")});var e,t=m.reqCtSID(),i=ce(),r=((a=te.assign({},a||{},{sid:t}))[ns+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(e=S(ma))&&(a.cid=e),{url:n,sid:t,rid:i,cmcd:a,start:se()});return{reqID:i,urlBase:n,url:function(){var e=es(a);return Me(n,function(n){n.append("CMCD",e[0].concat(e[1],e[2],e[3]).sort().join())})},headers:function(){for(var n={},e=es(a),t=0;t<4;t++)e[t].length&&(n[Bo[t]]=e[t].sort().join());return n},enabledData:function(){for(var n,e,t=te.keys(a),i={},r=0;r<t.length;r++)n=t[r],(e=Qo[n])&&e[3]&&(i[n]=a[n]);return i},status:function(n){r.status=n},start:function(){r.start=se()},resp:function(n){r.resp=null!=n?r.start+n:se(),Se&&Ce("reqInfo",r)},end:function(n){var e=se(),t=(r.end=null!=n?r.start+n:e,te.assign({},Zo,a)),i=[];te.keys(t).forEach(function(n){var e=Qo[n];e&&e[2]&&i.push([e[2],t[n]])}),k(ht,e,i,null,null,1),Se&&Ce("reqInfo",r)}}},updateTimedMetadata:function(n,e,t,i,r){for(var a=0;a<J.length;a++)try{J[a](n,e,t,i,r)}catch(n){oe(n,"extTimedMetadataHandler")}},addCtTimeSpans:function(n){var u=A?A.filter(function(n){return n.type}):[];n.forEach(function(n){for(var e,t,i,r,a=n.start,o=n.end,s=0;s<u.length&&(i=(t=u[s]).start,r=t.end,!(o<=i));s++)a<r&&(i<a?(u.splice(s+1,0,te.assign({},t,{start:a})),t.end=a):(e||(u.splice(s++,0,n),e=!0),o<r?t.start=o:u.splice(s--,1)));e||u.splice(s,0,n)}),A=$n(u),T=O=_n=null},initCastTransfer:function(n){Kn()||Qn(n,!1)},handleCastMessage:function(n,e){!n||n.type!==Ie||Kn()||(m.setData([[Vr,n.appSID],[Fr,n.ctSID]]),n.ack)||Qn(e,!0)},sa:{}}),s&&v([[Jr,s[1]]]),ws&Rs&&ts((n=ye.options).cmcdEnable?n.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new he(function(e,t){try{j(x,m,u).then(function(n){i=Zn(n),e(i)},function(n){Ae(n),t(n)})}catch(n){t(oe(n,s[0]+" createTargetObject"))}}):he.reject("Not implemented"):i=Zn(U)}),Eu=function(n,a){var o=new(n||_c),s=(a=a||hc,{});function u(){return{currentTime:o.currentTime}}function c(){return{getAdId:function(){return s.adId},getAdSystem:function(){return s.adSystem},getAdvertiserName:function(){return s.advertiserName},getCreativeId:function(){return s.creativeId},getDealId:function(){return s.dealId},getDuration:function(){return s.duration},getSkipTimeOffset:function(){return s.skipTimeOffset},getVastMediaBitrate:function(){return s.vastMediaBitrate},getVastMediaWidth:function(){return s.vastMediaWidth},getVastMediaHeight:function(){return s.vastMediaHeight},getWrapperAdIds:function(){return s.wrapperAdIds},getWrapperAdSystems:function(){return s.wrapperAdSystems},getWrapperCreativeIds:function(){return s.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return s.adPodIndex},getTimeOffset:function(){return s.adTimeOffset}}},h:{clickThroughUrl:s.clickThroughUrl}}}return o.dispatch=function(n,e,t){var i,r;t=t||{},e&&((i=e.media)&&te.assign(o,i),i=e.ima)&&((e=i.adsManager)&&te.assign(o,e),(e=i.ad)&&te.assign(s,e),t.getAd=c,t.getAdData=u,r=i.error)&&(t.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),n&&(e=new a(n),te.assign(e,t),o.dispatchEvent(e))},o.getBoundingClientRect=function(){return o.boundingClientRect||{left:0,right:0,top:0,bottom:0}},o.getVolume=function(){return o.volume},o},yu=[],Su="REQUEST_COMPLETE",Iu="SLOT_STARTED",Au="SLOT_ENDED",Tu="AD_INITIATED",Ou="AD_BUFFERING_START",bu="AD_BUFFERING_END",Cu="AD_PAUSE",Mu="AD_RESUME",Du="AD_IMPRESSION",Ru="AD_IMPRESSION_END",Nu="AD_COMPLETE",Pu="AD_SKIPPED",ku="AD_CLICK",wu=(yu.push(function(n,i,e,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(n,e){var t;i.isInAds()&&(e&&s([[so,m(e,"getTimePosition")]]),a&&(s([[fe,m(a,"getPlayheadTime")],[eo,m(a,"getDuration")],[to,m(a,"getAdId")],[no,a._creativeId],[co,m(a,"getDealId")],[lo,m(a,"getSkipOffset")]]),e=m(a,"getActiveCreativeRendition"))&&(t=m(e,"getHeight"),s([[Ti,m(e,"getWidth")],[Si,t],[Ii,t?t+"p":null]])),n)&&(e=m(n,"getAdVolume"),i.setData([[Xi,100*e],[Xr,0==e]]))},l.on[Su]=function(n,e){e.success?u(gt,null,2):u(ft,null,2)},l.on[Iu]=function(n,e){a=null,o(16),l.update(n,e.slot)},l.on[Au]=function(){o(17),a=null},l.on[Tu]=function(){s([[vi,1]]),u(_t,null,2)},l.on[Ou]=function(){o(9)},l.on[bu]=l.on[Mu]=function(){o(10,null,a)},l.on[Du]=function(){o(10,null,a),u(et,null,2)},l.on[Cu]=function(){o(11)},l.on[Nu]=function(){o(13),a=null},l.on[Pu]=function(){o(14),a=null},l.on[Ru]=function(){a=null},l.on[ku]=function(){u(nt)},l.on["ERROR"]=function(n,e){o(15,[[br,e.errorCode],[Cr,e.errorInfo]]),a=null},l.on["AD"]=function(n,e){a=e.adInstance,l.update(n);var t=c[e.subType];t&&t(n,e)},l.$on=ue(l.on),i.sa.fwContext=l,e.push(function(){r&&l.update(r)}),t.push(d),Yn({attachFwContext:function(n){var e;!i.shallBlock("attachFwContext",null,n)&&n!=r&&(d(),r=n)&&(e=g(ne.tv,["freewheel","SDK"]),[Su,Iu,Au,"AD"].forEach(function(t){var n=e&&e["EVENT_"+t];n&&i.addListener(r,n,function(n){var e=l.on[t];e&&e(r,n)})}),[Tu,Ou,bu,Cu,Mu,Du,Ru,Nu,Pu,ku,"ERROR"].forEach(function(i){var n=e&&e["EVENT_"+i];n&&(c[n]=function(n,e){var t=l.on[i];t&&t(n,e)})}))},detachFwContext:d},[n,i])}),"play"),Lu="waiting",Uu="playing",xu="pause",Vu="seeking",Fu="seeked",Wu="ended",ju="durationchange",Bu="ratechange",Hu="timeupdate",zu=(yu.push(function(n,a,e,t){var r,o,s,u,i=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function f(){o&&d(o),r&&d(r),r=o=null}function p(){if(r){for(var n,e,t,i=0;i<r.length;i++)"metadata"===(t=r[i]).kind?e=e||t:"showing"===t.mode&&(n=n||t);s||c([[ta,!!n],[Xt,n?n.label||n.language:null]]),o!=e&&(o&&d(o),o=e)&&l(o,"cuechange",function(){var n=o.activeCues;if(n)for(var e,t,i=0;i<n.length;i++)(t=(e=n[i]).value)&&a.updateTimedMetadata("ID3",e.startTime,e.endTime,t.key,t.data)})}}t.push(f);var m={on:{}};function v(){u&&d(u),u=null}m.$update=m.update=function(n,e){e&&(c([[_a,n.duration],[Gr,n.muted],[qr,n.playbackRate]]),p()),a.isInAds()||c([[fe,n.currentTime],[vi,n.playbackRate],[Sa,n.offsetWidth],[ya,n.offsetHeight],[gi,n],[qt,n.buffered],[Kr,n.loop],[Xr,n.muted],[Xi,100*n.volume],[Zr,n.readyState]])},m.on[wu]=function(n){a.isIdle()&&(a.reset(),m.update(n,!0),i(1),i(2))},m.on[Lu]=function(n){m.update(n),i(2)},m.on[Uu]=function(n){m.update(n),a.isAdIdle()&&i(17),i(3)},m.on[xu]=function(n){m.update(n),i(4)},m.on[Vu]=function(n){m.update(n),i(5)},m.on[Fu]=function(n){m.update(n),i(n.paused?4:3)},m.on[Wu]=function(n){m.update(n),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(n){var e,t=n.error;t&&(e=[[br,t.code],[Cr,t.message]]),m.update(n),i(8,e)},m.on[ju]=function(n){c([[_a,n.duration]])},m.on[Bu]=function(n){c([[vi,n.playbackRate]])},m.on[Hu]=function(n){m.update(n)},m.$on=ue(m.on),a.sa.mediaElement=m,e.push(function(){u&&m.update(u)}),t.push(v),Yn({attachMediaElement:function(n){v(),(u=n)&&[[wu,(n=[[Wu,xu,Vu,wu,Lu,Fu,Uu]])[0]],[Lu,n[0]],[Uu,n[0]],[xu,n[0]],[Vu,n[0]],[Fu,n[0]],[Wu,n[0]],["error"],[ju],[Bu],[Hu]].forEach(function(i){var r=i[0];l(u,r,function(n){var e,t=m.on[r];t&&((e=i[1])?(a.stash(r,t,[u,n]),U(function(){a.unstash(e)},0)):t(u,n))})})},detachMediaElement:v,attachTextTracks:function(n,e){f(),s=e,(r=n)&&["change","addtrack","removetrack"].forEach(function(n){l(r,n,p)})},detachTextTracks:f},[a])}),"CLICK"),Gu="STARTED",qu="AD_PROGRESS",Yu="AD_BUFFERING",Ku="IMPRESSION",Xu="PAUSED",Ju="RESUMED",$u="COMPLETE",Qu="LOADED",Zu="ALL_ADS_COMPLETED",nc="SKIPPED",ec="VOLUME_CHANGED",tc="AD_ERROR",ic={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"},rc=(yu.push(function(n,a,e,t){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(n){var e,n=n.getError();return n&&(e=[[br,n.getErrorCode()],[Cr,n.getMessage()]],n=n.getInnerError())&&e.push([Mr,""+n]),e}var d,f,p={on:{}};function m(){o&&c(o),o=null}function v(n){var e=n.getAdPodInfo(),t=n.getVastMediaHeight(),t=[[to,n.getAdId(),!0],[oo,n.getAdSystem(),!0],[uo,n.getAdvertiserName(),!0],[no,n.getCreativeId(),!0],[co,n.getDealId(),!0],[eo,n.getDuration(),!0],[lo,n.getSkipTimeOffset(),!0],[Ai,n.getVastMediaBitrate(),!0],[Ti,n.getVastMediaWidth(),!0],[Si,t,!0],[Ii,t?t+"p":null,!0],[po,n.getWrapperAdIds(),!0],[mo,n.getWrapperAdSystems(),!0],[fo,n.getWrapperCreativeIds(),!0],[Za,g(n,[/[a-z]/,"clickThroughUrl"]),!0]];return e&&t.push([so,e.getTimeOffset(),!0]),t}p.$update=p.update=function(n,e){a.isInAds()&&(e&&r(v(e)),n)&&(e=n.getVolume(),a.setData([[Xi,100*e],[Xr,0==e]]))},p.on[zu]=function(n){p.update(n),s(nt)},p.on[Gu]=function(n,e){e=e.getAd();a.isInAds()||i(16),r([[vi,1]]),p.update(n,e),i(10,null,e)},p.on[qu]=function(n,e){e=g(e.getAdData(),["currentTime"]);null!=e&&(p.update(n),9==a.getState()&&(null==d?d=e:d!=e&&i(10)),r([[fe,e]]))},p.on[Yu]=function(n){p.update(n),i(9),d=null},p.on[Ku]=function(n){p.update(n),s(et,null,2)},p.on[Xu]=function(n){p.update(n),i(11)},p.on[Ju]=function(n){p.update(n),i(10)},p.on[$u]=function(n){p.update(n),i(13)},p.on[Qu]=function(n,e){e=e.getAd();s(_t,e&&v(e),2)},p.on[Zu]=function(){i(17),m()},p.on[nc]=function(n){p.update(n),i(14)},p.on[ec]=function(n){p.update(n)},p.on[tc]=function(n,e){p.update(n),a.canSetState(15)?i(15,l(e)):s(ft,l(e),2)},p.$on=ue(p.on),a.sa.imaAdsManager=p,e.push(function(){o&&p.update(o)}),t.push(m);var _={on:{}};function h(){f&&c(f),f=null}_.on[tc]=function(n,e){s(ft,l(e),2)},_.$on=ue(_.on),a.sa.imaAdsLoader=_,t.push(h),Yn({attachImaAdsManager:function(n){var e,t;!a.shallBlock("attachImaAdsManager",null,n)&&n!=o&&(m(),o=n)&&(n=g(ne.google,["ima"]),e=g(n,["AdEvent","Type"],ic),[[zu],[Gu,null,(t=[[Gu,Ku]])[0]],[qu],[Yu],[Ku,null,t[0]],[Xu],[Ju],[$u],[Qu],[Zu],[nc],[ec],[tc,g(n,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],n=(i[1]||e)[r];n&&u(o,n,function(n){var e,t=p.on[r];t&&((e=i[2])?(a.stash(r,t,[o,n]),U(function(){a.unstash(e)},0)):t(o,n))})}),s(gt,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(n){a.shallBlock("attachImaAdsLoader",null,n)||n==f||(h(),(f=n)&&(n=g(ne.google,["ima","AdErrorEvent","Type"],ic)[tc])&&u(f,n,function(n){var e=_.on[tc];e&&e(f,n)}))},detachImaAdsLoader:h},[n,a])}),yu.push(function(e,r,n,t,i,a,o){var s,u,c,l=r.addListener;function d(){s&&r.removeListeners(s),s=u=c=null}function f(n){for(var e;(e=u[0])&&e.t<=n;)u.shift(),delete e.t,s.onTimedMetadata(e)}t.push(d),a.push(function(n){s&&f(c=n[1])}),o.push(function(n,e,t,i,r){var a;s&&i&&r&&ke(a="ID3"===n?r:a)&&((n={t:e})[i]=a,u.push(n),null!=c)&&f(c)}),Yn({attachImaDaiStreamManager:function(n){r.shallBlock("attachImaDaiStreamManager",null,n)||n==s||(d(),(s=n)&&(n=g(ne.google,["ima","dai","api","StreamEvent","Type"]),u=[],n)&&(l(s,n.CUEPOINTS_CHANGED,function(n){r.isIdle()&&(n=g(n.getStreamData(),["cuepoints"]))&&n.length&&e.annotateContentSession(n.map(function(n){return{type:xo,start:n.start,end:n.end}}))}),l(s,n.STARTED,function(n){var e,t,i,n=n.getAd();n&&(e=c||0,t=n.getAdPodInfo(),i=n.getVastMediaHeight(),r.addCtTimeSpans([{type:xo,start:e,end:e+(n.getDuration()||0),_d:[[to,n.getAdId()],[oo,n.getAdSystem()],[uo,n.getAdvertiserName()],[no,n.getCreativeId()],[co,n.getDealId()],[lo,n.getSkipTimeOffset()],[Ti,n.getVastMediaWidth()],[Si,i],[Ii,i?i+"p":null],[po,n.getWrapperAdIds()],[mo,n.getWrapperAdSystems()],[fo,n.getWrapperCreativeIds()],[so,t?t.getTimeOffset():null]],_a:n}]))})))},detachImaDaiStreamManager:d},[e,r])}),ye.mediatailor=((it=E.mediatailor)&&(it.clientInfo+=" DZSDK "+ee.cn+" v"+ee.sv),it),yu.push(function(n,s,e,t,i,r,a,o){var u,c,l,d,f;function p(n,e,t){if(n&&1===n.playCount)for(var i=o.length,r=0;r<i;r++)o[r](e,t)}function m(){u&&c&&u.removeAdObserver(c),u=c=null,l=d=f=null}t.push(m),i.push(function(n,e,t,i){var r=l&&l[t.nm];return r&&r(n,e,t,i)}),r.push(function(n){u&&!s.isIdle()&&(d=n[1],f=s.getData(Ei),un<on||Nn("MT onPlayheadUpdate: "+d+", "+f),u.onPlayheadUpdate(d,f||null))}),Yn({attachMediaTailorSession:function(n,e){var o,t,i,r,a;e=e||ye.mediatailor,!s.shallBlock("attachMediaTailorSession",null,n)&&e&&n!=u&&(m(),t=function(){var n=s.getData(Xi);we(n)&&p(o,14,n)},i=e.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(n){return function(){p(o,n)}})(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(){p(o,14,0)},r[i.UNMUTE]=t,r[i.CLICK_THROUGH]=function(){s.fire(nt),p(o,13)},r[i.SKIP]=function(){s.fire(tt),p(o,12)},u=n)&&(a=e.PlaybackEvent,l={},[[a.START,At,1],[a.END,Ut,I],[a.PAUSE,St,I],[a.RESUME,Nt,I],[a.MUTE,yt,I],[a.UNMUTE,Vt,I],[a.FULLSCREEN,mt,I],[a.EXIT_FULLSCREEN,pt,I]].forEach(function(r){l[r[1].nm]=function(n,e,t,i){r[2]&i&&u.onPlaybackEvent(r[0])}}),l[Ft.nm]=t,l[at.nm]=function(){p(o,10)},l[ot.nm]=function(){p(o,11)},c={onNewAd:function(n){var e;s.addCtTimeSpans([(e=(e=(n=n).startDate)&&f?e-f+d:n.start,{type:xo,start:e,end:e+n.duration,_a:n,_d:[[to,n.vastAdId],[oo,n.adSystem],[no,n.creativeId],[lo,n.skipOffset],[so,n.availStart],[Za,n.videoClickThrough]]})])},onAdLoad:function(n){var e,t,i,r,a;1===(o=n).playCount&&(e=n.adVerifications)&&(t={},i=[],r=s.getData(Xi),a=n.skipOffset,we(r)&&(t["v"]=r),t["d"]=n.duration,t["ap"]=!!s.getData(Br),t["po"]=0===n.availStart?0:1,t["sk"]=0<=a,t["so"]=t["sk"]?a:null,t["vf"]=i,e.forEach(function(n){var e=g(n.javaScriptResource,[0,"uri"]),t=n.vendor;e&&t&&i.push({url:e,vd:t,p:n.verificationParameters||""})}),p(n,0,t))},onAdEnd:function(n){p(n,17),o=null},onAdTrackingEvent:function(n,e){e=r[e];e&&e()}},u.addAdObserver(c))},detachMediaTailorSession:m},[n])}),yu.push(function(s,u,n,e,t,i,r){var f,c,l,a,d,p,m,v,_,h=["YMID","YSEQ","YTYP","YDUR"];function g(){f&&c&&f.removeAnalyticObserver(c),f=c=null,l=a=d=m=null}function o(n){for(var e;(e=l[0])&&e.t<=n;)l.shift(),f.onTimedMetadata(_.createFromMetadata(e.YMID,e.YSEQ,e.YTYP,e.YDUR,1e3*e.t))}function E(n,e,t){(a=a&&a.t===n?a:{t:n})[e]=t||"",te.keys(a).length===h.length+1&&(l.push(a),(a=null)!=m)&&o(m)}e.push(g),t.push(function(n,e,t,i){var r=d&&d[t.nm];return r&&r(n,e,t,i)}),i.push(function(n){f&&!u.isIdle()&&(m=n[1],p===v.VOD||p===v.DVRLIVE?f.onPlayheadUpdate(ie.round(1e3*m)):o(m))});var y=T.fromCharCode;function S(n,e,t){for(var i,r=[];e<t;)31<(i=n[e++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(n,e,t,i,r){var a;if(f&&r&&p===v.LIVE)if("ID3"===n||"org.id3"===n)h.includes(i)&&(r instanceof M&&(r=new C(r))||r instanceof C?3===r[0]&&(a=S(r,1,r.length)):a=r,ke(a))&&E(e,i,a);else if("urn:yospace:a:id3:2016"===n){if(r instanceof C)for(var o,s=S(r,0,r.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),h.includes(o[0])&&E(e,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===n&&r instanceof C){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=ie.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,h.includes(i)&&d<=c&&E(e,i,S(r,u,d)),u=d}}}}),Yn({attachYospaceSession:function(n){var e,a,o,t,i,r=ne.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,n)&&r&&n!=f&&(g(),f=n)&&(e=r.PlayerEvent,n=r.BreakType,v=r.PlaybackMode,_=r.TimedMetadata,p=f.getPlaybackMode(),l=[],d={},[[e.START,At,1],[e.STOP,Ut,I],[e.PAUSE,St,I],[e.RESUME,Nt,I],[e.STALL,wt,I],[e.CONTINUE,Lt,I]].forEach(function(r){d[r[1].nm]=function(n,e,t,i){r[2]&i&&f.onPlayerEvent(r[0],0)}}),d[kt.nm]=function(){f.onPlayerEvent(e.SEEK,1e3*(m||0))},d[yt.nm]=function(){f.onVolumeChange(!0)},d[Vt.nm]=function(){f.onVolumeChange(!1)},a=function(n,e){n=n.getProperty(e);return n&&n.getValue()},o=function(n,e,t,i){n&&(e.push(n.getIdentifier()),t.push(n.getAdSystem()),i.push(n.getCreativeIdentifier()),o(n.getLineage(),e,t,i))},t=function(n){var e=n.getSkipOffset(),t=[],i=[],r=[],e=(o(n.getLineage(),t,i,r),[[to,n.getIdentifier()],[oo,a(n,"AdSystem")],[uo,a(n,"Advertiser")],[lo,0<e?e/1e3:e],[po,t],[mo,i],[fo,r]]),t=n.getLinearCreative(),i=(t&&e.push([no,t.getCreativeIdentifier()],[Za,t.getClickThroughUrl()]),n.getStart()/1e3);return{type:xo,start:i,end:i+n.getDuration()/1e3,_d:e,_a:n}},c={onAdvertBreakStart:function(n){},onAdvertBreakEnd:function(){},onAdvertStart:function(n){u.addCtTimeSpans([t(n)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(n){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(n){}},f.addAnalyticObserver(c),p===v.VOD)&&(i=[],(r=f.getAdBreaksByType(n.LINEAR))&&r.forEach(function(n){n=n.adverts;n&&n.forEach(function(n){i.push(t(n))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:g},[s])}),yu.push(function(n,i,e,t,r,a,o,s){var u,m,v,c;function _(){c&&c(17),m=v=c=null,u=!1}t.push(_),s.push(function(n,e){u&&(0===n?(c&&c(17),c=!1===ee.om?null:v(e)):c&&(c(n,e),17===n)&&(c=null))}),Yn({startOmidSessionClient:function(n){var c,l,d,f,p=E.OmidSessionClient,e=Pe.omidPartnerName,t=Pe.omidPartnerVersion;i.shallBlock("startOmidSessionClient",null,n=n||{})||(c=n.omidServiceWindow||ne.self,l=n.videoElement,d=n.contentURL||R.href,f=n.accessModeHandler,p&&e&&t&&l?(_(),m=new p.Partner(e,t),v=function(e){var t,i,r,a,o,s,n=e["vf"],n=n&&n.map(function(n){var e=n["url"],t=n["vd"],n=n["p"]||"";return new p.VerificationScriptResource(e,t,n,f&&f(e,t,n)||"full")});return n&&n.length?((n=new p.Context(m,n,d)).setServiceWindow(c),"VIDEO"===l.tagName?n.setVideoElement(l):n.setVideoElement(l.getElementsByTagName("video")[0]||l),t=new p.AdSession(n),i=!1,r=[],t.setCreativeType("video"),t.setImpressionType("beginToRender"),t.isSupported()?((s=[])[1]=function(){a.loaded(new p.VastProperties(e["sk"],e["so"],e["ap"],e["po"]))},s[2]=function(){o.start(e["d"],e["v"]/100)},s[3]=function(){a.impressionOccurred()},s[4]=function(){o.firstQuartile()},s[5]=function(){o.midpoint()},s[6]=function(){o.thirdQuartile()},s[7]=function(){o.complete()},s[8]=function(){o.pause()},s[9]=function(){o.resume()},s[10]=function(){o.bufferStart()},s[11]=function(){o.bufferFinish()},s[12]=function(){o.skipped()},s[13]=function(){o.adUserInteraction("click")},s[14]=function(n){e["v"]=n,o.volumeChange(n/100)},s[15]=function(){o.playerStateChange("fullscreen")},s[16]=function(){o.playerStateChange("normal")},s[17]=function(){t.finish()},t.registerSessionObserver(function(n){switch(n.type){case"sessionStart":var e;for(a=new p.AdEvents(t),o=new p.MediaEvents(t),i=!0;e=r.shift();)u(e[0],e[1]);break;case"sessionError":ae("OMID ad session error")}}),t.start(),u):(ae("OMID ad session unsupported"),null)):null;function u(n,e){var t;i?(t=s[n])&&t(e):r.push([n,e])}},u=!0):Ae("Missing OM SDK library or parameters"))},stopOmidSessionClient:_},[n])}),ye.omidPartnerName=Pe.omidPartnerName,ye.omidPartnerVersion=Pe.omidPartnerVersion,"unsupportedDataList"),ac="maxCtPlayheadInterval",oc="maxAdPlayheadInterval",sc={};function uc(){if(!vu){var n=Us[2];if(re(n))try{n()}catch(n){oe(n,"onPageUnload")}te.keys(me).forEach(function(n){me[n].publicContext.destroy()}),Vs(!0),vu=!0}}Gt=[It="jw","JW Player",Gt=function(l,d){var f,i={"hlsjs":"HLS","html5":"MP4","shaka":Fo,"flash_video":Wo,"flash_adaptive":Wo,"flash_sound":Wo};if(!l)return"Invalid player";function n(n,e){d.addListener(l,n,e,"on","off")}function e(n,e){d.addListener(l,n,e,"on","off")}function t(){var n=g(ne.cast,["framework","CastContext"]),n=n&&n.getInstance();return n&&n.getCurrentSession()}function r(n){var e=t();return e&&e.sendMessage(Z,n)}function a(n){var e,t,i,r,a,o,s,u,c=l.getConfig();n&&(n=[],(e=l.getPlaylistItem())&&(t=e.file,i=e.title,r=e.description,a=e.tags),a=a||c.tags,t&&n.push([Ia,t]),null!=i&&n.push([Aa,i]),null!=r&&n.push([va,r]),a&&n.push([ga,a]),d.setData(n)),d.isIdle()||(e=l.getCurrentTime(),t=l.getDuration(),i=l.getVisualQuality(),r=g(c,["streamType"],"").toUpperCase(),a=l.getCurrentAudioTrack(),o=0<(n=l.getCurrentCaptions()),s=g(i,["level","height"]),u=g(i,["level","bitrate"])/1e3,null!=f&&d.setData([[Ei,e+f]]),d.setData([[fe,e],[_a,t||0],[Kr,g(c,["repeat"])],[Ai,u],[Ti,g(i,["level","width"])],[Si,s],[Ii,s?s+"p":null],[vi,l.getPlaybackRate()],[Kt,0<=a?g(m(l,"getAudioTracks"),[a,"name"]):null],[Xt,o?l.getCaptionsList()[n].label:null],[ta,o]]),c.streamType&&d.setData([[ea,"VOD"==r?"VOD":"Live"]]),re(l.getViewable)&&d.setData([[hi,1===l.getViewable()]]),re(l.getPercentViewable)&&d.setData([[gi,100*l.getPercentViewable()]]))}function o(){d.setAdData([[Kt,null]]),re(l.getViewable)&&d.setData([[hi,1===l.getViewable()]]),re(l.getPercentViewable)&&d.setData([[gi,100*l.getPercentViewable()]])}d.setData([[$r,l.version]]),n("playlistItem",function(){d.isIdle()||d.reset()}),n("cast",function(n){n=n.active;d.setData([[Hr,n]]),n&&(d.removeListeners(null,Z),d.addListener(t(),Z,function(n,e){d.handleCastMessage(de(e),r)},"addMessageListener","removeMessageListener"),d.initCastTransfer(r))}),n("meta",function(e){var n,t,i=e.metadataType,r=e.metadata;r&&("program-date-time"===i?(n=r.start,t=(t=r.programDateTime)&&new A(t).getTime(),null!=n&&t&&(f=t/1e3-n)):"id3"===i?te.keys(r).forEach(function(n){d.updateTimedMetadata("ID3",e.metadataTime,null,n,r[n])}):"emsg"===i&&d.updateTimedMetadata(r.schemeIdUri,r.start,r.end,null,r.messageData))}),n("beforePlay",function(){var n=l.getConfig(),e=l.getProvider(),t=g(n,["autostart"]);null!=l.getPlaylist()&&!t&&1<=l.getPlaylist().length&&(t=0!=l.getPlaylistIndex()),d.isIdle()&&(d.reset(),d.setData([[Gr,l.getMute()],[na,i[g(e,["name"])]],[Qr,g(n,["setupConfig","preload"])],[ma,g(n,["playlistItem","mediaid"],"")],[qr,g(n,["defaultPlaybackRate"])],[Br,t]]),a(!(f=null)),d.setState(1))}),n("buffer",function(){a(!0),d.setState(2)}),n("time",function(){a()}),n("idle",function(n){l.getConfig().castActive&&(a(),d.setState(7))}),n("play",function(){l.getConfig().castActive&&d.isIdle()&&(d.setState(1),d.initCastTransfer(r),d.setState(2)),d.isInAds()||(a(),d.setState(3))}),n("pause",function(){a(),d.setState(4)}),n("seek",function(){a(),d.setState(5)}),n("complete",function(){a(),d.setState(6)}),n("error",function(n){var e=[];n&&(e.push([Cr,n.message]),e.push([br,n.code])),a(),d.setState(8,e)}),n("levelsChanged",function(){a(),d.fire(Mt)}),n("fullscreen",function(){U(a,200)}),n("mutechange",a),n("volumechange",a),e("adRequest",function(){d.fire(gt,null,2)}),e("adTime",function(n){var e=g(n,["ima","ad",/[a-z]/,"vastMediaHeight"],null);d.setAdData([[fe,n.position],[eo,n.duration],[Ai,g(n,["ima","ad",/[a-z]/,"vastMediaBitrate"],null)],[Ti,g(n,["ima","ad",/[a-z]/,"vastMediaWidth"],null)],[Si,e],[Ii,e?e+"p":null]]),o()}),e("adBreakStart",function(){o(),d.setState(16)}),e("adBreakEnd",function(){o(),d.setState(17)}),e("adClick",function(){o(),d.fire(nt)}),e("adLoaded",function(){d.fire(_t,null,2)}),e("adPlay",function(){o(),d.setState(10)}),e("adPause",function(){o(),d.setState(11)}),e("adStarted",function(){d.setAdData([[vi,1]]),o(),d.setState(10)}),e("adSkipped",function(){o(),d.setState(14)}),e("adImpression",function(n){o(),n&&d.setAdData([[Za,n.tag],[no,g(n,["ima","ad",/[a-z]/,"creativeId"])],[to,g(n,["ima","ad",/[a-z]/,"adId"])],[io,n.client],[oo,n.adsystem],[mo,g(n,["ima","ad",/[a-z]/,"adWrapperSystems"],[])],[so,g(n,["ima","ad",/[a-z]/,"adPodInfo","timeOffset"])],[co,g(n,["ima","ad",/[a-z]/,"dealId"])],[lo,g(n,["ima","ad",/[a-z]/,"skipTimeOffset"])],[fo,g(n,["ima","ad",/[a-z]/,"adWrapperCreativeIds"],[])],[po,g(n,["ima","ad",/[a-z]/,"adWrapperIds"],[])],[uo,n.advertiser]]),d.fire(et,null,2)}),e("adError",function(n){var e;n&&(e=[[Cr,n.message],[br,n.adErrorCode],[Mr,g(n,["sourceError","stack"])]]),o(),d.setState(15,e)}),e("adComplete",function(){o(),d.setState(13)}),d.onTimer(function(){var n,e=l.getConfig();e&&(n=e.autostart,e=l.getPlaylist())&&!n&&1<=e.length&&(n=0!=l.getPlaylistIndex()),(d.isInAds()?o:a)(),d.setData([[Sa,l.getWidth()],[ya,l.getHeight()],[Yr,l.getFullscreen()],[Xr,l.getMute()],[Xi,l.getMute()?0:l.getVolume()],[Br,n],[zr,l.getControls()]])})},function(n,r,e){var t,i,a=n[1];function o(e,n){var t,i=r.reqTracer(n);e.addEventListener("readystatechange",function(){var n=this.readyState;1==n?i.start():2==n?(i.status(this.status),i.resp()):4==n&&i.end()}),$o?(t=i.headers(),i.urlBase!=n&&e.open("GET",i.urlBase,!0),te.keys(t).forEach(function(n){e.setRequestHeader(n,t[n])})):e.open("GET",i.url(),!0)}Jo&&a&&(S.isArray(a.playlist)?(a=ue(a)).playlist=a.playlist.map(function(n){return(n=ue(n)).sources?n.sources=n.sources.map(function(n){return(n=ue(n)).onXhrOpen=o,n}):n.file&&(n.sources=[{file:n.file,onXhrOpen:o}],delete n.file),n}):a.file&&!a.playlist&&((a=ue(a)).playlist=[{sources:[{onXhrOpen:o}]}],t=a.playlist[0],["description","image","mediaid","title"].forEach(function(n){a[n]&&(t[n]=a[n],delete a[n])}),i=t.sources[0],["file","type"].forEach(function(n){a[n]&&(i[n]=a[n],delete a[n])})));e=e.jwplayerFunction||ne.jwplayer;return e?he.resolve(e(n[0]).setup(a)):he.reject("Missing jwplayer function")},mu],pu=pu||Gt,sc[It]=Gt;var cc=!0;function lc(t){if(!_u){if(!(ee.ci||Qn(J,Q)||t&&t[Q]))return!1;t&&(J=Me(J,function(e){te.keys(t).forEach(function(n){e.set(n,t[n])})}),ln()),cc&&(cc=!1,Qs(dt,se()));var n=Qn(J,"env");ee.cf="staging"===n||"dev"===n||"sandbox"===n?n:"",ee.ci=Qn(J,Q)||ee.ci,ee.om=null,Ks([[ir,ee.ci]]),zs(),_u=!0}return!0}function dc(n){n()}function fc(n,e,t){Ue(t)||(null!=t&&ae("Invalid contextOptions",t),t={});var i,r,a,o,s=t[eu];return s&&s!==au[1]?s===au[ru]?(r=(i=du()).publicContext,a=t[iu],i.name=t[tu],null!=a&&r.setMetadata(a),i.fireEvent(lt,se()),r):(Ae(a="Unknown context type: "+s),e?he.reject(a):(o=a,{getError:function(){return o}})):gu(n,e,t)}m(ne,"addEventListener",["pagehide",uc]),"Safari"==Ss&&m(ne,"addEventListener",["beforeunload",function(n){U(function(){n.defaultPrevented||n.returnValue||uc()},0)}]),Te("Datazoom SDK "+ee.sv+" ("+ee.cn+") DDv3"),L(function(){ou.length?ou.forEach(dc):se()},ee.ti),te.assign(ye,{init:lc,setLogLevel:cn,createContext:function(n,e){return fc(n,null,e)},createBaseContext:function(n){return(n=Ue(n)?ue(n):{})[eu]=au[ru],fc(null,null,n)},createContextAndTarget:function(n){for(var e=[],t=1;t<arguments.length;t++)e.push(arguments[t]);return fc(null,e,n)},createCollectorProxy:function(n,e,t){return n&&n!==au[1]?(Ae("Unsupported context type: "+n),null):Eu(e,t)},adapterIDs:function(){return te.keys(sc)},contexts:function(){return te.keys(me).map(function(n){return me[n].publicContext})},playerContexts:function(){return te.keys(me).filter(function(n){return 1==me[n].type}).map(function(n){return me[n].publicContext})},setMetadata:function(n){return!(null!=n&&!Ue(n)||(Zs(cs=de(le(n)),Ks),v(p,vn,cs),0))},getMetadata:function(){return de(le(cs))},generateEvent:function(n,e,t){t=!t&&te.keys(me)[0];t?me[t].publicContext.generateEvent(n,e):Qs({ap:$e,nm:G+n,on:Oo},se(),null,e)},on:function(n,e){Us[n]=e},appSessionID:function(){return ds},generateUUID:function(){return ce()},sdkEvent:{APP_SESSION_START:Ls,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:xo,PROMO:"promo"},overridableMetadata:Do,name:ee.cn,version:ee.sv,dictionaryVersion:3}),pc||U(lc,ee.kd)}("object"==typeof globalThis?globalThis:window,{},(s={},function(){function n(e,i){var u=u||{},t=(u.scope={},u.createTemplateTagFirstArg=function(n){return n.raw=n},u.createTemplateTagFirstArgWithRaw=function(n,e){return n.raw=e,n},u.arrayIteratorImpl=function(n){var e=0;return function(){return e<n.length?{done:!1,value:n[e++]}:{done:!0}}},u.arrayIterator=function(n){return{next:u.arrayIteratorImpl(n)}},u.makeIterator=function(n){var e="undefined"!=typeof Symbol&&Symbol.iterator&&n[Symbol.iterator];if(e)return e.call(n);if("number"==typeof n.length)return u.arrayIterator(n);throw Error(String(n)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(n){for(var e,t=[];!(e=n.next()).done;)t.push(e.value);return t},u.arrayFromIterable=function(n){return n instanceof Array?n:u.arrayFromIterator(u.makeIterator(n))},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.objectCreate=u.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(n){function e(){}return e.prototype=n,new e},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(n,e,t){return n!=Array.prototype&&n!=Object.prototype&&(n[e]=t.value),n},u.getGlobal=function(n){n=["object"==typeof globalThis&&globalThis,n,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof on&&on];for(var e=0;e<n.length;++e){var t=n[e];if(t&&t.Math==Math)return t}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$",u.polyfill=function(n,e,t,i){e&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(n,e,t,i):u.polyfillUnisolated(n,e,t,i))},u.polyfillUnisolated=function(n,e,t,i){for(t=u.global,n=n.split("."),i=0;i<n.length-1;i++){var r=n[i];if(!(r in t))return;t=t[r]}(e=e(i=t[n=n[n.length-1]]))!=i&&null!=e&&u.defineProperty(t,n,{configurable:!0,writable:!0,value:e})},u.polyfillIsolated=function(n,e,t,i){var r=n.split(".");n=1===r.length,i=r[0],i=!n&&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!=(e=e(t=u.IS_SYMBOL_NATIVE&&"es6"===t?i[r]:null))&&(n?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:e}):e!==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:e})))},u.getConstructImplementation=function(){var i;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(n,[],function(){}),new n instanceof n?Reflect.construct:(i=Reflect.construct,function(n,e,t){return n=i(n,e),t&&Reflect.setPrototypeOf(n,t.prototype),n})):function(n,e,t){return t=u.objectCreate((t=void 0===t?n:t).prototype||Object.prototype),Function.prototype.apply.call(n,t,e)||t};function n(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var n={};try{return n.__proto__={a:!0},n.a}catch(n){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(n,e){if(n.__proto__=e,n.__proto__!==e)throw new TypeError(n+" is not extensible");return n}:null,u.inherits=function(n,e){if(n.prototype=u.objectCreate(e.prototype),n.prototype.constructor=n,u.setPrototypeOf){var t=u.setPrototypeOf;t(n,e)}else for(t in e){var i;"prototype"!=t&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(e,t))&&Object.defineProperty(n,t,i):n[t]=e[t])}n.superClass_=e.prototype},u.getRestArguments=function(){for(var n=Number(this),e=[],t=n;t<arguments.length;t++)e[t-n]=arguments[t];return e},u.polyfill("Reflect",function(n){return n||{}},"es6","es3"),u.polyfill("Reflect.construct",function(n){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(n){var t;return n||(u.setPrototypeOf?(t=u.setPrototypeOf,function(n,e){try{return t(n,e),!0}catch(n){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(n){var e,t,i,r;return n||((e=function(n,e){this.$jscomp$symbol$id_=n,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:e})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(n){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new e(t+(n||"")+"_"+i++,n)})},"es6","es3"),u.polyfill("Symbol.iterator",function(n){if(!n){n=Symbol("Symbol.iterator");for(var e="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<e.length;t++){var i=u.global[e[t]];"function"==typeof i&&"function"!=typeof i.prototype[n]&&u.defineProperty(i.prototype,n,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return n},"es6","es3"),u.iteratorPrototype=function(n){return(n={next:n})[Symbol.iterator]=function(){return this},n},u.iteratorFromArray=function(e,t){e instanceof String&&(e+="");var i=0,r=!1,n={next:function(){var n;return!r&&i<e.length?(n=i++,{value:t(n,e[n]),done:!1}):{done:r=!0,value:void 0}}};return n[Symbol.iterator]=function(){return n},n},u.polyfill("Array.prototype.keys",function(n){return n||function(){return u.iteratorFromArray(this,function(n){return n})}},"es6","es3"),u.owns=function(n,e){return Object.prototype.hasOwnProperty.call(n,e)},u.polyfill("Object.values",function(n){return n||function(n){var e,t=[];for(e in n)u.owns(n,e)&&t.push(n[e]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(n,e,t){return n==i&&"q"==e&&t==r}}));return!0===r.q}catch(n){return!1}},u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,u.ES6_CONFORMANCE=u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&u.checkEs6ConformanceViaProxy(),u.polyfill("WeakMap",function(i){function t(){}function r(n){var e=typeof n;return"object"==e&&null!==n||"function"==e}function a(n){var e;u.owns(n,o)||(e=new t,u.defineProperty(n,o,{value:e}))}function n(n){var e;u.ISOLATE_POLYFILLS||(e=Object[n])&&(Object[n]=function(n){return n instanceof t?n:(Object.isExtensible(n)&&a(n),e(n))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if(function(){if(i&&Object.seal)try{var n=Object.seal({}),e=Object.seal({}),t=new i([[n,2],[e,3]]);return 2==t.get(n)&&3==t.get(e)?(t["delete"](n),t.set(e,4),!t.has(n)&&4==t.get(e)):void 0}catch(n){}}())return i;function e(n){if(this.id_=(s+=Math.random()+1).toString(),n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var o="$jscomp_hidden_"+Math.random(),s=(n("freeze"),n("preventExtensions"),n("seal"),0);return e.prototype.set=function(n,e){if(!r(n))throw Error("Invalid WeakMap key");if(a(n),u.owns(n,o))return n[o][this.id_]=e,this;throw Error("WeakMap key fail: "+n)},e.prototype.get=function(n){return r(n)&&u.owns(n,o)?n[o][this.id_]:void 0},e.prototype.has=function(n){return r(n)&&u.owns(n,o)&&u.owns(n[o],this.id_)},e.prototype["delete"]=function(n){return!!(r(n)&&u.owns(n,o)&&u.owns(n[o],this.id_))&&delete n[o][this.id_]},e},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(r){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if(function(){if(!u.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var n,e,t=Object.seal({x:4}),i=new r(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:(e=(n=i.entries()).next()).done||e.value[0]!=t||"s"!=e.value[1]?void 0:!((e=n.next()).done||4!=e.value[0].x||"t"!=e.value[1]||!n.next().done)}catch(n){}}())return r;function n(n){if(this.data_={},this.head_=t(),this.size=0,n){n=u.makeIterator(n);for(var e;!(e=n.next()).done;)e=e.value,this.set(e[0],e[1])}}var a=new WeakMap,i=(n.prototype.set=function(n,e){var t=i(this,n=0===n?0:n);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=e:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:n,value:e},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},n.prototype["delete"]=function(n){return!(!(n=i(this,n)).entry||!n.list||(n.list.splice(n.index,1),n.list.length||delete this.data_[n.id],n.entry.previous.next=n.entry.next,n.entry.next.previous=n.entry.previous,n.entry.head=null,this.size--,0))},n.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},n.prototype.has=function(n){return!!i(this,n).entry},n.prototype.get=function(n){return(n=i(this,n).entry)&&n.value},n.prototype.entries=function(){return e(this,function(n){return[n.key,n.value]})},n.prototype.keys=function(){return e(this,function(n){return n.key})},n.prototype.values=function(){return e(this,function(n){return n.value})},n.prototype.forEach=function(n,e){for(var t,i=this.entries();!(t=i.next()).done;)t=t.value,n.call(e,t[1],t[0],this)},n.prototype[Symbol.iterator]=n.prototype.entries,function(n,e){var t=e&&typeof e,i=("object"==t||"function"==t?a.has(e)?t=a.get(e):(t=""+ ++o,a.set(e,t)):t="p_"+e,n.data_[t]);if(i&&u.owns(n.data_,t))for(n=0;n<i.length;n++){var r=i[n];if(e!=e&&r.key!=r.key||e===r.key)return{id:t,list:i,index:n,entry:r}}return{id:t,list:i,index:-1,entry:void 0}}),e=function(n,e){var t=n.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=n.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:e(t)};t=null}return{done:!0,value:void 0}})},t=function(){var n={};return n.previous=n.next=n.head=n},o=0;return n},"es6","es3"),"omid_message_guid"),r="omid_message_method",a="omid_message_version",o="omid_message_args",s=function(n,e,t,i){this.guid=n,this.method=e,this.version=t,this.args=i},c=(s.isValidSerializedMessage=function(n){return!!n&&void 0!==n[t]&&void 0!==n[r]&&void 0!==n[a]&&"string"==typeof n[t]&&"string"==typeof n[r]&&"string"==typeof n[a]&&(void 0===n[o]||void 0!==n[o])},s.deserialize=function(n){return new s(n[t],n[r],n[a],n[o])},s.prototype.serialize=function(){var n={};return n[t]=this.guid,n[r]=this.method,n[a]=this.version,void 0!==this.args&&(n[o]=this.args),n},{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction",STATE_CHANGE:"stateChange"},MediaEventType:{LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},SupportedFeatures:{CONTAINER:"clid",VIDEO:"vlid"},VideoPosition:{PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},VideoPlayerState:{MINIMIZED:"minimized",COLLAPSED:"collapsed",NORMAL:"normal",EXPANDED:"expanded",FULLSCREEN:"fullscreen"},NativeViewKeys:{X:"x",LEFT:"left",Y:"y",TOP:"top",WIDTH:"width",HEIGHT:"height",AD_SESSION_ID:"adSessionId",IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",CLIPS_TO_BOUNDS:"clipsToBounds",CHILD_VIEWS:"childViews",END_X:"endX",END_Y:"endY",OBSTRUCTIONS:"obstructions",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),l=function(n){this.to=n,this.communicationType_=c.CommunicationType.NONE};function d(n,e){if(!e)throw Error("Value for "+n+" is undefined, null or blank.");if("string"!=typeof e&&!(e instanceof String))throw Error("Value for "+n+" is not a string.");if(""===e.trim())throw Error("Value for "+n+" is empty string.")}function f(n,e){if(null==e)throw Error("Value for "+n+" is undefined or null")}function p(n,e){if(null==e)throw Error(n+" must not be null or undefined.");if("number"!=typeof e||isNaN(e))throw Error("Value for "+n+" is not a number")}function m(n,e,t,i){if(p(n,e),e<t||i<e)throw Error("Value for "+n+" is outside the range ["+t+","+i+"]")}function U(n,e){return n&&(n[e]||(n[e]={}))}function n(n,e,t){(t=void 0===t?void 0===i?null:i:t)&&((n=n.split(".")).slice(0,n.length-1).reduce(U,t)[n[n.length-1]]=e)}function v(n,e,t,i){i=void 0===i?c.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",n),this.resourceUrl=n,this.vendorKey=e,this.verificationParameters=t,this.accessMode=i}function _(n,e){d("UniversalAdId.value",n),d("UniversalAdId.idRegistry",e),this.value=n,this.idRegistry=e}function h(n,e,t,i,r){t=void 0===t?null:t,i=void 0===i?null:i,r=void 0===r?null:r,f("Context.partner",n),this.partner=n,this.verificationScriptResources=e,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null,this.universalAdId=r}l.prototype.sendMessage=function(n,e){},l.prototype.handleMessage=function(n,e){this.onMessage&&this.onMessage(n,e)},l.prototype.serialize=function(n){return JSON.stringify(n)},l.prototype.deserialize=function(n){return JSON.parse(n)},l.prototype.isDirectCommunication=function(){return this.communicationType_===c.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},n("OmidSessionClient.Partner",function(n,e){d("Partner.name",n),d("Partner.version",e),this.name=n,this.version=e}),v.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},n("OmidSessionClient.VerificationScriptResource",v),_.prototype.toSerialisedValue=function(){return this.value+"; "+this.idRegistry},n("OmidSessionClient.UniversalAdId",_),h.prototype.setVideoElement=function(n){f("Context.videoElement",n),this.videoElement=n},h.prototype.setSlotElement=function(n){f("Context.slotElement",n),this.slotElement=n},h.prototype.setServiceWindow=function(n){f("Context.serviceWindow",n),this.serviceWindow=n},n("OmidSessionClient.Context",h);var g={},E=(g.omidGlobal=function(){if(void 0!==e&&e)return e;if(void 0!==on&&on)return on;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var n=Function("return this")();if(n)return n;throw Error("Could not determine global object context.")}(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),y={sessionError:"reportError"},x=Object.keys(c.MediaEventType).map(function(n){return c.MediaEventType[n]}),V=["impressionOccurred"],S=function(n){n=void 0===n?g.omidGlobal:n,this.interfaceRoot_=n[E.ROOT]};function I(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var e=16*Math.random()|0;return n=("y"===n?3&e|8:e).toString(16)})}function A(){var n=u.getRestArguments.apply(0,arguments);F(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(n))))},function(){console.error.apply(console,u.arrayFromIterable(n))})}function F(n,e){"undefined"!=typeof jasmine&&jasmine?n():"undefined"!=typeof console&&console&&console.error&&e()}S.prototype.isSupported=function(){return null!=this.interfaceRoot_},S.prototype.sendMessage=function(n,e,t){if("registerSessionObserver"==n&&(t=[e]),e=this.interfaceRoot_,0<=V.indexOf(n=y[n]?y[n]:n)&&(e=e[E.AD_EVENTS]),!(e=(e=0<=x.indexOf(n)?e[E.MEDIA_EVENTS]:e)[n]))throw Error("Unrecognized method name: "+n+".");e.apply(null,u.arrayFromIterable(t))};var T="1.5.5-iab77",W=3;function O(n){return/\d+\.\d+\.\d+(-.*)?/.test(n)}function b(n,e){n=n.split("-")[0].split("."),e=e.split("-")[0].split(".");for(var t=0;t<W;t++){var i=parseInt(n[t],10),r=parseInt(e[t],10);if(r<i)break;if(i<r)return!1}return!0}var C="1.0.3";function j(n,e){return O(n)&&b(n,C)?e:JSON.stringify(e)}function B(n,e){return O(n)&&b(n,C)?e||[]:e&&"string"==typeof e?JSON.parse(e):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function z(n){return G(n,H.SESSION_SERVICE)}function G(n,e){return e+n}function M(n){return null!=n&&void 0!==n.top&&null!=n.top}function q(n){var e;if(n!==g.omidGlobal)try{if(void 0===n.location.hostname)return!0;""!==(e=n).x&&e.x}catch(n){return!0}return!1}function Y(n){return M(n=void 0===n&&"undefined"!=typeof window&&window?window:n)?n:g.omidGlobal}function K(n){return M(n)?n.top:g.omidGlobal}var D=function(n){l.call(this,n),this.communicationType_=c.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,l),D.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.handleExportedMessage(n.serialize(),this)},D.prototype.handleExportedMessage=function(n,e){s.isValidSerializedMessage(n)&&this.handleMessage(s.deserialize(n),e)},D.prototype.isCrossOrigin=function(){return!1},function(n,e){e=void 0===e?g.omidGlobal:e,l.call(this,e);var t=this;this.communicationType_=c.CommunicationType.POST_MESSAGE,n.addEventListener("message",function(n){var e;"object"==typeof n.data&&(e=n.data,s.isValidSerializedMessage(e))&&(e=s.deserialize(e),n.source)&&t.handleMessage(e,n.source)})}),N=(u.inherits(R,l),R.isCompatibleContext=function(n){return!!(n&&n.addEventListener&&n.postMessage)},R.prototype.sendMessage=function(n,e){if(!(e=void 0===e?this.to:e))throw Error("Message destination must be defined at construction time or when sending the message.");e.postMessage(n.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||q(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(n){var e={};return e[c.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,e[c.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,e[n]}});function X(n,e){try{return n.frames&&!!n.frames[e]}catch(n){return!1}}function J(n,e){n.document.write('<iframe style="display:none" id="'+e+'" name="'+e+'" sandbox></iframe>')}N.isOmidPresent=function(e){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return X(e,n)})},N.getOmidEnvironment=function(n){for(var e=u.makeIterator(Object.values(c.Environment)),t=e.next();!t.done;t=e.next()){t=t.value;if(X(n,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(e,n){e.frames&&e.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(n){return!!e.frames[n]})&&(null==e.document.body&&N.isMutationObserverAvailable_(e)?N.registerMutationObserver_(e,n):(n=N.getEnvironmentIframeName(n),e.document.body?(N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n)):(J(e,N.OMID_PRESENT_FRAME_NAME),J(e,n))))},N.appendPresenceIframe_=function(n,e){var t=n.document.createElement("iframe");t.id=e,t.name=e,t.style.display="none",t.sandbox="",n.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(n){return"MutationObserver"in n},N.registerMutationObserver_=function(e,t){var i=new MutationObserver(function(n){n.forEach(function(n){"BODY"===n.addedNodes[0].nodeName&&(n=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(e,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(e,n),i.disconnect())})});i.observe(e.document.documentElement,{childList:!0})};var $=["omid","v1_SessionServiceCommunication"];function Q(n,e){return e.reduce(function(n,e){return n&&n[e]},n)}function Z(n,e,t,i){for(var r=(e=u.makeIterator(e)).next();!r.done;r=e.next())if(r=function(n,e,t,i){if(!q(e))try{var r=Q(e,t);if(r)return new D(r)}catch(n){}return i(e)?new R(n,e):null}(n,r.value,t,i))return r;return null}function nn(n,e,t){t=void 0===t?N.isOmidPresent:t;var i=[n,K(n)];return e&&i.unshift(e),Z(n,i,$,t)}function P(n,e,t){f("AdSession.context",n),this.adSessionId_=I(),this.context_=n,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=e||nn(Y(),i),this.sessionInterface_=t||new S,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(n.verificationScriptResources),this.sendSlotElement_(n.slotElement),this.sendVideoElement_(n.videoElement),this.sendContentUrl_(n.contentUrl),this.watchSessionEvents_()}function en(n,e,t,i){this.isSkippable=n,this.skipOffset=e,this.isAutoPlay=t,this.position=i}function k(n){f("AdEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerAdEvents(),this.adSession=n}catch(n){throw Error("AdSession already has an ad events instance registered")}}function w(n){f("MediaEvents.adSession",n),this.adSessionId_=n.getAdSessionId();try{n.registerMediaEvents(),this.adSession=n}catch(n){throw Error("AdSession already has a media events instance registered")}}function tn(t){var n=Y();new R(n).onMessage=function(n,e){n.method===c.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(e)}}P.prototype.getAdSessionId=function(){return this.adSessionId_},P.prototype.setCreativeType=function(n){if(n===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+c.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",n,this.adSessionId_),this.creativeType_=n},P.prototype.setImpressionType=function(n){if(n===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+c.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",n,this.adSessionId_),this.impressionType_=n},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(n){this.sendMessage("registerSessionObserver",n,this.adSessionId_)},P.prototype.start=function(){var n={customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation};this.context_.universalAdId&&(n.universalAdId=this.context_.universalAdId.toSerialisedValue()),this.sendOneWayMessage("startSession",n,this.adSessionId_)},P.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},P.prototype.error=function(n,e){this.sendOneWayMessage("sessionError",n,e,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(n){var e=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[n,null].concat(u.arrayFromIterable(e)))},P.prototype.sendMessage=function(n,e){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(n,e,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(n,e,t)},P.prototype.sendInternalMessage_=function(n,e,t){var i=I();e&&(this.callbackMap_[i]=e),n=new s(i,z(n),T,j(T,t)),this.communication_.sendMessage(n)},P.prototype.handleInternalMessage_=function(n,e){e=n.method;var t,i=n.guid;n=n.args,"response"===e&&this.callbackMap_[i]&&(t=B(T,n),this.callbackMap_[i].apply(this,t)),"error"===e&&window.console&&A(n)},P.prototype.sendInterfaceMessage_=function(n,e,t){try{this.sessionInterface_.sendMessage(n,e,t)}catch(n){A("Failed to communicate with SessionInterface with error:"),A(n)}},P.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},P.prototype.impressionOccurred=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},P.prototype.creativeLoaded=function(){if(this.creativeType_===c.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===c.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},P.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",T,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},P.prototype.injectVerificationScripts_=function(n){n&&(n=n.map(function(n){return n.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",n,this.adSessionId_))},P.prototype.sendSlotElement_=function(n){this.sendElement_(n,"setSlotElement")},P.prototype.sendVideoElement_=function(n){this.sendElement_(n,"setVideoElement")},P.prototype.sendElement_=function(n,e){n&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(e,n,this.adSessionId_):this.error(c.ErrorType.GENERIC,"Session Client "+e+" called when communication is cross-origin"))},P.prototype.sendContentUrl_=function(n){n&&this.sendOneWayMessage("setContentUrl",n,this.adSessionId_)},P.prototype.setElementBounds=function(n){f("AdSession.elementBounds",n),this.sendOneWayMessage("setElementBounds",n,this.adSessionId_)},P.prototype.watchSessionEvents_=function(){var e=this;this.registerSessionObserver(function(n){n.type===c.AdEventType.SESSION_START&&(e.isSessionRunning_=!0,e.creativeType_=n.data.creativeType,e.impressionType_=n.data.impressionType),n.type===c.AdEventType.SESSION_FINISH&&(e.isSessionRunning_=!1)})},n("OmidSessionClient.AdSession",P),en.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(n){n=void 0===n?null:n,this.adSession.creativeLoaded(),n=n?n.toJSON():null,this.adSession.sendOneWayMessage("loaded",n,this.adSessionId_)},n("OmidSessionClient.AdEvents",k),w.prototype.start=function(n,e){p("MediaEvents.start.duration",n),m("MediaEvents.start.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("start",n,e,this.adSessionId_)},w.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},w.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},w.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},w.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},w.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},w.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},w.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},w.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},w.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},w.prototype.volumeChange=function(n){m("MediaEvents.volumeChange.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("volumeChange",n,this.adSessionId_)},w.prototype.playerStateChange=function(n){f("MediaEvents.playerStateChange.playerState",n),this.adSession.sendOneWayMessage("playerStateChange",n,this.adSessionId_)},w.prototype.adUserInteraction=function(n){f("MediaEvents.adUserInteraction.interactionType",n),this.adSession.sendOneWayMessage("adUserInteraction",n,this.adSessionId_)},n("OmidSessionClient.MediaEvents",w),n("OmidSessionClient.OmidVersion",function(n,e){d("OmidVersion.semanticVersion",n),d("OmidVersion.apiLevel",e)}),n("OmidSessionClient.listenForServiceWindow",tn),n("OmidSessionClient.VastProperties",en);var L={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9,HUMAN:10}};function rn(n){for(var e=u.makeIterator(an.keys()),t=e.next();!t.done;t=e.next())for(var t=t.value,i=u.makeIterator(an.get(t)),r=i.next();!r.done;r=i.next())if(r.value.test(n))return t;return L.VerificationVendorId.OTHER}var an=new Map([[L.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[L.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[L.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[L.VerificationVendorId.NIELSEN,[]],[L.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[L.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[L.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]],[L.VerificationVendorId.HUMAN,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.script\.ac\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\/(2|ag|static)\/[a-zA-Z0-9.]*\/analytics.js.*$/]]]);n("OmidSessionClient.verificationVendorIdForScriptUrl",rn),n("OmidSessionClient.VerificationVendorId",L.VerificationVendorId),L.verificationVendorIdForScriptUrl=rn}var on="object"==typeof globalThis?globalThis:window,e={},t=void 0===on?this:on;if("object"==typeof(r=void 0===e?void 0:e)&&"string"!=typeof r.nodeName)n(t,r);else{var i,r={},a=["1.5.5-iab77"],o="default";for(i in a.push(o),n(t,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(t,i)&&Object.defineProperty(t,i,{value:{}}),a.forEach(function(n){var e;null==Object.getOwnPropertyDescriptor(t[i],n)&&(e=function n(e){for(var t in e)e.hasOwnProperty(t)&&(e[t]=n(e[t]));return Object.freeze(e)}(r[i]),Object.defineProperty(t[i],n,{get:function(){return e},enumerable:!0}))}))}s.OmidSessionClient=e.OmidSessionClient}(),t={},n=self,e=function(){"use strict";var i={d:function(n,e){for(var t in e)i.o(e,t)&&!i.o(n,t)&&Object.defineProperty(n,t,{enumerable:!0,get:e[t]})},o:function(n,e){return Object.prototype.hasOwnProperty.call(n,e)}},h={},g=(i.d(h,{"default":function(){return Pn}}),1),S=2,I=4,A="[MT] ",T=function(n){return n[n["NONE"]=0]="NONE",n[n["ERROR"]=1]="ERROR",n[n["WARNING"]=2]="WARNING",n[n["INFO"]=3]="INFO",n[n["DEBUG"]=4]="DEBUG",n}({}),O=S;function t(n,e,t,i){n<=O&&(t=A+t,void 0===i?e.call(console,t):e.call(console,t,i))}var b=console.error,C=console.warn,M=(console.info,console.debug);function u(n,e){t(g,b,n,e)}function j(n,e){t(S,C,n,e)}function B(n,e){t(I,M,n,e)}function r(n){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(n)}function a(n){var e;return null==(e="object"===("undefined"==typeof globalThis?"undefined":r(globalThis))?globalThis:window)?void 0:e[n]}function v(n){if(n){if(Array.isArray(n))return n.slice();if("object"===r(n))return Object.assign({},n)}return null}function H(n){if(n)try{return JSON.parse(JSON.stringify(n))}catch(n){u("Exception during deep-copy: ".concat(n),n)}return null}function D(n,e){if(null!=n)try{return new mc(n,e).toString()}catch(n){u("URL Exception: ".concat(n),n)}return null}function an(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i)for(var r=0,a=i-1;r<=a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o+1:a=o-1}return-1}function on(n,e,t){var i=(null==e?void 0:e.length)||0;if(0<i){for(var r=0,a=i-1;r<a;){var o=Math.ceil((r+a)/2),s=t(n,e[o]);if(0===s)return o;0<s?r=o:a=o-1}if(0<r||0<=t(n,e[r]))return r}return-1}for(var o=[],n=0;n<256;n++)o.push((n+256).toString(16).substr(1).toLowerCase());var R=!(null==(e=a("crypto"))||!e.getRandomValues);R||j("crypto.getRandomValues() unavailable");var N=/P.*T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?/;var P="MediaTailor",k="1.0.0",w=[2,9],L="ad_start",U="ad_progress",x="ad_click",V="ad_can_skip",sn="ad_incoming",F="nonlinear_ad_start",W="nonlinear_ad_end",un="ad_tracking_info_response",cn=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],s=null;function ln(t){var n,i,e,r="nonceReq: ";return s?(n=null==(n=a("goog"))||null==(n=n.pal)?void 0:n.NonceRequest)?((i=new n).omidPartnerName=P,i.omidPartnerVersion=k,i.supportedApiFrameworks=w,cn.forEach(function(n){var e=t[n];null!=e&&(i[n]=e)}),i.sessionId||(i.sessionId=function(){var n=new Uint8Array(16);if(R)crypto.getRandomValues(n);else for(var e=0;e<16;e++)n[e]=Math.floor(256*Math.random());return n[6]=15&n[6]|64,n[8]=63&n[8]|128,o[n[0]]+o[n[1]]+o[n[2]]+o[n[3]]+"-"+o[n[4]]+o[n[5]]+"-"+o[n[6]]+o[n[7]]+"-"+o[n[8]]+o[n[9]]+"-"+o[n[10]]+o[n[11]]+o[n[12]]+o[n[13]]+o[n[14]]+o[n[15]]}()),(e=null==(e=(n=s).loadNonceManager)?void 0:e.call(n,i))?B(r+"Request sent",i):u(r+"Request failed",i),e):(u(r+"Missing PAL SDK classes"),null):(u(r+"PAL isn't initialized"),null)}function dn(n){try{return JSON.parse(n)}catch(n){return j("JSON Parse Exception: ".concat(n),n),null}}function fn(r,a,o,s,i){var u=new XMLHttpRequest,c=null==s?void 0:s.retryHeuristics,l=0,d=!1;function f(){if(!d)try{e=u,n=r,i=null==(t=s)?void 0:t.headers,e.open(n,a,!0),e.timeout=null!=(n=null==t?void 0:t.timeout)?n:0,i&&Object.keys(i).forEach(function(n){e.setRequestHeader(n,i[n])}),l++,u.send(o),B("XHR (".concat(r," ").concat(a,", #").concat(l,") request sent"),o)}catch(n){j("XHR Exception: ".concat(n),n)}var e,n,t,i}return u.onreadystatechange=function(){if(!d&&4===u.readyState){var n=u.status,e=u.responseText;if(B("XHR (".concat(a,") response received, status ").concat(n),e),n<200||299<n){var t=c?c(l,n,e):-1;if(0<=t)return setTimeout(f,t),void j("XHR (".concat(a,") failed (status ").concat(n,"), retry in ").concat(t," ms"),e)}i&&i(e,n,a)}},f(),{abort:function(){d=!0,u.abort(),B("XHR (".concat(a,") aborted"))}}}function pn(n,e,t){return fn("GET",n,null,e,t)}function mn(n,e,t,i){try{(t=v(t)||{}).headers=(o={"Content-Type":"application/json; charset=utf-8"},s=t.headers,o&&s?Object.assign(o,s):o),r=n,a=JSON.stringify(e),fn("POST",r,a,t,function(n,e,t){200===e&&null!=n&&(n=dn(n)),i&&i(n,e,t)})}catch(n){j("JSON Encode Exception: ".concat(n),n)}var r,a,o,s}function vn(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}function z(n,e){return function(n){if(Array.isArray(n))return n}(n)||function(n,e){var t=null==n?null:"undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(null!=t){var i,r,a,o,s=[],u=!0,c=!1;try{if(a=(t=t.call(n)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(i=a.call(t)).done)&&(s.push(i.value),s.length!==e);u=!0);}catch(n){c=!0,r=n}finally{try{if(!u&&null!=t["return"]&&(o=t["return"](),Object(o)!==o))return}finally{if(c)throw r}}return s}}(n,e)||function(n,e){var t;if(n)return"string"==typeof n?vn(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?vn(n,e):void 0}(n,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var e="impression",G="firstQuartile",q="midpoint",Y="thirdQuartile",K="complete",c="creativeView",d=[],_n=(d[0]=[e],d[1]=["clickTracking"],d[2]=["loaded"],d[3]=["start",c],d[4]=[G],d[5]=[q],d[6]=[Y],d[7]=[K],d[8]=["skip"],d[9]=["pause"],d[10]=["resume"],d[11]=["mute"],d[12]=["unmute"],d[13]=["fullscreen","playerExpand"],d[14]=["exitFullscreen","playerCollapse"],{});function hn(s,u){var c={},l=null;return{onAdLoad:function(n){l={},null!=(n=n.trackingEvents)&&n.forEach(function(n){l[n.eventType]=n})},onAdEnd:function(n){l=null},onAdTrackingEvent:function(n,e){var t=d[e];if(l&&1===n.playCount&&t)for(var i=t.length,r=0;r<i;r++){var a,o=t[r];s&&null!=(a=_n[o])&&a.noninteractive||!function(i,r){var n=null==r?void 0:r.beaconUrls;if(n)for(var e=n.length,t=0;t<e;t++){var a=null==(a=n[t])?void 0:a.trim();a&&pn(a,c,function(n,e,t){u(i,r,t,e)})}}(n,l[o])}}}}function gn(n,e){var t,i,r,a,o="undefined"!=typeof Symbol&&n[Symbol.iterator]||n["@@iterator"];if(o)return i=!(t=!0),{s:function(){o=o.call(n)},n:function(){var n=o.next();return t=n.done,n},e:function(n){i=!0,r=n},f:function(){try{t||null==o["return"]||o["return"]()}finally{if(i)throw r}}};if(Array.isArray(n)||(o=function(n,e){var t;if(n)return"string"==typeof n?En(n,e):"Map"===(t="Object"===(t=Object.prototype.toString.call(n).slice(8,-1))&&n.constructor?n.constructor.name:t)||"Set"===t?Array.from(n):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?En(n,e):void 0}(n))||e&&n&&"number"==typeof n.length)return o&&(n=o),a=0,{s:e=function(){},n:function(){return a>=n.length?{done:!0}:{done:!1,value:n[a++]}},e:function(n){throw n},f:e};throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function En(n,e){(null==e||e>n.length)&&(e=n.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=n[t];return i}[e,"loaded","start",c,G,q,Y,K].forEach(function(n){_n[n]={noninteractive:!0}});var X="adData: ";function E(n){return n&&"object"===r(n)&&n}function J(n,e){if(!E(n))return null;for(var t=z(e,2)[1],i={},r=t.length,a=0;a<r;a++){var o=z(t[a],3),s=o[0],u=o[1],o=o[2],o=o[0](n[s],o);if(null!=o)i[s]=o;else if(!u)return B(X+"Missing object field: ".concat(s),n),null}return i}function y(n){return n&&Array.isArray(n)?n:null}function l(n,e){if(!y(n))return null;for(var e=z(e,3),t=e[1],i=e[2],r=[],a=n.length,o=0;o<a;o++){var s=i[0](n[o],i);null!=s||t?r.push(s):B(X+"Invalid array entry at: ".concat(o),n)}return r}function $(n){return"number"==typeof n?n:null}function Q(n){return"string"==typeof n?n:null}var e=[$],c=[Q],f=[function(n){return"boolean"==typeof n?n:null}],yn=[J,[["content",!1,c],["type",!1,c]]],Sn=[J,[["beaconUrls",!1,[l,!1,c]],["durationInSeconds",!0,e],["eventId",!0,c],["eventProgramDateTime",!0,c],["eventType",!1,c],["startTimeInSeconds",!0,e]]],In=[J,[["adId",!0,c],["adParameters",!0,c],["adSystem",!0,c],["adTitle",!0,c],["adVerifications",!0,[l,!1,[J,[["executableResource",!0,[l,!1,[J,[["apiFramework",!0,c],["language",!0,c],["type",!0,c],["uri",!0,c]]]]],["javaScriptResource",!0,[l,!1,[J,[["apiFramework",!0,c],["browserOptional",!0,c],["uri",!0,c]]]]],["trackingEvents",!0,[l,!1,[J,[["event",!1,c],["uri",!1,c]]]]],["vendor",!0,c],["verificationParameters",!0,c]]]]],["companionAds",!0,[l,!1,[J,[["adParameters",!0,c],["altText",!0,c],["attributes",!0,[J,[["adSlotId",!0,c],["apiFramework",!0,c],["assetHeight",!0,c],["assetWidth",!0,c],["expandedHeight",!0,c],["expandedWidth",!0,c],["height",!0,c],["id",!0,c],["pxratio",!0,c],["renderingMode",!0,c],["width",!0,c]]]],["companionClickThrough",!0,c],["companionClickTracking",!0,c],["htmlResource",!0,c],["iFrameResource",!0,c],["sequence",!0,c],["staticResource",!0,c],["trackingEvents",!0,[l,!1,[J,[["beaconUrls",!1,[l,!1,c]],["eventType",!1,c]]]]]]]]],["creativeId",!0,c],["creativeSequence",!0,c],["extensions",!0,[l,!1,yn]],["trackingEvents",!0,[l,!1,Sn]],["vastAdId",!0,c]]],An=[J,[["nonLinearAdList",!1,[l,!1,[J,[["durationInSeconds",!0,e],["adId",!0,c],["adParameters",!0,c],["adSystem",!0,c],["adTitle",!0,c],["creativeId",!0,c],["creativeAdId",!0,c],["creativeSequence",!0,c],["width",!0,c],["height",!0,c],["expandedWidth",!0,c],["expandedHeight",!0,c],["scalable",!0,f],["maintainAspectRatio",!0,f],["minSuggestedDuration",!0,c],["apiFramework",!0,c],["staticResource",!0,c],["staticResourceCreativeType",!0,c],["iFrameResource",!0,c],["htmlResource",!0,c],["clickThrough",!0,c],["clickTracking",!0,c],["clickTrackingId",!0,c]]]]],["extensions",!0,[l,!1,yn]],["trackingEvents",!0,[l,!1,Sn]]]],Z=new DOMParser,Tn=/\n|<!\[CDATA\[|\]\]>/g;function nn(n){n=null==n?void 0:n.textContent;return null==n?null:n.replace(Tn,"").trim()}function en(n,e,t){t&&(n[e]=t)}function tn(n,e){var t,i=gn(n.children);try{for(i.s();!(t=i.n()).done;){var r,a=t.value;null!=(r=e[a.tagName])&&r.call(e,a)}}catch(n){i.e(n)}finally{i.f()}}function On(n){var t=[];return tn(n,{IconClickFallbackImage:function(n){var e={};t.push(e),en(e,"width",n.getAttribute("width")),en(e,"height",n.getAttribute("height")),tn(n,{AltText:function(n){en(e,"altText",nn(n))},StaticResource:function(n){en(e,"staticResource",nn(n))}})}}),t}function bn(n){return n&&new Date("1970-01-01T".concat(n,"Z")).getTime()/1e3}function Cn(n,m,v){var _,h,t;if(E(n))return _=Q(n.dashAvailabilityStartTime),null!=(h=y(n.avails))&&h.forEach(function(n){if(E(n)){var e=Q(n.availId);if(e){var o=$(n.startTimeInSeconds),s=$(n.durationInSeconds),u=(t=(t=Q(n.adMarkerDuration))&&N.exec(t))?3600*((r=t[1])?+r:0)+60*((r=t[2])?+r:0)+((r=t[3])?+r:0):null,c=((c=Q(n.availProgramDateTime))?new Date(c).getTime()/1e3:_?new Date(_).getTime()/1e3+o:0)||0,t=(g(!1,n,o,s,c,u),m[e]),i="",l=y(n.ads),r=(null!=l&&l.forEach(function(n){E(n)&&(i+="".concat(n.adId,",").concat(n.startTime,",").concat(n.duration,";"))}),!t||i!==t.digest);if(B(X+"Avail ".concat(r?t?"!":"":"~").concat(e," ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),r){var d={},f=null==t?void 0:t.ads,p=null==l?void 0:l.length;if(null!=l&&l.forEach(function(n,e){var t,i,r,a;E(n)?(t=Q(n.adId))?null==(i=$(n.startTimeInSeconds))?j(X+"Invalid or missing ad start time",n):(d[t]={start:i,duration:n.duration},r=null,f&&(r=f[t],f[t]=null),a=!r||i!==r.start||n.duration!==r.duration,B(X+"Ad ".concat(a?r?"!":"":"~").concat(t," ")+"(#".concat(e+1," of ").concat(p,") ")+"(".concat(n.duration," @ ").concat(n.startTime," / ").concat(n.adProgramDateTime,")"),n),a&&v(i,e,p,o,s,c,u,n,!1,!1,null==(t=r)?void 0:t.start)):j(X+"Missing ad ID",n):j(X+"Invalid ad object",l)}),f)for(var a in f){a=f[a];a&&v(0,0,0,o,s,c,u,null,!1,!1,a.start)}m[e]={digest:i,ads:d}}}else j(X+"Missing avail ID",n)}else j(X+"Invalid avail object",h)}),null!=(t=y(n.nonLinearAvails))&&t.forEach(function(n){var e;E(n)?(B(X+"nonLinearAvail (".concat(n.startTime," / ").concat(n.availProgramDateTime,")"),n),g(!0,n,e=$(n.startTimeInSeconds),null,n=((n=Q(n.availProgramDateTime))?new Date(n).getTime()/1e3:_?new Date(_).getTime()/1e3+e:0)||0,null)):j(X+"Invalid nonLinearAvail object",t)}),(n=Q(n.nextToken))&&B(X+'nextToken "'.concat(n,'"')),n;function g(n,e,t,i,r,a){e=null==(e=y(e.nonLinearAdsList))?void 0:e[0];e&&(E(e)?null==t?j(X+"Invalid or missing nonlinear ad start time",e):(B(X+"nonLinearAds",e),v(t,0,1,t,i,r,a,e,!0,n)):j(X+"Invalid nonLinearAds object",e))}j(X+"Invalid tracking-info response")}e=function(n){return n[n["AD_START"]=L]="AD_START",n[n["AD_END"]="ad_end"]="AD_END",n[n["AD_PROGRESS"]=U]="AD_PROGRESS",n[n["AD_CLICK"]=x]="AD_CLICK",n[n["AD_CAN_SKIP"]=V]="AD_CAN_SKIP",n[n["AD_INCOMING"]=sn]="AD_INCOMING",n[n["NONLINEAR_AD_START"]=F]="NONLINEAR_AD_START",n[n["NONLINEAR_AD_END"]=W]="NONLINEAR_AD_END",n[n["AD_TRACKING_INFO_RESPONSE"]=un]="AD_TRACKING_INFO_RESPONSE",n}({});function Mn(){var i=new _c,a=null,r=null,o=-1,s=!1;function u(n,e){i.dispatchEvent(new hc(n,{detail:e}))}function c(n,e){var t=n.availDuration,i=n.inAvailStartOffset;return{toAdEnd:n.duration-e,toAvailEnd:null!=t&&null!=i?t-i-e:null,toSkipThreshold:0<=o?Math.max(0,o-e):null}}return{addEventListener:function(n,e,t){i.addEventListener(n,e,t)},removeEventListener:function(n,e,t){i.removeEventListener(n,e,t)},onTrackingInfoResponse:function(n){u(un,{failedAdTrackingInfoRequest:n})},onAdStart:function(n,e,t){var i,r;r=e,t=t,a={adData:H(i=n),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:t+i.duration-r},o=n.skipOffset,s=!1,u(L,{adObject:a,adElapsedTime:e,adCountdown:c(n,e)})},onAdEnd:function(n){u("ad_end",{adObject:a}),a=null},onAdProgress:function(n,e,t){u(U,{adObject:a,adElapsedTime:e,adCountdown:c(n,e)}),!s&&0<=o&&o<=e&&(s=!0,u(V,{adObject:a}))},onAdClick:function(n){u(x,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart:function(n,e,t){r={adData:H(n)},u(F,{nonLinearAdsObject:r,adElapsedTime:e})},onNonLinearAdsEnd:function(n){u(W,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}}var f=function(n){return n[n["START"]=0]="START",n[n["END"]=1]="END",n[n["PAUSE"]=2]="PAUSE",n[n["RESUME"]=3]="RESUME",n[n["MUTE"]=4]="MUTE",n[n["UNMUTE"]=5]="UNMUTE",n[n["FULLSCREEN"]=6]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=7]="EXIT_FULLSCREEN",n}({}),rn=[],c=(rn[0]="IMPRESSION",rn[1]="CLICK_THROUGH",rn[2]="LOADED",rn[3]="START",rn[4]="FIRST_QUARTILE",rn[5]="MID_POINT",rn[6]="THIRD_QUARTILE",rn[7]="COMPLETE",rn[8]="SKIP",rn[9]="PAUSE",rn[10]="RESUME",rn[11]="MUTE",rn[12]="UNMUTE",rn[13]="FULLSCREEN",rn[14]="EXIT_FULLSCREEN",function(n){return n[n["IMPRESSION"]=0]="IMPRESSION",n[n["CLICK_THROUGH"]=1]="CLICK_THROUGH",n[n["LOADED"]=2]="LOADED",n[n["START"]=3]="START",n[n["FIRST_QUARTILE"]=4]="FIRST_QUARTILE",n[n["MID_POINT"]=5]="MID_POINT",n[n["THIRD_QUARTILE"]=6]="THIRD_QUARTILE",n[n["COMPLETE"]=7]="COMPLETE",n[n["SKIP"]=8]="SKIP",n[n["PAUSE"]=9]="PAUSE",n[n["RESUME"]=10]="RESUME",n[n["MUTE"]=11]="MUTE",n[n["UNMUTE"]=12]="UNMUTE",n[n["FULLSCREEN"]=13]="FULLSCREEN",n[n["EXIT_FULLSCREEN"]=14]="EXIT_FULLSCREEN",n}({}));function Dn(a,e,n){function o(n,e){return n.start-e.start}var s,u="adTracking: ",_=function(n,e){return n-e.start},c=function(n,e){return n-e.startDate},l={headers:{"Cache-Control":"no-cache, no-store"}},d=n.defaultTrackingRequestInterval||10,x=null!=(t=n.incomingAdCountdownInterval)?t:5,t=n.adTrackingUpdateMode||"pagination",V="playhead"===t,F="pagination"===t,h=[],W={},g=[],f=null,p=null,E=null,y=null,m=null,S=null,I=null,A=null,T=null,v=null,O=null,b=null,C=null,M=null,D=0,R=[],N=Mn();function P(n,e){for(var t=R.length,i=0;i<t;i++){var r,a=R[i];null!=(r=a[n])&&r.apply(a,e)}}function k(n,e){e=e||f,B(u+"Ad tracking event ".concat(rn[n]),e),P("onAdTrackingEvent",[e,n])}function w(n,e){!n.startDate&&b&&(n.startDate=e+b);e=s;(s=!!n.startDate)!==e&&B(u+"Set adHasStartDate to ".concat(s))}function L(n,e){var i,t,r=[["tttt","".concat(Date.now())]];V&&r.push(["aws.playheadPositionInSeconds",""+Math.round(e&&b?e-b:n)]),F&&O&&r.push(["aws.nextToken",O]),null!=(e=T)&&e.abort(),n=r,e=new mc(e=a),t=new vc(e.search),n.forEach(function(n){t.append(n[0],n[1])}),e.search="?"+t.toString(),r=e.toString(),i=function(n,e){var m,v;200===e?(v=m=!1,O=Cn(n,W,function(n,e,t,i,r,a,o,s,u,c,l){var d,f,p;null!=i&&a&&(b=a-i),u?an(n,g,_)<0&&(u=n,a=a,c=c,c=(p=J(d=s,An))?p.nonLinearAdList.length?(f=p.nonLinearAdList.reduce(function(n,e){var t=e.durationInSeconds||0;return t<=0&&(t=bn(e.minSuggestedDuration)||0),Math.max(n,t)},0)||5,Object.assign(p,{start:u,startDate:a,duration:f,nonlinearAvail:c}),B(X+"New NonLinearAdsData (".concat(f,"s @ ").concat(u,"s / ").concat(a,"s)"),p),p):(j(X+"Empty nonLinearAdList",d),null):(j(X+"Missing required fields for NonLinearAdsData",d),null))&&(w(c,n),g.push(c),v=!0,P("onNewNonLinearAds",[c])):(f=null!=l?an(l,h,_):-1,(u=s&&function(t,n,e,i,r,a,o){var s=$(o.durationInSeconds);if(null==s||s<=0)return j(X+"Invalid or missing ad duration",o),null;var u=(u=Q(o.adProgramDateTime))&&new Date(u).getTime()/1e3,c=bn(Q(o.skipOffset)),p=(c||0===c||(c=-1),J(o,In));if(!p)return j(X+"Missing required fields for AdData",o),null;null!=(o=p.extensions)&&o.forEach(function(n){if("AdVerifications"===n.type){var e=n.content;try{var t=null==(u=Z.parseFromString(e,"application/xml"))?void 0:u.documentElement,i=null==t?void 0:t.getElementsByTagName("JavaScriptResource"),r=null==t?void 0:t.getElementsByTagName("VerificationParameters"),a=null==t?void 0:t.getAttribute("vendor"),o=nn(null==i?void 0:i[0]),s=nn(null==r?void 0:r[0]);a&&o?(p.adVerifications||(p.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):j(X+"Invalid AdVerifications extension content",n)}catch(n){j(X+"Exception parsing AdVerifications extension: ".concat(e),n)}}else if("companion_about_this_ad"===n.type){var u="<root>"+n.content+"</root>";try{var c,l=null==(c=Z.parseFromString(u,"application/xml"))?void 0:c.documentElement;l&&tn(l,{Icon:function(n){var e=p.icons||(p.icons=[]),t={};e.push(t),en(t,"program",n.getAttribute("program")),en(t,"width",n.getAttribute("width")),en(t,"height",n.getAttribute("height")),en(t,"xPosition",n.getAttribute("xPosition")),en(t,"yPosition",n.getAttribute("yPosition")),tn(n,{StaticResource:function(n){en(t,"staticResource",nn(n))},IconClicks:function(n){var e={};t.iconClicks=e,tn(n,{IconClickThrough:function(n){en(e,"iconClickThrough",nn(n))},IconClickFallbackImages:function(n){n=On(n);n.length&&(e.iconClickFallbackImages=n)}})}})}})}catch(n){j(X+"Exception parsing AdChoices extension: ".concat(u),n)}}else if("IconClickFallbackImages"===n.type){t="<root>"+n.content+"</root>";try{var d,f=null==(d=Z.parseFromString(t,"application/xml"))?void 0:d.documentElement;f&&tn(f,{IconClickFallbackImages:function(n){var e={},n=((p.icons||(p.icons=[])).push(e),en(e,"program",n.getAttribute("program")),On(n));n.length&&(e.iconClicks={iconClickFallbackImages:n})}})}catch(n){j(X+"Exception parsing AdChoices extension: ".concat(t),n)}}});var l=[0,0,0,0];function d(n,e){e-=t;0<e&&e<s+.01&&(l[n]=e)}return Object.assign(p,{start:t,startDate:u||0,duration:s,skipOffset:c,availAdIndex:n,availAdCount:e,availStart:i,availDuration:r,availMarkedDuration:a,inAvailStartOffset:null!=i?t-i:null,playCount:0,quartileEventOffsets:l}),p.videoClickThrough=null,p.trackingEvents=null==(o=p.trackingEvents)?void 0:o.filter(function(n){switch(n.eventType){case"clickThrough":var e=n.beaconUrls[0];return e&&(p.videoClickThrough=e),!1;case G:d(0,n.startTimeInSeconds);break;case q:d(1,n.startTimeInSeconds);break;case Y:d(2,n.startTimeInSeconds);break;case K:d(3,n.startTimeInSeconds)}return!0}),B(X+"New AdData (".concat(s,"s @ ").concat(t,"s / ").concat(u,")"),p),p}(n,e,t,i,r,o,s))?(w(u,n),0<=f?(u.playCount=h[f].playCount,h[f]=u):h.push(u),m=!0,P("onNewAd",[u,0<=f])):0<=f&&(h.splice(f,1),m=!0))}),m&&(h.sort(o),p=E=null,y=null),v&&(g.sort(o),S=I=null,A=null),P("onTrackingInfoResponse",[!1])):(j(u+"Request failed, status ".concat(e),n),P("onTrackingInfoResponse",[!0])),T=null},T=pn(r,l,function(n,e,t){200===e&&null!=n&&(n=dn(n)),i&&i(n,e,t)})}function U(n,e,t,i){var r,a,o=i?"startDate":"start",t=on(t,e,i?c:_),i=0<=t?(a=(r=e[t])[o],t+1<e.length?e[t+1][o]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,e.length?e[0][o]:Number.MAX_VALUE);return B(u+"Update time range (".concat(a," - ").concat(i,"), ")+"".concat(n," ad index ").concat(t),r),[r,a,i]}function i(n){n&&R.indexOf(n)<0&&R.push(n)}return 0<=d&&L(0),i(N),i(hn(n.disableNoninteractiveClientSideBeaconing,function(n,e,t,i){P("onAdBeaconResponse",[n,e,t,i])})),{updateAdTrackingInfo:function(){var n;L(null!=(n=C)?n:0,M),v=C},startUpdatingAdTrackingInfo:function(n){d=n||10,v=null},stopUpdatingAdTrackingInfo:function(){d=-1},onPlayheadUpdate:function(n,e){var t,i,r,a,o;null!=C&&C<n&&n<C+2.5&&(0<=d&&!T&&(null==v||Math.abs(n-v)>=d)&&(L(n,e),v=n),t=(e=s?e:null)||n,(null==p||t<p||E<=t)&&(a=z(U("linear",h,t,e),3),y=a[0],p=a[1],E=a[2]),a=f,o=t-p,(null==(r=f=y&&t<p+y.duration?y:null)?void 0:r.adId)===(null==a?void 0:a.adId)?f&&(B(u+"Ad progresses, time => ".concat(o)),P("onAdProgress",[f,o,n]),D<o)&&o<D+2.5&&(r=D,D=o,(i=f.quartileEventOffsets[0])&&r<i&&i<=D&&k(4),(i=f.quartileEventOffsets[1])&&r<i&&i<=D&&k(5),i=f.quartileEventOffsets[2])&&r<i&&i<=D&&k(6):(a&&((r=a.quartileEventOffsets[3])&&r<D+2.5&&k(7,a),B(u+"Ad ends",a),P("onAdEnd",[a])),D=0,f&&(f.playCount++,e&&B(u+"PDT offset => player ".concat(e-n,", ")+"ad ".concat(f.startDate-f.start),f),B(u+"Ad loads",f),P("onAdLoad",[f]),k(2),B(u+"Ad starts, time => ".concat(o),f),P("onAdStart",[f,o,n]),k(3),k(0))),f||(i=E-t)<=x&&N.dispatchEvent(sn,{timeToNextAd:i}),(null==S||t<S||I<=t)&&(r=z(U("nonlinear",g,t,e),3),A=r[0],S=r[1],I=r[2]),a=m,o=t-S,(m=A&&t<S+A.duration?A:null)!==a)&&(a&&(B(u+"Nonlinear ad ends",a),P("onNonLinearAdsEnd",[a])),m)&&(e&&B(u+"PDT offset => player ".concat(e-n,", ")+"nonlinear ad ".concat(m.startDate-m.start),m),B(u+"Nonlinear ad starts, time => ".concat(o),m),P("onNonLinearAdsStart",[m,o,n])),C=n,M=e},onPlaybackRateUpdate:function(n){},onPlaybackEvent:function(n){switch(n){case 0:null!=e&&e.sendPlaybackStart();break;case 1:null!=e&&e.sendPlaybackEnd()}if(f)switch(n){case 2:k(9);break;case 3:k(10);break;case 4:k(11);break;case 5:k(12);break;case 6:k(13);break;case 7:k(14)}},onVideoClick:function(n){f&&(null!=e&&e.sendAdTouch(n),P("onAdClick",[f]))},onPlayerControlClick:function(n){f&&null!=e&&e.sendAdTouch(n)},onAdClickthrough:function(){f&&(null!=e&&e.sendAdClick(),k(1))},onAdSkip:function(){f&&k(8)},addAdObserver:i,removeAdObserver:function(n){n&&0<=(n=R.indexOf(n))&&R.splice(n,1)},getAllAds:function(){return h.map(H)},getAllNonLinearAds:function(){return g.map(H)},addEventListener:function(n,e,t){N.addEventListener(n,e,t)},removeEventListener:function(n,e,t){N.removeEventListener(n,e,t)}}}var Rn=["overlayAvails","availSuppression","adSignaling","reportingMode"],_=function(n){return n[n["INVALID_CONFIG"]=0]="INVALID_CONFIG",n[n["INVALID_INIT_RESPONSE"]=1]="INVALID_INIT_RESPONSE",n[n["INIT_DISRUPTED"]=2]="INIT_DISRUPTED",n[n["INIT_ERROR"]=3]="INIT_ERROR",n}({});function p(t,n,i,r){var a,o,s,u=null,c=t.trackingUrl,l=t.sessionInitUrl,e=t.sessionInitHeaders,d=null!=(d=t.sessionInitTimeout)?d:3e4,f=t.palNonceManager||n,p=null!=(n=null==f||null==(n=f.getNonce)?void 0:n.call(f))?n:null,m={getPlaybackUrl:function(){return u},getTrackingUrl:function(){return c},getPalNonce:function(){return p},updateAdTrackingInfo:function(){a.updateAdTrackingInfo()},startUpdatingAdTrackingInfo:function(n){a.startUpdatingAdTrackingInfo(n)},stopUpdatingAdTrackingInfo:function(){a.stopUpdatingAdTrackingInfo()},onPlayheadUpdate:function(n,e){a.onPlayheadUpdate(n,e)},onPlaybackRateUpdate:function(n){a.onPlaybackRateUpdate(n)},onPlaybackEvent:function(n){a.onPlaybackEvent(n)},onVideoClick:function(n){a.onVideoClick(n)},onPlayerControlClick:function(n){a.onPlayerControlClick(n)},onAdClickthrough:function(){a.onAdClickthrough()},onAdSkip:function(){a.onAdSkip()},addAdObserver:function(n){a.addAdObserver(n)},removeAdObserver:function(n){a.removeAdObserver(n)},getAllAds:function(){return a.getAllAds()},getAllNonLinearAds:function(){return a.getAllNonLinearAds()},destroy:function(){},addEventListener:function(n,e,t){a.addEventListener(n,e,t)},removeEventListener:function(n,e,t){a.removeEventListener(n,e,t)}};c?(a=Dn(c,f,t),i(m,"Session initialized elsewhere")):l?(o=v(t.originParams)||{},(s=t.sessionFeatures)&&Rn.forEach(function(n){var e=s[n];null!=e&&(o[n]=e)}),(n=v(t.playerParams)||{}).device_sdk_info||(n.device_sdk_info=Pn.clientInfo),p&&(n.givn=p),o.playerParams=n,n={},e&&(n.headers=e),d&&(n.timeout=d),B('createSession: Request sent to URL "'.concat(l,'"'),o),mn(l,o,n,function(n,e){200===e?(u=D(null==n?void 0:n.manifestUrl,l))&&(c=D(null==n?void 0:n.trackingUrl,l))?(a=Dn(c,f,t),i(m,"Successful session response",n)):r(_.INVALID_INIT_RESPONSE,"Invalid session response"):0===e?r(_.INIT_DISRUPTED,"Disrupted session initialization"):r(_.INIT_ERROR,"Failed session initialization")})):r(_.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function Nn(e,i,r,a){var n,o="createSession: ";function t(n,e,t){B(o+e,t),i?i(n,null):r(n)}function s(n,e){var t={code:n,message:e};u(o+"(".concat(n,") ").concat(e)),i?i(null,t):a(t)}e?(n=e.palNonceRequestParams,e.trackingUrl||e.palNonceManager||!n?p(e,null,t,s):(n=ln(n))?n.then(function(n){B(o+"NonceManager received",n),p(e,n,t,s)})["catch"](function(n){j(o+"Nonce request rejected",n),p(e,null,t,s)}):(j(o+"Unable to create a nonce request"),p(e,null,t,s))):s(_.INVALID_CONFIG,"Missing config")}var m="1.8.0";console.debug("[MT] AWS Elemental MediaTailor SDK v".concat(m));var Pn={initPal:function(n,e){var t="initPal: ";if(!n){if(!e)return u(t+"Missing consent settings"),!1;var i=null==(i=a("goog"))?void 0:i.pal,r=null==i?void 0:i.NonceLoader,i=null==i?void 0:i.ConsentSettings;if(!r||!i)return u(t+"Missing PAL SDK classes"),!1;i=new i;i.allowStorage=null!=(e=e.allowStorage)&&e,n=new r(i)}return s&&j(t+"Resetting NonceLoader"),s=n,!0},createSession:function(t,n){if(!n)return new Promise(function(n,e){Nn(t,null,n,e)});Nn(t,n,null,null)},PlaybackEvent:f,AdTrackingEvent:c,SessionUiEvent:e,setLogLevel:function(n){0<=n&&n<=I?O=n:console.warn(A+"Invalid log level: ".concat(n))},LogLevel:T,getSdkVersion:function(){return m},clientInfo:"MTSDK v"+m};return h["default"]},"object"==typeof t?t["mediatailor"]=e():n["mediatailor"]=e(),s.mediatailor=t.mediatailor,s)),pc&&(module.exports=pc.datazoom)}();
|