@datazoom/collector_videojs_mt_om 2.24.0 → 2.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +1 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e,n,t,s,Mc="object"==typeof module?{}:null;((Ze,en,v)=>{var E,f,nn=Ze.Object,g=Ze.Array,S=Ze.Date,vn=Ze.Number,A=Ze.String,T=Ze.RegExp,tn=Ze.Math,O=Ze.XMLHttpRequest,b=Ze.Uint8Array,C=Ze.ArrayBuffer,M=Ze.JSON,En=Ze.Promise,R=Ze.URL,D=Ze.URLSearchParams,N=Ze.EventTarget,P=Ze.CustomEvent,gn=Ze.document||{},e=gn.currentScript||{},k=Ze.location||{},L=Ze.navigator||{},w=L.userAgent||"",yn=L.connection||L.mozConnection||L.webkitConnection,U=Ze.crypto,x=Ze.console||{},n=Ze.performance,V=Ze.setInterval,F=Ze.setTimeout,W=Ze.decodeURIComponent,j=Ze.encodeURIComponent;try{E=Ze.localStorage,f=Ze.sessionStorage}catch(e){}function B(t){return t?function(e,n){e="[DZ] "+e,void 0===n?t.call(x,e):t.call(x,e,n)}:null}var t=B(x.log)||function(){},H=B(x.error)||t,G=B(x.warn)||t,$=B(x.info)||t,Y=B(x.debug)||t,Sn={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},q="datazoom_",z="custom_",K="v_";if(Sn[t="__"+q+"rootobj"]=1,Mc)Mc.datazoom=Sn;else{if(dn(Ze.datazoom)){if(Ze.datazoom[t])return G("Collector already loaded");G("Overwriting window.datazoom")}Ze.datazoom=Sn}function y(n,t,e){var r,i=t.shift();return null==i?r=n:n?i instanceof T?nn.keys(n).some(function(e){if(i.test(e))return null!=(r=y(n[e],t.slice()))}):r=y(n[i],t):r=null,null!=r?r:e}function rn(e){return"function"==typeof e}function X(e,n){if(rn(e))try{return new(e=n?e.bind.apply(e,[null].concat(n)):e),1}catch(e){}}X(R,["http://x.io"])&&X(D)||(D=function(e){var r=[];function t(e,n){!1!==n&&r.push([e,n])}function i(n){r=r.filter(function(e){return e[0]!==n})}e&&e.slice(1).split("&").forEach(function(e){e=e.split("=");try{r.push([W(e[0]),null==e[1]||W(e[1])])}catch(e){on(e,"URLSearchParams()")}});e=this;e.append=t,e["delete"]=i,e.set=function(e,n){i(e),t(e,n)},e.get=function(n){var t=null;return r.some(function(e){if(e[0]===n)return t=e[1],!0}),t},e.toString=function(){return r.map(function(e){var n=j(e[0]);return!0===e[1]?n:n+"="+j(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 D(e),n.toString=function(){return t+n.search}}),X(N)&&X(P,["x"])||(N=function(){var t=this,r={};t.addEventListener=function(e,n){var t=r[e];t||(r[e]=t=[]),t.push(n)},t.removeEventListener=function(e,n){var t=r[e];t&&(r[e]=t.filter(function(e){return e!=n}))},t.dispatchEvent=function(n){var e=r[n.type];e&&e.forEach(function(e){F(function(){e.call(t,n)},0)})}},P=function(e){this.type=e}),en=nn.assign({},{cn:"Video.js Player (MT/OM)",sv:"2.24.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:vn.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;bn("[Event] "+n.type+(t?" ("+t.media_type+")":"")+" @"+n.timestamp,cn(e))}},en||{});var o,J,In,Q={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:""},Z=!Mc&&e.src||"/",ee=k.href||"https://localhost",ne="configuration_id",te="urn:x-cast:io.datazoom.collector",An="transfer",re=0,ie=1,ae=2,oe=3,se=4,ue=5,ce={off:re,error:ie,warning:ae,info:oe,debug:se,verbose:ue},le=ae;function de(e){var n;e&&(n=ce[e],re<=(n=null!=n?n:+e)&&n<=ue?le=n:G("Invalid log level: "+e))}function pe(){o={},J=[],[[en.ps],[Z.split("?")[1]],[ee.split("?")[1],q]].forEach(function(e){var r=e[1];e[0]&&e[0].split("&").forEach(function(e){try{var n=e.split("="),t=W(n[0]);if(r){if(!t.startsWith(r))return;t=t.slice(r.length)}o[t]=null==n[1]||W(n[1]),t.startsWith("x-")&&J.push([t,o[t]])}catch(e){G("Invalid query string: "+e.message)}})}),In="true"==o.demo,de(o.log)}pe();var fe="io.datazoom.",me=fe,_e="__ss_ev_count",he="__ss_last_act",ve="__ss_custom_md",Ee="__ss_msg_queue",ge="__ss_sm_resp",ye="__ss_appss_to",Se="collector_observability",Ie="loss",Ae="process_duration_ms",Te="send_duration_ms",Oe="call_duration_ms",be="queue_duration_ms",Ce="evnt_fail",Me="attempt_count",Re="attempt",De="status_code",Ne="status_codes",Pe="b4_ss",ke="sample",Le="config",we="log",Ue="server_ts",xe="ip_api";function Ve(e,n,t,r){le<e||n(t,r)}function Tn(e,n){Ve(ie,H,e,n)}function an(e,n){Ve(ae,G,e,n)}function On(e,n){Ve(oe,$,e,n)}function bn(e,n){Ve(se,Y,e,n)}function Fe(e,n){Ve(ue,Y,e,n)}function on(e,n){n="[Exception] "+(n?"("+n+") ":"")+e;return Tn(n,e),n}function Cn(t,r,i,a,o){var s,u=0,c=1,l=0;return r=r||"",i=i||1,a=a||vn.MAX_VALUE,{log:function(e,n){o&&(s=sn())>=l+o&&(u=0,c=1,l=s),++u>=c&&(t("["+u+"] "+r+e,n),c+=tn.min(c*i,a))}}}function Mn(e,n){p(Ze,"postMessage",[{type:e,data:n},"*"])}var We,sn,je,Be,He,Ge,$e=[],Ye=0;function qe(e,n,t,r,i,a,o,s){var t={time:t,metric_name:r,dimension:{},batch:function(){return a}},u=(e&&(t.type=e),null!=i&&(t.metric_value=i),t.dimension);return n&&(u.target=n),s&&s.forEach(function(e){u[e[0]]=e[1]}),o&&(u[Pe]=!0),t}function ze(r,i,a,o){var s=i,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,r,t=i-a,Ae,e-t,c,o,[[Me,u],[De,n]]),qe(null,r,t,be,a,c,o)),$e.push(qe(null,r,i,Te,e-i,c,!1,[[Me,u],[De,n]]),qe(null,r,s,Oe,e-s,c,!1,[[Re,u],[De,n]])))}}}function Ke(e,n){var t,r;en.os&&(r=e.t,r=tn.trunc(r/6e4),(r=(We=We||{})[r]||(We[r]=[0,0,0]))[2]++,t=(r=r[3]||(r[3]={}))[n],e=Es(e.m,pi),t?t.push(e):r[n]=[e])}function Xe(e){var n,t=We[e],r=Ye++;t[2]&&(t[3]&&(n=[[Ne,t[3]]]),$e.push(qe(Ie,null,6e4*+e,Ce,t[2],r,!1,n)))}function Rn(e){return e&&(Yn(e)?e.slice():nn.assign({},e))}function Je(e,n){return dn(n)?e?nn.assign({},e,n):n:e}function Qe(e,n){var t;return n?((t={})[e]=n,t):null}function Dn(t,r){var i;return r?t?(i=Rn(t),nn.keys(r).forEach(function(e){var n=t[e];i[e]=n?nn.assign({},n,r[e]):r[e]}),i):r:t}function p(e,n,t,r){n=y(e,[n],r);return rn(n)?n.apply(e,t):null}function Nn(e,n,t){return function(){try{return n.apply(e,arguments)}catch(e){on(e,t)}}}function Pn(t,e){nn.keys(t).forEach(function(n){e.forEach(function(e){e[n]=Nn(e,t[n],n)})}),e[0]}function kn(e){var n={};return e.forEach(function(e){n[e.nm]=e}),n}function Ln(e){var n={};return e.forEach(function(e){n[e.nm]=!0}),n}function wn(e,n,t){e.forEach(function(e){e[n]=t})}function Un(e,n){var e=new R(e,ee),t=new D(e.search);return n(t),e.search="?"+t.toString(),e.toString()}function xn(e){var n,t=J.length;return t?Un(e,function(e){for(n=0;n<t;n++)e.append(J[n][0],J[n][1])}):e}function Vn(e,n,t){var r;return null!=(r=e?new R(e,ee).searchParams.get(n):r)?r:t}je=0,Be=en.ec,He=Cn(an,"Abnormal clock increment: ",.2,1e3,3e5),n&&n.now,Ge=je+S.now(),sn=function(e){var n=S.now(),t=Ge,r=(Ge=je+n)-t;return(r<0||Be<r)&&(Ge=t+en.ti,je=Ge-n,He.log(r)),Ge};var un=(()=>{for(var t=[],e=0;e<256;e++)t.push((e+256).toString(16).substr(1).toLowerCase());return function(){var e=new b(16);if(U&&U.getRandomValues)U.getRandomValues(e);else{an("getRandomValues() not supported");for(var n=0;n<16;n++)e[n]=tn.floor(256*tn.random())}return e[6]=15&e[6]|64,e[8]=63&e[8]|128,t[e[0]]+t[e[1]]+t[e[2]]+t[e[3]]+"-"+t[e[4]]+t[e[5]]+"-"+t[e[6]]+t[e[7]]+"-"+t[e[8]]+t[e[9]]+"-"+t[e[10]]+t[e[11]]+t[e[12]]+t[e[13]]+t[e[14]]+t[e[15]]}})();function Fn(e,n,t,r,i,a){var o=new O;if(o.open(e,n,!0),null!=a&&(o.timeout=a),t)for(var s=nn.keys(t),u=0;u<s.length;u++)o.setRequestHeader(s[u],t[s[u]]);return i&&(o.onreadystatechange=function(){i(o)}),o.send(r),{abort:function(){delete o.onreadystatechange,o.abort()}}}function cn(e){if(e)try{return M.stringify(e)}catch(e){on(e,"toJSON")}return null}function ln(e){if(e)try{return M.parse(e)}catch(e){on(e,"fromJSON")}return null}function Wn(e,n){return(e===f?me:fe)+n}function m(e,n,t){if(e)if(null==t)Bn(e,n);else try{e.setItem(Wn(e,n),cn({v:t}))}catch(e){on(e,"storageSet")}}function jn(e,n){e=e?ln(e.getItem(Wn(e,n))):null;return e?e.v:null}function Bn(e,n){e&&e.removeItem(Wn(e,n))}Ze.self!==Ze.top&&bn("Page loaded in a frame, set sessionStorage prefix to: "+(me+=(o.frame_id||un())+"."));var Hn=ln('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Gn(e){return"string"==typeof e}function $n(e){return vn.isFinite(e)}function Yn(e){return g.isArray(e)}function dn(e){return null!=e&&"object"==typeof e&&!Yn(e)}function qn(e){return Gn(e)?e:""+e}function zn(e){return $n(e=+e)?e:null}function Kn(n,t,r){return null==n&&null==t?zn:function(e){return null!=(e=zn(e))&&(null!=n&&e<n?e=r?null:n:null!=t&&t<e&&(e=r?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,rt=4,it=8,at=16,ot=32,I=65535,st=rt,t=1|at,n=(e=rt|at)|ot,i=it,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"},Rt={ap:3,nm:"milestone"},Dt={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"},$t={ap:3,nm:"stall_end"},Yt={ap:3,nm:"stop"},qt={ap:3,nm:"subtitle_change"},zt={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,Rt.rtc=7,Mt.rta=8,kt.rta=9,_t.rta=10,Gt.rta=11,Rt.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"},er={ap:t,nm:"buffer_duration_content_ms"},nr={ap:t,nm:"buffer_fill_percent"},tr={ap:t,nm:"buffer_length_ms"},rr={ap:t,nm:"content_session_start_ts_ms"},ir={ap:3,nm:"current_audio_track"},ar={ap:t,nm:"current_subtitles"},or={ap:e,nm:"engagement_duration_ms"},sr={ap:e,nm:"engagement_duration_ads_ms"},ur={ap:e,nm:"engagement_duration_content_ms"},cr={ap:i,nm:"event_count"},lr={ap:t,nm:"num_ad_break_plays"},dr={ap:e,nm:"num_ad_plays"},pr={ap:e,nm:"num_content_plays"},fr={ap:e,nm:"num_errors"},mr={ap:e,nm:"num_errors_ads"},_r={ap:e,nm:"num_errors_content"},hr={ap:e,nm:"num_requests_content"},vr={ap:t,nm:"pause_duration_ms"},Er={ap:t,nm:"pause_duration_ads_ms"},gr={ap:t,nm:"pause_duration_content_ms"},yr={ap:t,nm:"playback_duration_ms"},Sr={ap:t,nm:"playback_duration_ads_ms"},Ir={ap:2,nm:"playback_duration_ad_session_ms"},Ar={ap:t,nm:"playback_duration_content_ms"},Tr={ap:t,nm:"playback_duration_promo_ms"},Or={ap:3,nm:"playback_rate"},br={ap:t,nm:"player_state"},Cr={ap:t,nm:"player_viewable"},Mr={ap:t,nm:"player_viewable_percent"},pn={ap:3,nm:"playhead_position_sec"},Rr={ap:t,nm:"playhead_pdt_sec"},Dr={ap:3,nm:"rendition_audio_bitrate_kbps"},Nr={ap:3,nm:"rendition_height"},Pr={ap:3,nm:"rendition_name"},kr={ap:3,nm:"rendition_video_bitrate_kbps"},Lr={ap:3,nm:"rendition_width"},wr={ap:t,nm:"stall_count"},Ur={ap:t,nm:"stall_count_ads"},xr={ap:t,nm:"stall_count_content"},Vr={ap:t,nm:"stall_duration_ms"},Fr={ap:t,nm:"stall_duration_ads_ms"},Wr={ap:t,nm:"stall_duration_content_ms"},jr={ap:t,nm:"time_since_last_ad_break_start_ms"},Br={ap:t,nm:"time_since_last_ad_completed_ms"},Hr={ap:t,nm:"time_since_last_buffer_start_ms"},Gr={ap:t,nm:"time_since_last_buffer_start_ad_ms"},$r={ap:t,nm:"time_since_last_buffer_start_content_ms"},Yr={ap:t,nm:"time_since_last_heartbeat_ms"},qr={ap:t,nm:"time_since_last_milestone_ad_ms"},zr={ap:t,nm:"time_since_last_milestone_content_ms"},Kr={ap:t,nm:"time_since_last_pause_ms"},Xr={ap:t,nm:"time_since_last_rendition_change_ms"},Jr={ap:t,nm:"time_since_last_request_ad_ms"},Qr={ap:t,nm:"time_since_last_seek_start_ms"},Zr={ap:t,nm:"time_since_last_stall_start_ms"},ei={ap:t,nm:"time_since_last_stall_start_ad_ms"},ni={ap:t,nm:"time_since_last_stall_start_content_ms"},ti={ap:t,nm:"time_since_last_started_ad_ms"},ri={ap:t,nm:"time_since_request_content_ms"},ii={ap:t,nm:"time_since_started_content_ms"},ai={ap:t,nm:"volume_level_percent"};wn([Qt,Zt,er,vr,Er,gr,yr,Sr,Ar,Tr,wr,Ur,xr,Vr,Fr,Wr,dr,fr,mr,_r,pr,hr],"df",0),ri.ts=0,ii.ts=1,Kr.ts=2,$r.ts=3,ni.ts=4,Qr.ts=5,Xr.ts=6,zr.ts=7,Jr.ts=8,ti.ts=9,Gr.ts=10,ei.ts=11,qr.ts=12,jr.ts=14,Br.ts=13,Yr.ts=16,Hr.ts=17,Zr.ts=18;var oi=["ops_metadata"],si=["custom"],ui=["vendor"],ci={p:_i=[],ap:n,nm:"configuration_id"},li={p:_i,ap:n,nm:"connector_list"},di={p:_i,ap:n,nm:"customer_code"},pi={p:_i,ap:i,nm:"event_id"},fi={p:hi=["event"],ap:i,nm:"timestamp"},mi={p:hi,ap:i,nm:"type"},_i={p:r=["cmcd"],ap:i,nm:"bl"},hi={p:r,ap:i,nm:"br"},vi={p:r,ap:i,nm:"bs"},Ei={p:r,ap:i,nm:"cid"},gi={p:r,ap:i,nm:"d"},yi={p:r,ap:i,nm:"dl"},Si={p:r,ap:i,nm:"mtp"},Ii={p:r,ap:i,nm:"nor"},Ai={p:r,ap:i,nm:"nrr"},Ti={p:r,ap:i,nm:"ot"},Oi={p:r,ap:i,nm:"pr"},bi={p:r,ap:i,nm:"rid"},Ci={p:r,ap:i,nm:"rtp"},Mi={p:r,ap:i,nm:"sf"},Ri={p:r,ap:i,nm:"sid"},Di={p:r,ap:i,nm:"st"},Ni={p:r,ap:i,nm:"su"},Pi={p:r,ap:i,nm:"tb"},r={p:r,ap:i,nm:"v"},ki={p:a=["event","attributes"],ap:i,nm:"abs_shift"},Li={p:a,ap:i,nm:"error_code"},wi={p:a,ap:i,nm:"error_msg"},Ui={p:a,ap:i,nm:"inner_error"},xi={p:a,ap:i,nm:"heartbeat_count"},Vi={p:a,ap:i,nm:"milestone_percent"},Fi={p:a,ap:i,nm:"qualified_view_sec"},Wi={p:a,ap:i,nm:"seek_start_point_ms"},ji={p:a,ap:i,nm:"seek_end_point_ms"},Bi={p:a,ap:i,nm:"startup_duration_content_ms"},Hi={p:a,ap:i,nm:"startup_duration_total_ms"},Gi={p:Xi=["user_details"],ap:e,nm:"app_session_id"},$i={p:Xi,ap:e,nm:"app_session_start_ts_ms"},a={p:Xi,ap:e,nm:"app_session_end_ts_ms"},Yi={p:Xi,ap:t,nm:"cast_app_session_id"},qi={p:Xi,ap:t,nm:"cast_content_session_id"},zi={p:Xi,ap:n,nm:"client_ip"},Ki={p:Xi,ap:t,nm:"content_session_id"},Xi={p:Xi,ap:e,nm:"user_agent"},Ji={p:s=["player"],ap:t,nm:"autostart"},Qi={p:s,ap:t,nm:"casting"},Zi={p:s,ap:t,nm:"controls"},ea={p:s,ap:t,nm:"default_muted"},na={p:s,ap:t,nm:"default_playback_rate"},ta={p:s,ap:t,nm:"fullscreen"},ra={p:s,ap:t,nm:"loop"},ia={p:s,ap:t,nm:"muted"},aa={p:s,ap:t,nm:"player_name"},oa={p:s,ap:t,nm:"player_version"},sa={p:s,ap:t,nm:"preload"},ua={p:s,ap:t,nm:"ready_state"},ca={p:s,ap:t,nm:"streaming_protocol"},la={p:s,ap:t,nm:"streaming_type"},da={p:s,ap:t,nm:"subtitles"},s={p:u=["device"],ap:e,nm:"advertising_id"},pa={p:u,ap:e,nm:"browser_name"},fa={p:u,ap:e,nm:"browser_height"},ma={p:u,ap:e,nm:"browser_version"},_a={p:u,ap:e,nm:"browser_width"},ha={p:u,ap:e,nm:"cookies_enabled"},va={p:u,ap:n,nm:"device_id"},Ea={p:u,ap:e,nm:"device_mfg"},ga={p:u,ap:e,nm:"device_name"},ya={p:u,ap:e,nm:"device_type"},Sa={p:u,ap:e,nm:"orientation"},Ia={p:u,ap:e,nm:"os_name"},u={p:u,ap:e,nm:"os_version"},Aa={p:za=["video"],ap:t,nm:"asset_id"},Ta={p:za,ap:t,nm:"description"},Oa={p:za,ap:t,nm:"duration_sec"},ba={p:za,ap:t,nm:"frame_rate"},Ca={p:za,ap:t,nm:"media_tags"},Ma={p:za,ap:3,nm:"media_type"},Ra={p:za,ap:t,nm:"player_height"},Da={p:za,ap:t,nm:"player_width"},Na={p:za,ap:t,nm:"source"},Pa={p:za,ap:t,nm:"title"},ka={p:c=["geo_location"],ap:n,nm:"city"},La={p:c,ap:n,nm:"country"},wa={p:c,ap:n,nm:"country_code"},Ua={p:c,ap:n,nm:"latitude"},xa={p:c,ap:n,nm:"longitude"},Va={p:c,ap:n,nm:"postal_code"},Fa={p:c,ap:n,nm:"region"},Wa={p:c,ap:n,nm:"region_code"},ja={p:c,ap:n,nm:"continent"},Ba={p:c,ap:n,nm:"continent_code"},Ha={p:c,ap:n,nm:"district"},Ga={p:c,ap:n,nm:"timezone_name"},$a={p:c,ap:n,nm:"timezone_offset"},Ya={p:to=["network"],ap:n,nm:"asn"},qa={p:to,ap:n,nm:"asn_org"},za={p:to,ap:e,nm:"connection_type"},Ka={p:to,ap:n,nm:"isp"},Xa={p:to,ap:n,nm:"mobile_connection"},Ja={p:oi,ap:i,nm:"context_id"},Qa={p:oi,ap:i,nm:"context_name"},c={p:oi,ap:e,nm:"dz_dictionary_version"},Za={p:oi,ap:i,nm:"msg_send_client_ts_ms"},eo={p:oi,ap:i,nm:"player_context_id"},no={p:oi,ap:n,nm:"server_ts_offset_ms"},to={p:_o=["page"],ap:e,nm:"collector_name"},ro={p:_o,ap:e,nm:"dz_sdk_version"},io={p:_o,ap:e,nm:"page_title"},ao={p:_o,ap:e,nm:"page_url"},oo={p:_o,ap:e,nm:"referrer_url"},so={p:_o,ap:e,nm:"site_domain"},uo={p:l=["ad"],ap:n,nm:"ad_blocker"},co={p:l,ap:t,nm:"ad_break_id"},lo={p:l,ap:2,nm:"ad_click_url"},po={p:l,ap:2,nm:"ad_creative_id"},fo={p:l,ap:2,nm:"ad_duration_sec"},mo={p:l,ap:2,nm:"ad_id"},_o={p:l,ap:2,nm:"ad_partner"},ho={p:l,ap:t,nm:"ad_position"},vo={p:l,ap:2,nm:"ad_session_id"},Eo={p:l,ap:2,nm:"ad_system"},go={p:l,ap:2,nm:"ad_time_offset_sec"},n={p:l,ap:e,nm:"ad_tracking_opt_out"},yo={p:l,ap:2,nm:"advertiser_name"},So={p:l,ap:2,nm:"deal_id"},Io={p:l,ap:2,nm:"skip_time_offset_sec"},Ao={p:l,ap:2,nm:"wrapper_creative_ids"},To={p:l,ap:2,nm:"wrapper_id"},Oo={p:l,ap:2,nm:"wrapper_systems"},e={p:["cdn"],ap:t,nm:"cdn"},bo=(So.df="",wn([Ao,To,Oo],"df",[]),Jn(function(e){return!!e},[uo,n,Ji,vi,Qi,Zi,ha,ea,ta,ra,Xa,ia,Ni,da,Cr]),Jn(function(e){Yn(e)||(e=[e]);for(var n=0;n<e.length;n++)e[n]=qn(e[n])||"";return e},[Ao,To,Oo]),Jn(null==Zn&&null==et?qn:function(e){var n;return null!=(e=qn(e))&&(n=e.length,null!=Zn&&n<Zn?e=null:null!=et&&et<n&&(e=nt?null:e.slice(0,et))),e},[ki,co,lo,po,mo,_o,ho,vo,Eo,yo,s,Gi,Ya,qa,Aa,pa,ma,Yi,qi,e,Ei,ka,zi,ci,li,Ki,ja,Ba,La,wa,di,So,Ta,va,Ea,ga,ya,Ha,ro,Li,wi,pi,Ui,Ka,Ma,Ii,Ai,Sa,Ia,u,Ti,io,ao,eo,aa,oa,Va,sa,oo,Fa,Wa,bi,Mi,Ri,so,Na,Di,ca,la,Ga,Pa,mi,Xi,ir,ar,br,Pr]),Jn(Kn(0,100),[nr,Mr,ai]),Jn(Kn(0,1e9,!0),[Jt]),Jn(Kn(),[fo,go,a,$i,_i,hi,fa,_a,gi,na,yi,Oa,ba,xi,Ua,xa,Vi,Si,Ra,Da,Oi,Fi,ua,Ci,ji,Wi,no,Io,Bi,Hi,Pi,fi,$a,r,Zt,er,Qt,tr,rr,sr,ur,or,cr,lr,dr,pr,fr,mr,_r,hr,Er,gr,vr,Sr,Ir,Ar,yr,Tr,Or,pn,Dr,Nr,kr,Lr,wr,Ur,xr,Fr,Wr,Vr,jr,Br,Gr,$r,Hr,Yr,qr,zr,Kr,Xr,Jr,Qr,ei,ni,Zr,ti,ri,ii]),Jn(0==(l=5)?Xn:(tt=tn.pow(10,l),function(e){return tn.round(e*tt)/tt}),[fo,go,a,$i,_i,hi,fa,_a,gi,na,yi,Oa,ba,xi,Ua,xa,Vi,Si,Ra,Da,Oi,Fi,ua,Ci,ji,Wi,no,Io,Bi,Hi,Pi,fi,$a,r,Jt,Zt,er,Qt,nr,tr,rr,sr,ur,or,cr,lr,dr,pr,fr,mr,_r,hr,Er,gr,vr,Sr,Ir,Ar,yr,Tr,Or,Mr,pn,Dr,Nr,kr,Lr,wr,Ur,xr,Fr,Wr,Vr,jr,Br,Gr,$r,Hr,Yr,qr,zr,Kr,Xr,Jr,Qr,ei,ni,Zr,ti,ri,ii,ai]),[ut,ct,lt,dt,pt,ft,mt,_t,ht,vt,Et,gt,yt,St,It,At,Tt,Ot,bt,Ct,Mt,Rt,Dt,Nt,Pt,kt,Lt,wt,Ut,xt,Vt,Ft,Wt,jt,Bt,Ht,Gt,$t,Yt,qt,zt,Kt]),Co=kn(bo);function Mo(e,n){return K+e+"_"+n}function Ro(e,n){var t,r=Ln(bo),i={},a={};e?0<e.length?(e=Gn(t=en.tt&&o.beta_ev)?e.concat(t.split(".").map(function(e){return{name:e,media_types:["na"]}})):e).forEach(function(e){var n,t=e&&e.name;t&&r[t]?(e=e.media_types)&&0<e.length&&(i[t]=!0,"na"!=e[0])&&(n={},e.forEach(function(e){n[e]=!0}),a[t]=n):an("Unknown event: "+t)}):n&&an("This collector is not active. Configure it to a data pipe to start sending events."):i=a=null,bo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.mm=a&&a[e.nm]})}Ro(),wn([dr,fr,mr,_r,pr,hr],"st",f);var Do=[Jt,Qt,Zt,er,nr,tr,rr,ir,ar,or,sr,ur,cr,lr,dr,pr,fr,mr,_r,hr,vr,Er,gr,yr,Sr,Ir,Ar,Tr,Or,br,Cr,Mr,pn,Rr,Dr,Nr,Pr,kr,Lr,wr,Ur,xr,Vr,Fr,Wr,jr,Br,Hr,Gr,$r,Yr,qr,zr,Kr,Xr,Jr,Qr,Zr,ei,ni,ti,ri,ii,ai],No=[],Po=(Do.forEach(function(e){null!=e.ts&&No.push(e)}),[]),ko=[];function Lo(e){var n,t=Ln(Do),r={};e?(e=Gn(n=en.tt&&o.beta_fd)?e.concat(n.split(".")):e).forEach(function(e){t[e]?r[e]=!0:an("Unknown flux data: "+e)}):r=null,Po=[],ko=[],Do.forEach(function(e){e.on=!(r&&!r[e.nm]),e.on&&(e.ap==i?ko:Po).push(e)})}Lo(),wn([Gi,$i,no],"st",f);var wo,Uo,xo,Vo,Fo=[zi,Ka,Xa,Ya,qa,Wa,Fa,wa,La,Va,ka,Ua,xa,ja,Ba,Ha,Ga,$a],Wo=(wn(Fo,"se",f),[aa,oa,s,Pa,Aa,la,Qi]),jo={},Bo=(Wo.forEach(function(e){jo[e.nm.toUpperCase()]=q+e.nm}),[ci,li,di,pi,fi,mi,_i,hi,vi,Ei,gi,yi,Si,Ii,Ai,Ti,Oi,bi,Ci,Mi,Ri,Di,Ni,Pi,r,ki,Li,wi,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,Gi,$i,a,Yi,qi,zi,Ki,Xi,Ji,Qi,Zi,ea,na,ta,ra,ia,aa,oa,sa,ua,ca,la,da,s,pa,fa,ma,_a,ha,va,Ea,ga,ya,Sa,Ia,u,Aa,Ta,Oa,ba,Ca,Ma,Ra,Da,Na,Pa,ka,La,wa,Ua,xa,Va,Fa,Wa,ja,Ba,Ha,Ga,$a,Ya,qa,za,Ka,Xa,Ja,Qa,c,Za,eo,no,to,ro,io,ao,oo,so,uo,co,lo,po,fo,mo,_o,ho,vo,Eo,go,n,yo,So,Io,Ao,To,Oo,e]),Ho=kn(Bo),Go=Bo.concat(Do),$o=[pi],Yo=[],qo=[];function zo(e){var n,t=Ln(Bo),r={};wo=Uo=xo=Vo=!1,e?((e=Gn(n=en.tt&&o.beta_md)?e.concat(n.split(".")):e).forEach(function(e){t[e]?r[e]=!0:"custom_metadata_all"==e?wo=!0:"custom_events_all"==e?Uo=!0:"vendor_metadata_all"==e?xo=!0:"vendor_events_all"==e?Vo=!0:an("Unknown metadata: "+e)}),$o.forEach(function(e){r[e.nm]=!0})):wo=Uo=xo=Vo=!(r=null),Yo=[],qo=[],Bo.forEach(function(e){e.on=!(r&&!r[e.nm]),e.on&&(e.ap==i?qo:Yo).push(e)})}zo();var Ko="ad",Xo=/^live$/i,Jo={"application/x-mpegURL":"HLS","application/dash+xml":"DASH","application/vnd.ms-sstr+xm":"Smooth","video/x-flv":"Flash","video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"},Qo={m3u8:"HLS",mpd:"DASH",mp4:"MP4"},t=[[/Opera\/([\d.]+)/,"Opera"],[/OPR\/([\d.]+)/,"Opera"],[/Edge\/([\d.]+)/,"Microsoft Edge"],[/Edg\/([\d.]+)/,"Microsoft Edge"],[/MSIE ([\d.]+)/,"Microsoft Internet Explorer"],[/Trident\/.*rv:([\d.]+)/,"Microsoft Internet Explorer"],[/Seamonkey\/([\d.]+)/,"Seamonkey"],[/Firefox\/([\d.]+)/,"Firefox"],[/Chromium\/([\d.]+)/,"Chromium"],[/Chrome\/([\d.]+)/,"Chrome"],[/Safari\/([\d.]+)/,"Safari"]],l=[[/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"]],ft=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],Zo=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function es(e,n,t){n&&t.push(e)}function ns(e,n,t){t.push(e+"="+n)}function ts(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 is(e){return"false"!==e}function as(e){return+e}function os(e){return e.replace(/"/g,"")}function ss(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var us,cs,fn={bl:[0,[ns,as],_i],br:[1,[ns,as],hi],bs:[2,[es,is],vi],cid:[3,[rs,ss],Ei],d:[1,[ns,as],gi],dl:[0,[ns,as],yi],mtp:[0,[ns,as],Si],nor:[0,[rs,ss],Ii],nrr:[0,[rs,ss],Ai],ot:[1,[ts,os],Ti],pr:[3,[ns,as],Oi],rtp:[2,[ns,as],Ci],sf:[3,[ts,os],Mi],sid:[3,[rs,ss],Ri],st:[3,[ts,os],Di],su:[0,[es,is],Ni],tb:[1,[ns,as],Pi],v:[3,[ns,as],r]},ls={bs:!1,su:!1,v:1,pr:1},ds="org.svalabs-";function ps(e){for(var n,t,r=[[],[],[],[]],i=nn.keys(e),a=0;a<i.length;a++)n=i[a],(t=fn[n])&&t[3]&&t[1][0](n,e[n],r[t[0]]);return r}function fs(e){var n,t=nn.keys(fn);for(us=!1,cs="header"===(Sn.options.cmcdMode||o.cmcd_mode),n=0;n<t.length;n++)fn[t[n]][3]=!1;if(e&&Yn(e)&&0<e.length)if(us=!0,"na"==e[0])for(n=0;n<t.length;n++)fn[t[n]][3]=!0;else e.forEach(function(e){var n=fn[e];n?n[3]=!0:an("Unknown CMCD key: "+e)})}function ms(e,n,t){for(var r,i,a=nn.keys(e),o=0;o<a.length;o++)delete e[a[o]];for(o=0;o<n.length;o++)0!=((r=n[o]).ap&t)&&null!=(i=null==(i=(i=r.st||r.se)&&jn(i,r.nm))?r.df:i)&&(e[r.nm]=i)}function _s(e,n,t,r){for(var i,a,o,s,u=0;u<r.length;u++)o=(a=(i=r[u])[0]).nm,0!=(a.ap&t)?(s=n[o])&&s(i)||(e[o]=i[1],(s=a.st||a.on&&a.se)&&m(s,o,i[1])):an("Setting inapplicable data",a)}function hs(e,n){return e[n.nm]}function vs(e,n,t,r,i){var a,o=[];return t&&o.push([t,a=n(t)+r]),i&&o.push([i,n(i)+r]),e(o),a}function mn(e,n,t){if(n)for(var r,i,a=0;a<n.length;a++)if(i=e[r=n[a]])e=i;else{if(t)return null;e=e[r]={}}return e}function Es(e,n){e=mn(e,n.p||Xt,!0);return e&&e[n.nm]}function gs(e,n,t,r){for(var i,a,o,s=0;s<n.length;s++)0!=((i=n[s]).ap&t)&&null!=(o=Qn(e[a=i.nm],i.dv))&&(mn(r,i.p)[a]=o)}fn[ds+"rid"]=[0,[rs,ss],bi],fn[ds+"tid"]=[0,[rs,ss]],fn[ds+"cmi"]=[0,[ns,as]],fn[ds+"pmi"]=[0,[ns,as]],fs();var ys,Ss,Is,As,Ts,Os,bs,Cs,Ms,Rs,Ds,Ns,Ps,ks,Ls,ws,Us,d,xs={},Vs={},Fs=jn(f,Ee)||[],Ws=[],js=1,Bs=2,Hs=4,Gs=8,$s=16,Ys=Hs|Gs|$s,qs=Bs|js|Ys,zs=0,Ks=[];function Xs(e){return null!=e?6e4*e:12e5}function Js(e,n){if(!qs&&0<Fs.length){for(var t,r=sn(),i=0,a=0;a<Fs.length;a++)Fs[a].p&&(t=!0,gs(xs,Yo,ot,Fs[a].m)),i=tn.max(i,r-Fs[a].t);Ns&&su(Fs,0,ze(we,r,i,t),e),n=!0}n&&(Fs=[],Bn(f,Ee)),bs=null}function _(e){(qs&=~e)||null!=bs||Js()}function Qs(e,n,t,r,i,a,o,s,u){if(4==e.readyState){var c=sn(),l=e.status;if(n+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[i++];if(null!=a)return F(function(){o.retry(sn()),t(r,i,o)},1e3*a),void an(n+"retry #"+i+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(e,c))||u&&u(n,l)||an(n+"failed")}}function Zs(n,t,r){Fn("GET",en.ip,{Accept:"application/json"},null,function(e){Qs(e,"IP API",Zs,n,t,en.rd,r,function(e){e=ln(e.responseText);if(e)return h([[zi,e.query],[Ka,e.isp],[Xa,e.mobile],[Ya,e.as],[qa,e.org],[Wa,e.region],[Fa,e.regionName],[wa,e.countryCode],[La,e.country],[Va,e.zip],[ka,e.city],[Ua,e.lat],[xa,e.lon],[ja,e.continent],[Ba,e.continentCode],[Ha,e.district],[Ga,e.timezone],[$a,e.offset/3600]]),_(Gs),tu(),!0},function(){_(Gs),tu()})})}function eu(n,t,r){var i=sn();Fn("GET",xn(en.ts),{"cache-control":"no-cache"},null,function(e){Qs(e,"SERVER TS",eu,n,t,en.rd,r,function(e,n){e=ln(e.responseText),e=e&&e.epoch_millis;if(e)return h([[no,tn.round(e-(i+n)/2)]]),_(Hs),!0},function(){_(Hs)})})}function nu(n,t,r){Ms=Fn("POST",xn(en.sm),{"Content-Type":"application/json","cache-control":"no-cache"},n,function(e){4==e.readyState&&(Ms=null,Qs(e,"Sampling API",nu,n,t,en.rd,r,function(e){e=ln(e.responseText);if(Rs=e&&e[en.ss+"_sampling"])return Ns=Rs.in_sample,Ds=!1,_(Bs),m(f,ge,Rs),!0},function(e){return Ns=Ds=!0,_(Bs),an(e+"forced in"),!0}))})}function tu(){var e;!Cs||qs&js||(en.sw&&en.sm?(en.sp&&Ln(Fo),(e=Ho[en.sd])&&(Cs.sampling_definition_params={namespace:en.ss,key_name:e.nm,key_value:uu(e)}),(e=Ho[en.sc])&&(Cs.sampling_criteria_params={sampling:{key_name:e.nm,key_value:uu(e)}}),Cs.sampling_override=o.sampling_override||"NONE",Cs.sampling_request_id=un(),nu(cn(Cs),0,ze(ke,sn()))):(Ns=!0,_(Bs)),Cs=null)}function ru(t,n,r){var e;en.ci?(en.tt&&(en.mf=o.mock_config||en.mf),bn("Get config from "+(e=en.mf||Un(xn("https://"+en.cf+"platform.datazoom.io/beacon/v2/config"),function(e){e.append(ne,en.ci)}))),Fn("GET",e,null,null,function(e){Qs(e,"Config API",ru,t,n,en.rd,r,function(e){e=ln(e.responseText);if(e)return t(e),!0},function(e,n){n<400||429==n||499<n||(en.om=!1),t()})})):(an("Missing configuration ID"),en.om=!1,t())}function iu(){ru(function(e){en.st=null,e&&function r(i,a){dn(i)?nn.keys(i).forEach(function(e){var n=i[e],t=a[e];dn(t)?r(n,t):null==t?an("Unknown config key: "+e):null==n?an("Undefined config key: "+e):t&&(en[t]=n)}):an("Invalid config object",i)}(e,Q),m(f,ye,en.st),en.st=Xs(en.st),Ro(en.ev,e),Lo(en.fd),zo(en.md),fs(en.cd),en.og||($e=[]),en.os||(We=null),p(en.cm,"sort"),p(en.am,"sort"),p(en.cq,"sort"),p(en.aq,"sort"),h([[di,en.cc],[li,en.cl]]),Ws.forEach(function(e){var n,t,r,i,a,o=!1,s=Es(e.m,mi),u=Co[s];u?o=u.on:s.startsWith(z)?o=Uo:s.startsWith(K)&&(o=Vo),o&&(n=e.m,t={},Yo.concat(qo).forEach(function(e){null!=(r=Es(n,e))&&(mn(t,e.p)[e.nm]=r)}),i=mn(n,Xt),a=mn(t,Xt),Po.concat(ko).forEach(function(e){null!=(r=Es(i,e))&&(a[e.nm]=r)}),wo&&(r=mn(n,si,!0))&&nn.assign(mn(t,si),r),xo&&(r=mn(n,ui,!0))&&nn.assign(mn(t,ui),r),au(t,a),e.m=t,Fs.push(e))}),m(f,Ee,Fs),Ws=[];var n,e=va.nm;va.on?(n=jn(E,e))||(n=un(),m(E,e,n)):Bn(E,e),h([[va,n]]),en.ts&&no.on&&null==uu(no)?eu(0,0,ze(Ue,sn())):_(Hs),en.ab&&uo.on&&null==uu(uo)?Fn("GET",xn(en.ab),null,null,function(e){4==e.readyState&&(h([[uo,!e.status]]),_($s))}):_($s),en.ip&&Fo.some(function(e){return e.on&&null==uu(e)})?Zs(0,0,ze(xe,sn())):_(Gs),_(js),tu(),F(function(){_(Ys),tu()},en.mh)},0,ze(Le,sn()))}function au(e,n){var t=""+(Ts+1e7);mn(e,pi.p)[pi.nm]=Is+"_"+t.substr(-7,2)+"."+t.substr(-5),m(f,_e,++Ts),cr.on&&(n[cr.nm]=Ts)}function ou(e,n,t,r,i,a,o){var s,u,c,l,d,o=o?rt:at,p=mn(e,Xt);for(gs(xs,Yo,o,e),gs(xs,Po,o,p),(r=r||[]).push([mi,n],[fi,t]),s=0;s<r.length;s++)u=(c=r[s])[0],c[2]||0!=(u.ap&it)?u.on&&null!=(c=Qn(c[1],u.dv))&&(mn(e,u.p)[u.nm]=c):an("Invalid event data",u);wo&&(o=Je(ys,i),n=e,i=cn(o),d=i?i.length:0,(l=en.ml)&&l<d?an("Custom metadata size: "+d+" > "+l):2<d&&(o=ln(i))&&nn.assign(mn(n,si),o)),xo&&(l=Dn(Ss,a),d=e,l)&&nn.assign(mn(d,ui),l),In&&Mn("evInfo",e),!(le<se)&&en.le&&en.le(e)||(i={p:qs,m:e,t:t},qs&js?Ws.push(i):(au(e,p),Fs.push(i),m(f,Ee,Fs),null==bs&&(bs=F(Js,en.bd))))}function su(t,n,r,e){var i,a=t.map(function(e){return e.m}),o=(a.forEach(function(e,n){var t,r=mn(e,oi);Za.on&&(mn(e,Za.p)[Za.nm]=sn()),Rs&&(r[en.ss+"_sampling"]=Rs),null!=Ds&&(r[en.ss+"_forced_sampling_in"]=Ds),n||(i=r[Se],We&&(nn.keys(We).forEach(Xe),We=null),$e.length&&(i=i?i.concat($e):$e,$e=[],i.length>en.mc&&(i.sort(function(e,n){return e.batch()>n.batch()?1:-1}),t=i[i.length-en.mc-1].batch(),i=i.filter(function(e){return e.batch()>t})),r[Se]=i))}),xn(en.mb)),a=cn(a);e&&L.sendBeacon&&L.sendBeacon(o,a)||Fn("POST",o,{"Content-Type":"application/json"},a,function(e){Qs(e,"Message post",su,t,n,en.rd,r,null,function(e,n){t.forEach(function(e){Ke(e,n)}),i&&($e=i.concat($e))})})}function h(e){_s(xs,Vs,rt,e)}function uu(e){return xs[e.nm]}function cu(e){var n=en.st;return e<Os&&an("Activity time reversal: "+Os+" -> "+e),0<=n&&(e<Os||Os+n<=e)}function lu(e){if(Tc&&(Tc=!1,pu(St,e)),Is&&As&&!cu(e))m(f,he,Os=e);else{Js(!(Ws=[]),!0);var n=e,t=Ks[zs];if(Is=un(),As=Os=n,h([[Gi,Is],[$i,As],[dr,Ts=0],[fr,0],[mr,0],[_r,0],[pr,0],[hr,0]]),m(f,_e,Ts),m(f,he,Os),Bn(f,ge),Ms&&Ms.abort(),Ms=Rs=null,Ns=Ds=null,qs|=Bs,Cs={},tu(),rn(t))try{t()}catch(e){on(e,"onAppSessionStart")}}h([[or,e-As],[_a,Ze.outerWidth],[fa,Ze.outerHeight],[io,gn.title],[ao,k.href],[oo,gn.referrer],[so,k.hostname],[ha,L.cookieEnabled]])}function du(e,n,t){vs(h,uu,e,n,t)}function pu(e,n,t,r,i){0!=(e.ap&rt)?(lu(n),e.on&&ou({},e.nm,n,t,r,i,!0)):an("Event inapplicable: "+e.nm+", ss",e)}function fu(n,t){var r,i;n&&Wo.forEach(function(e){r=q+e.nm,null!=(i=n[r])&&(t([[e,i]]),delete n[r])})}if(ms(xs,Go,rt),Is=uu(Gi),As=uu($i),Ts=jn(f,_e)||0,Os=jn(f,he)||0,Rs=jn(f,ge),ys=jn(f,ve),Ss=jn(f,"__ss_vendor_md"),en.st=Xs(jn(f,ye)),Is&&As&&!cu(sn())||(h([[no,null]]),Fo.forEach(function(e){h([[e,null]])})),Rs?(Ns=Rs.in_sample,Ds=!1,_(Bs)):Cs={},t.some(function(e){if(d=e[0].exec(w))return Ps=e[1],ks=d[1],!0})||(d=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(w))&&(Ps=d[1],ks=d[2]),(d=/Version\/([\d.]+)/.exec(w))&&(ks=d[1]),l.some(function(e){if(e[0].test(w))return Ls=e[1],!0})){switch(d=null,Ls){case"Mac OS X":d=/Mac OS X (10[\d._]+)/.exec(w);break;case"Android":d=/Android ([\d._]+)/.exec(w);break;case"iOS":d=/OS (\d+_\d+(_\d+)?)/.exec(w);break;case"Tizen":d=/Tizen[ \/]([\d._]+)/.exec(w);break;default:(d=/Windows (.*)/.exec(Ls))&&(Ls="Windows")}d&&(ws=d[1].replace(/_/g,"."))}else Ls=ws="-";ft.some(function(e){if(e[0].test(w))return Us=e[1],!0}),h([[Xi,w],[pa,Ps],[ma,ks],[Ia,Ls],[u,ws],[ya,Us],[to,en.cn],[ro,en.sv],[c,3]]);var mu="baseContext",_u="contextType",hu="contextName",vu="metadata",Eu=0,gu=["base","player"],_n={},yu=[];function Su(e){if(!e.destroyed){e.setTimer(null);try{var n=e.destroyCallback;n&&n()}catch(e){on(e,"onDestroy")}delete _n[e.id],e.removeListeners(),e.destroyed=!0}}function Iu(e,n,t,r,i,a,o){(i=i||[]).push([Ja,e.id],[Qa,e.name]),ou(n,t,r,i,Je(e.customMetadata,a),Dn(e.vendorMetadata,o))}function Au(e,n){return!(null!=n&&!dn(n)||(e.customMetadata=ln(cn(n)),0))}function Tu(e){var n=Rn(xs);return n._c_=Je(ys,e.customMetadata),n._v_=Dn(Ss,e.vendorMetadata),n}function Ou(){var t,c=[],r={},a={id:un(),type:Eu,destroyed:!1,destroyCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(e,n,t){if(a.destroyed)return an(e+" after destroyed"+(n?": "+n:""),t),!0},onDestroy:function(e){a.destroyCallback=e},setTimer:function(e){var n;t&&(0<=(n=yu.indexOf(t))&&yu.splice(n,1),t=null),e&&(yu.push(e),t=e)},fireEvent:function(e,n,t,r,i){a.shallBlock("fireEvent",e.nm,e)||(lu(n),e.on&&Iu(a,{},e.nm,n,t,r,i))},fireVendorEvent:function(e,n,t){a.fireEvent({ap:I,nm:Mo(e,n),on:Vo},sn(),null,null,Qe(e,t))},addListener:function(e,n,t,r,i){if(e&&n){var a=e[r=r||"addEventListener"];if(rn(a)){u=Nn(e,t,s="listener: "+(s=n));var o=le<ue?u:function(){Fe(s,arguments),u.apply(null,arguments)};try{"-"===n?a.call(e,o):a.call(e,n,o),c.push([e,n,t,o,i||"removeEventListener"])}catch(e){on(e,"addListener: "+n)}}else an("Invalid add-listener method: "+r,e)}var s,u},removeListeners:function(i,a,o){c=c.filter(function(e){var n=e[0],t=e[1];if(i&&i!=n||a&&a!=t||o&&o!=e[2])return!0;var r=n&&n[e[4]];if(rn(r))try{"-"===t?r.call(n,e[3]):r.call(n,t,e[3])}catch(e){}else an("Invalid remove-listener method: "+e[4],n)})},stash:function(e,n,t){r[e]=[n,t]},unstash:function(e){e.forEach(function(n){var e=r[n];if(e){delete r[n];try{e[0].apply(null,e[1])}catch(e){on(e,"unstash: "+n)}}})}},e={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return gu[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){Su(a)},setMetadata:function(e){return Au(a,e)},getMetadata:function(){return ln(cn(a.customMetadata))},generateEvent:function(e,n){a.fireEvent({ap:I,nm:z+e,on:Uo},sn(),null,n)}};return In&&(e.dumpDzData=function(){return ln(cn(Tu(a)))}),a.basePublicMethods=e,a.publicContext=Rn(e),_n[a.id]=a}function bu(e){return en.sn&&en.sn[e]||""+e}var Cu,Mu,Ru,Du,Nu,hn=[],Pu="idle",ku=(hn[2]=hn[9]="buffering",hn[3]=hn[10]="playing",hn[4]=hn[11]="paused",hn[5]=hn[12]="seeking",hn[6]="ended",hn[0]=hn[7]=hn[8]=Pu,function(U,x,i){var r,a,o,V,F,W,j,p={},B={},E={},H={},G={},$={},Y=[],q=[],z=[],K=[],X=[],J=[],Q=[],f=[],Z=un(),m=(w=i[mu],(e=(e=dn(w)&&rn(w.contextID)&&w.contextID())&&Gn(e)&&_n[e])&&e.type==Eu&&e.publicContext===w?e:(null!=w&&an("Invalid contextOptions."+mu,w),Ou())),e=i[hu],s=(null!=e&&(m.name=e),(w=i["adapterID"])&&Gn(w)&&Ic[w]||(null!=w&&an("Adapter not found for id: "+w),Cu)),u=i["adapterOptions"];function ee(){if(o){for(var e,n=nn.keys(o),t=sn(),r=0;r<n.length;r++)k((e=o[n[r]]).ev,t,e.dl);o=null}}function g(e,n,t){(o=o||{})[t||e.nm]={ev:e,dl:n}}function _(e){_s(p,B,1,e)}function y(e){_s(E,H,2,e)}function S(e,n){return hs(n?E:p,e)}function ne(e){return E[e.nm]}function te(){var e=S(aa),n=S(oa);ms(p,Go,1),_([[Ma,"content"],[aa,e],[oa,n]])}function re(){ms(E,Go,2),y([[Ma,"ad"]])}function n(e,n){B[e.nm]=n}function ie(e,n){H[e.nm]=n}function ae(e,n){$[e.nm]=n}function t(e,n,t,r){for(var i=[],a=0;a<n.length;a++)i[n[a]]=!0;Q[e]={tr:i,en:t,ex:r}}u=dn(u)?Rn(u):{},s&&(W=s[2],j=s[3],nn.assign(u,s[4]||{}),V=u[yc],F=u[Sc],(u[gc]||[]).forEach(function(e){G[e[0].nm]=e[1]})),U&&nn.keys(_n).some(function(e){e=_n[e];if(1==e.type&&e.player===U)return e.publicContext.destroy(),!0});var oe,c,se,ue,ce,l,le,de,I,pe,fe,A,me,T,O,_e,he,ve,Ee,ge,b,C,ye,Se,d,h,M,R,Ie,Ae,D,N,Te,v=0,Oe=Pu,be=1,Ce=sn(),Me=Cn(an,"Abnormal duration increment: ",1,1e3,3e5);function Re(){return 2==be}function De(){return!!T&&T.type===Ko}function Ne(e){I=e+en.hi,bn("Heartbeats started")}function Pe(){I&&bn("Heartbeats stopped"),I=0}function P(e,n,t){return vs(_,S,e,n,t)}function ke(e){var n=e-Ce;n<0||n>en.ed?Me.log(n):0<n&&(4==v?P(gr,n,vr):11==v?P(Er,n,vr):2==v?(c&&P(Wr,n,Vr),P(er,n,Qt)):9==v&&(c&&P(Fr,n,Vr),P(Zt,n,Qt))),Ce=e}function Le(e,n){null!=e&&(f[e]=n)}function k(n,t,r,e,i,a){if(!m.shallBlock("fireEvent",n.nm,n))if(a=a||(De()?2:be),0!=(n.ap&a)){if(lu(t),(r=r||[]).push([eo,m.id]),Te||(Te=!0,(u=z.some(function(e){try{return e(t,r,n,a)}catch(e){on(e,"extEventHandler")}}))||(u=(c=$&&$[n.nm])&&c(t,r,n,a)),Te=!1),!u){ke(t);for(var o,s,u,c,l=[[br,Oe]],d=0;d<No.length;d++)s=f[(o=No[d]).ts],l.push([o,s?t-s:0]);_(l),null==S(Jt)&&yn&&(c=yn.downlink)&&_([[Jt,1e3*c]]),Le(n.rt,t),Le(2==a?n.rta:n.rtc,t),!n.on||n.mm&&!n.mm[S(Ma,2==a)]||(c=mn(u={},Xt),2==a?(gs(E,Yo,2,u),gs(E,Po,2,c),gs(p,Yo,at,u),gs(p,Po,at,c)):(gs(p,Yo,1,u),gs(p,Po,1,c),gs(E,Yo,at,u),gs(E,Po,at,c)),Iu(m,u,n.nm,t,r,e,i))}}else an("Event inapplicable: "+n.nm+", "+a,n)}function we(e){var n=e[1];n&&n!=S(e[0])&&g(gt)}function Ue(e,n){var t=3==n?b:C;if(e!=t){var r,i,a,o,s,u,c,l,d=sn();if(I||Ne(d),pe=!0,3==n){if(s=V||en.mp,b=e,a=d-ye,ye=d,r=S(Oa),A){var p,f=T;if(null==_e&&0<r&&(p=A.locate(r),_e=(p.type?p.start:r)-p._e),r=_e,O&&t>=O.start&&t<=O.end||(O=A.locate(t)),(T=T&&e>=T.start&&e<=T.end?T:A.locate(e))&&(u=T.type,c=T.start,l=T._d),T!=f&&(p=N<=e&&e<N+s,u===Ko?D!==c&&l&&((null==D?We:(p&&k(Lt,d),Ge))(d),D=c,N=T.end,Be(),y(l.concat([[fo,N-D]])),He(d,T._a),k(dt,d,null,null,null,2),C=0,Se=d):null!=D&&(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||(i=he=!he&&en.cm?en.cm.slice():he)}else s=F||en.mp,C=e,a=d-Se,Se=d,r=ne(fo),i=ve=!ve&&en.am?en.am.slice():ve;if(null!=t&&null!=e&&0<=t&&t<e&&e<=t+s){if(0<r&&i)for(var m,_,h=0,v=3==n&&O&&T?(_=((O.type?O.start:t)-O._e)/r,((u?c:e)-T._e)/r):(_=t/r,e/r);h<i.length&&!(v<(m=i[h]/100));)_<m?(i.splice(h,1),g(Rt,[[Vi,100*m]],Rt.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?Tr:null,a,yr);else if(r=P(Ar,a,yr)/1e3,en.cq)for(Ee=Ee||en.cq.slice();null!=(o=Ee[0])&&o<=r;)Ee.shift(),g(xt,[[Fi,o]],xt.nm+o)}else if(R=e,a<0||a>en.ed)Me.log(a);else if(0<a&&(P(Sr,a,yr),r=vs(y,ne,Ir,a)/1e3,en.aq))for(ge=ge||en.aq.slice();null!=(o=ge[0])&&o<=r;)ge.shift(),g(xt,[[Fi,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!=R&&e!=R&&(h=R,k(Bt,n||sn()))}function Fe(e){oe&&k(Yt,e),oe=se=!1,be=1,d=M=null,Pe()}function We(e){var n,t,r="pre";S(Ar)>1e3*en.ep&&(n=S(pn),t=S(Oa),r=null!=n&&null!=t&&n+en.ep>t?"post":"mid"),ue=l=le=!1,re(),_([[co,un()],[ho,r],[lr,0]]),k(ut,e)}function je(e){Ie+=e-f[14],k(ct,e,null,null,null,2),_([[co,null],[ho,null],[lr,null]])}function Be(){le||(le=!0,y([[vo,a||un()],[Ir,0]]),a=null)}function He(e,n){var t=Ks[3];if(ue=!0,ve=ge=null,du(dr,1),P(lr,1),rn(t))try{t(r,n)}catch(e){on(e,"onAdStart")}k(kt,e)}function Ge(e){if(ue){var n=Ks[4];if(Ae+=e-f[9],rn(n))try{n(r)}catch(e){on(e,"onAdEnd")}}ue=l=le=!1,h=R=D=N=null,re()}function $e(e,n,t,r){var i,a,o,s;e!=v&&(o=Q[v],i=bu(v)+" => "+bu(e),a=hn[e]||Oe,m.shallBlock("setState",i)||(o.tr[e]?(bn("state: "+i+" ("+a+")"),(o=o.ex)&&o(n,e,t,r),ke(n),s=v,Oe=a,(o=Q[v=e].en)&&o(n,s,t,r),pe=!0):an("Invalid transition: "+i)))}function Ye(e){return e!=v&&!!Q[v].tr[e]}function qe(){return 0==v||7==v||8==v}function L(o,s,u){return function(e){var n,t,r,i,a;n=o,t=s,r=u,a=(e=e)[0],e=e[1]=Qn(e[1],a.dv),a=S(a,r),null!=r&&r!=Re()||null==a||null==e||(t?!e!=!a&&g(e?n:t):e!=a&&g(n,i=n==Ft?a<e?[[ki,"up"]]:e<a?[[ki,"down"]]:null:i))}}function ze(e){e[1]=Qn(e[1],e[0].dv)}t(0,[1,8]),t(1,[2,7,8,16],function(e){var n=Ks[1];if(Fe(e),oe=!(ce=!1),de=Xo.test(S(la)),Ie=Ae=0,_([[Ki,Z],[rr,e]]),Z=un(),du(hr,1),rn(n))try{n(r)}catch(e){on(e,"onContentSessionStart")}A=me,me=T=O=_e=null,D=N=null,fe=0,k(Mt,e)}),t(2,[3,4,5,7,8,16],function(e,n){(c=3==n)&&(P(xr,1,wr),k(Gt,e)),k(_t,e)},function(e){k(ht,e),c&&k($t,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,du(pr,1),k(kt,e,[[Bi,n-Ie],[Hi,n-Ae]])),b=M=S(pn),ye=e,null!=d&&(k(Ht,e,[[Wi,1e3*d],[ji,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(Ur,1,wr),k(Gt,e)),k(_t,e)},function(e){k(ht,e),c&&k($t,e),c=!1}),t(10,[9,11,12,13,14,15,7],function(e,n,t,r){Be(),ue||He(e,r),C=R=ne(pn),Se=e,null!=h&&(k(Ht,e,[[Wi,1e3*h],[ji,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=kr,w=kr;function Xe(e){var r=[],i=0,a=0;return r.locate=function(n){return r.find(function(e){return n>=e.start&&n<=e.end})},e.forEach(function(e){var n=e.start,t=e.end;$n(n)&&$n(t)&&(n=n<i?i:n)<t?(i<n&&r.push({start:i,end:n,_e:a}),r.push(nn.assign({},e,{start:n,_e:a})),e.type&&(a+=t-n),i=t):an("Skipped time span",e)}),r.push({start:i,end:vn.MAX_VALUE,_e:a}),r}function Je(e,n){e=e&&e({type:An,ack:n,appSID:uu(Gi),ctSID:S(Ki)});e&&e["catch"](function(e){On("Cast transfer message rejected",e)})}function Qe(e){var n,t=m.publicContext,r=null;m.player=e,nn.assign(t,m.basePublicMethods,{getError:function(){return r},getPlayer:function(){return e},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(Ki)},nextContentSessionID:function(){return Z},playerState:function(){return Oe},destroy:function(){if(!m.destroyed){Ye(7)&&$e(7,sn());for(var e=0;e<q.length;e++)try{q[e]()}catch(e){on(e,"extOnDestroy")}Su(m)}},setMetadata:function(e){return!!Au(m,e)&&(fu(m.customMetadata,m.setData),!0)},annotateContentSession:function(e){return null==e?!(me=null):!!Yn(e)&&(me=Xe(e.slice().sort(function(e,n){return e.start>n.start?1:-1})),!0)}}),In&&(t.dumpDzData=function(){var e=nn.assign(Tu(m),p,E),n=Ma.nm;return e[n]=(Re()||De()?E:p)[n],ln(cn(e))}),wu.forEach(function(e){try{e(t,m,Y,q,z,K,X,J)}catch(e){on(e,"extInit")}});try{r=W?W(e,m,u):null}catch(e){r=on(e,s[0]+" initContext")}return r?(Tn(r),t.destroy()):(null!=(n=i[vu])&&t.setMetadata(n),n=sn(),k(yt,n),k(wt,n),m.setTimer(function(){for(var e=0;e<Y.length;e++)try{Y[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,[[xi,++fe]]),I=n+en.hi,pe=!1):Pe())})),t}return 1&(G[e.nm]||0)&&(e=Nr),2&(G[w.nm]||0)&&(w=Nr),n(Oa,ze),ie(fo,ze),n(ca,function(e){var n=e[1];e[1]=n&&Jo[n]||n}),n(la,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)}),ie(pn,function(e){12==v?Ve(e[1]):10==v&&Ue(e[1],10)}),n(e,L(Ft,null,!1)),ie(w,L(Ft,null,!0)),n(ia,L(Dt,zt)),n(ta,L(Tt,At)),n(Qi,L(vt,Et)),n(Da,L(Wt)),n(Ra,L(Wt)),n(ai,L(Kt)),n(ir,L(mt,null,!1)),ie(ir,L(mt,null,!0)),n(ar,L(qt)),n(da,L(qt)),n(Yi,we),n(qi,we),n(Mr,function(e){var n,t,r,i,a=e[1];a=a&&rn(a.getBoundingClientRect)?"visible"==gn.visibilityState?(n=(t=a.getBoundingClientRect()).left,r=t.top,i=t.bottom,tn.min(100,tn.max(0,tn.round(100*(tn.min(t=t.right,Ze.innerWidth)-tn.max(n,0))*(tn.min(i,Ze.innerHeight)-tn.max(r,0))/((t-n)*(i-r)))))):0:Qn(a,Mr.dv),null!=(e[1]=a)&&_([[Cr,50<=a]])}),n(tr,function(e){var n=e[1];if(n&&rn(n.end)){var t,r,i=S(pn);if(null!=i)for(t=0;t<n.length;t++)if(r=n.end(t),i>=n.start(t)&&i<=r)return void(e[1]=1e3*(r-i));e[1]=0}}),ae(bt,function(e,n,t,r){2==r&&(a=un(),n.push([vo,a,!0]))}),ae(dt,function(e,n){a&&n.push([vo,a,!0])}),ae(It,function(e,n,t,r){du(1==r?_r:mr,1,fr)}),te(),re(),nn.assign(m,{type:1,fireEvent:k,fire:function(e,n,t){k(e,sn(),n,null,null,t)},setState:function(e,n,t){$e(e,sn(),n,t)},canSetState:Ye,reset:function(){Ye(7)&&$e(7,sn()),te(),re(),f=[],v=0,Oe=Pu},setData:function(e){_(e),ee()},setAdData:function(e){y(e),ee()},getData:S,getAdData:ne,getState:function(){return v},isIdle:qe,isAdIdle:function(){return 13==v||14==v||15==v},isInAds:Re,isInSsaiAds:De,onTimer:function(e){Ke=e},matchCtSource:function(e){return S(Na)==e},reqCtSID:function(){return qe()?Z:S(Ki)},reqTracer:function(e,a){e=Un(e,function(e){e["delete"]("CMCD")});var n,t=m.reqCtSID(),r=un(),i=((a=nn.assign({},a||{},{sid:t}))[ds+"rid"]=r,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(n=S(Aa))&&(a.cid=n),{url:e,sid:t,rid:r,cmcd:a,start:sn()});return{reqID:r,urlBase:e,url:function(){var n=ps(a);return Un(e,function(e){e.append("CMCD",n[0].concat(n[1],n[2],n[3]).sort().join())})},headers:function(){for(var e={},n=ps(a),t=0;t<4;t++)n[t].length&&(e[Zo[t]]=n[t].sort().join());return e},enabledData:function(){for(var e,n,t=nn.keys(a),r={},i=0;i<t.length;i++)e=t[i],(n=fn[e])&&n[3]&&(r[e]=a[e]);return r},status:function(e){i.status=e},start:function(){i.start=sn()},resp:function(e){i.resp=null!=e?i.start+e:sn(),In&&Mn("reqInfo",i)},end:function(e){var n=sn(),t=(i.end=null!=e?i.start+e:n,nn.assign({},ls,a)),r=[];nn.keys(t).forEach(function(e){var n=fn[e];n&&n[2]&&r.push([n[2],t[e]])}),k(Ct,n,r,null,null,1),In&&Mn("reqInfo",i)}}},updateTimedMetadata:function(e,n,t,r,i){for(var a=0;a<X.length;a++)try{X[a](e,n,t,r,i)}catch(e){on(e,"extTimedMetadataHandler")}},addCtTimeSpans:function(e){var u=A?A.filter(function(e){return e.type}):[];e.forEach(function(e){for(var n,t,r,i,a=e.start,o=e.end,s=0;s<u.length&&(r=(t=u[s]).start,i=t.end,!(o<=r));s++)a<i&&(r<a?(u.splice(s+1,0,nn.assign({},t,{start:a})),t.end=a):(n||(u.splice(s++,0,e),n=!0),o<i?t.start=o:u.splice(s--,1)));n||u.splice(s,0,e)}),A=Xe(u),T=O=_e=null},initCastTransfer:function(e){qe()||Je(e,!1)},handleCastMessage:function(e,n){!e||e.type!==An||qe()||(m.setData([[Yi,e.appSID],[qi,e.ctSID]]),e.ack)||Je(n,!0)},sa:{}}),s&&_([[aa,s[1]]]),qs&js&&fs((e=Sn.options).cmcdEnable?e.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new En(function(n,t){try{j(x,m,u).then(function(e){r=Qe(e),n(r)},function(e){Tn(e),t(e)})}catch(e){t(on(e,s[0]+" createTargetObject"))}}):En.reject("Not implemented"):r=Qe(U)}),Lu=function(e,o){var s=new(e||N);return o=o||P,s.dispatch=function(e,n,t){var r,i,a;t=t||{},n&&((a=n.media)&&nn.assign(s,a),a=n.ima)&&((n=a.adsManager)&&nn.assign(s,n),t.getAdData=function(){return{currentTime:s.currentTime}},(r=a.ad)&&(t.getAd=function(){return{getAdId:function(){return r.adId},getAdSystem:function(){return r.adSystem},getAdvertiserName:function(){return r.advertiserName},getCreativeId:function(){return r.creativeId},getDealId:function(){return r.dealId},getDuration:function(){return r.duration},getSkipTimeOffset:function(){return r.skipTimeOffset},getVastMediaBitrate:function(){return r.vastMediaBitrate},getVastMediaWidth:function(){return r.vastMediaWidth},getVastMediaHeight:function(){return r.vastMediaHeight},getWrapperAdIds:function(){return r.wrapperAdIds},getWrapperAdSystems:function(){return r.wrapperAdSystems},getWrapperCreativeIds:function(){return r.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return r.adPodIndex},getTimeOffset:function(){return r.adTimeOffset}}},h:{clickThroughUrl:r.clickThroughUrl}}}),i=a.error)&&(t.getError=function(){return{getErrorCode:function(){return i.code},getMessage:function(){return i.message},getInnerError:function(){return i.innerError}}}),e&&(n=new o(e),nn.assign(n,t),s.dispatchEvent(n))},s.getBoundingClientRect=function(){return s.boundingClientRect||{left:0,right:0,top:0,bottom:0}},s.getVolume=function(){return s.volume},s},wu=[],Uu="REQUEST_COMPLETE",xu="SLOT_STARTED",Vu="SLOT_ENDED",Fu="AD_INITIATED",Wu="AD_BUFFERING_START",ju="AD_BUFFERING_END",Bu="AD_PAUSE",Hu="AD_RESUME",Gu="AD_IMPRESSION",$u="AD_IMPRESSION_END",Yu="AD_COMPLETE",qu="AD_SKIPPED",zu="AD_CLICK",Ku=(wu.push(function(e,r,n,t){var i,a,o=r.setState,s=r.setAdData,u=r.fire,c={},l={on:{}};function d(){i&&(r.removeListeners(i),c={},i=a=null)}l.$update=l.update=function(e,n){var t;r.isInAds()&&(n&&s([[go,p(n,"getTimePosition")]]),a&&(s([[pn,p(a,"getPlayheadTime")],[fo,p(a,"getDuration")],[mo,p(a,"getAdId")],[po,a._creativeId],[So,p(a,"getDealId")],[Io,p(a,"getSkipOffset")]]),n=p(a,"getActiveCreativeRendition"))&&(t=p(n,"getHeight"),s([[Lr,p(n,"getWidth")],[Nr,t],[Pr,t?t+"p":null]])),e)&&(n=p(e,"getAdVolume"),r.setData([[ai,100*n],[ia,0==n]]))},l.on[Uu]=function(e,n){n.success?u(Mt,null,2):u(It,null,2)},l.on[xu]=function(e,n){a=null,o(16),l.update(e,n.slot)},l.on[Vu]=function(){o(17),a=null},l.on[Fu]=function(){s([[Or,1]]),u(bt,null,2)},l.on[Wu]=function(){o(9)},l.on[ju]=l.on[Hu]=function(){o(10,null,a)},l.on[Gu]=function(){o(10,null,a),u(dt,null,2)},l.on[Bu]=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[zu]=function(){u(lt)},l.on["ERROR"]=function(e,n){o(15,[[Li,n.errorCode],[wi,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=Rn(l.on),r.sa.fwContext=l,n.push(function(){i&&l.update(i)}),t.push(d),Pn({attachFwContext:function(e){var n;!r.shallBlock("attachFwContext",null,e)&&e!=i&&(d(),i=e)&&(n=y(Ze.tv,["freewheel","SDK"]),[Uu,xu,Vu,"AD"].forEach(function(t){var e=n&&n["EVENT_"+t];e&&r.addListener(i,e,function(e){var n=l.on[t];n&&n(i,e)})}),[Fu,Wu,ju,Bu,Hu,Gu,$u,Yu,qu,zu,"ERROR"].forEach(function(r){var e=n&&n["EVENT_"+r];e&&(c[e]=function(e,n){var t=l.on[r];t&&t(e,n)})}))},detachFwContext:d},[e,r])}),"play"),Xu="waiting",Ju="playing",Qu="pause",Zu="seeking",ec="seeked",nc="ended",tc="durationchange",rc="ratechange",ic="timeupdate",ac=(wu.push(function(e,a,n,t){var i,o,s,u,r=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function p(){o&&d(o),i&&d(i),i=o=null}function f(){if(i){for(var e,n,t,r=0;r<i.length;r++)"metadata"===(t=i[r]).kind?n=n||t:"showing"===t.mode&&(e=e||t);s||c([[da,!!e],[ar,e?e.label||e.language:null]]),o!=n&&(o&&d(o),o=n)&&l(o,"cuechange",function(){var e=o.activeCues;if(e)for(var n,t,r=0;r<e.length;r++)(t=(n=e[r]).value)&&a.updateTimedMetadata("ID3",n.startTime,n.endTime,t.key,t.data)})}}t.push(p);var m={on:{}};function _(){u&&d(u),u=null}m.$update=m.update=function(e,n){n&&(c([[Oa,e.duration],[ea,e.muted],[na,e.playbackRate]]),f()),a.isInAds()||c([[pn,e.currentTime],[Or,e.playbackRate],[Da,e.offsetWidth],[Ra,e.offsetHeight],[Mr,e],[tr,e.buffered],[ra,e.loop],[ia,e.muted],[ai,100*e.volume],[ua,e.readyState]])},m.on[Ku]=function(e){a.isIdle()&&(a.reset(),m.update(e,!0),r(1),r(2))},m.on[Xu]=function(e){m.update(e),r(2)},m.on[Ju]=function(e){m.update(e),a.isAdIdle()&&r(17),r(3)},m.on[Qu]=function(e){m.update(e),r(4)},m.on[Zu]=function(e){m.update(e),r(5)},m.on[ec]=function(e){m.update(e),r(e.paused?4:3)},m.on[nc]=function(e){m.update(e),a.isAdIdle()&&r(17),r(6)},m.on["error"]=function(e){var n,t=e.error;t&&(n=[[Li,t.code],[wi,t.message]]),m.update(e),r(8,n)},m.on[tc]=function(e){c([[Oa,e.duration]])},m.on[rc]=function(e){c([[Or,e.playbackRate]])},m.on[ic]=function(e){m.update(e)},m.$on=Rn(m.on),a.sa.mediaElement=m,n.push(function(){u&&m.update(u)}),t.push(_),Pn({attachMediaElement:function(e){_(),(u=e)&&[[Ku,(e=[[nc,Qu,Zu,Ku,Xu,ec,Ju]])[0]],[Xu,e[0]],[Ju,e[0]],[Qu,e[0]],[Zu,e[0]],[ec,e[0]],[nc,e[0]],["error"],[tc],[rc],[ic]].forEach(function(r){var i=r[0];l(u,i,function(e){var n,t=m.on[i];t&&((n=r[1])?(a.stash(i,t,[u,e]),F(function(){a.unstash(n)},0)):t(u,e))})})},detachMediaElement:_,attachTextTracks:function(e,n){p(),s=n,(i=e)&&["change","addtrack","removetrack"].forEach(function(e){l(i,e,f)})},detachTextTracks:p},[a])}),"CLICK"),oc="STARTED",sc="AD_PROGRESS",uc="AD_BUFFERING",cc="IMPRESSION",lc="PAUSED",dc="RESUMED",pc="COMPLETE",fc="LOADED",mc="ALL_ADS_COMPLETED",_c="SKIPPED",hc="VOLUME_CHANGED",vc="AD_ERROR",Ec={CLICK:"click",STARTED:"start",AD_PROGRESS:"adProgress",AD_BUFFERING:"adBuffering",IMPRESSION:"impression",PAUSED:"pause",RESUMED:"resume",COMPLETE:"complete",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",VOLUME_CHANGED:"volumeChange",AD_ERROR:"adError"},gc=(wu.push(function(e,a,n,t){var o,r=a.setState,i=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(e){var n,e=e.getError();return e&&(n=[[Li,e.getErrorCode()],[wi,e.getMessage()]],e=e.getInnerError())&&n.push([Ui,""+e]),n}var d,p,f={on:{}};function m(){o&&c(o),o=null}function _(e){var n=e.getAdPodInfo(),t=e.getVastMediaHeight(),t=[[mo,e.getAdId(),!0],[Eo,e.getAdSystem(),!0],[yo,e.getAdvertiserName(),!0],[po,e.getCreativeId(),!0],[So,e.getDealId(),!0],[fo,e.getDuration(),!0],[Io,e.getSkipTimeOffset(),!0],[kr,e.getVastMediaBitrate(),!0],[Lr,e.getVastMediaWidth(),!0],[Nr,t,!0],[Pr,t?t+"p":null,!0],[To,e.getWrapperAdIds(),!0],[Oo,e.getWrapperAdSystems(),!0],[Ao,e.getWrapperCreativeIds(),!0],[lo,y(e,[/[a-z]/,"clickThroughUrl"]),!0]];return n&&t.push([go,n.getTimeOffset(),!0]),t}f.$update=f.update=function(e,n){a.isInAds()&&(n&&i(_(n)),e)&&(n=e.getVolume(),a.setData([[ai,100*n],[ia,0==n]]))},f.on[ac]=function(e){f.update(e),s(lt)},f.on[oc]=function(e,n){n=n.getAd();a.isInAds()||r(16),i([[Or,1]]),f.update(e,n),r(10,null,n)},f.on[sc]=function(e,n){n=y(n.getAdData(),["currentTime"]);null!=n&&(f.update(e),9==a.getState()&&(null==d?d=n:d!=n&&r(10)),i([[pn,n]]))},f.on[uc]=function(e){f.update(e),r(9),d=null},f.on[cc]=function(e){f.update(e),s(dt,null,2)},f.on[lc]=function(e){f.update(e),r(11)},f.on[dc]=function(e){f.update(e),r(10)},f.on[pc]=function(e){f.update(e),r(13)},f.on[fc]=function(e,n){n=n.getAd();s(bt,n&&_(n),2)},f.on[mc]=function(){r(17),m()},f.on[_c]=function(e){f.update(e),r(14)},f.on[hc]=function(e){f.update(e)},f.on[vc]=function(e,n){f.update(e),a.canSetState(15)?r(15,l(n)):s(It,l(n),2)},f.$on=Rn(f.on),a.sa.imaAdsManager=f,n.push(function(){o&&f.update(o)}),t.push(m);var h={on:{}};function v(){p&&c(p),p=null}h.on[vc]=function(e,n){s(It,l(n),2)},h.$on=Rn(h.on),a.sa.imaAdsLoader=h,t.push(v),Pn({attachImaAdsManager:function(e){var n,t;!a.shallBlock("attachImaAdsManager",null,e)&&e!=o&&(m(),o=e)&&(e=y(Ze.google,["ima"]),n=y(e,["AdEvent","Type"],Ec),[[ac],[oc,null,(t=[[oc,cc]])[0]],[sc],[uc],[cc,null,t[0]],[lc],[dc],[pc],[fc],[mc],[_c],[hc],[vc,y(e,["AdErrorEvent","Type"])]].forEach(function(r){var i=r[0],e=(r[1]||n)[i];e&&u(o,e,function(e){var n,t=f.on[i];t&&((n=r[2])?(a.stash(i,t,[o,e]),F(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=y(Ze.google,["ima","AdErrorEvent","Type"],Ec)[vc])&&u(p,e,function(e){var n=h.on[vc];n&&n(p,e)}))},detachImaAdsLoader:v},[e,a])}),wu.push(function(n,i,e,t,r,a,o){var s,u,c,l=i.addListener;function d(){s&&i.removeListeners(s),s=u=c=null}function p(e){for(var n;(n=u[0])&&n.t<=e;)u.shift(),delete n.t,s.onTimedMetadata(n)}t.push(d),a.push(function(e){s&&p(c=e[1])}),o.push(function(e,n,t,r,i){var a;s&&r&&i&&Gn(a="ID3"===e?i:a)&&((e={t:n})[r]=a,u.push(e),null!=c)&&p(c)}),Pn({attachImaDaiStreamManager:function(e){i.shallBlock("attachImaDaiStreamManager",null,e)||e==s||(d(),(s=e)&&(e=y(Ze.google,["ima","dai","api","StreamEvent","Type"]),u=[],e)&&(l(s,e.CUEPOINTS_CHANGED,function(e){i.isIdle()&&(e=y(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,r,e=e.getAd();e&&(n=c||0,t=e.getAdPodInfo(),r=e.getVastMediaHeight(),i.addCtTimeSpans([{type:Ko,start:n,end:n+(e.getDuration()||0),_d:[[mo,e.getAdId()],[Eo,e.getAdSystem()],[yo,e.getAdvertiserName()],[po,e.getCreativeId()],[So,e.getDealId()],[Io,e.getSkipTimeOffset()],[Lr,e.getVastMediaWidth()],[Nr,r],[Pr,r?r+"p":null],[To,e.getWrapperAdIds()],[Oo,e.getWrapperAdSystems()],[Ao,e.getWrapperCreativeIds()],[go,t?t.getTimeOffset():null]],_a:e}]))})))},detachImaDaiStreamManager:d},[n,i])}),Sn.mediatailor=((Pt=v.mediatailor)&&(Pt.clientInfo+=" DZSDK "+en.cn+" v"+en.sv),Pt),wu.push(function(e,s,n,t,r,i,a,o){var u,c,l,d,p;function f(e,n,t){if(e&&1===e.playCount)for(var r=o.length,i=0;i<r;i++)o[i](n,t)}function m(){u&&c&&u.removeAdObserver(c),u=c=null,l=d=p=null}t.push(m),r.push(function(e,n,t,r){var i=l&&l[t.nm];return i&&i(e,n,t,r)}),i.push(function(e){u&&!s.isIdle()&&(d=e[1],p=s.getData(Rr),le<ue||Fe("MT onPlayheadUpdate: "+d+", "+p),u.onPlayheadUpdate(d,p||null))}),Pn({attachMediaTailorSession:function(e,n){var o,t,r,i,a;n=n||Sn.mediatailor,!s.shallBlock("attachMediaTailorSession",null,e)&&n&&e!=u&&(m(),t=function(){var e=s.getData(ai);$n(e)&&f(o,14,e)},r=n.AdTrackingEvent,(i=[])[r.IMPRESSION]=(a=function(e){return function(){f(o,e)}})(3),i[r.LOADED]=a(1),i[r.START]=a(2),i[r.FIRST_QUARTILE]=a(4),i[r.MID_POINT]=a(5),i[r.THIRD_QUARTILE]=a(6),i[r.COMPLETE]=a(7),i[r.PAUSE]=a(8),i[r.RESUME]=a(9),i[r.FULLSCREEN]=a(15),i[r.EXIT_FULLSCREEN]=a(16),i[r.MUTE]=function(){f(o,14,0)},i[r.UNMUTE]=t,i[r.CLICK_THROUGH]=function(){s.fire(lt),f(o,13)},i[r.SKIP]=function(){s.fire(pt),f(o,12)},u=e)&&(a=n.PlaybackEvent,l={},[[a.START,kt,1],[a.END,Yt,I],[a.PAUSE,Nt,I],[a.RESUME,jt,I],[a.MUTE,Dt,I],[a.UNMUTE,zt,I],[a.FULLSCREEN,Tt,I],[a.EXIT_FULLSCREEN,At,I]].forEach(function(i){l[i[1].nm]=function(e,n,t,r){i[2]&r&&u.onPlaybackEvent(i[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:[[mo,e.vastAdId],[Eo,e.adSystem],[po,e.creativeId],[Io,e.skipOffset],[go,e.availStart],[lo,e.videoClickThrough]]})])},onAdLoad:function(e){var n,t,r,i,a;1===(o=e).playCount&&(n=e.adVerifications)&&(t={},r=[],i=s.getData(ai),a=e.skipOffset,$n(i)&&(t["v"]=i),t["d"]=e.duration,t["ap"]=!!s.getData(Ji),t["po"]=0===e.availStart?0:1,t["sk"]=0<=a,t["so"]=t["sk"]?a:null,t["vf"]=r,n.forEach(function(e){var n=y(e.javaScriptResource,[0,"uri"]),t=e.vendor;n&&t&&r.push({url:n,vd:t,p:e.verificationParameters||""})}),f(e,0,t))},onAdEnd:function(e){f(e,17),o=null},onAdTrackingEvent:function(e,n){n=i[n];n&&n()}},u.addAdObserver(c))},detachMediaTailorSession:m},[e])}),wu.push(function(s,u,e,n,t,r,i){var p,c,l,a,d,f,m,_,h,v=["YMID","YSEQ","YTYP","YDUR"];function E(){p&&c&&p.removeAnalyticObserver(c),p=c=null,l=a=d=m=null}function o(e){for(var n;(n=l[0])&&n.t<=e;)l.shift(),p.onTimedMetadata(h.createFromMetadata(n.YMID,n.YSEQ,n.YTYP,n.YDUR,1e3*n.t))}function g(e,n,t){(a=a&&a.t===e?a:{t:e})[n]=t||"",nn.keys(a).length===v.length+1&&(l.push(a),(a=null)!=m)&&o(m)}n.push(E),t.push(function(e,n,t,r){var i=d&&d[t.nm];return i&&i(e,n,t,r)}),r.push(function(e){p&&!u.isIdle()&&(m=e[1],f===_.VOD||f===_.DVRLIVE?p.onPlayheadUpdate(tn.round(1e3*m)):o(m))});var y=A.fromCharCode;function S(e,n,t){for(var r,i=[];n<t;)31<(r=e[n++])&&r<127&&i.push(y(r));return i.join("")}i.push(function(e,n,t,r,i){var a;if(p&&i&&f===_.LIVE)if("ID3"===e||"org.id3"===e)v.includes(r)&&(i instanceof C&&(i=new b(i))||i instanceof b?3===i[0]&&(a=S(i,1,i.length)):a=i,Gn(a))&&g(n,r,a);else if("urn:yospace:a:id3:2016"===e){if(i instanceof b)for(var o,s=S(i,0,i.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),v.includes(o[0])&&g(n,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===e&&i instanceof b){var c=i.length;if(9<c&&73===i[0]&&68===i[1]&&51===i[2]&&(i[3]<<8|i[4])<=1024&&!(192&i[5])){u=6;for(var l=0,d=10;u<d;)l=l<<7|127&i[u++];for(c=tn.min(c,l+10);u+9<c;){for(r="",d=u+4;u<d;)r+=y(i[u++]);for(l=0,d=u+4;u<d;)l=l<<7|127&i[u++];d=(u+=2)+l,v.includes(r)&&d<=c&&g(n,r,S(i,u,d)),u=d}}}}),Pn({attachYospaceSession:function(e){var n,a,o,t,r,i=Ze.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,e)&&i&&e!=p&&(E(),p=e)&&(n=i.PlayerEvent,e=i.BreakType,_=i.PlaybackMode,h=i.TimedMetadata,f=p.getPlaybackMode(),l=[],d={},[[n.START,kt,1],[n.STOP,Yt,I],[n.PAUSE,Nt,I],[n.RESUME,jt,I],[n.STALL,Gt,I],[n.CONTINUE,$t,I]].forEach(function(i){d[i[1].nm]=function(e,n,t,r){i[2]&r&&p.onPlayerEvent(i[0],0)}}),d[Ht.nm]=function(){p.onPlayerEvent(n.SEEK,1e3*(m||0))},d[Dt.nm]=function(){p.onVolumeChange(!0)},d[zt.nm]=function(){p.onVolumeChange(!1)},a=function(e,n){e=e.getProperty(n);return e&&e.getValue()},o=function(e,n,t,r){e&&(n.push(e.getIdentifier()),t.push(e.getAdSystem()),r.push(e.getCreativeIdentifier()),o(e.getLineage(),n,t,r))},t=function(e){var n=e.getSkipOffset(),t=[],r=[],i=[],n=(o(e.getLineage(),t,r,i),[[mo,e.getIdentifier()],[Eo,a(e,"AdSystem")],[yo,a(e,"Advertiser")],[Io,0<n?n/1e3:n],[To,t],[Oo,r],[Ao,i]]),t=e.getLinearCreative(),r=(t&&n.push([po,t.getCreativeIdentifier()],[lo,t.getClickThroughUrl()]),e.getStart()/1e3);return{type:Ko,start:r,end:r+e.getDuration()/1e3,_d:n,_a:e}},c={onAdvertBreakStart:function(e){},onAdvertBreakEnd:function(){},onAdvertStart:function(e){u.addCtTimeSpans([t(e)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(e){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(e){}},p.addAnalyticObserver(c),f===_.VOD)&&(r=[],(i=p.getAdBreaksByType(e.LINEAR))&&i.forEach(function(e){e=e.adverts;e&&e.forEach(function(e){r.push(t(e))})}),r.length)&&s.annotateContentSession(r)},detachYospaceSession:E},[s])}),wu.push(function(e,r,n,t,i,a,o,s){var u,m,_,c;function h(){c&&c(17),m=_=c=null,u=!1}t.push(h),s.push(function(e,n){u&&(0===e?(c&&c(17),c=!1===en.om?null:_(n)):c&&(c(e,n),17===e)&&(c=null))}),Pn({startOmidSessionClient:function(e){var c,l,d,p,f=v.OmidSessionClient,n=Hn.omidPartnerName,t=Hn.omidPartnerVersion;r.shallBlock("startOmidSessionClient",null,e=e||{})||(c=e.omidServiceWindow||Ze.self,l=e.videoElement,d=e.contentURL||k.href,p=e.accessModeHandler,f&&n&&t&&l?(h(),m=new f.Partner(n,t),_=function(n){var t,r,i,a,o,s,e=n["vf"],e=e&&e.map(function(e){var n=e["url"],t=e["vd"],e=e["p"]||"";return new f.VerificationScriptResource(n,t,e,p&&p(n,t,e)||"full")});return e&&e.length?((e=new f.Context(m,e,d)).setServiceWindow(c),"VIDEO"===l.tagName?e.setVideoElement(l):e.setVideoElement(l.getElementsByTagName("video")[0]||l),t=new f.AdSession(e),r=!1,i=[],t.setCreativeType("video"),t.setImpressionType("beginToRender"),t.isSupported()?(s=[,function(){a.loaded(new f.VastProperties(n["sk"],n["so"],n["ap"],n["po"]))},function(){o.start(n["d"],n["v"]/100)},function(){a.impressionOccurred()},function(){o.firstQuartile()},function(){o.midpoint()},function(){o.thirdQuartile()},function(){o.complete()},function(){o.pause()},function(){o.resume()},function(){o.bufferStart()},function(){o.bufferFinish()},function(){o.skipped()},function(){o.adUserInteraction("click")},function(e){n["v"]=e,o.volumeChange(e/100)},function(){o.playerStateChange("fullscreen")},function(){o.playerStateChange("normal")},function(){t.finish()}],t.registerSessionObserver(function(e){switch(e.type){case"sessionStart":var n;for(a=new f.AdEvents(t),o=new f.MediaEvents(t),r=!0;n=i.shift();)u(n[0],n[1]);break;case"sessionError":an("OMID ad session error")}}),t.start(),u):(an("OMID ad session unsupported"),null)):null;function u(e,n){var t;r?(t=s[e])&&t(n):i.push([e,n])}},u=!0):Tn("Missing OM SDK library or parameters"))},stopOmidSessionClient:h},[e])}),Sn.omidPartnerName=Hn.omidPartnerName,Sn.omidPartnerVersion=Hn.omidPartnerVersion,"unsupportedDataList"),yc="maxCtPlayheadInterval",Sc="maxAdPlayheadInterval",Ic={};function Ac(){if(!Du){var e=Ks[2];if(rn(e))try{e()}catch(e){on(e,"onPageUnload")}nn.keys(_n).forEach(function(e){_n[e].publicContext.destroy()}),Js(!0),Du=!0}}nr=[Vt="videojs","Video.js Player",nr=function(o,s,e){if(!o)return"Invalid player";var u,c,n,r,e=e.videojsClass||Ze.videojs;function l(e,n,t){s.addListener(e,n,t,"on","off")}function d(e){e&&s.removeListeners(e)}e&&s.setData([[oa,e.VERSION]]);var p,e=y(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();function i(){var e=y(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();return e&&e.getCurrentSession()}function a(e){var n=i();return n&&n.sendMessage(te,e)}function f(){var e;s.isIdle()||(n&&(e=n.getInstance().getCastState(),s.setData([[Qi,"CONNECTED"==e]])),0!==o.duration()&&s.setData([[la,o.duration()==1/0?"Live":"VOD"]]),s.isInAds())||(e=o.currentTime(),null!=p&&s.setData([[Rr,e+p]]),s.setData([[pn,e],[Or,o.playbackRate()],[Da,o.currentWidth()],[Ra,o.currentHeight()],[Mr,o.contentEl()],[ra,o.loop()],[ia,o.muted()],[ai,100*o.volume()],[ua,o.readyState()],[tr,o.buffered()],[ta,o.isFullscreen()],[Ji,o.autoplay()]]))}function m(e){e&&s.setData([[Aa,e.id],[Pa,e.name],[Ta,e.description]])}function _(){var e,n=o.audioTracks();if(n)for(var t,r=0;r<n.length;r++)if((t=n[r]).enabled){e=t;break}s.setData([[ir,e?e.label||e.language:null]])}function h(){var e,n,t,r=o.textTracks();if(r)for(var i,a=0;a<r.length;a++)"segment-metadata"==(i=r[a]).label?n=i:"metadata"===i.kind?t=i:"showing"==i.mode&&(e=i);s.setData([[da,!!e],[ar,e?e.label||e.language:null]]),u!=n&&(d(u),u=n)&&l(u,"cuechange",function(){var e,n,t,r,i=y(u.activeCues,[0,"value"]);i&&(n=(e=i.resolution||{}).height,t=i.start,r=i.programDateTime,s.setData([[kr,i.bandwidth/1e3],[Lr,e.width],[Nr,n],[Pr,null!=n?n+"p":null]]),null!=t)&&r&&(p=r/1e3-t)}),c!=t&&(d(c),c=t)&&l(c,"cuechange",function(){var e=c.activeCues;if(e)for(var n,t,r=0;r<e.length;r++)(t=(n=e[r]).value)&&s.updateTimedMetadata("ID3",n.startTime,n.endTime,t.key,t.data)})}function t(){f(),s.setState(4)}function v(){f(),s.setState(6)}function E(){s.setData([[Oa,o.duration()]])}function g(e){F(function(){s.unstash(["ended","pause"])},e)}us&&(o.cmcd&&o.cmcd({sid:s.reqCtSID(),cid:"-",useHeaders:!1}),l(o,"xhr-hooks-ready",function(){function e(e){var r,n,i,t=e.uri;return t&&(n=Vn(t,"CMCD"),i={},n&&n.split(",").forEach(function(e){var e=e.split("="),n=e[0],t=fn[n];t&&(i[n]=t[1][1](e[1]))}),delete(n=i).cid,r=s.reqTracer(t,n),e.uri=cs?r.urlBase:r.url(),e.beforeSend=function(n){var t;n.addEventListener("readystatechange",function(){var e=n.readyState;1==e?r.start():2==e?(r.status(n.status),r.resp()):4==e&&r.end()}),cs&&(t=r.headers(),nn.keys(t).forEach(function(e){n.setRequestHeader(e,t[e])}))}),e}F(function(){s.addListener(y(o.tech(),["vhs","xhr"]),"-",e,"onRequest","offRequest")},0)})),s.addListener(e,y(Ze.cast,["framework","CastContextEventType","CAST_STATE_CHANGED"]),function(e){var t,e="CONNECTED"==e.castState;e&&(t=i(),s.addListener(t,"mediasession",function(e){var n=y(e,["mediaSession"]);s.removeListeners(r,"-"),r=n,s.addListener(n,"-",function(){switch(n.playerState){case"PLAYING":s.setState(3);break;case"PAUSED":s.setState(4);break;case"BUFFERING":s.isIdle()&&(s.setState(1),s.initCastTransfer(a)),s.setState(2);break;case"IDLE":"FINISHED"==y(n,["idleReason"])&&s.setState(6)}},"addUpdateListener","removeUpdateListener"),s.removeListeners(null,te),s.addListener(t,te,function(e,n){s.handleCastMessage(ln(n),a)},"addMessageListener","removeMessageListener"),s.initCastTransfer(a)})),s.setData([[Qi,e]])}),s.onTimer(function(){f()}),l(o,"play",function(){var e,n,t=o.src();s.isIdle()||s.matchCtSource(t)||s.reset(),s.isIdle()&&(s.reset(),s.setData([[ca,(n=t,e=(e=(e=null)&&Jo[e])||(n=(n=(n=n)&&/\.(\w+)($|\?)/.exec(n))&&n[1])&&Qo[n.toLowerCase()])],[Na,t],[Oa,o.duration()],[ea,o.muted()],[na,o.playbackRate()],[sa,o.preload()],[Zi,o.controls()]]),p=null,m(o.mediainfo),f(),_(),h(),s.setState(1),s.setState(2))}),l(o,"waiting",function(){f(),s.setState(2)}),l(o,"playing",function(){f(),s.isAdIdle()&&s.setState(17),s.setState(3)}),l(o,"pause",function(){s.stash("pause",t),g(0)}),l(o,"seeking",function(){s.setState(5)}),l(o,"seeked",function(){f(),s.setState(o.paused()?4:3)}),l(o,"ended",function(){s.stash("ended",v),g(0)}),l(o,"error",function(){var e,n=o.error();n&&(e=[[Li,n.code],[wi,n.message]]),f(),s.setState(8,e)}),l(o,"durationchange",E),l(o,"ratechange",function(){s.setData([[Or,o.playbackRate()]])}),l(o,"loadedmetadata",function(){n=y(Ze,["cast","framework","CastContext"]),m(o.mediainfo),E(),_(),h(),["change","addtrack","removetrack"].forEach(function(e){l(o.audioTracks(),e,_),l(o.textTracks(),e,h)})}),dn(o.ima3)&&(l(o,"ima3-ready",function(){s.attachImaAdsLoader(y(o.ima3,["adsLoader"]))}),l(o,"ima3-ads-manager-loaded",function(){s.attachImaAdsManager(y(o.ima3,["adsManager"]))}))},Mu,Ru],Cu=Cu||nr,Ic[Vt]=nr;var Tc=!0;function Oc(t){if(!Nu){if(!(en.ci||Vn(Z,ne)||t&&t[ne]))return!1;t&&(Z=Un(Z,function(n){nn.keys(t).forEach(function(e){n.set(e,t[e])})}),pe()),Tc&&(Tc=!1,pu(St,sn()));var e=Vn(Z,"env");en.cf="staging"===e||"dev"===e||"sandbox"===e?e:"",en.ci=Vn(Z,ne)||en.ci,en.om=null,h([[ci,en.ci]]),iu(),Nu=!0}return!0}function bc(e){e()}function Cc(e,n,t){dn(t)||(null!=t&&an("Invalid contextOptions",t),t={});var r,i,a,o,s=t[_u];return s&&s!==gu[1]?s===gu[Eu]?(i=(r=Ou()).publicContext,a=t[vu],r.name=t[hu],null!=a&&i.setMetadata(a),r.fireEvent(yt,sn()),i):(Tn(a="Unknown context type: "+s),n?En.reject(a):(o=a,{getError:function(){return o}})):ku(e,n,t)}p(Ze,"addEventListener",["pagehide",Ac]),"Safari"==Ps&&p(Ze,"addEventListener",["beforeunload",function(e){F(function(){e.defaultPrevented||e.returnValue||Ac()},0)}]),On("Datazoom SDK "+en.sv+" ("+en.cn+") DDv3"),V(function(){yu.length?yu.forEach(bc):sn()},en.ti),nn.assign(Sn,{init:Oc,setLogLevel:de,createContext:function(e,n){return Cc(e,null,n)},createBaseContext:function(e){return(e=dn(e)?Rn(e):{})[_u]=gu[Eu],Cc(null,null,e)},createContextAndTarget:function(e){for(var n=[],t=1;t<arguments.length;t++)n.push(arguments[t]);return Cc(null,n,e)},createCollectorProxy:function(e,n,t){return e&&e!==gu[1]?(Tn("Unsupported context type: "+e),null):Lu(n,t)},adapterIDs:function(){return nn.keys(Ic)},contexts:function(){return nn.keys(_n).map(function(e){return _n[e].publicContext})},playerContexts:function(){return nn.keys(_n).filter(function(e){return 1==_n[e].type}).map(function(e){return _n[e].publicContext})},setMetadata:function(e){return!(null!=e&&!dn(e)||(fu(ys=ln(cn(e)),h),m(f,ve,ys),0))},getMetadata:function(){return ln(cn(ys))},generateEvent:function(e,n,t){t=!t&&nn.keys(_n)[0];t?_n[t].publicContext.generateEvent(e,n):pu({ap:st,nm:z+e,on:Uo},sn(),null,n)},on:function(e,n){Ks[e]=n},appSessionID:function(){return Is},generateUUID(){return un()},sdkEvent:{APP_SESSION_START:zs,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:Ko,PROMO:"promo"},overridableMetadata:jo,name:en.cn,version:en.sv,dictionaryVersion:3}),Mc||F(Oc,en.kd)})("object"==typeof globalThis?globalThis:window,{},(s={},function(){function e(n,r){var u=u||{},i=(u.scope={},u.createTemplateTagFirstArg=function(e){return e.raw=e},u.createTemplateTagFirstArgWithRaw=function(e,n){return e.raw=n,e},u.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}},u.arrayIterator=function(e){return{next:u.arrayIteratorImpl(e)}},u.makeIterator=function(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.call(e);if("number"==typeof e.length)return u.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t},u.arrayFromIterable=function(e){return e instanceof Array?e:u.arrayFromIterator(u.makeIterator(e))},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.objectCreate=u.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(e){function n(){}return n.prototype=e,new n},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,n,t){return e!=Array.prototype&&e!=Object.prototype&&(e[n]=t.value),e},u.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof ie&&ie];for(var n=0;n<e.length;++n){var t=e[n];if(t&&t.Math==Math)return t}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$",u.polyfill=function(e,n,t,r){n&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(e,n,t,r):u.polyfillUnisolated(e,n,t,r))},u.polyfillUnisolated=function(e,n,t,r){for(t=u.global,e=e.split("."),r=0;r<e.length-1;r++){var i=e[r];if(!(i in t))return;t=t[i]}(n=n(r=t[e=e[e.length-1]]))!=r&&null!=n&&u.defineProperty(t,e,{configurable:!0,writable:!0,value:n})},u.polyfillIsolated=function(e,n,t,r){var i=e.split(".");e=1===i.length,r=i[0],r=!e&&r in u.polyfills?u.polyfills:u.global;for(var a=0;a<i.length-1;a++){var o=i[a];if(!(o in r))return;r=r[o]}i=i[i.length-1],null!=(n=n(t=u.IS_SYMBOL_NATIVE&&"es6"===t?r[i]:null))&&(e?u.defineProperty(u.polyfills,i,{configurable:!0,writable:!0,value:n}):n!==t&&(void 0===u.propertyToPolyfillSymbol[i]&&(t=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[i]=u.IS_SYMBOL_NATIVE?u.global.Symbol(i):u.POLYFILL_PREFIX+t+"$"+i),u.defineProperty(r,u.propertyToPolyfillSymbol[i],{configurable:!0,writable:!0,value:n})))},u.getConstructImplementation=function(){var r;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(e,[],function(){}),new e instanceof e?Reflect.construct:(r=Reflect.construct,function(e,n,t){return e=r(e,n),t&&Reflect.setPrototypeOf(e,t.prototype),e})):function(e,n,t){return t=u.objectCreate((t=void 0===t?e:t).prototype||Object.prototype),Function.prototype.apply.call(e,t,n)||t};function e(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var e={};try{return e.__proto__={a:!0},e.a}catch(e){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(e,n){if(e.__proto__=n,e.__proto__!==n)throw new TypeError(e+" is not extensible");return e}:null,u.inherits=function(e,n){if(e.prototype=u.objectCreate(n.prototype),e.prototype.constructor=e,u.setPrototypeOf){var t=u.setPrototypeOf;t(e,n)}else for(t in n){var r;"prototype"!=t&&(Object.defineProperties?(r=Object.getOwnPropertyDescriptor(n,t))&&Object.defineProperty(e,t,r):e[t]=n[t])}e.superClass_=n.prototype},u.getRestArguments=function(){for(var e=Number(this),n=[],t=e;t<arguments.length;t++)n[t-e]=arguments[t];return n},u.polyfill("Reflect",function(e){return e||{}},"es6","es3"),u.polyfill("Reflect.construct",function(e){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(e){var t;return e||(u.setPrototypeOf?(t=u.setPrototypeOf,function(e,n){try{return t(e,n),!0}catch(e){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(e){var n,t,r,i;return e||((n=function(e,n){this.$jscomp$symbol$id_=e,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:n})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",r=0,i=function(e){if(this instanceof i)throw new TypeError("Symbol is not a constructor");return new n(t+(e||"")+"_"+r++,e)})},"es6","es3"),u.polyfill("Symbol.iterator",function(e){if(!e){e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<n.length;t++){var r=u.global[n[t]];"function"==typeof r&&"function"!=typeof r.prototype[e]&&u.defineProperty(r.prototype,e,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return e},"es6","es3"),u.iteratorPrototype=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e},u.iteratorFromArray=function(n,t){n instanceof String&&(n+="");var r=0,i=!1,e={next:function(){var e;return!i&&r<n.length?(e=r++,{value:t(e,n[e]),done:!1}):{done:i=!0,value:void 0}}};return e[Symbol.iterator]=function(){return e},e},u.polyfill("Array.prototype.keys",function(e){return e||function(){return u.iteratorFromArray(this,function(e){return e})}},"es6","es3"),u.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.polyfill("Object.values",function(e){return e||function(e){var n,t=[];for(n in e)u.owns(e,n)&&t.push(e[n]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var r={},i=Object.create(new u.global.Proxy(r,{get:function(e,n,t){return e==r&&"q"==n&&t==i}}));return!0===i.q}catch(e){return!1}},u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,u.ES6_CONFORMANCE=u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&u.checkEs6ConformanceViaProxy(),u.polyfill("WeakMap",function(r){function t(){}function i(e){var n=typeof e;return"object"==n&&null!==e||"function"==n}function a(e){var n;u.owns(e,o)||(n=new t,u.defineProperty(e,o,{value:n}))}function e(e){var n;u.ISOLATE_POLYFILLS||(n=Object[e])&&(Object[e]=function(e){return e instanceof t?e:(Object.isExtensible(e)&&a(e),n(e))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if((()=>{if(r&&Object.seal)try{var e=Object.seal({}),n=Object.seal({}),t=new r([[e,2],[n,3]]);return 2==t.get(e)&&3==t.get(n)?(t.delete(e),t.set(n,4),!t.has(e)&&4==t.get(n)):void 0}catch(e){}})())return r;function n(e){if(this.id_=(s+=Math.random()+1).toString(),e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var o="$jscomp_hidden_"+Math.random(),s=(e("freeze"),e("preventExtensions"),e("seal"),0);return n.prototype.set=function(e,n){if(!i(e))throw Error("Invalid WeakMap key");if(a(e),u.owns(e,o))return e[o][this.id_]=n,this;throw Error("WeakMap key fail: "+e)},n.prototype.get=function(e){return i(e)&&u.owns(e,o)?e[o][this.id_]:void 0},n.prototype.has=function(e){return i(e)&&u.owns(e,o)&&u.owns(e[o],this.id_)},n.prototype.delete=function(e){return!!(i(e)&&u.owns(e,o)&&u.owns(e[o],this.id_))&&delete e[o][this.id_]},n},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(i){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if((()=>{if(!u.ASSUME_NO_NATIVE_MAP&&i&&"function"==typeof i&&i.prototype.entries&&"function"==typeof Object.seal)try{var e,n,t=Object.seal({x:4}),r=new i(u.makeIterator([[t,"s"]]));return"s"!=r.get(t)||1!=r.size||r.get({x:4})||r.set({x:4},"t")!=r||2!=r.size?void 0:(n=(e=r.entries()).next()).done||n.value[0]!=t||"s"!=n.value[1]?void 0:!((n=e.next()).done||4!=n.value[0].x||"t"!=n.value[1]||!e.next().done)}catch(e){}})())return i;function e(e){if(this.data_={},this.head_=t(),this.size=0,e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var a=new WeakMap,r=(e.prototype.set=function(e,n){var t=r(this,e=0===e?0:e);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=n:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:e,value:n},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},e.prototype.delete=function(e){return!(!(e=r(this,e)).entry||!e.list||(e.list.splice(e.index,1),e.list.length||delete this.data_[e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,0))},e.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},e.prototype.has=function(e){return!!r(this,e).entry},e.prototype.get=function(e){return(e=r(this,e).entry)&&e.value},e.prototype.entries=function(){return n(this,function(e){return[e.key,e.value]})},e.prototype.keys=function(){return n(this,function(e){return e.key})},e.prototype.values=function(){return n(this,function(e){return e.value})},e.prototype.forEach=function(e,n){for(var t,r=this.entries();!(t=r.next()).done;)e.call(n,(t=t.value)[1],t[0],this)},e.prototype[Symbol.iterator]=e.prototype.entries,function(e,n){var t=n&&typeof n,r=("object"==t||"function"==t?a.has(n)?t=a.get(n):(t=""+ ++o,a.set(n,t)):t="p_"+n,e.data_[t]);if(r&&u.owns(e.data_,t))for(e=0;e<r.length;e++){var i=r[e];if(n!=n&&i.key!=i.key||n===i.key)return{id:t,list:r,index:e,entry:i}}return{id:t,list:r,index:-1,entry:void 0}}),n=function(e,n){var t=e.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=e.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:n(t)};t=null}return{done:!0,value:void 0}})},t=function(){var e={};return e.previous=e.next=e.head=e},o=0;return e},"es6","es3"),{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction",STATE_CHANGE:"stateChange"},MediaEventType:{LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},SupportedFeatures:{CONTAINER:"clid",VIDEO:"vlid"},VideoPosition:{PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},VideoPlayerState:{MINIMIZED:"minimized",COLLAPSED:"collapsed",NORMAL:"normal",EXPANDED:"expanded",FULLSCREEN:"fullscreen"},NativeViewKeys:{X:"x",LEFT:"left",Y:"y",TOP:"top",WIDTH:"width",HEIGHT:"height",AD_SESSION_ID:"adSessionId",IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",CLIPS_TO_BOUNDS:"clipsToBounds",CHILD_VIEWS:"childViews",END_X:"endX",END_Y:"endY",OBSTRUCTIONS:"obstructions",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),t="omid_message_guid",a="omid_message_method",o="omid_message_version",s="omid_message_args",c=function(e,n,t,r){this.guid=e,this.method=n,this.version=t,this.args=r},l=(c.isValidSerializedMessage=function(e){return!!e&&void 0!==e[t]&&void 0!==e[a]&&void 0!==e[o]&&"string"==typeof e[t]&&"string"==typeof e[a]&&"string"==typeof e[o]&&(void 0===e[s]||void 0!==e[s])},c.deserialize=function(e){return new c(e[t],e[a],e[o],e[s])},c.prototype.serialize=function(){var e={};return e[t]=this.guid,e[a]=this.method,e[o]=this.version,void 0!==this.args&&(e[s]=this.args),e},function(e){this.to=e,this.communicationType_=i.CommunicationType.NONE});function d(e,n){if(!n)throw Error("Value for "+e+" is undefined, null or blank.");if("string"!=typeof n&&!(n instanceof String))throw Error("Value for "+e+" is not a string.");if(""===n.trim())throw Error("Value for "+e+" is empty string.")}function p(e,n){if(null==n)throw Error("Value for "+e+" is undefined or null")}function f(e,n){if(null==n)throw Error(e+" must not be null or undefined.");if("number"!=typeof n||isNaN(n))throw Error("Value for "+e+" is not a number")}function m(e,n,t,r){if(f(e,n),n<t||r<n)throw Error("Value for "+e+" is outside the range ["+t+","+r+"]")}function U(e,n){return e&&(e[n]||(e[n]={}))}function e(e,n,t){(t=void 0===t?void 0===r?null:r:t)&&((e=e.split(".")).slice(0,e.length-1).reduce(U,t)[e[e.length-1]]=n)}function _(e,n,t,r){r=void 0===r?i.AccessMode.FULL:r,d("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=n,this.verificationParameters=t,this.accessMode=r}function h(e,n,t,r){t=void 0===t?null:t,r=void 0===r?null:r,p("Context.partner",e),this.partner=e,this.verificationScriptResources=n,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=r,this.underEvaluation=!1,this.serviceWindow=null}l.prototype.sendMessage=function(e,n){},l.prototype.handleMessage=function(e,n){this.onMessage&&this.onMessage(e,n)},l.prototype.serialize=function(e){return JSON.stringify(e)},l.prototype.deserialize=function(e){return JSON.parse(e)},l.prototype.isDirectCommunication=function(){return this.communicationType_===i.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},e("OmidSessionClient.Partner",function(e,n){d("Partner.name",e),d("Partner.version",n),this.name=e,this.version=n}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},e("OmidSessionClient.VerificationScriptResource",_),h.prototype.setVideoElement=function(e){p("Context.videoElement",e),this.videoElement=e},h.prototype.setSlotElement=function(e){p("Context.slotElement",e),this.slotElement=e},h.prototype.setServiceWindow=function(e){p("Context.serviceWindow",e),this.serviceWindow=e},e("OmidSessionClient.Context",h);var v={},E=(v.omidGlobal=(()=>{if(void 0!==n&&n)return n;if(void 0!==ie&&ie)return ie;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var e=Function("return this")();if(e)return e;throw Error("Could not determine global object context.")})(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),g={sessionError:"reportError"},x=Object.keys(i.MediaEventType).map(function(e){return i.MediaEventType[e]}),V=["impressionOccurred"],y=function(e){e=void 0===e?v.omidGlobal:e,this.interfaceRoot_=e[E.ROOT]};function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return e=("y"===e?3&n|8:n).toString(16)})}function I(){var e=u.getRestArguments.apply(0,arguments);F(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(e))))},function(){console.error.apply(console,u.arrayFromIterable(e))})}function F(e,n){"undefined"!=typeof jasmine&&jasmine?e():"undefined"!=typeof console&&console&&console.error&&n()}y.prototype.isSupported=function(){return null!=this.interfaceRoot_},y.prototype.sendMessage=function(e,n,t){if("registerSessionObserver"==e&&(t=[n]),n=this.interfaceRoot_,0<=V.indexOf(e=g[e]?g[e]:e)&&(n=n[E.AD_EVENTS]),!(n=(n=0<=x.indexOf(e)?n[E.MEDIA_EVENTS]:n)[e]))throw Error("Unrecognized method name: "+e+".");n.apply(null,u.arrayFromIterable(t))};var A="1.5.0-iab4484",W=3;function T(e){return/\d+\.\d+\.\d+(-.*)?/.test(e)}function O(e,n){e=e.split("-")[0].split("."),n=n.split("-")[0].split(".");for(var t=0;t<W;t++){var r=parseInt(e[t],10),i=parseInt(n[t],10);if(i<r)break;if(r<i)return!1}return!0}var b="1.0.3";function j(e,n){return T(e)&&O(e,b)?n:JSON.stringify(n)}function B(e,n){return T(e)&&O(e,b)?n||[]:n&&"string"==typeof n?JSON.parse(n):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function G(e){return $(e,H.SESSION_SERVICE)}function $(e,n){return n+e}function C(e){return null!=e&&void 0!==e.top&&null!=e.top}function M(e){var n;if(e!==v.omidGlobal)try{if(void 0===e.location.hostname)return!0;""!==(n=e).x&&n.x}catch(e){return!0}return!1}function Y(e){return C(e=void 0===e&&"undefined"!=typeof window&&window?window:e)?e:v.omidGlobal}function q(e){return C(e)?e.top:v.omidGlobal}var R=function(e){l.call(this,e),this.communicationType_=i.CommunicationType.DIRECT,this.handleExportedMessage=R.prototype.handleExportedMessage.bind(this)},D=(u.inherits(R,l),R.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.handleExportedMessage(e.serialize(),this)},R.prototype.handleExportedMessage=function(e,n){c.isValidSerializedMessage(e)&&this.handleMessage(c.deserialize(e),n)},R.prototype.isCrossOrigin=function(){return!1},function(e,n){n=void 0===n?v.omidGlobal:n,l.call(this,n);var t=this;this.communicationType_=i.CommunicationType.POST_MESSAGE,e.addEventListener("message",function(e){var n;"object"==typeof e.data&&(n=e.data,c.isValidSerializedMessage(n))&&(n=c.deserialize(n),e.source)&&t.handleMessage(n,e.source)})}),N=(u.inherits(D,l),D.isCompatibleContext=function(e){return!!(e&&e.addEventListener&&e.postMessage)},D.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.postMessage(e.serialize(),"*")},D.prototype.isCrossOrigin=function(){return!this.to||M(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(e){var n={};return n[i.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,n[i.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,n[e]}});function z(e,n){try{return e.frames&&!!e.frames[n]}catch(e){return!1}}function K(e,n){e.document.write('<iframe style="display:none" id="'+n+'" name="'+n+'" sandbox></iframe>')}N.isOmidPresent=function(n){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return z(n,e)})},N.getOmidEnvironment=function(e){for(var n=u.makeIterator(Object.values(i.Environment)),t=n.next();!t.done;t=n.next()){t=t.value;if(z(e,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(n,e){n.frames&&n.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return!!n.frames[e]})&&(null==n.document.body&&N.isMutationObserverAvailable_(n)?N.registerMutationObserver_(n,e):(e=N.getEnvironmentIframeName(e),n.document.body?(N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e)):(K(n,N.OMID_PRESENT_FRAME_NAME),K(n,e))))},N.appendPresenceIframe_=function(e,n){var t=e.document.createElement("iframe");t.id=n,t.name=n,t.style.display="none",t.sandbox="",e.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(e){return"MutationObserver"in e},N.registerMutationObserver_=function(n,t){var r=new MutationObserver(function(e){e.forEach(function(e){"BODY"===e.addedNodes[0].nodeName&&(e=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e),r.disconnect())})});r.observe(n.document.documentElement,{childList:!0})};var X=["omid","v1_SessionServiceCommunication"];function J(e,n){return n.reduce(function(e,n){return e&&e[n]},e)}function Q(e,n,t,r){for(var i=(n=u.makeIterator(n)).next();!i.done;i=n.next())if(i=((e,n,t,r)=>{if(!M(n))try{var i=J(n,t);if(i)return new R(i)}catch(e){}return r(n)?new D(e,n):null})(e,i.value,t,r))return i;return null}function Z(e,n,t){t=void 0===t?N.isOmidPresent:t;var r=[e,q(e)];return n&&r.unshift(n),Q(e,r,X,t)}function P(e,n,t){p("AdSession.context",e),this.adSessionId_=S(),this.context_=e,this.impressionOccurred_=!1;var r=this.context_.serviceWindow||void 0;this.communication_=n||Z(Y(),r),this.sessionInterface_=t||new y,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(e.verificationScriptResources),this.sendSlotElement_(e.slotElement),this.sendVideoElement_(e.videoElement),this.sendContentUrl_(e.contentUrl),this.watchSessionEvents_()}function ee(e,n,t,r){this.isSkippable=e,this.skipOffset=n,this.isAutoPlay=t,this.position=r}function k(e){p("AdEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerAdEvents(),this.adSession=e}catch(e){throw Error("AdSession already has an ad events instance registered")}}function L(e){p("MediaEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerMediaEvents(),this.adSession=e}catch(e){throw Error("AdSession already has a media events instance registered")}}function ne(t){var e=Y();new D(e).onMessage=function(e,n){e.method===i.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(n)}}P.prototype.getAdSessionId=function(){return this.adSessionId_},P.prototype.setCreativeType=function(e){if(e===i.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+i.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==i.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",e,this.adSessionId_),this.creativeType_=e},P.prototype.setImpressionType=function(e){if(e===i.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+i.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==i.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",e,this.adSessionId_),this.impressionType_=e},P.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},P.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},P.prototype.registerSessionObserver=function(e){this.sendMessage("registerSessionObserver",e,this.adSessionId_)},P.prototype.start=function(){this.sendOneWayMessage("startSession",{customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation},this.adSessionId_)},P.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},P.prototype.error=function(e,n){this.sendOneWayMessage("sessionError",e,n,this.adSessionId_)},P.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},P.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},P.prototype.sendOneWayMessage=function(e){var n=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[e,null].concat(u.arrayFromIterable(n)))},P.prototype.sendMessage=function(e,n){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(e,n,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(e,n,t)},P.prototype.sendInternalMessage_=function(e,n,t){var r=S();n&&(this.callbackMap_[r]=n),e=new c(r,G(e),A,j(A,t)),this.communication_.sendMessage(e)},P.prototype.handleInternalMessage_=function(e,n){n=e.method;var t,r=e.guid;e=e.args,"response"===n&&this.callbackMap_[r]&&(t=B(A,e),this.callbackMap_[r].apply(this,t)),"error"===n&&window.console&&I(e)},P.prototype.sendInterfaceMessage_=function(e,n,t){try{this.sessionInterface_.sendMessage(e,n,t)}catch(e){I("Failed to communicate with SessionInterface with error:"),I(e)}},P.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},P.prototype.impressionOccurred=function(){if(this.creativeType_===i.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===i.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},P.prototype.creativeLoaded=function(){if(this.creativeType_===i.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===i.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},P.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",A,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},P.prototype.injectVerificationScripts_=function(e){e&&(e=e.map(function(e){return e.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",e,this.adSessionId_))},P.prototype.sendSlotElement_=function(e){this.sendElement_(e,"setSlotElement")},P.prototype.sendVideoElement_=function(e){this.sendElement_(e,"setVideoElement")},P.prototype.sendElement_=function(e,n){e&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(n,e,this.adSessionId_):this.error(i.ErrorType.GENERIC,"Session Client "+n+" called when communication is cross-origin"))},P.prototype.sendContentUrl_=function(e){e&&this.sendOneWayMessage("setContentUrl",e,this.adSessionId_)},P.prototype.setElementBounds=function(e){p("AdSession.elementBounds",e),this.sendOneWayMessage("setElementBounds",e,this.adSessionId_)},P.prototype.watchSessionEvents_=function(){var n=this;this.registerSessionObserver(function(e){e.type===i.AdEventType.SESSION_START&&(n.isSessionRunning_=!0,n.creativeType_=e.data.creativeType,n.impressionType_=e.data.impressionType),e.type===i.AdEventType.SESSION_FINISH&&(n.isSessionRunning_=!1)})},e("OmidSessionClient.AdSession",P),ee.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},k.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},k.prototype.loaded=function(e){e=void 0===e?null:e,this.adSession.creativeLoaded(),e=e?e.toJSON():null,this.adSession.sendOneWayMessage("loaded",e,this.adSessionId_)},e("OmidSessionClient.AdEvents",k),L.prototype.start=function(e,n){f("MediaEvents.start.duration",e),m("MediaEvents.start.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("start",e,n,this.adSessionId_)},L.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},L.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},L.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},L.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},L.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},L.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},L.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},L.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},L.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},L.prototype.volumeChange=function(e){m("MediaEvents.volumeChange.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("volumeChange",e,this.adSessionId_)},L.prototype.playerStateChange=function(e){p("MediaEvents.playerStateChange.playerState",e),this.adSession.sendOneWayMessage("playerStateChange",e,this.adSessionId_)},L.prototype.adUserInteraction=function(e){p("MediaEvents.adUserInteraction.interactionType",e),this.adSession.sendOneWayMessage("adUserInteraction",e,this.adSessionId_)},e("OmidSessionClient.MediaEvents",L),e("OmidSessionClient.OmidVersion",function(e,n){d("OmidVersion.semanticVersion",e),d("OmidVersion.apiLevel",n)}),e("OmidSessionClient.listenForServiceWindow",ne),e("OmidSessionClient.VastProperties",ee);var w={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9}};function te(e){for(var n=u.makeIterator(re.keys()),t=n.next();!t.done;t=n.next())for(var t=t.value,r=u.makeIterator(re.get(t)),i=r.next();!i.done;i=r.next())if(i.value.test(e))return t;return w.VerificationVendorId.OTHER}var re=new Map([[w.VerificationVendorId.MOAT,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.moatads\.com\/.*$/]],[w.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[w.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[w.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[w.VerificationVendorId.NIELSEN,[]],[w.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[w.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[w.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]]]);e("OmidSessionClient.verificationVendorIdForScriptUrl",te),e("OmidSessionClient.VerificationVendorId",w.VerificationVendorId),w.verificationVendorIdForScriptUrl=te}var ie="object"==typeof globalThis?globalThis:window,n={},t=void 0===ie?this:ie;if("object"==typeof(i=void 0===n?void 0:n)&&"string"!=typeof i.nodeName)e(t,i);else{var r,i={},a=["1.5.0-iab4484"],o="default";for(r in a.push(o),e(t,i),i)i.hasOwnProperty(r)&&(null==Object.getOwnPropertyDescriptor(t,r)&&Object.defineProperty(t,r,{value:{}}),a.forEach(function(e){var n;null==Object.getOwnPropertyDescriptor(t[r],e)&&(n=function e(n){for(var t in n)n.hasOwnProperty(t)&&(n[t]=e(n[t]));return Object.freeze(n)}(i[r]),Object.defineProperty(t[r],e,{get:function(){return n},enumerable:!0}))}))}s.OmidSessionClient=n.OmidSessionClient}(),t={},e=self,n=function(){{var O,b,C,M,R={d:function(e,n){for(var t in n)R.o(n,t)&&!R.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},D={};R.d(D,{default:function(){return T}});let o=1,t=2,r=4,i="[MT] ",s=((O={})[O.NONE=0]="NONE",O[O.ERROR=1]="ERROR",O[O.WARNING=2]="WARNING",O[O.INFO=3]="INFO",O[O.DEBUG=4]="DEBUG",O),a=t;function N(e,n,t,r){a>=e&&(t=i+t,void 0===r?n.call(console,t):n.call(console,t,r))}let u=console.error,p=console.warn,f=console.debug;function P(e,n){N(o,u,e,n)}function be(e,n){N(t,p,e,n)}function Ce(e,n){N(r,f,e,n)}function k(e){return("object"==typeof globalThis?globalThis:window)?.[e]}function L(e){if(e){if(Array.isArray(e))return e.slice();if("object"==typeof e)return Object.assign({},e)}return null}function Me(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 Re(i,a,o){let e=a?.length||0;if(0<e){let t=0,r=e-1;for(;t<=r;){let e=Math.ceil((t+r)/2),n=o(i,a[e]);if(0===n)return e;0<n?t=e+1:r=e-1}}return-1}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||be("crypto.getRandomValues() unavailable"),[2,9]),F=10,de=5,W=2,j="ad_start",B="ad_end",H="ad_progress",G="ad_click",$="ad_can_skip",pe="ad_incoming",fe="nonlinear_ad_start",me="nonlinear_ad_end",_e="ad_tracking_info_response",he=0,ve=1,Ee=2,ge=3,ye=4,Se=5,Ie=6,Ae=7,Y=0,q=1,z=2,K=3,X=4,J=5,Q=6,Z=7,ee=8,ne=9,te=10,re=11,ie=12,ae=13,oe=14,_=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],d=null;function De(e){try{return JSON.parse(e)}catch(e){return be("JSON Parse Exception: "+e,e),null}}function U(r,i,n,a,o){let s=new XMLHttpRequest,u=a?.retryHeuristics,c=0,l=!1;function d(){if(!l)try{{var t=s;var e=a;let n=e?.headers;t.open(r,i,!0),t.timeout=e?.timeout??0,n&&Object.keys(n).forEach(e=>{t.setRequestHeader(e,n[e])})}c++,s.send(n),Ce(`XHR (${r} ${i}, #${c}) request sent`,n)}catch(e){be("XHR Exception: "+e,e)}}return s.onreadystatechange=()=>{if(!l&&4===s.readyState){var e=s.status,n=s.responseText;if(Ce(`XHR (${i}) response received, status `+e,n),e<200||299<e){var t=u?u(c,e,n):-1;if(0<=t)return setTimeout(d,t),void be(`XHR (${i}) failed (status ${e}), retry in ${t} ms`,n)}o&&o(n,e,i)}},d(),{abort(){l=!0,s.abort(),Ce(`XHR (${i}) aborted`)}}}function Ne(e,n,t){return U("GET",e,null,n,t)}let se="adData: ";function Pe(e){return e&&"object"==typeof e&&e}function ke(a,e){if(!Pe(a))return null;let[,o]=e,s={},n=o.length;for(let i=0;i<n;i++){let[e,n,t]=o[i],r=t[0](a[e],t);if(null!=r)s[e]=r;else if(!n)return Ce(se+("Missing object field: "+e),a),null}return s}function Le(e){return e&&Array.isArray(e)?e:null}function x(t,e){if(!Le(t))return null;let[,r,i]=e,a=[],o=t.length;for(let n=0;n<o;n++){let e=i[0](t[n],i);null!=e||r?a.push(e):Ce(se+("Invalid array entry at: "+n),t)}return a}function we(e){return"number"==typeof e?e:null}function Ue(e){return"string"==typeof e?e:null}let e=[we],n=[Ue],h=[function(e){return"boolean"==typeof e?e:null}],v=[ke,[["content",!1,n],["type",!1,n]]],E=[ke,[["beaconUrls",!1,[x,!1,n]],["durationInSeconds",!0,e],["eventId",!0,n],["eventProgramDateTime",!0,n],["eventType",!1,n],["startTimeInSeconds",!0,e]]],Te=[ke,[["adId",!0,n],["adParameters",!0,n],["adSystem",!0,n],["adTitle",!0,n],["adVerifications",!0,[x,!1,[ke,[["executableResource",!0,[x,!1,[ke,[["apiFramework",!0,n],["language",!0,n],["type",!0,n],["uri",!0,n]]]]],["javaScriptResource",!0,[x,!1,[ke,[["apiFramework",!0,n],["browserOptional",!0,n],["uri",!0,n]]]]],["trackingEvents",!0,[x,!1,[ke,[["event",!1,n],["uri",!1,n]]]]],["vendor",!0,n],["verificationParameters",!0,n]]]]],["companionAds",!0,[x,!1,[ke,[["adParameters",!0,n],["altText",!0,n],["attributes",!0,[ke,[["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,[ke,[["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]]],Oe=[ke,[["nonLinearAdList",!1,[x,!1,[ke,[["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]]]],ue=new DOMParser,g=/\n|<!\[CDATA\[|\]\]>/g;function xe(e){e=e?.textContent;return null==e?null:e.replace(g,"").trim()}function Ve(e,n,t){t&&(e[n]=t)}function Fe(e,n){for(var t of e.children)n[t.tagName]?.(t)}function We(e){let t=[];return Fe(e,{IconClickFallbackImage:e=>{let n={};t.push(n),Ve(n,"width",e.getAttribute("width")),Ve(n,"height",e.getAttribute("height")),Fe(e,{AltText:e=>{Ve(n,"altText",xe(e))},StaticResource:e=>{Ve(n,"staticResource",xe(e))}})}}),t}(O={})[O.AD_START=j]="AD_START",O[O.AD_END=B]="AD_END",O[O.AD_PROGRESS=H]="AD_PROGRESS",O[O.AD_CLICK=G]="AD_CLICK",O[O.AD_CAN_SKIP=$]="AD_CAN_SKIP",O[O.AD_INCOMING=pe]="AD_INCOMING",O[O.NONLINEAR_AD_START=fe]="NONLINEAR_AD_START",O[O.NONLINEAR_AD_END=me]="NONLINEAR_AD_END",O[O.AD_TRACKING_INFO_RESPONSE=_e]="AD_TRACKING_INFO_RESPONSE";let ce=[],le=(ce[Y]=["impression"],ce[q]=["clickThrough"],ce[z]=["loaded"],ce[K]=["start","creativeView"],ce[X]=["firstQuartile"],ce[J]=["midpoint"],ce[Q]=["thirdQuartile"],ce[Z]=["complete"],ce[ee]=["skip"],ce[ne]=["pause"],ce[te]=["resume"],ce[re]=["mute"],ce[ie]=["unmute"],ce[ae]=["fullscreen","playerExpand"],ce[oe]=["exitFullscreen","playerCollapse"],(b={})[b.START=he]="START",b[b.END=ve]="END",b[b.PAUSE=Ee]="PAUSE",b[b.RESUME=ge]="RESUME",b[b.MUTE=ye]="MUTE",b[b.UNMUTE=Se]="UNMUTE",b[b.FULLSCREEN=Ie]="FULLSCREEN",b[b.EXIT_FULLSCREEN=Ae]="EXIT_FULLSCREEN",[]);function V(i,n,e){let u="adTracking: ",_=(e,n)=>e-n.start,c=(e,n)=>e-n.startDate,a=(e,n)=>e.start-n.start,o={headers:{"Cache-Control":"no-cache, no-store"}},s=e.defaultTrackingRequestInterval||F,U=e.incomingAdCountdownInterval??de,t=e.adTrackingUpdateMode||"pagination",x="playhead"===t,V="pagination"===t,h=[],v=[],l,d=null,p=null,E=null,g=null,f=null,y=null,S=null,I=null,m=null,A=null,T=null,O=null,b=null,C=null,M=0,R=[],D=(()=>{let r=new EventTarget,a=null,i=null,o=-1,s=!1;function u(e,n){r.dispatchEvent(new CustomEvent(e,{detail:n}))}function c(e,n){var t=e.availDuration,r=e.inAvailStartOffset;return{toAdEnd:e.duration-n,toAvailEnd:null!=t&&null!=r?t-r-n:null,toSkipThreshold:0<=o?Math.max(0,o-n):null}}return{addEventListener(e,n,t){r.addEventListener(e,n,t)},removeEventListener(e,n,t){r.removeEventListener(e,n,t)},onTrackingInfoResponse(e){u(_e,{failedAdTrackingInfoRequest:e})},onAdStart(e,n,t){var r,i;a=(i=n,t=t,{adData:Me(r=e),adClickthroughUrl:r.videoClickThrough,targetPlayheadForAdSkip:t+r.duration-i}),o=e.skipOffset,s=!1,u(j,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)})},onAdEnd(e){u(B,{adObject:a}),a=null},onAdProgress(e,n,t){u(H,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)}),!s&&0<=o&&n>=o&&(s=!0,u($,{adObject:a}))},onAdClick(e){u(G,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart(e,n,t){i={adData:Me(e)},u(fe,{nonLinearAdsObject:i,adElapsedTime:n})},onNonLinearAdsEnd(e){u(me,{nonLinearAdsObject:i}),i=null},dispatchEvent:u}})();function N(t,r){let e=R.length;for(let n=0;n<e;n++){let e=R[n];e[t]?.apply(e,r)}}function P(e,n){n=n||d,Ce(u+("Ad tracking event "+le[e]),n),N("onAdTrackingEvent",[n,e])}function k(e,n){!e.startDate&&O&&(e.startDate=n+O);n=l;(l=!!e.startDate)!==n&&Ce(u+("Set adHasStartDate to "+l))}function L(e,n){var r,t=[["tttt",""+Date.now()]];x&&t.push(["aws.playheadPositionInSeconds",""+Math.round(n&&O?n-O:e)]),V&&T&&t.push(["aws.nextToken",T]),m?.abort(),n=(e=>{let n=new URL(i),t=new URLSearchParams(n.search);return e.forEach(e=>{t.append(e[0],e[1])}),n.search="?"+t.toString(),n.toString()})(t),r=(e,n)=>{if(200===n){let f=!1,m=!1;T=((e,u)=>{if(Pe(e)){let t=Ue(e.dashAvailabilityStartTime),n=Le(e.avails),r=(n?.forEach(e=>{if(Pe(e)){Ce(se+`Avail (${e.duration} @ ${e.startTime} / ${e.availProgramDateTime})`,e);let i=we(e.startTimeInSeconds),a=we(e.durationInSeconds),o=Ue(e.availProgramDateTime),s=(o=(o?new Date(o).getTime()/1e3:t?new Date(t).getTime()/1e3+i:0)||0,c(!1,e,i,a,o),Le(e.ads));if(s){let r=s.length;s.forEach((e,n)=>{var t;Pe(e)?null!=(t=we(e.startTimeInSeconds))?(Ce(se+`Ad #${n+1} of ${r} `+`(${e.duration} @ ${e.startTime} / ${e.adProgramDateTime})`,e),u(t,n,r,i,a,o,e,!1,!1)):be(se+"Invalid or missing ad start time",e):be(se+"Invalid ad object",s)})}}else be(se+"Invalid avail object",n)}),Le(e.nonLinearAvails));r?.forEach(e=>{var n;Pe(e)?(Ce(se+`nonLinearAvail (${e.startTime} / ${e.availProgramDateTime})`,e),c(!0,e,n=we(e.startTimeInSeconds),null,e=((e=Ue(e.availProgramDateTime))?new Date(e).getTime()/1e3:t?new Date(t).getTime()/1e3+n:0)||0)):be(se+"Invalid nonLinearAvail object",r)});e=Ue(e.nextToken);return e&&Ce(se+`nextToken "${e}"`),e;function c(e,n,t,r,i){n=Le(n.nonLinearAdsList)?.[0];n&&(Pe(n)?null==t?be(se+"Invalid or missing nonlinear ad start time",n):(Ce(se+"nonLinearAds",n),u(t,0,1,t,r,i,n,!0,e)):be(se+"Invalid nonLinearAds object",n))}}else be(se+"Invalid tracking-info response")})(e,(n,t,r,i,a,o,s,u,c)=>{if(null!=i&&o&&(O=o-i),u){if(Re(n,v,_)<0){u=n,o=o,c=c;let e=(p=ke(l=s,Oe))?(d=p.nonLinearAdList.reduce((e,n)=>Math.max(e,n.durationInSeconds),0))?(Object.assign(p,{start:u,startDate:o,duration:d,nonlinearAvail:c}),Ce(se+`New NonLinearAdsData (${d}s @ ${u}s / ${o}s)`,p),p):(be(se+"Invalid nonlinear ad duration",l),null):(be(se+"Missing required fields for NonLinearAdsData",l),null);e&&(k(e,n),v.push(e),m=!0,N("onNewNonLinearAds",[e]))}}else{let e=Re(n,h,_);if(0<=e)h[e].availAdCount=r;else{let e=((e,n,t,r,i,a)=>{var o=we(a.durationInSeconds);if(null==o||o<=0)return be(se+"Invalid or missing ad duration",a),null;let s=Ue(a.adProgramDateTime);s=s&&new Date(s).getTime()/1e3;var u=Ue(a.skipOffset);let c=u&&new Date(`1970-01-01T${u}Z`).getTime()/1e3,l=(c||0===c||(c=-1),ke(a,Te));return l?(l.extensions?.forEach(e=>{if("AdVerifications"===e.type){var n=e.content;try{var t=ue.parseFromString(n,"application/xml")?.documentElement,r=t?.getElementsByTagName("JavaScriptResource"),i=t?.getElementsByTagName("VerificationParameters"),a=t?.getAttribute("vendor"),o=xe(r?.[0]),s=xe(i?.[0]);a&&o?(l.adVerifications||(l.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):be(se+"Invalid AdVerifications extension content",e)}catch(e){be(se+"Exception parsing AdVerifications extension: "+n,e)}}else if("companion_about_this_ad"===e.type){t="<root>"+e.content+"</root>";try{let e=ue.parseFromString(t,"application/xml")?.documentElement;e&&Fe(e,{Icon:e=>{let n=l.icons||(l.icons=[]),t={};n.push(t),Ve(t,"program",e.getAttribute("program")),Ve(t,"width",e.getAttribute("width")),Ve(t,"height",e.getAttribute("height")),Ve(t,"xPosition",e.getAttribute("xPosition")),Ve(t,"yPosition",e.getAttribute("yPosition")),Fe(e,{StaticResource:e=>{Ve(t,"staticResource",xe(e))},IconClicks:e=>{let n={};t.iconClicks=n,Fe(e,{IconClickThrough:e=>{Ve(n,"iconClickThrough",xe(e))},IconClickFallbackImages:e=>{e=We(e);e.length&&(n.iconClickFallbackImages=e)}})}})}})}catch(e){be(se+"Exception parsing AdChoices extension: "+t,e)}}else if("IconClickFallbackImages"===e.type){r="<root>"+e.content+"</root>";try{let e=ue.parseFromString(r,"application/xml")?.documentElement;e&&Fe(e,{IconClickFallbackImages:e=>{var n={},e=((l.icons||(l.icons=[])).push(n),Ve(n,"program",e.getAttribute("program")),We(e));e.length&&(n.iconClicks={iconClickFallbackImages:e})}})}catch(e){be(se+"Exception parsing AdChoices extension: "+r,e)}}}),Object.assign(l,{start:e,startDate:s||0,duration:o,skipOffset:c,availAdIndex:n,availAdCount:t,availStart:r,availDuration:i,inAvailStartOffset:null!=r?e-r:null,playCount:0}),l.videoClickThrough=null,l.trackingEvents=l.trackingEvents?.filter(e=>"clickThrough"!==e.eventType||((e=e.beaconUrls[0])&&(l.videoClickThrough=e),!1)),Ce(se+`New AdData (${o}s @ ${e}s / ${s})`,l),l):(be(se+"Missing required fields for AdData",a),null)})(n,t,r,i,a,s);e&&(k(e,n),h.push(e),f=!0,N("onNewAd",[e]))}}var l,d,p}),f&&(h.sort(a),p=E=null,g=null),m&&(v.sort(a),y=S=null,I=null),N("onTrackingInfoResponse",[!1])}else be(u+"Request failed, status "+n,e),N("onTrackingInfoResponse",[!0]);m=null},m=Ne(n,o,(e,n,t)=>{200===n&&null!=e&&(e=De(e)),r(e,n)})}function w(e,n,t,r){let i,a,o;var s=r?"startDate":"start",t=((i,a,o)=>{let e=a?.length||0;if(0<e){let t=0,r=e-1;for(;t<r;){let e=Math.ceil((t+r)/2),n=o(i,a[e]);if(0===n)return e;0<n?t=e:r=e-1}if(0<t||0<=o(i,a[t]))return t}return-1})(t,n,r?c:_);return o=0<=t?(i=n[t],a=i[s],t+1<n.length?n[t+1][s]:Number.MAX_VALUE):(i=null,a=Number.MIN_VALUE,n.length?n[0][s]:Number.MAX_VALUE),Ce(u+`Update time range (${a} - ${o}), `+e+" ad index "+t,i),[i,a,o]}function r(e){e&&R.indexOf(e)<0&&R.push(e)}return 0<=s&&L(0),r(D),r((a=>{let o={},i=null;return{onAdLoad(e){i={},e.trackingEvents?.forEach(e=>{i[e.eventType]=e})},onAdEnd(e){i=null},onAdTrackingEvent(t,e){var r=ce[e];if(i&&1===t.playCount&&r){let n=r.length;for(let e=0;e<n;e++)((r,i)=>{var n=i?.beaconUrls;if(n){var t=n.length;for(let e=0;e<t;e++)Ne(n[e],o,(e,n,t)=>{a(r,i,t,n)})}})(t,i[r[e]])}}}})((e,n,t,r)=>{N("onAdBeaconResponse",[e,n,t,r])})),{updateAdTrackingInfo:function(){L(b??0,C),A=b},startUpdatingAdTrackingInfo:function(e){s=e||F,A=null},stopUpdatingAdTrackingInfo:function(){s=-1},onPlayheadUpdate:function(e,n){if(null!=b&&e>b&&e<b+W){0<=s&&!m&&(null==A||Math.abs(e-A)>=s)&&(L(e,n),A=e);var t=(n=l?n:null)||e,r=((null==p||t<p||t>=E)&&([g,p,E]=w("linear",h,t,n)),d),i=t-p;if((d=g&&t<p+g.duration?g:null)===r){if(d&&(Ce(u+"Ad progresses, time => "+i),N("onAdProgress",[d,i,e]),i>M)&&i<M+W){let e=d.duration,n=M/e;var a=(M=i)/e;n<.25&&.25<=a&&P(X),n<.5&&.5<=a&&P(J),n<.75&&.75<=a&&P(Q)}}else r&&(M+W>r.duration&&P(Z,r),Ce(u+"Ad ends",r),N("onAdEnd",[r])),M=0,d&&(d.playCount++,n&&Ce(u+`PDT offset => player ${n-e}, ad `+(d.startDate-d.start),d),Ce(u+"Ad loads",d),N("onAdLoad",[d]),P(z),Ce(u+"Ad starts, time => "+i,d),N("onAdStart",[d,i,e]),P(K),P(Y));if(!d){let e=E-t;e<=U&&D.dispatchEvent(pe,{timeToNextAd:e})}(null==y||t<y||t>=S)&&([I,y,S]=w("nonlinear",v,t,n));a=f,r=t-y;(f=I&&t<y+I.duration?I:null)!==a&&(a&&(Ce(u+"Nonlinear ad ends",a),N("onNonLinearAdsEnd",[a])),f)&&(n&&Ce(u+`PDT offset => player ${n-e}, nonlinear ad `+(f.startDate-f.start),f),Ce(u+"Nonlinear ad starts, time => "+r,f),N("onNonLinearAdsStart",[f,r,e]))}b=e,C=n},onPlaybackRateUpdate:function(e){},onPlaybackEvent:function(e){switch(e){case he:n?.sendPlaybackStart();break;case ve:n?.sendPlaybackEnd()}if(d)switch(e){case Ee:P(ne);break;case ge:P(te);break;case ye:P(re);break;case Se:P(ie);break;case Ie:P(ae);break;case Ae:P(oe)}},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(ee)},addAdObserver:r,removeAdObserver:function(e){e&&0<=(e=R.indexOf(e))&&R.splice(e,1)},getAllAds:function(){return h.map(e=>Me(e))},getAllNonLinearAds:function(){return v.map(e=>Me(e))},addEventListener(e,n,t){D.addEventListener(e,n,t)},removeEventListener(e,n,t){D.removeEventListener(e,n,t)}}}le[Y]="IMPRESSION",le[q]="CLICK_THROUGH",le[z]="LOADED",le[K]="START",le[X]="FIRST_QUARTILE",le[J]="MID_POINT",le[Q]="THIRD_QUARTILE",le[Z]="COMPLETE",le[ee]="SKIP",le[ne]="PAUSE",le[te]="RESUME",le[re]="MUTE",le[ie]="UNMUTE",le[ae]="FULLSCREEN",le[oe]="EXIT_FULLSCREEN",(M={})[M.IMPRESSION=Y]="IMPRESSION",M[M.CLICK_THROUGH=q]="CLICK_THROUGH",M[M.LOADED=z]="LOADED",M[M.START=K]="START",M[M.FIRST_QUARTILE=X]="FIRST_QUARTILE",M[M.MID_POINT=J]="MID_POINT",M[M.THIRD_QUARTILE=Q]="THIRD_QUARTILE",M[M.COMPLETE=Z]="COMPLETE",M[M.SKIP=ee]="SKIP",M[M.PAUSE=ne]="PAUSE",M[M.RESUME=te]="RESUME",M[M.MUTE=re]="MUTE",M[M.UNMUTE=ie]="UNMUTE",M[M.FULLSCREEN=ae]="FULLSCREEN",M[M.EXIT_FULLSCREEN=oe]="EXIT_FULLSCREEN";let I=["overlayAvails","availSuppression","adSignaling","reportingMode"],S=((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 je(i,e,a,o){let s,u=null,c=i.trackingUrl,l=i.sessionInitUrl,d=i.palNonceManager||e,n=d?.getNonce?.()??null,p={getPlaybackUrl:()=>u,getTrackingUrl:()=>c,getPalNonce:()=>n,updateAdTrackingInfo(){s.updateAdTrackingInfo()},startUpdatingAdTrackingInfo(e){s.startUpdatingAdTrackingInfo(e)},stopUpdatingAdTrackingInfo(){s.stopUpdatingAdTrackingInfo()},onPlayheadUpdate(e,n){s.onPlayheadUpdate(e,n)},onPlaybackRateUpdate(e){s.onPlaybackRateUpdate(e)},onPlaybackEvent(e){s.onPlaybackEvent(e)},onVideoClick(e){s.onVideoClick(e)},onPlayerControlClick(e){s.onPlayerControlClick(e)},onAdClickthrough(){s.onAdClickthrough()},onAdSkip(){s.onAdSkip()},addAdObserver(e){s.addAdObserver(e)},removeAdObserver(e){s.removeAdObserver(e)},getAllAds:()=>s.getAllAds(),getAllNonLinearAds:()=>s.getAllNonLinearAds(),destroy(){},addEventListener(e,n,t){s.addEventListener(e,n,t)},removeEventListener(e,n,t){s.removeEventListener(e,n,t)}};if(c)s=V(c,d,i),a(p,"Session initialized elsewhere");else if(l){let t=L(i.originParams)||{},r=i.sessionFeatures;r&&I.forEach(e=>{var n=r[e];null!=n&&(t[e]=n)});var f,m,_,h,v=L(i.playerParams)||{},v=(v.device_sdk_info||=T.clientInfo,n&&(v.givn=n),t.playerParams=v,{}),E=(Ce(`createSession: Request sent to URL "${l}"`,t),l),g=t,y=(e,n)=>{200===n?(u=w(e?.manifestUrl,l))&&(c=w(e?.trackingUrl,l))?(s=V(c,d,i),a(p,"Successful session response",e)):o(S.INVALID_INIT_RESPONSE,"Invalid session response"):o(S.INIT_ERROR)};try{(v=L(v)||{}).headers=(_={"Content-Type":"application/json; charset=utf-8"},(h=v.headers)?Object.assign(_,h):_),f=E,m=JSON.stringify(g),U("POST",f,m,v,(e,n,t)=>{200===n&&null!=e&&(e=De(e)),y&&y(e,n)})}catch(E){return void be("JSON Encode Exception: "+E,E)}}else o(S.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function Be(t,r,i,a){let o="createSession: ";function s(e,n,t){Ce(o+n,t),r?r(e,null):i(e)}function u(e,n){var t={code:e,message:n};P(o+`(${e}) `+n),r?r(null,t):a(t)}if(t){let e=t.palNonceRequestParams;if(t.trackingUrl||t.palNonceManager||!e)return je(t,null,s,u);let n=(r=>{var e="nonceReq: ";if(d){var n=k("goog")?.pal?.NonceRequest;if(n){let t=new n;t.omidPartnerName="MediaTailor",t.omidPartnerVersion="1.0.0",t.supportedApiFrameworks=m,_.forEach(e=>{var n=r[e];null!=n&&(t[e]=n)}),t.sessionId||(t.sessionId=(()=>{var n=new Uint8Array(16);if(l)crypto.getRandomValues(n);else for(let e=0;e<16;e++)n[e]=Math.floor(256*Math.random());return n[6]=15&n[6]|64,n[8]=63&n[8]|128,c[n[0]]+c[n[1]]+c[n[2]]+c[n[3]]+"-"+c[n[4]]+c[n[5]]+"-"+c[n[6]]+c[n[7]]+"-"+c[n[8]]+c[n[9]]+"-"+c[n[10]]+c[n[11]]+c[n[12]]+c[n[13]]+c[n[14]]+c[n[15]]})());n=d.loadNonceManager?.(t);return n?Ce(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=>{Ce(o+"NonceManager received",e),je(t,e,s,u)}).catch(e=>{be(o+"Nonce request rejected",e),je(t,null,s,u)}):(be(o+"Unable to create a nonce request"),je(t,null,s,u))}else u(S.INVALID_CONFIG,"Missing config")}let y="1.4.0",A=(console.debug("[MT] AWS Elemental MediaTailor SDK v1.4.0"),{initPal:function(n,t){let e="initPal: ";if(!n){if(!t)return P(e+"Missing consent settings"),!1;var r=k("goog")?.pal,i=r?.NonceLoader,r=r?.ConsentSettings;if(!i||!r)return P(e+"Missing PAL SDK classes"),!1;{let e=new r;e.allowStorage=t.allowStorage??!1,n=new i(e)}}return d&&be(e+"Resetting NonceLoader"),d=n,!0},createSession:function(t,e){if(!e)return new Promise((e,n)=>{Be(t,null,e,n)});Be(t,e,null,null)},PlaybackEvent:b,AdTrackingEvent:M,SessionUiEvent:O,setLogLevel:function(e){0<=e&&e<=r?a=e:console.warn(i+"Invalid log level: "+e)},LogLevel:s,getSdkVersion:()=>y,clientInfo:"MTSDK v"+y}),T=A;return D.default}},"object"==typeof t?t.mediatailor=n():e.mediatailor=n(),s.mediatailor=t.mediatailor,s)),Mc&&(module.exports=Mc.datazoom)})();
1
+ (()=>{var e,n,t,s,yc="object"==typeof module?{}:null;((Ze,en,v)=>{var E,f,nn=Ze.Object,g=Ze.Array,S=Ze.Date,vn=Ze.Number,A=Ze.String,T=Ze.RegExp,tn=Ze.Math,O=Ze.XMLHttpRequest,b=Ze.Uint8Array,C=Ze.ArrayBuffer,D=Ze.JSON,En=Ze.Promise,M=Ze.URL,R=Ze.URLSearchParams,N=Ze.EventTarget,P=Ze.CustomEvent,gn=Ze.document||{},e=gn.currentScript||{},k=Ze.location||{},L=Ze.navigator||{},w=L.userAgent||"",yn=L.connection||L.mozConnection||L.webkitConnection,U=Ze.crypto,x=Ze.console||{},n=Ze.performance,V=Ze.setInterval,F=Ze.setTimeout,W=Ze.decodeURIComponent,j=Ze.encodeURIComponent;try{E=Ze.localStorage,f=Ze.sessionStorage}catch(e){}function B(t){return t?function(e,n){e="[DZ] "+e,void 0===n?t.call(x,e):t.call(x,e,n)}:null}var t=B(x.log)||function(){},H=B(x.error)||t,G=B(x.warn)||t,$=B(x.info)||t,q=B(x.debug)||t,Sn={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},Y="datazoom_",z="custom_",K="v_";if(Sn[t="__"+Y+"rootobj"]=1,yc)yc.datazoom=Sn;else{if(dn(Ze.datazoom)){if(Ze.datazoom[t])return G("Collector already loaded");G("Overwriting window.datazoom")}Ze.datazoom=Sn}function y(n,t,e){var i,r=t.shift();return null==r?i=n:n?r instanceof T?nn.keys(n).some(function(e){if(r.test(e))return null!=(i=y(n[e],t.slice()))}):i=y(n[r],t):i=null,null!=i?i:e}function rn(e){return"function"==typeof e}function X(e,n){if(rn(e))try{return new(e=n?e.bind.apply(e,[null].concat(n)):e),1}catch(e){}}X(M,["http://x.io"])&&X(R)||(R=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([W(e[0]),null==e[1]||W(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=j(e[0]);return!0===e[1]?n:n+"="+j(e[1])}).join("&")}},M=function(e){var n=this,e=e.split("?"),t=e[0],e=e[1]?"?"+e[1]:"";n.search=e,n.searchParams=new R(e),n.toString=function(){return t+n.search}}),X(N)&&X(P,["x"])||(N=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){F(function(){e.call(t,n)},0)})}},P=function(e){this.type=e}),en=nn.assign({},{cn:"Video.js Player (MT/OM)",sv:"2.26.0",cf:"",mf:null,ev:[],fd:[],md:[],mb:"",sw:!1,sm:"",sp:[],ss:"",sd:"",sc:"",ab:"",st:null,hi:1e4,ti:200,cm:null,am:null,cq:null,aq:null,rd:[1,2,4,8,8,8,8],bd:50,kd:50,mh:5e3,ml:0,mc:256,mp:2,ep:2,ed:2e3,ec:vn.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;bn("[Event] "+n.type+(t?" ("+t.media_type+")":"")+" @"+n.timestamp,cn(e))}},en||{});var o,J,In,Q={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:""},Z=!yc&&e.src||"/",ee=k.href||"https://localhost",ne="configuration_id",te="urn:x-cast:io.datazoom.collector",An="transfer",ie=0,re=1,ae=2,oe=3,se=4,ue=5,ce={off:ie,error:re,warning:ae,info:oe,debug:se,verbose:ue},le=ae;function de(e){var n;e&&(n=ce[e],ie<=(n=null!=n?n:+e)&&n<=ue?le=n:G("Invalid log level: "+e))}function pe(){o={},J=[],[[en.ps],[Z.split("?")[1]],[ee.split("?")[1],Y]].forEach(function(e){var i=e[1];e[0]&&e[0].split("&").forEach(function(e){try{var n=e.split("="),t=W(n[0]);if(i){if(!t.startsWith(i))return;t=t.slice(i.length)}o[t]=null==n[1]||W(n[1]),t.startsWith("x-")&&J.push([t,o[t]])}catch(e){G("Invalid query string: "+e.message)}})}),In="true"==o.demo,de(o.log)}pe();var fe="io.datazoom.",me=fe,_e="__ss_ev_count",he="__ss_last_act",ve="__ss_custom_md",Ee="__ss_msg_queue",ge="__ss_sm_resp",ye="__ss_appss_to",Se="collector_observability",Ie="loss",Ae="process_duration_ms",Te="send_duration_ms",Oe="call_duration_ms",be="queue_duration_ms",Ce="evnt_fail",De="attempt_count",Me="attempt",Re="status_code",Ne="status_codes",Pe="b4_ss",ke="sample",Le="config",we="log";function Ue(e,n,t,i){le<e||n(t,i)}function Tn(e,n){Ue(re,H,e,n)}function an(e,n){Ue(ae,G,e,n)}function On(e,n){Ue(oe,$,e,n)}function bn(e,n){Ue(se,q,e,n)}function xe(e,n){Ue(ue,q,e,n)}function on(e,n){n="[Exception] "+(n?"("+n+") ":"")+e;return Tn(n,e),n}function Cn(t,i,r,a,o){var s,u=0,c=1,l=0;return i=i||"",r=r||1,a=a||vn.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 Dn(e,n){p(Ze,"postMessage",[{type:e,data:n},"*"])}var Ve,sn,Fe,We,je,Be,He=[],Ge=0;function $e(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[Pe]=!0),t}function qe(i,r,a,o){var s=r,u=1,c=Ge++;return{retry:function(e){s=e,u++},log:function(e,n){var t;en.og&&(null!=a&&He.push($e(null,i,t=r-a,Ae,e-t,c,o,[[De,u],[Re,n]]),$e(null,i,t,be,a,c,o)),He.push($e(null,i,r,Te,e-r,c,!1,[[De,u],[Re,n]]),$e(null,i,s,Oe,e-s,c,!1,[[Me,u],[Re,n]])))}}}function Ye(e,n){var t,i;en.os&&(i=e.t,i=tn.trunc(i/6e4),(i=(Ve=Ve||{})[i]||(Ve[i]=[0,0,0]))[2]++,t=(i=i[3]||(i[3]={}))[n],e=fs(e.m,lr),t?t.push(e):i[n]=[e])}function ze(e){var n,t=Ve[e],i=Ge++;t[2]&&(t[3]&&(n=[[Ne,t[3]]]),He.push($e(Ie,null,6e4*+e,Ce,t[2],i,!1,n)))}function Mn(e){return e&&(Gn(e)?e.slice():nn.assign({},e))}function Ke(e,n){return dn(n)?e?nn.assign({},e,n):n:e}function Xe(e,n){var t;return n?((t={})[e]=n,t):null}function Je(t,i){var r;return i?t?(r=Mn(t),nn.keys(i).forEach(function(e){var n=t[e];r[e]=n?nn.assign({},n,i[e]):i[e]}),r):i:t}function p(e,n,t,i){n=y(e,[n],i);return rn(n)?n.apply(e,t):null}function Qe(e,n,t){return function(){try{return n.apply(e,arguments)}catch(e){on(e,t)}}}function Rn(t,e){nn.keys(t).forEach(function(n){e.forEach(function(e){e[n]=Qe(e,t[n],n)})}),e[0]}function Nn(e){var n={};return e.forEach(function(e){n[e.nm]=e}),n}function Pn(e){var n={};return e.forEach(function(e){n[e.nm]=!0}),n}function kn(e,n,t){e.forEach(function(e){e[n]=t})}function Ln(e,n){var e=new M(e,ee),t=new R(e.search);return n(t),e.search="?"+t.toString(),e.toString()}function wn(e){var n,t=J.length;return t?Ln(e,function(e){for(n=0;n<t;n++)e.append(J[n][0],J[n][1])}):e}function Un(e,n,t){var i;return null!=(i=e?new M(e,ee).searchParams.get(n):i)?i:t}Fe=0,We=en.ec,je=Cn(an,"Abnormal clock increment: ",.2,1e3,3e5),n&&n.now,Be=Fe+S.now(),sn=function(e){var n=S.now(),t=Be,i=(Be=Fe+n)-t;return(i<0||We<i)&&(Be=t+en.ti,Fe=Be-n,je.log(i)),Be};var un=(()=>{for(var t=[],e=0;e<256;e++)t.push((e+256).toString(16).substr(1).toLowerCase());return function(){var e=new b(16);if(U&&U.getRandomValues)U.getRandomValues(e);else{an("getRandomValues() not supported");for(var n=0;n<16;n++)e[n]=tn.floor(256*tn.random())}return e[6]=15&e[6]|64,e[8]=63&e[8]|128,t[e[0]]+t[e[1]]+t[e[2]]+t[e[3]]+"-"+t[e[4]]+t[e[5]]+"-"+t[e[6]]+t[e[7]]+"-"+t[e[8]]+t[e[9]]+"-"+t[e[10]]+t[e[11]]+t[e[12]]+t[e[13]]+t[e[14]]+t[e[15]]}})();function xn(e,n,t,i,r,a){var o=new O;if(o.open(e,n,!0),null!=a&&(o.timeout=a),t)for(var s=nn.keys(t),u=0;u<s.length;u++)o.setRequestHeader(s[u],t[s[u]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function cn(e){if(e)try{return D.stringify(e)}catch(e){on(e,"toJSON")}return null}function ln(e){if(e)try{return D.parse(e)}catch(e){on(e,"fromJSON")}return null}function Vn(e,n){return(e===f?me:fe)+n}function m(e,n,t){if(e)if(null==t)Wn(e,n);else try{e.setItem(Vn(e,n),cn({v:t}))}catch(e){on(e,"storageSet")}}function Fn(e,n){e=e?ln(e.getItem(Vn(e,n))):null;return e?e.v:null}function Wn(e,n){e&&e.removeItem(Vn(e,n))}Ze.self!==Ze.top&&bn("Page loaded in a frame, set sessionStorage prefix to: "+(me+=(o.frame_id||un())+"."));var jn=ln('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Bn(e){return"string"==typeof e}function Hn(e){return vn.isFinite(e)}function Gn(e){return g.isArray(e)}function dn(e){return null!=e&&"object"==typeof e&&!Gn(e)}function $n(e){return Bn(e)?e:""+e}function qn(e){return Hn(e=+e)?e:null}function Yn(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 zn(e){return tn.round(e)}function Kn(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 Xn(e,n){if(n)for(var t=0;t<n.length&&null!=e;t++)e=n[t](e);return e}var Jn,Qn,Zn,et,nt=4,tt=8,it=16,rt=32,I=65535,at=nt,t=1|it,n=(e=nt|it)|rt,r=tt,ot={ap:2,nm:"ad_break_start"},st={ap:2,nm:"ad_break_end"},ut={ap:2,nm:"ad_click"},ct={ap:2,nm:"ad_impression"},lt={ap:2,nm:"ad_skip"},dt={ap:at,nm:"app_session_end"},pt={ap:3,nm:"audio_track_changed"},ft={ap:3,nm:"buffer_start"},mt={ap:3,nm:"buffer_end"},_t={ap:3,nm:"cast_start"},ht={ap:3,nm:"cast_end"},vt={ap:3,nm:"cast_transfer"},Et={ap:I,nm:"context_ready"},gt={ap:at,nm:"datazoom_loaded"},yt={ap:3,nm:"error"},St={ap:3,nm:"exit_fullscreen"},It={ap:3,nm:"fullscreen"},At={ap:3,nm:"heartbeat"},Tt={ap:3,nm:"media_loaded"},Ot={ap:1,nm:"media_object_request"},bt={ap:3,nm:"media_request"},Ct={ap:3,nm:"milestone"},Dt={ap:3,nm:"mute"},Mt={ap:3,nm:"pause"},Rt={ap:3,nm:"play_btn"},Nt={ap:3,nm:"playback_start"},Pt={ap:3,nm:"playback_complete"},kt={ap:1,nm:"player_ready"},Lt={ap:3,nm:"playing"},wt={ap:3,nm:"qualified_view"},Ut={ap:1,nm:"quality_change_request"},xt={ap:3,nm:"rendition_change"},Vt={ap:3,nm:"resize"},Ft={ap:3,nm:"resume"},Wt={ap:3,nm:"seek_start"},jt={ap:3,nm:"seek_end"},Bt={ap:3,nm:"stall_start"},Ht={ap:3,nm:"stall_end"},Gt={ap:3,nm:"stop"},$t={ap:3,nm:"subtitle_change"},qt={ap:3,nm:"unmute"},Yt={ap:3,nm:"volume_change"},zt=(bt.rtc=0,Nt.rtc=1,Mt.rtc=2,ft.rtc=3,Bt.rtc=4,Wt.rtc=5,xt.rtc=6,Ct.rtc=7,bt.rta=8,Nt.rta=9,ft.rta=10,Bt.rta=11,Ct.rta=12,yt.rta=lt.rta=Pt.rta=13,ot.rta=14,st.rta=15,At.rt=16,ft.rt=17,Bt.rt=18,["event","metrics"]),Kt={ap:t,nm:"bandwidth_kbps"},Xt={ap:t,nm:"buffer_duration_ms"},Jt={ap:t,nm:"buffer_duration_ads_ms"},Qt={ap:t,nm:"buffer_duration_content_ms"},Zt={ap:t,nm:"buffer_fill_percent"},ei={ap:t,nm:"buffer_length_ms"},ni={ap:t,nm:"content_session_start_ts_ms"},ti={ap:3,nm:"current_audio_track"},ii={ap:t,nm:"current_subtitles"},ri={ap:e,nm:"engagement_duration_ms"},ai={ap:e,nm:"engagement_duration_ads_ms"},oi={ap:e,nm:"engagement_duration_content_ms"},si={ap:r,nm:"event_count"},ui={ap:t,nm:"num_ad_break_plays"},ci={ap:e,nm:"num_ad_plays"},li={ap:e,nm:"num_content_plays"},di={ap:e,nm:"num_errors"},pi={ap:e,nm:"num_errors_ads"},fi={ap:e,nm:"num_errors_content"},mi={ap:e,nm:"num_requests_content"},_i={ap:t,nm:"pause_duration_ms"},hi={ap:t,nm:"pause_duration_ads_ms"},vi={ap:t,nm:"pause_duration_content_ms"},Ei={ap:t,nm:"playback_duration_ms"},gi={ap:t,nm:"playback_duration_ads_ms"},yi={ap:2,nm:"playback_duration_ad_session_ms"},Si={ap:t,nm:"playback_duration_content_ms"},Ii={ap:t,nm:"playback_duration_promo_ms"},Ai={ap:3,nm:"playback_rate"},Ti={ap:t,nm:"player_state"},Oi={ap:t,nm:"player_viewable"},bi={ap:t,nm:"player_viewable_percent"},pn={ap:3,nm:"playhead_position_sec"},Ci={ap:t,nm:"playhead_pdt_sec"},Di={ap:3,nm:"rendition_audio_bitrate_kbps"},Mi={ap:3,nm:"rendition_height"},Ri={ap:3,nm:"rendition_name"},Ni={ap:3,nm:"rendition_video_bitrate_kbps"},Pi={ap:3,nm:"rendition_width"},ki={ap:t,nm:"stall_count"},Li={ap:t,nm:"stall_count_ads"},wi={ap:t,nm:"stall_count_content"},Ui={ap:t,nm:"stall_duration_ms"},xi={ap:t,nm:"stall_duration_ads_ms"},Vi={ap:t,nm:"stall_duration_content_ms"},Fi={ap:t,nm:"time_since_last_ad_break_start_ms"},Wi={ap:t,nm:"time_since_last_ad_completed_ms"},ji={ap:t,nm:"time_since_last_buffer_start_ms"},Bi={ap:t,nm:"time_since_last_buffer_start_ad_ms"},Hi={ap:t,nm:"time_since_last_buffer_start_content_ms"},Gi={ap:t,nm:"time_since_last_heartbeat_ms"},$i={ap:t,nm:"time_since_last_milestone_ad_ms"},qi={ap:t,nm:"time_since_last_milestone_content_ms"},Yi={ap:t,nm:"time_since_last_pause_ms"},zi={ap:t,nm:"time_since_last_rendition_change_ms"},Ki={ap:t,nm:"time_since_last_request_ad_ms"},Xi={ap:t,nm:"time_since_last_seek_start_ms"},Ji={ap:t,nm:"time_since_last_stall_start_ms"},Qi={ap:t,nm:"time_since_last_stall_start_ad_ms"},Zi={ap:t,nm:"time_since_last_stall_start_content_ms"},er={ap:t,nm:"time_since_last_started_ad_ms"},nr={ap:t,nm:"time_since_request_content_ms"},tr={ap:t,nm:"time_since_started_content_ms"},ir={ap:t,nm:"volume_level_percent"};kn([Xt,Jt,Qt,_i,hi,vi,Ei,gi,Si,Ii,ki,Li,wi,Ui,xi,Vi,ci,di,pi,fi,li,mi],"df",0),nr.ts=0,tr.ts=1,Yi.ts=2,Hi.ts=3,Zi.ts=4,Xi.ts=5,zi.ts=6,qi.ts=7,Ki.ts=8,er.ts=9,Bi.ts=10,Qi.ts=11,$i.ts=12,Fi.ts=14,Wi.ts=13,Gi.ts=16,ji.ts=17,Ji.ts=18;var rr=["ops_metadata"],ar=["custom"],or=["vendor"],sr={p:fr=[],ap:n,nm:"configuration_id"},ur={p:fr,ap:n,nm:"connector_list"},cr={p:fr,ap:n,nm:"customer_code"},lr={p:fr,ap:r,nm:"event_id"},dr={p:mr=["event"],ap:r,nm:"timestamp"},pr={p:mr,ap:r,nm:"type"},fr={p:i=["cmcd"],ap:r,nm:"bl"},mr={p:i,ap:r,nm:"br"},_r={p:i,ap:r,nm:"bs"},hr={p:i,ap:r,nm:"cid"},vr={p:i,ap:r,nm:"d"},Er={p:i,ap:r,nm:"dl"},gr={p:i,ap:r,nm:"mtp"},yr={p:i,ap:r,nm:"nor"},Sr={p:i,ap:r,nm:"nrr"},Ir={p:i,ap:r,nm:"ot"},Ar={p:i,ap:r,nm:"pr"},Tr={p:i,ap:r,nm:"rid"},Or={p:i,ap:r,nm:"rtp"},br={p:i,ap:r,nm:"sf"},Cr={p:i,ap:r,nm:"sid"},Dr={p:i,ap:r,nm:"st"},Mr={p:i,ap:r,nm:"su"},Rr={p:i,ap:r,nm:"tb"},i={p:i,ap:r,nm:"v"},Nr={p:a=["event","attributes"],ap:r,nm:"abs_shift"},Pr={p:a,ap:r,nm:"error_code"},kr={p:a,ap:r,nm:"error_msg"},Lr={p:a,ap:r,nm:"inner_error"},wr={p:a,ap:r,nm:"heartbeat_count"},Ur={p:a,ap:r,nm:"milestone_percent"},xr={p:a,ap:r,nm:"qualified_view_sec"},Vr={p:a,ap:r,nm:"seek_start_point_ms"},Fr={p:a,ap:r,nm:"seek_end_point_ms"},Wr={p:a,ap:r,nm:"startup_duration_content_ms"},jr={p:a,ap:r,nm:"startup_duration_total_ms"},Br={p:s=["user_details"],ap:e,nm:"app_session_id"},Hr={p:s,ap:e,nm:"app_session_start_ts_ms"},a={p:s,ap:e,nm:"app_session_end_ts_ms"},Gr={p:s,ap:t,nm:"cast_app_session_id"},$r={p:s,ap:t,nm:"cast_content_session_id"},qr={p:s,ap:n,nm:"client_ip"},Yr={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:e,nm:"user_agent"},zr={p:u=["player"],ap:t,nm:"autostart"},Kr={p:u,ap:t,nm:"casting"},Xr={p:u,ap:t,nm:"controls"},Jr={p:u,ap:t,nm:"default_muted"},Qr={p:u,ap:t,nm:"default_playback_rate"},Zr={p:u,ap:t,nm:"fullscreen"},ea={p:u,ap:t,nm:"loop"},na={p:u,ap:t,nm:"muted"},ta={p:u,ap:t,nm:"player_name"},ia={p:u,ap:t,nm:"player_version"},ra={p:u,ap:t,nm:"preload"},aa={p:u,ap:t,nm:"ready_state"},oa={p:u,ap:t,nm:"streaming_protocol"},sa={p:u,ap:t,nm:"streaming_type"},ua={p:u,ap:t,nm:"subtitles"},u={p:c=["device"],ap:e,nm:"advertising_id"},ca={p:c,ap:e,nm:"browser_name"},la={p:c,ap:e,nm:"browser_height"},da={p:c,ap:e,nm:"browser_version"},pa={p:c,ap:e,nm:"browser_width"},fa={p:c,ap:e,nm:"cookies_enabled"},ma={p:c,ap:n,nm:"device_id"},_a={p:c,ap:e,nm:"device_mfg"},ha={p:c,ap:e,nm:"device_name"},va={p:c,ap:e,nm:"device_type"},Ea={p:c,ap:e,nm:"orientation"},ga={p:c,ap:e,nm:"os_name"},c={p:c,ap:e,nm:"os_version"},ya={p:l=["video"],ap:t,nm:"asset_id"},Sa={p:l,ap:t,nm:"description"},Ia={p:l,ap:t,nm:"duration_sec"},Aa={p:l,ap:t,nm:"frame_rate"},Ta={p:l,ap:t,nm:"media_tags"},Oa={p:l,ap:3,nm:"media_type"},ba={p:l,ap:t,nm:"player_height"},Ca={p:l,ap:t,nm:"player_width"},Da={p:l,ap:t,nm:"source"},Ma={p:l,ap:t,nm:"title"},Ra={p:d=["geo_location"],ap:n,nm:"city"},Na={p:d,ap:n,nm:"country"},Pa={p:d,ap:n,nm:"country_code"},ka={p:d,ap:n,nm:"latitude"},La={p:d,ap:n,nm:"longitude"},wa={p:d,ap:n,nm:"postal_code"},Ua={p:d,ap:n,nm:"region"},xa={p:d,ap:n,nm:"region_code"},Va={p:d,ap:n,nm:"continent"},Fa={p:d,ap:n,nm:"continent_code"},l={p:d,ap:n,nm:"district"},Wa={p:d,ap:n,nm:"timezone_name"},ja={p:d,ap:n,nm:"timezone_offset"},Ba={p:za=["network"],ap:n,nm:"asn"},d={p:za,ap:n,nm:"asn_org"},Ha={p:za,ap:e,nm:"connection_type"},Ga={p:za,ap:n,nm:"isp"},$a={p:za,ap:n,nm:"mobile_connection"},qa={p:rr,ap:r,nm:"context_id"},Ya={p:rr,ap:r,nm:"context_name"},za={p:rr,ap:e,nm:"dz_dictionary_version"},Ka={p:rr,ap:r,nm:"msg_send_client_ts_ms"},Xa={p:rr,ap:r,nm:"player_context_id"},Ja={p:rr,ap:n,nm:"server_ts_offset_ms"},Qa={p:lo=["page"],ap:e,nm:"collector_name"},Za={p:lo,ap:e,nm:"dz_sdk_version"},eo={p:lo,ap:e,nm:"page_title"},no={p:lo,ap:e,nm:"page_url"},to={p:lo,ap:e,nm:"referrer_url"},io={p:lo,ap:e,nm:"site_domain"},ro={p:_=["ad"],ap:n,nm:"ad_blocker"},ao={p:_,ap:t,nm:"ad_break_id"},oo={p:_,ap:2,nm:"ad_click_url"},so={p:_,ap:2,nm:"ad_creative_id"},uo={p:_,ap:2,nm:"ad_duration_sec"},co={p:_,ap:2,nm:"ad_id"},lo={p:_,ap:2,nm:"ad_partner"},po={p:_,ap:t,nm:"ad_position"},fo={p:_,ap:2,nm:"ad_session_id"},mo={p:_,ap:2,nm:"ad_system"},_o={p:_,ap:2,nm:"ad_time_offset_sec"},n={p:_,ap:e,nm:"ad_tracking_opt_out"},ho={p:_,ap:2,nm:"advertiser_name"},vo={p:_,ap:2,nm:"deal_id"},Eo={p:_,ap:2,nm:"skip_time_offset_sec"},go={p:_,ap:2,nm:"wrapper_creative_ids"},yo={p:_,ap:2,nm:"wrapper_id"},So={p:_,ap:2,nm:"wrapper_systems"},e={p:["cdn"],ap:t,nm:"cdn"},Io=(vo.df="",kn([go,yo,So],"df",[]),Kn(function(e){return!!e},[ro,n,zr,_r,Kr,Xr,fa,Jr,Zr,ea,$a,na,Mr,ua,Oi]),Kn(function(e){Gn(e)||(e=[e]);for(var n=0;n<e.length;n++)e[n]=$n(e[n])||"";return e},[go,yo,So]),Kn(null==Jn&&null==Qn?$n:function(e){var n;return null!=(e=$n(e))&&(n=e.length,null!=Jn&&n<Jn?e=null:null!=Qn&&Qn<n&&(e=Zn?null:e.slice(0,Qn))),e},[Nr,ao,oo,so,co,lo,po,fo,mo,ho,u,Br,Ba,d,ya,ca,da,Gr,$r,e,hr,Ra,qr,sr,ur,Yr,Va,Fa,Na,Pa,cr,vo,Sa,ma,_a,ha,va,l,Za,Pr,kr,lr,Lr,Ga,Oa,yr,Sr,Ea,ga,c,Ir,eo,no,Xa,ta,ia,wa,ra,to,Ua,xa,Tr,br,Cr,io,Da,Dr,oa,sa,Wa,Ma,pr,s,ti,ii,Ti,Ri]),Kn(Yn(0,100),[Zt,bi,ir]),Kn(Yn(0,1e9,!0),[Kt]),Kn(Yn(),[uo,_o,a,Hr,fr,mr,la,pa,vr,Qr,Er,Ia,Aa,wr,ka,La,Ur,gr,ba,Ca,Ar,xr,aa,Or,Fr,Vr,Ja,Eo,Wr,jr,Rr,dr,ja,i,Jt,Qt,Xt,ei,ni,ai,oi,ri,si,ui,ci,li,di,pi,fi,mi,hi,vi,_i,gi,yi,Si,Ei,Ii,Ai,pn,Di,Mi,Ni,Pi,ki,Li,wi,xi,Vi,Ui,Fi,Wi,Bi,Hi,ji,Gi,$i,qi,Yi,zi,Ki,Xi,Qi,Zi,Ji,er,nr,tr]),Kn(0==(_=5)?zn:(et=tn.pow(10,_),function(e){return tn.round(e*et)/et}),[uo,_o,a,Hr,fr,mr,la,pa,vr,Qr,Er,Ia,Aa,wr,ka,La,Ur,gr,ba,Ca,Ar,xr,aa,Or,Fr,Vr,Ja,Eo,Wr,jr,Rr,dr,ja,i,Kt,Jt,Qt,Xt,Zt,ei,ni,ai,oi,ri,si,ui,ci,li,di,pi,fi,mi,hi,vi,_i,gi,yi,Si,Ei,Ii,Ai,bi,pn,Di,Mi,Ni,Pi,ki,Li,wi,xi,Vi,Ui,Fi,Wi,Bi,Hi,ji,Gi,$i,qi,Yi,zi,Ki,Xi,Qi,Zi,Ji,er,nr,tr,ir]),[ot,st,ut,ct,lt,dt,pt,ft,mt,_t,ht,vt,Et,gt,yt,St,It,At,Tt,Ot,bt,Ct,Dt,Mt,Rt,Nt,Pt,kt,Lt,wt,Ut,xt,Vt,Ft,Wt,jt,Bt,Ht,Gt,$t,qt,Yt]),Ao=Nn(Io);function To(e,n){return K+e+"_"+n}function Oo(e,n){var t,i=Pn(Io),r={},a={};e?0<e.length?(e=Bn(t=en.tt&&o.beta_ev)?e.concat(t.split(".").map(function(e){return{name:e,media_types:["na"]}})):e).forEach(function(e){var n,t=e&&e.name;t&&i[t]?(e=e.media_types)&&0<e.length&&(r[t]=!0,"na"!=e[0])&&(n={},e.forEach(function(e){n[e]=!0}),a[t]=n):an("Unknown event: "+t)}):n&&an("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,Io.forEach(function(e){e.on=!(r&&!r[e.nm]),e.mm=a&&a[e.nm]})}Oo(),kn([ci,di,pi,fi,li,mi],"st",f);var bo=[Kt,Xt,Jt,Qt,Zt,ei,ni,ti,ii,ri,ai,oi,si,ui,ci,li,di,pi,fi,mi,_i,hi,vi,Ei,gi,yi,Si,Ii,Ai,Ti,Oi,bi,pn,Ci,Di,Mi,Ri,Ni,Pi,ki,Li,wi,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,Gi,$i,qi,Yi,zi,Ki,Xi,Ji,Qi,Zi,er,nr,tr,ir],Co=[],Do=(bo.forEach(function(e){null!=e.ts&&Co.push(e)}),[]),Mo=[];function Ro(e){var n,t=Pn(bo),i={};e?(e=Bn(n=en.tt&&o.beta_fd)?e.concat(n.split(".")):e).forEach(function(e){t[e]?i[e]=!0:an("Unknown flux data: "+e)}):i=null,Do=[],Mo=[],bo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Mo:Do).push(e)})}Ro(),kn([Br,Hr],"st",f);var No,Po,ko,Lo,wo=[ta,ia,u,Ma,ya,sa,Kr],Uo={},xo=(wo.forEach(function(e){Uo[e.nm.toUpperCase()]=Y+e.nm}),[sr,ur,cr,lr,dr,pr,fr,mr,_r,hr,vr,Er,gr,yr,Sr,Ir,Ar,Tr,Or,br,Cr,Dr,Mr,Rr,i,Nr,Pr,kr,Lr,wr,Ur,xr,Vr,Fr,Wr,jr,Br,Hr,a,Gr,$r,qr,Yr,s,zr,Kr,Xr,Jr,Qr,Zr,ea,na,ta,ia,ra,aa,oa,sa,ua,u,ca,la,da,pa,fa,ma,_a,ha,va,Ea,ga,c,ya,Sa,Ia,Aa,Ta,Oa,ba,Ca,Da,Ma,Ra,Na,Pa,ka,La,wa,Ua,xa,Va,Fa,l,Wa,ja,Ba,d,Ha,Ga,$a,qa,Ya,za,Ka,Xa,Ja,Qa,Za,eo,no,to,io,ro,ao,oo,so,uo,co,lo,po,fo,mo,_o,n,ho,vo,Eo,go,yo,So,e]),Vo=Nn(xo),Fo=xo.concat(bo),Wo=[lr],jo=[],Bo=[];function Ho(e){var n,t=Pn(xo),i={};No=Po=ko=Lo=!1,e?((e=Bn(n=en.tt&&o.beta_md)?e.concat(n.split(".")):e).forEach(function(e){t[e]?i[e]=!0:"custom_metadata_all"==e?No=!0:"custom_events_all"==e?Po=!0:"vendor_metadata_all"==e?ko=!0:"vendor_events_all"==e?Lo=!0:an("Unknown metadata: "+e)}),Wo.forEach(function(e){i[e.nm]=!0})):No=Po=ko=Lo=!(i=null),jo=[],Bo=[],xo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Bo:jo).push(e)})}Ho();var Go="ad",$o=/^live$/i,qo={"application/x-mpegURL":"HLS","application/dash+xml":"DASH","application/vnd.ms-sstr+xm":"Smooth","video/x-flv":"Flash","video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"},Yo={m3u8:"HLS",mpd:"DASH",mp4:"MP4"},t=[[/Opera\/([\d.]+)/,"Opera"],[/OPR\/([\d.]+)/,"Opera"],[/Edge\/([\d.]+)/,"Microsoft Edge"],[/Edg\/([\d.]+)/,"Microsoft Edge"],[/MSIE ([\d.]+)/,"Microsoft Internet Explorer"],[/Trident\/.*rv:([\d.]+)/,"Microsoft Internet Explorer"],[/Seamonkey\/([\d.]+)/,"Seamonkey"],[/Firefox\/([\d.]+)/,"Firefox"],[/Chromium\/([\d.]+)/,"Chromium"],[/Chrome\/([\d.]+)/,"Chrome"],[/Safari\/([\d.]+)/,"Safari"]],_=[[/Windows 10\.0|Windows NT 10\.0/,"Windows 10"],[/Windows 8\.1|Windows NT 6\.3/,"Windows 8.1"],[/Windows 8|Windows NT 6\.2/,"Windows 8"],[/Windows 7|Windows NT 6\.1/,"Windows 7"],[/Windows NT 6\.0/,"Windows Vista"],[/Windows NT 5\.2/,"Windows Server 2003"],[/Windows NT 5\.1|Windows XP/,"Windows XP"],[/Windows NT 5\.0|Windows 2000/,"Windows 2000"],[/Win 9x 4\.90|Windows ME/,"Windows ME"],[/Windows 98|Win98/,"Windows 98"],[/Windows 95|Win95|Windows_95/,"Windows 95"],[/Windows NT 4\.0|WinNT4\.0|WinNT|Windows NT/,"Windows NT 4.0"],[/Windows CE/,"Windows CE"],[/Win16/,"Windows 3.11"],[/Tizen/,"Tizen"],[/Android/,"Android"],[/OpenBSD/,"Open BSD"],[/SunOS/,"Sun OS"],[/Linux|X11/,"Linux"],[/iPhone|iPad|iPod/,"iOS"],[/Mac OS X/,"Mac OS X"],[/MacPPC|MacIntel|Mac_PowerPC|Macintosh/,"Mac OS"],[/QNX/,"QNX"],[/UNIX/,"UNIX"],[/BeOS/,"BeOS"],[/OS\/2/,"OS/2"],[/nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver/,"Search Bot"]],dt=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],zo=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function Ko(e,n,t){n&&t.push(e)}function Xo(e,n,t){t.push(e+"="+n)}function Jo(e,n,t){t.push(e+(o.cmcd_ntq?"="+n:'="'+n+'"'))}function Qo(e,n,t){t.push(e+'="'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function Zo(e){return"false"!==e}function es(e){return+e}function ns(e){return e.replace(/"/g,"")}function ts(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var is,rs,fn={bl:[0,[Xo,es],fr],br:[1,[Xo,es],mr],bs:[2,[Ko,Zo],_r],cid:[3,[Qo,ts],hr],d:[1,[Xo,es],vr],dl:[0,[Xo,es],Er],mtp:[0,[Xo,es],gr],nor:[0,[Qo,ts],yr],nrr:[0,[Qo,ts],Sr],ot:[1,[Jo,ns],Ir],pr:[3,[Xo,es],Ar],rtp:[2,[Xo,es],Or],sf:[3,[Jo,ns],br],sid:[3,[Qo,ts],Cr],st:[3,[Jo,ns],Dr],su:[0,[Ko,Zo],Mr],tb:[1,[Xo,es],Rr],v:[3,[Xo,es],i]},as={bs:!1,su:!1,v:1,pr:1},os="org.svalabs-";function ss(e){for(var n,t,i=[[],[],[],[]],r=nn.keys(e),a=0;a<r.length;a++)n=r[a],(t=fn[n])&&t[3]&&t[1][0](n,e[n],i[t[0]]);return i}function us(e){var n,t=nn.keys(fn);for(is=!1,rs="header"===(Sn.options.cmcdMode||o.cmcd_mode),n=0;n<t.length;n++)fn[t[n]][3]=!1;if(e&&Gn(e)&&0<e.length)if(is=!0,"na"==e[0])for(n=0;n<t.length;n++)fn[t[n]][3]=!0;else e.forEach(function(e){var n=fn[e];n?n[3]=!0:an("Unknown CMCD key: "+e)})}function cs(e,n,t){for(var i,r,a=nn.keys(e),o=0;o<a.length;o++)delete e[a[o]];for(o=0;o<n.length;o++)0!=((i=n[o]).ap&t)&&null!=(r=null==(r=(r=i.st||i.se)&&Fn(r,i.nm))?i.df:r)&&(e[i.nm]=r)}function ls(e,n,t,i){for(var r,a,o,s,u=0;u<i.length;u++)o=(a=(r=i[u])[0]).nm,0!=(a.ap&t)?(s=n[o])&&s(r)||(e[o]=r[1],(s=a.st||a.on&&a.se)&&m(s,o,r[1])):an("Setting inapplicable data",a)}function ds(e,n){return e[n.nm]}function ps(e,n,t,i,r){var a,o=[];return t&&o.push([t,a=n(t)+i]),r&&o.push([r,n(r)+i]),e(o),a}function mn(e,n,t){if(n)for(var i,r,a=0;a<n.length;a++)if(r=e[i=n[a]])e=r;else{if(t)return null;e=e[i]={}}return e}function fs(e,n){e=mn(e,n.p||zt,!0);return e&&e[n.nm]}function ms(e,n,t,i){for(var r,a,o,s=0;s<n.length;s++)0!=((r=n[s]).ap&t)&&null!=(o=Xn(e[a=r.nm],r.dv))&&(mn(i,r.p)[a]=o)}fn[os+"rid"]=[0,[Qo,ts],Tr],fn[os+"tid"]=[0,[Qo,ts]],fn[os+"cmi"]=[0,[Xo,es]],fn[os+"pmi"]=[0,[Xo,es]],us();var _s,hs,vs,Es,gs,ys,Ss,Is,As,Ts,Os,bs,Cs,Ds,Ms,Rs,Ns,h,Ps={},ks={},Ls=Fn(f,Ee)||[],ws=[],Us=1,xs=2,Vs=4,Fs=Vs,Ws=xs|Us|Fs,js=0,Bs=[];function Hs(e){return null!=e?6e4*e:12e5}function Gs(e,n){if(!Ws&&0<Ls.length){for(var t,i=sn(),r=0,a=0;a<Ls.length;a++)Ls[a].p&&(t=!0,ms(Ps,jo,rt,Ls[a].m)),r=tn.max(r,i-Ls[a].t);bs&&Zs(Ls,0,qe(we,i,r,t),e),n=!0}n&&(Ls=[],Wn(f,Ee)),Ss=null}function $s(e){(Ws&=~e)||null!=Ss||Gs()}function qs(e,n,t,i,r,a,o,s,u){if(4==e.readyState){var c=sn(),l=e.status;if(n+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[r++];if(null!=a)return F(function(){o.retry(sn()),t(i,r,o)},1e3*a),void an(n+"retry #"+r+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(e,c))||u&&u(n,l)||an(n+"failed")}}function Ys(n,t,i){As=xn("POST",wn(en.sm),{"Content-Type":"application/json","cache-control":"no-cache"},n,function(e){4==e.readyState&&(As=null,qs(e,"Sampling API",Ys,n,t,en.rd,i,function(e){e=ln(e.responseText);if(Ts=e&&e[en.ss+"_sampling"])return bs=Ts.in_sample,Os=!1,$s(xs),m(f,ge,Ts),!0},function(e){return bs=Os=!0,$s(xs),an(e+"forced in"),!0}))})}function zs(){var e;!Is||Ws&Us||(en.sw&&en.sm?(en.sp,(e=Vo[en.sd])&&(Is.sampling_definition_params={namespace:en.ss,key_name:e.nm,key_value:nu(e)}),(e=Vo[en.sc])&&(Is.sampling_criteria_params={sampling:{key_name:e.nm,key_value:nu(e)}}),Is.sampling_override=o.sampling_override||"NONE",Is.sampling_request_id=un(),Ys(cn(Is),0,qe(ke,sn()))):(bs=!0,$s(xs)),Is=null)}function Ks(i,n,t){var e,r;en.ci?(en.tt&&(en.mf=o.mock_config||en.mf),bn("Get config from "+(e=en.mf||Ln(wn("https://"+en.cf+"platform.datazoom.io/beacon/v2/config"),function(e){e.append(ne,en.ci)}))),r=sn(),xn("GET",e,null,null,function(e){qs(e,"Config API",Ks,i,n,en.rd,t,function(e,n){var t=ln(e.responseText);if(t)return i(t,e.getResponseHeader("dz-extra"),r,n),!0},function(e,n){n<400||429==n||499<n||(en.om=!1),i()})})):(an("Missing configuration ID"),en.om=!1,i())}function Xs(){Ks(function(e,n,t,i){en.st=null,e&&function i(r,a){dn(r)?nn.keys(r).forEach(function(e){var n=r[e],t=a[e];dn(t)?i(n,t):null==t?On("Unknown config key: "+e):null==n?On("Undefined config key: "+e):t&&(en[t]=n)}):an("Invalid config object",r)}(e,Q),m(f,ye,en.st),en.st=Hs(en.st),Oo(en.ev,e),Ro(en.fd),Ho(en.md),us(en.cd),en.og||(He=[]),en.os||(Ve=null),p(en.cm,"sort"),p(en.am,"sort"),p(en.cq,"sort"),p(en.aq,"sort"),eu([[cr,en.cc],[ur,en.cl]]),ws.forEach(function(e){var n,t,i,r,a,o=!1,s=fs(e.m,pr),u=Ao[s];u?o=u.on:s.startsWith(z)?o=Po:s.startsWith(K)&&(o=Lo),o&&(n=e.m,t={},jo.concat(Bo).forEach(function(e){null!=(i=fs(n,e))&&(mn(t,e.p)[e.nm]=i)}),r=mn(n,zt),a=mn(t,zt),Do.concat(Mo).forEach(function(e){null!=(i=fs(r,e))&&(a[e.nm]=i)}),No&&(i=mn(n,ar,!0))&&nn.assign(mn(t,ar),i),ko&&(i=mn(n,or,!0))&&nn.assign(mn(t,or),i),Js(t,a),e.m=t,Ls.push(e))}),m(f,Ee,Ls),ws=[];var r,e=ma.nm,e=(ma.on?(r=Fn(E,e))||(r=un(),m(E,e,r)):Wn(E,e),eu([[ma,r]]),n);try{var a,o,s,u,c,l=e&&ln(atob(e));l?(a=l.latitude,o=l.longitude,s=l.timezone_offset,c=(u=l.time_sync)&&+u,eu([[qr,l.client_ip],[$a,l.mobile_connection],[Ba,l.asn],[xa,l.region_code],[Ua,l.region],[Pa,l.country_code],[Na,l.country],[wa,l.postal_code],[Ra,l.city],[ka,a?+a:null],[La,o?+o:null],[Va,l.continent],[Fa,l.continent_code],[Wa,l.timezone_name],[ja,null!=s?s/3600:null]]),c&&eu([[Ja,tn.round(c-(t+i)/2)]])):an("Missing or invalid dz-extra header")}catch(e){on(e,"processDzExtra")}en.ab&&ro.on&&null==nu(ro)?xn("GET",wn(en.ab),null,null,function(e){4==e.readyState&&(eu([[ro,!e.status]]),$s(Vs))}):$s(Vs),$s(Us),zs(),F(function(){$s(Fs),zs()},en.mh)},0,qe(Le,sn()))}function Js(e,n){var t=""+(gs+1e7);mn(e,lr.p)[lr.nm]=vs+"_"+t.substr(-7,2)+"."+t.substr(-5),m(f,_e,++gs),si.on&&(n[si.nm]=gs)}function Qs(e,n,t,i,r,a,o){var s,u,c,l,d,o=o?nt:it,p=mn(e,zt);for(ms(Ps,jo,o,e),ms(Ps,Do,o,p),(i=i||[]).push([pr,n],[dr,t]),s=0;s<i.length;s++)u=(c=i[s])[0],c[2]||0!=(u.ap&tt)?u.on&&null!=(c=Xn(c[1],u.dv))&&(mn(e,u.p)[u.nm]=c):an("Invalid event data",u);No&&(o=Ke(_s,r),n=e,r=cn(o),d=r?r.length:0,(l=en.ml)&&l<d?an("Custom metadata size: "+d+" > "+l):2<d&&(o=ln(r))&&nn.assign(mn(n,ar),o)),ko&&(l=Je(hs,a),d=e,l)&&nn.assign(mn(d,or),l),In&&Dn("evInfo",e),!(le<se)&&en.le&&en.le(e)||(r={p:Ws,m:e,t:t},Ws&Us?ws.push(r):(Js(e,p),Ls.push(r),m(f,Ee,Ls),null==Ss&&(Ss=F(Gs,en.bd))))}function Zs(t,n,i,e){var r,a=t.map(function(e){return e.m}),o=(a.forEach(function(e,n){var t,i=mn(e,rr);Ka.on&&(mn(e,Ka.p)[Ka.nm]=sn()),Ts&&(i[en.ss+"_sampling"]=Ts),null!=Os&&(i[en.ss+"_forced_sampling_in"]=Os),n||(r=i[Se],Ve&&(nn.keys(Ve).forEach(ze),Ve=null),He.length&&(r=r?r.concat(He):He,He=[],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[Se]=r))}),wn(en.mb)),a=cn(a);e&&L.sendBeacon&&L.sendBeacon(o,a)||xn("POST",o,{"Content-Type":"application/json"},a,function(e){qs(e,"Message post",Zs,t,n,en.rd,i,null,function(e,n){t.forEach(function(e){Ye(e,n)}),r&&(He=r.concat(He))})})}function eu(e){ls(Ps,ks,nt,e)}function nu(e){return Ps[e.nm]}function tu(e){if(hc&&(hc=!1,ru(gt,e)),!vs||!Es||(n=e,t=en.st,n<ys&&an("Activity time reversal: "+ys+" -> "+n),0<=t&&(n<ys||ys+t<=n))){Gs(!(ws=[]),!0);t=e,n=Bs[js];if(vs=un(),Es=ys=t,eu([[Br,vs],[Hr,Es],[ci,gs=0],[di,0],[pi,0],[fi,0],[li,0],[mi,0]]),m(f,_e,gs),m(f,he,ys),Wn(f,ge),As&&As.abort(),As=Ts=null,bs=Os=null,Ws|=xs,Is={},zs(),rn(n))try{n()}catch(e){on(e,"onAppSessionStart")}}else m(f,he,ys=e);var n,t;eu([[ri,e-Es],[pa,Ze.outerWidth],[la,Ze.outerHeight],[eo,gn.title],[no,k.href],[to,gn.referrer],[io,k.hostname],[fa,L.cookieEnabled]])}function iu(e,n,t){ps(eu,nu,e,n,t)}function ru(e,n,t,i,r){0!=(e.ap&nt)?(tu(n),e.on&&Qs({},e.nm,n,t,i,r,!0)):an("Event inapplicable: "+e.nm+", ss",e)}function au(n,t){var i,r;n&&wo.forEach(function(e){i=Y+e.nm,null!=(r=n[i])&&(t([[e,r]]),delete n[i])})}if(cs(Ps,Fo,nt),vs=nu(Br),Es=nu(Hr),gs=Fn(f,_e)||0,ys=Fn(f,he)||0,Ts=Fn(f,ge),_s=Fn(f,ve),hs=Fn(f,"__ss_vendor_md"),en.st=Hs(Fn(f,ye)),Ts?(bs=Ts.in_sample,Os=!1,$s(xs)):Is={},t.some(function(e){if(h=e[0].exec(w))return Cs=e[1],Ds=h[1],!0})||(h=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(w))&&(Cs=h[1],Ds=h[2]),(h=/Version\/([\d.]+)/.exec(w))&&(Ds=h[1]),_.some(function(e){if(e[0].test(w))return Ms=e[1],!0})){switch(h=null,Ms){case"Mac OS X":h=/Mac OS X (10[\d._]+)/.exec(w);break;case"Android":h=/Android ([\d._]+)/.exec(w);break;case"iOS":h=/OS (\d+_\d+(_\d+)?)/.exec(w);break;case"Tizen":h=/Tizen[ \/]([\d._]+)/.exec(w);break;default:(h=/Windows (.*)/.exec(Ms))&&(Ms="Windows")}h&&(Rs=h[1].replace(/_/g,"."))}else Ms=Rs="-";dt.some(function(e){if(e[0].test(w))return Ns=e[1],!0}),eu([[s,w],[ca,Cs],[da,Ds],[ga,Ms],[c,Rs],[va,Ns],[Qa,en.cn],[Za,en.sv],[za,3]]);var ou="baseContext",su="contextType",uu="contextName",cu="metadata",lu=0,du=["base","player"],_n={},pu=[];function fu(e){if(!e.destroyed){e.setTimer(null);try{var n=e.destroyCallback;n&&n()}catch(e){on(e,"onDestroy")}delete _n[e.id],e.removeListeners(),e.destroyed=!0}}function mu(e,n,t,i,r,a,o){(r=r||[]).push([qa,e.id],[Ya,e.name]),Qs(n,t,i,r,Ke(e.customMetadata,a),Je(e.vendorMetadata,o))}function _u(e,n){return!(null!=n&&!dn(n)||(e.customMetadata=ln(cn(n)),0))}function hu(e){var n=Mn(Ps);return n._c_=Ke(_s,e.customMetadata),n._v_=Je(hs,e.vendorMetadata),n}function vu(){var t,c=[],i={},a={id:un(),type:lu,destroyed:!1,destroyCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(e,n,t){if(a.destroyed)return an(e+" after destroyed"+(n?": "+n:""),t),!0},onDestroy:function(e){a.destroyCallback=e},setTimer:function(e){var n;t&&(0<=(n=pu.indexOf(t))&&pu.splice(n,1),t=null),e&&(pu.push(e),t=e)},fireEvent:function(e,n,t,i,r){a.shallBlock("fireEvent",e.nm,e)||(tu(n),e.on&&mu(a,{},e.nm,n,t,i,r))},fireVendorEvent:function(e,n,t){a.fireEvent({ap:I,nm:To(e,n),on:Lo},sn(),null,null,Xe(e,t))},addListener:function(e,n,t,i,r){if(e&&n){var a=e[i=i||"addEventListener"];if(rn(a)){u=Qe(e,t,s="listener: "+(s=n));var o=le<ue?u:function(){xe(s,arguments),u.apply(null,arguments)};try{"-"===n?a.call(e,o):a.call(e,n,o),c.push([e,n,t,o,r||"removeEventListener"])}catch(e){on(e,"addListener: "+n)}}else an("Invalid add-listener method: "+i,e)}var s,u},removeListeners:function(r,a,o){c=c.filter(function(e){var n=e[0],t=e[1];if(r&&r!=n||a&&a!=t||o&&o!=e[2])return!0;var i=n&&n[e[4]];if(rn(i))try{"-"===t?i.call(n,e[3]):i.call(n,t,e[3])}catch(e){}else an("Invalid remove-listener method: "+e[4],n)})},stash:function(e,n,t){i[e]=[n,t]},unstash:function(e){e.forEach(function(n){var e=i[n];if(e){delete i[n];try{e[0].apply(null,e[1])}catch(e){on(e,"unstash: "+n)}}})}},e={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return du[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){fu(a)},setMetadata:function(e){return _u(a,e)},getMetadata:function(){return ln(cn(a.customMetadata))},generateEvent:function(e,n){a.fireEvent({ap:I,nm:z+e,on:Po},sn(),null,n)},dumpDzData:function(e){var n=ln(cn(hu(a)));return null==e?n:n[e]}};return a.basePublicMethods=e,a.publicContext=Mn(e),_n[a.id]=a}function Eu(e){return en.sn&&en.sn[e]||""+e}var gu,yu,Su,Iu,Au,hn=[],Tu="idle",Ou=(hn[2]=hn[9]="buffering",hn[3]=hn[10]="playing",hn[4]=hn[11]="paused",hn[5]=hn[12]="seeking",hn[6]="ended",hn[0]=hn[7]=hn[8]=Tu,function(U,x,r){var i,a,o,V,F,W,j,p={},B={},E={},H={},G={},$={},q=[],Y=[],z=[],K=[],X=[],J=[],Q=[],f=[],Z=un(),m=(w=r[ou],(e=(e=dn(w)&&rn(w.contextID)&&w.contextID())&&Bn(e)&&_n[e])&&e.type==lu&&e.publicContext===w?e:(null!=w&&an("Invalid contextOptions."+ou,w),vu())),e=r[uu],s=(null!=e&&(m.name=e),(w=r["adapterID"])&&Bn(w)&&mc[w]||(null!=w&&an("Adapter not found for id: "+w),gu)),u=r["adapterOptions"];function ee(){if(o){for(var e,n=nn.keys(o),t=sn(),i=0;i<n.length;i++)k((e=o[n[i]]).ev,t,e.dl);o=null}}function g(e,n,t){(o=o||{})[t||e.nm]={ev:e,dl:n}}function _(e){ls(p,B,1,e)}function y(e){ls(E,H,2,e)}function S(e,n){return ds(n?E:p,e)}function ne(e){return E[e.nm]}function te(){var e=S(ta),n=S(ia);cs(p,Fo,1),_([[Oa,"content"],[ta,e],[ia,n]])}function ie(){cs(E,Fo,2),y([[Oa,"ad"]])}function n(e,n){B[e.nm]=n}function re(e,n){H[e.nm]=n}function ae(e,n){$[e.nm]=n}function t(e,n,t,i){for(var r=[],a=0;a<n.length;a++)r[n[a]]=!0;Q[e]={tr:r,en:t,ex:i}}u=dn(u)?Mn(u):{},s&&(W=s[2],j=s[3],nn.assign(u,s[4]||{}),V=u[pc],F=u[fc],(u[dc]||[]).forEach(function(e){G[e[0].nm]=e[1]})),U&&nn.keys(_n).some(function(e){e=_n[e];if(1==e.type&&e.player===U)return e.publicContext.destroy(),!0});var oe,c,se,ue,ce,l,le,de,I,pe,fe,A,me,T,O,_e,he,ve,Ee,ge,b,C,ye,Se,d,h,D,M,Ie,Ae,R,N,Te,v=0,Oe=Tu,be=1,Ce=sn(),De=Cn(an,"Abnormal duration increment: ",1,1e3,3e5);function Me(){return 2==be}function Re(){return!!T&&T.type===Go}function Ne(e){I=e+en.hi,bn("Heartbeats started")}function Pe(){I&&bn("Heartbeats stopped"),I=0}function P(e,n,t){return ps(_,S,e,n,t)}function ke(e){var n=e-Ce;n<0||n>en.ed?De.log(n):0<n&&(4==v?P(vi,n,_i):11==v?P(hi,n,_i):2==v?(c&&P(Vi,n,Ui),P(Qt,n,Xt)):9==v&&(c&&P(xi,n,Ui),P(Jt,n,Xt))),Ce=e}function Le(e,n){null!=e&&(f[e]=n)}function k(n,t,i,e,r,a){if(!m.shallBlock("fireEvent",n.nm,n))if(a=a||(Re()?2:be),0!=(n.ap&a)){if(tu(t),(i=i||[]).push([Xa,m.id]),Te||(Te=!0,(u=z.some(function(e){try{return e(t,i,n,a)}catch(e){on(e,"extEventHandler")}}))||(u=(c=$&&$[n.nm])&&c(t,i,n,a)),Te=!1),!u){ke(t);for(var o,s,u,c,l=[[Ti,Oe]],d=0;d<Co.length;d++)s=f[(o=Co[d]).ts],l.push([o,s?t-s:0]);_(l),null==S(Kt)&&yn&&(c=yn.downlink)&&_([[Kt,1e3*c]]),Le(n.rt,t),Le(2==a?n.rta:n.rtc,t),!n.on||n.mm&&!n.mm[S(Oa,2==a)]||(c=mn(u={},zt),2==a?(ms(E,jo,2,u),ms(E,Do,2,c),ms(p,jo,it,u),ms(p,Do,it,c)):(ms(p,jo,1,u),ms(p,Do,1,c),ms(E,jo,it,u),ms(E,Do,it,c)),mu(m,u,n.nm,t,i,e,r))}}else an("Event inapplicable: "+n.nm+", "+a,n)}function we(e){var n=e[1];n&&n!=S(e[0])&&g(vt)}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(Ia),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===Go?R!==c&&l&&((null==R?We:(p&&k(Pt,d),Ge))(d),R=c,N=T.end,Be(),y(l.concat([[uo,N-R]])),He(d,T._a),k(ct,d,null,null,null,2),C=0,Se=d):null!=R&&(p&&k(Pt,d,null,null,null,2),Ge(d),je(d))),u===Go)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(uo),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(Ct,[[Ur,100*m]],Ct.nm+m)):h++;if(3==n){if(D=e,a<0||a>en.ed)De.log(a);else if(0<a)if(u)P("promo"===u?Ii:null,a,Ei);else if(i=P(Si,a,Ei)/1e3,en.cq)for(Ee=Ee||en.cq.slice();null!=(o=Ee[0])&&o<=i;)Ee.shift(),g(wt,[[xr,o]],wt.nm+o)}else if(M=e,a<0||a>en.ed)De.log(a);else if(0<a&&(P(gi,a,Ei),i=ps(y,ne,yi,a)/1e3,en.aq))for(ge=ge||en.aq.slice();null!=(o=ge[0])&&o<=i;)ge.shift(),g(wt,[[xr,o]],wt.nm+o)}}}function xe(e,n){null==d&&null!=e&&null!=D&&e!=D&&(d=D,k(Wt,n||sn()))}function Ve(e,n){null==h&&null!=e&&null!=M&&e!=M&&(h=M,k(Wt,n||sn()))}function Fe(e){oe&&k(Gt,e),oe=se=!1,be=1,d=D=null,Pe()}function We(e){var n,t,i="pre";S(Si)>1e3*en.ep&&(n=S(pn),t=S(Ia),i=null!=n&&null!=t&&n+en.ep>t?"post":"mid"),ue=l=le=!1,ie(),_([[ao,un()],[po,i],[ui,0]]),k(ot,e)}function je(e){Ie+=e-f[14],k(st,e,null,null,null,2),_([[ao,null],[po,null],[ui,null]])}function Be(){le||(le=!0,y([[fo,a||un()],[yi,0]]),a=null)}function He(e,n){var t=Bs[3];if(ue=!0,ve=ge=null,iu(ci,1),P(ui,1),rn(t))try{t(i,n)}catch(e){on(e,"onAdStart")}k(Nt,e)}function Ge(e){if(ue){var n=Bs[4];if(Ae+=e-f[9],rn(n))try{n(i)}catch(e){on(e,"onAdEnd")}}ue=l=le=!1,h=M=R=N=null,ie()}function $e(e,n,t,i){var r,a,o,s;e!=v&&(o=Q[v],r=Eu(v)+" => "+Eu(e),a=hn[e]||Oe,m.shallBlock("setState",r)||(o.tr[e]?(bn("state: "+r+" ("+a+")"),(o=o.ex)&&o(n,e,t,i),ke(n),s=v,Oe=a,(o=Q[v=e].en)&&o(n,s,t,i),pe=!0):an("Invalid transition: "+r)))}function qe(e){return e!=v&&!!Q[v].tr[e]}function Ye(){return 0==v||7==v||8==v}function L(o,s,u){return function(e){var n,t,i,r,a;n=o,t=s,i=u,a=(e=e)[0],e=e[1]=Xn(e[1],a.dv),a=S(a,i),null!=i&&i!=Me()||null==a||null==e||(t?!e!=!a&&g(e?n:t):e!=a&&g(n,r=n==xt?a<e?[[Nr,"up"]]:e<a?[[Nr,"down"]]:null:r))}}function ze(e){e[1]=Xn(e[1],e[0].dv)}t(0,[1,8]),t(1,[2,7,8,16],function(e){var n=Bs[1];if(Fe(e),oe=!(ce=!1),de=$o.test(S(sa)),Ie=Ae=0,_([[Yr,Z],[ni,e]]),Z=un(),iu(mi,1),rn(n))try{n(i)}catch(e){on(e,"onContentSessionStart")}A=me,me=T=O=_e=null,R=N=null,fe=0,k(bt,e)}),t(2,[3,4,5,7,8,16],function(e,n){(c=3==n)&&(P(wi,1,ki),k(Bt,e)),k(ft,e)},function(e){k(mt,e),c&&k(Ht,e),c=!1,se||k(Tt,e)}),t(3,[2,4,5,6,7,8,16],function(e){var n;se||(n=e-f[0],se=!0,he=Ee=null,iu(li,1),k(Nt,e,[[Wr,n-Ie],[jr,n-Ae]])),b=D=S(pn),ye=e,null!=d&&(k(jt,e,[[Vr,1e3*d],[Fr,null!=b?1e3*b:null]]),d=null),k(Lt,e),ce&&(ce=!1,k(Ft,e)),I||Ne(e)},function(){b=null}),t(4,[2,3,5,6,7,8,16],function(e){ce||(ce=!0,k(Mt,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(Pt,e)}),t(7,[],function(e){Fe(e)}),t(8,[],function(e,n,t){k(yt,e,t),Fe(e)}),t(9,[10,11,12,14,15,7],function(e,n){Be(),(c=10==n)&&(P(Li,1,ki),k(Bt,e)),k(ft,e)},function(e){k(mt,e),c&&k(Ht,e),c=!1}),t(10,[9,11,12,13,14,15,7],function(e,n,t,i){Be(),ue||He(e,i),C=M=ne(pn),Se=e,null!=h&&(k(jt,e,[[Vr,1e3*h],[Fr,null!=C?1e3*C:null]]),h=null),k(Lt,e),l&&(l=!1,k(Ft,e)),I||Ne(e)},function(){C=null}),t(11,[9,10,12,14,15,7],function(e){l||(l=!0,k(Mt,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(Pt,e),Ge(e)}),t(14,[9,10,17,7],function(e){k(lt,e),Ge(e)}),t(15,[9,10,17,7],function(e,n,t){k(yt,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=Ni,w=Ni;function Xe(e){var i=[],r=0,a=0;return i.locate=function(n){return i.find(function(e){return n>=e.start&&n<=e.end})},e.forEach(function(e){var n=e.start,t=e.end;Hn(n)&&Hn(t)&&(n=n<r?r:n)<t?(r<n&&i.push({start:r,end:n,_e:a}),i.push(nn.assign({},e,{start:n,_e:a})),e.type&&(a+=t-n),r=t):an("Skipped time span",e)}),i.push({start:r,end:vn.MAX_VALUE,_e:a}),i}function Je(e,n){e=e&&e({type:An,ack:n,appSID:nu(Br),ctSID:S(Yr)});e&&e["catch"](function(e){On("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(Yr)},nextContentSessionID:function(){return Z},playerState:function(){return Oe},destroy:function(){if(!m.destroyed){qe(7)&&$e(7,sn());for(var e=0;e<Y.length;e++)try{Y[e]()}catch(e){on(e,"extOnDestroy")}fu(m)}},setMetadata:function(e){return!!_u(m,e)&&(au(m.customMetadata,m.setData),!0)},annotateContentSession:function(e){return null==e?!(me=null):!!Gn(e)&&(me=Xe(e.slice().sort(function(e,n){return e.start>n.start?1:-1})),!0)},dumpDzData:function(e){var n=nn.assign(hu(m),p,E),t=Oa.nm;return n[t]=(Me()||Re()?E:p)[t],n=ln(cn(n)),null==e?n:n[e]}}),Cu.forEach(function(e){try{e(t,m,q,Y,z,K,X,J)}catch(e){on(e,"extInit")}});try{i=W?W(e,m,u):null}catch(e){i=on(e,s[0]+" initContext")}return i?(Tn(i),t.destroy()):(null!=(n=r[cu])&&t.setMetadata(n),n=sn(),k(Et,n),k(kt,n),m.setTimer(function(){for(var e=0;e<q.length;e++)try{q[e]()}catch(e){on(e,"extOnTimer")}if(Ke)try{Ke()}catch(e){on(e,"onTimer")}var n=sn();ke(n),I&&I<=n&&(pe?(k(At,n,[[wr,++fe]]),I=n+en.hi,pe=!1):Pe())})),t}return 1&(G[e.nm]||0)&&(e=Mi),2&(G[w.nm]||0)&&(w=Mi),n(Ia,ze),re(uo,ze),n(oa,function(e){var n=e[1];e[1]=n&&qo[n]||n}),n(sa,function(e){de=$o.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(xt,null,!1)),re(w,L(xt,null,!0)),n(na,L(Dt,qt)),n(Zr,L(It,St)),n(Kr,L(_t,ht)),n(Ca,L(Vt)),n(ba,L(Vt)),n(ir,L(Yt)),n(ti,L(pt,null,!1)),re(ti,L(pt,null,!0)),n(ii,L($t)),n(ua,L($t)),n(Gr,we),n($r,we),n(bi,function(e){var n,t,i,r,a=e[1];a=a&&rn(a.getBoundingClientRect)?"visible"==gn.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:Xn(a,bi.dv),null!=(e[1]=a)&&_([[Oi,50<=a]])}),n(ei,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(Tt,function(e,n,t,i){2==i&&(a=un(),n.push([fo,a,!0]))}),ae(ct,function(e,n){a&&n.push([fo,a,!0])}),ae(yt,function(e,n,t,i){iu(1==i?fi:pi,1,di)}),te(),ie(),nn.assign(m,{type:1,fireEvent:k,fire:function(e,n,t){k(e,sn(),n,null,null,t)},setState:function(e,n,t){$e(e,sn(),n,t)},canSetState:qe,reset:function(){qe(7)&&$e(7,sn()),te(),ie(),f=[],v=0,Oe=Tu},setData:function(e){_(e),ee()},setAdData:function(e){y(e),ee()},getData:S,getAdData:ne,getState:function(){return v},isIdle:Ye,isAdIdle:function(){return 13==v||14==v||15==v},isInAds:Me,isInSsaiAds:Re,onTimer:function(e){Ke=e},matchCtSource:function(e){return S(Da)==e},reqCtSID:function(){return Ye()?Z:S(Yr)},reqTracer:function(e,a){e=Ln(e,function(e){e["delete"]("CMCD")});var n,t=m.reqCtSID(),i=un(),r=((a=nn.assign({},a||{},{sid:t}))[os+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(n=S(ya))&&(a.cid=n),{url:e,sid:t,rid:i,cmcd:a,start:sn()});return{reqID:i,urlBase:e,url:function(){var n=ss(a);return Ln(e,function(e){e.append("CMCD",n[0].concat(n[1],n[2],n[3]).sort().join())})},headers:function(){for(var e={},n=ss(a),t=0;t<4;t++)n[t].length&&(e[zo[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=fn[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(),In&&Dn("reqInfo",r)},end:function(e){var n=sn(),t=(r.end=null!=e?r.start+e:n,nn.assign({},as,a)),i=[];nn.keys(t).forEach(function(e){var n=fn[e];n&&n[2]&&i.push([n[2],t[e]])}),k(Ot,n,i,null,null,1),In&&Dn("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!==An||Ye()||(m.setData([[Gr,e.appSID],[$r,e.ctSID]]),e.ack)||Je(n,!0)},sa:{}}),s&&_([[ta,s[1]]]),Ws&Us&&us((e=Sn.options).cmcdEnable?e.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new En(function(n,t){try{j(x,m,u).then(function(e){i=Qe(e),n(i)},function(e){Tn(e),t(e)})}catch(e){t(on(e,s[0]+" createTargetObject"))}}):En.reject("Not implemented"):i=Qe(U)}),bu=function(e,o){var s=new(e||N);return o=o||P,s.dispatch=function(e,n,t){var i,r,a;t=t||{},n&&((a=n.media)&&nn.assign(s,a),a=n.ima)&&((n=a.adsManager)&&nn.assign(s,n),t.getAdData=function(){return{currentTime:s.currentTime}},(i=a.ad)&&(t.getAd=function(){return{getAdId:function(){return i.adId},getAdSystem:function(){return i.adSystem},getAdvertiserName:function(){return i.advertiserName},getCreativeId:function(){return i.creativeId},getDealId:function(){return i.dealId},getDuration:function(){return i.duration},getSkipTimeOffset:function(){return i.skipTimeOffset},getVastMediaBitrate:function(){return i.vastMediaBitrate},getVastMediaWidth:function(){return i.vastMediaWidth},getVastMediaHeight:function(){return i.vastMediaHeight},getWrapperAdIds:function(){return i.wrapperAdIds},getWrapperAdSystems:function(){return i.wrapperAdSystems},getWrapperCreativeIds:function(){return i.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return i.adPodIndex},getTimeOffset:function(){return i.adTimeOffset}}},h:{clickThroughUrl:i.clickThroughUrl}}}),r=a.error)&&(t.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),e&&(n=new o(e),nn.assign(n,t),s.dispatchEvent(n))},s.getBoundingClientRect=function(){return s.boundingClientRect||{left:0,right:0,top:0,bottom:0}},s.getVolume=function(){return s.volume},s},Cu=[],Du="REQUEST_COMPLETE",Mu="SLOT_STARTED",Ru="SLOT_ENDED",Nu="AD_INITIATED",Pu="AD_BUFFERING_START",ku="AD_BUFFERING_END",Lu="AD_PAUSE",wu="AD_RESUME",Uu="AD_IMPRESSION",xu="AD_IMPRESSION_END",Vu="AD_COMPLETE",Fu="AD_SKIPPED",Wu="AD_CLICK",ju=(Cu.push(function(e,i,n,t){var r,a,o=i.setState,s=i.setAdData,u=i.fire,c={},l={on:{}};function d(){r&&(i.removeListeners(r),c={},r=a=null)}l.$update=l.update=function(e,n){var t;i.isInAds()&&(n&&s([[_o,p(n,"getTimePosition")]]),a&&(s([[pn,p(a,"getPlayheadTime")],[uo,p(a,"getDuration")],[co,p(a,"getAdId")],[so,a._creativeId],[vo,p(a,"getDealId")],[Eo,p(a,"getSkipOffset")]]),n=p(a,"getActiveCreativeRendition"))&&(t=p(n,"getHeight"),s([[Pi,p(n,"getWidth")],[Mi,t],[Ri,t?t+"p":null]])),e)&&(n=p(e,"getAdVolume"),i.setData([[ir,100*n],[na,0==n]]))},l.on[Du]=function(e,n){n.success?u(bt,null,2):u(yt,null,2)},l.on[Mu]=function(e,n){a=null,o(16),l.update(e,n.slot)},l.on[Ru]=function(){o(17),a=null},l.on[Nu]=function(){s([[Ai,1]]),u(Tt,null,2)},l.on[Pu]=function(){o(9)},l.on[ku]=l.on[wu]=function(){o(10,null,a)},l.on[Uu]=function(){o(10,null,a),u(ct,null,2)},l.on[Lu]=function(){o(11)},l.on[Vu]=function(){o(13),a=null},l.on[Fu]=function(){o(14),a=null},l.on[xu]=function(){a=null},l.on[Wu]=function(){u(ut)},l.on["ERROR"]=function(e,n){o(15,[[Pr,n.errorCode],[kr,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=Mn(l.on),i.sa.fwContext=l,n.push(function(){r&&l.update(r)}),t.push(d),Rn({attachFwContext:function(e){var n;!i.shallBlock("attachFwContext",null,e)&&e!=r&&(d(),r=e)&&(n=y(Ze.tv,["freewheel","SDK"]),[Du,Mu,Ru,"AD"].forEach(function(t){var e=n&&n["EVENT_"+t];e&&i.addListener(r,e,function(e){var n=l.on[t];n&&n(r,e)})}),[Nu,Pu,ku,Lu,wu,Uu,xu,Vu,Fu,Wu,"ERROR"].forEach(function(i){var e=n&&n["EVENT_"+i];e&&(c[e]=function(e,n){var t=l.on[i];t&&t(e,n)})}))},detachFwContext:d},[e,i])}),"play"),Bu="waiting",Hu="playing",Gu="pause",$u="seeking",qu="seeked",Yu="ended",zu="durationchange",Ku="ratechange",Xu="timeupdate",Ju=(Cu.push(function(e,a,n,t){var r,o,s,u,i=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function p(){o&&d(o),r&&d(r),r=o=null}function f(){if(r){for(var e,n,t,i=0;i<r.length;i++)"metadata"===(t=r[i]).kind?n=n||t:"showing"===t.mode&&(e=e||t);s||c([[ua,!!e],[ii,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([[Ia,e.duration],[Jr,e.muted],[Qr,e.playbackRate]]),f()),a.isInAds()||c([[pn,e.currentTime],[Ai,e.playbackRate],[Ca,e.offsetWidth],[ba,e.offsetHeight],[bi,e],[ei,e.buffered],[ea,e.loop],[na,e.muted],[ir,100*e.volume],[aa,e.readyState]])},m.on[ju]=function(e){a.isIdle()&&(a.reset(),m.update(e,!0),i(1),i(2))},m.on[Bu]=function(e){m.update(e),i(2)},m.on[Hu]=function(e){m.update(e),a.isAdIdle()&&i(17),i(3)},m.on[Gu]=function(e){m.update(e),i(4)},m.on[$u]=function(e){m.update(e),i(5)},m.on[qu]=function(e){m.update(e),i(e.paused?4:3)},m.on[Yu]=function(e){m.update(e),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(e){var n,t=e.error;t&&(n=[[Pr,t.code],[kr,t.message]]),m.update(e),i(8,n)},m.on[zu]=function(e){c([[Ia,e.duration]])},m.on[Ku]=function(e){c([[Ai,e.playbackRate]])},m.on[Xu]=function(e){m.update(e)},m.$on=Mn(m.on),a.sa.mediaElement=m,n.push(function(){u&&m.update(u)}),t.push(_),Rn({attachMediaElement:function(e){_(),(u=e)&&[[ju,(e=[[Yu,Gu,$u,ju,Bu,qu,Hu]])[0]],[Bu,e[0]],[Hu,e[0]],[Gu,e[0]],[$u,e[0]],[qu,e[0]],[Yu,e[0]],["error"],[zu],[Ku],[Xu]].forEach(function(i){var r=i[0];l(u,r,function(e){var n,t=m.on[r];t&&((n=i[1])?(a.stash(r,t,[u,e]),F(function(){a.unstash(n)},0)):t(u,e))})})},detachMediaElement:_,attachTextTracks:function(e,n){p(),s=n,(r=e)&&["change","addtrack","removetrack"].forEach(function(e){l(r,e,f)})},detachTextTracks:p},[a])}),"CLICK"),Qu="STARTED",Zu="AD_PROGRESS",ec="AD_BUFFERING",nc="IMPRESSION",tc="PAUSED",ic="RESUMED",rc="COMPLETE",ac="LOADED",oc="ALL_ADS_COMPLETED",sc="SKIPPED",uc="VOLUME_CHANGED",cc="AD_ERROR",lc={CLICK:"click",STARTED:"start",AD_PROGRESS:"adProgress",AD_BUFFERING:"adBuffering",IMPRESSION:"impression",PAUSED:"pause",RESUMED:"resume",COMPLETE:"complete",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",VOLUME_CHANGED:"volumeChange",AD_ERROR:"adError"},dc=(Cu.push(function(e,a,n,t){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(e){var n,e=e.getError();return e&&(n=[[Pr,e.getErrorCode()],[kr,e.getMessage()]],e=e.getInnerError())&&n.push([Lr,""+e]),n}var d,p,f={on:{}};function m(){o&&c(o),o=null}function _(e){var n=e.getAdPodInfo(),t=e.getVastMediaHeight(),t=[[co,e.getAdId(),!0],[mo,e.getAdSystem(),!0],[ho,e.getAdvertiserName(),!0],[so,e.getCreativeId(),!0],[vo,e.getDealId(),!0],[uo,e.getDuration(),!0],[Eo,e.getSkipTimeOffset(),!0],[Ni,e.getVastMediaBitrate(),!0],[Pi,e.getVastMediaWidth(),!0],[Mi,t,!0],[Ri,t?t+"p":null,!0],[yo,e.getWrapperAdIds(),!0],[So,e.getWrapperAdSystems(),!0],[go,e.getWrapperCreativeIds(),!0],[oo,y(e,[/[a-z]/,"clickThroughUrl"]),!0]];return n&&t.push([_o,n.getTimeOffset(),!0]),t}f.$update=f.update=function(e,n){a.isInAds()&&(n&&r(_(n)),e)&&(n=e.getVolume(),a.setData([[ir,100*n],[na,0==n]]))},f.on[Ju]=function(e){f.update(e),s(ut)},f.on[Qu]=function(e,n){n=n.getAd();a.isInAds()||i(16),r([[Ai,1]]),f.update(e,n),i(10,null,n)},f.on[Zu]=function(e,n){n=y(n.getAdData(),["currentTime"]);null!=n&&(f.update(e),9==a.getState()&&(null==d?d=n:d!=n&&i(10)),r([[pn,n]]))},f.on[ec]=function(e){f.update(e),i(9),d=null},f.on[nc]=function(e){f.update(e),s(ct,null,2)},f.on[tc]=function(e){f.update(e),i(11)},f.on[ic]=function(e){f.update(e),i(10)},f.on[rc]=function(e){f.update(e),i(13)},f.on[ac]=function(e,n){n=n.getAd();s(Tt,n&&_(n),2)},f.on[oc]=function(){i(17),m()},f.on[sc]=function(e){f.update(e),i(14)},f.on[uc]=function(e){f.update(e)},f.on[cc]=function(e,n){f.update(e),a.canSetState(15)?i(15,l(n)):s(yt,l(n),2)},f.$on=Mn(f.on),a.sa.imaAdsManager=f,n.push(function(){o&&f.update(o)}),t.push(m);var h={on:{}};function v(){p&&c(p),p=null}h.on[cc]=function(e,n){s(yt,l(n),2)},h.$on=Mn(h.on),a.sa.imaAdsLoader=h,t.push(v),Rn({attachImaAdsManager:function(e){var n,t;!a.shallBlock("attachImaAdsManager",null,e)&&e!=o&&(m(),o=e)&&(e=y(Ze.google,["ima"]),n=y(e,["AdEvent","Type"],lc),[[Ju],[Qu,null,(t=[[Qu,nc]])[0]],[Zu],[ec],[nc,null,t[0]],[tc],[ic],[rc],[ac],[oc],[sc],[uc],[cc,y(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]),F(function(){a.unstash(n)},0)):t(o,e))})}),s(bt,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(e){a.shallBlock("attachImaAdsLoader",null,e)||e==p||(v(),(p=e)&&(e=y(Ze.google,["ima","AdErrorEvent","Type"],lc)[cc])&&u(p,e,function(e){var n=h.on[cc];n&&n(p,e)}))},detachImaAdsLoader:v},[e,a])}),Cu.push(function(n,r,e,t,i,a,o){var s,u,c,l=r.addListener;function d(){s&&r.removeListeners(s),s=u=c=null}function p(e){for(var n;(n=u[0])&&n.t<=e;)u.shift(),delete n.t,s.onTimedMetadata(n)}t.push(d),a.push(function(e){s&&p(c=e[1])}),o.push(function(e,n,t,i,r){var a;s&&i&&r&&Bn(a="ID3"===e?r:a)&&((e={t:n})[i]=a,u.push(e),null!=c)&&p(c)}),Rn({attachImaDaiStreamManager:function(e){r.shallBlock("attachImaDaiStreamManager",null,e)||e==s||(d(),(s=e)&&(e=y(Ze.google,["ima","dai","api","StreamEvent","Type"]),u=[],e)&&(l(s,e.CUEPOINTS_CHANGED,function(e){r.isIdle()&&(e=y(e.getStreamData(),["cuepoints"]))&&e.length&&n.annotateContentSession(e.map(function(e){return{type:Go,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:Go,start:n,end:n+(e.getDuration()||0),_d:[[co,e.getAdId()],[mo,e.getAdSystem()],[ho,e.getAdvertiserName()],[so,e.getCreativeId()],[vo,e.getDealId()],[Eo,e.getSkipTimeOffset()],[Pi,e.getVastMediaWidth()],[Mi,i],[Ri,i?i+"p":null],[yo,e.getWrapperAdIds()],[So,e.getWrapperAdSystems()],[go,e.getWrapperCreativeIds()],[_o,t?t.getTimeOffset():null]],_a:e}]))})))},detachImaDaiStreamManager:d},[n,r])}),Sn.mediatailor=((Rt=v.mediatailor)&&(Rt.clientInfo+=" DZSDK "+en.cn+" v"+en.sv),Rt),Cu.push(function(e,s,n,t,i,r,a,o){var u,c,l,d,p;function f(e,n,t){if(e&&1===e.playCount)for(var i=o.length,r=0;r<i;r++)o[r](n,t)}function m(){u&&c&&u.removeAdObserver(c),u=c=null,l=d=p=null}t.push(m),i.push(function(e,n,t,i){var r=l&&l[t.nm];return r&&r(e,n,t,i)}),r.push(function(e){u&&!s.isIdle()&&(d=e[1],p=s.getData(Ci),le<ue||xe("MT onPlayheadUpdate: "+d+", "+p),u.onPlayheadUpdate(d,p||null))}),Rn({attachMediaTailorSession:function(e,n){var o,t,i,r,a;n=n||Sn.mediatailor,!s.shallBlock("attachMediaTailorSession",null,e)&&n&&e!=u&&(m(),t=function(){var e=s.getData(ir);Hn(e)&&f(o,14,e)},i=n.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(e){return function(){f(o,e)}})(3),r[i.LOADED]=a(1),r[i.START]=a(2),r[i.FIRST_QUARTILE]=a(4),r[i.MID_POINT]=a(5),r[i.THIRD_QUARTILE]=a(6),r[i.COMPLETE]=a(7),r[i.PAUSE]=a(8),r[i.RESUME]=a(9),r[i.FULLSCREEN]=a(15),r[i.EXIT_FULLSCREEN]=a(16),r[i.MUTE]=function(){f(o,14,0)},r[i.UNMUTE]=t,r[i.CLICK_THROUGH]=function(){s.fire(ut),f(o,13)},r[i.SKIP]=function(){s.fire(lt),f(o,12)},u=e)&&(a=n.PlaybackEvent,l={},[[a.START,Nt,1],[a.END,Gt,I],[a.PAUSE,Mt,I],[a.RESUME,Ft,I],[a.MUTE,Dt,I],[a.UNMUTE,qt,I],[a.FULLSCREEN,It,I],[a.EXIT_FULLSCREEN,St,I]].forEach(function(r){l[r[1].nm]=function(e,n,t,i){r[2]&i&&u.onPlaybackEvent(r[0])}}),l[Yt.nm]=t,l[ft.nm]=function(){f(o,10)},l[mt.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:Go,start:n,end:n+e.duration,_a:e,_d:[[co,e.vastAdId],[mo,e.adSystem],[so,e.creativeId],[Eo,e.skipOffset],[_o,e.availStart],[oo,e.videoClickThrough]]})])},onAdLoad:function(e){var n,t,i,r,a;1===(o=e).playCount&&(n=e.adVerifications)&&(t={},i=[],r=s.getData(ir),a=e.skipOffset,Hn(r)&&(t["v"]=r),t["d"]=e.duration,t["ap"]=!!s.getData(zr),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=y(e.javaScriptResource,[0,"uri"]),t=e.vendor;n&&t&&i.push({url:n,vd:t,p:e.verificationParameters||""})}),f(e,0,t))},onAdEnd:function(e){f(e,17),o=null},onAdTrackingEvent:function(e,n){n=r[n];n&&n()}},u.addAdObserver(c))},detachMediaTailorSession:m},[e])}),Cu.push(function(s,u,e,n,t,i,r){var p,c,l,a,d,f,m,_,h,v=["YMID","YSEQ","YTYP","YDUR"];function E(){p&&c&&p.removeAnalyticObserver(c),p=c=null,l=a=d=m=null}function o(e){for(var n;(n=l[0])&&n.t<=e;)l.shift(),p.onTimedMetadata(h.createFromMetadata(n.YMID,n.YSEQ,n.YTYP,n.YDUR,1e3*n.t))}function g(e,n,t){(a=a&&a.t===e?a:{t:e})[n]=t||"",nn.keys(a).length===v.length+1&&(l.push(a),(a=null)!=m)&&o(m)}n.push(E),t.push(function(e,n,t,i){var r=d&&d[t.nm];return r&&r(e,n,t,i)}),i.push(function(e){p&&!u.isIdle()&&(m=e[1],f===_.VOD||f===_.DVRLIVE?p.onPlayheadUpdate(tn.round(1e3*m)):o(m))});var y=A.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 C&&(r=new b(r))||r instanceof b?3===r[0]&&(a=S(r,1,r.length)):a=r,Bn(a))&&g(n,i,a);else if("urn:yospace:a:id3:2016"===e){if(r instanceof b)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 b){var c=r.length;if(9<c&&73===r[0]&&68===r[1]&&51===r[2]&&(r[3]<<8|r[4])<=1024&&!(192&r[5])){u=6;for(var l=0,d=10;u<d;)l=l<<7|127&r[u++];for(c=tn.min(c,l+10);u+9<c;){for(i="",d=u+4;u<d;)i+=y(r[u++]);for(l=0,d=u+4;u<d;)l=l<<7|127&r[u++];d=(u+=2)+l,v.includes(i)&&d<=c&&g(n,i,S(r,u,d)),u=d}}}}),Rn({attachYospaceSession:function(e){var n,a,o,t,i,r=Ze.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,e)&&r&&e!=p&&(E(),p=e)&&(n=r.PlayerEvent,e=r.BreakType,_=r.PlaybackMode,h=r.TimedMetadata,f=p.getPlaybackMode(),l=[],d={},[[n.START,Nt,1],[n.STOP,Gt,I],[n.PAUSE,Mt,I],[n.RESUME,Ft,I],[n.STALL,Bt,I],[n.CONTINUE,Ht,I]].forEach(function(r){d[r[1].nm]=function(e,n,t,i){r[2]&i&&p.onPlayerEvent(r[0],0)}}),d[jt.nm]=function(){p.onPlayerEvent(n.SEEK,1e3*(m||0))},d[Dt.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),[[co,e.getIdentifier()],[mo,a(e,"AdSystem")],[ho,a(e,"Advertiser")],[Eo,0<n?n/1e3:n],[yo,t],[So,i],[go,r]]),t=e.getLinearCreative(),i=(t&&n.push([so,t.getCreativeIdentifier()],[oo,t.getClickThroughUrl()]),e.getStart()/1e3);return{type:Go,start:i,end:i+e.getDuration()/1e3,_d:n,_a:e}},c={onAdvertBreakStart:function(e){},onAdvertBreakEnd:function(){},onAdvertStart:function(e){u.addCtTimeSpans([t(e)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(e){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(e){}},p.addAnalyticObserver(c),f===_.VOD)&&(i=[],(r=p.getAdBreaksByType(e.LINEAR))&&r.forEach(function(e){e=e.adverts;e&&e.forEach(function(e){i.push(t(e))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:E},[s])}),Cu.push(function(e,i,n,t,r,a,o,s){var u,m,_,c;function h(){c&&c(17),m=_=c=null,u=!1}t.push(h),s.push(function(e,n){u&&(0===e?(c&&c(17),c=!1===en.om?null:_(n)):c&&(c(e,n),17===e)&&(c=null))}),Rn({startOmidSessionClient:function(e){var c,l,d,p,f=v.OmidSessionClient,n=jn.omidPartnerName,t=jn.omidPartnerVersion;i.shallBlock("startOmidSessionClient",null,e=e||{})||(c=e.omidServiceWindow||Ze.self,l=e.videoElement,d=e.contentURL||k.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):Tn("Missing OM SDK library or parameters"))},stopOmidSessionClient:h},[e])}),Sn.omidPartnerName=jn.omidPartnerName,Sn.omidPartnerVersion=jn.omidPartnerVersion,"unsupportedDataList"),pc="maxCtPlayheadInterval",fc="maxAdPlayheadInterval",mc={};function _c(){if(!Iu){var e=Bs[2];if(rn(e))try{e()}catch(e){on(e,"onPageUnload")}nn.keys(_n).forEach(function(e){_n[e].publicContext.destroy()}),Gs(!0),Iu=!0}}Zt=[Ut="videojs","Video.js Player",Zt=function(o,s,e){var u,c,n,i,e=e.videojsClass||Ze.videojs;if(!o||!e)return"Invalid player or missing videojs class";function l(e,n,t){s.addListener(e,n,t,"on","off")}function d(e){e&&s.removeListeners(e)}s.setData([[ia,e.VERSION]]);var p,e=y(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();function r(){var e=y(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();return e&&e.getCurrentSession()}function a(e){var n=r();return n&&n.sendMessage(te,e)}function f(){var e;s.isIdle()||(n&&(e=n.getInstance().getCastState(),s.setData([[Kr,"CONNECTED"==e]])),0!==o.duration()&&s.setData([[sa,o.duration()==1/0?"Live":"VOD"]]),s.isInAds())||(e=o.currentTime(),null!=p&&s.setData([[Ci,e+p]]),s.setData([[pn,e],[Ai,o.playbackRate()],[Ca,o.currentWidth()],[ba,o.currentHeight()],[bi,o.contentEl()],[ea,o.loop()],[na,o.muted()],[ir,100*o.volume()],[aa,o.readyState()],[ei,o.buffered()],[Zr,o.isFullscreen()],[zr,o.autoplay()]]))}function m(e){e&&s.setData([[ya,e.id],[Ma,e.name],[Sa,e.description]])}function _(){var e,n=o.audioTracks();if(n)for(var t,i=0;i<n.length;i++)if((t=n[i]).enabled){e=t;break}s.setData([[ti,e?e.label||e.language:null]])}function h(){var e,n,t,i=o.textTracks();if(i)for(var r,a=0;a<i.length;a++)"segment-metadata"==(r=i[a]).label?n=r:"metadata"===r.kind?t=r:"showing"==r.mode&&(e=r);s.setData([[ua,!!e],[ii,e?e.label||e.language:null]]),u!=n&&(d(u),u=n)&&l(u,"cuechange",function(){var e,n,t,i,r=y(u.activeCues,[0,"value"]);r&&(n=(e=r.resolution||{}).height,t=r.start,i=r.programDateTime,s.setData([[Ni,r.bandwidth/1e3],[Pi,e.width],[Mi,n],[Ri,null!=n?n+"p":null]]),null!=t)&&i&&(p=i/1e3-t)}),c!=t&&(d(c),c=t)&&l(c,"cuechange",function(){var e=c.activeCues;if(e)for(var n,t,i=0;i<e.length;i++)(t=(n=e[i]).value)&&s.updateTimedMetadata("ID3",n.startTime,n.endTime,t.key,t.data)})}function t(){f(),s.setState(4)}function v(){f(),s.setState(6)}function E(){s.setData([[Ia,o.duration()]])}function g(e){F(function(){s.unstash(["ended","pause"])},e)}is&&(o.cmcd&&o.cmcd({sid:s.reqCtSID(),cid:"-",useHeaders:!1}),l(o,"xhr-hooks-ready",function(){function e(e){var i,n,r,t=e.uri;return t&&(n=Un(t,"CMCD"),r={},n&&n.split(",").forEach(function(e){var e=e.split("="),n=e[0],t=fn[n];t&&(r[n]=t[1][1](e[1]))}),delete(n=r).cid,i=s.reqTracer(t,n),e.uri=rs?i.urlBase:i.url(),e.beforeSend=function(n){var t;n.addEventListener("readystatechange",function(){var e=n.readyState;1==e?i.start():2==e?(i.status(n.status),i.resp()):4==e&&i.end()}),rs&&(t=i.headers(),nn.keys(t).forEach(function(e){n.setRequestHeader(e,t[e])}))}),e}F(function(){s.addListener(y(o.tech(),["vhs","xhr"]),"-",e,"onRequest","offRequest")},0)})),s.addListener(e,y(Ze.cast,["framework","CastContextEventType","CAST_STATE_CHANGED"]),function(e){var t,e="CONNECTED"==e.castState;e&&(t=r(),s.addListener(t,"mediasession",function(e){var n=y(e,["mediaSession"]);s.removeListeners(i,"-"),i=n,s.addListener(n,"-",function(){switch(n.playerState){case"PLAYING":s.setState(3);break;case"PAUSED":s.setState(4);break;case"BUFFERING":s.isIdle()&&(s.setState(1),s.initCastTransfer(a)),s.setState(2);break;case"IDLE":"FINISHED"==y(n,["idleReason"])&&s.setState(6)}},"addUpdateListener","removeUpdateListener"),s.removeListeners(null,te),s.addListener(t,te,function(e,n){s.handleCastMessage(ln(n),a)},"addMessageListener","removeMessageListener"),s.initCastTransfer(a)})),s.setData([[Kr,e]])}),s.onTimer(function(){f()}),l(o,"play",function(){var e,n,t=o.src();s.isIdle()||s.matchCtSource(t)||s.reset(),s.isIdle()&&(s.reset(),s.setData([[oa,(n=t,e=(e=(e=null)&&qo[e])||(n=(n=(n=n)&&/\.(\w+)($|\?)/.exec(n))&&n[1])&&Yo[n.toLowerCase()])],[Da,t],[Ia,o.duration()],[Jr,o.muted()],[Qr,o.playbackRate()],[ra,o.preload()],[Xr,o.controls()]]),p=null,m(o.mediainfo),f(),_(),h(),s.setState(1),s.setState(2))}),l(o,"waiting",function(){f(),s.setState(2)}),l(o,"playing",function(){f(),s.isAdIdle()&&s.setState(17),s.setState(3)}),l(o,"pause",function(){s.stash("pause",t),g(0)}),l(o,"seeking",function(){s.setState(5)}),l(o,"seeked",function(){f(),s.setState(o.paused()?4:3)}),l(o,"ended",function(){s.stash("ended",v),g(0)}),l(o,"error",function(){var e,n=o.error();n&&(e=[[Pr,n.code],[kr,n.message]]),f(),s.setState(8,e)}),l(o,"durationchange",E),l(o,"ratechange",function(){s.setData([[Ai,o.playbackRate()]])}),l(o,"loadedmetadata",function(){n=y(Ze,["cast","framework","CastContext"]),m(o.mediainfo),E(),_(),h(),["change","addtrack","removetrack"].forEach(function(e){l(o.audioTracks(),e,_),l(o.textTracks(),e,h)})}),dn(o.ima3)&&(l(o,"ima3-ready",function(){s.attachImaAdsLoader(y(o.ima3,["adsLoader"]))}),l(o,"ima3-ads-manager-loaded",function(){s.attachImaAdsManager(y(o.ima3,["adsManager"]))}))},yu,Su],gu=gu||Zt,mc[Ut]=Zt;var hc=!0;function vc(t){if(!Au){if(!(en.ci||Un(Z,ne)||t&&t[ne]))return!1;t&&(Z=Ln(Z,function(n){nn.keys(t).forEach(function(e){n.set(e,t[e])})}),pe()),hc&&(hc=!1,ru(gt,sn()));var e=Un(Z,"env");en.cf="staging"===e||"dev"===e||"sandbox"===e?e:"",en.ci=Un(Z,ne)||en.ci,en.om=null,eu([[sr,en.ci]]),Xs(),Au=!0}return!0}function Ec(e){e()}function gc(e,n,t){dn(t)||(null!=t&&an("Invalid contextOptions",t),t={});var i,r,a,o,s=t[su];return s&&s!==du[1]?s===du[lu]?(r=(i=vu()).publicContext,a=t[cu],i.name=t[uu],null!=a&&r.setMetadata(a),i.fireEvent(Et,sn()),r):(Tn(a="Unknown context type: "+s),n?En.reject(a):(o=a,{getError:function(){return o}})):Ou(e,n,t)}p(Ze,"addEventListener",["pagehide",_c]),"Safari"==Cs&&p(Ze,"addEventListener",["beforeunload",function(e){F(function(){e.defaultPrevented||e.returnValue||_c()},0)}]),On("Datazoom SDK "+en.sv+" ("+en.cn+") DDv3"),V(function(){pu.length?pu.forEach(Ec):sn()},en.ti),nn.assign(Sn,{init:vc,setLogLevel:de,createContext:function(e,n){return gc(e,null,n)},createBaseContext:function(e){return(e=dn(e)?Mn(e):{})[su]=du[lu],gc(null,null,e)},createContextAndTarget:function(e){for(var n=[],t=1;t<arguments.length;t++)n.push(arguments[t]);return gc(null,n,e)},createCollectorProxy:function(e,n,t){return e&&e!==du[1]?(Tn("Unsupported context type: "+e),null):bu(n,t)},adapterIDs:function(){return nn.keys(mc)},contexts:function(){return nn.keys(_n).map(function(e){return _n[e].publicContext})},playerContexts:function(){return nn.keys(_n).filter(function(e){return 1==_n[e].type}).map(function(e){return _n[e].publicContext})},setMetadata:function(e){return!(null!=e&&!dn(e)||(au(_s=ln(cn(e)),eu),m(f,ve,_s),0))},getMetadata:function(){return ln(cn(_s))},generateEvent:function(e,n,t){t=!t&&nn.keys(_n)[0];t?_n[t].publicContext.generateEvent(e,n):ru({ap:at,nm:z+e,on:Po},sn(),null,n)},on:function(e,n){Bs[e]=n},appSessionID:function(){return vs},generateUUID(){return un()},sdkEvent:{APP_SESSION_START:js,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:Go,PROMO:"promo"},overridableMetadata:Uo,name:en.cn,version:en.sv,dictionaryVersion:3}),yc||F(vc,en.kd)})("object"==typeof globalThis?globalThis:window,{},(s={},function(){function e(n,i){var u=u||{},r=(u.scope={},u.createTemplateTagFirstArg=function(e){return e.raw=e},u.createTemplateTagFirstArgWithRaw=function(e,n){return e.raw=n,e},u.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}},u.arrayIterator=function(e){return{next:u.arrayIteratorImpl(e)}},u.makeIterator=function(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.call(e);if("number"==typeof e.length)return u.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t},u.arrayFromIterable=function(e){return e instanceof Array?e:u.arrayFromIterator(u.makeIterator(e))},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.objectCreate=u.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(e){function n(){}return n.prototype=e,new n},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,n,t){return e!=Array.prototype&&e!=Object.prototype&&(e[n]=t.value),e},u.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof re&&re];for(var n=0;n<e.length;++n){var t=e[n];if(t&&t.Math==Math)return t}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$",u.polyfill=function(e,n,t,i){n&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(e,n,t,i):u.polyfillUnisolated(e,n,t,i))},u.polyfillUnisolated=function(e,n,t,i){for(t=u.global,e=e.split("."),i=0;i<e.length-1;i++){var r=e[i];if(!(r in t))return;t=t[r]}(n=n(i=t[e=e[e.length-1]]))!=i&&null!=n&&u.defineProperty(t,e,{configurable:!0,writable:!0,value:n})},u.polyfillIsolated=function(e,n,t,i){var r=e.split(".");e=1===r.length,i=r[0],i=!e&&i in u.polyfills?u.polyfills:u.global;for(var a=0;a<r.length-1;a++){var o=r[a];if(!(o in i))return;i=i[o]}r=r[r.length-1],null!=(n=n(t=u.IS_SYMBOL_NATIVE&&"es6"===t?i[r]:null))&&(e?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:n}):n!==t&&(void 0===u.propertyToPolyfillSymbol[r]&&(t=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+t+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:n})))},u.getConstructImplementation=function(){var i;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(e,[],function(){}),new e instanceof e?Reflect.construct:(i=Reflect.construct,function(e,n,t){return e=i(e,n),t&&Reflect.setPrototypeOf(e,t.prototype),e})):function(e,n,t){return t=u.objectCreate((t=void 0===t?e:t).prototype||Object.prototype),Function.prototype.apply.call(e,t,n)||t};function e(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var e={};try{return e.__proto__={a:!0},e.a}catch(e){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(e,n){if(e.__proto__=n,e.__proto__!==n)throw new TypeError(e+" is not extensible");return e}:null,u.inherits=function(e,n){if(e.prototype=u.objectCreate(n.prototype),e.prototype.constructor=e,u.setPrototypeOf){var t=u.setPrototypeOf;t(e,n)}else for(t in n){var i;"prototype"!=t&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(n,t))&&Object.defineProperty(e,t,i):e[t]=n[t])}e.superClass_=n.prototype},u.getRestArguments=function(){for(var e=Number(this),n=[],t=e;t<arguments.length;t++)n[t-e]=arguments[t];return n},u.polyfill("Reflect",function(e){return e||{}},"es6","es3"),u.polyfill("Reflect.construct",function(e){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(e){var t;return e||(u.setPrototypeOf?(t=u.setPrototypeOf,function(e,n){try{return t(e,n),!0}catch(e){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(e){var n,t,i,r;return e||((n=function(e,n){this.$jscomp$symbol$id_=e,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:n})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new n(t+(e||"")+"_"+i++,e)})},"es6","es3"),u.polyfill("Symbol.iterator",function(e){if(!e){e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<n.length;t++){var i=u.global[n[t]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&u.defineProperty(i.prototype,e,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return e},"es6","es3"),u.iteratorPrototype=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e},u.iteratorFromArray=function(n,t){n instanceof String&&(n+="");var i=0,r=!1,e={next:function(){var e;return!r&&i<n.length?(e=i++,{value:t(e,n[e]),done:!1}):{done:r=!0,value:void 0}}};return e[Symbol.iterator]=function(){return e},e},u.polyfill("Array.prototype.keys",function(e){return e||function(){return u.iteratorFromArray(this,function(e){return e})}},"es6","es3"),u.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.polyfill("Object.values",function(e){return e||function(e){var n,t=[];for(n in e)u.owns(e,n)&&t.push(e[n]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(e,n,t){return e==i&&"q"==n&&t==r}}));return!0===r.q}catch(e){return!1}},u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,u.ES6_CONFORMANCE=u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&u.checkEs6ConformanceViaProxy(),u.polyfill("WeakMap",function(i){function t(){}function r(e){var n=typeof e;return"object"==n&&null!==e||"function"==n}function a(e){var n;u.owns(e,o)||(n=new t,u.defineProperty(e,o,{value:n}))}function e(e){var n;u.ISOLATE_POLYFILLS||(n=Object[e])&&(Object[e]=function(e){return e instanceof t?e:(Object.isExtensible(e)&&a(e),n(e))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if((()=>{if(i&&Object.seal)try{var e=Object.seal({}),n=Object.seal({}),t=new i([[e,2],[n,3]]);return 2==t.get(e)&&3==t.get(n)?(t.delete(e),t.set(n,4),!t.has(e)&&4==t.get(n)):void 0}catch(e){}})())return i;function n(e){if(this.id_=(s+=Math.random()+1).toString(),e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var o="$jscomp_hidden_"+Math.random(),s=(e("freeze"),e("preventExtensions"),e("seal"),0);return n.prototype.set=function(e,n){if(!r(e))throw Error("Invalid WeakMap key");if(a(e),u.owns(e,o))return e[o][this.id_]=n,this;throw Error("WeakMap key fail: "+e)},n.prototype.get=function(e){return r(e)&&u.owns(e,o)?e[o][this.id_]:void 0},n.prototype.has=function(e){return r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_)},n.prototype.delete=function(e){return!!(r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_))&&delete e[o][this.id_]},n},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(r){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if((()=>{if(!u.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var e,n,t=Object.seal({x:4}),i=new r(u.makeIterator([[t,"s"]]));return"s"!=i.get(t)||1!=i.size||i.get({x:4})||i.set({x:4},"t")!=i||2!=i.size?void 0:(n=(e=i.entries()).next()).done||n.value[0]!=t||"s"!=n.value[1]?void 0:!((n=e.next()).done||4!=n.value[0].x||"t"!=n.value[1]||!e.next().done)}catch(e){}})())return r;function e(e){if(this.data_={},this.head_=t(),this.size=0,e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var a=new WeakMap,i=(e.prototype.set=function(e,n){var t=i(this,e=0===e?0:e);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=n:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:e,value:n},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},e.prototype.delete=function(e){return!(!(e=i(this,e)).entry||!e.list||(e.list.splice(e.index,1),e.list.length||delete this.data_[e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,0))},e.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},e.prototype.has=function(e){return!!i(this,e).entry},e.prototype.get=function(e){return(e=i(this,e).entry)&&e.value},e.prototype.entries=function(){return n(this,function(e){return[e.key,e.value]})},e.prototype.keys=function(){return n(this,function(e){return e.key})},e.prototype.values=function(){return n(this,function(e){return e.value})},e.prototype.forEach=function(e,n){for(var t,i=this.entries();!(t=i.next()).done;)e.call(n,(t=t.value)[1],t[0],this)},e.prototype[Symbol.iterator]=e.prototype.entries,function(e,n){var t=n&&typeof n,i=("object"==t||"function"==t?a.has(n)?t=a.get(n):(t=""+ ++o,a.set(n,t)):t="p_"+n,e.data_[t]);if(i&&u.owns(e.data_,t))for(e=0;e<i.length;e++){var r=i[e];if(n!=n&&r.key!=r.key||n===r.key)return{id:t,list:i,index:e,entry:r}}return{id:t,list:i,index:-1,entry:void 0}}),n=function(e,n){var t=e.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=e.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:n(t)};t=null}return{done:!0,value:void 0}})},t=function(){var e={};return e.previous=e.next=e.head=e},o=0;return e},"es6","es3"),{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction",STATE_CHANGE:"stateChange"},MediaEventType:{LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},SupportedFeatures:{CONTAINER:"clid",VIDEO:"vlid"},VideoPosition:{PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},VideoPlayerState:{MINIMIZED:"minimized",COLLAPSED:"collapsed",NORMAL:"normal",EXPANDED:"expanded",FULLSCREEN:"fullscreen"},NativeViewKeys:{X:"x",LEFT:"left",Y:"y",TOP:"top",WIDTH:"width",HEIGHT:"height",AD_SESSION_ID:"adSessionId",IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",CLIPS_TO_BOUNDS:"clipsToBounds",CHILD_VIEWS:"childViews",END_X:"endX",END_Y:"endY",OBSTRUCTIONS:"obstructions",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),t="omid_message_guid",a="omid_message_method",o="omid_message_version",s="omid_message_args",c=function(e,n,t,i){this.guid=e,this.method=n,this.version=t,this.args=i},l=(c.isValidSerializedMessage=function(e){return!!e&&void 0!==e[t]&&void 0!==e[a]&&void 0!==e[o]&&"string"==typeof e[t]&&"string"==typeof e[a]&&"string"==typeof e[o]&&(void 0===e[s]||void 0!==e[s])},c.deserialize=function(e){return new c(e[t],e[a],e[o],e[s])},c.prototype.serialize=function(){var e={};return e[t]=this.guid,e[a]=this.method,e[o]=this.version,void 0!==this.args&&(e[s]=this.args),e},function(e){this.to=e,this.communicationType_=r.CommunicationType.NONE});function d(e,n){if(!n)throw Error("Value for "+e+" is undefined, null or blank.");if("string"!=typeof n&&!(n instanceof String))throw Error("Value for "+e+" is not a string.");if(""===n.trim())throw Error("Value for "+e+" is empty string.")}function p(e,n){if(null==n)throw Error("Value for "+e+" is undefined or null")}function f(e,n){if(null==n)throw Error(e+" must not be null or undefined.");if("number"!=typeof n||isNaN(n))throw Error("Value for "+e+" is not a number")}function m(e,n,t,i){if(f(e,n),n<t||i<n)throw Error("Value for "+e+" is outside the range ["+t+","+i+"]")}function U(e,n){return e&&(e[n]||(e[n]={}))}function e(e,n,t){(t=void 0===t?void 0===i?null:i:t)&&((e=e.split(".")).slice(0,e.length-1).reduce(U,t)[e[e.length-1]]=n)}function _(e,n,t,i){i=void 0===i?r.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=n,this.verificationParameters=t,this.accessMode=i}function h(e,n,t,i){t=void 0===t?null:t,i=void 0===i?null:i,p("Context.partner",e),this.partner=e,this.verificationScriptResources=n,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null}l.prototype.sendMessage=function(e,n){},l.prototype.handleMessage=function(e,n){this.onMessage&&this.onMessage(e,n)},l.prototype.serialize=function(e){return JSON.stringify(e)},l.prototype.deserialize=function(e){return JSON.parse(e)},l.prototype.isDirectCommunication=function(){return this.communicationType_===r.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},e("OmidSessionClient.Partner",function(e,n){d("Partner.name",e),d("Partner.version",n),this.name=e,this.version=n}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},e("OmidSessionClient.VerificationScriptResource",_),h.prototype.setVideoElement=function(e){p("Context.videoElement",e),this.videoElement=e},h.prototype.setSlotElement=function(e){p("Context.slotElement",e),this.slotElement=e},h.prototype.setServiceWindow=function(e){p("Context.serviceWindow",e),this.serviceWindow=e},e("OmidSessionClient.Context",h);var v={},E=(v.omidGlobal=(()=>{if(void 0!==n&&n)return n;if(void 0!==re&&re)return re;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var e=Function("return this")();if(e)return e;throw Error("Could not determine global object context.")})(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),g={sessionError:"reportError"},x=Object.keys(r.MediaEventType).map(function(e){return r.MediaEventType[e]}),V=["impressionOccurred"],y=function(e){e=void 0===e?v.omidGlobal:e,this.interfaceRoot_=e[E.ROOT]};function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return e=("y"===e?3&n|8:n).toString(16)})}function I(){var e=u.getRestArguments.apply(0,arguments);F(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(e))))},function(){console.error.apply(console,u.arrayFromIterable(e))})}function F(e,n){"undefined"!=typeof jasmine&&jasmine?e():"undefined"!=typeof console&&console&&console.error&&n()}y.prototype.isSupported=function(){return null!=this.interfaceRoot_},y.prototype.sendMessage=function(e,n,t){if("registerSessionObserver"==e&&(t=[n]),n=this.interfaceRoot_,0<=V.indexOf(e=g[e]?g[e]:e)&&(n=n[E.AD_EVENTS]),!(n=(n=0<=x.indexOf(e)?n[E.MEDIA_EVENTS]:n)[e]))throw Error("Unrecognized method name: "+e+".");n.apply(null,u.arrayFromIterable(t))};var A="1.5.0-iab4484",W=3;function T(e){return/\d+\.\d+\.\d+(-.*)?/.test(e)}function O(e,n){e=e.split("-")[0].split("."),n=n.split("-")[0].split(".");for(var t=0;t<W;t++){var i=parseInt(e[t],10),r=parseInt(n[t],10);if(r<i)break;if(i<r)return!1}return!0}var b="1.0.3";function j(e,n){return T(e)&&O(e,b)?n:JSON.stringify(n)}function B(e,n){return T(e)&&O(e,b)?n||[]:n&&"string"==typeof n?JSON.parse(n):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function G(e){return $(e,H.SESSION_SERVICE)}function $(e,n){return n+e}function C(e){return null!=e&&void 0!==e.top&&null!=e.top}function D(e){var n;if(e!==v.omidGlobal)try{if(void 0===e.location.hostname)return!0;""!==(n=e).x&&n.x}catch(e){return!0}return!1}function q(e){return C(e=void 0===e&&"undefined"!=typeof window&&window?window:e)?e:v.omidGlobal}function Y(e){return C(e)?e.top:v.omidGlobal}var M=function(e){l.call(this,e),this.communicationType_=r.CommunicationType.DIRECT,this.handleExportedMessage=M.prototype.handleExportedMessage.bind(this)},R=(u.inherits(M,l),M.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.handleExportedMessage(e.serialize(),this)},M.prototype.handleExportedMessage=function(e,n){c.isValidSerializedMessage(e)&&this.handleMessage(c.deserialize(e),n)},M.prototype.isCrossOrigin=function(){return!1},function(e,n){n=void 0===n?v.omidGlobal:n,l.call(this,n);var t=this;this.communicationType_=r.CommunicationType.POST_MESSAGE,e.addEventListener("message",function(e){var n;"object"==typeof e.data&&(n=e.data,c.isValidSerializedMessage(n))&&(n=c.deserialize(n),e.source)&&t.handleMessage(n,e.source)})}),N=(u.inherits(R,l),R.isCompatibleContext=function(e){return!!(e&&e.addEventListener&&e.postMessage)},R.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.postMessage(e.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||D(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(e){var n={};return n[r.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,n[r.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,n[e]}});function z(e,n){try{return e.frames&&!!e.frames[n]}catch(e){return!1}}function K(e,n){e.document.write('<iframe style="display:none" id="'+n+'" name="'+n+'" sandbox></iframe>')}N.isOmidPresent=function(n){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return z(n,e)})},N.getOmidEnvironment=function(e){for(var n=u.makeIterator(Object.values(r.Environment)),t=n.next();!t.done;t=n.next()){t=t.value;if(z(e,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(n,e){n.frames&&n.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return!!n.frames[e]})&&(null==n.document.body&&N.isMutationObserverAvailable_(n)?N.registerMutationObserver_(n,e):(e=N.getEnvironmentIframeName(e),n.document.body?(N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e)):(K(n,N.OMID_PRESENT_FRAME_NAME),K(n,e))))},N.appendPresenceIframe_=function(e,n){var t=e.document.createElement("iframe");t.id=n,t.name=n,t.style.display="none",t.sandbox="",e.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(e){return"MutationObserver"in e},N.registerMutationObserver_=function(n,t){var i=new MutationObserver(function(e){e.forEach(function(e){"BODY"===e.addedNodes[0].nodeName&&(e=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e),i.disconnect())})});i.observe(n.document.documentElement,{childList:!0})};var X=["omid","v1_SessionServiceCommunication"];function J(e,n){return n.reduce(function(e,n){return e&&e[n]},e)}function Q(e,n,t,i){for(var r=(n=u.makeIterator(n)).next();!r.done;r=n.next())if(r=((e,n,t,i)=>{if(!D(n))try{var r=J(n,t);if(r)return new M(r)}catch(e){}return i(n)?new R(e,n):null})(e,r.value,t,i))return r;return null}function Z(e,n,t){t=void 0===t?N.isOmidPresent:t;var i=[e,Y(e)];return n&&i.unshift(n),Q(e,i,X,t)}function P(e,n,t){p("AdSession.context",e),this.adSessionId_=S(),this.context_=e,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=n||Z(q(),i),this.sessionInterface_=t||new y,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(e.verificationScriptResources),this.sendSlotElement_(e.slotElement),this.sendVideoElement_(e.videoElement),this.sendContentUrl_(e.contentUrl),this.watchSessionEvents_()}function ee(e,n,t,i){this.isSkippable=e,this.skipOffset=n,this.isAutoPlay=t,this.position=i}function k(e){p("AdEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerAdEvents(),this.adSession=e}catch(e){throw Error("AdSession already has an ad events instance registered")}}function L(e){p("MediaEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerMediaEvents(),this.adSession=e}catch(e){throw Error("AdSession already has a media events instance registered")}}function ne(t){var e=q();new R(e).onMessage=function(e,n){e.method===r.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(n)}}P.prototype.getAdSessionId=function(){return this.adSessionId_},P.prototype.setCreativeType=function(e){if(e===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+r.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",e,this.adSessionId_),this.creativeType_=e},P.prototype.setImpressionType=function(e){if(e===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+r.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",e,this.adSessionId_),this.impressionType_=e},P.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},P.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},P.prototype.registerSessionObserver=function(e){this.sendMessage("registerSessionObserver",e,this.adSessionId_)},P.prototype.start=function(){this.sendOneWayMessage("startSession",{customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation},this.adSessionId_)},P.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},P.prototype.error=function(e,n){this.sendOneWayMessage("sessionError",e,n,this.adSessionId_)},P.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},P.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},P.prototype.sendOneWayMessage=function(e){var n=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[e,null].concat(u.arrayFromIterable(n)))},P.prototype.sendMessage=function(e,n){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(e,n,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(e,n,t)},P.prototype.sendInternalMessage_=function(e,n,t){var i=S();n&&(this.callbackMap_[i]=n),e=new c(i,G(e),A,j(A,t)),this.communication_.sendMessage(e)},P.prototype.handleInternalMessage_=function(e,n){n=e.method;var t,i=e.guid;e=e.args,"response"===n&&this.callbackMap_[i]&&(t=B(A,e),this.callbackMap_[i].apply(this,t)),"error"===n&&window.console&&I(e)},P.prototype.sendInterfaceMessage_=function(e,n,t){try{this.sessionInterface_.sendMessage(e,n,t)}catch(e){I("Failed to communicate with SessionInterface with error:"),I(e)}},P.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},P.prototype.impressionOccurred=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},P.prototype.creativeLoaded=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},P.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",A,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},P.prototype.injectVerificationScripts_=function(e){e&&(e=e.map(function(e){return e.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",e,this.adSessionId_))},P.prototype.sendSlotElement_=function(e){this.sendElement_(e,"setSlotElement")},P.prototype.sendVideoElement_=function(e){this.sendElement_(e,"setVideoElement")},P.prototype.sendElement_=function(e,n){e&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(n,e,this.adSessionId_):this.error(r.ErrorType.GENERIC,"Session Client "+n+" called when communication is cross-origin"))},P.prototype.sendContentUrl_=function(e){e&&this.sendOneWayMessage("setContentUrl",e,this.adSessionId_)},P.prototype.setElementBounds=function(e){p("AdSession.elementBounds",e),this.sendOneWayMessage("setElementBounds",e,this.adSessionId_)},P.prototype.watchSessionEvents_=function(){var n=this;this.registerSessionObserver(function(e){e.type===r.AdEventType.SESSION_START&&(n.isSessionRunning_=!0,n.creativeType_=e.data.creativeType,n.impressionType_=e.data.impressionType),e.type===r.AdEventType.SESSION_FINISH&&(n.isSessionRunning_=!1)})},e("OmidSessionClient.AdSession",P),ee.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},k.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},k.prototype.loaded=function(e){e=void 0===e?null:e,this.adSession.creativeLoaded(),e=e?e.toJSON():null,this.adSession.sendOneWayMessage("loaded",e,this.adSessionId_)},e("OmidSessionClient.AdEvents",k),L.prototype.start=function(e,n){f("MediaEvents.start.duration",e),m("MediaEvents.start.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("start",e,n,this.adSessionId_)},L.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},L.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},L.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},L.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},L.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},L.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},L.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},L.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},L.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},L.prototype.volumeChange=function(e){m("MediaEvents.volumeChange.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("volumeChange",e,this.adSessionId_)},L.prototype.playerStateChange=function(e){p("MediaEvents.playerStateChange.playerState",e),this.adSession.sendOneWayMessage("playerStateChange",e,this.adSessionId_)},L.prototype.adUserInteraction=function(e){p("MediaEvents.adUserInteraction.interactionType",e),this.adSession.sendOneWayMessage("adUserInteraction",e,this.adSessionId_)},e("OmidSessionClient.MediaEvents",L),e("OmidSessionClient.OmidVersion",function(e,n){d("OmidVersion.semanticVersion",e),d("OmidVersion.apiLevel",n)}),e("OmidSessionClient.listenForServiceWindow",ne),e("OmidSessionClient.VastProperties",ee);var w={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9}};function te(e){for(var n=u.makeIterator(ie.keys()),t=n.next();!t.done;t=n.next())for(var t=t.value,i=u.makeIterator(ie.get(t)),r=i.next();!r.done;r=i.next())if(r.value.test(e))return t;return w.VerificationVendorId.OTHER}var ie=new Map([[w.VerificationVendorId.MOAT,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.moatads\.com\/.*$/]],[w.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[w.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[w.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[w.VerificationVendorId.NIELSEN,[]],[w.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[w.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[w.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]]]);e("OmidSessionClient.verificationVendorIdForScriptUrl",te),e("OmidSessionClient.VerificationVendorId",w.VerificationVendorId),w.verificationVendorIdForScriptUrl=te}var re="object"==typeof globalThis?globalThis:window,n={},t=void 0===re?this:re;if("object"==typeof(r=void 0===n?void 0:n)&&"string"!=typeof r.nodeName)e(t,r);else{var i,r={},a=["1.5.0-iab4484"],o="default";for(i in a.push(o),e(t,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(t,i)&&Object.defineProperty(t,i,{value:{}}),a.forEach(function(e){var n;null==Object.getOwnPropertyDescriptor(t[i],e)&&(n=function e(n){for(var t in n)n.hasOwnProperty(t)&&(n[t]=e(n[t]));return Object.freeze(n)}(r[i]),Object.defineProperty(t[i],e,{get:function(){return n},enumerable:!0}))}))}s.OmidSessionClient=n.OmidSessionClient}(),t={},e=self,n=function(){{var D,M,R,N,P={d:function(e,n){for(var t in n)P.o(n,t)&&!P.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},k={};P.d(k,{default:function(){return C}});let o=1,t=2,i=4,r="[MT] ",s=((D={})[D.NONE=0]="NONE",D[D.ERROR=1]="ERROR",D[D.WARNING=2]="WARNING",D[D.INFO=3]="INFO",D[D.DEBUG=4]="DEBUG",D),a=t;function L(e,n,t,i){a>=e&&(t=r+t,void 0===i?n.call(console,t):n.call(console,t,i))}let u=console.error,p=console.warn,f=console.debug;function w(e,n){L(o,u,e,n)}function ke(e,n){L(t,p,e,n)}function Le(e,n){L(i,f,e,n)}function U(e){return("object"==typeof globalThis?globalThis:window)?.[e]}function x(e){if(e){if(Array.isArray(e))return e.slice();if("object"==typeof e)return Object.assign({},e)}return null}function we(e){if(e)try{return JSON.parse(JSON.stringify(e))}catch(e){w("Exception during deep-copy: "+e,e)}return null}function V(e,n){if(null!=e)try{return new URL(e,n).toString()}catch(e){w("URL Exception: "+e,e)}return null}function Ue(r,a,o){let e=a?.length||0;if(0<e){let t=0,i=e-1;for(;t<=i;){let e=Math.ceil((t+i)/2),n=o(r,a[e]);if(0===n)return e;0<n?t=e+1:i=e-1}}return-1}let c=[];for(let e=0;e<256;e++)c.push((e+256).toString(16).substr(1).toLowerCase());let l=!!U("crypto")?.getRandomValues,_=(l||ke("crypto.getRandomValues() unavailable"),/P.*T(?:(\d+)H)?(?:(\d+)M)?(?:([\d.]+)S)?/),m=[2,9],W=10,pe=5,j=2,B="ad_start",fe="ad_end",me="ad_progress",_e="ad_click",he="ad_can_skip",ve="ad_incoming",Ee="nonlinear_ad_start",ge="nonlinear_ad_end",ye="ad_tracking_info_response",Se=0,Ie=1,Ae=2,Te=3,Oe=4,be=5,Ce=6,De=7,H=0,G=1,$=2,q=3,Y=4,z=5,K=6,X=7,J=8,Q=9,Z=10,ee=11,ne=12,te=13,ie=14,h=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],d=null;function xe(e){try{return JSON.parse(e)}catch(e){return ke("JSON Parse Exception: "+e,e),null}}function F(i,r,n,a,o){let s=new XMLHttpRequest,u=a?.retryHeuristics,c=0,l=!1;function d(){if(!l)try{{var t=s;var e=a;let n=e?.headers;t.open(i,r,!0),t.timeout=e?.timeout??0,n&&Object.keys(n).forEach(e=>{t.setRequestHeader(e,n[e])})}c++,s.send(n),Le(`XHR (${i} ${r}, #${c}) request sent`,n)}catch(e){ke("XHR Exception: "+e,e)}}return s.onreadystatechange=()=>{if(!l&&4===s.readyState){var e=s.status,n=s.responseText;if(Le(`XHR (${r}) response received, status `+e,n),e<200||299<e){var t=u?u(c,e,n):-1;if(0<=t)return setTimeout(d,t),void ke(`XHR (${r}) failed (status ${e}), retry in ${t} ms`,n)}o&&o(n,e,r)}},d(),{abort(){l=!0,s.abort(),Le(`XHR (${r}) aborted`)}}}function Ve(e,n,t){return F("GET",e,null,n,t)}let v="impression",Me="clickThrough",re="firstQuartile",ae="midpoint",oe="thirdQuartile",se="complete",E="creativeView",ue=[],Re=(ue[H]=[v],ue[G]=["clickTracking"],ue[$]=["loaded"],ue[q]=["start",E],ue[Y]=[re],ue[z]=[ae],ue[K]=[oe],ue[X]=[se],ue[J]=["skip"],ue[Q]=["pause"],ue[Z]=["resume"],ue[ee]=["mute"],ue[ne]=["unmute"],ue[te]=["fullscreen","playerExpand"],ue[ie]=["exitFullscreen","playerCollapse"],{}),ce=([v,"loaded","start",E,re,ae,oe,se].forEach(e=>{Re[e]={noninteractive:!0}}),"adData: ");function Fe(e){return e&&"object"==typeof e&&e}function We(a,e){if(!Fe(a))return null;let[,o]=e,s={},n=o.length;for(let r=0;r<n;r++){let[e,n,t]=o[r],i=t[0](a[e],t);if(null!=i)s[e]=i;else if(!n)return Le(ce+("Missing object field: "+e),a),null}return s}function je(e){return e&&Array.isArray(e)?e:null}function Be(t,e){if(!je(t))return null;let[,i,r]=e,a=[],o=t.length;for(let n=0;n<o;n++){let e=r[0](t[n],r);null!=e||i?a.push(e):Le(ce+("Invalid array entry at: "+n),t)}return a}function He(e){return"number"==typeof e?e:null}function Ge(e){return"string"==typeof e?e:null}let e=[He],n=[Ge],g=[function(e){return"boolean"==typeof e?e:null}],y=[We,[["content",!1,n],["type",!1,n]]],S=[We,[["beaconUrls",!1,[Be,!1,n]],["durationInSeconds",!0,e],["eventId",!0,n],["eventProgramDateTime",!0,n],["eventType",!1,n],["startTimeInSeconds",!0,e]]],Ne=[We,[["adId",!0,n],["adParameters",!0,n],["adSystem",!0,n],["adTitle",!0,n],["adVerifications",!0,[Be,!1,[We,[["executableResource",!0,[Be,!1,[We,[["apiFramework",!0,n],["language",!0,n],["type",!0,n],["uri",!0,n]]]]],["javaScriptResource",!0,[Be,!1,[We,[["apiFramework",!0,n],["browserOptional",!0,n],["uri",!0,n]]]]],["trackingEvents",!0,[Be,!1,[We,[["event",!1,n],["uri",!1,n]]]]],["vendor",!0,n],["verificationParameters",!0,n]]]]],["companionAds",!0,[Be,!1,[We,[["adParameters",!0,n],["altText",!0,n],["attributes",!0,[We,[["adSlotId",!0,n],["apiFramework",!0,n],["assetHeight",!0,n],["assetWidth",!0,n],["expandedHeight",!0,n],["expandedWidth",!0,n],["height",!0,n],["id",!0,n],["pxratio",!0,n],["renderingMode",!0,n],["width",!0,n]]]],["companionClickThrough",!0,n],["companionClickTracking",!0,n],["htmlResource",!0,n],["iFrameResource",!0,n],["sequence",!0,n],["staticResource",!0,n],["trackingEvents",!0,[Be,!1,[We,[["beaconUrls",!1,[Be,!1,n]],["eventType",!1,n]]]]]]]]],["creativeId",!0,n],["creativeSequence",!0,n],["extensions",!0,[Be,!1,y]],["trackingEvents",!0,[Be,!1,S]],["vastAdId",!0,n]]],Pe=[We,[["nonLinearAdList",!1,[Be,!1,[We,[["durationInSeconds",!1,e],["adId",!0,n],["adParameters",!0,n],["adSystem",!0,n],["adTitle",!0,n],["creativeId",!0,n],["creativeAdId",!0,n],["creativeSequence",!0,n],["width",!0,n],["height",!0,n],["expandedWidth",!0,n],["expandedHeight",!0,n],["scalable",!0,g],["maintainAspectRatio",!0,g],["minSuggestedDuration",!0,n],["apiFramework",!0,n],["staticResource",!0,n],["staticResourceCreativeType",!0,n],["iFrameResource",!0,n],["htmlResource",!0,n],["clickThrough",!0,n],["clickTracking",!0,n],["clickTrackingId",!0,n]]]]],["extensions",!0,[Be,!1,y]],["trackingEvents",!0,[Be,!1,S]]]],le=new DOMParser,I=/\n|<!\[CDATA\[|\]\]>/g;function $e(e){e=e?.textContent;return null==e?null:e.replace(I,"").trim()}function qe(e,n,t){t&&(e[n]=t)}function Ye(e,n){for(var t of e.children)n[t.tagName]?.(t)}function ze(e){let t=[];return Ye(e,{IconClickFallbackImage:e=>{let n={};t.push(n),qe(n,"width",e.getAttribute("width")),qe(n,"height",e.getAttribute("height")),Ye(e,{AltText:e=>{qe(n,"altText",$e(e))},StaticResource:e=>{qe(n,"staticResource",$e(e))}})}}),t}function Ke(n,f,m){if(Fe(n)){let o=Ge(n.dashAvailabilityStartTime),e=je(n.avails),t=(e?.forEach(t=>{if(Fe(t)){var i=Ge(t.availId);if(i){let c=He(t.startTimeInSeconds),l=He(t.durationInSeconds),d=(r=(r=Ge(t.adMarkerDuration))&&_.exec(r))?3600*((a=r[1])?+a:0)+60*((a=r[2])?+a:0)+((a=r[3])?+a:0):null;let p=Ge(t.availProgramDateTime);p=(p?new Date(p).getTime()/1e3:o?new Date(o).getTime()/1e3+c:0)||0,s(!1,t,c,l,p,d);var r=f[i];let n="",e=je(t.ads);e?.forEach(e=>{Fe(e)&&(n+=e.adId+`,${e.startTime},${e.duration};`)});var a=!r||n!==r.digest;if(Le(ce+`Avail ${a?r?"!":"":"~"}${i} `+`(${t.duration} @ ${t.startTime} / ${t.availProgramDateTime})`,t),a){let o={},s=r?.ads,u=e?.length;if(e?.forEach((n,t)=>{if(Fe(n)){var i=Ge(n.adId);if(i){var r=He(n.startTimeInSeconds);if(null==r)ke(ce+"Invalid or missing ad start time",n);else{o[i]={start:r,duration:n.duration};let e=null;s&&(e=s[i],s[i]=null);var a=!e||r!==e.start||n.duration!==e.duration;Le(ce+`Ad ${a?e?"!":"":"~"}${i} `+`(#${t+1} of ${u}) `+`(${n.duration} @ ${n.startTime} / ${n.adProgramDateTime})`,n),a&&m(r,t,u,c,l,p,d,n,!1,!1,e?.start)}}else ke(ce+"Missing ad ID",n)}else ke(ce+"Invalid ad object",e)}),s)for(let n in s){let e=s[n];e&&m(0,0,0,c,l,p,d,null,!1,!1,e.start)}f[i]={digest:n,ads:o}}}else ke(ce+"Missing avail ID",t)}else ke(ce+"Invalid avail object",e)}),je(n.nonLinearAvails));t?.forEach(e=>{var n;Fe(e)?(Le(ce+`nonLinearAvail (${e.startTime} / ${e.availProgramDateTime})`,e),s(!0,e,n=He(e.startTimeInSeconds),null,e=((e=Ge(e.availProgramDateTime))?new Date(e).getTime()/1e3:o?new Date(o).getTime()/1e3+n:0)||0,null)):ke(ce+"Invalid nonLinearAvail object",t)});n=Ge(n.nextToken);return n&&Le(ce+`nextToken "${n}"`),n;function s(e,n,t,i,r,a){n=je(n.nonLinearAdsList)?.[0];n&&(Fe(n)?null==t?ke(ce+"Invalid or missing nonlinear ad start time",n):(Le(ce+"nonLinearAds",n),m(t,0,1,t,i,r,a,n,!0,e)):ke(ce+"Invalid nonLinearAds object",n))}}else ke(ce+"Invalid tracking-info response")}(D={})[D.AD_START=B]="AD_START",D[D.AD_END=fe]="AD_END",D[D.AD_PROGRESS=me]="AD_PROGRESS",D[D.AD_CLICK=_e]="AD_CLICK",D[D.AD_CAN_SKIP=he]="AD_CAN_SKIP",D[D.AD_INCOMING=ve]="AD_INCOMING",D[D.NONLINEAR_AD_START=Ee]="NONLINEAR_AD_START",D[D.NONLINEAR_AD_END=ge]="NONLINEAR_AD_END",D[D.AD_TRACKING_INFO_RESPONSE=ye]="AD_TRACKING_INFO_RESPONSE",(M={})[M.START=Se]="START",M[M.END=Ie]="END",M[M.PAUSE=Ae]="PAUSE",M[M.RESUME=Te]="RESUME",M[M.MUTE=Oe]="MUTE",M[M.UNMUTE=be]="UNMUTE",M[M.FULLSCREEN=Ce]="FULLSCREEN",M[M.EXIT_FULLSCREEN=De]="EXIT_FULLSCREEN";let de=[];function Xe(r,n,e){let u="adTracking: ",v=(e,n)=>e-n.start,c=(e,n)=>e-n.startDate,a=(e,n)=>e.start-n.start,o={headers:{"Cache-Control":"no-cache, no-store"}},s=e.defaultTrackingRequestInterval||W,U=e.incomingAdCountdownInterval??pe,t=e.adTrackingUpdateMode||"pagination",x="playhead"===t,V="pagination"===t,E=[],F={},g=[],l,d=null,p=null,f=null,m=null,_=null,y=null,S=null,I=null,h=null,A=null,T=null,O=null,b=null,C=null,D=0,M=[],R=(()=>{let i=new EventTarget,a=null,r=null,o=-1,s=!1;function u(e,n){i.dispatchEvent(new CustomEvent(e,{detail:n}))}function c(e,n){var t=e.availDuration,i=e.inAvailStartOffset;return{toAdEnd:e.duration-n,toAvailEnd:null!=t&&null!=i?t-i-n:null,toSkipThreshold:0<=o?Math.max(0,o-n):null}}return{addEventListener(e,n,t){i.addEventListener(e,n,t)},removeEventListener(e,n,t){i.removeEventListener(e,n,t)},onTrackingInfoResponse(e){u(ye,{failedAdTrackingInfoRequest:e})},onAdStart(e,n,t){var i,r;a=(r=n,t=t,{adData:we(i=e),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:t+i.duration-r}),o=e.skipOffset,s=!1,u(B,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)})},onAdEnd(e){u(fe,{adObject:a}),a=null},onAdProgress(e,n,t){u(me,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)}),!s&&0<=o&&n>=o&&(s=!0,u(he,{adObject:a}))},onAdClick(e){u(_e,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart(e,n,t){r={adData:we(e)},u(Ee,{nonLinearAdsObject:r,adElapsedTime:n})},onNonLinearAdsEnd(e){u(ge,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}})();function N(t,i){let e=M.length;for(let n=0;n<e;n++){let e=M[n];e[t]?.apply(e,i)}}function P(e,n){n=n||d,Le(u+("Ad tracking event "+de[e]),n),N("onAdTrackingEvent",[n,e])}function k(e,n){!e.startDate&&O&&(e.startDate=n+O);n=l;(l=!!e.startDate)!==n&&Le(u+("Set adHasStartDate to "+l))}function L(e,n){var i,t=[["tttt",""+Date.now()]];x&&t.push(["aws.playheadPositionInSeconds",""+Math.round(n&&O?n-O:e)]),V&&T&&t.push(["aws.nextToken",T]),h?.abort(),n=(e=>{let n=new URL(r),t=new URLSearchParams(n.search);return e.forEach(e=>{t.append(e[0],e[1])}),n.search="?"+t.toString(),n.toString()})(t),i=(e,n)=>{if(200===n){let _=!1,h=!1;T=Ke(e,F,(t,i,r,a,o,n,s,u,c,l,d)=>{if(null!=a&&n&&(O=n-a),c){if(Ue(t,g,v)<0){c=t,n=n,l=l;let e=(m=We(p=u,Pe))?(f=m.nonLinearAdList.reduce((e,n)=>Math.max(e,n.durationInSeconds),0))?(Object.assign(m,{start:c,startDate:n,duration:f,nonlinearAvail:l}),Le(ce+`New NonLinearAdsData (${f}s @ ${c}s / ${n}s)`,m),m):(ke(ce+"Invalid nonlinear ad duration",p),null):(ke(ce+"Missing required fields for NonLinearAdsData",p),null);e&&(k(e,t),g.push(e),h=!0,N("onNewNonLinearAds",[e]))}}else{let e=null!=d?Ue(d,E,v):-1,n=u&&((t,e,n,i,r,a,o)=>{let s=He(o.durationInSeconds);if(null==s||s<=0)return ke(ce+"Invalid or missing ad duration",o),null;let u=Ge(o.adProgramDateTime);u=u&&new Date(u).getTime()/1e3;var c=Ge(o.skipOffset);let l=c&&new Date(`1970-01-01T${c}Z`).getTime()/1e3,d=(l||0===l||(l=-1),We(o,Ne));if(!d)return ke(ce+"Missing required fields for AdData",o),null;d.extensions?.forEach(e=>{if("AdVerifications"===e.type){var n=e.content;try{var t=le.parseFromString(n,"application/xml")?.documentElement,i=t?.getElementsByTagName("JavaScriptResource"),r=t?.getElementsByTagName("VerificationParameters"),a=t?.getAttribute("vendor"),o=$e(i?.[0]),s=$e(r?.[0]);a&&o?(d.adVerifications||(d.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):ke(ce+"Invalid AdVerifications extension content",e)}catch(e){ke(ce+"Exception parsing AdVerifications extension: "+n,e)}}else if("companion_about_this_ad"===e.type){t="<root>"+e.content+"</root>";try{let e=le.parseFromString(t,"application/xml")?.documentElement;e&&Ye(e,{Icon:e=>{let n=d.icons||(d.icons=[]),t={};n.push(t),qe(t,"program",e.getAttribute("program")),qe(t,"width",e.getAttribute("width")),qe(t,"height",e.getAttribute("height")),qe(t,"xPosition",e.getAttribute("xPosition")),qe(t,"yPosition",e.getAttribute("yPosition")),Ye(e,{StaticResource:e=>{qe(t,"staticResource",$e(e))},IconClicks:e=>{let n={};t.iconClicks=n,Ye(e,{IconClickThrough:e=>{qe(n,"iconClickThrough",$e(e))},IconClickFallbackImages:e=>{e=ze(e);e.length&&(n.iconClickFallbackImages=e)}})}})}})}catch(e){ke(ce+"Exception parsing AdChoices extension: "+t,e)}}else if("IconClickFallbackImages"===e.type){i="<root>"+e.content+"</root>";try{let e=le.parseFromString(i,"application/xml")?.documentElement;e&&Ye(e,{IconClickFallbackImages:e=>{var n={},e=((d.icons||(d.icons=[])).push(n),qe(n,"program",e.getAttribute("program")),ze(e));e.length&&(n.iconClicks={iconClickFallbackImages:e})}})}catch(e){ke(ce+"Exception parsing AdChoices extension: "+i,e)}}});let p=[0,0,0,0];function f(e,n){n-=t;0<n&&n<s+.01&&(p[e]=n)}return Object.assign(d,{start:t,startDate:u||0,duration:s,skipOffset:l,availAdIndex:e,availAdCount:n,availStart:i,availDuration:r,availMarkedDuration:a,inAvailStartOffset:null!=i?t-i:null,playCount:0,quartileEventOffsets:p}),d.videoClickThrough=null,d.trackingEvents=d.trackingEvents?.filter(e=>{switch(e.eventType){case Me:var n=e.beaconUrls[0];return n&&(d.videoClickThrough=n),!1;case re:f(0,e.startTimeInSeconds);break;case ae:f(1,e.startTimeInSeconds);break;case oe:f(2,e.startTimeInSeconds);break;case se:f(3,e.startTimeInSeconds)}return!0}),Le(ce+`New AdData (${s}s @ ${t}s / ${u})`,d),d})(t,i,r,a,o,s,u);n?(k(n,t),0<=e?(n.playCount=E[e].playCount,E[e]=n):E.push(n),_=!0,N("onNewAd",[n,0<=e])):0<=e&&(E.splice(e,1),_=!0)}var p,f,m}),_&&(E.sort(a),p=f=null,m=null),h&&(g.sort(a),y=S=null,I=null),N("onTrackingInfoResponse",[!1])}else ke(u+"Request failed, status "+n,e),N("onTrackingInfoResponse",[!0]);h=null},h=Ve(n,o,(e,n,t)=>{200===n&&null!=e&&(e=xe(e)),i(e,n)})}function w(e,n,t,i){let r,a,o;var s=i?"startDate":"start",t=((r,a,o)=>{let e=a?.length||0;if(0<e){let t=0,i=e-1;for(;t<i;){let e=Math.ceil((t+i)/2),n=o(r,a[e]);if(0===n)return e;0<n?t=e:i=e-1}if(0<t||0<=o(r,a[t]))return t}return-1})(t,n,i?c:v);return o=0<=t?(r=n[t],a=r[s],t+1<n.length?n[t+1][s]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,n.length?n[0][s]:Number.MAX_VALUE),Le(u+`Update time range (${a} - ${o}), `+e+" ad index "+t,r),[r,a,o]}function i(e){e&&M.indexOf(e)<0&&M.push(e)}return 0<=s&&L(0),i(R),i(((r,o)=>{let s={},a=null;return{onAdLoad(e){a={},e.trackingEvents?.forEach(e=>{a[e.eventType]=e})},onAdEnd(e){a=null},onAdTrackingEvent(t,e){var i=ue[e];if(a&&1===t.playCount&&i){let e=i.length;for(let n=0;n<e;n++){let e=i[n];r&&Re[e]?.noninteractive||((i,r)=>{var n=r?.beaconUrls;if(n){var t=n.length;for(let e=0;e<t;e++){var a=n[e]?.trim();a&&Ve(a,s,(e,n,t)=>{o(i,r,t,n)})}}})(t,a[e])}}}}})(e.disableNoninteractiveClientSideBeaconing,(e,n,t,i)=>{N("onAdBeaconResponse",[e,n,t,i])})),{updateAdTrackingInfo:function(){L(b??0,C),A=b},startUpdatingAdTrackingInfo:function(e){s=e||W,A=null},stopUpdatingAdTrackingInfo:function(){s=-1},onPlayheadUpdate:function(e,n){if(null!=b&&e>b&&e<b+j){0<=s&&!h&&(null==A||Math.abs(e-A)>=s)&&(L(e,n),A=e);var t=(n=l?n:null)||e,i=((null==p||t<p||t>=f)&&([m,p,f]=w("linear",E,t,n)),d),r=t-p;if((d=m&&t<p+m.duration?m:null)?.adId===i?.adId){if(d&&(Le(u+"Ad progresses, time => "+r),N("onAdProgress",[d,r,e]),r>D)&&r<D+j){let e=D;D=r,(a=d.quartileEventOffsets[0])&&e<a&&D>=a&&P(Y),(a=d.quartileEventOffsets[1])&&e<a&&D>=a&&P(z),(a=d.quartileEventOffsets[2])&&e<a&&D>=a&&P(K)}}else{if(i){let e=i.quartileEventOffsets[3];e&&D+j>e&&P(X,i),Le(u+"Ad ends",i),N("onAdEnd",[i])}D=0,d&&(d.playCount++,n&&Le(u+`PDT offset => player ${n-e}, ad `+(d.startDate-d.start),d),Le(u+"Ad loads",d),N("onAdLoad",[d]),P($),Le(u+"Ad starts, time => "+r,d),N("onAdStart",[d,r,e]),P(q),P(H))}if(!d){let e=f-t;e<=U&&R.dispatchEvent(ve,{timeToNextAd:e})}(null==y||t<y||t>=S)&&([I,y,S]=w("nonlinear",g,t,n));var a=_,i=t-y;(_=I&&t<y+I.duration?I:null)!==a&&(a&&(Le(u+"Nonlinear ad ends",a),N("onNonLinearAdsEnd",[a])),_)&&(n&&Le(u+`PDT offset => player ${n-e}, nonlinear ad `+(_.startDate-_.start),_),Le(u+"Nonlinear ad starts, time => "+i,_),N("onNonLinearAdsStart",[_,i,e]))}b=e,C=n},onPlaybackRateUpdate:function(e){},onPlaybackEvent:function(e){switch(e){case Se:n?.sendPlaybackStart();break;case Ie:n?.sendPlaybackEnd()}if(d)switch(e){case Ae:P(Q);break;case Te:P(Z);break;case Oe:P(ee);break;case be:P(ne);break;case Ce:P(te);break;case De:P(ie)}},onVideoClick:function(e){d&&(n?.sendAdTouch(e),N("onAdClick",[d]))},onPlayerControlClick:function(e){d&&n?.sendAdTouch(e)},onAdClickthrough:function(){d&&(n?.sendAdClick(),P(G))},onAdSkip:function(){d&&P(J)},addAdObserver:i,removeAdObserver:function(e){e&&0<=(e=M.indexOf(e))&&M.splice(e,1)},getAllAds:function(){return E.map(e=>we(e))},getAllNonLinearAds:function(){return g.map(e=>we(e))},addEventListener(e,n,t){R.addEventListener(e,n,t)},removeEventListener(e,n,t){R.removeEventListener(e,n,t)}}}de[H]="IMPRESSION",de[G]="CLICK_THROUGH",de[$]="LOADED",de[q]="START",de[Y]="FIRST_QUARTILE",de[z]="MID_POINT",de[K]="THIRD_QUARTILE",de[X]="COMPLETE",de[J]="SKIP",de[Q]="PAUSE",de[Z]="RESUME",de[ee]="MUTE",de[ne]="UNMUTE",de[te]="FULLSCREEN",de[ie]="EXIT_FULLSCREEN",(N={})[N.IMPRESSION=H]="IMPRESSION",N[N.CLICK_THROUGH=G]="CLICK_THROUGH",N[N.LOADED=$]="LOADED",N[N.START=q]="START",N[N.FIRST_QUARTILE=Y]="FIRST_QUARTILE",N[N.MID_POINT=z]="MID_POINT",N[N.THIRD_QUARTILE=K]="THIRD_QUARTILE",N[N.COMPLETE=X]="COMPLETE",N[N.SKIP=J]="SKIP",N[N.PAUSE=Q]="PAUSE",N[N.RESUME=Z]="RESUME",N[N.MUTE=ee]="MUTE",N[N.UNMUTE=ne]="UNMUTE",N[N.FULLSCREEN=te]="FULLSCREEN",N[N.EXIT_FULLSCREEN=ie]="EXIT_FULLSCREEN";let T=["overlayAvails","availSuppression","adSignaling","reportingMode"],A=((R={})[R.INVALID_CONFIG=0]="INVALID_CONFIG",R[R.INVALID_INIT_RESPONSE=1]="INVALID_INIT_RESPONSE",R[R.INIT_DISRUPTED=2]="INIT_DISRUPTED",R[R.INIT_ERROR=3]="INIT_ERROR",R);function Je(r,e,a,o){let s,u=null,c=r.trackingUrl,l=r.sessionInitUrl,n=r.sessionInitHeaders,d=r.sessionInitTimeout,p=r.palNonceManager||e,f=p?.getNonce?.()??null,m={getPlaybackUrl:()=>u,getTrackingUrl:()=>c,getPalNonce:()=>f,updateAdTrackingInfo(){s.updateAdTrackingInfo()},startUpdatingAdTrackingInfo(e){s.startUpdatingAdTrackingInfo(e)},stopUpdatingAdTrackingInfo(){s.stopUpdatingAdTrackingInfo()},onPlayheadUpdate(e,n){s.onPlayheadUpdate(e,n)},onPlaybackRateUpdate(e){s.onPlaybackRateUpdate(e)},onPlaybackEvent(e){s.onPlaybackEvent(e)},onVideoClick(e){s.onVideoClick(e)},onPlayerControlClick(e){s.onPlayerControlClick(e)},onAdClickthrough(){s.onAdClickthrough()},onAdSkip(){s.onAdSkip()},addAdObserver(e){s.addAdObserver(e)},removeAdObserver(e){s.removeAdObserver(e)},getAllAds:()=>s.getAllAds(),getAllNonLinearAds:()=>s.getAllNonLinearAds(),destroy(){},addEventListener(e,n,t){s.addEventListener(e,n,t)},removeEventListener(e,n,t){s.removeEventListener(e,n,t)}};if(c)s=Xe(c,p,r),a(m,"Session initialized elsewhere");else if(l){let t=x(r.originParams)||{},i=r.sessionFeatures;i&&T.forEach(e=>{var n=i[e];null!=n&&(t[e]=n)});var _,h,v,E,g=x(r.playerParams)||{},g=(g.device_sdk_info||=C.clientInfo,f&&(g.givn=f),t.playerParams=g,{}),y=(n&&(g.headers=n),d&&(g.timeout=d),Le(`createSession: Request sent to URL "${l}"`,t),l),S=t,I=(e,n)=>{200===n?(u=V(e?.manifestUrl,l))&&(c=V(e?.trackingUrl,l))?(s=Xe(c,p,r),a(m,"Successful session response",e)):o(A.INVALID_INIT_RESPONSE,"Invalid session response"):0===n?o(A.INIT_DISRUPTED,"Disrupted session initialization"):o(A.INIT_ERROR,"Failed session initialization")};try{(g=x(g)||{}).headers=(v={"Content-Type":"application/json; charset=utf-8"},(E=g.headers)?Object.assign(v,E):v),_=y,h=JSON.stringify(S),F("POST",_,h,g,(e,n,t)=>{200===n&&null!=e&&(e=xe(e)),I&&I(e,n)})}catch(y){return void ke("JSON Encode Exception: "+y,y)}}else o(A.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function Qe(t,i,r,a){let o="createSession: ";function s(e,n,t){Le(o+n,t),i?i(e,null):r(e)}function u(e,n){var t={code:e,message:n};w(o+`(${e}) `+n),i?i(null,t):a(t)}if(t){let e=t.palNonceRequestParams;if(t.trackingUrl||t.palNonceManager||!e)return Je(t,null,s,u);let n=(i=>{var e="nonceReq: ";if(d){var n=U("goog")?.pal?.NonceRequest;if(n){let t=new n;t.omidPartnerName="MediaTailor",t.omidPartnerVersion="1.0.0",t.supportedApiFrameworks=m,h.forEach(e=>{var n=i[e];null!=n&&(t[e]=n)}),t.sessionId||(t.sessionId=(()=>{var n=new Uint8Array(16);if(l)crypto.getRandomValues(n);else for(let e=0;e<16;e++)n[e]=Math.floor(256*Math.random());return n[6]=15&n[6]|64,n[8]=63&n[8]|128,c[n[0]]+c[n[1]]+c[n[2]]+c[n[3]]+"-"+c[n[4]]+c[n[5]]+"-"+c[n[6]]+c[n[7]]+"-"+c[n[8]]+c[n[9]]+"-"+c[n[10]]+c[n[11]]+c[n[12]]+c[n[13]]+c[n[14]]+c[n[15]]})());n=d.loadNonceManager?.(t);return n?Le(e+"Request sent",t):w(e+"Request failed",t),n}w(e+"Missing PAL SDK classes")}else w(e+"PAL isn't initialized");return null})(e);n?n.then(e=>{Le(o+"NonceManager received",e),Je(t,e,s,u)}).catch(e=>{ke(o+"Nonce request rejected",e),Je(t,null,s,u)}):(ke(o+"Unable to create a nonce request"),Je(t,null,s,u))}else u(A.INVALID_CONFIG,"Missing config")}let O="1.7.0",b=(console.debug("[MT] AWS Elemental MediaTailor SDK v1.7.0"),{initPal:function(n,t){let e="initPal: ";if(!n){if(!t)return w(e+"Missing consent settings"),!1;var i=U("goog")?.pal,r=i?.NonceLoader,i=i?.ConsentSettings;if(!r||!i)return w(e+"Missing PAL SDK classes"),!1;{let e=new i;e.allowStorage=t.allowStorage??!1,n=new r(e)}}return d&&ke(e+"Resetting NonceLoader"),d=n,!0},createSession:function(t,e){if(!e)return new Promise((e,n)=>{Qe(t,null,e,n)});Qe(t,e,null,null)},PlaybackEvent:M,AdTrackingEvent:N,SessionUiEvent:D,setLogLevel:function(e){0<=e&&e<=i?a=e:console.warn(r+"Invalid log level: "+e)},LogLevel:s,getSdkVersion:()=>O,clientInfo:"MTSDK v"+O}),C=b;return k.default}},"object"==typeof t?t.mediatailor=n():e.mediatailor=n(),s.mediatailor=t.mediatailor,s)),yc&&(module.exports=yc.datazoom)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datazoom/collector_videojs_mt_om",
3
- "version": "2.24.0",
3
+ "version": "2.26.0",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {