@datazoom/collector_jw_mt_om 2.25.0 → 2.26.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +1 -1
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{var e,n,t,s,Dc="object"==typeof module?{}:null;((Ze,en,g)=>{var y,f,nn=Ze.Object,S=Ze.Array,A=Ze.Date,hn=Ze.Number,T=Ze.String,O=Ze.RegExp,tn=Ze.Math,b=Ze.XMLHttpRequest,C=Ze.Uint8Array,M=Ze.ArrayBuffer,D=Ze.JSON,vn=Ze.Promise,R=Ze.URL,N=Ze.URLSearchParams,P=Ze.EventTarget,k=Ze.CustomEvent,En=Ze.document||{},e=En.currentScript||{},L=Ze.location||{},w=Ze.navigator||{},U=w.userAgent||"",gn=w.connection||w.mozConnection||w.webkitConnection,x=Ze.crypto,V=Ze.console||{},n=Ze.performance,F=Ze.setInterval,W=Ze.setTimeout,j=Ze.decodeURIComponent,B=Ze.encodeURIComponent;try{y=Ze.localStorage,f=Ze.sessionStorage}catch(e){}function H(t){return t?function(e,n){e="[DZ] "+e,void 0===n?t.call(V,e):t.call(V,e,n)}:null}var t=H(V.log)||function(){},G=H(V.error)||t,z=H(V.warn)||t,$=H(V.info)||t,Y=H(V.debug)||t,yn={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},q="datazoom_",K="custom_",X="v_";if(yn[t="__"+q+"rootobj"]=1,Dc)Dc.datazoom=yn;else{if($n(Ze.datazoom)){if(Ze.datazoom[t])return z("Collector already loaded");z("Overwriting window.datazoom")}Ze.datazoom=yn}function E(n,t,e){var i,r=t.shift();return null==r?i=n:n?r instanceof O?nn.keys(n).some(function(e){if(r.test(e))return null!=(i=E(n[e],t.slice()))}):i=E(n[r],t):i=null,null!=i?i:e}function rn(e){return"function"==typeof e}function J(e,n){if(rn(e))try{return new(e=n?e.bind.apply(e,[null].concat(n)):e),1}catch(e){}}J(R,["http://x.io"])&&J(N)||(N=function(e){var i=[];function t(e,n){!1!==n&&i.push([e,n])}function r(n){i=i.filter(function(e){return e[0]!==n})}e&&e.slice(1).split("&").forEach(function(e){e=e.split("=");try{i.push([j(e[0]),null==e[1]||j(e[1])])}catch(e){on(e,"URLSearchParams()")}});e=this;e.append=t,e["delete"]=r,e.set=function(e,n){r(e),t(e,n)},e.get=function(n){var t=null;return i.some(function(e){if(e[0]===n)return t=e[1],!0}),t},e.toString=function(){return i.map(function(e){var n=B(e[0]);return!0===e[1]?n:n+"="+B(e[1])}).join("&")}},R=function(e){var n=this,e=e.split("?"),t=e[0],e=e[1]?"?"+e[1]:"";n.search=e,n.searchParams=new N(e),n.toString=function(){return t+n.search}}),J(P)&&J(k,["x"])||(P=function(){var t=this,i={};t.addEventListener=function(e,n){var t=i[e];t||(i[e]=t=[]),t.push(n)},t.removeEventListener=function(e,n){var t=i[e];t&&(i[e]=t.filter(function(e){return e!=n}))},t.dispatchEvent=function(n){var e=i[n.type];e&&e.forEach(function(e){W(function(){e.call(t,n)},0)})}},k=function(e){this.type=e}),en=nn.assign({},{cn:"JW Player (MT/OM)",sv:"2.25.0",cf:"",mf:null,ev:[],fd:[],md:[],mb:"",sw:!1,sm:"",sp:[],ss:"",sd:"",sc:"",ip:"",ts:"",ab:"",st:null,hi:1e4,ti:200,cm:null,am:null,cq:null,aq:null,rd:[1,2,4,8,8,8,8],bd:50,kd:50,mh:5e3,ml:0,mc:256,mp:2,ep:2,ed:2e3,ec:hn.MAX_VALUE,cc:"",cl:"",ci:"",cd:[],og:!0,os:!0,tt:!1,om:!1,ps:null,sn:["IDLE","CT_REQUESTED","CT_BUFFERING","CT_PLAYING","CT_PAUSED","CT_SEEKING","CT_COMPLETED","CT_STOPPED","CT_ERROR","AD_BUFFERING","AD_PLAYING","AD_PAUSED","AD_SEEKING","AD_COMPLETED","AD_SKIPPED","AD_ERROR","AD_BREAK_STARTED","AD_BREAK_ENDED"],le:function(e){var n=e.event,t=e.video;On("[Event] "+n.type+(t?" ("+t.media_type+")":"")+" @"+n.timestamp,ln(e))}},en||{});var o,Q,Sn,Z={datapoints:{events:"ev",flux_data:"fd",metadata:"md",cmcd:"cd"},endpoints:{event_ingest:"mb",sampling:"sm",server_ts:"ts",ad_blocker_bait:"ab",ip_api:"ip"},sampling:{enable:"sw",definition_namespace:"ss",definition_key_name:"sd",criteria_sampling_key_name:"sc",criteria_matching_fields:"sp"},customer_code:"cc",connector_list:"cl",app_session_timeout_mins:"st",heartbeat_interval_ms:"hi",content_milestone_percent:"cm",ad_milestone_percent:"am",content_qv_sec:"cq",ad_qv_sec:"aq",observability:{lag_enabled:"og",loss_enabled:"os"},om_enabled:"om",configuration_id:""},ee=!Dc&&e.src||"/",ne=L.href||"https://localhost",te="configuration_id",ie="urn:x-cast:io.datazoom.collector",In="transfer",re=0,ae=1,oe=2,se=3,ue=4,ce=5,le={off:re,error:ae,warning:oe,info:se,debug:ue,verbose:ce},de=oe;function pe(e){var n;e&&(n=le[e],re<=(n=null!=n?n:+e)&&n<=ce?de=n:z("Invalid log level: "+e))}function fe(){o={},Q=[],[[en.ps],[ee.split("?")[1]],[ne.split("?")[1],q]].forEach(function(e){var i=e[1];e[0]&&e[0].split("&").forEach(function(e){try{var n=e.split("="),t=j(n[0]);if(i){if(!t.startsWith(i))return;t=t.slice(i.length)}o[t]=null==n[1]||j(n[1]),t.startsWith("x-")&&Q.push([t,o[t]])}catch(e){z("Invalid query string: "+e.message)}})}),Sn="true"==o.demo,pe(o.log)}fe();var me="io.datazoom.",_e=me,he="__ss_ev_count",ve="__ss_last_act",Ee="__ss_custom_md",ge="__ss_msg_queue",ye="__ss_sm_resp",Se="__ss_appss_to",Ie="collector_observability",Ae="loss",Te="process_duration_ms",Oe="send_duration_ms",be="call_duration_ms",Ce="queue_duration_ms",Me="evnt_fail",De="attempt_count",Re="attempt",Ne="status_code",Pe="status_codes",ke="b4_ss",Le="sample",we="config",Ue="log",xe="server_ts",Ve="ip_api";function Fe(e,n,t,i){de<e||n(t,i)}function An(e,n){Fe(ae,G,e,n)}function an(e,n){Fe(oe,z,e,n)}function Tn(e,n){Fe(se,$,e,n)}function On(e,n){Fe(ue,Y,e,n)}function We(e,n){Fe(ce,Y,e,n)}function on(e,n){n="[Exception] "+(n?"("+n+") ":"")+e;return An(n,e),n}function bn(t,i,r,a,o){var s,u=0,c=1,l=0;return i=i||"",r=r||1,a=a||hn.MAX_VALUE,{log:function(e,n){o&&(s=sn())>=l+o&&(u=0,c=1,l=s),++u>=c&&(t("["+u+"] "+i+e,n),c+=tn.min(c*r,a))}}}function Cn(e,n){m(Ze,"postMessage",[{type:e,data:n},"*"])}var je,sn,Be,He,Ge,ze,$e=[],Ye=0;function qe(e,n,t,i,r,a,o,s){var t={time:t,metric_name:i,dimension:{},batch:function(){return a}},u=(e&&(t.type=e),null!=r&&(t.metric_value=r),t.dimension);return n&&(u.target=n),s&&s.forEach(function(e){u[e[0]]=e[1]}),o&&(u[ke]=!0),t}function Ke(i,r,a,o){var s=r,u=1,c=Ye++;return{retry:function(e){s=e,u++},log:function(e,n){var t;en.og&&(null!=a&&$e.push(qe(null,i,t=r-a,Te,e-t,c,o,[[De,u],[Ne,n]]),qe(null,i,t,Ce,a,c,o)),$e.push(qe(null,i,r,Oe,e-r,c,!1,[[De,u],[Ne,n]]),qe(null,i,s,be,e-s,c,!1,[[Re,u],[Ne,n]])))}}}function Xe(e,n){var t,i;en.os&&(i=e.t,i=tn.trunc(i/6e4),(i=(je=je||{})[i]||(je[i]=[0,0,0]))[2]++,t=(i=i[3]||(i[3]={}))[n],e=ys(e.m,pr),t?t.push(e):i[n]=[e])}function Je(e){var n,t=je[e],i=Ye++;t[2]&&(t[3]&&(n=[[Pe,t[3]]]),$e.push(qe(Ae,null,6e4*+e,Me,t[2],i,!1,n)))}function un(e){return e&&(zn(e)?e.slice():nn.assign({},e))}function Qe(e,n){return $n(n)?e?nn.assign({},e,n):n:e}function Mn(e,n){var t;return n?((t={})[e]=n,t):null}function Dn(t,i){var r;return i?t?(r=un(t),nn.keys(i).forEach(function(e){var n=t[e];r[e]=n?nn.assign({},n,i[e]):i[e]}),r):i:t}function m(e,n,t,i){n=E(e,[n],i);return rn(n)?n.apply(e,t):null}function Rn(e,n,t){return function(){try{return n.apply(e,arguments)}catch(e){on(e,t)}}}function Nn(t,e){nn.keys(t).forEach(function(n){e.forEach(function(e){e[n]=Rn(e,t[n],n)})}),e[0]}function Pn(e){var n={};return e.forEach(function(e){n[e.nm]=e}),n}function kn(e){var n={};return e.forEach(function(e){n[e.nm]=!0}),n}function Ln(e,n,t){e.forEach(function(e){e[n]=t})}function wn(e,n){var e=new R(e,ne),t=new N(e.search);return n(t),e.search="?"+t.toString(),e.toString()}function Un(e){var n,t=Q.length;return t?wn(e,function(e){for(n=0;n<t;n++)e.append(Q[n][0],Q[n][1])}):e}function xn(e,n,t){var i;return null!=(i=e?new R(e,ne).searchParams.get(n):i)?i:t}Be=0,He=en.ec,Ge=bn(an,"Abnormal clock increment: ",.2,1e3,3e5),n&&n.now,ze=Be+A.now(),sn=function(e){var n=A.now(),t=ze,i=(ze=Be+n)-t;return(i<0||He<i)&&(ze=t+en.ti,Be=ze-n,Ge.log(i)),ze};var cn=(()=>{for(var t=[],e=0;e<256;e++)t.push((e+256).toString(16).substr(1).toLowerCase());return function(){var e=new C(16);if(x&&x.getRandomValues)x.getRandomValues(e);else{an("getRandomValues() not supported");for(var n=0;n<16;n++)e[n]=tn.floor(256*tn.random())}return e[6]=15&e[6]|64,e[8]=63&e[8]|128,t[e[0]]+t[e[1]]+t[e[2]]+t[e[3]]+"-"+t[e[4]]+t[e[5]]+"-"+t[e[6]]+t[e[7]]+"-"+t[e[8]]+t[e[9]]+"-"+t[e[10]]+t[e[11]]+t[e[12]]+t[e[13]]+t[e[14]]+t[e[15]]}})();function Vn(e,n,t,i,r,a){var o=new b;if(o.open(e,n,!0),null!=a&&(o.timeout=a),t)for(var s=nn.keys(t),u=0;u<s.length;u++)o.setRequestHeader(s[u],t[s[u]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function ln(e){if(e)try{return D.stringify(e)}catch(e){on(e,"toJSON")}return null}function dn(e){if(e)try{return D.parse(e)}catch(e){on(e,"fromJSON")}return null}function Fn(e,n){return(e===f?_e:me)+n}function _(e,n,t){if(e)if(null==t)jn(e,n);else try{e.setItem(Fn(e,n),ln({v:t}))}catch(e){on(e,"storageSet")}}function Wn(e,n){e=e?dn(e.getItem(Fn(e,n))):null;return e?e.v:null}function jn(e,n){e&&e.removeItem(Fn(e,n))}Ze.self!==Ze.top&&On("Page loaded in a frame, set sessionStorage prefix to: "+(_e+=(o.frame_id||cn())+"."));var Bn=dn('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Hn(e){return"string"==typeof e}function Gn(e){return hn.isFinite(e)}function zn(e){return S.isArray(e)}function $n(e){return null!=e&&"object"==typeof e&&!zn(e)}function Yn(e){return Hn(e)?e:""+e}function qn(e){return Gn(e=+e)?e:null}function Kn(n,t,i){return null==n&&null==t?qn:function(e){return null!=(e=qn(e))&&(null!=n&&e<n?e=i?null:n:null!=t&&t<e&&(e=i?null:t)),e}}function Xn(e){return tn.round(e)}function Jn(e,n){for(var t=0;t<n.length;t++)!function(e){for(var n=e,t=1;t<arguments.length;t++)n.dv||(n.dv=[]),n.dv.push(arguments[t])}(n[t],e)}function Qn(e,n){if(n)for(var t=0;t<n.length&&null!=e;t++)e=n[t](e);return e}var Zn,et,nt,tt,it=4,rt=8,at=16,ot=32,I=65535,st=it,t=1|at,n=(e=it|at)|ot,r=rt,ut={ap:2,nm:"ad_break_start"},ct={ap:2,nm:"ad_break_end"},lt={ap:2,nm:"ad_click"},dt={ap:2,nm:"ad_impression"},pt={ap:2,nm:"ad_skip"},ft={ap:st,nm:"app_session_end"},mt={ap:3,nm:"audio_track_changed"},_t={ap:3,nm:"buffer_start"},ht={ap:3,nm:"buffer_end"},vt={ap:3,nm:"cast_start"},Et={ap:3,nm:"cast_end"},gt={ap:3,nm:"cast_transfer"},yt={ap:I,nm:"context_ready"},St={ap:st,nm:"datazoom_loaded"},It={ap:3,nm:"error"},At={ap:3,nm:"exit_fullscreen"},Tt={ap:3,nm:"fullscreen"},Ot={ap:3,nm:"heartbeat"},bt={ap:3,nm:"media_loaded"},Ct={ap:1,nm:"media_object_request"},Mt={ap:3,nm:"media_request"},Dt={ap:3,nm:"milestone"},Rt={ap:3,nm:"mute"},Nt={ap:3,nm:"pause"},Pt={ap:3,nm:"play_btn"},kt={ap:3,nm:"playback_start"},Lt={ap:3,nm:"playback_complete"},wt={ap:1,nm:"player_ready"},Ut={ap:3,nm:"playing"},xt={ap:3,nm:"qualified_view"},Vt={ap:1,nm:"quality_change_request"},Ft={ap:3,nm:"rendition_change"},Wt={ap:3,nm:"resize"},jt={ap:3,nm:"resume"},Bt={ap:3,nm:"seek_start"},Ht={ap:3,nm:"seek_end"},Gt={ap:3,nm:"stall_start"},zt={ap:3,nm:"stall_end"},$t={ap:3,nm:"stop"},Yt={ap:3,nm:"subtitle_change"},qt={ap:3,nm:"unmute"},Kt={ap:3,nm:"volume_change"},Xt=(Mt.rtc=0,kt.rtc=1,Nt.rtc=2,_t.rtc=3,Gt.rtc=4,Bt.rtc=5,Ft.rtc=6,Dt.rtc=7,Mt.rta=8,kt.rta=9,_t.rta=10,Gt.rta=11,Dt.rta=12,It.rta=pt.rta=Lt.rta=13,ut.rta=14,ct.rta=15,Ot.rt=16,_t.rt=17,Gt.rt=18,["event","metrics"]),Jt={ap:t,nm:"bandwidth_kbps"},Qt={ap:t,nm:"buffer_duration_ms"},Zt={ap:t,nm:"buffer_duration_ads_ms"},ei={ap:t,nm:"buffer_duration_content_ms"},ni={ap:t,nm:"buffer_fill_percent"},ti={ap:t,nm:"buffer_length_ms"},ii={ap:t,nm:"content_session_start_ts_ms"},ri={ap:3,nm:"current_audio_track"},ai={ap:t,nm:"current_subtitles"},oi={ap:e,nm:"engagement_duration_ms"},si={ap:e,nm:"engagement_duration_ads_ms"},ui={ap:e,nm:"engagement_duration_content_ms"},ci={ap:r,nm:"event_count"},li={ap:t,nm:"num_ad_break_plays"},di={ap:e,nm:"num_ad_plays"},pi={ap:e,nm:"num_content_plays"},fi={ap:e,nm:"num_errors"},mi={ap:e,nm:"num_errors_ads"},_i={ap:e,nm:"num_errors_content"},hi={ap:e,nm:"num_requests_content"},vi={ap:t,nm:"pause_duration_ms"},Ei={ap:t,nm:"pause_duration_ads_ms"},gi={ap:t,nm:"pause_duration_content_ms"},yi={ap:t,nm:"playback_duration_ms"},Si={ap:t,nm:"playback_duration_ads_ms"},Ii={ap:2,nm:"playback_duration_ad_session_ms"},Ai={ap:t,nm:"playback_duration_content_ms"},Ti={ap:t,nm:"playback_duration_promo_ms"},Oi={ap:3,nm:"playback_rate"},bi={ap:t,nm:"player_state"},Ci={ap:t,nm:"player_viewable"},Mi={ap:t,nm:"player_viewable_percent"},pn={ap:3,nm:"playhead_position_sec"},Di={ap:t,nm:"playhead_pdt_sec"},Ri={ap:3,nm:"rendition_audio_bitrate_kbps"},Ni={ap:3,nm:"rendition_height"},Pi={ap:3,nm:"rendition_name"},ki={ap:3,nm:"rendition_video_bitrate_kbps"},Li={ap:3,nm:"rendition_width"},wi={ap:t,nm:"stall_count"},Ui={ap:t,nm:"stall_count_ads"},xi={ap:t,nm:"stall_count_content"},Vi={ap:t,nm:"stall_duration_ms"},Fi={ap:t,nm:"stall_duration_ads_ms"},Wi={ap:t,nm:"stall_duration_content_ms"},ji={ap:t,nm:"time_since_last_ad_break_start_ms"},Bi={ap:t,nm:"time_since_last_ad_completed_ms"},Hi={ap:t,nm:"time_since_last_buffer_start_ms"},Gi={ap:t,nm:"time_since_last_buffer_start_ad_ms"},zi={ap:t,nm:"time_since_last_buffer_start_content_ms"},$i={ap:t,nm:"time_since_last_heartbeat_ms"},Yi={ap:t,nm:"time_since_last_milestone_ad_ms"},qi={ap:t,nm:"time_since_last_milestone_content_ms"},Ki={ap:t,nm:"time_since_last_pause_ms"},Xi={ap:t,nm:"time_since_last_rendition_change_ms"},Ji={ap:t,nm:"time_since_last_request_ad_ms"},Qi={ap:t,nm:"time_since_last_seek_start_ms"},Zi={ap:t,nm:"time_since_last_stall_start_ms"},er={ap:t,nm:"time_since_last_stall_start_ad_ms"},nr={ap:t,nm:"time_since_last_stall_start_content_ms"},tr={ap:t,nm:"time_since_last_started_ad_ms"},ir={ap:t,nm:"time_since_request_content_ms"},rr={ap:t,nm:"time_since_started_content_ms"},ar={ap:t,nm:"volume_level_percent"};Ln([Qt,Zt,ei,vi,Ei,gi,yi,Si,Ai,Ti,wi,Ui,xi,Vi,Fi,Wi,di,fi,mi,_i,pi,hi],"df",0),ir.ts=0,rr.ts=1,Ki.ts=2,zi.ts=3,nr.ts=4,Qi.ts=5,Xi.ts=6,qi.ts=7,Ji.ts=8,tr.ts=9,Gi.ts=10,er.ts=11,Yi.ts=12,ji.ts=14,Bi.ts=13,$i.ts=16,Hi.ts=17,Zi.ts=18;var or=["ops_metadata"],sr=["custom"],ur=["vendor"],cr={p:_r=[],ap:n,nm:"configuration_id"},lr={p:_r,ap:n,nm:"connector_list"},dr={p:_r,ap:n,nm:"customer_code"},pr={p:_r,ap:r,nm:"event_id"},fr={p:hr=["event"],ap:r,nm:"timestamp"},mr={p:hr,ap:r,nm:"type"},_r={p:i=["cmcd"],ap:r,nm:"bl"},hr={p:i,ap:r,nm:"br"},vr={p:i,ap:r,nm:"bs"},Er={p:i,ap:r,nm:"cid"},gr={p:i,ap:r,nm:"d"},yr={p:i,ap:r,nm:"dl"},Sr={p:i,ap:r,nm:"mtp"},Ir={p:i,ap:r,nm:"nor"},Ar={p:i,ap:r,nm:"nrr"},Tr={p:i,ap:r,nm:"ot"},Or={p:i,ap:r,nm:"pr"},br={p:i,ap:r,nm:"rid"},Cr={p:i,ap:r,nm:"rtp"},Mr={p:i,ap:r,nm:"sf"},Dr={p:i,ap:r,nm:"sid"},Rr={p:i,ap:r,nm:"st"},Nr={p:i,ap:r,nm:"su"},Pr={p:i,ap:r,nm:"tb"},i={p:i,ap:r,nm:"v"},kr={p:a=["event","attributes"],ap:r,nm:"abs_shift"},Lr={p:a,ap:r,nm:"error_code"},wr={p:a,ap:r,nm:"error_msg"},Ur={p:a,ap:r,nm:"inner_error"},xr={p:a,ap:r,nm:"heartbeat_count"},Vr={p:a,ap:r,nm:"milestone_percent"},Fr={p:a,ap:r,nm:"qualified_view_sec"},Wr={p:a,ap:r,nm:"seek_start_point_ms"},jr={p:a,ap:r,nm:"seek_end_point_ms"},Br={p:a,ap:r,nm:"startup_duration_content_ms"},Hr={p:a,ap:r,nm:"startup_duration_total_ms"},Gr={p:s=["user_details"],ap:e,nm:"app_session_id"},zr={p:s,ap:e,nm:"app_session_start_ts_ms"},a={p:s,ap:e,nm:"app_session_end_ts_ms"},$r={p:s,ap:t,nm:"cast_app_session_id"},Yr={p:s,ap:t,nm:"cast_content_session_id"},qr={p:s,ap:n,nm:"client_ip"},Kr={p:s,ap:t,nm:"content_session_id"},s={p:s,ap:e,nm:"user_agent"},Xr={p:u=["player"],ap:t,nm:"autostart"},Jr={p:u,ap:t,nm:"casting"},Qr={p:u,ap:t,nm:"controls"},Zr={p:u,ap:t,nm:"default_muted"},ea={p:u,ap:t,nm:"default_playback_rate"},na={p:u,ap:t,nm:"fullscreen"},ta={p:u,ap:t,nm:"loop"},ia={p:u,ap:t,nm:"muted"},ra={p:u,ap:t,nm:"player_name"},aa={p:u,ap:t,nm:"player_version"},oa={p:u,ap:t,nm:"preload"},sa={p:u,ap:t,nm:"ready_state"},ua={p:u,ap:t,nm:"streaming_protocol"},ca={p:u,ap:t,nm:"streaming_type"},la={p:u,ap:t,nm:"subtitles"},u={p:c=["device"],ap:e,nm:"advertising_id"},da={p:c,ap:e,nm:"browser_name"},pa={p:c,ap:e,nm:"browser_height"},fa={p:c,ap:e,nm:"browser_version"},ma={p:c,ap:e,nm:"browser_width"},_a={p:c,ap:e,nm:"cookies_enabled"},ha={p:c,ap:n,nm:"device_id"},va={p:c,ap:e,nm:"device_mfg"},Ea={p:c,ap:e,nm:"device_name"},ga={p:c,ap:e,nm:"device_type"},ya={p:c,ap:e,nm:"orientation"},Sa={p:c,ap:e,nm:"os_name"},c={p:c,ap:e,nm:"os_version"},Ia={p:Ya=["video"],ap:t,nm:"asset_id"},Aa={p:Ya,ap:t,nm:"description"},Ta={p:Ya,ap:t,nm:"duration_sec"},Oa={p:Ya,ap:t,nm:"frame_rate"},ba={p:Ya,ap:t,nm:"media_tags"},Ca={p:Ya,ap:3,nm:"media_type"},Ma={p:Ya,ap:t,nm:"player_height"},Da={p:Ya,ap:t,nm:"player_width"},Ra={p:Ya,ap:t,nm:"source"},Na={p:Ya,ap:t,nm:"title"},Pa={p:l=["geo_location"],ap:n,nm:"city"},ka={p:l,ap:n,nm:"country"},La={p:l,ap:n,nm:"country_code"},wa={p:l,ap:n,nm:"latitude"},Ua={p:l,ap:n,nm:"longitude"},xa={p:l,ap:n,nm:"postal_code"},Va={p:l,ap:n,nm:"region"},Fa={p:l,ap:n,nm:"region_code"},Wa={p:l,ap:n,nm:"continent"},ja={p:l,ap:n,nm:"continent_code"},Ba={p:l,ap:n,nm:"district"},Ha={p:l,ap:n,nm:"timezone_name"},Ga={p:l,ap:n,nm:"timezone_offset"},za={p:no=["network"],ap:n,nm:"asn"},$a={p:no,ap:n,nm:"asn_org"},Ya={p:no,ap:e,nm:"connection_type"},qa={p:no,ap:n,nm:"isp"},Ka={p:no,ap:n,nm:"mobile_connection"},Xa={p:or,ap:r,nm:"context_id"},Ja={p:or,ap:r,nm:"context_name"},l={p:or,ap:e,nm:"dz_dictionary_version"},Qa={p:or,ap:r,nm:"msg_send_client_ts_ms"},Za={p:or,ap:r,nm:"player_context_id"},eo={p:or,ap:n,nm:"server_ts_offset_ms"},no={p:go=["page"],ap:e,nm:"collector_name"},to={p:go,ap:e,nm:"dz_sdk_version"},io={p:go,ap:e,nm:"page_title"},ro={p:go,ap:e,nm:"page_url"},ao={p:go,ap:e,nm:"referrer_url"},oo={p:go,ap:e,nm:"site_domain"},so={p:d=["ad"],ap:n,nm:"ad_blocker"},uo={p:d,ap:t,nm:"ad_break_id"},co={p:d,ap:2,nm:"ad_click_url"},lo={p:d,ap:2,nm:"ad_creative_id"},po={p:d,ap:2,nm:"ad_duration_sec"},fo={p:d,ap:2,nm:"ad_id"},mo={p:d,ap:2,nm:"ad_partner"},_o={p:d,ap:t,nm:"ad_position"},ho={p:d,ap:2,nm:"ad_session_id"},vo={p:d,ap:2,nm:"ad_system"},Eo={p:d,ap:2,nm:"ad_time_offset_sec"},go={p:d,ap:e,nm:"ad_tracking_opt_out"},yo={p:d,ap:2,nm:"advertiser_name"},So={p:d,ap:2,nm:"deal_id"},Io={p:d,ap:2,nm:"skip_time_offset_sec"},Ao={p:d,ap:2,nm:"wrapper_creative_ids"},To={p:d,ap:2,nm:"wrapper_id"},Oo={p:d,ap:2,nm:"wrapper_systems"},n={p:["cdn"],ap:t,nm:"cdn"},bo=(So.df="",Ln([Ao,To,Oo],"df",[]),Jn(function(e){return!!e},[so,go,Xr,vr,Jr,Qr,_a,Zr,na,ta,Ka,ia,Nr,la,Ci]),Jn(function(e){zn(e)||(e=[e]);for(var n=0;n<e.length;n++)e[n]=Yn(e[n])||"";return e},[Ao,To,Oo]),Jn(null==Zn&&null==et?Yn:function(e){var n;return null!=(e=Yn(e))&&(n=e.length,null!=Zn&&n<Zn?e=null:null!=et&&et<n&&(e=nt?null:e.slice(0,et))),e},[kr,uo,co,lo,fo,mo,_o,ho,vo,yo,u,Gr,za,$a,Ia,da,fa,$r,Yr,n,Er,Pa,qr,cr,lr,Kr,Wa,ja,ka,La,dr,So,Aa,ha,va,Ea,ga,Ba,to,Lr,wr,pr,Ur,qa,Ca,Ir,Ar,ya,Sa,c,Tr,io,ro,Za,ra,aa,xa,oa,ao,Va,Fa,br,Mr,Dr,oo,Ra,Rr,ua,ca,Ha,Na,mr,s,ri,ai,bi,Pi]),Jn(Kn(0,100),[ni,Mi,ar]),Jn(Kn(0,1e9,!0),[Jt]),Jn(Kn(),[po,Eo,a,zr,_r,hr,pa,ma,gr,ea,yr,Ta,Oa,xr,wa,Ua,Vr,Sr,Ma,Da,Or,Fr,sa,Cr,jr,Wr,eo,Io,Br,Hr,Pr,fr,Ga,i,Zt,ei,Qt,ti,ii,si,ui,oi,ci,li,di,pi,fi,mi,_i,hi,Ei,gi,vi,Si,Ii,Ai,yi,Ti,Oi,pn,Ri,Ni,ki,Li,wi,Ui,xi,Fi,Wi,Vi,ji,Bi,Gi,zi,Hi,$i,Yi,qi,Ki,Xi,Ji,Qi,er,nr,Zi,tr,ir,rr]),Jn(0==(e=5)?Xn:(tt=tn.pow(10,e),function(e){return tn.round(e*tt)/tt}),[po,Eo,a,zr,_r,hr,pa,ma,gr,ea,yr,Ta,Oa,xr,wa,Ua,Vr,Sr,Ma,Da,Or,Fr,sa,Cr,jr,Wr,eo,Io,Br,Hr,Pr,fr,Ga,i,Jt,Zt,ei,Qt,ni,ti,ii,si,ui,oi,ci,li,di,pi,fi,mi,_i,hi,Ei,gi,vi,Si,Ii,Ai,yi,Ti,Oi,Mi,pn,Ri,Ni,ki,Li,wi,Ui,xi,Fi,Wi,Vi,ji,Bi,Gi,zi,Hi,$i,Yi,qi,Ki,Xi,Ji,Qi,er,nr,Zi,tr,ir,rr,ar]),[ut,ct,lt,dt,pt,ft,mt,_t,ht,vt,Et,gt,yt,St,It,At,Tt,Ot,bt,Ct,Mt,Dt,Rt,Nt,Pt,kt,Lt,wt,Ut,xt,Vt,Ft,Wt,jt,Bt,Ht,Gt,zt,$t,Yt,qt,Kt]),Co=Pn(bo);function Mo(e,n){return X+e+"_"+n}function Do(e,n){var t,i=kn(bo),r={},a={};e?0<e.length?(e=Hn(t=en.tt&&o.beta_ev)?e.concat(t.split(".").map(function(e){return{name:e,media_types:["na"]}})):e).forEach(function(e){var n,t=e&&e.name;t&&i[t]?(e=e.media_types)&&0<e.length&&(r[t]=!0,"na"!=e[0])&&(n={},e.forEach(function(e){n[e]=!0}),a[t]=n):an("Unknown event: "+t)}):n&&an("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,bo.forEach(function(e){e.on=!(r&&!r[e.nm]),e.mm=a&&a[e.nm]})}Do(),Ln([di,fi,mi,_i,pi,hi],"st",f);var Ro=[Jt,Qt,Zt,ei,ni,ti,ii,ri,ai,oi,si,ui,ci,li,di,pi,fi,mi,_i,hi,vi,Ei,gi,yi,Si,Ii,Ai,Ti,Oi,bi,Ci,Mi,pn,Di,Ri,Ni,Pi,ki,Li,wi,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,Gi,zi,$i,Yi,qi,Ki,Xi,Ji,Qi,Zi,er,nr,tr,ir,rr,ar],No=[],Po=(Ro.forEach(function(e){null!=e.ts&&No.push(e)}),[]),ko=[];function Lo(e){var n,t=kn(Ro),i={};e?(e=Hn(n=en.tt&&o.beta_fd)?e.concat(n.split(".")):e).forEach(function(e){t[e]?i[e]=!0:an("Unknown flux data: "+e)}):i=null,Po=[],ko=[],Ro.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?ko:Po).push(e)})}Lo(),Ln([Gr,zr,eo],"st",f);var wo,Uo,xo,Vo,Fo=[qr,qa,Ka,za,$a,Fa,Va,La,ka,xa,Pa,wa,Ua,Wa,ja,Ba,Ha,Ga],Wo=(Ln(Fo,"se",f),[ra,aa,u,Na,Ia,ca,Jr]),jo={},Bo=(Wo.forEach(function(e){jo[e.nm.toUpperCase()]=q+e.nm}),[cr,lr,dr,pr,fr,mr,_r,hr,vr,Er,gr,yr,Sr,Ir,Ar,Tr,Or,br,Cr,Mr,Dr,Rr,Nr,Pr,i,kr,Lr,wr,Ur,xr,Vr,Fr,Wr,jr,Br,Hr,Gr,zr,a,$r,Yr,qr,Kr,s,Xr,Jr,Qr,Zr,ea,na,ta,ia,ra,aa,oa,sa,ua,ca,la,u,da,pa,fa,ma,_a,ha,va,Ea,ga,ya,Sa,c,Ia,Aa,Ta,Oa,ba,Ca,Ma,Da,Ra,Na,Pa,ka,La,wa,Ua,xa,Va,Fa,Wa,ja,Ba,Ha,Ga,za,$a,Ya,qa,Ka,Xa,Ja,l,Qa,Za,eo,no,to,io,ro,ao,oo,so,uo,co,lo,po,fo,mo,_o,ho,vo,Eo,go,yo,So,Io,Ao,To,Oo,n]),Ho=Pn(Bo),Go=Bo.concat(Ro),zo=[pr],$o=[],Yo=[];function qo(e){var n,t=kn(Bo),i={};wo=Uo=xo=Vo=!1,e?((e=Hn(n=en.tt&&o.beta_md)?e.concat(n.split(".")):e).forEach(function(e){t[e]?i[e]=!0:"custom_metadata_all"==e?wo=!0:"custom_events_all"==e?Uo=!0:"vendor_metadata_all"==e?xo=!0:"vendor_events_all"==e?Vo=!0:an("Unknown metadata: "+e)}),zo.forEach(function(e){i[e.nm]=!0})):wo=Uo=xo=Vo=!(i=null),$o=[],Yo=[],Bo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Yo:$o).push(e)})}qo();var Ko="ad",Xo=/^live$/i,Jo="DASH",Qo="Flash",Zo={"application/x-mpegURL":"HLS","application/dash+xml":Jo,"application/vnd.ms-sstr+xm":"Smooth","video/x-flv":Qo,"video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"},d=[[/Opera\/([\d.]+)/,"Opera"],[/OPR\/([\d.]+)/,"Opera"],[/Edge\/([\d.]+)/,"Microsoft Edge"],[/Edg\/([\d.]+)/,"Microsoft Edge"],[/MSIE ([\d.]+)/,"Microsoft Internet Explorer"],[/Trident\/.*rv:([\d.]+)/,"Microsoft Internet Explorer"],[/Seamonkey\/([\d.]+)/,"Seamonkey"],[/Firefox\/([\d.]+)/,"Firefox"],[/Chromium\/([\d.]+)/,"Chromium"],[/Chrome\/([\d.]+)/,"Chrome"],[/Safari\/([\d.]+)/,"Safari"]],t=[[/Windows 10\.0|Windows NT 10\.0/,"Windows 10"],[/Windows 8\.1|Windows NT 6\.3/,"Windows 8.1"],[/Windows 8|Windows NT 6\.2/,"Windows 8"],[/Windows 7|Windows NT 6\.1/,"Windows 7"],[/Windows NT 6\.0/,"Windows Vista"],[/Windows NT 5\.2/,"Windows Server 2003"],[/Windows NT 5\.1|Windows XP/,"Windows XP"],[/Windows NT 5\.0|Windows 2000/,"Windows 2000"],[/Win 9x 4\.90|Windows ME/,"Windows ME"],[/Windows 98|Win98/,"Windows 98"],[/Windows 95|Win95|Windows_95/,"Windows 95"],[/Windows NT 4\.0|WinNT4\.0|WinNT|Windows NT/,"Windows NT 4.0"],[/Windows CE/,"Windows CE"],[/Win16/,"Windows 3.11"],[/Tizen/,"Tizen"],[/Android/,"Android"],[/OpenBSD/,"Open BSD"],[/SunOS/,"Sun OS"],[/Linux|X11/,"Linux"],[/iPhone|iPad|iPod/,"iOS"],[/Mac OS X/,"Mac OS X"],[/MacPPC|MacIntel|Mac_PowerPC|Macintosh/,"Mac OS"],[/QNX/,"QNX"],[/UNIX/,"UNIX"],[/BeOS/,"BeOS"],[/OS\/2/,"OS/2"],[/nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver/,"Search Bot"]],e=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],es=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function ns(e,n,t){n&&t.push(e)}function ts(e,n,t){t.push(e+"="+n)}function is(e,n,t){t.push(e+(o.cmcd_ntq?"="+n:'="'+n+'"'))}function rs(e,n,t){t.push(e+'="'+n.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function as(e){return"false"!==e}function os(e){return+e}function ss(e){return e.replace(/"/g,"")}function us(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var cs,ls,ds={bl:[0,[ts,os],_r],br:[1,[ts,os],hr],bs:[2,[ns,as],vr],cid:[3,[rs,us],Er],d:[1,[ts,os],gr],dl:[0,[ts,os],yr],mtp:[0,[ts,os],Sr],nor:[0,[rs,us],Ir],nrr:[0,[rs,us],Ar],ot:[1,[is,ss],Tr],pr:[3,[ts,os],Or],rtp:[2,[ts,os],Cr],sf:[3,[is,ss],Mr],sid:[3,[rs,us],Dr],st:[3,[is,ss],Rr],su:[0,[ns,as],Nr],tb:[1,[ts,os],Pr],v:[3,[ts,os],i]},ps={bs:!1,su:!1,v:1,pr:1},fs="org.svalabs-";function ms(e){for(var n,t,i=[[],[],[],[]],r=nn.keys(e),a=0;a<r.length;a++)n=r[a],(t=ds[n])&&t[3]&&t[1][0](n,e[n],i[t[0]]);return i}function _s(e){var n,t=nn.keys(ds);for(cs=!1,ls="header"===(yn.options.cmcdMode||o.cmcd_mode),n=0;n<t.length;n++)ds[t[n]][3]=!1;if(e&&zn(e)&&0<e.length)if(cs=!0,"na"==e[0])for(n=0;n<t.length;n++)ds[t[n]][3]=!0;else e.forEach(function(e){var n=ds[e];n?n[3]=!0:an("Unknown CMCD key: "+e)})}function hs(e,n,t){for(var i,r,a=nn.keys(e),o=0;o<a.length;o++)delete e[a[o]];for(o=0;o<n.length;o++)0!=((i=n[o]).ap&t)&&null!=(r=null==(r=(r=i.st||i.se)&&Wn(r,i.nm))?i.df:r)&&(e[i.nm]=r)}function vs(e,n,t,i){for(var r,a,o,s,u=0;u<i.length;u++)o=(a=(r=i[u])[0]).nm,0!=(a.ap&t)?(s=n[o])&&s(r)||(e[o]=r[1],(s=a.st||a.on&&a.se)&&_(s,o,r[1])):an("Setting inapplicable data",a)}function Es(e,n){return e[n.nm]}function gs(e,n,t,i,r){var a,o=[];return t&&o.push([t,a=n(t)+i]),r&&o.push([r,n(r)+i]),e(o),a}function fn(e,n,t){if(n)for(var i,r,a=0;a<n.length;a++)if(r=e[i=n[a]])e=r;else{if(t)return null;e=e[i]={}}return e}function ys(e,n){e=fn(e,n.p||Xt,!0);return e&&e[n.nm]}function Ss(e,n,t,i){for(var r,a,o,s=0;s<n.length;s++)0!=((r=n[s]).ap&t)&&null!=(o=Qn(e[a=r.nm],r.dv))&&(fn(i,r.p)[a]=o)}ds[fs+"rid"]=[0,[rs,us],br],ds[fs+"tid"]=[0,[rs,us]],ds[fs+"cmi"]=[0,[ts,os]],ds[fs+"pmi"]=[0,[ts,os]],_s();var Is,As,Ts,Os,bs,Cs,Ms,Ds,Rs,Ns,Ps,ks,Ls,ws,Us,xs,Vs,p,Fs={},Ws={},js=Wn(f,ge)||[],Bs=[],Hs=1,Gs=2,zs=4,$s=8,Ys=16,qs=zs|$s|Ys,Ks=Gs|Hs|qs,Xs=0,Js=[];function Qs(e){return null!=e?6e4*e:12e5}function Zs(e,n){if(!Ks&&0<js.length){for(var t,i=sn(),r=0,a=0;a<js.length;a++)js[a].p&&(t=!0,Ss(Fs,$o,ot,js[a].m)),r=tn.max(r,i-js[a].t);ks&&cu(js,0,Ke(Ue,i,r,t),e),n=!0}n&&(js=[],jn(f,ge)),Ms=null}function h(e){(Ks&=~e)||null!=Ms||Zs()}function eu(e,n,t,i,r,a,o,s,u){if(4==e.readyState){var c=sn(),l=e.status;if(n+=" status: "+l+", ",0==l||429==l||500<=l&&l<=599){a=a[r++];if(null!=a)return W(function(){o.retry(sn()),t(i,r,o)},1e3*a),void an(n+"retry #"+r+" after "+a+"s")}o.log(c,l),!(l<200||299<l||s&&!s(e,c))||u&&u(n,l)||an(n+"failed")}}function nu(n,t,i){Vn("GET",en.ip,{Accept:"application/json"},null,function(e){eu(e,"IP API",nu,n,t,en.rd,i,function(e){e=dn(e.responseText);if(e)return v([[qr,e.query],[qa,e.isp],[Ka,e.mobile],[za,e.as],[$a,e.org],[Fa,e.region],[Va,e.regionName],[La,e.countryCode],[ka,e.country],[xa,e.zip],[Pa,e.city],[wa,e.lat],[Ua,e.lon],[Wa,e.continent],[ja,e.continentCode],[Ba,e.district],[Ha,e.timezone],[Ga,e.offset/3600]]),h($s),ru(),!0},function(){h($s),ru()})})}function tu(n,t,i){var r=sn();Vn("GET",Un(en.ts),{"cache-control":"no-cache"},null,function(e){eu(e,"SERVER TS",tu,n,t,en.rd,i,function(e,n){e=dn(e.responseText),e=e&&e.epoch_millis;if(e)return v([[eo,tn.round(e-(r+n)/2)]]),h(zs),!0},function(){h(zs)})})}function iu(n,t,i){Rs=Vn("POST",Un(en.sm),{"Content-Type":"application/json","cache-control":"no-cache"},n,function(e){4==e.readyState&&(Rs=null,eu(e,"Sampling API",iu,n,t,en.rd,i,function(e){e=dn(e.responseText);if(Ns=e&&e[en.ss+"_sampling"])return ks=Ns.in_sample,Ps=!1,h(Gs),_(f,ye,Ns),!0},function(e){return ks=Ps=!0,h(Gs),an(e+"forced in"),!0}))})}function ru(){var e;!Ds||Ks&Hs||(en.sw&&en.sm?(en.sp&&kn(Fo),(e=Ho[en.sd])&&(Ds.sampling_definition_params={namespace:en.ss,key_name:e.nm,key_value:lu(e)}),(e=Ho[en.sc])&&(Ds.sampling_criteria_params={sampling:{key_name:e.nm,key_value:lu(e)}}),Ds.sampling_override=o.sampling_override||"NONE",Ds.sampling_request_id=cn(),iu(ln(Ds),0,Ke(Le,sn()))):(ks=!0,h(Gs)),Ds=null)}function au(t,n,i){var e;en.ci?(en.tt&&(en.mf=o.mock_config||en.mf),On("Get config from "+(e=en.mf||wn(Un("https://"+en.cf+"platform.datazoom.io/beacon/v2/config"),function(e){e.append(te,en.ci)}))),Vn("GET",e,null,null,function(e){eu(e,"Config API",au,t,n,en.rd,i,function(e){e=dn(e.responseText);if(e)return t(e),!0},function(e,n){n<400||429==n||499<n||(en.om=!1),t()})})):(an("Missing configuration ID"),en.om=!1,t())}function ou(){au(function(e){en.st=null,e&&function i(r,a){$n(r)?nn.keys(r).forEach(function(e){var n=r[e],t=a[e];$n(t)?i(n,t):null==t?an("Unknown config key: "+e):null==n?an("Undefined config key: "+e):t&&(en[t]=n)}):an("Invalid config object",r)}(e,Z),_(f,Se,en.st),en.st=Qs(en.st),Do(en.ev,e),Lo(en.fd),qo(en.md),_s(en.cd),en.og||($e=[]),en.os||(je=null),m(en.cm,"sort"),m(en.am,"sort"),m(en.cq,"sort"),m(en.aq,"sort"),v([[dr,en.cc],[lr,en.cl]]),Bs.forEach(function(e){var n,t,i,r,a,o=!1,s=ys(e.m,mr),u=Co[s];u?o=u.on:s.startsWith(K)?o=Uo:s.startsWith(X)&&(o=Vo),o&&(n=e.m,t={},$o.concat(Yo).forEach(function(e){null!=(i=ys(n,e))&&(fn(t,e.p)[e.nm]=i)}),r=fn(n,Xt),a=fn(t,Xt),Po.concat(ko).forEach(function(e){null!=(i=ys(r,e))&&(a[e.nm]=i)}),wo&&(i=fn(n,sr,!0))&&nn.assign(fn(t,sr),i),xo&&(i=fn(n,ur,!0))&&nn.assign(fn(t,ur),i),su(t,a),e.m=t,js.push(e))}),_(f,ge,js),Bs=[];var n,e=ha.nm;ha.on?(n=Wn(y,e))||(n=cn(),_(y,e,n)):jn(y,e),v([[ha,n]]),en.ts&&eo.on&&null==lu(eo)?tu(0,0,Ke(xe,sn())):h(zs),en.ab&&so.on&&null==lu(so)?Vn("GET",Un(en.ab),null,null,function(e){4==e.readyState&&(v([[so,!e.status]]),h(Ys))}):h(Ys),en.ip&&Fo.some(function(e){return e.on&&null==lu(e)})?nu(0,0,Ke(Ve,sn())):h($s),h(Hs),ru(),W(function(){h(qs),ru()},en.mh)},0,Ke(we,sn()))}function su(e,n){var t=""+(bs+1e7);fn(e,pr.p)[pr.nm]=Ts+"_"+t.substr(-7,2)+"."+t.substr(-5),_(f,he,++bs),ci.on&&(n[ci.nm]=bs)}function uu(e,n,t,i,r,a,o){var s,u,c,l,d,o=o?it:at,p=fn(e,Xt);for(Ss(Fs,$o,o,e),Ss(Fs,Po,o,p),(i=i||[]).push([mr,n],[fr,t]),s=0;s<i.length;s++)u=(c=i[s])[0],c[2]||0!=(u.ap&rt)?u.on&&null!=(c=Qn(c[1],u.dv))&&(fn(e,u.p)[u.nm]=c):an("Invalid event data",u);wo&&(o=Qe(Is,r),n=e,r=ln(o),d=r?r.length:0,(l=en.ml)&&l<d?an("Custom metadata size: "+d+" > "+l):2<d&&(o=dn(r))&&nn.assign(fn(n,sr),o)),xo&&(l=Dn(As,a),d=e,l)&&nn.assign(fn(d,ur),l),Sn&&Cn("evInfo",e),!(de<ue)&&en.le&&en.le(e)||(r={p:Ks,m:e,t:t},Ks&Hs?Bs.push(r):(su(e,p),js.push(r),_(f,ge,js),null==Ms&&(Ms=W(Zs,en.bd))))}function cu(t,n,i,e){var r,a=t.map(function(e){return e.m}),o=(a.forEach(function(e,n){var t,i=fn(e,or);Qa.on&&(fn(e,Qa.p)[Qa.nm]=sn()),Ns&&(i[en.ss+"_sampling"]=Ns),null!=Ps&&(i[en.ss+"_forced_sampling_in"]=Ps),n||(r=i[Ie],je&&(nn.keys(je).forEach(Je),je=null),$e.length&&(r=r?r.concat($e):$e,$e=[],r.length>en.mc&&(r.sort(function(e,n){return e.batch()>n.batch()?1:-1}),t=r[r.length-en.mc-1].batch(),r=r.filter(function(e){return e.batch()>t})),i[Ie]=r))}),Un(en.mb)),a=ln(a);e&&w.sendBeacon&&w.sendBeacon(o,a)||Vn("POST",o,{"Content-Type":"application/json"},a,function(e){eu(e,"Message post",cu,t,n,en.rd,i,null,function(e,n){t.forEach(function(e){Xe(e,n)}),r&&($e=r.concat($e))})})}function v(e){vs(Fs,Ws,it,e)}function lu(e){return Fs[e.nm]}function du(e){var n=en.st;return e<Cs&&an("Activity time reversal: "+Cs+" -> "+e),0<=n&&(e<Cs||Cs+n<=e)}function pu(e){if(Oc&&(Oc=!1,mu(St,e)),Ts&&Os&&!du(e))_(f,ve,Cs=e);else{Zs(!(Bs=[]),!0);var n=e,t=Js[Xs];if(Ts=cn(),Os=Cs=n,v([[Gr,Ts],[zr,Os],[di,bs=0],[fi,0],[mi,0],[_i,0],[pi,0],[hi,0]]),_(f,he,bs),_(f,ve,Cs),jn(f,ye),Rs&&Rs.abort(),Rs=Ns=null,ks=Ps=null,Ks|=Gs,Ds={},ru(),rn(t))try{t()}catch(e){on(e,"onAppSessionStart")}}v([[oi,e-Os],[ma,Ze.outerWidth],[pa,Ze.outerHeight],[io,En.title],[ro,L.href],[ao,En.referrer],[oo,L.hostname],[_a,w.cookieEnabled]])}function fu(e,n,t){gs(v,lu,e,n,t)}function mu(e,n,t,i,r){0!=(e.ap&it)?(pu(n),e.on&&uu({},e.nm,n,t,i,r,!0)):an("Event inapplicable: "+e.nm+", ss",e)}function _u(n,t){var i,r;n&&Wo.forEach(function(e){i=q+e.nm,null!=(r=n[i])&&(t([[e,r]]),delete n[i])})}if(hs(Fs,Go,it),Ts=lu(Gr),Os=lu(zr),bs=Wn(f,he)||0,Cs=Wn(f,ve)||0,Ns=Wn(f,ye),Is=Wn(f,Ee),As=Wn(f,"__ss_vendor_md"),en.st=Qs(Wn(f,Se)),Ts&&Os&&!du(sn())||(v([[eo,null]]),Fo.forEach(function(e){v([[e,null]])})),Ns?(ks=Ns.in_sample,Ps=!1,h(Gs)):Ds={},d.some(function(e){if(p=e[0].exec(U))return Ls=e[1],ws=p[1],!0})||(p=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(U))&&(Ls=p[1],ws=p[2]),(p=/Version\/([\d.]+)/.exec(U))&&(ws=p[1]),t.some(function(e){if(e[0].test(U))return Us=e[1],!0})){switch(p=null,Us){case"Mac OS X":p=/Mac OS X (10[\d._]+)/.exec(U);break;case"Android":p=/Android ([\d._]+)/.exec(U);break;case"iOS":p=/OS (\d+_\d+(_\d+)?)/.exec(U);break;case"Tizen":p=/Tizen[ \/]([\d._]+)/.exec(U);break;default:(p=/Windows (.*)/.exec(Us))&&(Us="Windows")}p&&(xs=p[1].replace(/_/g,"."))}else Us=xs="-";e.some(function(e){if(e[0].test(U))return Vs=e[1],!0}),v([[s,U],[da,Ls],[fa,ws],[Sa,Us],[c,xs],[ga,Vs],[no,en.cn],[to,en.sv],[l,3]]);var hu="baseContext",vu="contextType",Eu="contextName",gu="metadata",yu=0,Su=["base","player"],mn={},Iu=[];function Au(e){if(!e.destroyed){e.setTimer(null);try{var n=e.destroyCallback;n&&n()}catch(e){on(e,"onDestroy")}delete mn[e.id],e.removeListeners(),e.destroyed=!0}}function Tu(e,n,t,i,r,a,o){(r=r||[]).push([Xa,e.id],[Ja,e.name]),uu(n,t,i,r,Qe(e.customMetadata,a),Dn(e.vendorMetadata,o))}function Ou(e,n){return!(null!=n&&!$n(n)||(e.customMetadata=dn(ln(n)),0))}function bu(e){var n=un(Fs);return n._c_=Qe(Is,e.customMetadata),n._v_=Dn(As,e.vendorMetadata),n}function Cu(){var t,c=[],i={},a={id:cn(),type:yu,destroyed:!1,destroyCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(e,n,t){if(a.destroyed)return an(e+" after destroyed"+(n?": "+n:""),t),!0},onDestroy:function(e){a.destroyCallback=e},setTimer:function(e){var n;t&&(0<=(n=Iu.indexOf(t))&&Iu.splice(n,1),t=null),e&&(Iu.push(e),t=e)},fireEvent:function(e,n,t,i,r){a.shallBlock("fireEvent",e.nm,e)||(pu(n),e.on&&Tu(a,{},e.nm,n,t,i,r))},fireVendorEvent:function(e,n,t){a.fireEvent({ap:I,nm:Mo(e,n),on:Vo},sn(),null,null,Mn(e,t))},addListener:function(e,n,t,i,r){if(e&&n){var a=e[i=i||"addEventListener"];if(rn(a)){u=Rn(e,t,s="listener: "+(s=n));var o=de<ce?u:function(){We(s,arguments),u.apply(null,arguments)};try{"-"===n?a.call(e,o):a.call(e,n,o),c.push([e,n,t,o,r||"removeEventListener"])}catch(e){on(e,"addListener: "+n)}}else an("Invalid add-listener method: "+i,e)}var s,u},removeListeners:function(r,a,o){c=c.filter(function(e){var n=e[0],t=e[1];if(r&&r!=n||a&&a!=t||o&&o!=e[2])return!0;var i=n&&n[e[4]];if(rn(i))try{"-"===t?i.call(n,e[3]):i.call(n,t,e[3])}catch(e){}else an("Invalid remove-listener method: "+e[4],n)})},stash:function(e,n,t){i[e]=[n,t]},unstash:function(e){e.forEach(function(n){var e=i[n];if(e){delete i[n];try{e[0].apply(null,e[1])}catch(e){on(e,"unstash: "+n)}}})}},e={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return Su[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){Au(a)},setMetadata:function(e){return Ou(a,e)},getMetadata:function(){return dn(ln(a.customMetadata))},generateEvent:function(e,n){a.fireEvent({ap:I,nm:K+e,on:Uo},sn(),null,n)}};return Sn&&(e.dumpDzData=function(){return dn(ln(bu(a)))}),a.basePublicMethods=e,a.publicContext=un(e),mn[a.id]=a}function Mu(e){return en.sn&&en.sn[e]||""+e}var Du,Ru,Nu,Pu,_n=[],ku="idle",Lu=(_n[2]=_n[9]="buffering",_n[3]=_n[10]="playing",_n[4]=_n[11]="paused",_n[5]=_n[12]="seeking",_n[6]="ended",_n[0]=_n[7]=_n[8]=ku,function(U,x,r){var i,a,o,V,F,W,j,p={},B={},E={},H={},G={},z={},$=[],Y=[],q=[],K=[],X=[],J=[],Q=[],f=[],Z=cn(),m=(w=r[hu],(e=(e=$n(w)&&rn(w.contextID)&&w.contextID())&&Hn(e)&&mn[e])&&e.type==yu&&e.publicContext===w?e:(null!=w&&an("Invalid contextOptions."+hu,w),Cu())),e=r[Eu],s=(null!=e&&(m.name=e),(w=r["adapterID"])&&Hn(w)&&Ac[w]||(null!=w&&an("Adapter not found for id: "+w),Du)),u=r["adapterOptions"];function ee(){if(o){for(var e,n=nn.keys(o),t=sn(),i=0;i<n.length;i++)k((e=o[n[i]]).ev,t,e.dl);o=null}}function g(e,n,t){(o=o||{})[t||e.nm]={ev:e,dl:n}}function _(e){vs(p,B,1,e)}function y(e){vs(E,H,2,e)}function S(e,n){return Es(n?E:p,e)}function ne(e){return E[e.nm]}function te(){var e=S(ra),n=S(aa);hs(p,Go,1),_([[Ca,"content"],[ra,e],[aa,n]])}function ie(){hs(E,Go,2),y([[Ca,"ad"]])}function n(e,n){B[e.nm]=n}function re(e,n){H[e.nm]=n}function ae(e,n){z[e.nm]=n}function t(e,n,t,i){for(var r=[],a=0;a<n.length;a++)r[n[a]]=!0;Q[e]={tr:r,en:t,ex:i}}u=$n(u)?un(u):{},s&&(W=s[2],j=s[3],nn.assign(u,s[4]||{}),V=u[Sc],F=u[Ic],(u[yc]||[]).forEach(function(e){G[e[0].nm]=e[1]})),U&&nn.keys(mn).some(function(e){e=mn[e];if(1==e.type&&e.player===U)return e.publicContext.destroy(),!0});var oe,c,se,ue,ce,l,le,de,I,pe,fe,A,me,T,O,_e,he,ve,Ee,ge,b,C,ye,Se,d,h,M,D,Ie,Ae,R,N,Te,v=0,Oe=ku,be=1,Ce=sn(),Me=bn(an,"Abnormal duration increment: ",1,1e3,3e5);function De(){return 2==be}function Re(){return!!T&&T.type===Ko}function Ne(e){I=e+en.hi,On("Heartbeats started")}function Pe(){I&&On("Heartbeats stopped"),I=0}function P(e,n,t){return gs(_,S,e,n,t)}function ke(e){var n=e-Ce;n<0||n>en.ed?Me.log(n):0<n&&(4==v?P(gi,n,vi):11==v?P(Ei,n,vi):2==v?(c&&P(Wi,n,Vi),P(ei,n,Qt)):9==v&&(c&&P(Fi,n,Vi),P(Zt,n,Qt))),Ce=e}function Le(e,n){null!=e&&(f[e]=n)}function k(n,t,i,e,r,a){if(!m.shallBlock("fireEvent",n.nm,n))if(a=a||(Re()?2:be),0!=(n.ap&a)){if(pu(t),(i=i||[]).push([Za,m.id]),Te||(Te=!0,(u=q.some(function(e){try{return e(t,i,n,a)}catch(e){on(e,"extEventHandler")}}))||(u=(c=z&&z[n.nm])&&c(t,i,n,a)),Te=!1),!u){ke(t);for(var o,s,u,c,l=[[bi,Oe]],d=0;d<No.length;d++)s=f[(o=No[d]).ts],l.push([o,s?t-s:0]);_(l),null==S(Jt)&&gn&&(c=gn.downlink)&&_([[Jt,1e3*c]]),Le(n.rt,t),Le(2==a?n.rta:n.rtc,t),!n.on||n.mm&&!n.mm[S(Ca,2==a)]||(c=fn(u={},Xt),2==a?(Ss(E,$o,2,u),Ss(E,Po,2,c),Ss(p,$o,at,u),Ss(p,Po,at,c)):(Ss(p,$o,1,u),Ss(p,Po,1,c),Ss(E,$o,at,u),Ss(E,Po,at,c)),Tu(m,u,n.nm,t,i,e,r))}}else an("Event inapplicable: "+n.nm+", "+a,n)}function we(e){var n=e[1];n&&n!=S(e[0])&&g(gt)}function Ue(e,n){var t=3==n?b:C;if(e!=t){var i,r,a,o,s,u,c,l,d=sn();if(I||Ne(d),pe=!0,3==n){if(s=V||en.mp,b=e,a=d-ye,ye=d,i=S(Ta),A){var p,f=T;if(null==_e&&0<i&&(p=A.locate(i),_e=(p.type?p.start:i)-p._e),i=_e,O&&t>=O.start&&t<=O.end||(O=A.locate(t)),(T=T&&e>=T.start&&e<=T.end?T:A.locate(e))&&(u=T.type,c=T.start,l=T._d),T!=f&&(p=N<=e&&e<N+s,u===Ko?R!==c&&l&&((null==R?We:(p&&k(Lt,d),Ge))(d),R=c,N=T.end,Be(),y(l.concat([[po,N-R]])),He(d,T._a),k(dt,d,null,null,null,2),C=0,Se=d):null!=R&&(p&&k(Lt,d,null,null,null,2),Ge(d),je(d))),u===Ko)return void(l&&(Ue(f=e-c,10),E[pn.nm]=f))}de||(r=he=!he&&en.cm?en.cm.slice():he)}else s=F||en.mp,C=e,a=d-Se,Se=d,i=ne(po),r=ve=!ve&&en.am?en.am.slice():ve;if(null!=t&&null!=e&&0<=t&&t<e&&e<=t+s){if(0<i&&r)for(var m,_,h=0,v=3==n&&O&&T?(_=((O.type?O.start:t)-O._e)/i,((u?c:e)-T._e)/i):(_=t/i,e/i);h<r.length&&!(v<(m=r[h]/100));)_<m?(r.splice(h,1),g(Dt,[[Vr,100*m]],Dt.nm+m)):h++;if(3==n){if(M=e,a<0||a>en.ed)Me.log(a);else if(0<a)if(u)P("promo"===u?Ti:null,a,yi);else if(i=P(Ai,a,yi)/1e3,en.cq)for(Ee=Ee||en.cq.slice();null!=(o=Ee[0])&&o<=i;)Ee.shift(),g(xt,[[Fr,o]],xt.nm+o)}else if(D=e,a<0||a>en.ed)Me.log(a);else if(0<a&&(P(Si,a,yi),i=gs(y,ne,Ii,a)/1e3,en.aq))for(ge=ge||en.aq.slice();null!=(o=ge[0])&&o<=i;)ge.shift(),g(xt,[[Fr,o]],xt.nm+o)}}}function xe(e,n){null==d&&null!=e&&null!=M&&e!=M&&(d=M,k(Bt,n||sn()))}function Ve(e,n){null==h&&null!=e&&null!=D&&e!=D&&(h=D,k(Bt,n||sn()))}function Fe(e){oe&&k($t,e),oe=se=!1,be=1,d=M=null,Pe()}function We(e){var n,t,i="pre";S(Ai)>1e3*en.ep&&(n=S(pn),t=S(Ta),i=null!=n&&null!=t&&n+en.ep>t?"post":"mid"),ue=l=le=!1,ie(),_([[uo,cn()],[_o,i],[li,0]]),k(ut,e)}function je(e){Ie+=e-f[14],k(ct,e,null,null,null,2),_([[uo,null],[_o,null],[li,null]])}function Be(){le||(le=!0,y([[ho,a||cn()],[Ii,0]]),a=null)}function He(e,n){var t=Js[3];if(ue=!0,ve=ge=null,fu(di,1),P(li,1),rn(t))try{t(i,n)}catch(e){on(e,"onAdStart")}k(kt,e)}function Ge(e){if(ue){var n=Js[4];if(Ae+=e-f[9],rn(n))try{n(i)}catch(e){on(e,"onAdEnd")}}ue=l=le=!1,h=D=R=N=null,ie()}function ze(e,n,t,i){var r,a,o,s;e!=v&&(o=Q[v],r=Mu(v)+" => "+Mu(e),a=_n[e]||Oe,m.shallBlock("setState",r)||(o.tr[e]?(On("state: "+r+" ("+a+")"),(o=o.ex)&&o(n,e,t,i),ke(n),s=v,Oe=a,(o=Q[v=e].en)&&o(n,s,t,i),pe=!0):an("Invalid transition: "+r)))}function $e(e){return e!=v&&!!Q[v].tr[e]}function Ye(){return 0==v||7==v||8==v}function L(o,s,u){return function(e){var n,t,i,r,a;n=o,t=s,i=u,a=(e=e)[0],e=e[1]=Qn(e[1],a.dv),a=S(a,i),null!=i&&i!=De()||null==a||null==e||(t?!e!=!a&&g(e?n:t):e!=a&&g(n,r=n==Ft?a<e?[[kr,"up"]]:e<a?[[kr,"down"]]:null:r))}}function qe(e){e[1]=Qn(e[1],e[0].dv)}t(0,[1,8]),t(1,[2,7,8,16],function(e){var n=Js[1];if(Fe(e),oe=!(ce=!1),de=Xo.test(S(ca)),Ie=Ae=0,_([[Kr,Z],[ii,e]]),Z=cn(),fu(hi,1),rn(n))try{n(i)}catch(e){on(e,"onContentSessionStart")}A=me,me=T=O=_e=null,R=N=null,fe=0,k(Mt,e)}),t(2,[3,4,5,7,8,16],function(e,n){(c=3==n)&&(P(xi,1,wi),k(Gt,e)),k(_t,e)},function(e){k(ht,e),c&&k(zt,e),c=!1,se||k(bt,e)}),t(3,[2,4,5,6,7,8,16],function(e){var n;se||(n=e-f[0],se=!0,he=Ee=null,fu(pi,1),k(kt,e,[[Br,n-Ie],[Hr,n-Ae]])),b=M=S(pn),ye=e,null!=d&&(k(Ht,e,[[Wr,1e3*d],[jr,null!=b?1e3*b:null]]),d=null),k(Ut,e),ce&&(ce=!1,k(jt,e)),I||Ne(e)},function(){b=null}),t(4,[2,3,5,6,7,8,16],function(e){ce||(ce=!0,k(Nt,e))}),t(5,[2,3,4,6,7,8,16],function(e){xe(S(pn),e)}),t(6,[2,3,4,5,7,8,16],function(e){k(Lt,e)}),t(7,[],function(e){Fe(e)}),t(8,[],function(e,n,t){k(It,e,t),Fe(e)}),t(9,[10,11,12,14,15,7],function(e,n){Be(),(c=10==n)&&(P(Ui,1,wi),k(Gt,e)),k(_t,e)},function(e){k(ht,e),c&&k(zt,e),c=!1}),t(10,[9,11,12,13,14,15,7],function(e,n,t,i){Be(),ue||He(e,i),C=D=ne(pn),Se=e,null!=h&&(k(Ht,e,[[Wr,1e3*h],[jr,null!=C?1e3*C:null]]),h=null),k(Ut,e),l&&(l=!1,k(jt,e)),I||Ne(e)},function(){C=null}),t(11,[9,10,12,14,15,7],function(e){l||(l=!0,k(Nt,e))}),t(12,[9,10,11,13,14,15,7],function(e){Ve(ne(pn),e)}),t(13,[9,10,17,7],function(e){k(Lt,e),Ge(e)}),t(14,[9,10,17,7],function(e){k(pt,e),Ge(e)}),t(15,[9,10,17,7],function(e,n,t){k(It,e,t),Ge(e)}),t(16,[9,10,15,17,7],function(e){be=2,We(e)}),t(17,[2,3,4,5,6,7],function(e){je(e),be=1});var Ke,e=ki,w=ki;function Xe(e){var i=[],r=0,a=0;return i.locate=function(n){return i.find(function(e){return n>=e.start&&n<=e.end})},e.forEach(function(e){var n=e.start,t=e.end;Gn(n)&&Gn(t)&&(n=n<r?r:n)<t?(r<n&&i.push({start:r,end:n,_e:a}),i.push(nn.assign({},e,{start:n,_e:a})),e.type&&(a+=t-n),r=t):an("Skipped time span",e)}),i.push({start:r,end:hn.MAX_VALUE,_e:a}),i}function Je(e,n){e=e&&e({type:In,ack:n,appSID:lu(Gr),ctSID:S(Kr)});e&&e["catch"](function(e){Tn("Cast transfer message rejected",e)})}function Qe(e){var n,t=m.publicContext,i=null;m.player=e,nn.assign(t,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return e},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(Kr)},nextContentSessionID:function(){return Z},playerState:function(){return Oe},destroy:function(){if(!m.destroyed){$e(7)&&ze(7,sn());for(var e=0;e<Y.length;e++)try{Y[e]()}catch(e){on(e,"extOnDestroy")}Au(m)}},setMetadata:function(e){return!!Ou(m,e)&&(_u(m.customMetadata,m.setData),!0)},annotateContentSession:function(e){return null==e?!(me=null):!!zn(e)&&(me=Xe(e.slice().sort(function(e,n){return e.start>n.start?1:-1})),!0)}}),Sn&&(t.dumpDzData=function(){var e=nn.assign(bu(m),p,E),n=Ca.nm;return e[n]=(De()||Re()?E:p)[n],dn(ln(e))}),Uu.forEach(function(e){try{e(t,m,$,Y,q,K,X,J)}catch(e){on(e,"extInit")}});try{i=W?W(e,m,u):null}catch(e){i=on(e,s[0]+" initContext")}return i?(An(i),t.destroy()):(null!=(n=r[gu])&&t.setMetadata(n),n=sn(),k(yt,n),k(wt,n),m.setTimer(function(){for(var e=0;e<$.length;e++)try{$[e]()}catch(e){on(e,"extOnTimer")}if(Ke)try{Ke()}catch(e){on(e,"onTimer")}var n=sn();ke(n),I&&I<=n&&(pe?(k(Ot,n,[[xr,++fe]]),I=n+en.hi,pe=!1):Pe())})),t}return 1&(G[e.nm]||0)&&(e=Ni),2&(G[w.nm]||0)&&(w=Ni),n(Ta,qe),re(po,qe),n(ua,function(e){var n=e[1];e[1]=n&&Zo[n]||n}),n(ca,function(e){de=Xo.test(e[1])}),n(pn,function(e){for(var n=0;n<K.length;n++)try{K[n](e)}catch(e){on(e,"extPlayheadHandler")}5==v||2==v?xe(e[1]):3==v&&Ue(e[1],3)}),re(pn,function(e){12==v?Ve(e[1]):10==v&&Ue(e[1],10)}),n(e,L(Ft,null,!1)),re(w,L(Ft,null,!0)),n(ia,L(Rt,qt)),n(na,L(Tt,At)),n(Jr,L(vt,Et)),n(Da,L(Wt)),n(Ma,L(Wt)),n(ar,L(Kt)),n(ri,L(mt,null,!1)),re(ri,L(mt,null,!0)),n(ai,L(Yt)),n(la,L(Yt)),n($r,we),n(Yr,we),n(Mi,function(e){var n,t,i,r,a=e[1];a=a&&rn(a.getBoundingClientRect)?"visible"==En.visibilityState?(n=(t=a.getBoundingClientRect()).left,i=t.top,r=t.bottom,tn.min(100,tn.max(0,tn.round(100*(tn.min(t=t.right,Ze.innerWidth)-tn.max(n,0))*(tn.min(r,Ze.innerHeight)-tn.max(i,0))/((t-n)*(r-i)))))):0:Qn(a,Mi.dv),null!=(e[1]=a)&&_([[Ci,50<=a]])}),n(ti,function(e){var n=e[1];if(n&&rn(n.end)){var t,i,r=S(pn);if(null!=r)for(t=0;t<n.length;t++)if(i=n.end(t),r>=n.start(t)&&r<=i)return void(e[1]=1e3*(i-r));e[1]=0}}),ae(bt,function(e,n,t,i){2==i&&(a=cn(),n.push([ho,a,!0]))}),ae(dt,function(e,n){a&&n.push([ho,a,!0])}),ae(It,function(e,n,t,i){fu(1==i?_i:mi,1,fi)}),te(),ie(),nn.assign(m,{type:1,fireEvent:k,fire:function(e,n,t){k(e,sn(),n,null,null,t)},setState:function(e,n,t){ze(e,sn(),n,t)},canSetState:$e,reset:function(){$e(7)&&ze(7,sn()),te(),ie(),f=[],v=0,Oe=ku},setData:function(e){_(e),ee()},setAdData:function(e){y(e),ee()},getData:S,getAdData:ne,getState:function(){return v},isIdle:Ye,isAdIdle:function(){return 13==v||14==v||15==v},isInAds:De,isInSsaiAds:Re,onTimer:function(e){Ke=e},matchCtSource:function(e){return S(Ra)==e},reqCtSID:function(){return Ye()?Z:S(Kr)},reqTracer:function(e,a){e=wn(e,function(e){e["delete"]("CMCD")});var n,t=m.reqCtSID(),i=cn(),r=((a=nn.assign({},a||{},{sid:t}))[fs+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(n=S(Ia))&&(a.cid=n),{url:e,sid:t,rid:i,cmcd:a,start:sn()});return{reqID:i,urlBase:e,url:function(){var n=ms(a);return wn(e,function(e){e.append("CMCD",n[0].concat(n[1],n[2],n[3]).sort().join())})},headers:function(){for(var e={},n=ms(a),t=0;t<4;t++)n[t].length&&(e[es[t]]=n[t].sort().join());return e},enabledData:function(){for(var e,n,t=nn.keys(a),i={},r=0;r<t.length;r++)e=t[r],(n=ds[e])&&n[3]&&(i[e]=a[e]);return i},status:function(e){r.status=e},start:function(){r.start=sn()},resp:function(e){r.resp=null!=e?r.start+e:sn(),Sn&&Cn("reqInfo",r)},end:function(e){var n=sn(),t=(r.end=null!=e?r.start+e:n,nn.assign({},ps,a)),i=[];nn.keys(t).forEach(function(e){var n=ds[e];n&&n[2]&&i.push([n[2],t[e]])}),k(Ct,n,i,null,null,1),Sn&&Cn("reqInfo",r)}}},updateTimedMetadata:function(e,n,t,i,r){for(var a=0;a<X.length;a++)try{X[a](e,n,t,i,r)}catch(e){on(e,"extTimedMetadataHandler")}},addCtTimeSpans:function(e){var u=A?A.filter(function(e){return e.type}):[];e.forEach(function(e){for(var n,t,i,r,a=e.start,o=e.end,s=0;s<u.length&&(i=(t=u[s]).start,r=t.end,!(o<=i));s++)a<r&&(i<a?(u.splice(s+1,0,nn.assign({},t,{start:a})),t.end=a):(n||(u.splice(s++,0,e),n=!0),o<r?t.start=o:u.splice(s--,1)));n||u.splice(s,0,e)}),A=Xe(u),T=O=_e=null},initCastTransfer:function(e){Ye()||Je(e,!1)},handleCastMessage:function(e,n){!e||e.type!==In||Ye()||(m.setData([[$r,e.appSID],[Yr,e.ctSID]]),e.ack)||Je(n,!0)},sa:{}}),s&&_([[ra,s[1]]]),Ks&Hs&&_s((e=yn.options).cmcdEnable?e.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new vn(function(n,t){try{j(x,m,u).then(function(e){i=Qe(e),n(i)},function(e){An(e),t(e)})}catch(e){t(on(e,s[0]+" createTargetObject"))}}):vn.reject("Not implemented"):i=Qe(U)}),wu=function(e,o){var s=new(e||P);return o=o||k,s.dispatch=function(e,n,t){var i,r,a;t=t||{},n&&((a=n.media)&&nn.assign(s,a),a=n.ima)&&((n=a.adsManager)&&nn.assign(s,n),t.getAdData=function(){return{currentTime:s.currentTime}},(i=a.ad)&&(t.getAd=function(){return{getAdId:function(){return i.adId},getAdSystem:function(){return i.adSystem},getAdvertiserName:function(){return i.advertiserName},getCreativeId:function(){return i.creativeId},getDealId:function(){return i.dealId},getDuration:function(){return i.duration},getSkipTimeOffset:function(){return i.skipTimeOffset},getVastMediaBitrate:function(){return i.vastMediaBitrate},getVastMediaWidth:function(){return i.vastMediaWidth},getVastMediaHeight:function(){return i.vastMediaHeight},getWrapperAdIds:function(){return i.wrapperAdIds},getWrapperAdSystems:function(){return i.wrapperAdSystems},getWrapperCreativeIds:function(){return i.wrapperCreativeIds},getAdPodInfo:function(){return{getPodIndex:function(){return i.adPodIndex},getTimeOffset:function(){return i.adTimeOffset}}},h:{clickThroughUrl:i.clickThroughUrl}}}),r=a.error)&&(t.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),e&&(n=new o(e),nn.assign(n,t),s.dispatchEvent(n))},s.getBoundingClientRect=function(){return s.boundingClientRect||{left:0,right:0,top:0,bottom:0}},s.getVolume=function(){return s.volume},s},Uu=[],xu="REQUEST_COMPLETE",Vu="SLOT_STARTED",Fu="SLOT_ENDED",Wu="AD_INITIATED",ju="AD_BUFFERING_START",Bu="AD_BUFFERING_END",Hu="AD_PAUSE",Gu="AD_RESUME",zu="AD_IMPRESSION",$u="AD_IMPRESSION_END",Yu="AD_COMPLETE",qu="AD_SKIPPED",Ku="AD_CLICK",Xu=(Uu.push(function(e,i,n,t){var r,a,o=i.setState,s=i.setAdData,u=i.fire,c={},l={on:{}};function d(){r&&(i.removeListeners(r),c={},r=a=null)}l.$update=l.update=function(e,n){var t;i.isInAds()&&(n&&s([[Eo,m(n,"getTimePosition")]]),a&&(s([[pn,m(a,"getPlayheadTime")],[po,m(a,"getDuration")],[fo,m(a,"getAdId")],[lo,a._creativeId],[So,m(a,"getDealId")],[Io,m(a,"getSkipOffset")]]),n=m(a,"getActiveCreativeRendition"))&&(t=m(n,"getHeight"),s([[Li,m(n,"getWidth")],[Ni,t],[Pi,t?t+"p":null]])),e)&&(n=m(e,"getAdVolume"),i.setData([[ar,100*n],[ia,0==n]]))},l.on[xu]=function(e,n){n.success?u(Mt,null,2):u(It,null,2)},l.on[Vu]=function(e,n){a=null,o(16),l.update(e,n.slot)},l.on[Fu]=function(){o(17),a=null},l.on[Wu]=function(){s([[Oi,1]]),u(bt,null,2)},l.on[ju]=function(){o(9)},l.on[Bu]=l.on[Gu]=function(){o(10,null,a)},l.on[zu]=function(){o(10,null,a),u(dt,null,2)},l.on[Hu]=function(){o(11)},l.on[Yu]=function(){o(13),a=null},l.on[qu]=function(){o(14),a=null},l.on[$u]=function(){a=null},l.on[Ku]=function(){u(lt)},l.on["ERROR"]=function(e,n){o(15,[[Lr,n.errorCode],[wr,n.errorInfo]]),a=null},l.on["AD"]=function(e,n){a=n.adInstance,l.update(e);var t=c[n.subType];t&&t(e,n)},l.$on=un(l.on),i.sa.fwContext=l,n.push(function(){r&&l.update(r)}),t.push(d),Nn({attachFwContext:function(e){var n;!i.shallBlock("attachFwContext",null,e)&&e!=r&&(d(),r=e)&&(n=E(Ze.tv,["freewheel","SDK"]),[xu,Vu,Fu,"AD"].forEach(function(t){var e=n&&n["EVENT_"+t];e&&i.addListener(r,e,function(e){var n=l.on[t];n&&n(r,e)})}),[Wu,ju,Bu,Hu,Gu,zu,$u,Yu,qu,Ku,"ERROR"].forEach(function(i){var e=n&&n["EVENT_"+i];e&&(c[e]=function(e,n){var t=l.on[i];t&&t(e,n)})}))},detachFwContext:d},[e,i])}),"play"),Ju="waiting",Qu="playing",Zu="pause",ec="seeking",nc="seeked",tc="ended",ic="durationchange",rc="ratechange",ac="timeupdate",oc=(Uu.push(function(e,a,n,t){var r,o,s,u,i=a.setState,c=a.setData,l=a.addListener,d=a.removeListeners;function p(){o&&d(o),r&&d(r),r=o=null}function f(){if(r){for(var e,n,t,i=0;i<r.length;i++)"metadata"===(t=r[i]).kind?n=n||t:"showing"===t.mode&&(e=e||t);s||c([[la,!!e],[ai,e?e.label||e.language:null]]),o!=n&&(o&&d(o),o=n)&&l(o,"cuechange",function(){var e=o.activeCues;if(e)for(var n,t,i=0;i<e.length;i++)(t=(n=e[i]).value)&&a.updateTimedMetadata("ID3",n.startTime,n.endTime,t.key,t.data)})}}t.push(p);var m={on:{}};function _(){u&&d(u),u=null}m.$update=m.update=function(e,n){n&&(c([[Ta,e.duration],[Zr,e.muted],[ea,e.playbackRate]]),f()),a.isInAds()||c([[pn,e.currentTime],[Oi,e.playbackRate],[Da,e.offsetWidth],[Ma,e.offsetHeight],[Mi,e],[ti,e.buffered],[ta,e.loop],[ia,e.muted],[ar,100*e.volume],[sa,e.readyState]])},m.on[Xu]=function(e){a.isIdle()&&(a.reset(),m.update(e,!0),i(1),i(2))},m.on[Ju]=function(e){m.update(e),i(2)},m.on[Qu]=function(e){m.update(e),a.isAdIdle()&&i(17),i(3)},m.on[Zu]=function(e){m.update(e),i(4)},m.on[ec]=function(e){m.update(e),i(5)},m.on[nc]=function(e){m.update(e),i(e.paused?4:3)},m.on[tc]=function(e){m.update(e),a.isAdIdle()&&i(17),i(6)},m.on["error"]=function(e){var n,t=e.error;t&&(n=[[Lr,t.code],[wr,t.message]]),m.update(e),i(8,n)},m.on[ic]=function(e){c([[Ta,e.duration]])},m.on[rc]=function(e){c([[Oi,e.playbackRate]])},m.on[ac]=function(e){m.update(e)},m.$on=un(m.on),a.sa.mediaElement=m,n.push(function(){u&&m.update(u)}),t.push(_),Nn({attachMediaElement:function(e){_(),(u=e)&&[[Xu,(e=[[tc,Zu,ec,Xu,Ju,nc,Qu]])[0]],[Ju,e[0]],[Qu,e[0]],[Zu,e[0]],[ec,e[0]],[nc,e[0]],[tc,e[0]],["error"],[ic],[rc],[ac]].forEach(function(i){var r=i[0];l(u,r,function(e){var n,t=m.on[r];t&&((n=i[1])?(a.stash(r,t,[u,e]),W(function(){a.unstash(n)},0)):t(u,e))})})},detachMediaElement:_,attachTextTracks:function(e,n){p(),s=n,(r=e)&&["change","addtrack","removetrack"].forEach(function(e){l(r,e,f)})},detachTextTracks:p},[a])}),"CLICK"),sc="STARTED",uc="AD_PROGRESS",cc="AD_BUFFERING",lc="IMPRESSION",dc="PAUSED",pc="RESUMED",fc="COMPLETE",mc="LOADED",_c="ALL_ADS_COMPLETED",hc="SKIPPED",vc="VOLUME_CHANGED",Ec="AD_ERROR",gc={CLICK:"click",STARTED:"start",AD_PROGRESS:"adProgress",AD_BUFFERING:"adBuffering",IMPRESSION:"impression",PAUSED:"pause",RESUMED:"resume",COMPLETE:"complete",LOADED:"loaded",ALL_ADS_COMPLETED:"allAdsCompleted",SKIPPED:"skip",VOLUME_CHANGED:"volumeChange",AD_ERROR:"adError"},yc=(Uu.push(function(e,a,n,t){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,c=a.removeListeners;function l(e){var n,e=e.getError();return e&&(n=[[Lr,e.getErrorCode()],[wr,e.getMessage()]],e=e.getInnerError())&&n.push([Ur,""+e]),n}var d,p,f={on:{}};function m(){o&&c(o),o=null}function _(e){var n=e.getAdPodInfo(),t=e.getVastMediaHeight(),t=[[fo,e.getAdId(),!0],[vo,e.getAdSystem(),!0],[yo,e.getAdvertiserName(),!0],[lo,e.getCreativeId(),!0],[So,e.getDealId(),!0],[po,e.getDuration(),!0],[Io,e.getSkipTimeOffset(),!0],[ki,e.getVastMediaBitrate(),!0],[Li,e.getVastMediaWidth(),!0],[Ni,t,!0],[Pi,t?t+"p":null,!0],[To,e.getWrapperAdIds(),!0],[Oo,e.getWrapperAdSystems(),!0],[Ao,e.getWrapperCreativeIds(),!0],[co,E(e,[/[a-z]/,"clickThroughUrl"]),!0]];return n&&t.push([Eo,n.getTimeOffset(),!0]),t}f.$update=f.update=function(e,n){a.isInAds()&&(n&&r(_(n)),e)&&(n=e.getVolume(),a.setData([[ar,100*n],[ia,0==n]]))},f.on[oc]=function(e){f.update(e),s(lt)},f.on[sc]=function(e,n){n=n.getAd();a.isInAds()||i(16),r([[Oi,1]]),f.update(e,n),i(10,null,n)},f.on[uc]=function(e,n){n=E(n.getAdData(),["currentTime"]);null!=n&&(f.update(e),9==a.getState()&&(null==d?d=n:d!=n&&i(10)),r([[pn,n]]))},f.on[cc]=function(e){f.update(e),i(9),d=null},f.on[lc]=function(e){f.update(e),s(dt,null,2)},f.on[dc]=function(e){f.update(e),i(11)},f.on[pc]=function(e){f.update(e),i(10)},f.on[fc]=function(e){f.update(e),i(13)},f.on[mc]=function(e,n){n=n.getAd();s(bt,n&&_(n),2)},f.on[_c]=function(){i(17),m()},f.on[hc]=function(e){f.update(e),i(14)},f.on[vc]=function(e){f.update(e)},f.on[Ec]=function(e,n){f.update(e),a.canSetState(15)?i(15,l(n)):s(It,l(n),2)},f.$on=un(f.on),a.sa.imaAdsManager=f,n.push(function(){o&&f.update(o)}),t.push(m);var h={on:{}};function v(){p&&c(p),p=null}h.on[Ec]=function(e,n){s(It,l(n),2)},h.$on=un(h.on),a.sa.imaAdsLoader=h,t.push(v),Nn({attachImaAdsManager:function(e){var n,t;!a.shallBlock("attachImaAdsManager",null,e)&&e!=o&&(m(),o=e)&&(e=E(Ze.google,["ima"]),n=E(e,["AdEvent","Type"],gc),[[oc],[sc,null,(t=[[sc,lc]])[0]],[uc],[cc],[lc,null,t[0]],[dc],[pc],[fc],[mc],[_c],[hc],[vc],[Ec,E(e,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],e=(i[1]||n)[r];e&&u(o,e,function(e){var n,t=f.on[r];t&&((n=i[2])?(a.stash(r,t,[o,e]),W(function(){a.unstash(n)},0)):t(o,e))})}),s(Mt,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(e){a.shallBlock("attachImaAdsLoader",null,e)||e==p||(v(),(p=e)&&(e=E(Ze.google,["ima","AdErrorEvent","Type"],gc)[Ec])&&u(p,e,function(e){var n=h.on[Ec];n&&n(p,e)}))},detachImaAdsLoader:v},[e,a])}),Uu.push(function(n,r,e,t,i,a,o){var s,u,c,l=r.addListener;function d(){s&&r.removeListeners(s),s=u=c=null}function p(e){for(var n;(n=u[0])&&n.t<=e;)u.shift(),delete n.t,s.onTimedMetadata(n)}t.push(d),a.push(function(e){s&&p(c=e[1])}),o.push(function(e,n,t,i,r){var a;s&&i&&r&&Hn(a="ID3"===e?r:a)&&((e={t:n})[i]=a,u.push(e),null!=c)&&p(c)}),Nn({attachImaDaiStreamManager:function(e){r.shallBlock("attachImaDaiStreamManager",null,e)||e==s||(d(),(s=e)&&(e=E(Ze.google,["ima","dai","api","StreamEvent","Type"]),u=[],e)&&(l(s,e.CUEPOINTS_CHANGED,function(e){r.isIdle()&&(e=E(e.getStreamData(),["cuepoints"]))&&e.length&&n.annotateContentSession(e.map(function(e){return{type:Ko,start:e.start,end:e.end}}))}),l(s,e.STARTED,function(e){var n,t,i,e=e.getAd();e&&(n=c||0,t=e.getAdPodInfo(),i=e.getVastMediaHeight(),r.addCtTimeSpans([{type:Ko,start:n,end:n+(e.getDuration()||0),_d:[[fo,e.getAdId()],[vo,e.getAdSystem()],[yo,e.getAdvertiserName()],[lo,e.getCreativeId()],[So,e.getDealId()],[Io,e.getSkipTimeOffset()],[Li,e.getVastMediaWidth()],[Ni,i],[Pi,i?i+"p":null],[To,e.getWrapperAdIds()],[Oo,e.getWrapperAdSystems()],[Ao,e.getWrapperCreativeIds()],[Eo,t?t.getTimeOffset():null]],_a:e}]))})))},detachImaDaiStreamManager:d},[n,r])}),yn.mediatailor=((ft=g.mediatailor)&&(ft.clientInfo+=" DZSDK "+en.cn+" v"+en.sv),ft),Uu.push(function(e,s,n,t,i,r,a,o){var u,c,l,d,p;function f(e,n,t){if(e&&1===e.playCount)for(var i=o.length,r=0;r<i;r++)o[r](n,t)}function m(){u&&c&&u.removeAdObserver(c),u=c=null,l=d=p=null}t.push(m),i.push(function(e,n,t,i){var r=l&&l[t.nm];return r&&r(e,n,t,i)}),r.push(function(e){u&&!s.isIdle()&&(d=e[1],p=s.getData(Di),de<ce||We("MT onPlayheadUpdate: "+d+", "+p),u.onPlayheadUpdate(d,p||null))}),Nn({attachMediaTailorSession:function(e,n){var o,t,i,r,a;n=n||yn.mediatailor,!s.shallBlock("attachMediaTailorSession",null,e)&&n&&e!=u&&(m(),t=function(){var e=s.getData(ar);Gn(e)&&f(o,14,e)},i=n.AdTrackingEvent,(r=[])[i.IMPRESSION]=(a=function(e){return function(){f(o,e)}})(3),r[i.LOADED]=a(1),r[i.START]=a(2),r[i.FIRST_QUARTILE]=a(4),r[i.MID_POINT]=a(5),r[i.THIRD_QUARTILE]=a(6),r[i.COMPLETE]=a(7),r[i.PAUSE]=a(8),r[i.RESUME]=a(9),r[i.FULLSCREEN]=a(15),r[i.EXIT_FULLSCREEN]=a(16),r[i.MUTE]=function(){f(o,14,0)},r[i.UNMUTE]=t,r[i.CLICK_THROUGH]=function(){s.fire(lt),f(o,13)},r[i.SKIP]=function(){s.fire(pt),f(o,12)},u=e)&&(a=n.PlaybackEvent,l={},[[a.START,kt,1],[a.END,$t,I],[a.PAUSE,Nt,I],[a.RESUME,jt,I],[a.MUTE,Rt,I],[a.UNMUTE,qt,I],[a.FULLSCREEN,Tt,I],[a.EXIT_FULLSCREEN,At,I]].forEach(function(r){l[r[1].nm]=function(e,n,t,i){r[2]&i&&u.onPlaybackEvent(r[0])}}),l[Kt.nm]=t,l[_t.nm]=function(){f(o,10)},l[ht.nm]=function(){f(o,11)},c={onNewAd:function(e){var n;s.addCtTimeSpans([(n=(n=(e=e).startDate)&&p?n-p+d:e.start,{type:Ko,start:n,end:n+e.duration,_a:e,_d:[[fo,e.vastAdId],[vo,e.adSystem],[lo,e.creativeId],[Io,e.skipOffset],[Eo,e.availStart],[co,e.videoClickThrough]]})])},onAdLoad:function(e){var n,t,i,r,a;1===(o=e).playCount&&(n=e.adVerifications)&&(t={},i=[],r=s.getData(ar),a=e.skipOffset,Gn(r)&&(t["v"]=r),t["d"]=e.duration,t["ap"]=!!s.getData(Xr),t["po"]=0===e.availStart?0:1,t["sk"]=0<=a,t["so"]=t["sk"]?a:null,t["vf"]=i,n.forEach(function(e){var n=E(e.javaScriptResource,[0,"uri"]),t=e.vendor;n&&t&&i.push({url:n,vd:t,p:e.verificationParameters||""})}),f(e,0,t))},onAdEnd:function(e){f(e,17),o=null},onAdTrackingEvent:function(e,n){n=r[n];n&&n()}},u.addAdObserver(c))},detachMediaTailorSession:m},[e])}),Uu.push(function(s,u,e,n,t,i,r){var p,c,l,a,d,f,m,_,h,v=["YMID","YSEQ","YTYP","YDUR"];function E(){p&&c&&p.removeAnalyticObserver(c),p=c=null,l=a=d=m=null}function o(e){for(var n;(n=l[0])&&n.t<=e;)l.shift(),p.onTimedMetadata(h.createFromMetadata(n.YMID,n.YSEQ,n.YTYP,n.YDUR,1e3*n.t))}function g(e,n,t){(a=a&&a.t===e?a:{t:e})[n]=t||"",nn.keys(a).length===v.length+1&&(l.push(a),(a=null)!=m)&&o(m)}n.push(E),t.push(function(e,n,t,i){var r=d&&d[t.nm];return r&&r(e,n,t,i)}),i.push(function(e){p&&!u.isIdle()&&(m=e[1],f===_.VOD||f===_.DVRLIVE?p.onPlayheadUpdate(tn.round(1e3*m)):o(m))});var y=T.fromCharCode;function S(e,n,t){for(var i,r=[];n<t;)31<(i=e[n++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(e,n,t,i,r){var a;if(p&&r&&f===_.LIVE)if("ID3"===e||"org.id3"===e)v.includes(i)&&(r instanceof M&&(r=new C(r))||r instanceof C?3===r[0]&&(a=S(r,1,r.length)):a=r,Hn(a))&&g(n,i,a);else if("urn:yospace:a:id3:2016"===e){if(r instanceof C)for(var o,s=S(r,0,r.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),v.includes(o[0])&&g(n,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===e&&r instanceof C){var c=r.length;if(9<c&&73===r[0]&&68===r[1]&&51===r[2]&&(r[3]<<8|r[4])<=1024&&!(192&r[5])){u=6;for(var l=0,d=10;u<d;)l=l<<7|127&r[u++];for(c=tn.min(c,l+10);u+9<c;){for(i="",d=u+4;u<d;)i+=y(r[u++]);for(l=0,d=u+4;u<d;)l=l<<7|127&r[u++];d=(u+=2)+l,v.includes(i)&&d<=c&&g(n,i,S(r,u,d)),u=d}}}}),Nn({attachYospaceSession:function(e){var n,a,o,t,i,r=Ze.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,e)&&r&&e!=p&&(E(),p=e)&&(n=r.PlayerEvent,e=r.BreakType,_=r.PlaybackMode,h=r.TimedMetadata,f=p.getPlaybackMode(),l=[],d={},[[n.START,kt,1],[n.STOP,$t,I],[n.PAUSE,Nt,I],[n.RESUME,jt,I],[n.STALL,Gt,I],[n.CONTINUE,zt,I]].forEach(function(r){d[r[1].nm]=function(e,n,t,i){r[2]&i&&p.onPlayerEvent(r[0],0)}}),d[Ht.nm]=function(){p.onPlayerEvent(n.SEEK,1e3*(m||0))},d[Rt.nm]=function(){p.onVolumeChange(!0)},d[qt.nm]=function(){p.onVolumeChange(!1)},a=function(e,n){e=e.getProperty(n);return e&&e.getValue()},o=function(e,n,t,i){e&&(n.push(e.getIdentifier()),t.push(e.getAdSystem()),i.push(e.getCreativeIdentifier()),o(e.getLineage(),n,t,i))},t=function(e){var n=e.getSkipOffset(),t=[],i=[],r=[],n=(o(e.getLineage(),t,i,r),[[fo,e.getIdentifier()],[vo,a(e,"AdSystem")],[yo,a(e,"Advertiser")],[Io,0<n?n/1e3:n],[To,t],[Oo,i],[Ao,r]]),t=e.getLinearCreative(),i=(t&&n.push([lo,t.getCreativeIdentifier()],[co,t.getClickThroughUrl()]),e.getStart()/1e3);return{type:Ko,start:i,end:i+e.getDuration()/1e3,_d:n,_a:e}},c={onAdvertBreakStart:function(e){},onAdvertBreakEnd:function(){},onAdvertStart:function(e){u.addCtTimeSpans([t(e)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(e){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(e){}},p.addAnalyticObserver(c),f===_.VOD)&&(i=[],(r=p.getAdBreaksByType(e.LINEAR))&&r.forEach(function(e){e=e.adverts;e&&e.forEach(function(e){i.push(t(e))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:E},[s])}),Uu.push(function(e,i,n,t,r,a,o,s){var u,m,_,c;function h(){c&&c(17),m=_=c=null,u=!1}t.push(h),s.push(function(e,n){u&&(0===e?(c&&c(17),c=!1===en.om?null:_(n)):c&&(c(e,n),17===e)&&(c=null))}),Nn({startOmidSessionClient:function(e){var c,l,d,p,f=g.OmidSessionClient,n=Bn.omidPartnerName,t=Bn.omidPartnerVersion;i.shallBlock("startOmidSessionClient",null,e=e||{})||(c=e.omidServiceWindow||Ze.self,l=e.videoElement,d=e.contentURL||L.href,p=e.accessModeHandler,f&&n&&t&&l?(h(),m=new f.Partner(n,t),_=function(n){var t,i,r,a,o,s,e=n["vf"],e=e&&e.map(function(e){var n=e["url"],t=e["vd"],e=e["p"]||"";return new f.VerificationScriptResource(n,t,e,p&&p(n,t,e)||"full")});return e&&e.length?((e=new f.Context(m,e,d)).setServiceWindow(c),"VIDEO"===l.tagName?e.setVideoElement(l):e.setVideoElement(l.getElementsByTagName("video")[0]||l),t=new f.AdSession(e),i=!1,r=[],t.setCreativeType("video"),t.setImpressionType("beginToRender"),t.isSupported()?(s=[,function(){a.loaded(new f.VastProperties(n["sk"],n["so"],n["ap"],n["po"]))},function(){o.start(n["d"],n["v"]/100)},function(){a.impressionOccurred()},function(){o.firstQuartile()},function(){o.midpoint()},function(){o.thirdQuartile()},function(){o.complete()},function(){o.pause()},function(){o.resume()},function(){o.bufferStart()},function(){o.bufferFinish()},function(){o.skipped()},function(){o.adUserInteraction("click")},function(e){n["v"]=e,o.volumeChange(e/100)},function(){o.playerStateChange("fullscreen")},function(){o.playerStateChange("normal")},function(){t.finish()}],t.registerSessionObserver(function(e){switch(e.type){case"sessionStart":var n;for(a=new f.AdEvents(t),o=new f.MediaEvents(t),i=!0;n=r.shift();)u(n[0],n[1]);break;case"sessionError":an("OMID ad session error")}}),t.start(),u):(an("OMID ad session unsupported"),null)):null;function u(e,n){var t;i?(t=s[e])&&t(n):r.push([e,n])}},u=!0):An("Missing OM SDK library or parameters"))},stopOmidSessionClient:h},[e])}),yn.omidPartnerName=Bn.omidPartnerName,yn.omidPartnerVersion=Bn.omidPartnerVersion,"unsupportedDataList"),Sc="maxCtPlayheadInterval",Ic="maxAdPlayheadInterval",Ac={};function Tc(){if(!Nu){var e=Js[2];if(rn(e))try{e()}catch(e){on(e,"onPageUnload")}nn.keys(mn).forEach(function(e){mn[e].publicContext.destroy()}),Zs(!0),Nu=!0}}ni=[Pt="jw","JW Player",ni=function(l,d){var p,i={"hlsjs":"HLS","html5":"MP4","shaka":Jo,"flash_video":Qo,"flash_adaptive":Qo,"flash_sound":Qo};if(!l)return"Invalid player";function e(e,n){d.addListener(l,e,n,"on","off")}function n(e,n){d.addListener(l,e,n,"on","off")}function t(){var e=E(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();return e&&e.getCurrentSession()}function r(e){var n=t();return n&&n.sendMessage(ie,e)}function a(e){var n,t,i,r,a,o,s,u,c=l.getConfig();e&&(e=[],(n=l.getPlaylistItem())&&(t=n.file,i=n.title,r=n.description,a=n.tags),a=a||c.tags,t&&e.push([Ra,t]),null!=i&&e.push([Na,i]),null!=r&&e.push([Aa,r]),a&&e.push([ba,a]),d.setData(e)),d.isIdle()||(n=l.getCurrentTime(),t=l.getDuration(),i=l.getVisualQuality(),r=E(c,["streamType"],"").toUpperCase(),a=l.getCurrentAudioTrack(),o=0<(e=l.getCurrentCaptions()),s=E(i,["level","height"]),u=E(i,["level","bitrate"])/1e3,null!=p&&d.setData([[Di,n+p]]),d.setData([[pn,n],[Ta,t||0],[ta,E(c,["repeat"])],[ki,u],[Li,E(i,["level","width"])],[Ni,s],[Pi,s?s+"p":null],[Oi,l.getPlaybackRate()],[ri,0<=a?E(m(l,"getAudioTracks"),[a,"name"]):null],[ai,o?l.getCaptionsList()[e].label:null],[la,o]]),c.streamType&&d.setData([[ca,"VOD"==r?"VOD":"Live"]]),rn(l.getViewable)&&d.setData([[Ci,1===l.getViewable()]]),rn(l.getPercentViewable)&&d.setData([[Mi,100*l.getPercentViewable()]]))}function o(){d.setAdData([[ri,null]]),rn(l.getViewable)&&d.setData([[Ci,1===l.getViewable()]]),rn(l.getPercentViewable)&&d.setData([[Mi,100*l.getPercentViewable()]])}d.setData([[aa,l.version]]),e("playlistItem",function(){d.isIdle()||d.reset()}),e("cast",function(e){e=e.active;d.setData([[Jr,e]]),e&&(d.removeListeners(null,ie),d.addListener(t(),ie,function(e,n){d.handleCastMessage(dn(n),r)},"addMessageListener","removeMessageListener"),d.initCastTransfer(r))}),e("meta",function(n){var e,t,i=n.metadataType,r=n.metadata;r&&("program-date-time"===i?(e=r.start,t=(t=r.programDateTime)&&new A(t).getTime(),null!=e&&t&&(p=t/1e3-e)):"id3"===i?nn.keys(r).forEach(function(e){d.updateTimedMetadata("ID3",n.metadataTime,null,e,r[e])}):"emsg"===i&&d.updateTimedMetadata(r.schemeIdUri,r.start,r.end,null,r.messageData))}),e("beforePlay",function(){var e=l.getConfig(),n=l.getProvider(),t=E(e,["autostart"]);null!=l.getPlaylist()&&!t&&1<=l.getPlaylist().length&&(t=0!=l.getPlaylistIndex()),d.isIdle()&&(d.reset(),d.setData([[Zr,l.getMute()],[ua,i[E(n,["name"])]],[oa,E(e,["setupConfig","preload"])],[Ia,E(e,["playlistItem","mediaid"],"")],[ea,E(e,["defaultPlaybackRate"])],[Xr,t]]),a(!(p=null)),d.setState(1))}),e("buffer",function(){a(!0),d.setState(2)}),e("time",function(){a()}),e("idle",function(e){l.getConfig().castActive&&(a(),d.setState(7))}),e("play",function(){l.getConfig().castActive&&d.isIdle()&&(d.setState(1),d.initCastTransfer(r),d.setState(2)),d.isInAds()||(a(),d.setState(3))}),e("pause",function(){a(),d.setState(4)}),e("seek",function(){a(),d.setState(5)}),e("complete",function(){a(),d.setState(6)}),e("error",function(e){var n=[];e&&(n.push([wr,e.message]),n.push([Lr,e.code])),a(),d.setState(8,n)}),e("levelsChanged",function(){a(),d.fire(Vt)}),e("fullscreen",function(){W(a,200)}),e("mutechange",a),e("volumechange",a),n("adRequest",function(){d.fire(Mt,null,2)}),n("adTime",function(e){var n=E(e,["ima","ad",/[a-z]/,"vastMediaHeight"],null);d.setAdData([[pn,e.position],[po,e.duration],[ki,E(e,["ima","ad",/[a-z]/,"vastMediaBitrate"],null)],[Li,E(e,["ima","ad",/[a-z]/,"vastMediaWidth"],null)],[Ni,n],[Pi,n?n+"p":null]]),o()}),n("adBreakStart",function(){o(),d.setState(16)}),n("adBreakEnd",function(){o(),d.setState(17)}),n("adClick",function(){o(),d.fire(lt)}),n("adLoaded",function(){d.fire(bt,null,2)}),n("adPlay",function(){o(),d.setState(10)}),n("adPause",function(){o(),d.setState(11)}),n("adStarted",function(){d.setAdData([[Oi,1]]),o(),d.setState(10)}),n("adSkipped",function(){o(),d.setState(14)}),n("adImpression",function(e){o(),e&&d.setAdData([[co,e.tag],[lo,E(e,["ima","ad",/[a-z]/,"creativeId"])],[fo,E(e,["ima","ad",/[a-z]/,"adId"])],[mo,e.client],[vo,e.adsystem],[Oo,E(e,["ima","ad",/[a-z]/,"adWrapperSystems"],[])],[Eo,E(e,["ima","ad",/[a-z]/,"adPodInfo","timeOffset"])],[So,E(e,["ima","ad",/[a-z]/,"dealId"])],[Io,E(e,["ima","ad",/[a-z]/,"skipTimeOffset"])],[Ao,E(e,["ima","ad",/[a-z]/,"adWrapperCreativeIds"],[])],[To,E(e,["ima","ad",/[a-z]/,"adWrapperIds"],[])],[yo,e.advertiser]]),d.fire(dt,null,2)}),n("adError",function(e){var n;e&&(n=[[wr,e.message],[Lr,e.adErrorCode],[Ur,E(e,["sourceError","stack"])]]),o(),d.setState(15,n)}),n("adComplete",function(){o(),d.setState(13)}),d.onTimer(function(){var e,n=l.getConfig();n&&(e=n.autostart,n=l.getPlaylist())&&!e&&1<=n.length&&(e=0!=l.getPlaylistIndex()),(d.isInAds()?o:a)(),d.setData([[Da,l.getWidth()],[Ma,l.getHeight()],[na,l.getFullscreen()],[ia,l.getMute()],[ar,l.getMute()?0:l.getVolume()],[Xr,e],[Qr,l.getControls()]])})},function(e,r,n){var t,i,a=e[1];function o(n,e){var t,i=r.reqTracer(e);n.addEventListener("readystatechange",function(){var e=this.readyState;1==e?i.start():2==e?(i.status(this.status),i.resp()):4==e&&i.end()}),ls?(t=i.headers(),i.urlBase!=e&&n.open("GET",i.urlBase,!0),nn.keys(t).forEach(function(e){n.setRequestHeader(e,t[e])})):n.open("GET",i.url(),!0)}cs&&a&&(S.isArray(a.playlist)?(a=un(a)).playlist=a.playlist.map(function(e){return(e=un(e)).sources?e.sources=e.sources.map(function(e){return(e=un(e)).onXhrOpen=o,e}):e.file&&(e.sources=[{file:e.file,onXhrOpen:o}],delete e.file),e}):a.file&&!a.playlist&&((a=un(a)).playlist=[{sources:[{onXhrOpen:o}]}],t=a.playlist[0],["description","image","mediaid","title"].forEach(function(e){a[e]&&(t[e]=a[e],delete a[e])}),i=t.sources[0],["file","type"].forEach(function(e){a[e]&&(i[e]=a[e],delete a[e])})));n=n.jwplayerFunction||Ze.jwplayer;return n?vn.resolve(n(e[0]).setup(a)):vn.reject("Missing jwplayer function")},Ru],Du=Du||ni,Ac[Pt]=ni;var Oc=!0;function bc(t){if(!Pu){if(!(en.ci||xn(ee,te)||t&&t[te]))return!1;t&&(ee=wn(ee,function(n){nn.keys(t).forEach(function(e){n.set(e,t[e])})}),fe()),Oc&&(Oc=!1,mu(St,sn()));var e=xn(ee,"env");en.cf="staging"===e||"dev"===e||"sandbox"===e?e:"",en.ci=xn(ee,te)||en.ci,en.om=null,v([[cr,en.ci]]),ou(),Pu=!0}return!0}function Cc(e){e()}function Mc(e,n,t){$n(t)||(null!=t&&an("Invalid contextOptions",t),t={});var i,r,a,o,s=t[vu];return s&&s!==Su[1]?s===Su[yu]?(r=(i=Cu()).publicContext,a=t[gu],i.name=t[Eu],null!=a&&r.setMetadata(a),i.fireEvent(yt,sn()),r):(An(a="Unknown context type: "+s),n?vn.reject(a):(o=a,{getError:function(){return o}})):Lu(e,n,t)}m(Ze,"addEventListener",["pagehide",Tc]),"Safari"==Ls&&m(Ze,"addEventListener",["beforeunload",function(e){W(function(){e.defaultPrevented||e.returnValue||Tc()},0)}]),Tn("Datazoom SDK "+en.sv+" ("+en.cn+") DDv3"),F(function(){Iu.length?Iu.forEach(Cc):sn()},en.ti),nn.assign(yn,{init:bc,setLogLevel:pe,createContext:function(e,n){return Mc(e,null,n)},createBaseContext:function(e){return(e=$n(e)?un(e):{})[vu]=Su[yu],Mc(null,null,e)},createContextAndTarget:function(e){for(var n=[],t=1;t<arguments.length;t++)n.push(arguments[t]);return Mc(null,n,e)},createCollectorProxy:function(e,n,t){return e&&e!==Su[1]?(An("Unsupported context type: "+e),null):wu(n,t)},adapterIDs:function(){return nn.keys(Ac)},contexts:function(){return nn.keys(mn).map(function(e){return mn[e].publicContext})},playerContexts:function(){return nn.keys(mn).filter(function(e){return 1==mn[e].type}).map(function(e){return mn[e].publicContext})},setMetadata:function(e){return!(null!=e&&!$n(e)||(_u(Is=dn(ln(e)),v),_(f,Ee,Is),0))},getMetadata:function(){return dn(ln(Is))},generateEvent:function(e,n,t){t=!t&&nn.keys(mn)[0];t?mn[t].publicContext.generateEvent(e,n):mu({ap:st,nm:K+e,on:Uo},sn(),null,n)},on:function(e,n){Js[e]=n},appSessionID:function(){return Ts},generateUUID(){return cn()},sdkEvent:{APP_SESSION_START:Xs,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:Ko,PROMO:"promo"},overridableMetadata:jo,name:en.cn,version:en.sv,dictionaryVersion:3}),Dc||W(bc,en.kd)})("object"==typeof globalThis?globalThis:window,{},(s={},function(){function e(n,i){var u=u||{},r=(u.scope={},u.createTemplateTagFirstArg=function(e){return e.raw=e},u.createTemplateTagFirstArgWithRaw=function(e,n){return e.raw=n,e},u.arrayIteratorImpl=function(e){var n=0;return function(){return n<e.length?{done:!1,value:e[n++]}:{done:!0}}},u.arrayIterator=function(e){return{next:u.arrayIteratorImpl(e)}},u.makeIterator=function(e){var n="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(n)return n.call(e);if("number"==typeof e.length)return u.arrayIterator(e);throw Error(String(e)+" is not an iterable or ArrayLike")},u.arrayFromIterator=function(e){for(var n,t=[];!(n=e.next()).done;)t.push(n.value);return t},u.arrayFromIterable=function(e){return e instanceof Array?e:u.arrayFromIterator(u.makeIterator(e))},u.ASSUME_ES5=!1,u.ASSUME_NO_NATIVE_MAP=!1,u.ASSUME_NO_NATIVE_SET=!1,u.SIMPLE_FROUND_POLYFILL=!1,u.ISOLATE_POLYFILLS=!1,u.FORCE_POLYFILL_PROMISE=!1,u.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1,u.objectCreate=u.ASSUME_ES5||"function"==typeof Object.create?Object.create:function(e){function n(){}return n.prototype=e,new n},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,n,t){return e!=Array.prototype&&e!=Object.prototype&&(e[n]=t.value),e},u.getGlobal=function(e){e=["object"==typeof globalThis&&globalThis,e,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof re&&re];for(var n=0;n<e.length;++n){var t=e[n];if(t&&t.Math==Math)return t}throw Error("Cannot find global object")},u.global=u.getGlobal(this),u.IS_SYMBOL_NATIVE="function"==typeof Symbol&&"symbol"==typeof Symbol("x"),u.TRUST_ES6_POLYFILLS=!u.ISOLATE_POLYFILLS||u.IS_SYMBOL_NATIVE,u.polyfills={},u.propertyToPolyfillSymbol={},u.POLYFILL_PREFIX="$jscp$",u.polyfill=function(e,n,t,i){n&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(e,n,t,i):u.polyfillUnisolated(e,n,t,i))},u.polyfillUnisolated=function(e,n,t,i){for(t=u.global,e=e.split("."),i=0;i<e.length-1;i++){var r=e[i];if(!(r in t))return;t=t[r]}(n=n(i=t[e=e[e.length-1]]))!=i&&null!=n&&u.defineProperty(t,e,{configurable:!0,writable:!0,value:n})},u.polyfillIsolated=function(e,n,t,i){var r=e.split(".");e=1===r.length,i=r[0],i=!e&&i in u.polyfills?u.polyfills:u.global;for(var a=0;a<r.length-1;a++){var o=r[a];if(!(o in i))return;i=i[o]}r=r[r.length-1],null!=(n=n(t=u.IS_SYMBOL_NATIVE&&"es6"===t?i[r]:null))&&(e?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:n}):n!==t&&(void 0===u.propertyToPolyfillSymbol[r]&&(t=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+t+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:n})))},u.getConstructImplementation=function(){var i;return u.TRUST_ES6_POLYFILLS&&"undefined"!=typeof Reflect&&Reflect.construct?(Reflect.construct(e,[],function(){}),new e instanceof e?Reflect.construct:(i=Reflect.construct,function(e,n,t){return e=i(e,n),t&&Reflect.setPrototypeOf(e,t.prototype),e})):function(e,n,t){return t=u.objectCreate((t=void 0===t?e:t).prototype||Object.prototype),Function.prototype.apply.call(e,t,n)||t};function e(){}},u.construct={valueOf:u.getConstructImplementation}.valueOf(),u.underscoreProtoCanBeSet=function(){var e={};try{return e.__proto__={a:!0},e.a}catch(e){}return!1},u.setPrototypeOf=u.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:u.underscoreProtoCanBeSet()?function(e,n){if(e.__proto__=n,e.__proto__!==n)throw new TypeError(e+" is not extensible");return e}:null,u.inherits=function(e,n){if(e.prototype=u.objectCreate(n.prototype),e.prototype.constructor=e,u.setPrototypeOf){var t=u.setPrototypeOf;t(e,n)}else for(t in n){var i;"prototype"!=t&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(n,t))&&Object.defineProperty(e,t,i):e[t]=n[t])}e.superClass_=n.prototype},u.getRestArguments=function(){for(var e=Number(this),n=[],t=e;t<arguments.length;t++)n[t-e]=arguments[t];return n},u.polyfill("Reflect",function(e){return e||{}},"es6","es3"),u.polyfill("Reflect.construct",function(e){return u.construct},"es6","es3"),u.polyfill("Reflect.setPrototypeOf",function(e){var t;return e||(u.setPrototypeOf?(t=u.setPrototypeOf,function(e,n){try{return t(e,n),!0}catch(e){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(e){var n,t,i,r;return e||((n=function(e,n){this.$jscomp$symbol$id_=e,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:n})}).prototype.toString=function(){return this.$jscomp$symbol$id_},t="jscomp_symbol_"+(1e9*Math.random()>>>0)+"_",i=0,r=function(e){if(this instanceof r)throw new TypeError("Symbol is not a constructor");return new n(t+(e||"")+"_"+i++,e)})},"es6","es3"),u.polyfill("Symbol.iterator",function(e){if(!e){e=Symbol("Symbol.iterator");for(var n="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),t=0;t<n.length;t++){var i=u.global[n[t]];"function"==typeof i&&"function"!=typeof i.prototype[e]&&u.defineProperty(i.prototype,e,{configurable:!0,writable:!0,value:function(){return u.iteratorPrototype(u.arrayIteratorImpl(this))}})}}return e},"es6","es3"),u.iteratorPrototype=function(e){return(e={next:e})[Symbol.iterator]=function(){return this},e},u.iteratorFromArray=function(n,t){n instanceof String&&(n+="");var i=0,r=!1,e={next:function(){var e;return!r&&i<n.length?(e=i++,{value:t(e,n[e]),done:!1}):{done:r=!0,value:void 0}}};return e[Symbol.iterator]=function(){return e},e},u.polyfill("Array.prototype.keys",function(e){return e||function(){return u.iteratorFromArray(this,function(e){return e})}},"es6","es3"),u.owns=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},u.polyfill("Object.values",function(e){return e||function(e){var n,t=[];for(n in e)u.owns(e,n)&&t.push(e[n]);return t}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(e,n,t){return e==i&&"q"==n&&t==r}}));return!0===r.q}catch(e){return!1}},u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS=!1,u.ES6_CONFORMANCE=u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS&&u.checkEs6ConformanceViaProxy(),u.polyfill("WeakMap",function(i){function t(){}function r(e){var n=typeof e;return"object"==n&&null!==e||"function"==n}function a(e){var n;u.owns(e,o)||(n=new t,u.defineProperty(e,o,{value:n}))}function e(e){var n;u.ISOLATE_POLYFILLS||(n=Object[e])&&(Object[e]=function(e){return e instanceof t?e:(Object.isExtensible(e)&&a(e),n(e))})}if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(i&&u.ES6_CONFORMANCE)return i}else if((()=>{if(i&&Object.seal)try{var e=Object.seal({}),n=Object.seal({}),t=new i([[e,2],[n,3]]);return 2==t.get(e)&&3==t.get(n)?(t.delete(e),t.set(n,4),!t.has(e)&&4==t.get(n)):void 0}catch(e){}})())return i;function n(e){if(this.id_=(s+=Math.random()+1).toString(),e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var o="$jscomp_hidden_"+Math.random(),s=(e("freeze"),e("preventExtensions"),e("seal"),0);return n.prototype.set=function(e,n){if(!r(e))throw Error("Invalid WeakMap key");if(a(e),u.owns(e,o))return e[o][this.id_]=n,this;throw Error("WeakMap key fail: "+e)},n.prototype.get=function(e){return r(e)&&u.owns(e,o)?e[o][this.id_]:void 0},n.prototype.has=function(e){return r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_)},n.prototype.delete=function(e){return!!(r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_))&&delete e[o][this.id_]},n},"es6","es3"),u.MapEntry=function(){},u.polyfill("Map",function(r){if(u.USE_PROXY_FOR_ES6_CONFORMANCE_CHECKS){if(r&&u.ES6_CONFORMANCE)return r}else if((()=>{if(!u.ASSUME_NO_NATIVE_MAP&&r&&"function"==typeof r&&r.prototype.entries&&"function"==typeof Object.seal)try{var e,n,t=Object.seal({x:4}),i=new r(u.makeIterator([[t,"s"]]));return"s"!=i.get(t)||1!=i.size||i.get({x:4})||i.set({x:4},"t")!=i||2!=i.size?void 0:(n=(e=i.entries()).next()).done||n.value[0]!=t||"s"!=n.value[1]?void 0:!((n=e.next()).done||4!=n.value[0].x||"t"!=n.value[1]||!e.next().done)}catch(e){}})())return r;function e(e){if(this.data_={},this.head_=t(),this.size=0,e){e=u.makeIterator(e);for(var n;!(n=e.next()).done;)this.set((n=n.value)[0],n[1])}}var a=new WeakMap,i=(e.prototype.set=function(e,n){var t=i(this,e=0===e?0:e);return t.list||(t.list=this.data_[t.id]=[]),t.entry?t.entry.value=n:(t.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:e,value:n},t.list.push(t.entry),this.head_.previous.next=t.entry,this.head_.previous=t.entry,this.size++),this},e.prototype.delete=function(e){return!(!(e=i(this,e)).entry||!e.list||(e.list.splice(e.index,1),e.list.length||delete this.data_[e.id],e.entry.previous.next=e.entry.next,e.entry.next.previous=e.entry.previous,e.entry.head=null,this.size--,0))},e.prototype.clear=function(){this.data_={},this.head_=this.head_.previous=t(),this.size=0},e.prototype.has=function(e){return!!i(this,e).entry},e.prototype.get=function(e){return(e=i(this,e).entry)&&e.value},e.prototype.entries=function(){return n(this,function(e){return[e.key,e.value]})},e.prototype.keys=function(){return n(this,function(e){return e.key})},e.prototype.values=function(){return n(this,function(e){return e.value})},e.prototype.forEach=function(e,n){for(var t,i=this.entries();!(t=i.next()).done;)e.call(n,(t=t.value)[1],t[0],this)},e.prototype[Symbol.iterator]=e.prototype.entries,function(e,n){var t=n&&typeof n,i=("object"==t||"function"==t?a.has(n)?t=a.get(n):(t=""+ ++o,a.set(n,t)):t="p_"+n,e.data_[t]);if(i&&u.owns(e.data_,t))for(e=0;e<i.length;e++){var r=i[e];if(n!=n&&r.key!=r.key||n===r.key)return{id:t,list:i,index:e,entry:r}}return{id:t,list:i,index:-1,entry:void 0}}),n=function(e,n){var t=e.head_;return u.iteratorPrototype(function(){if(t){for(;t.head!=e.head_;)t=t.previous;if(t.next!=t.head)return t=t.next,{done:!1,value:n(t)};t=null}return{done:!0,value:void 0}})},t=function(){var e={};return e.previous=e.next=e.head=e},o=0;return e},"es6","es3"),{AdEventType:{IMPRESSION:"impression",LOADED:"loaded",GEOMETRY_CHANGE:"geometryChange",SESSION_START:"sessionStart",SESSION_ERROR:"sessionError",SESSION_FINISH:"sessionFinish",MEDIA:"media",VIDEO:"video",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction",STATE_CHANGE:"stateChange"},MediaEventType:{LOADED:"loaded",START:"start",FIRST_QUARTILE:"firstQuartile",MIDPOINT:"midpoint",THIRD_QUARTILE:"thirdQuartile",COMPLETE:"complete",PAUSE:"pause",RESUME:"resume",BUFFER_START:"bufferStart",BUFFER_FINISH:"bufferFinish",SKIPPED:"skipped",VOLUME_CHANGE:"volumeChange",PLAYER_STATE_CHANGE:"playerStateChange",AD_USER_INTERACTION:"adUserInteraction"},ImpressionType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",UNSPECIFIED:"unspecified",LOADED:"loaded",BEGIN_TO_RENDER:"beginToRender",ONE_PIXEL:"onePixel",VIEWABLE:"viewable",AUDIBLE:"audible",OTHER:"other"},ErrorType:{GENERIC:"generic",VIDEO:"video",MEDIA:"media"},AdSessionType:{NATIVE:"native",HTML:"html",JAVASCRIPT:"javascript"},EventOwner:{NATIVE:"native",JAVASCRIPT:"javascript",NONE:"none"},SessionOwner:{JAVASCRIPT:"javascript",NATIVE:"native"},AccessMode:{FULL:"full",DOMAIN:"domain",LIMITED:"limited"},AppState:{BACKGROUNDED:"backgrounded",FOREGROUNDED:"foregrounded"},DeviceLockState:{LOCKED:"locked",UNLOCKED:"unlocked"},Environment:{APP:"app",WEB:"web"},DeviceCategory:{CTV:"ctv",DESKTOP:"desktop",MOBILE:"mobile",OTHER:"other"},InteractionType:{CLICK:"click",INVITATION_ACCEPT:"invitationAccept"},CreativeType:{DEFINED_BY_JAVASCRIPT:"definedByJavaScript",HTML_DISPLAY:"htmlDisplay",NATIVE_DISPLAY:"nativeDisplay",VIDEO:"video",AUDIO:"audio"},MediaType:{DISPLAY:"display",VIDEO:"video"},Reason:{NOT_FOUND:"notFound",HIDDEN:"hidden",BACKGROUNDED:"backgrounded",PICTURE_IN_PICTURE:"pictureInPicture",DEVICE_LOCKED:"deviceLocked",VIEWPORT:"viewport",OBSTRUCTED:"obstructed",CLIPPED:"clipped",UNMEASURABLE:"unmeasurable",NO_WINDOW_FOCUS:"noWindowFocus",NO_OUTPUT_DEVICE:"noOutputDevice"},SupportedFeatures:{CONTAINER:"clid",VIDEO:"vlid"},VideoPosition:{PREROLL:"preroll",MIDROLL:"midroll",POSTROLL:"postroll",STANDALONE:"standalone"},VideoPlayerState:{MINIMIZED:"minimized",COLLAPSED:"collapsed",NORMAL:"normal",EXPANDED:"expanded",FULLSCREEN:"fullscreen"},NativeViewKeys:{X:"x",LEFT:"left",Y:"y",TOP:"top",WIDTH:"width",HEIGHT:"height",AD_SESSION_ID:"adSessionId",IS_FRIENDLY_OBSTRUCTION_FOR:"isFriendlyObstructionFor",CLIPS_TO_BOUNDS:"clipsToBounds",CHILD_VIEWS:"childViews",END_X:"endX",END_Y:"endY",OBSTRUCTIONS:"obstructions",OBSTRUCTION_CLASS:"obstructionClass",OBSTRUCTION_PURPOSE:"obstructionPurpose",OBSTRUCTION_REASON:"obstructionReason",PIXELS:"pixels",HAS_WINDOW_FOCUS:"hasWindowFocus"},MeasurementStateChangeSource:{CONTAINER:"container",CREATIVE:"creative"},ElementMarkup:{OMID_ELEMENT_CLASS_NAME:"omid-element"},CommunicationType:{NONE:"NONE",DIRECT:"DIRECT",POST_MESSAGE:"POST_MESSAGE"},OmidImplementer:{OMSDK:"omsdk"},MessageMethod:{IDENTIFY_SERVICE_WINDOW:"identifyServiceWindow"}}),t="omid_message_guid",a="omid_message_method",o="omid_message_version",s="omid_message_args",c=function(e,n,t,i){this.guid=e,this.method=n,this.version=t,this.args=i},l=(c.isValidSerializedMessage=function(e){return!!e&&void 0!==e[t]&&void 0!==e[a]&&void 0!==e[o]&&"string"==typeof e[t]&&"string"==typeof e[a]&&"string"==typeof e[o]&&(void 0===e[s]||void 0!==e[s])},c.deserialize=function(e){return new c(e[t],e[a],e[o],e[s])},c.prototype.serialize=function(){var e={};return e[t]=this.guid,e[a]=this.method,e[o]=this.version,void 0!==this.args&&(e[s]=this.args),e},function(e){this.to=e,this.communicationType_=r.CommunicationType.NONE});function d(e,n){if(!n)throw Error("Value for "+e+" is undefined, null or blank.");if("string"!=typeof n&&!(n instanceof String))throw Error("Value for "+e+" is not a string.");if(""===n.trim())throw Error("Value for "+e+" is empty string.")}function p(e,n){if(null==n)throw Error("Value for "+e+" is undefined or null")}function f(e,n){if(null==n)throw Error(e+" must not be null or undefined.");if("number"!=typeof n||isNaN(n))throw Error("Value for "+e+" is not a number")}function m(e,n,t,i){if(f(e,n),n<t||i<n)throw Error("Value for "+e+" is outside the range ["+t+","+i+"]")}function U(e,n){return e&&(e[n]||(e[n]={}))}function e(e,n,t){(t=void 0===t?void 0===i?null:i:t)&&((e=e.split(".")).slice(0,e.length-1).reduce(U,t)[e[e.length-1]]=n)}function _(e,n,t,i){i=void 0===i?r.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=n,this.verificationParameters=t,this.accessMode=i}function h(e,n,t,i){t=void 0===t?null:t,i=void 0===i?null:i,p("Context.partner",e),this.partner=e,this.verificationScriptResources=n,this.videoElement=this.slotElement=null,this.contentUrl=t,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null}l.prototype.sendMessage=function(e,n){},l.prototype.handleMessage=function(e,n){this.onMessage&&this.onMessage(e,n)},l.prototype.serialize=function(e){return JSON.stringify(e)},l.prototype.deserialize=function(e){return JSON.parse(e)},l.prototype.isDirectCommunication=function(){return this.communicationType_===r.CommunicationType.DIRECT},l.prototype.isCrossOrigin=function(){},e("OmidSessionClient.Partner",function(e,n){d("Partner.name",e),d("Partner.version",n),this.name=e,this.version=n}),_.prototype.toJSON=function(){return{accessMode:this.accessMode,resourceUrl:this.resourceUrl,vendorKey:this.vendorKey,verificationParameters:this.verificationParameters}},e("OmidSessionClient.VerificationScriptResource",_),h.prototype.setVideoElement=function(e){p("Context.videoElement",e),this.videoElement=e},h.prototype.setSlotElement=function(e){p("Context.slotElement",e),this.slotElement=e},h.prototype.setServiceWindow=function(e){p("Context.serviceWindow",e),this.serviceWindow=e},e("OmidSessionClient.Context",h);var v={},E=(v.omidGlobal=(()=>{if(void 0!==n&&n)return n;if(void 0!==re&&re)return re;if("undefined"!=typeof window&&window)return window;if("undefined"!=typeof globalThis&&globalThis)return globalThis;var e=Function("return this")();if(e)return e;throw Error("Could not determine global object context.")})(),{ROOT:"omidSessionInterface",AD_EVENTS:"adEvents",MEDIA_EVENTS:"mediaEvents"}),g={sessionError:"reportError"},x=Object.keys(r.MediaEventType).map(function(e){return r.MediaEventType[e]}),V=["impressionOccurred"],y=function(e){e=void 0===e?v.omidGlobal:e,this.interfaceRoot_=e[E.ROOT]};function S(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var n=16*Math.random()|0;return e=("y"===e?3&n|8:n).toString(16)})}function I(){var e=u.getRestArguments.apply(0,arguments);F(function(){throw new(Function.prototype.bind.apply(Error,[null,"Could not complete the test successfully - "].concat(u.arrayFromIterable(e))))},function(){console.error.apply(console,u.arrayFromIterable(e))})}function F(e,n){"undefined"!=typeof jasmine&&jasmine?e():"undefined"!=typeof console&&console&&console.error&&n()}y.prototype.isSupported=function(){return null!=this.interfaceRoot_},y.prototype.sendMessage=function(e,n,t){if("registerSessionObserver"==e&&(t=[n]),n=this.interfaceRoot_,0<=V.indexOf(e=g[e]?g[e]:e)&&(n=n[E.AD_EVENTS]),!(n=(n=0<=x.indexOf(e)?n[E.MEDIA_EVENTS]:n)[e]))throw Error("Unrecognized method name: "+e+".");n.apply(null,u.arrayFromIterable(t))};var A="1.5.0-iab4484",W=3;function T(e){return/\d+\.\d+\.\d+(-.*)?/.test(e)}function O(e,n){e=e.split("-")[0].split("."),n=n.split("-")[0].split(".");for(var t=0;t<W;t++){var i=parseInt(e[t],10),r=parseInt(n[t],10);if(r<i)break;if(i<r)return!1}return!0}var b="1.0.3";function j(e,n){return T(e)&&O(e,b)?n:JSON.stringify(n)}function B(e,n){return T(e)&&O(e,b)?n||[]:n&&"string"==typeof n?JSON.parse(n):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function G(e){return z(e,H.SESSION_SERVICE)}function z(e,n){return n+e}function C(e){return null!=e&&void 0!==e.top&&null!=e.top}function M(e){var n;if(e!==v.omidGlobal)try{if(void 0===e.location.hostname)return!0;""!==(n=e).x&&n.x}catch(e){return!0}return!1}function $(e){return C(e=void 0===e&&"undefined"!=typeof window&&window?window:e)?e:v.omidGlobal}function Y(e){return C(e)?e.top:v.omidGlobal}var D=function(e){l.call(this,e),this.communicationType_=r.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,l),D.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.handleExportedMessage(e.serialize(),this)},D.prototype.handleExportedMessage=function(e,n){c.isValidSerializedMessage(e)&&this.handleMessage(c.deserialize(e),n)},D.prototype.isCrossOrigin=function(){return!1},function(e,n){n=void 0===n?v.omidGlobal:n,l.call(this,n);var t=this;this.communicationType_=r.CommunicationType.POST_MESSAGE,e.addEventListener("message",function(e){var n;"object"==typeof e.data&&(n=e.data,c.isValidSerializedMessage(n))&&(n=c.deserialize(n),e.source)&&t.handleMessage(n,e.source)})}),N=(u.inherits(R,l),R.isCompatibleContext=function(e){return!!(e&&e.addEventListener&&e.postMessage)},R.prototype.sendMessage=function(e,n){if(!(n=void 0===n?this.to:n))throw Error("Message destination must be defined at construction time or when sending the message.");n.postMessage(e.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||M(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(e){var n={};return n[r.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,n[r.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,n[e]}});function q(e,n){try{return e.frames&&!!e.frames[n]}catch(e){return!1}}function K(e,n){e.document.write('<iframe style="display:none" id="'+n+'" name="'+n+'" sandbox></iframe>')}N.isOmidPresent=function(n){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return q(n,e)})},N.getOmidEnvironment=function(e){for(var n=u.makeIterator(Object.values(r.Environment)),t=n.next();!t.done;t=n.next()){t=t.value;if(q(e,N.getEnvironmentIframeName(t)))return t}return null},N.declareOmidPresence=function(n,e){n.frames&&n.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return!!n.frames[e]})&&(null==n.document.body&&N.isMutationObserverAvailable_(n)?N.registerMutationObserver_(n,e):(e=N.getEnvironmentIframeName(e),n.document.body?(N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e)):(K(n,N.OMID_PRESENT_FRAME_NAME),K(n,e))))},N.appendPresenceIframe_=function(e,n){var t=e.document.createElement("iframe");t.id=n,t.name=n,t.style.display="none",t.sandbox="",e.document.body.appendChild(t)},N.isMutationObserverAvailable_=function(e){return"MutationObserver"in e},N.registerMutationObserver_=function(n,t){var i=new MutationObserver(function(e){e.forEach(function(e){"BODY"===e.addedNodes[0].nodeName&&(e=N.getEnvironmentIframeName(t),N.appendPresenceIframe_(n,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(n,e),i.disconnect())})});i.observe(n.document.documentElement,{childList:!0})};var X=["omid","v1_SessionServiceCommunication"];function J(e,n){return n.reduce(function(e,n){return e&&e[n]},e)}function Q(e,n,t,i){for(var r=(n=u.makeIterator(n)).next();!r.done;r=n.next())if(r=((e,n,t,i)=>{if(!M(n))try{var r=J(n,t);if(r)return new D(r)}catch(e){}return i(n)?new R(e,n):null})(e,r.value,t,i))return r;return null}function Z(e,n,t){t=void 0===t?N.isOmidPresent:t;var i=[e,Y(e)];return n&&i.unshift(n),Q(e,i,X,t)}function P(e,n,t){p("AdSession.context",e),this.adSessionId_=S(),this.context_=e,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=n||Z($(),i),this.sessionInterface_=t||new y,this.isSessionRunning_=this.hasMediaEvents_=this.hasAdEvents_=!1,this.impressionType_=this.creativeType_=null,this.creativeLoaded_=!1,this.callbackMap_={},this.communication_&&(this.communication_.onMessage=this.handleInternalMessage_.bind(this)),this.setClientInfo_(),this.injectVerificationScripts_(e.verificationScriptResources),this.sendSlotElement_(e.slotElement),this.sendVideoElement_(e.videoElement),this.sendContentUrl_(e.contentUrl),this.watchSessionEvents_()}function ee(e,n,t,i){this.isSkippable=e,this.skipOffset=n,this.isAutoPlay=t,this.position=i}function k(e){p("AdEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerAdEvents(),this.adSession=e}catch(e){throw Error("AdSession already has an ad events instance registered")}}function L(e){p("MediaEvents.adSession",e),this.adSessionId_=e.getAdSessionId();try{e.registerMediaEvents(),this.adSession=e}catch(e){throw Error("AdSession already has a media events instance registered")}}function ne(t){var e=$();new R(e).onMessage=function(e,n){e.method===r.MessageMethod.IDENTIFY_SERVICE_WINDOW&&t(n)}}P.prototype.getAdSessionId=function(){return this.adSessionId_},P.prototype.setCreativeType=function(e){if(e===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined with value "+r.CreativeType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.creativeType_&&this.creativeType_!==r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type cannot be redefined");if(void 0===this.creativeType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setCreativeType",e,this.adSessionId_),this.creativeType_=e},P.prototype.setImpressionType=function(e){if(e===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined with value "+r.ImpressionType.DEFINED_BY_JAVASCRIPT);if(this.impressionOccurred_)throw Error("Impression has already occurred");if(this.creativeLoaded_)throw Error("Creative has already loaded");if(this.impressionType_&&this.impressionType_!==r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type cannot be redefined");if(void 0===this.impressionType_)throw Error("Native integration is using OMID 1.2 or earlier");this.sendOneWayMessage("setImpressionType",e,this.adSessionId_),this.impressionType_=e},P.prototype.isSupported=function(){return!!this.communication_||this.sessionInterface_.isSupported()},P.prototype.isSendingElementsSupported_=function(){return this.communication_?this.communication_.isDirectCommunication():this.sessionInterface_.isSupported()},P.prototype.registerSessionObserver=function(e){this.sendMessage("registerSessionObserver",e,this.adSessionId_)},P.prototype.start=function(){this.sendOneWayMessage("startSession",{customReferenceData:this.context_.customReferenceData,underEvaluation:this.context_.underEvaluation},this.adSessionId_)},P.prototype.finish=function(){this.sendOneWayMessage("finishSession",this.adSessionId_)},P.prototype.error=function(e,n){this.sendOneWayMessage("sessionError",e,n,this.adSessionId_)},P.prototype.registerAdEvents=function(){if(this.hasAdEvents_)throw Error("AdEvents already registered.");this.hasAdEvents_=!0,this.sendOneWayMessage("registerAdEvents",this.adSessionId_)},P.prototype.registerMediaEvents=function(){if(this.hasMediaEvents_)throw Error("MediaEvents already registered.");this.hasMediaEvents_=!0,this.sendOneWayMessage("registerMediaEvents",this.adSessionId_)},P.prototype.sendOneWayMessage=function(e){var n=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[e,null].concat(u.arrayFromIterable(n)))},P.prototype.sendMessage=function(e,n){var t=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(e,n,t):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(e,n,t)},P.prototype.sendInternalMessage_=function(e,n,t){var i=S();n&&(this.callbackMap_[i]=n),e=new c(i,G(e),A,j(A,t)),this.communication_.sendMessage(e)},P.prototype.handleInternalMessage_=function(e,n){n=e.method;var t,i=e.guid;e=e.args,"response"===n&&this.callbackMap_[i]&&(t=B(A,e),this.callbackMap_[i].apply(this,t)),"error"===n&&window.console&&I(e)},P.prototype.sendInterfaceMessage_=function(e,n,t){try{this.sessionInterface_.sendMessage(e,n,t)}catch(e){I("Failed to communicate with SessionInterface with error:"),I(e)}},P.prototype.assertSessionRunning=function(){if(!this.isSessionRunning_)throw Error("Session not started.")},P.prototype.impressionOccurred=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.impressionOccurred_=!0},P.prototype.creativeLoaded=function(){if(this.creativeType_===r.CreativeType.DEFINED_BY_JAVASCRIPT)throw Error("Creative type has not been redefined");if(this.impressionType_===r.ImpressionType.DEFINED_BY_JAVASCRIPT)throw Error("Impression type has not been redefined");this.creativeLoaded_=!0},P.prototype.setClientInfo_=function(){this.sendOneWayMessage("setClientInfo",A,this.context_.partner.name,this.context_.partner.version,this.adSessionId_)},P.prototype.injectVerificationScripts_=function(e){e&&(e=e.map(function(e){return e.toJSON()}),this.sendOneWayMessage("injectVerificationScriptResources",e,this.adSessionId_))},P.prototype.sendSlotElement_=function(e){this.sendElement_(e,"setSlotElement")},P.prototype.sendVideoElement_=function(e){this.sendElement_(e,"setVideoElement")},P.prototype.sendElement_=function(e,n){e&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(n,e,this.adSessionId_):this.error(r.ErrorType.GENERIC,"Session Client "+n+" called when communication is cross-origin"))},P.prototype.sendContentUrl_=function(e){e&&this.sendOneWayMessage("setContentUrl",e,this.adSessionId_)},P.prototype.setElementBounds=function(e){p("AdSession.elementBounds",e),this.sendOneWayMessage("setElementBounds",e,this.adSessionId_)},P.prototype.watchSessionEvents_=function(){var n=this;this.registerSessionObserver(function(e){e.type===r.AdEventType.SESSION_START&&(n.isSessionRunning_=!0,n.creativeType_=e.data.creativeType,n.impressionType_=e.data.impressionType),e.type===r.AdEventType.SESSION_FINISH&&(n.isSessionRunning_=!1)})},e("OmidSessionClient.AdSession",P),ee.prototype.toJSON=function(){return{isSkippable:this.isSkippable,skipOffset:this.skipOffset,isAutoPlay:this.isAutoPlay,position:this.position}},k.prototype.impressionOccurred=function(){this.adSession.assertSessionRunning(),this.adSession.impressionOccurred(),this.adSession.sendOneWayMessage("impressionOccurred",this.adSessionId_)},k.prototype.loaded=function(e){e=void 0===e?null:e,this.adSession.creativeLoaded(),e=e?e.toJSON():null,this.adSession.sendOneWayMessage("loaded",e,this.adSessionId_)},e("OmidSessionClient.AdEvents",k),L.prototype.start=function(e,n){f("MediaEvents.start.duration",e),m("MediaEvents.start.mediaPlayerVolume",n,0,1),this.adSession.sendOneWayMessage("start",e,n,this.adSessionId_)},L.prototype.firstQuartile=function(){this.adSession.sendOneWayMessage("firstQuartile",this.adSessionId_)},L.prototype.midpoint=function(){this.adSession.sendOneWayMessage("midpoint",this.adSessionId_)},L.prototype.thirdQuartile=function(){this.adSession.sendOneWayMessage("thirdQuartile",this.adSessionId_)},L.prototype.complete=function(){this.adSession.sendOneWayMessage("complete",this.adSessionId_)},L.prototype.pause=function(){this.adSession.sendOneWayMessage("pause",this.adSessionId_)},L.prototype.resume=function(){this.adSession.sendOneWayMessage("resume",this.adSessionId_)},L.prototype.bufferStart=function(){this.adSession.sendOneWayMessage("bufferStart",this.adSessionId_)},L.prototype.bufferFinish=function(){this.adSession.sendOneWayMessage("bufferFinish",this.adSessionId_)},L.prototype.skipped=function(){this.adSession.sendOneWayMessage("skipped",this.adSessionId_)},L.prototype.volumeChange=function(e){m("MediaEvents.volumeChange.mediaPlayerVolume",e,0,1),this.adSession.sendOneWayMessage("volumeChange",e,this.adSessionId_)},L.prototype.playerStateChange=function(e){p("MediaEvents.playerStateChange.playerState",e),this.adSession.sendOneWayMessage("playerStateChange",e,this.adSessionId_)},L.prototype.adUserInteraction=function(e){p("MediaEvents.adUserInteraction.interactionType",e),this.adSession.sendOneWayMessage("adUserInteraction",e,this.adSessionId_)},e("OmidSessionClient.MediaEvents",L),e("OmidSessionClient.OmidVersion",function(e,n){d("OmidVersion.semanticVersion",e),d("OmidVersion.apiLevel",n)}),e("OmidSessionClient.listenForServiceWindow",ne),e("OmidSessionClient.VastProperties",ee);var w={VerificationVendorId:{OTHER:1,MOAT:2,DOUBLEVERIFY:3,INTEGRAL_AD_SCIENCE:4,PIXELATE:5,NIELSEN:6,COMSCORE:7,MEETRICS:8,GOOGLE:9}};function te(e){for(var n=u.makeIterator(ie.keys()),t=n.next();!t.done;t=n.next())for(var t=t.value,i=u.makeIterator(ie.get(t)),r=i.next();!r.done;r=i.next())if(r.value.test(e))return t;return w.VerificationVendorId.OTHER}var ie=new Map([[w.VerificationVendorId.MOAT,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.moatads\.com\/.*$/]],[w.VerificationVendorId.DOUBLEVERIFY,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.doubleverify\.com\/.*$/,/^(https?:\/\/|\/\/)?c\.[\w\-]+\.com\/vfw\/dv\/.*$/,/^(https?:\/\/|\/\/)?(www\.)?[\w]+\.tv\/r\/s\/d\/.*$/,/^(https?:\/\/|\/\/)?(\w\.?)+\.dv\.tech\/.*$/]],[w.VerificationVendorId.INTEGRAL_AD_SCIENCE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.adsafeprotected\.com\/.*$/]],[w.VerificationVendorId.PIXELATE,[/^https?:\/\/(q|cdn)\.adrta\.com\/s\/.*\/(aa|aanf)\.js.*$/,/^https:\/\/cdn\.rta247\.com\/s\/.*\/(aa|aanf)\.js.*$/]],[w.VerificationVendorId.NIELSEN,[]],[w.VerificationVendorId.COMSCORE,[/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.voicefive\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.measuread\.com\/.*$/,/^(https?:\/\/|\/\/)?[-a-zA-Z0-9.]+\.scorecardresearch\.com\/.*$/]],[w.VerificationVendorId.MEETRICS,[/^(https?:\/\/|\/\/)?s418\.mxcdn\.net\/bb-serve\/omid-meetrics.*\.js$/]],[w.VerificationVendorId.GOOGLE,[/^(https?:\/\/|\/\/)?pagead2\.googlesyndication\.com\/.*$/,/^(https?:\/\/|\/\/)?www\.googletagservices\.com\/.*$/]]]);e("OmidSessionClient.verificationVendorIdForScriptUrl",te),e("OmidSessionClient.VerificationVendorId",w.VerificationVendorId),w.verificationVendorIdForScriptUrl=te}var re="object"==typeof globalThis?globalThis:window,n={},t=void 0===re?this:re;if("object"==typeof(r=void 0===n?void 0:n)&&"string"!=typeof r.nodeName)e(t,r);else{var i,r={},a=["1.5.0-iab4484"],o="default";for(i in a.push(o),e(t,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(t,i)&&Object.defineProperty(t,i,{value:{}}),a.forEach(function(e){var n;null==Object.getOwnPropertyDescriptor(t[i],e)&&(n=function e(n){for(var t in n)n.hasOwnProperty(t)&&(n[t]=e(n[t]));return Object.freeze(n)}(r[i]),Object.defineProperty(t[i],e,{get:function(){return n},enumerable:!0}))}))}s.OmidSessionClient=n.OmidSessionClient}(),t={},e=self,n=function(){{var O,b,C,M,D={d:function(e,n){for(var t in n)D.o(n,t)&&!D.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},o:function(e,n){return Object.prototype.hasOwnProperty.call(e,n)}},R={};D.d(R,{default:function(){return T}});let o=1,t=2,i=4,r="[MT] ",s=((O={})[O.NONE=0]="NONE",O[O.ERROR=1]="ERROR",O[O.WARNING=2]="WARNING",O[O.INFO=3]="INFO",O[O.DEBUG=4]="DEBUG",O),a=t;function N(e,n,t,i){a>=e&&(t=r+t,void 0===i?n.call(console,t):n.call(console,t,i))}let u=console.error,p=console.warn,f=console.debug;function P(e,n){N(o,u,e,n)}function Me(e,n){N(t,p,e,n)}function De(e,n){N(i,f,e,n)}function k(e){return("object"==typeof globalThis?globalThis:window)?.[e]}function L(e){if(e){if(Array.isArray(e))return e.slice();if("object"==typeof e)return Object.assign({},e)}return null}function Re(e){if(e)try{return JSON.parse(JSON.stringify(e))}catch(e){P("Exception during deep-copy: "+e,e)}return null}function w(e,n){if(null!=e)try{return new URL(e,n).toString()}catch(e){P("URL Exception: "+e,e)}return null}function Ne(r,a,o){let e=a?.length||0;if(0<e){let t=0,i=e-1;for(;t<i;){let e=Math.ceil((t+i)/2),n=o(r,a[e]);if(0===n)return e;0<n?t=e:i=e-1}if(0<t||0<=o(r,a[t]))return t}return-1}let c=[];for(let e=0;e<256;e++)c.push((e+256).toString(16).substr(1).toLowerCase());let l=!!k("crypto")?.getRandomValues,m=(l||Me("crypto.getRandomValues() unavailable"),[2,9]),W=10,pe=5,j=2,B="ad_start",H="ad_end",G="ad_progress",z="ad_click",$="ad_can_skip",fe="ad_incoming",me="nonlinear_ad_start",_e="nonlinear_ad_end",he="ad_tracking_info_response",ve=0,Ee=1,ge=2,ye=3,Se=4,Ie=5,Ae=6,Te=7,Y=0,q=1,K=2,X=3,J=4,Q=5,Z=6,ee=7,ne=8,te=9,ie=10,re=11,ae=12,oe=13,se=14,_=["adWillAutoPlay","adWillPlayMuted","continuousPlayback","descriptionUrl","iconsSupported","nonceLengthLimit","omidPartnerName","omidPartnerVersion","playerType","playerVersion","ppid","sessionId","supportedApiFrameworks","url","videoHeight","videoWidth"],d=null;function Pe(e){try{return JSON.parse(e)}catch(e){return Me("JSON Parse Exception: "+e,e),null}}function U(i,r,n,a,o){let s=new XMLHttpRequest,u=a?.retryHeuristics,c=0,l=!1;function d(){if(!l)try{{var t=s;var e=a;let n=e?.headers;t.open(i,r,!0),t.timeout=e?.timeout??0,n&&Object.keys(n).forEach(e=>{t.setRequestHeader(e,n[e])})}c++,s.send(n),De(`XHR (${i} ${r}, #${c}) request sent`,n)}catch(e){Me("XHR Exception: "+e,e)}}return s.onreadystatechange=()=>{if(!l&&4===s.readyState){var e=s.status,n=s.responseText;if(De(`XHR (${r}) response received, status `+e,n),e<200||299<e){var t=u?u(c,e,n):-1;if(0<=t)return setTimeout(d,t),void Me(`XHR (${r}) failed (status ${e}), retry in ${t} ms`,n)}o&&o(n,e,r)}},d(),{abort(){l=!0,s.abort(),De(`XHR (${r}) aborted`)}}}function ke(e,n,t){return U("GET",e,null,n,t)}let Oe="clickThrough",ue=[],ce=(ue[Y]=["impression"],ue[q]=["clickTracking"],ue[K]=["loaded"],ue[X]=["start","creativeView"],ue[J]=["firstQuartile"],ue[Q]=["midpoint"],ue[Z]=["thirdQuartile"],ue[ee]=["complete"],ue[ne]=["skip"],ue[te]=["pause"],ue[ie]=["resume"],ue[re]=["mute"],ue[ae]=["unmute"],ue[oe]=["fullscreen","playerExpand"],ue[se]=["exitFullscreen","playerCollapse"],"adData: ");function Le(e){return e&&"object"==typeof e&&e}function we(a,e){if(!Le(a))return null;let[,o]=e,s={},n=o.length;for(let r=0;r<n;r++){let[e,n,t]=o[r],i=t[0](a[e],t);if(null!=i)s[e]=i;else if(!n)return De(ce+("Missing object field: "+e),a),null}return s}function Ue(e){return e&&Array.isArray(e)?e:null}function x(t,e){if(!Ue(t))return null;let[,i,r]=e,a=[],o=t.length;for(let n=0;n<o;n++){let e=r[0](t[n],r);null!=e||i?a.push(e):De(ce+("Invalid array entry at: "+n),t)}return a}function xe(e){return"number"==typeof e?e:null}function Ve(e){return"string"==typeof e?e:null}let e=[xe],n=[Ve],h=[function(e){return"boolean"==typeof e?e:null}],v=[we,[["content",!1,n],["type",!1,n]]],E=[we,[["beaconUrls",!1,[x,!1,n]],["durationInSeconds",!0,e],["eventId",!0,n],["eventProgramDateTime",!0,n],["eventType",!1,n],["startTimeInSeconds",!0,e]]],be=[we,[["adId",!0,n],["adParameters",!0,n],["adSystem",!0,n],["adTitle",!0,n],["adVerifications",!0,[x,!1,[we,[["executableResource",!0,[x,!1,[we,[["apiFramework",!0,n],["language",!0,n],["type",!0,n],["uri",!0,n]]]]],["javaScriptResource",!0,[x,!1,[we,[["apiFramework",!0,n],["browserOptional",!0,n],["uri",!0,n]]]]],["trackingEvents",!0,[x,!1,[we,[["event",!1,n],["uri",!1,n]]]]],["vendor",!0,n],["verificationParameters",!0,n]]]]],["companionAds",!0,[x,!1,[we,[["adParameters",!0,n],["altText",!0,n],["attributes",!0,[we,[["adSlotId",!0,n],["apiFramework",!0,n],["assetHeight",!0,n],["assetWidth",!0,n],["expandedHeight",!0,n],["expandedWidth",!0,n],["height",!0,n],["id",!0,n],["pxratio",!0,n],["renderingMode",!0,n],["width",!0,n]]]],["companionClickThrough",!0,n],["companionClickTracking",!0,n],["htmlResource",!0,n],["iFrameResource",!0,n],["sequence",!0,n],["staticResource",!0,n],["trackingEvents",!0,[x,!1,[we,[["beaconUrls",!1,[x,!1,n]],["eventType",!1,n]]]]]]]]],["creativeId",!0,n],["creativeSequence",!0,n],["extensions",!0,[x,!1,v]],["trackingEvents",!0,[x,!1,E]],["vastAdId",!0,n]]],Ce=[we,[["nonLinearAdList",!1,[x,!1,[we,[["durationInSeconds",!1,e],["adId",!0,n],["adParameters",!0,n],["adSystem",!0,n],["adTitle",!0,n],["creativeId",!0,n],["creativeAdId",!0,n],["creativeSequence",!0,n],["width",!0,n],["height",!0,n],["expandedWidth",!0,n],["expandedHeight",!0,n],["scalable",!0,h],["maintainAspectRatio",!0,h],["minSuggestedDuration",!0,n],["apiFramework",!0,n],["staticResource",!0,n],["staticResourceCreativeType",!0,n],["iFrameResource",!0,n],["htmlResource",!0,n],["clickThrough",!0,n],["clickTracking",!0,n],["clickTrackingId",!0,n]]]]],["extensions",!0,[x,!1,v]],["trackingEvents",!0,[x,!1,E]]]],le=new DOMParser,g=/\n|<!\[CDATA\[|\]\]>/g;function Fe(e){e=e?.textContent;return null==e?null:e.replace(g,"").trim()}function We(e,n,t){t&&(e[n]=t)}function je(e,n){for(var t of e.children)n[t.tagName]?.(t)}function Be(e){let t=[];return je(e,{IconClickFallbackImage:e=>{let n={};t.push(n),We(n,"width",e.getAttribute("width")),We(n,"height",e.getAttribute("height")),je(e,{AltText:e=>{We(n,"altText",Fe(e))},StaticResource:e=>{We(n,"staticResource",Fe(e))}})}}),t}(O={})[O.AD_START=B]="AD_START",O[O.AD_END=H]="AD_END",O[O.AD_PROGRESS=G]="AD_PROGRESS",O[O.AD_CLICK=z]="AD_CLICK",O[O.AD_CAN_SKIP=$]="AD_CAN_SKIP",O[O.AD_INCOMING=fe]="AD_INCOMING",O[O.NONLINEAR_AD_START=me]="NONLINEAR_AD_START",O[O.NONLINEAR_AD_END=_e]="NONLINEAR_AD_END",O[O.AD_TRACKING_INFO_RESPONSE=he]="AD_TRACKING_INFO_RESPONSE",(b={})[b.START=ve]="START",b[b.END=Ee]="END",b[b.PAUSE=ge]="PAUSE",b[b.RESUME=ye]="RESUME",b[b.MUTE=Se]="MUTE",b[b.UNMUTE=Ie]="UNMUTE",b[b.FULLSCREEN=Ae]="FULLSCREEN",b[b.EXIT_FULLSCREEN=Te]="EXIT_FULLSCREEN";let de=[];function V(r,n,e){let u="adTracking: ",_=(e,n)=>e-n.start,c=(e,n)=>e-n.startDate,a=(e,n)=>e.start-n.start,o={headers:{"Cache-Control":"no-cache, no-store"}},s=e.defaultTrackingRequestInterval||W,U=e.incomingAdCountdownInterval??pe,t=e.adTrackingUpdateMode||"pagination",x="playhead"===t,V="pagination"===t,h=[],F={},v=[],l,d=null,p=null,E=null,g=null,f=null,y=null,S=null,I=null,m=null,A=null,T=null,O=null,b=null,C=null,M=0,D=[],R=(()=>{let i=new EventTarget,a=null,r=null,o=-1,s=!1;function u(e,n){i.dispatchEvent(new CustomEvent(e,{detail:n}))}function c(e,n){var t=e.availDuration,i=e.inAvailStartOffset;return{toAdEnd:e.duration-n,toAvailEnd:null!=t&&null!=i?t-i-n:null,toSkipThreshold:0<=o?Math.max(0,o-n):null}}return{addEventListener(e,n,t){i.addEventListener(e,n,t)},removeEventListener(e,n,t){i.removeEventListener(e,n,t)},onTrackingInfoResponse(e){u(he,{failedAdTrackingInfoRequest:e})},onAdStart(e,n,t){var i,r;a=(r=n,t=t,{adData:Re(i=e),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:t+i.duration-r}),o=e.skipOffset,s=!1,u(B,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)})},onAdEnd(e){u(H,{adObject:a}),a=null},onAdProgress(e,n,t){u(G,{adObject:a,adElapsedTime:n,adCountdown:c(e,n)}),!s&&0<=o&&n>=o&&(s=!0,u($,{adObject:a}))},onAdClick(e){u(z,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart(e,n,t){r={adData:Re(e)},u(me,{nonLinearAdsObject:r,adElapsedTime:n})},onNonLinearAdsEnd(e){u(_e,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}})();function N(t,i){let e=D.length;for(let n=0;n<e;n++){let e=D[n];e[t]?.apply(e,i)}}function P(e,n){n=n||d,De(u+("Ad tracking event "+de[e]),n),N("onAdTrackingEvent",[n,e])}function k(e,n){!e.startDate&&O&&(e.startDate=n+O);n=l;(l=!!e.startDate)!==n&&De(u+("Set adHasStartDate to "+l))}function L(e,n){var i,t=[["tttt",""+Date.now()]];x&&t.push(["aws.playheadPositionInSeconds",""+Math.round(n&&O?n-O:e)]),V&&T&&t.push(["aws.nextToken",T]),m?.abort(),n=(e=>{let n=new URL(r),t=new URLSearchParams(n.search);return e.forEach(e=>{t.append(e[0],e[1])}),n.search="?"+t.toString(),n.toString()})(t),i=(e,n)=>{if(200===n){let f=!1,m=!1;T=((e,c,l)=>{if(Le(e)){let u=Ve(e.dashAvailabilityStartTime),n=Ue(e.avails),t=(n?.forEach(e=>{if(Le(e)){let r=xe(e.startTimeInSeconds),a=xe(e.durationInSeconds),o=Ve(e.availProgramDateTime);o=(o?new Date(o).getTime()/1e3:u?new Date(u).getTime()/1e3+r:0)||0,d(!1,e,r,a,o);var t=null!=r?c[""+r]:null;let n="",s=Ue(e.ads);s?.forEach(e=>{Le(e)&&(n+=e.startTime+`,${e.duration};`)});var i=n!==t;if(De(ce+"Avail"+(i?"*":"")+` (${e.duration} @ ${e.startTime} / ${e.availProgramDateTime})`,e),i){let i=s?.length;null!=r&&(c[""+r]=n),De(`BLAH ${t} -> `+n),l(0,0,i,r,a,o,null,!1,!1,!0),s?.forEach((e,n)=>{var t;Le(e)?null!=(t=xe(e.startTimeInSeconds))?(De(ce+`Ad #${n+1} of ${i} `+`(${e.duration} @ ${e.startTime} / ${e.adProgramDateTime})`,e),l(t,n,i,r,a,o,e,!1,!1,!1)):Me(ce+"Invalid or missing ad start time",e):Me(ce+"Invalid ad object",s)})}}else Me(ce+"Invalid avail object",n)}),Ue(e.nonLinearAvails));t?.forEach(e=>{var n;Le(e)?(De(ce+`nonLinearAvail (${e.startTime} / ${e.availProgramDateTime})`,e),d(!0,e,n=xe(e.startTimeInSeconds),null,e=((e=Ve(e.availProgramDateTime))?new Date(e).getTime()/1e3:u?new Date(u).getTime()/1e3+n:0)||0)):Me(ce+"Invalid nonLinearAvail object",t)});e=Ve(e.nextToken);return e&&De(ce+`nextToken "${e}"`),e;function d(e,n,t,i,r){n=Ue(n.nonLinearAdsList)?.[0];n&&(Le(n)?null==t?Me(ce+"Invalid or missing nonlinear ad start time",n):(De(ce+"nonLinearAds",n),l(t,0,1,t,i,r,n,!0,e,!1)):Me(ce+"Invalid nonLinearAds object",n))}}else Me(ce+"Invalid tracking-info response")})(e,F,(n,t,i,r,a,o,s,u,c,e)=>{if(null!=r&&o&&(O=o-r),u){if(((r,a,o)=>{let e=a?.length||0;if(0<e){let t=0,i=e-1;for(;t<=i;){let e=Math.ceil((t+i)/2),n=o(r,a[e]);if(0===n)return e;0<n?t=e+1:i=e-1}}return-1})(n,v,_)<0){u=n,o=o,c=c;let e=(p=we(l=s,Ce))?(d=p.nonLinearAdList.reduce((e,n)=>Math.max(e,n.durationInSeconds),0))?(Object.assign(p,{start:u,startDate:o,duration:d,nonlinearAvail:c}),De(ce+`New NonLinearAdsData (${d}s @ ${u}s / ${o}s)`,p),p):(Me(ce+"Invalid nonlinear ad duration",l),null):(Me(ce+"Missing required fields for NonLinearAdsData",l),null);e&&(k(e,n),v.push(e),m=!0,N("onNewNonLinearAds",[e]))}}else if(e){if(null!=r&&null!=a){let e=r+a,n=((e,n,t)=>{var i=n?.length||0;if(0<i){var r=Ne(e,n,t);if(r<0)return 0;if(0===t(e,n[r]))return r;if(++r<i)return r}return-1})(r,h,_),t=n;if(0<=n){for(;t<h.length&&!(h[t].start>=e);t++);t>n&&(De(`BLAH remove ad ${n} to `+(t-1),h),h.splice(n,t-n),f=!0)}}}else{let e=((e,n,t,i,r,a)=>{var o=xe(a.durationInSeconds);if(null==o||o<=0)return Me(ce+"Invalid or missing ad duration",a),null;let s=Ve(a.adProgramDateTime);s=s&&new Date(s).getTime()/1e3;var u=Ve(a.skipOffset);let c=u&&new Date(`1970-01-01T${u}Z`).getTime()/1e3,l=(c||0===c||(c=-1),we(a,be));return l?(l.extensions?.forEach(e=>{if("AdVerifications"===e.type){var n=e.content;try{var t=le.parseFromString(n,"application/xml")?.documentElement,i=t?.getElementsByTagName("JavaScriptResource"),r=t?.getElementsByTagName("VerificationParameters"),a=t?.getAttribute("vendor"),o=Fe(i?.[0]),s=Fe(r?.[0]);a&&o?(l.adVerifications||(l.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):Me(ce+"Invalid AdVerifications extension content",e)}catch(e){Me(ce+"Exception parsing AdVerifications extension: "+n,e)}}else if("companion_about_this_ad"===e.type){t="<root>"+e.content+"</root>";try{let e=le.parseFromString(t,"application/xml")?.documentElement;e&&je(e,{Icon:e=>{let n=l.icons||(l.icons=[]),t={};n.push(t),We(t,"program",e.getAttribute("program")),We(t,"width",e.getAttribute("width")),We(t,"height",e.getAttribute("height")),We(t,"xPosition",e.getAttribute("xPosition")),We(t,"yPosition",e.getAttribute("yPosition")),je(e,{StaticResource:e=>{We(t,"staticResource",Fe(e))},IconClicks:e=>{let n={};t.iconClicks=n,je(e,{IconClickThrough:e=>{We(n,"iconClickThrough",Fe(e))},IconClickFallbackImages:e=>{e=Be(e);e.length&&(n.iconClickFallbackImages=e)}})}})}})}catch(e){Me(ce+"Exception parsing AdChoices extension: "+t,e)}}else if("IconClickFallbackImages"===e.type){i="<root>"+e.content+"</root>";try{let e=le.parseFromString(i,"application/xml")?.documentElement;e&&je(e,{IconClickFallbackImages:e=>{var n={},e=((l.icons||(l.icons=[])).push(n),We(n,"program",e.getAttribute("program")),Be(e));e.length&&(n.iconClicks={iconClickFallbackImages:e})}})}catch(e){Me(ce+"Exception parsing AdChoices extension: "+i,e)}}}),Object.assign(l,{start:e,startDate:s||0,duration:o,skipOffset:c,availAdIndex:n,availAdCount:t,availStart:i,availDuration:r,inAvailStartOffset:null!=i?e-i:null,playCount:0}),l.videoClickThrough=null,l.trackingEvents=l.trackingEvents?.filter(e=>e.eventType!==Oe||((e=e.beaconUrls[0])&&(l.videoClickThrough=e),!1)),De(ce+`New AdData (${o}s @ ${e}s / ${s})`,l),l):(Me(ce+"Missing required fields for AdData",a),null)})(n,t,i,r,a,s);e&&(k(e,n),h.push(e),f=!0,N("onNewAd",[e]))}var l,d,p}),f&&(h.sort(a),p=E=null,g=null),m&&(v.sort(a),y=S=null,I=null),N("onTrackingInfoResponse",[!1])}else Me(u+"Request failed, status "+n,e),N("onTrackingInfoResponse",[!0]);m=null},m=ke(n,o,(e,n,t)=>{200===n&&null!=e&&(e=Pe(e)),i(e,n)})}function w(e,n,t,i){let r,a,o;var s=i?"startDate":"start",t=Ne(t,n,i?c:_);return o=0<=t?(r=n[t],a=r[s],t+1<n.length?n[t+1][s]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,n.length?n[0][s]:Number.MAX_VALUE),De(u+`Update time range (${a} - ${o}), `+e+" ad index "+t,r),[r,a,o]}function i(e){e&&D.indexOf(e)<0&&D.push(e)}return 0<=s&&L(0),i(R),i((a=>{let o={},r=null;return{onAdLoad(e){r={},e.trackingEvents?.forEach(e=>{r[e.eventType]=e})},onAdEnd(e){r=null},onAdTrackingEvent(t,e){var i=ue[e];if(r&&1===t.playCount&&i){let n=i.length;for(let e=0;e<n;e++)((i,r)=>{var n=r?.beaconUrls;if(n){var t=n.length;for(let e=0;e<t;e++)ke(n[e],o,(e,n,t)=>{a(i,r,t,n)})}})(t,r[i[e]])}}}})((e,n,t,i)=>{N("onAdBeaconResponse",[e,n,t,i])})),{updateAdTrackingInfo:function(){L(b??0,C),A=b},startUpdatingAdTrackingInfo:function(e){s=e||W,A=null},stopUpdatingAdTrackingInfo:function(){s=-1},onPlayheadUpdate:function(e,n){if(null!=b&&e>b&&e<b+j){0<=s&&!m&&(null==A||Math.abs(e-A)>=s)&&(L(e,n),A=e);var t=(n=l?n:null)||e,i=((null==p||t<p||t>=E)&&([g,p,E]=w("linear",h,t,n)),d),r=t-p;if((d=g&&t<p+g.duration?g:null)===i){if(d&&(De(u+"Ad progresses, time => "+r),N("onAdProgress",[d,r,e]),r>M)&&r<M+j){let e=d.duration,n=M/e;var a=(M=r)/e;n<.25&&.25<=a&&P(J),n<.5&&.5<=a&&P(Q),n<.75&&.75<=a&&P(Z)}}else i&&(M+j>i.duration&&P(ee,i),De(u+"Ad ends",i),N("onAdEnd",[i])),M=0,d&&(d.playCount++,n&&De(u+`PDT offset => player ${n-e}, ad `+(d.startDate-d.start),d),De(u+"Ad loads",d),N("onAdLoad",[d]),P(K),De(u+"Ad starts, time => "+r,d),N("onAdStart",[d,r,e]),P(X),P(Y));if(!d){let e=E-t;e<=U&&R.dispatchEvent(fe,{timeToNextAd:e})}(null==y||t<y||t>=S)&&([I,y,S]=w("nonlinear",v,t,n));a=f,i=t-y;(f=I&&t<y+I.duration?I:null)!==a&&(a&&(De(u+"Nonlinear ad ends",a),N("onNonLinearAdsEnd",[a])),f)&&(n&&De(u+`PDT offset => player ${n-e}, nonlinear ad `+(f.startDate-f.start),f),De(u+"Nonlinear ad starts, time => "+i,f),N("onNonLinearAdsStart",[f,i,e]))}b=e,C=n},onPlaybackRateUpdate:function(e){},onPlaybackEvent:function(e){switch(e){case ve:n?.sendPlaybackStart();break;case Ee:n?.sendPlaybackEnd()}if(d)switch(e){case ge:P(te);break;case ye:P(ie);break;case Se:P(re);break;case Ie:P(ae);break;case Ae:P(oe);break;case Te:P(se)}},onVideoClick:function(e){d&&(n?.sendAdTouch(e),N("onAdClick",[d]))},onPlayerControlClick:function(e){d&&n?.sendAdTouch(e)},onAdClickthrough:function(){d&&(n?.sendAdClick(),P(q))},onAdSkip:function(){d&&P(ne)},addAdObserver:i,removeAdObserver:function(e){e&&0<=(e=D.indexOf(e))&&D.splice(e,1)},getAllAds:function(){return h.map(e=>Re(e))},getAllNonLinearAds:function(){return v.map(e=>Re(e))},addEventListener(e,n,t){R.addEventListener(e,n,t)},removeEventListener(e,n,t){R.removeEventListener(e,n,t)}}}de[Y]="IMPRESSION",de[q]="CLICK_THROUGH",de[K]="LOADED",de[X]="START",de[J]="FIRST_QUARTILE",de[Q]="MID_POINT",de[Z]="THIRD_QUARTILE",de[ee]="COMPLETE",de[ne]="SKIP",de[te]="PAUSE",de[ie]="RESUME",de[re]="MUTE",de[ae]="UNMUTE",de[oe]="FULLSCREEN",de[se]="EXIT_FULLSCREEN",(M={})[M.IMPRESSION=Y]="IMPRESSION",M[M.CLICK_THROUGH=q]="CLICK_THROUGH",M[M.LOADED=K]="LOADED",M[M.START=X]="START",M[M.FIRST_QUARTILE=J]="FIRST_QUARTILE",M[M.MID_POINT=Q]="MID_POINT",M[M.THIRD_QUARTILE=Z]="THIRD_QUARTILE",M[M.COMPLETE=ee]="COMPLETE",M[M.SKIP=ne]="SKIP",M[M.PAUSE=te]="PAUSE",M[M.RESUME=ie]="RESUME",M[M.MUTE=re]="MUTE",M[M.UNMUTE=ae]="UNMUTE",M[M.FULLSCREEN=oe]="FULLSCREEN",M[M.EXIT_FULLSCREEN=se]="EXIT_FULLSCREEN";let A=["overlayAvails","availSuppression","adSignaling","reportingMode"],I=((C={})[C.INVALID_CONFIG=0]="INVALID_CONFIG",C[C.INVALID_INIT_RESPONSE=1]="INVALID_INIT_RESPONSE",C[C.INIT_ERROR=2]="INIT_ERROR",C);function F(r,e,a,o){let s,u=null,c=r.trackingUrl,l=r.sessionInitUrl,n=r.sessionInitHeaders,d=r.palNonceManager||e,p=d?.getNonce?.()??null,f={getPlaybackUrl:()=>u,getTrackingUrl:()=>c,getPalNonce:()=>p,updateAdTrackingInfo(){s.updateAdTrackingInfo()},startUpdatingAdTrackingInfo(e){s.startUpdatingAdTrackingInfo(e)},stopUpdatingAdTrackingInfo(){s.stopUpdatingAdTrackingInfo()},onPlayheadUpdate(e,n){s.onPlayheadUpdate(e,n)},onPlaybackRateUpdate(e){s.onPlaybackRateUpdate(e)},onPlaybackEvent(e){s.onPlaybackEvent(e)},onVideoClick(e){s.onVideoClick(e)},onPlayerControlClick(e){s.onPlayerControlClick(e)},onAdClickthrough(){s.onAdClickthrough()},onAdSkip(){s.onAdSkip()},addAdObserver(e){s.addAdObserver(e)},removeAdObserver(e){s.removeAdObserver(e)},getAllAds:()=>s.getAllAds(),getAllNonLinearAds:()=>s.getAllNonLinearAds(),destroy(){},addEventListener(e,n,t){s.addEventListener(e,n,t)},removeEventListener(e,n,t){s.removeEventListener(e,n,t)}};if(c)s=V(c,d,r),a(f,"Session initialized elsewhere");else if(l){let t=L(r.originParams)||{},i=r.sessionFeatures;i&&A.forEach(e=>{var n=i[e];null!=n&&(t[e]=n)});var m,_,h,v,E=L(r.playerParams)||{},E=(E.device_sdk_info||=T.clientInfo,p&&(E.givn=p),t.playerParams=E,{}),g=(n&&(E.headers=n),De(`createSession: Request sent to URL "${l}"`,t),l),y=t,S=(e,n)=>{200===n?(u=w(e?.manifestUrl,l))&&(c=w(e?.trackingUrl,l))?(s=V(c,d,r),a(f,"Successful session response",e)):o(I.INVALID_INIT_RESPONSE,"Invalid session response"):o(I.INIT_ERROR)};try{(E=L(E)||{}).headers=(h={"Content-Type":"application/json; charset=utf-8"},(v=E.headers)?Object.assign(h,v):h),m=g,_=JSON.stringify(y),U("POST",m,_,E,(e,n,t)=>{200===n&&null!=e&&(e=Pe(e)),S&&S(e,n)})}catch(g){return void Me("JSON Encode Exception: "+g,g)}}else o(I.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function He(t,i,r,a){let o="createSession: ";function s(e,n,t){De(o+n,t),i?i(e,null):r(e)}function u(e,n){var t={code:e,message:n};P(o+`(${e}) `+n),i?i(null,t):a(t)}if(t){let e=t.palNonceRequestParams;if(t.trackingUrl||t.palNonceManager||!e)return F(t,null,s,u);let n=(i=>{var e="nonceReq: ";if(d){var n=k("goog")?.pal?.NonceRequest;if(n){let t=new n;t.omidPartnerName="MediaTailor",t.omidPartnerVersion="1.0.0",t.supportedApiFrameworks=m,_.forEach(e=>{var n=i[e];null!=n&&(t[e]=n)}),t.sessionId||(t.sessionId=(()=>{var n=new Uint8Array(16);if(l)crypto.getRandomValues(n);else for(let e=0;e<16;e++)n[e]=Math.floor(256*Math.random());return n[6]=15&n[6]|64,n[8]=63&n[8]|128,c[n[0]]+c[n[1]]+c[n[2]]+c[n[3]]+"-"+c[n[4]]+c[n[5]]+"-"+c[n[6]]+c[n[7]]+"-"+c[n[8]]+c[n[9]]+"-"+c[n[10]]+c[n[11]]+c[n[12]]+c[n[13]]+c[n[14]]+c[n[15]]})());n=d.loadNonceManager?.(t);return n?De(e+"Request sent",t):P(e+"Request failed",t),n}P(e+"Missing PAL SDK classes")}else P(e+"PAL isn't initialized");return null})(e);n?n.then(e=>{De(o+"NonceManager received",e),F(t,e,s,u)}).catch(e=>{Me(o+"Nonce request rejected",e),F(t,null,s,u)}):(Me(o+"Unable to create a nonce request"),F(t,null,s,u))}else u(I.INVALID_CONFIG,"Missing config")}let y="1.5.0",S=(console.debug("[MT] AWS Elemental MediaTailor SDK v1.5.0"),{initPal:function(n,t){let e="initPal: ";if(!n){if(!t)return P(e+"Missing consent settings"),!1;var i=k("goog")?.pal,r=i?.NonceLoader,i=i?.ConsentSettings;if(!r||!i)return P(e+"Missing PAL SDK classes"),!1;{let e=new i;e.allowStorage=t.allowStorage??!1,n=new r(e)}}return d&&Me(e+"Resetting NonceLoader"),d=n,!0},createSession:function(t,e){if(!e)return new Promise((e,n)=>{He(t,null,e,n)});He(t,e,null,null)},PlaybackEvent:b,AdTrackingEvent:M,SessionUiEvent:O,setLogLevel:function(e){0<=e&&e<=i?a=e:console.warn(r+"Invalid log level: "+e)},LogLevel:s,getSdkVersion:()=>y,clientInfo:"MTSDK v"+y}),T=S;return R.default}},"object"==typeof t?t.mediatailor=n():e.mediatailor=n(),s.mediatailor=t.mediatailor,s)),Dc&&(module.exports=Dc.datazoom)})();
|
|
1
|
+
(()=>{var e,t,n,s,Sl="object"==typeof module?{}:null;((Ze,et,g)=>{var y,f,tt=Ze.Object,S=Ze.Array,A=Ze.Date,_t=Ze.Number,T=Ze.String,O=Ze.RegExp,nt=Ze.Math,b=Ze.XMLHttpRequest,C=Ze.Uint8Array,M=Ze.ArrayBuffer,D=Ze.JSON,ht=Ze.Promise,R=Ze.URL,N=Ze.URLSearchParams,P=Ze.EventTarget,k=Ze.CustomEvent,vt=Ze.document||{},e=vt.currentScript||{},L=Ze.location||{},w=Ze.navigator||{},U=w.userAgent||"",Et=w.connection||w.mozConnection||w.webkitConnection,x=Ze.crypto,V=Ze.console||{},t=Ze.performance,F=Ze.setInterval,W=Ze.setTimeout,j=Ze.decodeURIComponent,B=Ze.encodeURIComponent;try{y=Ze.localStorage,f=Ze.sessionStorage}catch(e){}function H(n){return n?function(e,t){e="[DZ] "+e,void 0===t?n.call(V,e):n.call(V,e,t)}:null}var n=H(V.log)||function(){},z=H(V.error)||n,G=H(V.warn)||n,$=H(V.info)||n,q=H(V.debug)||n,gt={options:{cmcdEnable:!1,cmcdMode:null,cmcdKeys:null}},Y="datazoom_",K="custom_",X="v_";if(gt[n="__"+Y+"rootobj"]=1,Sl)Sl.datazoom=gt;else{if(Ht(Ze.datazoom)){if(Ze.datazoom[n])return G("Collector already loaded");G("Overwriting window.datazoom")}Ze.datazoom=gt}function E(t,n,e){var i,r=n.shift();return null==r?i=t:t?r instanceof O?tt.keys(t).some(function(e){if(r.test(e))return null!=(i=E(t[e],n.slice()))}):i=E(t[r],n):i=null,null!=i?i:e}function it(e){return"function"==typeof e}function J(e,t){if(it(e))try{return new(e=t?e.bind.apply(e,[null].concat(t)):e),1}catch(e){}}J(R,["http://x.io"])&&J(N)||(N=function(e){var i=[];function n(e,t){!1!==t&&i.push([e,t])}function r(t){i=i.filter(function(e){return e[0]!==t})}e&&e.slice(1).split("&").forEach(function(e){e=e.split("=");try{i.push([j(e[0]),null==e[1]||j(e[1])])}catch(e){at(e,"URLSearchParams()")}});e=this;e.append=n,e["delete"]=r,e.set=function(e,t){r(e),n(e,t)},e.get=function(t){var n=null;return i.some(function(e){if(e[0]===t)return n=e[1],!0}),n},e.toString=function(){return i.map(function(e){var t=B(e[0]);return!0===e[1]?t:t+"="+B(e[1])}).join("&")}},R=function(e){var t=this,e=e.split("?"),n=e[0],e=e[1]?"?"+e[1]:"";t.search=e,t.searchParams=new N(e),t.toString=function(){return n+t.search}}),J(P)&&J(k,["x"])||(P=function(){var n=this,i={};n.addEventListener=function(e,t){var n=i[e];n||(i[e]=n=[]),n.push(t)},n.removeEventListener=function(e,t){var n=i[e];n&&(i[e]=n.filter(function(e){return e!=t}))},n.dispatchEvent=function(t){var e=i[t.type];e&&e.forEach(function(e){W(function(){e.call(n,t)},0)})}},k=function(e){this.type=e}),et=tt.assign({},{cn:"JW 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:_t.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 t=e.event,n=e.video;Tt("[Event] "+t.type+(n?" ("+n.media_type+")":"")+" @"+t.timestamp,lt(e))}},et||{});var o,Q,yt,Z={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:""},ee=!Sl&&e.src||"/",te=L.href||"https://localhost",ne="configuration_id",ie="urn:x-cast:io.datazoom.collector",St="transfer",re=0,ae=1,oe=2,se=3,ue=4,le=5,ce={off:re,error:ae,warning:oe,info:se,debug:ue,verbose:le},de=oe;function pe(e){var t;e&&(t=ce[e],re<=(t=null!=t?t:+e)&&t<=le?de=t:G("Invalid log level: "+e))}function fe(){o={},Q=[],[[et.ps],[ee.split("?")[1]],[te.split("?")[1],Y]].forEach(function(e){var i=e[1];e[0]&&e[0].split("&").forEach(function(e){try{var t=e.split("="),n=j(t[0]);if(i){if(!n.startsWith(i))return;n=n.slice(i.length)}o[n]=null==t[1]||j(t[1]),n.startsWith("x-")&&Q.push([n,o[n]])}catch(e){G("Invalid query string: "+e.message)}})}),yt="true"==o.demo,pe(o.log)}fe();var me="io.datazoom.",_e=me,he="__ss_ev_count",ve="__ss_last_act",Ee="__ss_custom_md",ge="__ss_msg_queue",ye="__ss_sm_resp",Se="__ss_appss_to",Ie="collector_observability",Ae="loss",Te="process_duration_ms",Oe="send_duration_ms",be="call_duration_ms",Ce="queue_duration_ms",Me="evnt_fail",De="attempt_count",Re="attempt",Ne="status_code",Pe="status_codes",ke="b4_ss",Le="sample",we="config",Ue="log";function xe(e,t,n,i){de<e||t(n,i)}function It(e,t){xe(ae,z,e,t)}function rt(e,t){xe(oe,G,e,t)}function At(e,t){xe(se,$,e,t)}function Tt(e,t){xe(ue,q,e,t)}function Ve(e,t){xe(le,q,e,t)}function at(e,t){t="[Exception] "+(t?"("+t+") ":"")+e;return It(t,e),t}function Ot(n,i,r,a,o){var s,u=0,l=1,c=0;return i=i||"",r=r||1,a=a||_t.MAX_VALUE,{log:function(e,t){o&&(s=ot())>=c+o&&(u=0,l=1,c=s),++u>=l&&(n("["+u+"] "+i+e,t),l+=nt.min(l*r,a))}}}function bt(e,t){m(Ze,"postMessage",[{type:e,data:t},"*"])}var Fe,ot,We,je,Be,He,ze=[],Ge=0;function $e(e,t,n,i,r,a,o,s){var n={time:n,metric_name:i,dimension:{},batch:function(){return a}},u=(e&&(n.type=e),null!=r&&(n.metric_value=r),n.dimension);return t&&(u.target=t),s&&s.forEach(function(e){u[e[0]]=e[1]}),o&&(u[ke]=!0),n}function qe(i,r,a,o){var s=r,u=1,l=Ge++;return{retry:function(e){s=e,u++},log:function(e,t){var n;et.og&&(null!=a&&ze.push($e(null,i,n=r-a,Te,e-n,l,o,[[De,u],[Ne,t]]),$e(null,i,n,Ce,a,l,o)),ze.push($e(null,i,r,Oe,e-r,l,!1,[[De,u],[Ne,t]]),$e(null,i,s,be,e-s,l,!1,[[Re,u],[Ne,t]])))}}}function Ye(e,t){var n,i;et.os&&(i=e.t,i=nt.trunc(i/6e4),(i=(Fe=Fe||{})[i]||(Fe[i]=[0,0,0]))[2]++,n=(i=i[3]||(i[3]={}))[t],e=_s(e.m,cr),n?n.push(e):i[t]=[e])}function Ke(e){var t,n=Fe[e],i=Ge++;n[2]&&(n[3]&&(t=[[Pe,n[3]]]),ze.push($e(Ae,null,6e4*+e,Me,n[2],i,!1,t)))}function st(e){return e&&(Bt(e)?e.slice():tt.assign({},e))}function Xe(e,t){return Ht(t)?e?tt.assign({},e,t):t:e}function Je(e,t){var n;return t?((n={})[e]=t,n):null}function Qe(n,i){var r;return i?n?(r=st(n),tt.keys(i).forEach(function(e){var t=n[e];r[e]=t?tt.assign({},t,i[e]):i[e]}),r):i:n}function m(e,t,n,i){t=E(e,[t],i);return it(t)?t.apply(e,n):null}function Ct(e,t,n){return function(){try{return t.apply(e,arguments)}catch(e){at(e,n)}}}function Mt(n,e){tt.keys(n).forEach(function(t){e.forEach(function(e){e[t]=Ct(e,n[t],t)})}),e[0]}function Dt(e){var t={};return e.forEach(function(e){t[e.nm]=e}),t}function Rt(e){var t={};return e.forEach(function(e){t[e.nm]=!0}),t}function Nt(e,t,n){e.forEach(function(e){e[t]=n})}function Pt(e,t){var e=new R(e,te),n=new N(e.search);return t(n),e.search="?"+n.toString(),e.toString()}function kt(e){var t,n=Q.length;return n?Pt(e,function(e){for(t=0;t<n;t++)e.append(Q[t][0],Q[t][1])}):e}function Lt(e,t,n){var i;return null!=(i=e?new R(e,te).searchParams.get(t):i)?i:n}We=0,je=et.ec,Be=Ot(rt,"Abnormal clock increment: ",.2,1e3,3e5),t&&t.now,He=We+A.now(),ot=function(e){var t=A.now(),n=He,i=(He=We+t)-n;return(i<0||je<i)&&(He=n+et.ti,We=He-t,Be.log(i)),He};var ut=(()=>{for(var n=[],e=0;e<256;e++)n.push((e+256).toString(16).substr(1).toLowerCase());return function(){var e=new C(16);if(x&&x.getRandomValues)x.getRandomValues(e);else{rt("getRandomValues() not supported");for(var t=0;t<16;t++)e[t]=nt.floor(256*nt.random())}return e[6]=15&e[6]|64,e[8]=63&e[8]|128,n[e[0]]+n[e[1]]+n[e[2]]+n[e[3]]+"-"+n[e[4]]+n[e[5]]+"-"+n[e[6]]+n[e[7]]+"-"+n[e[8]]+n[e[9]]+"-"+n[e[10]]+n[e[11]]+n[e[12]]+n[e[13]]+n[e[14]]+n[e[15]]}})();function wt(e,t,n,i,r,a){var o=new b;if(o.open(e,t,!0),null!=a&&(o.timeout=a),n)for(var s=tt.keys(n),u=0;u<s.length;u++)o.setRequestHeader(s[u],n[s[u]]);return r&&(o.onreadystatechange=function(){r(o)}),o.send(i),{abort:function(){delete o.onreadystatechange,o.abort()}}}function lt(e){if(e)try{return D.stringify(e)}catch(e){at(e,"toJSON")}return null}function ct(e){if(e)try{return D.parse(e)}catch(e){at(e,"fromJSON")}return null}function Ut(e,t){return(e===f?_e:me)+t}function _(e,t,n){if(e)if(null==n)Vt(e,t);else try{e.setItem(Ut(e,t),lt({v:n}))}catch(e){at(e,"storageSet")}}function xt(e,t){e=e?ct(e.getItem(Ut(e,t))):null;return e?e.v:null}function Vt(e,t){e&&e.removeItem(Ut(e,t))}Ze.self!==Ze.top&&Tt("Page loaded in a frame, set sessionStorage prefix to: "+(_e+=(o.frame_id||ut())+"."));var Ft=ct('{"omidPartnerName":"amazon2","omidPartnerVersion":"1.0.0"}')||{};function Wt(e){return"string"==typeof e}function jt(e){return _t.isFinite(e)}function Bt(e){return S.isArray(e)}function Ht(e){return null!=e&&"object"==typeof e&&!Bt(e)}function zt(e){return Wt(e)?e:""+e}function Gt(e){return jt(e=+e)?e:null}function $t(t,n,i){return null==t&&null==n?Gt:function(e){return null!=(e=Gt(e))&&(null!=t&&e<t?e=i?null:t:null!=n&&n<e&&(e=i?null:n)),e}}function qt(e){return nt.round(e)}function Yt(e,t){for(var n=0;n<t.length;n++)!function(e){for(var t=e,n=1;n<arguments.length;n++)t.dv||(t.dv=[]),t.dv.push(arguments[n])}(t[n],e)}function Kt(e,t){if(t)for(var n=0;n<t.length&&null!=e;n++)e=t[n](e);return e}var Xt,Jt,Qt,Zt,en=4,tn=8,nn=16,rn=32,I=65535,an=en,n=1|nn,t=(e=en|nn)|rn,r=tn,on={ap:2,nm:"ad_break_start"},sn={ap:2,nm:"ad_break_end"},un={ap:2,nm:"ad_click"},ln={ap:2,nm:"ad_impression"},cn={ap:2,nm:"ad_skip"},dn={ap:an,nm:"app_session_end"},pn={ap:3,nm:"audio_track_changed"},fn={ap:3,nm:"buffer_start"},mn={ap:3,nm:"buffer_end"},_n={ap:3,nm:"cast_start"},hn={ap:3,nm:"cast_end"},vn={ap:3,nm:"cast_transfer"},En={ap:I,nm:"context_ready"},gn={ap:an,nm:"datazoom_loaded"},yn={ap:3,nm:"error"},Sn={ap:3,nm:"exit_fullscreen"},In={ap:3,nm:"fullscreen"},An={ap:3,nm:"heartbeat"},Tn={ap:3,nm:"media_loaded"},On={ap:1,nm:"media_object_request"},bn={ap:3,nm:"media_request"},Cn={ap:3,nm:"milestone"},Mn={ap:3,nm:"mute"},Dn={ap:3,nm:"pause"},Rn={ap:3,nm:"play_btn"},Nn={ap:3,nm:"playback_start"},Pn={ap:3,nm:"playback_complete"},kn={ap:1,nm:"player_ready"},Ln={ap:3,nm:"playing"},wn={ap:3,nm:"qualified_view"},Un={ap:1,nm:"quality_change_request"},xn={ap:3,nm:"rendition_change"},Vn={ap:3,nm:"resize"},Fn={ap:3,nm:"resume"},Wn={ap:3,nm:"seek_start"},jn={ap:3,nm:"seek_end"},Bn={ap:3,nm:"stall_start"},Hn={ap:3,nm:"stall_end"},zn={ap:3,nm:"stop"},Gn={ap:3,nm:"subtitle_change"},$n={ap:3,nm:"unmute"},qn={ap:3,nm:"volume_change"},Yn=(bn.rtc=0,Nn.rtc=1,Dn.rtc=2,fn.rtc=3,Bn.rtc=4,Wn.rtc=5,xn.rtc=6,Cn.rtc=7,bn.rta=8,Nn.rta=9,fn.rta=10,Bn.rta=11,Cn.rta=12,yn.rta=cn.rta=Pn.rta=13,on.rta=14,sn.rta=15,An.rt=16,fn.rt=17,Bn.rt=18,["event","metrics"]),Kn={ap:n,nm:"bandwidth_kbps"},Xn={ap:n,nm:"buffer_duration_ms"},Jn={ap:n,nm:"buffer_duration_ads_ms"},Qn={ap:n,nm:"buffer_duration_content_ms"},Zn={ap:n,nm:"buffer_fill_percent"},ei={ap:n,nm:"buffer_length_ms"},ti={ap:n,nm:"content_session_start_ts_ms"},ni={ap:3,nm:"current_audio_track"},ii={ap:n,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:n,nm:"num_ad_break_plays"},li={ap:e,nm:"num_ad_plays"},ci={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:n,nm:"pause_duration_ms"},hi={ap:n,nm:"pause_duration_ads_ms"},vi={ap:n,nm:"pause_duration_content_ms"},Ei={ap:n,nm:"playback_duration_ms"},gi={ap:n,nm:"playback_duration_ads_ms"},yi={ap:2,nm:"playback_duration_ad_session_ms"},Si={ap:n,nm:"playback_duration_content_ms"},Ii={ap:n,nm:"playback_duration_promo_ms"},Ai={ap:3,nm:"playback_rate"},Ti={ap:n,nm:"player_state"},Oi={ap:n,nm:"player_viewable"},bi={ap:n,nm:"player_viewable_percent"},dt={ap:3,nm:"playhead_position_sec"},Ci={ap:n,nm:"playhead_pdt_sec"},Mi={ap:3,nm:"rendition_audio_bitrate_kbps"},Di={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:n,nm:"stall_count"},Li={ap:n,nm:"stall_count_ads"},wi={ap:n,nm:"stall_count_content"},Ui={ap:n,nm:"stall_duration_ms"},xi={ap:n,nm:"stall_duration_ads_ms"},Vi={ap:n,nm:"stall_duration_content_ms"},Fi={ap:n,nm:"time_since_last_ad_break_start_ms"},Wi={ap:n,nm:"time_since_last_ad_completed_ms"},ji={ap:n,nm:"time_since_last_buffer_start_ms"},Bi={ap:n,nm:"time_since_last_buffer_start_ad_ms"},Hi={ap:n,nm:"time_since_last_buffer_start_content_ms"},zi={ap:n,nm:"time_since_last_heartbeat_ms"},Gi={ap:n,nm:"time_since_last_milestone_ad_ms"},$i={ap:n,nm:"time_since_last_milestone_content_ms"},qi={ap:n,nm:"time_since_last_pause_ms"},Yi={ap:n,nm:"time_since_last_rendition_change_ms"},Ki={ap:n,nm:"time_since_last_request_ad_ms"},Xi={ap:n,nm:"time_since_last_seek_start_ms"},Ji={ap:n,nm:"time_since_last_stall_start_ms"},Qi={ap:n,nm:"time_since_last_stall_start_ad_ms"},Zi={ap:n,nm:"time_since_last_stall_start_content_ms"},er={ap:n,nm:"time_since_last_started_ad_ms"},tr={ap:n,nm:"time_since_request_content_ms"},nr={ap:n,nm:"time_since_started_content_ms"},ir={ap:n,nm:"volume_level_percent"};Nt([Xn,Jn,Qn,_i,hi,vi,Ei,gi,Si,Ii,ki,Li,wi,Ui,xi,Vi,li,di,pi,fi,ci,mi],"df",0),tr.ts=0,nr.ts=1,qi.ts=2,Hi.ts=3,Zi.ts=4,Xi.ts=5,Yi.ts=6,$i.ts=7,Ki.ts=8,er.ts=9,Bi.ts=10,Qi.ts=11,Gi.ts=12,Fi.ts=14,Wi.ts=13,zi.ts=16,ji.ts=17,Ji.ts=18;var rr=["ops_metadata"],ar=["custom"],or=["vendor"],sr={p:fr=[],ap:t,nm:"configuration_id"},ur={p:fr,ap:t,nm:"connector_list"},lr={p:fr,ap:t,nm:"customer_code"},cr={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"},Mr={p:i,ap:r,nm:"st"},Dr={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"},zr={p:s,ap:n,nm:"cast_app_session_id"},Gr={p:s,ap:n,nm:"cast_content_session_id"},$r={p:s,ap:t,nm:"client_ip"},qr={p:s,ap:n,nm:"content_session_id"},s={p:s,ap:e,nm:"user_agent"},Yr={p:u=["player"],ap:n,nm:"autostart"},Kr={p:u,ap:n,nm:"casting"},Xr={p:u,ap:n,nm:"controls"},Jr={p:u,ap:n,nm:"default_muted"},Qr={p:u,ap:n,nm:"default_playback_rate"},Zr={p:u,ap:n,nm:"fullscreen"},ea={p:u,ap:n,nm:"loop"},ta={p:u,ap:n,nm:"muted"},na={p:u,ap:n,nm:"player_name"},ia={p:u,ap:n,nm:"player_version"},ra={p:u,ap:n,nm:"preload"},aa={p:u,ap:n,nm:"ready_state"},oa={p:u,ap:n,nm:"streaming_protocol"},sa={p:u,ap:n,nm:"streaming_type"},ua={p:u,ap:n,nm:"subtitles"},u={p:l=["device"],ap:e,nm:"advertising_id"},la={p:l,ap:e,nm:"browser_name"},ca={p:l,ap:e,nm:"browser_height"},da={p:l,ap:e,nm:"browser_version"},pa={p:l,ap:e,nm:"browser_width"},fa={p:l,ap:e,nm:"cookies_enabled"},ma={p:l,ap:t,nm:"device_id"},_a={p:l,ap:e,nm:"device_mfg"},ha={p:l,ap:e,nm:"device_name"},va={p:l,ap:e,nm:"device_type"},Ea={p:l,ap:e,nm:"orientation"},ga={p:l,ap:e,nm:"os_name"},l={p:l,ap:e,nm:"os_version"},ya={p:c=["video"],ap:n,nm:"asset_id"},Sa={p:c,ap:n,nm:"description"},Ia={p:c,ap:n,nm:"duration_sec"},Aa={p:c,ap:n,nm:"frame_rate"},Ta={p:c,ap:n,nm:"media_tags"},Oa={p:c,ap:3,nm:"media_type"},ba={p:c,ap:n,nm:"player_height"},Ca={p:c,ap:n,nm:"player_width"},Ma={p:c,ap:n,nm:"source"},Da={p:c,ap:n,nm:"title"},Ra={p:d=["geo_location"],ap:t,nm:"city"},Na={p:d,ap:t,nm:"country"},Pa={p:d,ap:t,nm:"country_code"},ka={p:d,ap:t,nm:"latitude"},La={p:d,ap:t,nm:"longitude"},wa={p:d,ap:t,nm:"postal_code"},Ua={p:d,ap:t,nm:"region"},xa={p:d,ap:t,nm:"region_code"},Va={p:d,ap:t,nm:"continent"},Fa={p:d,ap:t,nm:"continent_code"},c={p:d,ap:t,nm:"district"},Wa={p:d,ap:t,nm:"timezone_name"},ja={p:d,ap:t,nm:"timezone_offset"},Ba={p:Ya=["network"],ap:t,nm:"asn"},d={p:Ya,ap:t,nm:"asn_org"},Ha={p:Ya,ap:e,nm:"connection_type"},za={p:Ya,ap:t,nm:"isp"},Ga={p:Ya,ap:t,nm:"mobile_connection"},$a={p:rr,ap:r,nm:"context_id"},qa={p:rr,ap:r,nm:"context_name"},Ya={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:t,nm:"server_ts_offset_ms"},Qa={p:ho=["page"],ap:e,nm:"collector_name"},Za={p:ho,ap:e,nm:"dz_sdk_version"},eo={p:ho,ap:e,nm:"page_title"},to={p:ho,ap:e,nm:"page_url"},no={p:ho,ap:e,nm:"referrer_url"},io={p:ho,ap:e,nm:"site_domain"},ro={p:p=["ad"],ap:t,nm:"ad_blocker"},ao={p:p,ap:n,nm:"ad_break_id"},oo={p:p,ap:2,nm:"ad_click_url"},so={p:p,ap:2,nm:"ad_creative_id"},uo={p:p,ap:2,nm:"ad_duration_sec"},lo={p:p,ap:2,nm:"ad_id"},co={p:p,ap:2,nm:"ad_partner"},po={p:p,ap:n,nm:"ad_position"},fo={p:p,ap:2,nm:"ad_session_id"},mo={p:p,ap:2,nm:"ad_system"},_o={p:p,ap:2,nm:"ad_time_offset_sec"},ho={p:p,ap:e,nm:"ad_tracking_opt_out"},vo={p:p,ap:2,nm:"advertiser_name"},Eo={p:p,ap:2,nm:"deal_id"},go={p:p,ap:2,nm:"skip_time_offset_sec"},yo={p:p,ap:2,nm:"wrapper_creative_ids"},So={p:p,ap:2,nm:"wrapper_id"},Io={p:p,ap:2,nm:"wrapper_systems"},t={p:["cdn"],ap:n,nm:"cdn"},Ao=(Eo.df="",Nt([yo,So,Io],"df",[]),Yt(function(e){return!!e},[ro,ho,Yr,_r,Kr,Xr,fa,Jr,Zr,ea,Ga,ta,Dr,ua,Oi]),Yt(function(e){Bt(e)||(e=[e]);for(var t=0;t<e.length;t++)e[t]=zt(e[t])||"";return e},[yo,So,Io]),Yt(null==Xt&&null==Jt?zt:function(e){var t;return null!=(e=zt(e))&&(t=e.length,null!=Xt&&t<Xt?e=null:null!=Jt&&Jt<t&&(e=Qt?null:e.slice(0,Jt))),e},[Nr,ao,oo,so,lo,co,po,fo,mo,vo,u,Br,Ba,d,ya,la,da,zr,Gr,t,hr,Ra,$r,sr,ur,qr,Va,Fa,Na,Pa,lr,Eo,Sa,ma,_a,ha,va,c,Za,Pr,kr,cr,Lr,za,Oa,yr,Sr,Ea,ga,l,Ir,eo,to,Xa,na,ia,wa,ra,no,Ua,xa,Tr,br,Cr,io,Ma,Mr,oa,sa,Wa,Da,pr,s,ni,ii,Ti,Ri]),Yt($t(0,100),[Zn,bi,ir]),Yt($t(0,1e9,!0),[Kn]),Yt($t(),[uo,_o,a,Hr,fr,mr,ca,pa,vr,Qr,Er,Ia,Aa,wr,ka,La,Ur,gr,ba,Ca,Ar,xr,aa,Or,Fr,Vr,Ja,go,Wr,jr,Rr,dr,ja,i,Jn,Qn,Xn,ei,ti,ai,oi,ri,si,ui,li,ci,di,pi,fi,mi,hi,vi,_i,gi,yi,Si,Ei,Ii,Ai,dt,Mi,Di,Ni,Pi,ki,Li,wi,xi,Vi,Ui,Fi,Wi,Bi,Hi,ji,zi,Gi,$i,qi,Yi,Ki,Xi,Qi,Zi,Ji,er,tr,nr]),Yt(0==(e=5)?qt:(Zt=nt.pow(10,e),function(e){return nt.round(e*Zt)/Zt}),[uo,_o,a,Hr,fr,mr,ca,pa,vr,Qr,Er,Ia,Aa,wr,ka,La,Ur,gr,ba,Ca,Ar,xr,aa,Or,Fr,Vr,Ja,go,Wr,jr,Rr,dr,ja,i,Kn,Jn,Qn,Xn,Zn,ei,ti,ai,oi,ri,si,ui,li,ci,di,pi,fi,mi,hi,vi,_i,gi,yi,Si,Ei,Ii,Ai,bi,dt,Mi,Di,Ni,Pi,ki,Li,wi,xi,Vi,Ui,Fi,Wi,Bi,Hi,ji,zi,Gi,$i,qi,Yi,Ki,Xi,Qi,Zi,Ji,er,tr,nr,ir]),[on,sn,un,ln,cn,dn,pn,fn,mn,_n,hn,vn,En,gn,yn,Sn,In,An,Tn,On,bn,Cn,Mn,Dn,Rn,Nn,Pn,kn,Ln,wn,Un,xn,Vn,Fn,Wn,jn,Bn,Hn,zn,Gn,$n,qn]),To=Dt(Ao);function Oo(e,t){return X+e+"_"+t}function bo(e,t){var n,i=Rt(Ao),r={},a={};e?0<e.length?(e=Wt(n=et.tt&&o.beta_ev)?e.concat(n.split(".").map(function(e){return{name:e,media_types:["na"]}})):e).forEach(function(e){var t,n=e&&e.name;n&&i[n]?(e=e.media_types)&&0<e.length&&(r[n]=!0,"na"!=e[0])&&(t={},e.forEach(function(e){t[e]=!0}),a[n]=t):rt("Unknown event: "+n)}):t&&rt("This collector is not active. Configure it to a data pipe to start sending events."):r=a=null,Ao.forEach(function(e){e.on=!(r&&!r[e.nm]),e.mm=a&&a[e.nm]})}bo(),Nt([li,di,pi,fi,ci,mi],"st",f);var Co=[Kn,Xn,Jn,Qn,Zn,ei,ti,ni,ii,ri,ai,oi,si,ui,li,ci,di,pi,fi,mi,_i,hi,vi,Ei,gi,yi,Si,Ii,Ai,Ti,Oi,bi,dt,Ci,Mi,Di,Ri,Ni,Pi,ki,Li,wi,Ui,xi,Vi,Fi,Wi,ji,Bi,Hi,zi,Gi,$i,qi,Yi,Ki,Xi,Ji,Qi,Zi,er,tr,nr,ir],Mo=[],Do=(Co.forEach(function(e){null!=e.ts&&Mo.push(e)}),[]),Ro=[];function No(e){var t,n=Rt(Co),i={};e?(e=Wt(t=et.tt&&o.beta_fd)?e.concat(t.split(".")):e).forEach(function(e){n[e]?i[e]=!0:rt("Unknown flux data: "+e)}):i=null,Do=[],Ro=[],Co.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Ro:Do).push(e)})}No(),Nt([Br,Hr],"st",f);var Po,ko,Lo,wo,Uo=[na,ia,u,Da,ya,sa,Kr],xo={},Vo=(Uo.forEach(function(e){xo[e.nm.toUpperCase()]=Y+e.nm}),[sr,ur,lr,cr,dr,pr,fr,mr,_r,hr,vr,Er,gr,yr,Sr,Ir,Ar,Tr,Or,br,Cr,Mr,Dr,Rr,i,Nr,Pr,kr,Lr,wr,Ur,xr,Vr,Fr,Wr,jr,Br,Hr,a,zr,Gr,$r,qr,s,Yr,Kr,Xr,Jr,Qr,Zr,ea,ta,na,ia,ra,aa,oa,sa,ua,u,la,ca,da,pa,fa,ma,_a,ha,va,Ea,ga,l,ya,Sa,Ia,Aa,Ta,Oa,ba,Ca,Ma,Da,Ra,Na,Pa,ka,La,wa,Ua,xa,Va,Fa,c,Wa,ja,Ba,d,Ha,za,Ga,$a,qa,Ya,Ka,Xa,Ja,Qa,Za,eo,to,no,io,ro,ao,oo,so,uo,lo,co,po,fo,mo,_o,ho,vo,Eo,go,yo,So,Io,t]),Fo=Dt(Vo),Wo=Vo.concat(Co),jo=[cr],Bo=[],Ho=[];function zo(e){var t,n=Rt(Vo),i={};Po=ko=Lo=wo=!1,e?((e=Wt(t=et.tt&&o.beta_md)?e.concat(t.split(".")):e).forEach(function(e){n[e]?i[e]=!0:"custom_metadata_all"==e?Po=!0:"custom_events_all"==e?ko=!0:"vendor_metadata_all"==e?Lo=!0:"vendor_events_all"==e?wo=!0:rt("Unknown metadata: "+e)}),jo.forEach(function(e){i[e.nm]=!0})):Po=ko=Lo=wo=!(i=null),Bo=[],Ho=[],Vo.forEach(function(e){e.on=!(i&&!i[e.nm]),e.on&&(e.ap==r?Ho:Bo).push(e)})}zo();var Go="ad",$o=/^live$/i,qo="DASH",Yo="Flash",Ko={"application/x-mpegURL":"HLS","application/dash+xml":qo,"application/vnd.ms-sstr+xm":"Smooth","video/x-flv":Yo,"video/mp4":"MP4","video/MP2T":"MPEG2-TS","video/3gpp":"3GPP","video/quicktime":"Quicktime","video/x-msvideo":"AVI","video/x-ms-wmv":"Windows Media"},p=[[/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"]],n=[[/Windows 10\.0|Windows NT 10\.0/,"Windows 10"],[/Windows 8\.1|Windows NT 6\.3/,"Windows 8.1"],[/Windows 8|Windows NT 6\.2/,"Windows 8"],[/Windows 7|Windows NT 6\.1/,"Windows 7"],[/Windows NT 6\.0/,"Windows Vista"],[/Windows NT 5\.2/,"Windows Server 2003"],[/Windows NT 5\.1|Windows XP/,"Windows XP"],[/Windows NT 5\.0|Windows 2000/,"Windows 2000"],[/Win 9x 4\.90|Windows ME/,"Windows ME"],[/Windows 98|Win98/,"Windows 98"],[/Windows 95|Win95|Windows_95/,"Windows 95"],[/Windows NT 4\.0|WinNT4\.0|WinNT|Windows NT/,"Windows NT 4.0"],[/Windows CE/,"Windows CE"],[/Win16/,"Windows 3.11"],[/Tizen/,"Tizen"],[/Android/,"Android"],[/OpenBSD/,"Open BSD"],[/SunOS/,"Sun OS"],[/Linux|X11/,"Linux"],[/iPhone|iPad|iPod/,"iOS"],[/Mac OS X/,"Mac OS X"],[/MacPPC|MacIntel|Mac_PowerPC|Macintosh/,"Mac OS"],[/QNX/,"QNX"],[/UNIX/,"UNIX"],[/BeOS/,"BeOS"],[/OS\/2/,"OS/2"],[/nuhk|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask Jeeves\/Teoma|ia_archiver/,"Search Bot"]],e=[[/SMART-TV|SmartTV|HbbTV|Tizen/i,"tv"],[/mobile/i,"mobile"],[/CrKey/i,"ott device"],[/iPad|Android|Touch/i,"tablet"],[/.*/,"pc"]],Xo=["CMCD-Request","CMCD-Object","CMCD-Status","CMCD-Session"];function Jo(e,t,n){t&&n.push(e)}function h(e,t,n){n.push(e+"="+t)}function Qo(e,t,n){n.push(e+(o.cmcd_ntq?"="+t:'="'+t+'"'))}function Zo(e,t,n){n.push(e+'="'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"')}function es(e){return"false"!==e}function ts(e){return+e}function ns(e){return e.replace(/"/g,"")}function is(e){return e.replace(/^"/,"").replace(/"$/,"").replace(/\\"/g,'"').replace(/\\\\/g,"\\")}var rs,as,os={bl:[0,[h,ts],fr],br:[1,[h,ts],mr],bs:[2,[Jo,es],_r],cid:[3,[Zo,is],hr],d:[1,[h,ts],vr],dl:[0,[h,ts],Er],mtp:[0,[h,ts],gr],nor:[0,[Zo,is],yr],nrr:[0,[Zo,is],Sr],ot:[1,[Qo,ns],Ir],pr:[3,[h,ts],Ar],rtp:[2,[h,ts],Or],sf:[3,[Qo,ns],br],sid:[3,[Zo,is],Cr],st:[3,[Qo,ns],Mr],su:[0,[Jo,es],Dr],tb:[1,[h,ts],Rr],v:[3,[h,ts],i]},ss={bs:!1,su:!1,v:1,pr:1},us="org.svalabs-";function ls(e){for(var t,n,i=[[],[],[],[]],r=tt.keys(e),a=0;a<r.length;a++)t=r[a],(n=os[t])&&n[3]&&n[1][0](t,e[t],i[n[0]]);return i}function cs(e){var t,n=tt.keys(os);for(rs=!1,as="header"===(gt.options.cmcdMode||o.cmcd_mode),t=0;t<n.length;t++)os[n[t]][3]=!1;if(e&&Bt(e)&&0<e.length)if(rs=!0,"na"==e[0])for(t=0;t<n.length;t++)os[n[t]][3]=!0;else e.forEach(function(e){var t=os[e];t?t[3]=!0:rt("Unknown CMCD key: "+e)})}function ds(e,t,n){for(var i,r,a=tt.keys(e),o=0;o<a.length;o++)delete e[a[o]];for(o=0;o<t.length;o++)0!=((i=t[o]).ap&n)&&null!=(r=null==(r=(r=i.st||i.se)&&xt(r,i.nm))?i.df:r)&&(e[i.nm]=r)}function ps(e,t,n,i){for(var r,a,o,s,u=0;u<i.length;u++)o=(a=(r=i[u])[0]).nm,0!=(a.ap&n)?(s=t[o])&&s(r)||(e[o]=r[1],(s=a.st||a.on&&a.se)&&_(s,o,r[1])):rt("Setting inapplicable data",a)}function fs(e,t){return e[t.nm]}function ms(e,t,n,i,r){var a,o=[];return n&&o.push([n,a=t(n)+i]),r&&o.push([r,t(r)+i]),e(o),a}function pt(e,t,n){if(t)for(var i,r,a=0;a<t.length;a++)if(r=e[i=t[a]])e=r;else{if(n)return null;e=e[i]={}}return e}function _s(e,t){e=pt(e,t.p||Yn,!0);return e&&e[t.nm]}function hs(e,t,n,i){for(var r,a,o,s=0;s<t.length;s++)0!=((r=t[s]).ap&n)&&null!=(o=Kt(e[a=r.nm],r.dv))&&(pt(i,r.p)[a]=o)}os[us+"rid"]=[0,[Zo,is],Tr],os[us+"tid"]=[0,[Zo,is]],os[us+"cmi"]=[0,[h,ts]],os[us+"pmi"]=[0,[h,ts]],cs();var vs,Es,gs,ys,Ss,Is,As,Ts,Os,bs,Cs,Ms,Ds,Rs,Ns,Ps,ks,v,Ls={},ws={},Us=xt(f,ge)||[],xs=[],Vs=1,Fs=2,Ws=4,js=Ws,Bs=Fs|Vs|js,Hs=0,zs=[];function Gs(e){return null!=e?6e4*e:12e5}function $s(e,t){if(!Bs&&0<Us.length){for(var n,i=ot(),r=0,a=0;a<Us.length;a++)Us[a].p&&(n=!0,hs(Ls,Bo,rn,Us[a].m)),r=nt.max(r,i-Us[a].t);Ms&&tu(Us,0,qe(Ue,i,r,n),e),t=!0}t&&(Us=[],Vt(f,ge)),As=null}function qs(e){(Bs&=~e)||null!=As||$s()}function Ys(e,t,n,i,r,a,o,s,u){if(4==e.readyState){var l=ot(),c=e.status;if(t+=" status: "+c+", ",0==c||429==c||500<=c&&c<=599){a=a[r++];if(null!=a)return W(function(){o.retry(ot()),n(i,r,o)},1e3*a),void rt(t+"retry #"+r+" after "+a+"s")}o.log(l,c),!(c<200||299<c||s&&!s(e,l))||u&&u(t,c)||rt(t+"failed")}}function Ks(t,n,i){Os=wt("POST",kt(et.sm),{"Content-Type":"application/json","cache-control":"no-cache"},t,function(e){4==e.readyState&&(Os=null,Ys(e,"Sampling API",Ks,t,n,et.rd,i,function(e){e=ct(e.responseText);if(bs=e&&e[et.ss+"_sampling"])return Ms=bs.in_sample,Cs=!1,qs(Fs),_(f,ye,bs),!0},function(e){return Ms=Cs=!0,qs(Fs),rt(e+"forced in"),!0}))})}function Xs(){var e;!Ts||Bs&Vs||(et.sw&&et.sm?(et.sp,(e=Fo[et.sd])&&(Ts.sampling_definition_params={namespace:et.ss,key_name:e.nm,key_value:iu(e)}),(e=Fo[et.sc])&&(Ts.sampling_criteria_params={sampling:{key_name:e.nm,key_value:iu(e)}}),Ts.sampling_override=o.sampling_override||"NONE",Ts.sampling_request_id=ut(),Ks(lt(Ts),0,qe(Le,ot()))):(Ms=!0,qs(Fs)),Ts=null)}function Js(i,t,n){var e,r;et.ci?(et.tt&&(et.mf=o.mock_config||et.mf),Tt("Get config from "+(e=et.mf||Pt(kt("https://"+et.cf+"platform.datazoom.io/beacon/v2/config"),function(e){e.append(ne,et.ci)}))),r=ot(),wt("GET",e,null,null,function(e){Ys(e,"Config API",Js,i,t,et.rd,n,function(e,t){var n=ct(e.responseText);if(n)return i(n,e.getResponseHeader("dz-extra"),r,t),!0},function(e,t){t<400||429==t||499<t||(et.om=!1),i()})})):(rt("Missing configuration ID"),et.om=!1,i())}function Qs(){Js(function(e,t,n,i){et.st=null,e&&function i(r,a){Ht(r)?tt.keys(r).forEach(function(e){var t=r[e],n=a[e];Ht(n)?i(t,n):null==n?At("Unknown config key: "+e):null==t?At("Undefined config key: "+e):n&&(et[n]=t)}):rt("Invalid config object",r)}(e,Z),_(f,Se,et.st),et.st=Gs(et.st),bo(et.ev,e),No(et.fd),zo(et.md),cs(et.cd),et.og||(ze=[]),et.os||(Fe=null),m(et.cm,"sort"),m(et.am,"sort"),m(et.cq,"sort"),m(et.aq,"sort"),nu([[lr,et.cc],[ur,et.cl]]),xs.forEach(function(e){var t,n,i,r,a,o=!1,s=_s(e.m,pr),u=To[s];u?o=u.on:s.startsWith(K)?o=ko:s.startsWith(X)&&(o=wo),o&&(t=e.m,n={},Bo.concat(Ho).forEach(function(e){null!=(i=_s(t,e))&&(pt(n,e.p)[e.nm]=i)}),r=pt(t,Yn),a=pt(n,Yn),Do.concat(Ro).forEach(function(e){null!=(i=_s(r,e))&&(a[e.nm]=i)}),Po&&(i=pt(t,ar,!0))&&tt.assign(pt(n,ar),i),Lo&&(i=pt(t,or,!0))&&tt.assign(pt(n,or),i),Zs(n,a),e.m=n,Us.push(e))}),_(f,ge,Us),xs=[];var r,e=ma.nm,e=(ma.on?(r=xt(y,e))||(r=ut(),_(y,e,r)):Vt(y,e),nu([[ma,r]]),t);try{var a,o,s,u,l,c=e&&ct(atob(e));c?(a=c.latitude,o=c.longitude,s=c.timezone_offset,l=(u=c.time_sync)&&+u,nu([[$r,c.client_ip],[Ga,c.mobile_connection],[Ba,c.asn],[xa,c.region_code],[Ua,c.region],[Pa,c.country_code],[Na,c.country],[wa,c.postal_code],[Ra,c.city],[ka,a?+a:null],[La,o?+o:null],[Va,c.continent],[Fa,c.continent_code],[Wa,c.timezone_name],[ja,null!=s?s/3600:null]]),l&&nu([[Ja,nt.round(l-(n+i)/2)]])):rt("Missing or invalid dz-extra header")}catch(e){at(e,"processDzExtra")}et.ab&&ro.on&&null==iu(ro)?wt("GET",kt(et.ab),null,null,function(e){4==e.readyState&&(nu([[ro,!e.status]]),qs(Ws))}):qs(Ws),qs(Vs),Xs(),W(function(){qs(js),Xs()},et.mh)},0,qe(we,ot()))}function Zs(e,t){var n=""+(Ss+1e7);pt(e,cr.p)[cr.nm]=gs+"_"+n.substr(-7,2)+"."+n.substr(-5),_(f,he,++Ss),si.on&&(t[si.nm]=Ss)}function eu(e,t,n,i,r,a,o){var s,u,l,c,d,o=o?en:nn,p=pt(e,Yn);for(hs(Ls,Bo,o,e),hs(Ls,Do,o,p),(i=i||[]).push([pr,t],[dr,n]),s=0;s<i.length;s++)u=(l=i[s])[0],l[2]||0!=(u.ap&tn)?u.on&&null!=(l=Kt(l[1],u.dv))&&(pt(e,u.p)[u.nm]=l):rt("Invalid event data",u);Po&&(o=Xe(vs,r),t=e,r=lt(o),d=r?r.length:0,(c=et.ml)&&c<d?rt("Custom metadata size: "+d+" > "+c):2<d&&(o=ct(r))&&tt.assign(pt(t,ar),o)),Lo&&(c=Qe(Es,a),d=e,c)&&tt.assign(pt(d,or),c),yt&&bt("evInfo",e),!(de<ue)&&et.le&&et.le(e)||(r={p:Bs,m:e,t:n},Bs&Vs?xs.push(r):(Zs(e,p),Us.push(r),_(f,ge,Us),null==As&&(As=W($s,et.bd))))}function tu(n,t,i,e){var r,a=n.map(function(e){return e.m}),o=(a.forEach(function(e,t){var n,i=pt(e,rr);Ka.on&&(pt(e,Ka.p)[Ka.nm]=ot()),bs&&(i[et.ss+"_sampling"]=bs),null!=Cs&&(i[et.ss+"_forced_sampling_in"]=Cs),t||(r=i[Ie],Fe&&(tt.keys(Fe).forEach(Ke),Fe=null),ze.length&&(r=r?r.concat(ze):ze,ze=[],r.length>et.mc&&(r.sort(function(e,t){return e.batch()>t.batch()?1:-1}),n=r[r.length-et.mc-1].batch(),r=r.filter(function(e){return e.batch()>n})),i[Ie]=r))}),kt(et.mb)),a=lt(a);e&&w.sendBeacon&&w.sendBeacon(o,a)||wt("POST",o,{"Content-Type":"application/json"},a,function(e){Ys(e,"Message post",tu,n,t,et.rd,i,null,function(e,t){n.forEach(function(e){Ye(e,t)}),r&&(ze=r.concat(ze))})})}function nu(e){ps(Ls,ws,en,e)}function iu(e){return Ls[e.nm]}function ru(e){if(vl&&(vl=!1,ou(gn,e)),!gs||!ys||(t=e,n=et.st,t<Is&&rt("Activity time reversal: "+Is+" -> "+t),0<=n&&(t<Is||Is+n<=t))){$s(!(xs=[]),!0);n=e,t=zs[Hs];if(gs=ut(),ys=Is=n,nu([[Br,gs],[Hr,ys],[li,Ss=0],[di,0],[pi,0],[fi,0],[ci,0],[mi,0]]),_(f,he,Ss),_(f,ve,Is),Vt(f,ye),Os&&Os.abort(),Os=bs=null,Ms=Cs=null,Bs|=Fs,Ts={},Xs(),it(t))try{t()}catch(e){at(e,"onAppSessionStart")}}else _(f,ve,Is=e);var t,n;nu([[ri,e-ys],[pa,Ze.outerWidth],[ca,Ze.outerHeight],[eo,vt.title],[to,L.href],[no,vt.referrer],[io,L.hostname],[fa,w.cookieEnabled]])}function au(e,t,n){ms(nu,iu,e,t,n)}function ou(e,t,n,i,r){0!=(e.ap&en)?(ru(t),e.on&&eu({},e.nm,t,n,i,r,!0)):rt("Event inapplicable: "+e.nm+", ss",e)}function su(t,n){var i,r;t&&Uo.forEach(function(e){i=Y+e.nm,null!=(r=t[i])&&(n([[e,r]]),delete t[i])})}if(ds(Ls,Wo,en),gs=iu(Br),ys=iu(Hr),Ss=xt(f,he)||0,Is=xt(f,ve)||0,bs=xt(f,ye),vs=xt(f,Ee),Es=xt(f,"__ss_vendor_md"),et.st=Gs(xt(f,Se)),bs?(Ms=bs.in_sample,Cs=!1,qs(Fs)):Ts={},p.some(function(e){if(v=e[0].exec(U))return Ds=e[1],Rs=v[1],!0})||(v=/(\w+)\/([\d.]+)(?!.*\w+\/[\d.]+)/.exec(U))&&(Ds=v[1],Rs=v[2]),(v=/Version\/([\d.]+)/.exec(U))&&(Rs=v[1]),n.some(function(e){if(e[0].test(U))return Ns=e[1],!0})){switch(v=null,Ns){case"Mac OS X":v=/Mac OS X (10[\d._]+)/.exec(U);break;case"Android":v=/Android ([\d._]+)/.exec(U);break;case"iOS":v=/OS (\d+_\d+(_\d+)?)/.exec(U);break;case"Tizen":v=/Tizen[ \/]([\d._]+)/.exec(U);break;default:(v=/Windows (.*)/.exec(Ns))&&(Ns="Windows")}v&&(Ps=v[1].replace(/_/g,"."))}else Ns=Ps="-";e.some(function(e){if(e[0].test(U))return ks=e[1],!0}),nu([[s,U],[la,Ds],[da,Rs],[ga,Ns],[l,Ps],[va,ks],[Qa,et.cn],[Za,et.sv],[Ya,3]]);var uu="baseContext",lu="contextType",cu="contextName",du="metadata",pu=0,fu=["base","player"],ft={},mu=[];function _u(e){if(!e.destroyed){e.setTimer(null);try{var t=e.destroyCallback;t&&t()}catch(e){at(e,"onDestroy")}delete ft[e.id],e.removeListeners(),e.destroyed=!0}}function hu(e,t,n,i,r,a,o){(r=r||[]).push([$a,e.id],[qa,e.name]),eu(t,n,i,r,Xe(e.customMetadata,a),Qe(e.vendorMetadata,o))}function vu(e,t){return!(null!=t&&!Ht(t)||(e.customMetadata=ct(lt(t)),0))}function Eu(e){var t=st(Ls);return t._c_=Xe(vs,e.customMetadata),t._v_=Qe(Es,e.vendorMetadata),t}function gu(){var n,l=[],i={},a={id:ut(),type:pu,destroyed:!1,destroyCallback:null,customMetadata:null,vendorMetadata:null,shallBlock:function(e,t,n){if(a.destroyed)return rt(e+" after destroyed"+(t?": "+t:""),n),!0},onDestroy:function(e){a.destroyCallback=e},setTimer:function(e){var t;n&&(0<=(t=mu.indexOf(n))&&mu.splice(t,1),n=null),e&&(mu.push(e),n=e)},fireEvent:function(e,t,n,i,r){a.shallBlock("fireEvent",e.nm,e)||(ru(t),e.on&&hu(a,{},e.nm,t,n,i,r))},fireVendorEvent:function(e,t,n){a.fireEvent({ap:I,nm:Oo(e,t),on:wo},ot(),null,null,Je(e,n))},addListener:function(e,t,n,i,r){if(e&&t){var a=e[i=i||"addEventListener"];if(it(a)){u=Ct(e,n,s="listener: "+(s=t));var o=de<le?u:function(){Ve(s,arguments),u.apply(null,arguments)};try{"-"===t?a.call(e,o):a.call(e,t,o),l.push([e,t,n,o,r||"removeEventListener"])}catch(e){at(e,"addListener: "+t)}}else rt("Invalid add-listener method: "+i,e)}var s,u},removeListeners:function(r,a,o){l=l.filter(function(e){var t=e[0],n=e[1];if(r&&r!=t||a&&a!=n||o&&o!=e[2])return!0;var i=t&&t[e[4]];if(it(i))try{"-"===n?i.call(t,e[3]):i.call(t,n,e[3])}catch(e){}else rt("Invalid remove-listener method: "+e[4],t)})},stash:function(e,t,n){i[e]=[t,n]},unstash:function(e){e.forEach(function(t){var e=i[t];if(e){delete i[t];try{e[0].apply(null,e[1])}catch(e){at(e,"unstash: "+t)}}})}},e={getError:function(){return null},contextID:function(){return a.id},contextName:function(){return a.name},contextType:function(){return fu[a.type]},isDestroyed:function(){return a.destroyed},destroy:function(){_u(a)},setMetadata:function(e){return vu(a,e)},getMetadata:function(){return ct(lt(a.customMetadata))},generateEvent:function(e,t){a.fireEvent({ap:I,nm:K+e,on:ko},ot(),null,t)},dumpDzData:function(e){var t=ct(lt(Eu(a)));return null==e?t:t[e]}};return a.basePublicMethods=e,a.publicContext=st(e),ft[a.id]=a}function yu(e){return et.sn&&et.sn[e]||""+e}var Su,Iu,Au,Tu,mt=[],Ou="idle",bu=(mt[2]=mt[9]="buffering",mt[3]=mt[10]="playing",mt[4]=mt[11]="paused",mt[5]=mt[12]="seeking",mt[6]="ended",mt[0]=mt[7]=mt[8]=Ou,function(U,x,r){var i,a,o,V,F,W,j,p={},B={},E={},H={},z={},G={},$=[],q=[],Y=[],K=[],X=[],J=[],Q=[],f=[],Z=ut(),m=(w=r[uu],(e=(e=Ht(w)&&it(w.contextID)&&w.contextID())&&Wt(e)&&ft[e])&&e.type==pu&&e.publicContext===w?e:(null!=w&&rt("Invalid contextOptions."+uu,w),gu())),e=r[cu],s=(null!=e&&(m.name=e),(w=r["adapterID"])&&Wt(w)&&_l[w]||(null!=w&&rt("Adapter not found for id: "+w),Su)),u=r["adapterOptions"];function ee(){if(o){for(var e,t=tt.keys(o),n=ot(),i=0;i<t.length;i++)k((e=o[t[i]]).ev,n,e.dl);o=null}}function g(e,t,n){(o=o||{})[n||e.nm]={ev:e,dl:t}}function _(e){ps(p,B,1,e)}function y(e){ps(E,H,2,e)}function S(e,t){return fs(t?E:p,e)}function te(e){return E[e.nm]}function ne(){var e=S(na),t=S(ia);ds(p,Wo,1),_([[Oa,"content"],[na,e],[ia,t]])}function ie(){ds(E,Wo,2),y([[Oa,"ad"]])}function t(e,t){B[e.nm]=t}function re(e,t){H[e.nm]=t}function ae(e,t){G[e.nm]=t}function n(e,t,n,i){for(var r=[],a=0;a<t.length;a++)r[t[a]]=!0;Q[e]={tr:r,en:n,ex:i}}u=Ht(u)?st(u):{},s&&(W=s[2],j=s[3],tt.assign(u,s[4]||{}),V=u[fl],F=u[ml],(u[pl]||[]).forEach(function(e){z[e[0].nm]=e[1]})),U&&tt.keys(ft).some(function(e){e=ft[e];if(1==e.type&&e.player===U)return e.publicContext.destroy(),!0});var oe,l,se,ue,le,c,ce,de,I,pe,fe,A,me,T,O,_e,he,ve,Ee,ge,b,C,ye,Se,d,h,M,D,Ie,Ae,R,N,Te,v=0,Oe=Ou,be=1,Ce=ot(),Me=Ot(rt,"Abnormal duration increment: ",1,1e3,3e5);function De(){return 2==be}function Re(){return!!T&&T.type===Go}function Ne(e){I=e+et.hi,Tt("Heartbeats started")}function Pe(){I&&Tt("Heartbeats stopped"),I=0}function P(e,t,n){return ms(_,S,e,t,n)}function ke(e){var t=e-Ce;t<0||t>et.ed?Me.log(t):0<t&&(4==v?P(vi,t,_i):11==v?P(hi,t,_i):2==v?(l&&P(Vi,t,Ui),P(Qn,t,Xn)):9==v&&(l&&P(xi,t,Ui),P(Jn,t,Xn))),Ce=e}function Le(e,t){null!=e&&(f[e]=t)}function k(t,n,i,e,r,a){if(!m.shallBlock("fireEvent",t.nm,t))if(a=a||(Re()?2:be),0!=(t.ap&a)){if(ru(n),(i=i||[]).push([Xa,m.id]),Te||(Te=!0,(u=Y.some(function(e){try{return e(n,i,t,a)}catch(e){at(e,"extEventHandler")}}))||(u=(l=G&&G[t.nm])&&l(n,i,t,a)),Te=!1),!u){ke(n);for(var o,s,u,l,c=[[Ti,Oe]],d=0;d<Mo.length;d++)s=f[(o=Mo[d]).ts],c.push([o,s?n-s:0]);_(c),null==S(Kn)&&Et&&(l=Et.downlink)&&_([[Kn,1e3*l]]),Le(t.rt,n),Le(2==a?t.rta:t.rtc,n),!t.on||t.mm&&!t.mm[S(Oa,2==a)]||(l=pt(u={},Yn),2==a?(hs(E,Bo,2,u),hs(E,Do,2,l),hs(p,Bo,nn,u),hs(p,Do,nn,l)):(hs(p,Bo,1,u),hs(p,Do,1,l),hs(E,Bo,nn,u),hs(E,Do,nn,l)),hu(m,u,t.nm,n,i,e,r))}}else rt("Event inapplicable: "+t.nm+", "+a,t)}function we(e){var t=e[1];t&&t!=S(e[0])&&g(vn)}function Ue(e,t){var n=3==t?b:C;if(e!=n){var i,r,a,o,s,u,l,c,d=ot();if(I||Ne(d),pe=!0,3==t){if(s=V||et.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&&n>=O.start&&n<=O.end||(O=A.locate(n)),(T=T&&e>=T.start&&e<=T.end?T:A.locate(e))&&(u=T.type,l=T.start,c=T._d),T!=f&&(p=N<=e&&e<N+s,u===Go?R!==l&&c&&((null==R?We:(p&&k(Pn,d),ze))(d),R=l,N=T.end,Be(),y(c.concat([[uo,N-R]])),He(d,T._a),k(ln,d,null,null,null,2),C=0,Se=d):null!=R&&(p&&k(Pn,d,null,null,null,2),ze(d),je(d))),u===Go)return void(c&&(Ue(f=e-l,10),E[dt.nm]=f))}de||(r=he=!he&&et.cm?et.cm.slice():he)}else s=F||et.mp,C=e,a=d-Se,Se=d,i=te(uo),r=ve=!ve&&et.am?et.am.slice():ve;if(null!=n&&null!=e&&0<=n&&n<e&&e<=n+s){if(0<i&&r)for(var m,_,h=0,v=3==t&&O&&T?(_=((O.type?O.start:n)-O._e)/i,((u?l:e)-T._e)/i):(_=n/i,e/i);h<r.length&&!(v<(m=r[h]/100));)_<m?(r.splice(h,1),g(Cn,[[Ur,100*m]],Cn.nm+m)):h++;if(3==t){if(M=e,a<0||a>et.ed)Me.log(a);else if(0<a)if(u)P("promo"===u?Ii:null,a,Ei);else if(i=P(Si,a,Ei)/1e3,et.cq)for(Ee=Ee||et.cq.slice();null!=(o=Ee[0])&&o<=i;)Ee.shift(),g(wn,[[xr,o]],wn.nm+o)}else if(D=e,a<0||a>et.ed)Me.log(a);else if(0<a&&(P(gi,a,Ei),i=ms(y,te,yi,a)/1e3,et.aq))for(ge=ge||et.aq.slice();null!=(o=ge[0])&&o<=i;)ge.shift(),g(wn,[[xr,o]],wn.nm+o)}}}function xe(e,t){null==d&&null!=e&&null!=M&&e!=M&&(d=M,k(Wn,t||ot()))}function Ve(e,t){null==h&&null!=e&&null!=D&&e!=D&&(h=D,k(Wn,t||ot()))}function Fe(e){oe&&k(zn,e),oe=se=!1,be=1,d=M=null,Pe()}function We(e){var t,n,i="pre";S(Si)>1e3*et.ep&&(t=S(dt),n=S(Ia),i=null!=t&&null!=n&&t+et.ep>n?"post":"mid"),ue=c=ce=!1,ie(),_([[ao,ut()],[po,i],[ui,0]]),k(on,e)}function je(e){Ie+=e-f[14],k(sn,e,null,null,null,2),_([[ao,null],[po,null],[ui,null]])}function Be(){ce||(ce=!0,y([[fo,a||ut()],[yi,0]]),a=null)}function He(e,t){var n=zs[3];if(ue=!0,ve=ge=null,au(li,1),P(ui,1),it(n))try{n(i,t)}catch(e){at(e,"onAdStart")}k(Nn,e)}function ze(e){if(ue){var t=zs[4];if(Ae+=e-f[9],it(t))try{t(i)}catch(e){at(e,"onAdEnd")}}ue=c=ce=!1,h=D=R=N=null,ie()}function Ge(e,t,n,i){var r,a,o,s;e!=v&&(o=Q[v],r=yu(v)+" => "+yu(e),a=mt[e]||Oe,m.shallBlock("setState",r)||(o.tr[e]?(Tt("state: "+r+" ("+a+")"),(o=o.ex)&&o(t,e,n,i),ke(t),s=v,Oe=a,(o=Q[v=e].en)&&o(t,s,n,i),pe=!0):rt("Invalid transition: "+r)))}function $e(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 t,n,i,r,a;t=o,n=s,i=u,a=(e=e)[0],e=e[1]=Kt(e[1],a.dv),a=S(a,i),null!=i&&i!=De()||null==a||null==e||(n?!e!=!a&&g(e?t:n):e!=a&&g(t,r=t==xn?a<e?[[Nr,"up"]]:e<a?[[Nr,"down"]]:null:r))}}function Ye(e){e[1]=Kt(e[1],e[0].dv)}n(0,[1,8]),n(1,[2,7,8,16],function(e){var t=zs[1];if(Fe(e),oe=!(le=!1),de=$o.test(S(sa)),Ie=Ae=0,_([[qr,Z],[ti,e]]),Z=ut(),au(mi,1),it(t))try{t(i)}catch(e){at(e,"onContentSessionStart")}A=me,me=T=O=_e=null,R=N=null,fe=0,k(bn,e)}),n(2,[3,4,5,7,8,16],function(e,t){(l=3==t)&&(P(wi,1,ki),k(Bn,e)),k(fn,e)},function(e){k(mn,e),l&&k(Hn,e),l=!1,se||k(Tn,e)}),n(3,[2,4,5,6,7,8,16],function(e){var t;se||(t=e-f[0],se=!0,he=Ee=null,au(ci,1),k(Nn,e,[[Wr,t-Ie],[jr,t-Ae]])),b=M=S(dt),ye=e,null!=d&&(k(jn,e,[[Vr,1e3*d],[Fr,null!=b?1e3*b:null]]),d=null),k(Ln,e),le&&(le=!1,k(Fn,e)),I||Ne(e)},function(){b=null}),n(4,[2,3,5,6,7,8,16],function(e){le||(le=!0,k(Dn,e))}),n(5,[2,3,4,6,7,8,16],function(e){xe(S(dt),e)}),n(6,[2,3,4,5,7,8,16],function(e){k(Pn,e)}),n(7,[],function(e){Fe(e)}),n(8,[],function(e,t,n){k(yn,e,n),Fe(e)}),n(9,[10,11,12,14,15,7],function(e,t){Be(),(l=10==t)&&(P(Li,1,ki),k(Bn,e)),k(fn,e)},function(e){k(mn,e),l&&k(Hn,e),l=!1}),n(10,[9,11,12,13,14,15,7],function(e,t,n,i){Be(),ue||He(e,i),C=D=te(dt),Se=e,null!=h&&(k(jn,e,[[Vr,1e3*h],[Fr,null!=C?1e3*C:null]]),h=null),k(Ln,e),c&&(c=!1,k(Fn,e)),I||Ne(e)},function(){C=null}),n(11,[9,10,12,14,15,7],function(e){c||(c=!0,k(Dn,e))}),n(12,[9,10,11,13,14,15,7],function(e){Ve(te(dt),e)}),n(13,[9,10,17,7],function(e){k(Pn,e),ze(e)}),n(14,[9,10,17,7],function(e){k(cn,e),ze(e)}),n(15,[9,10,17,7],function(e,t,n){k(yn,e,n),ze(e)}),n(16,[9,10,15,17,7],function(e){be=2,We(e)}),n(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(t){return i.find(function(e){return t>=e.start&&t<=e.end})},e.forEach(function(e){var t=e.start,n=e.end;jt(t)&&jt(n)&&(t=t<r?r:t)<n?(r<t&&i.push({start:r,end:t,_e:a}),i.push(tt.assign({},e,{start:t,_e:a})),e.type&&(a+=n-t),r=n):rt("Skipped time span",e)}),i.push({start:r,end:_t.MAX_VALUE,_e:a}),i}function Je(e,t){e=e&&e({type:St,ack:t,appSID:iu(Br),ctSID:S(qr)});e&&e["catch"](function(e){At("Cast transfer message rejected",e)})}function Qe(e){var t,n=m.publicContext,i=null;m.player=e,tt.assign(n,m.basePublicMethods,{getError:function(){return i},getPlayer:function(){return e},adapterID:function(){return s?s[0]:null},contentSessionID:function(){return S(qr)},nextContentSessionID:function(){return Z},playerState:function(){return Oe},destroy:function(){if(!m.destroyed){$e(7)&&Ge(7,ot());for(var e=0;e<q.length;e++)try{q[e]()}catch(e){at(e,"extOnDestroy")}_u(m)}},setMetadata:function(e){return!!vu(m,e)&&(su(m.customMetadata,m.setData),!0)},annotateContentSession:function(e){return null==e?!(me=null):!!Bt(e)&&(me=Xe(e.slice().sort(function(e,t){return e.start>t.start?1:-1})),!0)},dumpDzData:function(e){var t=tt.assign(Eu(m),p,E),n=Oa.nm;return t[n]=(De()||Re()?E:p)[n],t=ct(lt(t)),null==e?t:t[e]}}),Mu.forEach(function(e){try{e(n,m,$,q,Y,K,X,J)}catch(e){at(e,"extInit")}});try{i=W?W(e,m,u):null}catch(e){i=at(e,s[0]+" initContext")}return i?(It(i),n.destroy()):(null!=(t=r[du])&&n.setMetadata(t),t=ot(),k(En,t),k(kn,t),m.setTimer(function(){for(var e=0;e<$.length;e++)try{$[e]()}catch(e){at(e,"extOnTimer")}if(Ke)try{Ke()}catch(e){at(e,"onTimer")}var t=ot();ke(t),I&&I<=t&&(pe?(k(An,t,[[wr,++fe]]),I=t+et.hi,pe=!1):Pe())})),n}return 1&(z[e.nm]||0)&&(e=Di),2&(z[w.nm]||0)&&(w=Di),t(Ia,Ye),re(uo,Ye),t(oa,function(e){var t=e[1];e[1]=t&&Ko[t]||t}),t(sa,function(e){de=$o.test(e[1])}),t(dt,function(e){for(var t=0;t<K.length;t++)try{K[t](e)}catch(e){at(e,"extPlayheadHandler")}5==v||2==v?xe(e[1]):3==v&&Ue(e[1],3)}),re(dt,function(e){12==v?Ve(e[1]):10==v&&Ue(e[1],10)}),t(e,L(xn,null,!1)),re(w,L(xn,null,!0)),t(ta,L(Mn,$n)),t(Zr,L(In,Sn)),t(Kr,L(_n,hn)),t(Ca,L(Vn)),t(ba,L(Vn)),t(ir,L(qn)),t(ni,L(pn,null,!1)),re(ni,L(pn,null,!0)),t(ii,L(Gn)),t(ua,L(Gn)),t(zr,we),t(Gr,we),t(bi,function(e){var t,n,i,r,a=e[1];a=a&&it(a.getBoundingClientRect)?"visible"==vt.visibilityState?(t=(n=a.getBoundingClientRect()).left,i=n.top,r=n.bottom,nt.min(100,nt.max(0,nt.round(100*(nt.min(n=n.right,Ze.innerWidth)-nt.max(t,0))*(nt.min(r,Ze.innerHeight)-nt.max(i,0))/((n-t)*(r-i)))))):0:Kt(a,bi.dv),null!=(e[1]=a)&&_([[Oi,50<=a]])}),t(ei,function(e){var t=e[1];if(t&&it(t.end)){var n,i,r=S(dt);if(null!=r)for(n=0;n<t.length;n++)if(i=t.end(n),r>=t.start(n)&&r<=i)return void(e[1]=1e3*(i-r));e[1]=0}}),ae(Tn,function(e,t,n,i){2==i&&(a=ut(),t.push([fo,a,!0]))}),ae(ln,function(e,t){a&&t.push([fo,a,!0])}),ae(yn,function(e,t,n,i){au(1==i?fi:pi,1,di)}),ne(),ie(),tt.assign(m,{type:1,fireEvent:k,fire:function(e,t,n){k(e,ot(),t,null,null,n)},setState:function(e,t,n){Ge(e,ot(),t,n)},canSetState:$e,reset:function(){$e(7)&&Ge(7,ot()),ne(),ie(),f=[],v=0,Oe=Ou},setData:function(e){_(e),ee()},setAdData:function(e){y(e),ee()},getData:S,getAdData:te,getState:function(){return v},isIdle:qe,isAdIdle:function(){return 13==v||14==v||15==v},isInAds:De,isInSsaiAds:Re,onTimer:function(e){Ke=e},matchCtSource:function(e){return S(Ma)==e},reqCtSID:function(){return qe()?Z:S(qr)},reqTracer:function(e,a){e=Pt(e,function(e){e["delete"]("CMCD")});var t,n=m.reqCtSID(),i=ut(),r=((a=tt.assign({},a||{},{sid:n}))[us+"rid"]=i,1==a.v&&delete a.v,1==a.pr&&delete a.pr,null==a.cid&&null!=(t=S(ya))&&(a.cid=t),{url:e,sid:n,rid:i,cmcd:a,start:ot()});return{reqID:i,urlBase:e,url:function(){var t=ls(a);return Pt(e,function(e){e.append("CMCD",t[0].concat(t[1],t[2],t[3]).sort().join())})},headers:function(){for(var e={},t=ls(a),n=0;n<4;n++)t[n].length&&(e[Xo[n]]=t[n].sort().join());return e},enabledData:function(){for(var e,t,n=tt.keys(a),i={},r=0;r<n.length;r++)e=n[r],(t=os[e])&&t[3]&&(i[e]=a[e]);return i},status:function(e){r.status=e},start:function(){r.start=ot()},resp:function(e){r.resp=null!=e?r.start+e:ot(),yt&&bt("reqInfo",r)},end:function(e){var t=ot(),n=(r.end=null!=e?r.start+e:t,tt.assign({},ss,a)),i=[];tt.keys(n).forEach(function(e){var t=os[e];t&&t[2]&&i.push([t[2],n[e]])}),k(On,t,i,null,null,1),yt&&bt("reqInfo",r)}}},updateTimedMetadata:function(e,t,n,i,r){for(var a=0;a<X.length;a++)try{X[a](e,t,n,i,r)}catch(e){at(e,"extTimedMetadataHandler")}},addCtTimeSpans:function(e){var u=A?A.filter(function(e){return e.type}):[];e.forEach(function(e){for(var t,n,i,r,a=e.start,o=e.end,s=0;s<u.length&&(i=(n=u[s]).start,r=n.end,!(o<=i));s++)a<r&&(i<a?(u.splice(s+1,0,tt.assign({},n,{start:a})),n.end=a):(t||(u.splice(s++,0,e),t=!0),o<r?n.start=o:u.splice(s--,1)));t||u.splice(s,0,e)}),A=Xe(u),T=O=_e=null},initCastTransfer:function(e){qe()||Je(e,!1)},handleCastMessage:function(e,t){!e||e.type!==St||qe()||(m.setData([[zr,e.appSID],[Gr,e.ctSID]]),e.ack)||Je(t,!0)},sa:{}}),s&&_([[na,s[1]]]),Bs&Vs&&cs((e=gt.options).cmcdEnable?e.cmcdKeys||["sid","org.svalabs-rid"]:null),x?j?new ht(function(t,n){try{j(x,m,u).then(function(e){i=Qe(e),t(i)},function(e){It(e),n(e)})}catch(e){n(at(e,s[0]+" createTargetObject"))}}):ht.reject("Not implemented"):i=Qe(U)}),Cu=function(e,o){var s=new(e||P);return o=o||k,s.dispatch=function(e,t,n){var i,r,a;n=n||{},t&&((a=t.media)&&tt.assign(s,a),a=t.ima)&&((t=a.adsManager)&&tt.assign(s,t),n.getAdData=function(){return{currentTime:s.currentTime}},(i=a.ad)&&(n.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)&&(n.getError=function(){return{getErrorCode:function(){return r.code},getMessage:function(){return r.message},getInnerError:function(){return r.innerError}}}),e&&(t=new o(e),tt.assign(t,n),s.dispatchEvent(t))},s.getBoundingClientRect=function(){return s.boundingClientRect||{left:0,right:0,top:0,bottom:0}},s.getVolume=function(){return s.volume},s},Mu=[],Du="REQUEST_COMPLETE",Ru="SLOT_STARTED",Nu="SLOT_ENDED",Pu="AD_INITIATED",ku="AD_BUFFERING_START",Lu="AD_BUFFERING_END",wu="AD_PAUSE",Uu="AD_RESUME",xu="AD_IMPRESSION",Vu="AD_IMPRESSION_END",Fu="AD_COMPLETE",Wu="AD_SKIPPED",ju="AD_CLICK",Bu=(Mu.push(function(e,i,t,n){var r,a,o=i.setState,s=i.setAdData,u=i.fire,l={},c={on:{}};function d(){r&&(i.removeListeners(r),l={},r=a=null)}c.$update=c.update=function(e,t){var n;i.isInAds()&&(t&&s([[_o,m(t,"getTimePosition")]]),a&&(s([[dt,m(a,"getPlayheadTime")],[uo,m(a,"getDuration")],[lo,m(a,"getAdId")],[so,a._creativeId],[Eo,m(a,"getDealId")],[go,m(a,"getSkipOffset")]]),t=m(a,"getActiveCreativeRendition"))&&(n=m(t,"getHeight"),s([[Pi,m(t,"getWidth")],[Di,n],[Ri,n?n+"p":null]])),e)&&(t=m(e,"getAdVolume"),i.setData([[ir,100*t],[ta,0==t]]))},c.on[Du]=function(e,t){t.success?u(bn,null,2):u(yn,null,2)},c.on[Ru]=function(e,t){a=null,o(16),c.update(e,t.slot)},c.on[Nu]=function(){o(17),a=null},c.on[Pu]=function(){s([[Ai,1]]),u(Tn,null,2)},c.on[ku]=function(){o(9)},c.on[Lu]=c.on[Uu]=function(){o(10,null,a)},c.on[xu]=function(){o(10,null,a),u(ln,null,2)},c.on[wu]=function(){o(11)},c.on[Fu]=function(){o(13),a=null},c.on[Wu]=function(){o(14),a=null},c.on[Vu]=function(){a=null},c.on[ju]=function(){u(un)},c.on["ERROR"]=function(e,t){o(15,[[Pr,t.errorCode],[kr,t.errorInfo]]),a=null},c.on["AD"]=function(e,t){a=t.adInstance,c.update(e);var n=l[t.subType];n&&n(e,t)},c.$on=st(c.on),i.sa.fwContext=c,t.push(function(){r&&c.update(r)}),n.push(d),Mt({attachFwContext:function(e){var t;!i.shallBlock("attachFwContext",null,e)&&e!=r&&(d(),r=e)&&(t=E(Ze.tv,["freewheel","SDK"]),[Du,Ru,Nu,"AD"].forEach(function(n){var e=t&&t["EVENT_"+n];e&&i.addListener(r,e,function(e){var t=c.on[n];t&&t(r,e)})}),[Pu,ku,Lu,wu,Uu,xu,Vu,Fu,Wu,ju,"ERROR"].forEach(function(i){var e=t&&t["EVENT_"+i];e&&(l[e]=function(e,t){var n=c.on[i];n&&n(e,t)})}))},detachFwContext:d},[e,i])}),"play"),Hu="waiting",zu="playing",Gu="pause",$u="seeking",qu="seeked",Yu="ended",Ku="durationchange",Xu="ratechange",Ju="timeupdate",Qu=(Mu.push(function(e,a,t,n){var r,o,s,u,i=a.setState,l=a.setData,c=a.addListener,d=a.removeListeners;function p(){o&&d(o),r&&d(r),r=o=null}function f(){if(r){for(var e,t,n,i=0;i<r.length;i++)"metadata"===(n=r[i]).kind?t=t||n:"showing"===n.mode&&(e=e||n);s||l([[ua,!!e],[ii,e?e.label||e.language:null]]),o!=t&&(o&&d(o),o=t)&&c(o,"cuechange",function(){var e=o.activeCues;if(e)for(var t,n,i=0;i<e.length;i++)(n=(t=e[i]).value)&&a.updateTimedMetadata("ID3",t.startTime,t.endTime,n.key,n.data)})}}n.push(p);var m={on:{}};function _(){u&&d(u),u=null}m.$update=m.update=function(e,t){t&&(l([[Ia,e.duration],[Jr,e.muted],[Qr,e.playbackRate]]),f()),a.isInAds()||l([[dt,e.currentTime],[Ai,e.playbackRate],[Ca,e.offsetWidth],[ba,e.offsetHeight],[bi,e],[ei,e.buffered],[ea,e.loop],[ta,e.muted],[ir,100*e.volume],[aa,e.readyState]])},m.on[Bu]=function(e){a.isIdle()&&(a.reset(),m.update(e,!0),i(1),i(2))},m.on[Hu]=function(e){m.update(e),i(2)},m.on[zu]=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 t,n=e.error;n&&(t=[[Pr,n.code],[kr,n.message]]),m.update(e),i(8,t)},m.on[Ku]=function(e){l([[Ia,e.duration]])},m.on[Xu]=function(e){l([[Ai,e.playbackRate]])},m.on[Ju]=function(e){m.update(e)},m.$on=st(m.on),a.sa.mediaElement=m,t.push(function(){u&&m.update(u)}),n.push(_),Mt({attachMediaElement:function(e){_(),(u=e)&&[[Bu,(e=[[Yu,Gu,$u,Bu,Hu,qu,zu]])[0]],[Hu,e[0]],[zu,e[0]],[Gu,e[0]],[$u,e[0]],[qu,e[0]],[Yu,e[0]],["error"],[Ku],[Xu],[Ju]].forEach(function(i){var r=i[0];c(u,r,function(e){var t,n=m.on[r];n&&((t=i[1])?(a.stash(r,n,[u,e]),W(function(){a.unstash(t)},0)):n(u,e))})})},detachMediaElement:_,attachTextTracks:function(e,t){p(),s=t,(r=e)&&["change","addtrack","removetrack"].forEach(function(e){c(r,e,f)})},detachTextTracks:p},[a])}),"CLICK"),Zu="STARTED",el="AD_PROGRESS",tl="AD_BUFFERING",nl="IMPRESSION",il="PAUSED",rl="RESUMED",al="COMPLETE",ol="LOADED",sl="ALL_ADS_COMPLETED",ul="SKIPPED",ll="VOLUME_CHANGED",cl="AD_ERROR",dl={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"},pl=(Mu.push(function(e,a,t,n){var o,i=a.setState,r=a.setAdData,s=a.fire,u=a.addListener,l=a.removeListeners;function c(e){var t,e=e.getError();return e&&(t=[[Pr,e.getErrorCode()],[kr,e.getMessage()]],e=e.getInnerError())&&t.push([Lr,""+e]),t}var d,p,f={on:{}};function m(){o&&l(o),o=null}function _(e){var t=e.getAdPodInfo(),n=e.getVastMediaHeight(),n=[[lo,e.getAdId(),!0],[mo,e.getAdSystem(),!0],[vo,e.getAdvertiserName(),!0],[so,e.getCreativeId(),!0],[Eo,e.getDealId(),!0],[uo,e.getDuration(),!0],[go,e.getSkipTimeOffset(),!0],[Ni,e.getVastMediaBitrate(),!0],[Pi,e.getVastMediaWidth(),!0],[Di,n,!0],[Ri,n?n+"p":null,!0],[So,e.getWrapperAdIds(),!0],[Io,e.getWrapperAdSystems(),!0],[yo,e.getWrapperCreativeIds(),!0],[oo,E(e,[/[a-z]/,"clickThroughUrl"]),!0]];return t&&n.push([_o,t.getTimeOffset(),!0]),n}f.$update=f.update=function(e,t){a.isInAds()&&(t&&r(_(t)),e)&&(t=e.getVolume(),a.setData([[ir,100*t],[ta,0==t]]))},f.on[Qu]=function(e){f.update(e),s(un)},f.on[Zu]=function(e,t){t=t.getAd();a.isInAds()||i(16),r([[Ai,1]]),f.update(e,t),i(10,null,t)},f.on[el]=function(e,t){t=E(t.getAdData(),["currentTime"]);null!=t&&(f.update(e),9==a.getState()&&(null==d?d=t:d!=t&&i(10)),r([[dt,t]]))},f.on[tl]=function(e){f.update(e),i(9),d=null},f.on[nl]=function(e){f.update(e),s(ln,null,2)},f.on[il]=function(e){f.update(e),i(11)},f.on[rl]=function(e){f.update(e),i(10)},f.on[al]=function(e){f.update(e),i(13)},f.on[ol]=function(e,t){t=t.getAd();s(Tn,t&&_(t),2)},f.on[sl]=function(){i(17),m()},f.on[ul]=function(e){f.update(e),i(14)},f.on[ll]=function(e){f.update(e)},f.on[cl]=function(e,t){f.update(e),a.canSetState(15)?i(15,c(t)):s(yn,c(t),2)},f.$on=st(f.on),a.sa.imaAdsManager=f,t.push(function(){o&&f.update(o)}),n.push(m);var h={on:{}};function v(){p&&l(p),p=null}h.on[cl]=function(e,t){s(yn,c(t),2)},h.$on=st(h.on),a.sa.imaAdsLoader=h,n.push(v),Mt({attachImaAdsManager:function(e){var t,n;!a.shallBlock("attachImaAdsManager",null,e)&&e!=o&&(m(),o=e)&&(e=E(Ze.google,["ima"]),t=E(e,["AdEvent","Type"],dl),[[Qu],[Zu,null,(n=[[Zu,nl]])[0]],[el],[tl],[nl,null,n[0]],[il],[rl],[al],[ol],[sl],[ul],[ll],[cl,E(e,["AdErrorEvent","Type"])]].forEach(function(i){var r=i[0],e=(i[1]||t)[r];e&&u(o,e,function(e){var t,n=f.on[r];n&&((t=i[2])?(a.stash(r,n,[o,e]),W(function(){a.unstash(t)},0)):n(o,e))})}),s(bn,null,2))},detachImaAdsManager:m,attachImaAdsLoader:function(e){a.shallBlock("attachImaAdsLoader",null,e)||e==p||(v(),(p=e)&&(e=E(Ze.google,["ima","AdErrorEvent","Type"],dl)[cl])&&u(p,e,function(e){var t=h.on[cl];t&&t(p,e)}))},detachImaAdsLoader:v},[e,a])}),Mu.push(function(t,r,e,n,i,a,o){var s,u,l,c=r.addListener;function d(){s&&r.removeListeners(s),s=u=l=null}function p(e){for(var t;(t=u[0])&&t.t<=e;)u.shift(),delete t.t,s.onTimedMetadata(t)}n.push(d),a.push(function(e){s&&p(l=e[1])}),o.push(function(e,t,n,i,r){var a;s&&i&&r&&Wt(a="ID3"===e?r:a)&&((e={t:t})[i]=a,u.push(e),null!=l)&&p(l)}),Mt({attachImaDaiStreamManager:function(e){r.shallBlock("attachImaDaiStreamManager",null,e)||e==s||(d(),(s=e)&&(e=E(Ze.google,["ima","dai","api","StreamEvent","Type"]),u=[],e)&&(c(s,e.CUEPOINTS_CHANGED,function(e){r.isIdle()&&(e=E(e.getStreamData(),["cuepoints"]))&&e.length&&t.annotateContentSession(e.map(function(e){return{type:Go,start:e.start,end:e.end}}))}),c(s,e.STARTED,function(e){var t,n,i,e=e.getAd();e&&(t=l||0,n=e.getAdPodInfo(),i=e.getVastMediaHeight(),r.addCtTimeSpans([{type:Go,start:t,end:t+(e.getDuration()||0),_d:[[lo,e.getAdId()],[mo,e.getAdSystem()],[vo,e.getAdvertiserName()],[so,e.getCreativeId()],[Eo,e.getDealId()],[go,e.getSkipTimeOffset()],[Pi,e.getVastMediaWidth()],[Di,i],[Ri,i?i+"p":null],[So,e.getWrapperAdIds()],[Io,e.getWrapperAdSystems()],[yo,e.getWrapperCreativeIds()],[_o,n?n.getTimeOffset():null]],_a:e}]))})))},detachImaDaiStreamManager:d},[t,r])}),gt.mediatailor=((dn=g.mediatailor)&&(dn.clientInfo+=" DZSDK "+et.cn+" v"+et.sv),dn),Mu.push(function(e,s,t,n,i,r,a,o){var u,l,c,d,p;function f(e,t,n){if(e&&1===e.playCount)for(var i=o.length,r=0;r<i;r++)o[r](t,n)}function m(){u&&l&&u.removeAdObserver(l),u=l=null,c=d=p=null}n.push(m),i.push(function(e,t,n,i){var r=c&&c[n.nm];return r&&r(e,t,n,i)}),r.push(function(e){u&&!s.isIdle()&&(d=e[1],p=s.getData(Ci),de<le||Ve("MT onPlayheadUpdate: "+d+", "+p),u.onPlayheadUpdate(d,p||null))}),Mt({attachMediaTailorSession:function(e,t){var o,n,i,r,a;t=t||gt.mediatailor,!s.shallBlock("attachMediaTailorSession",null,e)&&t&&e!=u&&(m(),n=function(){var e=s.getData(ir);jt(e)&&f(o,14,e)},i=t.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]=n,r[i.CLICK_THROUGH]=function(){s.fire(un),f(o,13)},r[i.SKIP]=function(){s.fire(cn),f(o,12)},u=e)&&(a=t.PlaybackEvent,c={},[[a.START,Nn,1],[a.END,zn,I],[a.PAUSE,Dn,I],[a.RESUME,Fn,I],[a.MUTE,Mn,I],[a.UNMUTE,$n,I],[a.FULLSCREEN,In,I],[a.EXIT_FULLSCREEN,Sn,I]].forEach(function(r){c[r[1].nm]=function(e,t,n,i){r[2]&i&&u.onPlaybackEvent(r[0])}}),c[qn.nm]=n,c[fn.nm]=function(){f(o,10)},c[mn.nm]=function(){f(o,11)},l={onNewAd:function(e){var t;s.addCtTimeSpans([(t=(t=(e=e).startDate)&&p?t-p+d:e.start,{type:Go,start:t,end:t+e.duration,_a:e,_d:[[lo,e.vastAdId],[mo,e.adSystem],[so,e.creativeId],[go,e.skipOffset],[_o,e.availStart],[oo,e.videoClickThrough]]})])},onAdLoad:function(e){var t,n,i,r,a;1===(o=e).playCount&&(t=e.adVerifications)&&(n={},i=[],r=s.getData(ir),a=e.skipOffset,jt(r)&&(n["v"]=r),n["d"]=e.duration,n["ap"]=!!s.getData(Yr),n["po"]=0===e.availStart?0:1,n["sk"]=0<=a,n["so"]=n["sk"]?a:null,n["vf"]=i,t.forEach(function(e){var t=E(e.javaScriptResource,[0,"uri"]),n=e.vendor;t&&n&&i.push({url:t,vd:n,p:e.verificationParameters||""})}),f(e,0,n))},onAdEnd:function(e){f(e,17),o=null},onAdTrackingEvent:function(e,t){t=r[t];t&&t()}},u.addAdObserver(l))},detachMediaTailorSession:m},[e])}),Mu.push(function(s,u,e,t,n,i,r){var p,l,c,a,d,f,m,_,h,v=["YMID","YSEQ","YTYP","YDUR"];function E(){p&&l&&p.removeAnalyticObserver(l),p=l=null,c=a=d=m=null}function o(e){for(var t;(t=c[0])&&t.t<=e;)c.shift(),p.onTimedMetadata(h.createFromMetadata(t.YMID,t.YSEQ,t.YTYP,t.YDUR,1e3*t.t))}function g(e,t,n){(a=a&&a.t===e?a:{t:e})[t]=n||"",tt.keys(a).length===v.length+1&&(c.push(a),(a=null)!=m)&&o(m)}t.push(E),n.push(function(e,t,n,i){var r=d&&d[n.nm];return r&&r(e,t,n,i)}),i.push(function(e){p&&!u.isIdle()&&(m=e[1],f===_.VOD||f===_.DVRLIVE?p.onPlayheadUpdate(nt.round(1e3*m)):o(m))});var y=T.fromCharCode;function S(e,t,n){for(var i,r=[];t<n;)31<(i=e[t++])&&i<127&&r.push(y(i));return r.join("")}r.push(function(e,t,n,i,r){var a;if(p&&r&&f===_.LIVE)if("ID3"===e||"org.id3"===e)v.includes(i)&&(r instanceof M&&(r=new C(r))||r instanceof C?3===r[0]&&(a=S(r,1,r.length)):a=r,Wt(a))&&g(t,i,a);else if("urn:yospace:a:id3:2016"===e){if(r instanceof C)for(var o,s=S(r,0,r.length).split(","),u=0;u<s.length;u++)o=s[u].split("="),v.includes(o[0])&&g(t,o[0],o[1])}else if("https://aomedia.org/emsg/ID3"===e&&r instanceof C){var l=r.length;if(9<l&&73===r[0]&&68===r[1]&&51===r[2]&&(r[3]<<8|r[4])<=1024&&!(192&r[5])){u=6;for(var c=0,d=10;u<d;)c=c<<7|127&r[u++];for(l=nt.min(l,c+10);u+9<l;){for(i="",d=u+4;u<d;)i+=y(r[u++]);for(c=0,d=u+4;u<d;)c=c<<7|127&r[u++];d=(u+=2)+c,v.includes(i)&&d<=l&&g(t,i,S(r,u,d)),u=d}}}}),Mt({attachYospaceSession:function(e){var t,a,o,n,i,r=Ze.YospaceAdManagement;!u.shallBlock("attachYospaceSession",null,e)&&r&&e!=p&&(E(),p=e)&&(t=r.PlayerEvent,e=r.BreakType,_=r.PlaybackMode,h=r.TimedMetadata,f=p.getPlaybackMode(),c=[],d={},[[t.START,Nn,1],[t.STOP,zn,I],[t.PAUSE,Dn,I],[t.RESUME,Fn,I],[t.STALL,Bn,I],[t.CONTINUE,Hn,I]].forEach(function(r){d[r[1].nm]=function(e,t,n,i){r[2]&i&&p.onPlayerEvent(r[0],0)}}),d[jn.nm]=function(){p.onPlayerEvent(t.SEEK,1e3*(m||0))},d[Mn.nm]=function(){p.onVolumeChange(!0)},d[$n.nm]=function(){p.onVolumeChange(!1)},a=function(e,t){e=e.getProperty(t);return e&&e.getValue()},o=function(e,t,n,i){e&&(t.push(e.getIdentifier()),n.push(e.getAdSystem()),i.push(e.getCreativeIdentifier()),o(e.getLineage(),t,n,i))},n=function(e){var t=e.getSkipOffset(),n=[],i=[],r=[],t=(o(e.getLineage(),n,i,r),[[lo,e.getIdentifier()],[mo,a(e,"AdSystem")],[vo,a(e,"Advertiser")],[go,0<t?t/1e3:t],[So,n],[Io,i],[yo,r]]),n=e.getLinearCreative(),i=(n&&t.push([so,n.getCreativeIdentifier()],[oo,n.getClickThroughUrl()]),e.getStart()/1e3);return{type:Go,start:i,end:i+e.getDuration()/1e3,_d:t,_a:e}},l={onAdvertBreakStart:function(e){},onAdvertBreakEnd:function(){},onAdvertStart:function(e){u.addCtTimeSpans([n(e)])},onAdvertEnd:function(){},onAdvertBreakEarlyReturn:function(e){},onAnalyticUpdate:function(){},onSessionTimeout:function(){},onTrackingEvent:function(e){}},p.addAnalyticObserver(l),f===_.VOD)&&(i=[],(r=p.getAdBreaksByType(e.LINEAR))&&r.forEach(function(e){e=e.adverts;e&&e.forEach(function(e){i.push(n(e))})}),i.length)&&s.annotateContentSession(i)},detachYospaceSession:E},[s])}),Mu.push(function(e,i,t,n,r,a,o,s){var u,m,_,l;function h(){l&&l(17),m=_=l=null,u=!1}n.push(h),s.push(function(e,t){u&&(0===e?(l&&l(17),l=!1===et.om?null:_(t)):l&&(l(e,t),17===e)&&(l=null))}),Mt({startOmidSessionClient:function(e){var l,c,d,p,f=g.OmidSessionClient,t=Ft.omidPartnerName,n=Ft.omidPartnerVersion;i.shallBlock("startOmidSessionClient",null,e=e||{})||(l=e.omidServiceWindow||Ze.self,c=e.videoElement,d=e.contentURL||L.href,p=e.accessModeHandler,f&&t&&n&&c?(h(),m=new f.Partner(t,n),_=function(t){var n,i,r,a,o,s,e=t["vf"],e=e&&e.map(function(e){var t=e["url"],n=e["vd"],e=e["p"]||"";return new f.VerificationScriptResource(t,n,e,p&&p(t,n,e)||"full")});return e&&e.length?((e=new f.Context(m,e,d)).setServiceWindow(l),"VIDEO"===c.tagName?e.setVideoElement(c):e.setVideoElement(c.getElementsByTagName("video")[0]||c),n=new f.AdSession(e),i=!1,r=[],n.setCreativeType("video"),n.setImpressionType("beginToRender"),n.isSupported()?(s=[,function(){a.loaded(new f.VastProperties(t["sk"],t["so"],t["ap"],t["po"]))},function(){o.start(t["d"],t["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){t["v"]=e,o.volumeChange(e/100)},function(){o.playerStateChange("fullscreen")},function(){o.playerStateChange("normal")},function(){n.finish()}],n.registerSessionObserver(function(e){switch(e.type){case"sessionStart":var t;for(a=new f.AdEvents(n),o=new f.MediaEvents(n),i=!0;t=r.shift();)u(t[0],t[1]);break;case"sessionError":rt("OMID ad session error")}}),n.start(),u):(rt("OMID ad session unsupported"),null)):null;function u(e,t){var n;i?(n=s[e])&&n(t):r.push([e,t])}},u=!0):It("Missing OM SDK library or parameters"))},stopOmidSessionClient:h},[e])}),gt.omidPartnerName=Ft.omidPartnerName,gt.omidPartnerVersion=Ft.omidPartnerVersion,"unsupportedDataList"),fl="maxCtPlayheadInterval",ml="maxAdPlayheadInterval",_l={};function hl(){if(!Au){var e=zs[2];if(it(e))try{e()}catch(e){at(e,"onPageUnload")}tt.keys(ft).forEach(function(e){ft[e].publicContext.destroy()}),$s(!0),Au=!0}}Zn=[Rn="jw","JW Player",Zn=function(c,d){var p,i={"hlsjs":"HLS","html5":"MP4","shaka":qo,"flash_video":Yo,"flash_adaptive":Yo,"flash_sound":Yo};if(!c)return"Invalid player";function e(e,t){d.addListener(c,e,t,"on","off")}function t(e,t){d.addListener(c,e,t,"on","off")}function n(){var e=E(Ze.cast,["framework","CastContext"]),e=e&&e.getInstance();return e&&e.getCurrentSession()}function r(e){var t=n();return t&&t.sendMessage(ie,e)}function a(e){var t,n,i,r,a,o,s,u,l=c.getConfig();e&&(e=[],(t=c.getPlaylistItem())&&(n=t.file,i=t.title,r=t.description,a=t.tags),a=a||l.tags,n&&e.push([Ma,n]),null!=i&&e.push([Da,i]),null!=r&&e.push([Sa,r]),a&&e.push([Ta,a]),d.setData(e)),d.isIdle()||(t=c.getCurrentTime(),n=c.getDuration(),i=c.getVisualQuality(),r=E(l,["streamType"],"").toUpperCase(),a=c.getCurrentAudioTrack(),o=0<(e=c.getCurrentCaptions()),s=E(i,["level","height"]),u=E(i,["level","bitrate"])/1e3,null!=p&&d.setData([[Ci,t+p]]),d.setData([[dt,t],[Ia,n||0],[ea,E(l,["repeat"])],[Ni,u],[Pi,E(i,["level","width"])],[Di,s],[Ri,s?s+"p":null],[Ai,c.getPlaybackRate()],[ni,0<=a?E(m(c,"getAudioTracks"),[a,"name"]):null],[ii,o?c.getCaptionsList()[e].label:null],[ua,o]]),l.streamType&&d.setData([[sa,"VOD"==r?"VOD":"Live"]]),it(c.getViewable)&&d.setData([[Oi,1===c.getViewable()]]),it(c.getPercentViewable)&&d.setData([[bi,100*c.getPercentViewable()]]))}function o(){d.setAdData([[ni,null]]),it(c.getViewable)&&d.setData([[Oi,1===c.getViewable()]]),it(c.getPercentViewable)&&d.setData([[bi,100*c.getPercentViewable()]])}d.setData([[ia,c.version]]),e("playlistItem",function(){d.isIdle()||d.reset()}),e("cast",function(e){e=e.active;d.setData([[Kr,e]]),e&&(d.removeListeners(null,ie),d.addListener(n(),ie,function(e,t){d.handleCastMessage(ct(t),r)},"addMessageListener","removeMessageListener"),d.initCastTransfer(r))}),e("meta",function(t){var e,n,i=t.metadataType,r=t.metadata;r&&("program-date-time"===i?(e=r.start,n=(n=r.programDateTime)&&new A(n).getTime(),null!=e&&n&&(p=n/1e3-e)):"id3"===i?tt.keys(r).forEach(function(e){d.updateTimedMetadata("ID3",t.metadataTime,null,e,r[e])}):"emsg"===i&&d.updateTimedMetadata(r.schemeIdUri,r.start,r.end,null,r.messageData))}),e("beforePlay",function(){var e=c.getConfig(),t=c.getProvider(),n=E(e,["autostart"]);null!=c.getPlaylist()&&!n&&1<=c.getPlaylist().length&&(n=0!=c.getPlaylistIndex()),d.isIdle()&&(d.reset(),d.setData([[Jr,c.getMute()],[oa,i[E(t,["name"])]],[ra,E(e,["setupConfig","preload"])],[ya,E(e,["playlistItem","mediaid"],"")],[Qr,E(e,["defaultPlaybackRate"])],[Yr,n]]),a(!(p=null)),d.setState(1))}),e("buffer",function(){a(!0),d.setState(2)}),e("time",function(){a()}),e("idle",function(e){c.getConfig().castActive&&(a(),d.setState(7))}),e("play",function(){c.getConfig().castActive&&d.isIdle()&&(d.setState(1),d.initCastTransfer(r),d.setState(2)),d.isInAds()||(a(),d.setState(3))}),e("pause",function(){a(),d.setState(4)}),e("seek",function(){a(),d.setState(5)}),e("complete",function(){a(),d.setState(6)}),e("error",function(e){var t=[];e&&(t.push([kr,e.message]),t.push([Pr,e.code])),a(),d.setState(8,t)}),e("levelsChanged",function(){a(),d.fire(Un)}),e("fullscreen",function(){W(a,200)}),e("mutechange",a),e("volumechange",a),t("adRequest",function(){d.fire(bn,null,2)}),t("adTime",function(e){var t=E(e,["ima","ad",/[a-z]/,"vastMediaHeight"],null);d.setAdData([[dt,e.position],[uo,e.duration],[Ni,E(e,["ima","ad",/[a-z]/,"vastMediaBitrate"],null)],[Pi,E(e,["ima","ad",/[a-z]/,"vastMediaWidth"],null)],[Di,t],[Ri,t?t+"p":null]]),o()}),t("adBreakStart",function(){o(),d.setState(16)}),t("adBreakEnd",function(){o(),d.setState(17)}),t("adClick",function(){o(),d.fire(un)}),t("adLoaded",function(){d.fire(Tn,null,2)}),t("adPlay",function(){o(),d.setState(10)}),t("adPause",function(){o(),d.setState(11)}),t("adStarted",function(){d.setAdData([[Ai,1]]),o(),d.setState(10)}),t("adSkipped",function(){o(),d.setState(14)}),t("adImpression",function(e){o(),e&&d.setAdData([[oo,e.tag],[so,E(e,["ima","ad",/[a-z]/,"creativeId"])],[lo,E(e,["ima","ad",/[a-z]/,"adId"])],[co,e.client],[mo,e.adsystem],[Io,E(e,["ima","ad",/[a-z]/,"adWrapperSystems"],[])],[_o,E(e,["ima","ad",/[a-z]/,"adPodInfo","timeOffset"])],[Eo,E(e,["ima","ad",/[a-z]/,"dealId"])],[go,E(e,["ima","ad",/[a-z]/,"skipTimeOffset"])],[yo,E(e,["ima","ad",/[a-z]/,"adWrapperCreativeIds"],[])],[So,E(e,["ima","ad",/[a-z]/,"adWrapperIds"],[])],[vo,e.advertiser]]),d.fire(ln,null,2)}),t("adError",function(e){var t;e&&(t=[[kr,e.message],[Pr,e.adErrorCode],[Lr,E(e,["sourceError","stack"])]]),o(),d.setState(15,t)}),t("adComplete",function(){o(),d.setState(13)}),d.onTimer(function(){var e,t=c.getConfig();t&&(e=t.autostart,t=c.getPlaylist())&&!e&&1<=t.length&&(e=0!=c.getPlaylistIndex()),(d.isInAds()?o:a)(),d.setData([[Ca,c.getWidth()],[ba,c.getHeight()],[Zr,c.getFullscreen()],[ta,c.getMute()],[ir,c.getMute()?0:c.getVolume()],[Yr,e],[Xr,c.getControls()]])})},function(e,r,t){var n,i,a=e[1];function o(t,e){var n,i=r.reqTracer(e);t.addEventListener("readystatechange",function(){var e=this.readyState;1==e?i.start():2==e?(i.status(this.status),i.resp()):4==e&&i.end()}),as?(n=i.headers(),i.urlBase!=e&&t.open("GET",i.urlBase,!0),tt.keys(n).forEach(function(e){t.setRequestHeader(e,n[e])})):t.open("GET",i.url(),!0)}rs&&a&&(S.isArray(a.playlist)?(a=st(a)).playlist=a.playlist.map(function(e){return(e=st(e)).sources?e.sources=e.sources.map(function(e){return(e=st(e)).onXhrOpen=o,e}):e.file&&(e.sources=[{file:e.file,onXhrOpen:o}],delete e.file),e}):a.file&&!a.playlist&&((a=st(a)).playlist=[{sources:[{onXhrOpen:o}]}],n=a.playlist[0],["description","image","mediaid","title"].forEach(function(e){a[e]&&(n[e]=a[e],delete a[e])}),i=n.sources[0],["file","type"].forEach(function(e){a[e]&&(i[e]=a[e],delete a[e])})));t=t.jwplayerFunction||Ze.jwplayer;return t?ht.resolve(t(e[0]).setup(a)):ht.reject("Missing jwplayer function")},Iu],Su=Su||Zn,_l[Rn]=Zn;var vl=!0;function El(n){if(!Tu){if(!(et.ci||Lt(ee,ne)||n&&n[ne]))return!1;n&&(ee=Pt(ee,function(t){tt.keys(n).forEach(function(e){t.set(e,n[e])})}),fe()),vl&&(vl=!1,ou(gn,ot()));var e=Lt(ee,"env");et.cf="staging"===e||"dev"===e||"sandbox"===e?e:"",et.ci=Lt(ee,ne)||et.ci,et.om=null,nu([[sr,et.ci]]),Qs(),Tu=!0}return!0}function gl(e){e()}function yl(e,t,n){Ht(n)||(null!=n&&rt("Invalid contextOptions",n),n={});var i,r,a,o,s=n[lu];return s&&s!==fu[1]?s===fu[pu]?(r=(i=gu()).publicContext,a=n[du],i.name=n[cu],null!=a&&r.setMetadata(a),i.fireEvent(En,ot()),r):(It(a="Unknown context type: "+s),t?ht.reject(a):(o=a,{getError:function(){return o}})):bu(e,t,n)}m(Ze,"addEventListener",["pagehide",hl]),"Safari"==Ds&&m(Ze,"addEventListener",["beforeunload",function(e){W(function(){e.defaultPrevented||e.returnValue||hl()},0)}]),At("Datazoom SDK "+et.sv+" ("+et.cn+") DDv3"),F(function(){mu.length?mu.forEach(gl):ot()},et.ti),tt.assign(gt,{init:El,setLogLevel:pe,createContext:function(e,t){return yl(e,null,t)},createBaseContext:function(e){return(e=Ht(e)?st(e):{})[lu]=fu[pu],yl(null,null,e)},createContextAndTarget:function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);return yl(null,t,e)},createCollectorProxy:function(e,t,n){return e&&e!==fu[1]?(It("Unsupported context type: "+e),null):Cu(t,n)},adapterIDs:function(){return tt.keys(_l)},contexts:function(){return tt.keys(ft).map(function(e){return ft[e].publicContext})},playerContexts:function(){return tt.keys(ft).filter(function(e){return 1==ft[e].type}).map(function(e){return ft[e].publicContext})},setMetadata:function(e){return!(null!=e&&!Ht(e)||(su(vs=ct(lt(e)),nu),_(f,Ee,vs),0))},getMetadata:function(){return ct(lt(vs))},generateEvent:function(e,t,n){n=!n&&tt.keys(ft)[0];n?ft[n].publicContext.generateEvent(e,t):ou({ap:an,nm:K+e,on:ko},ot(),null,t)},on:function(e,t){zs[e]=t},appSessionID:function(){return gs},generateUUID(){return ut()},sdkEvent:{APP_SESSION_START:Hs,CONTENT_SESSION_START:1,PAGE_UNLOAD:2,AD_START:3,AD_END:4},timeSpanType:{AD:Go,PROMO:"promo"},overridableMetadata:xo,name:et.cn,version:et.sv,dictionaryVersion:3}),Sl||W(El,et.kd)})("object"==typeof globalThis?globalThis:window,{},(s={},function(){function e(t,i){var u=u||{},r=(u.scope={},u.createTemplateTagFirstArg=function(e){return e.raw=e},u.createTemplateTagFirstArgWithRaw=function(e,t){return e.raw=t,e},u.arrayIteratorImpl=function(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}},u.arrayIterator=function(e){return{next:u.arrayIteratorImpl(e)}},u.makeIterator=function(e){var t="undefined"!=typeof Symbol&&Symbol.iterator&&e[Symbol.iterator];if(t)return t.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 t,n=[];!(t=e.next()).done;)n.push(t.value);return n},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 t(){}return t.prototype=e,new t},u.defineProperty=u.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(e,t,n){return e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.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 t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}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,t,n,i){t&&(u.ISOLATE_POLYFILLS?u.polyfillIsolated(e,t,n,i):u.polyfillUnisolated(e,t,n,i))},u.polyfillUnisolated=function(e,t,n,i){for(n=u.global,e=e.split("."),i=0;i<e.length-1;i++){var r=e[i];if(!(r in n))return;n=n[r]}(t=t(i=n[e=e[e.length-1]]))!=i&&null!=t&&u.defineProperty(n,e,{configurable:!0,writable:!0,value:t})},u.polyfillIsolated=function(e,t,n,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!=(t=t(n=u.IS_SYMBOL_NATIVE&&"es6"===n?i[r]:null))&&(e?u.defineProperty(u.polyfills,r,{configurable:!0,writable:!0,value:t}):t!==n&&(void 0===u.propertyToPolyfillSymbol[r]&&(n=1e9*Math.random()>>>0,u.propertyToPolyfillSymbol[r]=u.IS_SYMBOL_NATIVE?u.global.Symbol(r):u.POLYFILL_PREFIX+n+"$"+r),u.defineProperty(i,u.propertyToPolyfillSymbol[r],{configurable:!0,writable:!0,value:t})))},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,t,n){return e=i(e,t),n&&Reflect.setPrototypeOf(e,n.prototype),e})):function(e,t,n){return n=u.objectCreate((n=void 0===n?e:n).prototype||Object.prototype),Function.prototype.apply.call(e,n,t)||n};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,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null,u.inherits=function(e,t){if(e.prototype=u.objectCreate(t.prototype),e.prototype.constructor=e,u.setPrototypeOf){var n=u.setPrototypeOf;n(e,t)}else for(n in t){var i;"prototype"!=n&&(Object.defineProperties?(i=Object.getOwnPropertyDescriptor(t,n))&&Object.defineProperty(e,n,i):e[n]=t[n])}e.superClass_=t.prototype},u.getRestArguments=function(){for(var e=Number(this),t=[],n=e;n<arguments.length;n++)t[n-e]=arguments[n];return t},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 n;return e||(u.setPrototypeOf?(n=u.setPrototypeOf,function(e,t){try{return n(e,t),!0}catch(e){return!1}}):null)},"es6","es5"),u.initSymbol=function(){},u.polyfill("Symbol",function(e){var t,n,i,r;return e||((t=function(e,t){this.$jscomp$symbol$id_=e,u.defineProperty(this,"description",{configurable:!0,writable:!0,value:t})}).prototype.toString=function(){return this.$jscomp$symbol$id_},n="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 t(n+(e||"")+"_"+i++,e)})},"es6","es3"),u.polyfill("Symbol.iterator",function(e){if(!e){e=Symbol("Symbol.iterator");for(var t="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),n=0;n<t.length;n++){var i=u.global[t[n]];"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(t,n){t instanceof String&&(t+="");var i=0,r=!1,e={next:function(){var e;return!r&&i<t.length?(e=i++,{value:n(e,t[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,t){return Object.prototype.hasOwnProperty.call(e,t)},u.polyfill("Object.values",function(e){return e||function(e){var t,n=[];for(t in e)u.owns(e,t)&&n.push(e[t]);return n}},"es8","es3"),u.checkEs6ConformanceViaProxy=function(){try{var i={},r=Object.create(new u.global.Proxy(i,{get:function(e,t,n){return e==i&&"q"==t&&n==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 n(){}function r(e){var t=typeof e;return"object"==t&&null!==e||"function"==t}function a(e){var t;u.owns(e,o)||(t=new n,u.defineProperty(e,o,{value:t}))}function e(e){var t;u.ISOLATE_POLYFILLS||(t=Object[e])&&(Object[e]=function(e){return e instanceof n?e:(Object.isExtensible(e)&&a(e),t(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({}),t=Object.seal({}),n=new i([[e,2],[t,3]]);return 2==n.get(e)&&3==n.get(t)?(n.delete(e),n.set(t,4),!n.has(e)&&4==n.get(t)):void 0}catch(e){}})())return i;function t(e){if(this.id_=(s+=Math.random()+1).toString(),e){e=u.makeIterator(e);for(var t;!(t=e.next()).done;)this.set((t=t.value)[0],t[1])}}var o="$jscomp_hidden_"+Math.random(),s=(e("freeze"),e("preventExtensions"),e("seal"),0);return t.prototype.set=function(e,t){if(!r(e))throw Error("Invalid WeakMap key");if(a(e),u.owns(e,o))return e[o][this.id_]=t,this;throw Error("WeakMap key fail: "+e)},t.prototype.get=function(e){return r(e)&&u.owns(e,o)?e[o][this.id_]:void 0},t.prototype.has=function(e){return r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_)},t.prototype.delete=function(e){return!!(r(e)&&u.owns(e,o)&&u.owns(e[o],this.id_))&&delete e[o][this.id_]},t},"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,t,n=Object.seal({x:4}),i=new r(u.makeIterator([[n,"s"]]));return"s"!=i.get(n)||1!=i.size||i.get({x:4})||i.set({x:4},"t")!=i||2!=i.size?void 0:(t=(e=i.entries()).next()).done||t.value[0]!=n||"s"!=t.value[1]?void 0:!((t=e.next()).done||4!=t.value[0].x||"t"!=t.value[1]||!e.next().done)}catch(e){}})())return r;function e(e){if(this.data_={},this.head_=n(),this.size=0,e){e=u.makeIterator(e);for(var t;!(t=e.next()).done;)this.set((t=t.value)[0],t[1])}}var a=new WeakMap,i=(e.prototype.set=function(e,t){var n=i(this,e=0===e?0:e);return n.list||(n.list=this.data_[n.id]=[]),n.entry?n.entry.value=t:(n.entry={next:this.head_,previous:this.head_.previous,head:this.head_,key:e,value:t},n.list.push(n.entry),this.head_.previous.next=n.entry,this.head_.previous=n.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=n(),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 t(this,function(e){return[e.key,e.value]})},e.prototype.keys=function(){return t(this,function(e){return e.key})},e.prototype.values=function(){return t(this,function(e){return e.value})},e.prototype.forEach=function(e,t){for(var n,i=this.entries();!(n=i.next()).done;)e.call(t,(n=n.value)[1],n[0],this)},e.prototype[Symbol.iterator]=e.prototype.entries,function(e,t){var n=t&&typeof t,i=("object"==n||"function"==n?a.has(t)?n=a.get(t):(n=""+ ++o,a.set(t,n)):n="p_"+t,e.data_[n]);if(i&&u.owns(e.data_,n))for(e=0;e<i.length;e++){var r=i[e];if(t!=t&&r.key!=r.key||t===r.key)return{id:n,list:i,index:e,entry:r}}return{id:n,list:i,index:-1,entry:void 0}}),t=function(e,t){var n=e.head_;return u.iteratorPrototype(function(){if(n){for(;n.head!=e.head_;)n=n.previous;if(n.next!=n.head)return n=n.next,{done:!1,value:t(n)};n=null}return{done:!0,value:void 0}})},n=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"}}),n="omid_message_guid",a="omid_message_method",o="omid_message_version",s="omid_message_args",l=function(e,t,n,i){this.guid=e,this.method=t,this.version=n,this.args=i},c=(l.isValidSerializedMessage=function(e){return!!e&&void 0!==e[n]&&void 0!==e[a]&&void 0!==e[o]&&"string"==typeof e[n]&&"string"==typeof e[a]&&"string"==typeof e[o]&&(void 0===e[s]||void 0!==e[s])},l.deserialize=function(e){return new l(e[n],e[a],e[o],e[s])},l.prototype.serialize=function(){var e={};return e[n]=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,t){if(!t)throw Error("Value for "+e+" is undefined, null or blank.");if("string"!=typeof t&&!(t instanceof String))throw Error("Value for "+e+" is not a string.");if(""===t.trim())throw Error("Value for "+e+" is empty string.")}function p(e,t){if(null==t)throw Error("Value for "+e+" is undefined or null")}function f(e,t){if(null==t)throw Error(e+" must not be null or undefined.");if("number"!=typeof t||isNaN(t))throw Error("Value for "+e+" is not a number")}function m(e,t,n,i){if(f(e,t),t<n||i<t)throw Error("Value for "+e+" is outside the range ["+n+","+i+"]")}function U(e,t){return e&&(e[t]||(e[t]={}))}function e(e,t,n){(n=void 0===n?void 0===i?null:i:n)&&((e=e.split(".")).slice(0,e.length-1).reduce(U,n)[e[e.length-1]]=t)}function _(e,t,n,i){i=void 0===i?r.AccessMode.FULL:i,d("VerificationScriptResource.resourceUrl",e),this.resourceUrl=e,this.vendorKey=t,this.verificationParameters=n,this.accessMode=i}function h(e,t,n,i){n=void 0===n?null:n,i=void 0===i?null:i,p("Context.partner",e),this.partner=e,this.verificationScriptResources=t,this.videoElement=this.slotElement=null,this.contentUrl=n,this.customReferenceData=i,this.underEvaluation=!1,this.serviceWindow=null}c.prototype.sendMessage=function(e,t){},c.prototype.handleMessage=function(e,t){this.onMessage&&this.onMessage(e,t)},c.prototype.serialize=function(e){return JSON.stringify(e)},c.prototype.deserialize=function(e){return JSON.parse(e)},c.prototype.isDirectCommunication=function(){return this.communicationType_===r.CommunicationType.DIRECT},c.prototype.isCrossOrigin=function(){},e("OmidSessionClient.Partner",function(e,t){d("Partner.name",e),d("Partner.version",t),this.name=e,this.version=t}),_.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!==t&&t)return t;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 t=16*Math.random()|0;return e=("y"===e?3&t|8:t).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,t){"undefined"!=typeof jasmine&&jasmine?e():"undefined"!=typeof console&&console&&console.error&&t()}y.prototype.isSupported=function(){return null!=this.interfaceRoot_},y.prototype.sendMessage=function(e,t,n){if("registerSessionObserver"==e&&(n=[t]),t=this.interfaceRoot_,0<=V.indexOf(e=g[e]?g[e]:e)&&(t=t[E.AD_EVENTS]),!(t=(t=0<=x.indexOf(e)?t[E.MEDIA_EVENTS]:t)[e]))throw Error("Unrecognized method name: "+e+".");t.apply(null,u.arrayFromIterable(n))};var A="1.5.0-iab4484",W=3;function T(e){return/\d+\.\d+\.\d+(-.*)?/.test(e)}function O(e,t){e=e.split("-")[0].split("."),t=t.split("-")[0].split(".");for(var n=0;n<W;n++){var i=parseInt(e[n],10),r=parseInt(t[n],10);if(r<i)break;if(i<r)return!1}return!0}var b="1.0.3";function j(e,t){return T(e)&&O(e,b)?t:JSON.stringify(t)}function B(e,t){return T(e)&&O(e,b)?t||[]:t&&"string"==typeof t?JSON.parse(t):[]}var H={SESSION_SERVICE:"SessionService.",VERIFICATION_SERVICE:"VerificationService."};function z(e){return G(e,H.SESSION_SERVICE)}function G(e,t){return t+e}function C(e){return null!=e&&void 0!==e.top&&null!=e.top}function M(e){var t;if(e!==v.omidGlobal)try{if(void 0===e.location.hostname)return!0;""!==(t=e).x&&t.x}catch(e){return!0}return!1}function $(e){return C(e=void 0===e&&"undefined"!=typeof window&&window?window:e)?e:v.omidGlobal}function q(e){return C(e)?e.top:v.omidGlobal}var D=function(e){c.call(this,e),this.communicationType_=r.CommunicationType.DIRECT,this.handleExportedMessage=D.prototype.handleExportedMessage.bind(this)},R=(u.inherits(D,c),D.prototype.sendMessage=function(e,t){if(!(t=void 0===t?this.to:t))throw Error("Message destination must be defined at construction time or when sending the message.");t.handleExportedMessage(e.serialize(),this)},D.prototype.handleExportedMessage=function(e,t){l.isValidSerializedMessage(e)&&this.handleMessage(l.deserialize(e),t)},D.prototype.isCrossOrigin=function(){return!1},function(e,t){t=void 0===t?v.omidGlobal:t,c.call(this,t);var n=this;this.communicationType_=r.CommunicationType.POST_MESSAGE,e.addEventListener("message",function(e){var t;"object"==typeof e.data&&(t=e.data,l.isValidSerializedMessage(t))&&(t=l.deserialize(t),e.source)&&n.handleMessage(t,e.source)})}),N=(u.inherits(R,c),R.isCompatibleContext=function(e){return!!(e&&e.addEventListener&&e.postMessage)},R.prototype.sendMessage=function(e,t){if(!(t=void 0===t?this.to:t))throw Error("Message destination must be defined at construction time or when sending the message.");t.postMessage(e.serialize(),"*")},R.prototype.isCrossOrigin=function(){return!this.to||M(this.to)},{OMID_PRESENT_FRAME_NAME:"omid_v1_present",OMID_PRESENT_FRAME_NAME_WEB:"omid_v1_present_web",OMID_PRESENT_FRAME_NAME_APP:"omid_v1_present_app",getEnvironmentIframeName:function(e){var t={};return t[r.Environment.APP]=N.OMID_PRESENT_FRAME_NAME_APP,t[r.Environment.WEB]=N.OMID_PRESENT_FRAME_NAME_WEB,t[e]}});function Y(e,t){try{return e.frames&&!!e.frames[t]}catch(e){return!1}}function K(e,t){e.document.write('<iframe style="display:none" id="'+t+'" name="'+t+'" sandbox></iframe>')}N.isOmidPresent=function(t){return[N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return Y(t,e)})},N.getOmidEnvironment=function(e){for(var t=u.makeIterator(Object.values(r.Environment)),n=t.next();!n.done;n=t.next()){n=n.value;if(Y(e,N.getEnvironmentIframeName(n)))return n}return null},N.declareOmidPresence=function(t,e){t.frames&&t.document&&![N.OMID_PRESENT_FRAME_NAME,N.OMID_PRESENT_FRAME_NAME_WEB,N.OMID_PRESENT_FRAME_NAME_APP].some(function(e){return!!t.frames[e]})&&(null==t.document.body&&N.isMutationObserverAvailable_(t)?N.registerMutationObserver_(t,e):(e=N.getEnvironmentIframeName(e),t.document.body?(N.appendPresenceIframe_(t,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(t,e)):(K(t,N.OMID_PRESENT_FRAME_NAME),K(t,e))))},N.appendPresenceIframe_=function(e,t){var n=e.document.createElement("iframe");n.id=t,n.name=t,n.style.display="none",n.sandbox="",e.document.body.appendChild(n)},N.isMutationObserverAvailable_=function(e){return"MutationObserver"in e},N.registerMutationObserver_=function(t,n){var i=new MutationObserver(function(e){e.forEach(function(e){"BODY"===e.addedNodes[0].nodeName&&(e=N.getEnvironmentIframeName(n),N.appendPresenceIframe_(t,N.OMID_PRESENT_FRAME_NAME),N.appendPresenceIframe_(t,e),i.disconnect())})});i.observe(t.document.documentElement,{childList:!0})};var X=["omid","v1_SessionServiceCommunication"];function J(e,t){return t.reduce(function(e,t){return e&&e[t]},e)}function Q(e,t,n,i){for(var r=(t=u.makeIterator(t)).next();!r.done;r=t.next())if(r=((e,t,n,i)=>{if(!M(t))try{var r=J(t,n);if(r)return new D(r)}catch(e){}return i(t)?new R(e,t):null})(e,r.value,n,i))return r;return null}function Z(e,t,n){n=void 0===n?N.isOmidPresent:n;var i=[e,q(e)];return t&&i.unshift(t),Q(e,i,X,n)}function P(e,t,n){p("AdSession.context",e),this.adSessionId_=S(),this.context_=e,this.impressionOccurred_=!1;var i=this.context_.serviceWindow||void 0;this.communication_=t||Z($(),i),this.sessionInterface_=n||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,t,n,i){this.isSkippable=e,this.skipOffset=t,this.isAutoPlay=n,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 te(n){var e=$();new R(e).onMessage=function(e,t){e.method===r.MessageMethod.IDENTIFY_SERVICE_WINDOW&&n(t)}}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,t){this.sendOneWayMessage("sessionError",e,t,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 t=u.getRestArguments.apply(1,arguments);this.sendMessage.apply(this,[e,null].concat(u.arrayFromIterable(t)))},P.prototype.sendMessage=function(e,t){var n=u.getRestArguments.apply(2,arguments);this.communication_?this.sendInternalMessage_(e,t,n):this.sessionInterface_.isSupported()&&this.sendInterfaceMessage_(e,t,n)},P.prototype.sendInternalMessage_=function(e,t,n){var i=S();t&&(this.callbackMap_[i]=t),e=new l(i,z(e),A,j(A,n)),this.communication_.sendMessage(e)},P.prototype.handleInternalMessage_=function(e,t){t=e.method;var n,i=e.guid;e=e.args,"response"===t&&this.callbackMap_[i]&&(n=B(A,e),this.callbackMap_[i].apply(this,n)),"error"===t&&window.console&&I(e)},P.prototype.sendInterfaceMessage_=function(e,t,n){try{this.sessionInterface_.sendMessage(e,t,n)}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,t){e&&(this.isSendingElementsSupported_()?this.sendOneWayMessage(t,e,this.adSessionId_):this.error(r.ErrorType.GENERIC,"Session Client "+t+" 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 t=this;this.registerSessionObserver(function(e){e.type===r.AdEventType.SESSION_START&&(t.isSessionRunning_=!0,t.creativeType_=e.data.creativeType,t.impressionType_=e.data.impressionType),e.type===r.AdEventType.SESSION_FINISH&&(t.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,t){f("MediaEvents.start.duration",e),m("MediaEvents.start.mediaPlayerVolume",t,0,1),this.adSession.sendOneWayMessage("start",e,t,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,t){d("OmidVersion.semanticVersion",e),d("OmidVersion.apiLevel",t)}),e("OmidSessionClient.listenForServiceWindow",te),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 ne(e){for(var t=u.makeIterator(ie.keys()),n=t.next();!n.done;n=t.next())for(var n=n.value,i=u.makeIterator(ie.get(n)),r=i.next();!r.done;r=i.next())if(r.value.test(e))return n;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",ne),e("OmidSessionClient.VerificationVendorId",w.VerificationVendorId),w.verificationVendorIdForScriptUrl=ne}var re="object"==typeof globalThis?globalThis:window,t={},n=void 0===re?this:re;if("object"==typeof(r=void 0===t?void 0:t)&&"string"!=typeof r.nodeName)e(n,r);else{var i,r={},a=["1.5.0-iab4484"],o="default";for(i in a.push(o),e(n,r),r)r.hasOwnProperty(i)&&(null==Object.getOwnPropertyDescriptor(n,i)&&Object.defineProperty(n,i,{value:{}}),a.forEach(function(e){var t;null==Object.getOwnPropertyDescriptor(n[i],e)&&(t=function e(t){for(var n in t)t.hasOwnProperty(n)&&(t[n]=e(t[n]));return Object.freeze(t)}(r[i]),Object.defineProperty(n[i],e,{get:function(){return t},enumerable:!0}))}))}s.OmidSessionClient=t.OmidSessionClient}(),n={},e=self,t=function(){{var M,D,R,N,P={d:function(e,t){for(var n in t)P.o(t,n)&&!P.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},k={};P.d(k,{default:function(){return C}});let o=1,n=2,i=4,r="[MT] ",s=((M={})[M.NONE=0]="NONE",M[M.ERROR=1]="ERROR",M[M.WARNING=2]="WARNING",M[M.INFO=3]="INFO",M[M.DEBUG=4]="DEBUG",M),a=n;function L(e,t,n,i){a>=e&&(n=r+n,void 0===i?t.call(console,n):t.call(console,n,i))}let u=console.error,p=console.warn,f=console.debug;function w(e,t){L(o,u,e,t)}function ke(e,t){L(n,p,e,t)}function Le(e,t){L(i,f,e,t)}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,t){if(null!=e)try{return new URL(e,t).toString()}catch(e){w("URL Exception: "+e,e)}return null}function Ue(r,a,o){let e=a?.length||0;if(0<e){let n=0,i=e-1;for(;n<=i;){let e=Math.ceil((n+i)/2),t=o(r,a[e]);if(0===t)return e;0<t?n=e+1:i=e-1}}return-1}let l=[];for(let e=0;e<256;e++)l.push((e+256).toString(16).substr(1).toLowerCase());let c=!!U("crypto")?.getRandomValues,_=(c||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,Me=7,H=0,z=1,G=2,$=3,q=4,Y=5,K=6,X=7,J=8,Q=9,Z=10,ee=11,te=12,ne=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,t,a,o){let s=new XMLHttpRequest,u=a?.retryHeuristics,l=0,c=!1;function d(){if(!c)try{{var n=s;var e=a;let t=e?.headers;n.open(i,r,!0),n.timeout=e?.timeout??0,t&&Object.keys(t).forEach(e=>{n.setRequestHeader(e,t[e])})}l++,s.send(t),Le(`XHR (${i} ${r}, #${l}) request sent`,t)}catch(e){ke("XHR Exception: "+e,e)}}return s.onreadystatechange=()=>{if(!c&&4===s.readyState){var e=s.status,t=s.responseText;if(Le(`XHR (${r}) response received, status `+e,t),e<200||299<e){var n=u?u(l,e,t):-1;if(0<=n)return setTimeout(d,n),void ke(`XHR (${r}) failed (status ${e}), retry in ${n} ms`,t)}o&&o(t,e,r)}},d(),{abort(){c=!0,s.abort(),Le(`XHR (${r}) aborted`)}}}function Ve(e,t,n){return F("GET",e,null,t,n)}let v="impression",De="clickThrough",re="firstQuartile",ae="midpoint",oe="thirdQuartile",se="complete",E="creativeView",ue=[],Re=(ue[H]=[v],ue[z]=["clickTracking"],ue[G]=["loaded"],ue[$]=["start",E],ue[q]=[re],ue[Y]=[ae],ue[K]=[oe],ue[X]=[se],ue[J]=["skip"],ue[Q]=["pause"],ue[Z]=["resume"],ue[ee]=["mute"],ue[te]=["unmute"],ue[ne]=["fullscreen","playerExpand"],ue[ie]=["exitFullscreen","playerCollapse"],{}),le=([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={},t=o.length;for(let r=0;r<t;r++){let[e,t,n]=o[r],i=n[0](a[e],n);if(null!=i)s[e]=i;else if(!t)return Le(le+("Missing object field: "+e),a),null}return s}function je(e){return e&&Array.isArray(e)?e:null}function Be(n,e){if(!je(n))return null;let[,i,r]=e,a=[],o=n.length;for(let t=0;t<o;t++){let e=r[0](n[t],r);null!=e||i?a.push(e):Le(le+("Invalid array entry at: "+t),n)}return a}function He(e){return"number"==typeof e?e:null}function ze(e){return"string"==typeof e?e:null}let e=[He],t=[ze],g=[function(e){return"boolean"==typeof e?e:null}],y=[We,[["content",!1,t],["type",!1,t]]],S=[We,[["beaconUrls",!1,[Be,!1,t]],["durationInSeconds",!0,e],["eventId",!0,t],["eventProgramDateTime",!0,t],["eventType",!1,t],["startTimeInSeconds",!0,e]]],Ne=[We,[["adId",!0,t],["adParameters",!0,t],["adSystem",!0,t],["adTitle",!0,t],["adVerifications",!0,[Be,!1,[We,[["executableResource",!0,[Be,!1,[We,[["apiFramework",!0,t],["language",!0,t],["type",!0,t],["uri",!0,t]]]]],["javaScriptResource",!0,[Be,!1,[We,[["apiFramework",!0,t],["browserOptional",!0,t],["uri",!0,t]]]]],["trackingEvents",!0,[Be,!1,[We,[["event",!1,t],["uri",!1,t]]]]],["vendor",!0,t],["verificationParameters",!0,t]]]]],["companionAds",!0,[Be,!1,[We,[["adParameters",!0,t],["altText",!0,t],["attributes",!0,[We,[["adSlotId",!0,t],["apiFramework",!0,t],["assetHeight",!0,t],["assetWidth",!0,t],["expandedHeight",!0,t],["expandedWidth",!0,t],["height",!0,t],["id",!0,t],["pxratio",!0,t],["renderingMode",!0,t],["width",!0,t]]]],["companionClickThrough",!0,t],["companionClickTracking",!0,t],["htmlResource",!0,t],["iFrameResource",!0,t],["sequence",!0,t],["staticResource",!0,t],["trackingEvents",!0,[Be,!1,[We,[["beaconUrls",!1,[Be,!1,t]],["eventType",!1,t]]]]]]]]],["creativeId",!0,t],["creativeSequence",!0,t],["extensions",!0,[Be,!1,y]],["trackingEvents",!0,[Be,!1,S]],["vastAdId",!0,t]]],Pe=[We,[["nonLinearAdList",!1,[Be,!1,[We,[["durationInSeconds",!1,e],["adId",!0,t],["adParameters",!0,t],["adSystem",!0,t],["adTitle",!0,t],["creativeId",!0,t],["creativeAdId",!0,t],["creativeSequence",!0,t],["width",!0,t],["height",!0,t],["expandedWidth",!0,t],["expandedHeight",!0,t],["scalable",!0,g],["maintainAspectRatio",!0,g],["minSuggestedDuration",!0,t],["apiFramework",!0,t],["staticResource",!0,t],["staticResourceCreativeType",!0,t],["iFrameResource",!0,t],["htmlResource",!0,t],["clickThrough",!0,t],["clickTracking",!0,t],["clickTrackingId",!0,t]]]]],["extensions",!0,[Be,!1,y]],["trackingEvents",!0,[Be,!1,S]]]],ce=new DOMParser,I=/\n|<!\[CDATA\[|\]\]>/g;function Ge(e){e=e?.textContent;return null==e?null:e.replace(I,"").trim()}function $e(e,t,n){n&&(e[t]=n)}function qe(e,t){for(var n of e.children)t[n.tagName]?.(n)}function Ye(e){let n=[];return qe(e,{IconClickFallbackImage:e=>{let t={};n.push(t),$e(t,"width",e.getAttribute("width")),$e(t,"height",e.getAttribute("height")),qe(e,{AltText:e=>{$e(t,"altText",Ge(e))},StaticResource:e=>{$e(t,"staticResource",Ge(e))}})}}),n}function Ke(t,f,m){if(Fe(t)){let o=ze(t.dashAvailabilityStartTime),e=je(t.avails),n=(e?.forEach(n=>{if(Fe(n)){var i=ze(n.availId);if(i){let l=He(n.startTimeInSeconds),c=He(n.durationInSeconds),d=(r=(r=ze(n.adMarkerDuration))&&_.exec(r))?3600*((a=r[1])?+a:0)+60*((a=r[2])?+a:0)+((a=r[3])?+a:0):null;let p=ze(n.availProgramDateTime);p=(p?new Date(p).getTime()/1e3:o?new Date(o).getTime()/1e3+l:0)||0,s(!1,n,l,c,p,d);var r=f[i];let t="",e=je(n.ads);e?.forEach(e=>{Fe(e)&&(t+=e.adId+`,${e.startTime},${e.duration};`)});var a=!r||t!==r.digest;if(Le(le+`Avail ${a?r?"!":"":"~"}${i} `+`(${n.duration} @ ${n.startTime} / ${n.availProgramDateTime})`,n),a){let o={},s=r?.ads,u=e?.length;if(e?.forEach((t,n)=>{if(Fe(t)){var i=ze(t.adId);if(i){var r=He(t.startTimeInSeconds);if(null==r)ke(le+"Invalid or missing ad start time",t);else{o[i]={start:r,duration:t.duration};let e=null;s&&(e=s[i],s[i]=null);var a=!e||r!==e.start||t.duration!==e.duration;Le(le+`Ad ${a?e?"!":"":"~"}${i} `+`(#${n+1} of ${u}) `+`(${t.duration} @ ${t.startTime} / ${t.adProgramDateTime})`,t),a&&m(r,n,u,l,c,p,d,t,!1,!1,e?.start)}}else ke(le+"Missing ad ID",t)}else ke(le+"Invalid ad object",e)}),s)for(let t in s){let e=s[t];e&&m(0,0,0,l,c,p,d,null,!1,!1,e.start)}f[i]={digest:t,ads:o}}}else ke(le+"Missing avail ID",n)}else ke(le+"Invalid avail object",e)}),je(t.nonLinearAvails));n?.forEach(e=>{var t;Fe(e)?(Le(le+`nonLinearAvail (${e.startTime} / ${e.availProgramDateTime})`,e),s(!0,e,t=He(e.startTimeInSeconds),null,e=((e=ze(e.availProgramDateTime))?new Date(e).getTime()/1e3:o?new Date(o).getTime()/1e3+t:0)||0,null)):ke(le+"Invalid nonLinearAvail object",n)});t=ze(t.nextToken);return t&&Le(le+`nextToken "${t}"`),t;function s(e,t,n,i,r,a){t=je(t.nonLinearAdsList)?.[0];t&&(Fe(t)?null==n?ke(le+"Invalid or missing nonlinear ad start time",t):(Le(le+"nonLinearAds",t),m(n,0,1,n,i,r,a,t,!0,e)):ke(le+"Invalid nonLinearAds object",t))}}else ke(le+"Invalid tracking-info response")}(M={})[M.AD_START=B]="AD_START",M[M.AD_END=fe]="AD_END",M[M.AD_PROGRESS=me]="AD_PROGRESS",M[M.AD_CLICK=_e]="AD_CLICK",M[M.AD_CAN_SKIP=he]="AD_CAN_SKIP",M[M.AD_INCOMING=ve]="AD_INCOMING",M[M.NONLINEAR_AD_START=Ee]="NONLINEAR_AD_START",M[M.NONLINEAR_AD_END=ge]="NONLINEAR_AD_END",M[M.AD_TRACKING_INFO_RESPONSE=ye]="AD_TRACKING_INFO_RESPONSE",(D={})[D.START=Se]="START",D[D.END=Ie]="END",D[D.PAUSE=Ae]="PAUSE",D[D.RESUME=Te]="RESUME",D[D.MUTE=Oe]="MUTE",D[D.UNMUTE=be]="UNMUTE",D[D.FULLSCREEN=Ce]="FULLSCREEN",D[D.EXIT_FULLSCREEN=Me]="EXIT_FULLSCREEN";let de=[];function Xe(r,t,e){let u="adTracking: ",v=(e,t)=>e-t.start,l=(e,t)=>e-t.startDate,a=(e,t)=>e.start-t.start,o={headers:{"Cache-Control":"no-cache, no-store"}},s=e.defaultTrackingRequestInterval||W,U=e.incomingAdCountdownInterval??pe,n=e.adTrackingUpdateMode||"pagination",x="playhead"===n,V="pagination"===n,E=[],F={},g=[],c,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,M=0,D=[],R=(()=>{let i=new EventTarget,a=null,r=null,o=-1,s=!1;function u(e,t){i.dispatchEvent(new CustomEvent(e,{detail:t}))}function l(e,t){var n=e.availDuration,i=e.inAvailStartOffset;return{toAdEnd:e.duration-t,toAvailEnd:null!=n&&null!=i?n-i-t:null,toSkipThreshold:0<=o?Math.max(0,o-t):null}}return{addEventListener(e,t,n){i.addEventListener(e,t,n)},removeEventListener(e,t,n){i.removeEventListener(e,t,n)},onTrackingInfoResponse(e){u(ye,{failedAdTrackingInfoRequest:e})},onAdStart(e,t,n){var i,r;a=(r=t,n=n,{adData:we(i=e),adClickthroughUrl:i.videoClickThrough,targetPlayheadForAdSkip:n+i.duration-r}),o=e.skipOffset,s=!1,u(B,{adObject:a,adElapsedTime:t,adCountdown:l(e,t)})},onAdEnd(e){u(fe,{adObject:a}),a=null},onAdProgress(e,t,n){u(me,{adObject:a,adElapsedTime:t,adCountdown:l(e,t)}),!s&&0<=o&&t>=o&&(s=!0,u(he,{adObject:a}))},onAdClick(e){u(_e,{adObject:a,adClickthroughUrl:a.adClickthroughUrl})},onNonLinearAdsStart(e,t,n){r={adData:we(e)},u(Ee,{nonLinearAdsObject:r,adElapsedTime:t})},onNonLinearAdsEnd(e){u(ge,{nonLinearAdsObject:r}),r=null},dispatchEvent:u}})();function N(n,i){let e=D.length;for(let t=0;t<e;t++){let e=D[t];e[n]?.apply(e,i)}}function P(e,t){t=t||d,Le(u+("Ad tracking event "+de[e]),t),N("onAdTrackingEvent",[t,e])}function k(e,t){!e.startDate&&O&&(e.startDate=t+O);t=c;(c=!!e.startDate)!==t&&Le(u+("Set adHasStartDate to "+c))}function L(e,t){var i,n=[["tttt",""+Date.now()]];x&&n.push(["aws.playheadPositionInSeconds",""+Math.round(t&&O?t-O:e)]),V&&T&&n.push(["aws.nextToken",T]),h?.abort(),t=(e=>{let t=new URL(r),n=new URLSearchParams(t.search);return e.forEach(e=>{n.append(e[0],e[1])}),t.search="?"+n.toString(),t.toString()})(n),i=(e,t)=>{if(200===t){let _=!1,h=!1;T=Ke(e,F,(n,i,r,a,o,t,s,u,l,c,d)=>{if(null!=a&&t&&(O=t-a),l){if(Ue(n,g,v)<0){l=n,t=t,c=c;let e=(m=We(p=u,Pe))?(f=m.nonLinearAdList.reduce((e,t)=>Math.max(e,t.durationInSeconds),0))?(Object.assign(m,{start:l,startDate:t,duration:f,nonlinearAvail:c}),Le(le+`New NonLinearAdsData (${f}s @ ${l}s / ${t}s)`,m),m):(ke(le+"Invalid nonlinear ad duration",p),null):(ke(le+"Missing required fields for NonLinearAdsData",p),null);e&&(k(e,n),g.push(e),h=!0,N("onNewNonLinearAds",[e]))}}else{let e=null!=d?Ue(d,E,v):-1,t=u&&((n,e,t,i,r,a,o)=>{let s=He(o.durationInSeconds);if(null==s||s<=0)return ke(le+"Invalid or missing ad duration",o),null;let u=ze(o.adProgramDateTime);u=u&&new Date(u).getTime()/1e3;var l=ze(o.skipOffset);let c=l&&new Date(`1970-01-01T${l}Z`).getTime()/1e3,d=(c||0===c||(c=-1),We(o,Ne));if(!d)return ke(le+"Missing required fields for AdData",o),null;d.extensions?.forEach(e=>{if("AdVerifications"===e.type){var t=e.content;try{var n=ce.parseFromString(t,"application/xml")?.documentElement,i=n?.getElementsByTagName("JavaScriptResource"),r=n?.getElementsByTagName("VerificationParameters"),a=n?.getAttribute("vendor"),o=Ge(i?.[0]),s=Ge(r?.[0]);a&&o?(d.adVerifications||(d.adVerifications=[])).push({vendor:a,javaScriptResource:[{uri:o}],verificationParameters:s}):ke(le+"Invalid AdVerifications extension content",e)}catch(e){ke(le+"Exception parsing AdVerifications extension: "+t,e)}}else if("companion_about_this_ad"===e.type){n="<root>"+e.content+"</root>";try{let e=ce.parseFromString(n,"application/xml")?.documentElement;e&&qe(e,{Icon:e=>{let t=d.icons||(d.icons=[]),n={};t.push(n),$e(n,"program",e.getAttribute("program")),$e(n,"width",e.getAttribute("width")),$e(n,"height",e.getAttribute("height")),$e(n,"xPosition",e.getAttribute("xPosition")),$e(n,"yPosition",e.getAttribute("yPosition")),qe(e,{StaticResource:e=>{$e(n,"staticResource",Ge(e))},IconClicks:e=>{let t={};n.iconClicks=t,qe(e,{IconClickThrough:e=>{$e(t,"iconClickThrough",Ge(e))},IconClickFallbackImages:e=>{e=Ye(e);e.length&&(t.iconClickFallbackImages=e)}})}})}})}catch(e){ke(le+"Exception parsing AdChoices extension: "+n,e)}}else if("IconClickFallbackImages"===e.type){i="<root>"+e.content+"</root>";try{let e=ce.parseFromString(i,"application/xml")?.documentElement;e&&qe(e,{IconClickFallbackImages:e=>{var t={},e=((d.icons||(d.icons=[])).push(t),$e(t,"program",e.getAttribute("program")),Ye(e));e.length&&(t.iconClicks={iconClickFallbackImages:e})}})}catch(e){ke(le+"Exception parsing AdChoices extension: "+i,e)}}});let p=[0,0,0,0];function f(e,t){t-=n;0<t&&t<s+.01&&(p[e]=t)}return Object.assign(d,{start:n,startDate:u||0,duration:s,skipOffset:c,availAdIndex:e,availAdCount:t,availStart:i,availDuration:r,availMarkedDuration:a,inAvailStartOffset:null!=i?n-i:null,playCount:0,quartileEventOffsets:p}),d.videoClickThrough=null,d.trackingEvents=d.trackingEvents?.filter(e=>{switch(e.eventType){case De:var t=e.beaconUrls[0];return t&&(d.videoClickThrough=t),!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(le+`New AdData (${s}s @ ${n}s / ${u})`,d),d})(n,i,r,a,o,s,u);t?(k(t,n),0<=e?(t.playCount=E[e].playCount,E[e]=t):E.push(t),_=!0,N("onNewAd",[t,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 "+t,e),N("onTrackingInfoResponse",[!0]);h=null},h=Ve(t,o,(e,t,n)=>{200===t&&null!=e&&(e=xe(e)),i(e,t)})}function w(e,t,n,i){let r,a,o;var s=i?"startDate":"start",n=((r,a,o)=>{let e=a?.length||0;if(0<e){let n=0,i=e-1;for(;n<i;){let e=Math.ceil((n+i)/2),t=o(r,a[e]);if(0===t)return e;0<t?n=e:i=e-1}if(0<n||0<=o(r,a[n]))return n}return-1})(n,t,i?l:v);return o=0<=n?(r=t[n],a=r[s],n+1<t.length?t[n+1][s]:Number.MAX_VALUE):(r=null,a=Number.MIN_VALUE,t.length?t[0][s]:Number.MAX_VALUE),Le(u+`Update time range (${a} - ${o}), `+e+" ad index "+n,r),[r,a,o]}function i(e){e&&D.indexOf(e)<0&&D.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(n,e){var i=ue[e];if(a&&1===n.playCount&&i){let e=i.length;for(let t=0;t<e;t++){let e=i[t];r&&Re[e]?.noninteractive||((i,r)=>{var t=r?.beaconUrls;if(t){var n=t.length;for(let e=0;e<n;e++){var a=t[e]?.trim();a&&Ve(a,s,(e,t,n)=>{o(i,r,n,t)})}}})(n,a[e])}}}}})(e.disableNoninteractiveClientSideBeaconing,(e,t,n,i)=>{N("onAdBeaconResponse",[e,t,n,i])})),{updateAdTrackingInfo:function(){L(b??0,C),A=b},startUpdatingAdTrackingInfo:function(e){s=e||W,A=null},stopUpdatingAdTrackingInfo:function(){s=-1},onPlayheadUpdate:function(e,t){if(null!=b&&e>b&&e<b+j){0<=s&&!h&&(null==A||Math.abs(e-A)>=s)&&(L(e,t),A=e);var n=(t=c?t:null)||e,i=((null==p||n<p||n>=f)&&([m,p,f]=w("linear",E,n,t)),d),r=n-p;if((d=m&&n<p+m.duration?m:null)?.adId===i?.adId){if(d&&(Le(u+"Ad progresses, time => "+r),N("onAdProgress",[d,r,e]),r>M)&&r<M+j){let e=M;M=r,(a=d.quartileEventOffsets[0])&&e<a&&M>=a&&P(q),(a=d.quartileEventOffsets[1])&&e<a&&M>=a&&P(Y),(a=d.quartileEventOffsets[2])&&e<a&&M>=a&&P(K)}}else{if(i){let e=i.quartileEventOffsets[3];e&&M+j>e&&P(X,i),Le(u+"Ad ends",i),N("onAdEnd",[i])}M=0,d&&(d.playCount++,t&&Le(u+`PDT offset => player ${t-e}, ad `+(d.startDate-d.start),d),Le(u+"Ad loads",d),N("onAdLoad",[d]),P(G),Le(u+"Ad starts, time => "+r,d),N("onAdStart",[d,r,e]),P($),P(H))}if(!d){let e=f-n;e<=U&&R.dispatchEvent(ve,{timeToNextAd:e})}(null==y||n<y||n>=S)&&([I,y,S]=w("nonlinear",g,n,t));var a=_,i=n-y;(_=I&&n<y+I.duration?I:null)!==a&&(a&&(Le(u+"Nonlinear ad ends",a),N("onNonLinearAdsEnd",[a])),_)&&(t&&Le(u+`PDT offset => player ${t-e}, nonlinear ad `+(_.startDate-_.start),_),Le(u+"Nonlinear ad starts, time => "+i,_),N("onNonLinearAdsStart",[_,i,e]))}b=e,C=t},onPlaybackRateUpdate:function(e){},onPlaybackEvent:function(e){switch(e){case Se:t?.sendPlaybackStart();break;case Ie:t?.sendPlaybackEnd()}if(d)switch(e){case Ae:P(Q);break;case Te:P(Z);break;case Oe:P(ee);break;case be:P(te);break;case Ce:P(ne);break;case Me:P(ie)}},onVideoClick:function(e){d&&(t?.sendAdTouch(e),N("onAdClick",[d]))},onPlayerControlClick:function(e){d&&t?.sendAdTouch(e)},onAdClickthrough:function(){d&&(t?.sendAdClick(),P(z))},onAdSkip:function(){d&&P(J)},addAdObserver:i,removeAdObserver:function(e){e&&0<=(e=D.indexOf(e))&&D.splice(e,1)},getAllAds:function(){return E.map(e=>we(e))},getAllNonLinearAds:function(){return g.map(e=>we(e))},addEventListener(e,t,n){R.addEventListener(e,t,n)},removeEventListener(e,t,n){R.removeEventListener(e,t,n)}}}de[H]="IMPRESSION",de[z]="CLICK_THROUGH",de[G]="LOADED",de[$]="START",de[q]="FIRST_QUARTILE",de[Y]="MID_POINT",de[K]="THIRD_QUARTILE",de[X]="COMPLETE",de[J]="SKIP",de[Q]="PAUSE",de[Z]="RESUME",de[ee]="MUTE",de[te]="UNMUTE",de[ne]="FULLSCREEN",de[ie]="EXIT_FULLSCREEN",(N={})[N.IMPRESSION=H]="IMPRESSION",N[N.CLICK_THROUGH=z]="CLICK_THROUGH",N[N.LOADED=G]="LOADED",N[N.START=$]="START",N[N.FIRST_QUARTILE=q]="FIRST_QUARTILE",N[N.MID_POINT=Y]="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=te]="UNMUTE",N[N.FULLSCREEN=ne]="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,l=r.trackingUrl,c=r.sessionInitUrl,t=r.sessionInitHeaders,d=r.sessionInitTimeout,p=r.palNonceManager||e,f=p?.getNonce?.()??null,m={getPlaybackUrl:()=>u,getTrackingUrl:()=>l,getPalNonce:()=>f,updateAdTrackingInfo(){s.updateAdTrackingInfo()},startUpdatingAdTrackingInfo(e){s.startUpdatingAdTrackingInfo(e)},stopUpdatingAdTrackingInfo(){s.stopUpdatingAdTrackingInfo()},onPlayheadUpdate(e,t){s.onPlayheadUpdate(e,t)},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,t,n){s.addEventListener(e,t,n)},removeEventListener(e,t,n){s.removeEventListener(e,t,n)}};if(l)s=Xe(l,p,r),a(m,"Session initialized elsewhere");else if(c){let n=x(r.originParams)||{},i=r.sessionFeatures;i&&T.forEach(e=>{var t=i[e];null!=t&&(n[e]=t)});var _,h,v,E,g=x(r.playerParams)||{},g=(g.device_sdk_info||=C.clientInfo,f&&(g.givn=f),n.playerParams=g,{}),y=(t&&(g.headers=t),d&&(g.timeout=d),Le(`createSession: Request sent to URL "${c}"`,n),c),S=n,I=(e,t)=>{200===t?(u=V(e?.manifestUrl,c))&&(l=V(e?.trackingUrl,c))?(s=Xe(l,p,r),a(m,"Successful session response",e)):o(A.INVALID_INIT_RESPONSE,"Invalid session response"):0===t?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,t,n)=>{200===t&&null!=e&&(e=xe(e)),I&&I(e,t)})}catch(y){return void ke("JSON Encode Exception: "+y,y)}}else o(A.INVALID_CONFIG,"Missing 'sessionInitUrl'")}function Qe(n,i,r,a){let o="createSession: ";function s(e,t,n){Le(o+t,n),i?i(e,null):r(e)}function u(e,t){var n={code:e,message:t};w(o+`(${e}) `+t),i?i(null,n):a(n)}if(n){let e=n.palNonceRequestParams;if(n.trackingUrl||n.palNonceManager||!e)return Je(n,null,s,u);let t=(i=>{var e="nonceReq: ";if(d){var t=U("goog")?.pal?.NonceRequest;if(t){let n=new t;n.omidPartnerName="MediaTailor",n.omidPartnerVersion="1.0.0",n.supportedApiFrameworks=m,h.forEach(e=>{var t=i[e];null!=t&&(n[e]=t)}),n.sessionId||(n.sessionId=(()=>{var t=new Uint8Array(16);if(c)crypto.getRandomValues(t);else for(let e=0;e<16;e++)t[e]=Math.floor(256*Math.random());return t[6]=15&t[6]|64,t[8]=63&t[8]|128,l[t[0]]+l[t[1]]+l[t[2]]+l[t[3]]+"-"+l[t[4]]+l[t[5]]+"-"+l[t[6]]+l[t[7]]+"-"+l[t[8]]+l[t[9]]+"-"+l[t[10]]+l[t[11]]+l[t[12]]+l[t[13]]+l[t[14]]+l[t[15]]})());t=d.loadNonceManager?.(n);return t?Le(e+"Request sent",n):w(e+"Request failed",n),t}w(e+"Missing PAL SDK classes")}else w(e+"PAL isn't initialized");return null})(e);t?t.then(e=>{Le(o+"NonceManager received",e),Je(n,e,s,u)}).catch(e=>{ke(o+"Nonce request rejected",e),Je(n,null,s,u)}):(ke(o+"Unable to create a nonce request"),Je(n,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(t,n){let e="initPal: ";if(!t){if(!n)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=n.allowStorage??!1,t=new r(e)}}return d&&ke(e+"Resetting NonceLoader"),d=t,!0},createSession:function(n,e){if(!e)return new Promise((e,t)=>{Qe(n,null,e,t)});Qe(n,e,null,null)},PlaybackEvent:D,AdTrackingEvent:N,SessionUiEvent:M,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 n?n.mediatailor=t():e.mediatailor=t(),s.mediatailor=n.mediatailor,s)),Sl&&(module.exports=Sl.datazoom)})();
|