@playpilot/tpi 8.10.1 → 8.10.3

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/dist/mount.js CHANGED
@@ -2,9 +2,9 @@ var cg=Object.defineProperty;var ss=Ee=>{throw TypeError(Ee)};var dg=(Ee,Te,qe)=
2
2
  /*$vite$:1*/`,document.head.appendChild(Ee);const Te=!1;var qe=Array.isArray,Ha=Array.prototype.indexOf,jr=Array.from,fs=Object.defineProperty,di=Object.getOwnPropertyDescriptor,Zn=Object.getOwnPropertyDescriptors,hs=Object.prototype,gs=Array.prototype,Ar=Object.getPrototypeOf,Yn=Object.isExtensible;function Vi(t){return typeof t=="function"}const vt=()=>{};function ms(t){return typeof(t==null?void 0:t.then)=="function"}function ys(t){return t()}function Lr(t){for(var e=0;e<t.length;e++)t[e]()}function Jn(){var t,e,i=new Promise((a,r)=>{t=a,e=r});return{promise:i,resolve:t,reject:e}}function Qn(t,e,i=!1){return t===void 0?i?e():e:t}function Ui(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const i=[];for(const a of t)if(i.push(a),i.length===e)break;return i}const Ke=2,Mr=4,Va=8,Xn=1<<24,It=16,Qt=32,Ei=64,Ua=128,wt=512,Xe=1024,nt=2048,Xt=4096,dt=8192,$t=16384,Wa=32768,jt=65536,$n=1<<17,el=1<<18,Wi=1<<19,tl=1<<20,ga=32768,Dr=1<<21,qr=1<<22,ui=1<<23,At=Symbol("$state"),il=Symbol("legacy props"),bs=Symbol(""),Gi=new class extends Error{constructor(){super(...arguments);zt(this,"name","StaleReactionError");zt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Nr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ws(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _s(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ks(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Ss(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Es(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ts(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ps(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Cs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function zs(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const al=1,rl=2,nl=4,Is=8,js=16,As=1,Ls=2,Ms=4,Ds=8,qs=16,Ns=1,Rs=2,Os=4,Bs=1,Fs=2,Ue=Symbol(),Hs="http://www.w3.org/1999/xhtml",Vs="http://www.w3.org/2000/svg",Us="@attach";function Ws(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Gs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function ll(t){return t===this.v}function ol(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function sl(t){return!ol(t,this.v)}let Ki=!1,Ks=!1;function Zs(){Ki=!0}let Se=null;function Zi(t){Se=t}function Rr(t){return cl().get(t)}function Or(t,e){return cl().set(t,e),e}function te(t,e=!1,i){Se={p:Se,i:!1,c:null,e:null,s:t,x:null,l:Ki&&!e?{s:null,u:null,$:[]}:null}}function ie(t){var e=Se,i=e.e;if(i!==null){e.e=null;for(var a of i)Al(a)}return t!==void 0&&(e.x=t),e.i=!0,Se=e.p,t??{}}function Ti(){return!Ki||Se!==null&&Se.l===null}function cl(t){return Se===null&&Nr(),Se.c??(Se.c=new Map(Ys(Se)||void 0))}function Ys(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let Pi=[];function dl(){var t=Pi;Pi=[],Lr(t)}function ei(t){if(Pi.length===0&&!Ji){var e=Pi;queueMicrotask(()=>{e===Pi&&dl()})}Pi.push(t)}function Js(){for(;Pi.length>0;)dl()}function ul(t){var e=xe;if(e===null)return ye.f|=ui,t;if(e.f&Wa)Yi(t,e);else{if(!(e.f&Ua))throw t;e.b.error(t)}}function Yi(t,e){for(;e!==null;){if(e.f&Ua)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Ga=new Set;let me=null,Ka=null,Re=null,ft=[],Za=null,Br=!1,Ji=!1;const _r=class _r{constructor(){ue(this,He);zt(this,"committed",!1);zt(this,"current",new Map);zt(this,"previous",new Map);ue(this,ca,new Set);ue(this,da,new Set);ue(this,qi,0);ue(this,Ni,0);ue(this,qa,null);ue(this,ua,[]);ue(this,pa,[]);zt(this,"skipped_effects",new Set);zt(this,"is_fork",!1)}is_deferred(){return this.is_fork||D(this,Ni)>0}process(e){var a;ft=[],Ka=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)ze(this,He,Un).call(this,r,i);this.is_fork||ze(this,He,cs).call(this),this.is_deferred()?(ze(this,He,Hi).call(this,i.effects),ze(this,He,Hi).call(this,i.render_effects),ze(this,He,Hi).call(this,i.block_effects)):(Ka=this,me=null,fl(i.render_effects),fl(i.effects),Ka=null,(a=D(this,qa))==null||a.resolve()),Re=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&ui||(this.current.set(e,e.v),Re==null||Re.set(e,e.v))}activate(){me=this,this.apply()}deactivate(){me===this&&(me=null,Re=null)}flush(){if(this.activate(),ft.length>0){if(vl(),me!==null&&me!==this)return}else D(this,qi)===0&&this.process([]);this.deactivate()}discard(){for(const e of D(this,da))e(this);D(this,da).clear()}increment(e){ce(this,qi,D(this,qi)+1),e&&ce(this,Ni,D(this,Ni)+1)}decrement(e){ce(this,qi,D(this,qi)-1),e&&ce(this,Ni,D(this,Ni)-1),this.revive()}revive(){for(const e of D(this,ua))$e(e,nt),Ci(e);for(const e of D(this,pa))$e(e,Xt),Ci(e);ce(this,ua,[]),ce(this,pa,[]),this.flush()}oncommit(e){D(this,ca).add(e)}ondiscard(e){D(this,da).add(e)}settled(){return(D(this,qa)??ce(this,qa,Jn())).promise}static ensure(){if(me===null){const e=me=new _r;Ga.add(me),Ji||_r.enqueue(()=>{me===e&&e.flush()})}return me}static enqueue(e){ei(e)}apply(){}};ca=new WeakMap,da=new WeakMap,qi=new WeakMap,Ni=new WeakMap,qa=new WeakMap,ua=new WeakMap,pa=new WeakMap,He=new WeakSet,Un=function(e,i){var u;e.f^=Xe;for(var a=e.first;a!==null;){var r=a.f,n=(r&(Qt|Ei))!==0,l=n&&(r&Xe)!==0,c=l||(r&dt)!==0||this.skipped_effects.has(a);if(a.f&Ua&&((u=a.b)!=null&&u.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!c&&a.fn!==null){n?a.f^=Xe:r&Mr?i.effects.push(a):ka(a)&&(a.f&It&&i.block_effects.push(a),Sa(a));var s=a.first;if(s!==null){a=s;continue}}var d=a.parent;for(a=a.next;a===null&&d!==null;)d===i.effect&&(ze(this,He,Hi).call(this,i.effects),ze(this,He,Hi).call(this,i.render_effects),ze(this,He,Hi).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Hi=function(e){for(const i of e)(i.f&nt?D(this,ua):D(this,pa)).push(i),ze(this,He,Wn).call(this,i.deps),$e(i,Xe)},Wn=function(e){if(e!==null)for(const i of e)!(i.f&Ke)||!(i.f&ga)||(i.f^=ga,ze(this,He,Wn).call(this,i.deps))},cs=function(){if(D(this,Ni)===0){for(const e of D(this,ca))e();D(this,ca).clear()}D(this,qi)===0&&ze(this,He,ds).call(this)},ds=function(){var n;if(Ga.size>1){this.previous.clear();var e=Re,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Ga){if(l===this){i=!1;continue}const c=[];for(const[d,u]of this.current){if(l.current.has(d))if(i&&u!==l.current.get(d))l.current.set(d,u);else continue;c.push(d)}if(c.length===0)continue;const s=[...l.current.keys()].filter(d=>!this.current.has(d));if(s.length>0){var r=ft;ft=[];const d=new Set,u=new Map;for(const p of c)hl(p,s,d,u);if(ft.length>0){me=l,l.apply();for(const p of ft)ze(n=l,He,Un).call(n,p,a);l.deactivate()}ft=r}}me=null,Re=e}this.committed=!0,Ga.delete(this)};let Lt=_r;function pl(t){var e=Ji;Ji=!0;try{for(var i;;){if(Js(),ft.length===0&&(me==null||me.flush(),ft.length===0))return Za=null,i;vl()}}finally{Ji=e}}function vl(){var t=hi;Br=!0;var e=null;try{var i=0;for(Ja(!0);ft.length>0;){var a=Lt.ensure();if(i++>1e3){var r,n;Qs()}a.process(ft),pi.clear()}}finally{Br=!1,Ja(t),Za=null}}function Qs(){try{Ss()}catch(t){Yi(t,Za)}}let xt=null;function fl(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&($t|dt))&&ka(a)&&(xt=new Set,Sa(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?ql(a):a.fn=null),(xt==null?void 0:xt.size)>0)){pi.clear();for(const r of xt){if(r.f&($t|dt))continue;const n=[r];let l=r.parent;for(;l!==null;)xt.has(l)&&(xt.delete(l),n.push(l)),l=l.parent;for(let c=n.length-1;c>=0;c--){const s=n[c];s.f&($t|dt)||Sa(s)}}xt.clear()}}xt=null}}function hl(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const r of t.reactions){const n=r.f;n&Ke?hl(r,e,i,a):n&(qr|It)&&!(n&nt)&&gl(r,e,a)&&($e(r,nt),Ci(r))}}function gl(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const r of t.deps){if(e.includes(r))return!0;if(r.f&Ke&&gl(r,e,i))return i.set(r,!0),!0}return i.set(t,!1),!1}function Ci(t){for(var e=Za=t;e.parent!==null;){e=e.parent;var i=e.f;if(Br&&e===xe&&i&It&&!(i&el))return;if(i&(Ei|Qt)){if(!(i&Xe))return;e.f^=Xe}}ft.push(e)}function ml(t){let e=0,i=Dt(0),a;return()=>{wa()&&(o(i),Ya(()=>(e===0&&(a=Ot(()=>t(()=>vi(i)))),e+=1,()=>{ei(()=>{e-=1,e===0&&(a==null||a(),a=void 0,vi(i))})})))}}var Xs=jt|Wi|Ua;function $s(t,e,i){new ec(t,e,i)}class ec{constructor(e,i,a){ue(this,We);zt(this,"parent");ue(this,mt,!1);ue(this,yt);ue(this,Fn,null);ue(this,Ut);ue(this,Ri);ue(this,Wt);ue(this,bt,null);ue(this,ct,null);ue(this,Gt,null);ue(this,si,null);ue(this,wi,null);ue(this,Oi,0);ue(this,xi,0);ue(this,Bi,!1);ue(this,_i,null);ue(this,kr,ml(()=>(ce(this,_i,Dt(D(this,Oi))),()=>{ce(this,_i,null)})));ce(this,yt,e),ce(this,Ut,i),ce(this,Ri,a),this.parent=xe.b,ce(this,mt,!!D(this,Ut).pending),ce(this,Wt,fi(()=>{xe.b=this;{var r=ze(this,We,Gn).call(this);try{ce(this,bt,lt(()=>a(r)))}catch(n){this.error(n)}D(this,xi)>0?ze(this,We,Ir).call(this):ce(this,mt,!1)}return()=>{var n;(n=D(this,wi))==null||n.remove()}},Xs))}is_pending(){return D(this,mt)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!D(this,Ut).pending}update_pending_count(e){ze(this,We,Kn).call(this,e),ce(this,Oi,D(this,Oi)+e),D(this,_i)&&ti(D(this,_i),D(this,Oi))}get_effect_pending(){return D(this,kr).call(this),o(D(this,_i))}error(e){var i=D(this,Ut).onerror;let a=D(this,Ut).failed;if(D(this,Bi)||!i&&!a)throw e;D(this,bt)&&(Ze(D(this,bt)),ce(this,bt,null)),D(this,ct)&&(Ze(D(this,ct)),ce(this,ct,null)),D(this,Gt)&&(Ze(D(this,Gt)),ce(this,Gt,null));var r=!1,n=!1;const l=()=>{if(r){Gs();return}r=!0,n&&zs(),Lt.ensure(),ce(this,Oi,0),D(this,Gt)!==null&&Xi(D(this,Gt),()=>{ce(this,Gt,null)}),ce(this,mt,this.has_pending_snippet()),ce(this,bt,ze(this,We,zr).call(this,()=>(ce(this,Bi,!1),lt(()=>D(this,Ri).call(this,D(this,yt)))))),D(this,xi)>0?ze(this,We,Ir).call(this):ce(this,mt,!1)};var c=ye;try{ot(null),n=!0,i==null||i(e,l),n=!1}catch(s){Yi(s,D(this,Wt)&&D(this,Wt).parent)}finally{ot(c)}a&&ei(()=>{ce(this,Gt,ze(this,We,zr).call(this,()=>{Lt.ensure(),ce(this,Bi,!0);try{return lt(()=>{a(D(this,yt),()=>e,()=>l)})}catch(s){return Yi(s,D(this,Wt).parent),null}finally{ce(this,Bi,!1)}}))})}}mt=new WeakMap,yt=new WeakMap,Fn=new WeakMap,Ut=new WeakMap,Ri=new WeakMap,Wt=new WeakMap,bt=new WeakMap,ct=new WeakMap,Gt=new WeakMap,si=new WeakMap,wi=new WeakMap,Oi=new WeakMap,xi=new WeakMap,Bi=new WeakMap,_i=new WeakMap,kr=new WeakMap,We=new WeakSet,ug=function(){try{ce(this,bt,lt(()=>D(this,Ri).call(this,D(this,yt))))}catch(e){this.error(e)}ce(this,mt,!1)},pg=function(){const e=D(this,Ut).pending;e&&(ce(this,ct,lt(()=>e(D(this,yt)))),Lt.enqueue(()=>{var i=ze(this,We,Gn).call(this);ce(this,bt,ze(this,We,zr).call(this,()=>(Lt.ensure(),lt(()=>D(this,Ri).call(this,i))))),D(this,xi)>0?ze(this,We,Ir).call(this):(Xi(D(this,ct),()=>{ce(this,ct,null)}),ce(this,mt,!1))}))},Gn=function(){var e=D(this,yt);return D(this,mt)&&(ce(this,wi,qt()),D(this,yt).before(D(this,wi)),e=D(this,wi)),e},zr=function(e){var i=xe,a=ye,r=Se;Rt(D(this,Wt)),ot(D(this,Wt)),Zi(D(this,Wt).ctx);try{return e()}catch(n){return ul(n),null}finally{Rt(i),ot(a),Zi(r)}},Ir=function(){const e=D(this,Ut).pending;D(this,bt)!==null&&(ce(this,si,document.createDocumentFragment()),D(this,si).append(D(this,wi)),Ol(D(this,bt),D(this,si))),D(this,ct)===null&&ce(this,ct,lt(()=>e(D(this,yt))))},Kn=function(e){var i;if(!this.has_pending_snippet()){this.parent&&ze(i=this.parent,We,Kn).call(i,e);return}ce(this,xi,D(this,xi)+e),D(this,xi)===0&&(ce(this,mt,!1),D(this,ct)&&Xi(D(this,ct),()=>{ce(this,ct,null)}),D(this,si)&&(D(this,yt).before(D(this,si)),ce(this,si,null)))};let zi=null;function yl(t){zi=t}function Ie(t,e){return e}function tc(t,e,i){for(var a=[],r=e.length,n=0;n<r;n++)Gr(e[n].e,a,!0);Nl(a,()=>{var l=a.length===0&&i!==null;if(l){var c=i,s=c.parentNode;cc(s),s.append(c),t.items.clear(),Mt(t,e[0].prev,e[r-1].next)}for(var d=0;d<r;d++){var u=e[d];l||(t.items.delete(u.k),Mt(t,u.prev,u.next)),Ze(u.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Pe(t,e,i,a,r,n=null){var l=t,c=new Map,s=null,d=(e&nl)!==0,u=(e&al)!==0,p=(e&rl)!==0;if(d){var f=t;l=f.appendChild(qt())}var h=null,g=Hr(()=>{var E=i();return qe(E)?E:E==null?[]:jr(E)}),y,w=!0;function m(){ic(x,y,l,e,a),h!==null&&(y.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):Kr(h.effect),_.first=h.effect):Xi(h.effect,()=>{h=null}))}var _=fi(()=>{y=o(g);for(var E=y.length,z=new Set,P=me,T=null,R=zl(),A=0;A<E;A+=1){var L=y[A],k=a(L,A),I=w?null:c.get(k);I?(u&&ti(I.v,L),p?ti(I.i,A):I.i=A,R&&P.skipped_effects.delete(I.e)):(I=ac(w?l:null,T,L,k,A,r,e,i),w&&(I.o=!0,T===null?s=I:T.next=I,T=I),c.set(k,I)),z.add(k)}if(E===0&&n&&!h)if(w)h={fragment:null,effect:lt(()=>n(l))};else{var N=document.createDocumentFragment(),q=qt();N.append(q),h={fragment:N,effect:lt(()=>n(q))}}if(!w)if(R){for(const[M,Z]of c)z.has(M)||P.skipped_effects.add(Z.e);P.oncommit(m),P.ondiscard(()=>{})}else m();o(g)}),x={effect:_,flags:e,items:c,first:s};w=!1}function ic(t,e,i,a,r){var L,k,I,N;var n=(a&Is)!==0,l=e.length,c=t.items,s=t.first,d,u=null,p,f=[],h=[],g,y,w,m;if(n)for(m=0;m<l;m+=1)g=e[m],y=r(g,m),w=c.get(y),w.o&&((L=w.a)==null||L.measure(),(p??(p=new Set)).add(w));for(m=0;m<l;m+=1){if(g=e[m],y=r(g,m),w=c.get(y),t.first??(t.first=w),!w.o){w.o=!0;var _=u?u.next:s;Mt(t,u,w),Mt(t,w,_),Fr(w,_,i),u=w,f=[],h=[],s=u.next;continue}if(w.e.f&dt&&(Kr(w.e),n&&((k=w.a)==null||k.unfix(),(p??(p=new Set)).delete(w))),w!==s){if(d!==void 0&&d.has(w)){if(f.length<h.length){var x=h[0],E;u=x.prev;var z=f[0],P=f[f.length-1];for(E=0;E<f.length;E+=1)Fr(f[E],x,i);for(E=0;E<h.length;E+=1)d.delete(h[E]);Mt(t,z.prev,P.next),Mt(t,u,z),Mt(t,P,x),s=x,u=P,m-=1,f=[],h=[]}else d.delete(w),Fr(w,s,i),Mt(t,w.prev,w.next),Mt(t,w,u===null?t.first:u.next),Mt(t,u,w),u=w;continue}for(f=[],h=[];s!==null&&s.k!==y;)s.e.f&dt||(d??(d=new Set)).add(s),h.push(s),s=s.next;if(s===null)continue;w=s}f.push(w),u=w,s=w.next}if(s!==null||d!==void 0){for(var T=d===void 0?[]:jr(d);s!==null;)s.e.f&dt||T.push(s),s=s.next;var R=T.length;if(R>0){var A=a&nl&&l===0?i:null;if(n){for(m=0;m<R;m+=1)(I=T[m].a)==null||I.measure();for(m=0;m<R;m+=1)(N=T[m].a)==null||N.fix()}tc(t,T,A)}}n&&ei(()=>{var q;if(p!==void 0)for(w of p)(q=w.a)==null||q.apply()})}function ac(t,e,i,a,r,n,l,c){var s=zi,d=(l&al)!==0,u=(l&js)===0,p=d?u?Wr(i,!1,!1):Dt(i):i,f=l&rl?Dt(r):r,h={i:f,v:p,k:a,a:null,e:null,o:!1,prev:e,next:null};zi=h;try{if(t===null){var g=document.createDocumentFragment();g.append(t=qt())}return h.e=lt(()=>n(t,p,f,c)),e!==null&&(e.next=h),h}finally{zi=s}}function Fr(t,e,i){for(var a=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,n=t.e.nodes_start;n!==null&&n!==a;){var l=ba(n);r.before(n),n=l}}function Mt(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e===t.effect.last&&i!==null&&(t.effect.last=i.e),e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e===t.effect.last&&e===null&&(t.effect.last=i.e.prev),i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function bl(t,e,i,a){const r=Ti()?ya:Hr;if(i.length===0&&t.length===0){a(e.map(r));return}var n=me,l=xe,c=wl();function s(){Promise.all(i.map(d=>rc(d))).then(d=>{c();try{a([...e.map(r),...d])}catch(u){l.f&$t||Yi(u,l)}n==null||n.deactivate(),ma()}).catch(d=>{Yi(d,l)})}t.length>0?Promise.all(t).then(()=>{c();try{return s()}finally{n==null||n.deactivate(),ma()}}):s()}function wl(){var t=xe,e=ye,i=Se,a=me;return function(n=!0){Rt(t),ot(e),Zi(i),n&&(a==null||a.activate())}}function ma(){Rt(null),ot(null),Zi(null)}function ya(t){var e=Ke|nt,i=ye!==null&&ye.f&Ke?ye:null;return xe!==null&&(xe.f|=Wi),{ctx:Se,deps:null,effects:null,equals:ll,f:e,fn:t,reactions:null,rv:0,v:Ue,wv:0,parent:i??xe,ac:null}}function rc(t,e){let i=xe;i===null&&ws();var a=i.b,r=void 0,n=Dt(Ue),l=!ye,c=new Map;return mc(()=>{var f;var s=Jn();r=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===me&&d.committed&&d.deactivate(),ma()})}catch(h){s.reject(h),ma()}var d=me;if(l){var u=!a.is_pending();a.update_pending_count(1),d.increment(u),(f=c.get(d))==null||f.reject(Gi),c.delete(d),c.set(d,s)}const p=(h,g=void 0)=>{if(d.activate(),g)g!==Gi&&(n.f|=ui,ti(n,g));else{n.f&ui&&(n.f^=ui),ti(n,h);for(const[y,w]of c){if(c.delete(y),y===d)break;w.reject(Gi)}}l&&(a.update_pending_count(-1),d.decrement(u))};s.promise.then(p,h=>p(null,h||"unknown"))}),xa(()=>{for(const s of c.values())s.reject(Gi)}),new Promise(s=>{function d(u){function p(){u===r?s(n):d(r)}u.then(p,p)}d(r)})}function W(t){const e=ya(t);return Fl(e),e}function Hr(t){const e=ya(t);return e.equals=sl,e}function xl(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ze(e[i])}}function nc(t){for(var e=t.parent;e!==null;){if(!(e.f&Ke))return e.f&$t?null:e;e=e.parent}return null}function Vr(t){var e,i=xe;Rt(nc(t));try{t.f&=~ga,xl(t),e=Gl(t)}finally{Rt(i)}return e}function _l(t){var e=Vr(t);if(t.equals(e)||(me!=null&&me.is_fork||(t.v=e),t.wv=Ul()),!Ai)if(Re!==null)(wa()||me!=null&&me.is_fork)&&Re.set(t,e);else{var i=t.f&wt?Xe:Xt;$e(t,i)}}let Ur=new Set;const pi=new Map;let kl=!1;function Dt(t,e){var i={f:0,v:t,reactions:null,equals:ll,rv:0,wv:0};return i}function G(t,e){const i=Dt(t);return Fl(i),i}function Wr(t,e=!1,i=!0){var r;const a=Dt(t);return e||(a.equals=sl),Ki&&i&&Se!==null&&Se.l!==null&&((r=Se.l).s??(r.s=[])).push(a),a}function O(t,e,i=!1){ye!==null&&(!Nt||ye.f&$n)&&Ti()&&ye.f&(Ke|It|qr|$n)&&!(tt!=null&&tt.includes(t))&&Cs();let a=i?Le(e):e;return ti(t,a)}function ti(t,e){if(!t.equals(e)){var i=t.v;Ai?pi.set(t,e):pi.set(t,i),t.v=e;var a=Lt.ensure();a.capture(t,i),t.f&Ke&&(t.f&nt&&Vr(t),$e(t,t.f&wt?Xe:Xt)),t.wv=Ul(),Sl(t,nt),Ti()&&xe!==null&&xe.f&Xe&&!(xe.f&(Qt|Ei))&&(ht===null?wc([t]):ht.push(t)),!a.is_fork&&Ur.size>0&&!kl&&lc()}return e}function lc(){kl=!1;var t=hi;Ja(!0);const e=Array.from(Ur);try{for(const i of e)i.f&Xe&&$e(i,Xt),ka(i)&&Sa(i)}finally{Ja(t)}Ur.clear()}function vi(t){O(t,t.v+1)}function Sl(t,e){var i=t.reactions;if(i!==null)for(var a=Ti(),r=i.length,n=0;n<r;n++){var l=i[n],c=l.f;if(!(!a&&l===xe)){var s=(c&nt)===0;if(s&&$e(l,e),c&Ke){var d=l;Re==null||Re.delete(d),c&ga||(c&wt&&(l.f|=ga),Sl(d,Xt))}else s&&(c&It&&xt!==null&&xt.add(l),Ci(l))}}}function Le(t){if(typeof t!="object"||t===null||At in t)return t;const e=Ar(t);if(e!==hs&&e!==gs)return t;var i=new Map,a=qe(t),r=G(0),n=ii,l=c=>{if(ii===n)return c();var s=ye,d=ii;ot(null),Vl(n);var u=c();return ot(s),Vl(d),u};return a&&i.set("length",G(t.length)),new Proxy(t,{defineProperty(c,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Ts();var u=i.get(s);return u===void 0?u=l(()=>{var p=G(d.value);return i.set(s,p),p}):O(u,d.value,!0),!0},deleteProperty(c,s){var d=i.get(s);if(d===void 0){if(s in c){const u=l(()=>G(Ue));i.set(s,u),vi(r)}}else O(d,Ue),vi(r);return!0},get(c,s,d){var h;if(s===At)return t;var u=i.get(s),p=s in c;if(u===void 0&&(!p||(h=di(c,s))!=null&&h.writable)&&(u=l(()=>{var g=Le(p?c[s]:Ue),y=G(g);return y}),i.set(s,u)),u!==void 0){var f=o(u);return f===Ue?void 0:f}return Reflect.get(c,s,d)},getOwnPropertyDescriptor(c,s){var d=Reflect.getOwnPropertyDescriptor(c,s);if(d&&"value"in d){var u=i.get(s);u&&(d.value=o(u))}else if(d===void 0){var p=i.get(s),f=p==null?void 0:p.v;if(p!==void 0&&f!==Ue)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return d},has(c,s){var f;if(s===At)return!0;var d=i.get(s),u=d!==void 0&&d.v!==Ue||Reflect.has(c,s);if(d!==void 0||xe!==null&&(!u||(f=di(c,s))!=null&&f.writable)){d===void 0&&(d=l(()=>{var h=u?Le(c[s]):Ue,g=G(h);return g}),i.set(s,d));var p=o(d);if(p===Ue)return!1}return u},set(c,s,d,u){var x;var p=i.get(s),f=s in c;if(a&&s==="length")for(var h=d;h<p.v;h+=1){var g=i.get(h+"");g!==void 0?O(g,Ue):h in c&&(g=l(()=>G(Ue)),i.set(h+"",g))}if(p===void 0)(!f||(x=di(c,s))!=null&&x.writable)&&(p=l(()=>G(void 0)),O(p,Le(d)),i.set(s,p));else{f=p.v!==Ue;var y=l(()=>Le(d));O(p,y)}var w=Reflect.getOwnPropertyDescriptor(c,s);if(w!=null&&w.set&&w.set.call(u,d),!f){if(a&&typeof s=="string"){var m=i.get("length"),_=Number(s);Number.isInteger(_)&&_>=m.v&&O(m,_+1)}vi(r)}return!0},ownKeys(c){o(r);var s=Reflect.ownKeys(c).filter(p=>{var f=i.get(p);return f===void 0||f.v!==Ue});for(var[d,u]of i)u.v!==Ue&&!(d in c)&&s.push(d);return s},setPrototypeOf(){Ps()}})}function El(t){try{if(t!==null&&typeof t=="object"&&At in t)return t[At]}catch{}return t}function oc(t,e){return Object.is(El(t),El(e))}var je,Tl,Pl,Cl;function sc(){if(je===void 0){je=window,Tl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Pl=di(e,"firstChild").get,Cl=di(e,"nextSibling").get,Yn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Yn(i)&&(i.__t=void 0)}}function qt(t=""){return document.createTextNode(t)}function Qi(t){return Pl.call(t)}function ba(t){return Cl.call(t)}function S(t,e){return Qi(t)}function J(t,e=!1){{var i=Qi(t);return i instanceof Comment&&i.data===""?ba(i):i}}function j(t,e=1,i=!1){let a=t;for(;e--;)a=ba(a);return a}function cc(t){t.textContent=""}function zl(){return!1}function dc(t,e){if(e){const i=document.body;t.autofocus=!0,ei(()=>{document.activeElement===i&&t.focus()})}}let Il=!1;function uc(){Il||(Il=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const i of t.target.elements)(e=i.__on_r)==null||e.call(i)})},{capture:!0}))}function pc(t,e,i,a=!0){a&&i();for(var r of e)t.addEventListener(r,i);xa(()=>{for(var n of e)t.removeEventListener(n,i)})}function Ii(t){var e=ye,i=xe;ot(null),Rt(null);try{return t()}finally{ot(e),Rt(i)}}function vc(t,e,i,a=i){t.addEventListener(e,()=>Ii(i));const r=t.__on_r;r?t.__on_r=()=>{r(),a(!0)}:t.__on_r=()=>a(!0),uc()}function jl(t){xe===null&&(ye===null&&ks(),_s()),Ai&&xs()}function fc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function _t(t,e,i){var a=xe;a!==null&&a.f&dt&&(t|=dt);var r={ctx:Se,deps:null,nodes_start:null,nodes_end:null,f:t|nt|wt,first:null,fn:e,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(i)try{Sa(r),r.f|=Wa}catch(c){throw Ze(r),c}else e!==null&&Ci(r);var n=r;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&!(n.f&Wi)&&(n=n.first,t&It&&t&jt&&n!==null&&(n.f|=jt)),n!==null&&(n.parent=a,a!==null&&fc(n,a),ye!==null&&ye.f&Ke&&!(t&Ei))){var l=ye;(l.effects??(l.effects=[])).push(n)}return r}function wa(){return ye!==null&&!Nt}function xa(t){const e=_t(Va,null,!1);return $e(e,Xe),e.teardown=t,e}function Be(t){jl();var e=xe.f,i=!ye&&(e&Qt)!==0&&(e&Wa)===0;if(i){var a=Se;(a.e??(a.e=[])).push(t)}else return Al(t)}function Al(t){return _t(Mr|tl,t,!1)}function hc(t){return jl(),_t(Va|tl,t,!0)}function gc(t){Lt.ensure();const e=_t(Ei|Wi,t,!0);return(i={})=>new Promise(a=>{i.outro?Xi(e,()=>{Ze(e),a(void 0)}):(Ze(e),a(void 0))})}function ji(t){return _t(Mr,t,!1)}function mc(t){return _t(qr|Wi,t,!0)}function Ya(t,e=0){return _t(Va|e,t,!0)}function U(t,e=[],i=[],a=[]){bl(a,e,i,r=>{_t(Va,()=>t(...r.map(o)),!0)})}function fi(t,e=0){var i=_t(It|e,t,!0);return i}function Ll(t,e=0){var i=_t(Xn|e,t,!0);return i}function lt(t){return _t(Qt|Wi,t,!0)}function Ml(t){var e=t.teardown;if(e!==null){const i=Ai,a=ye;Bl(!0),ot(null);try{e.call(null)}finally{Bl(i),ot(a)}}}function Dl(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const r=i.ac;r!==null&&Ii(()=>{r.abort(Gi)});var a=i.next;i.f&Ei?i.parent=null:Ze(i,e),i=a}}function yc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Qt||Ze(e),e=i}}function Ze(t,e=!0){var i=!1;(e||t.f&el)&&t.nodes_start!==null&&t.nodes_end!==null&&(bc(t.nodes_start,t.nodes_end),i=!0),Dl(t,e&&!i),Qa(t,0),$e(t,$t);var a=t.transitions;if(a!==null)for(const n of a)n.stop();Ml(t);var r=t.parent;r!==null&&r.first!==null&&ql(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function bc(t,e){for(;t!==null;){var i=t===e?null:ba(t);t.remove(),t=i}}function ql(t){var e=t.parent,i=t.prev,a=t.next;i!==null&&(i.next=a),a!==null&&(a.prev=i),e!==null&&(e.first===t&&(e.first=a),e.last===t&&(e.last=i))}function Xi(t,e,i=!0){var a=[];Gr(t,a,!0),Nl(a,()=>{i&&Ze(t),e&&e()})}function Nl(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var r of t)r.out(a)}else e()}function Gr(t,e,i){if(!(t.f&dt)){if(t.f^=dt,t.transitions!==null)for(const l of t.transitions)(l.is_global||i)&&e.push(l);for(var a=t.first;a!==null;){var r=a.next,n=(a.f&jt)!==0||(a.f&Qt)!==0&&(t.f&It)!==0;Gr(a,e,n?i:!1),a=r}}}function Kr(t){Rl(t,!0)}function Rl(t,e){if(t.f&dt){t.f^=dt,t.f&Xe||($e(t,nt),Ci(t));for(var i=t.first;i!==null;){var a=i.next,r=(i.f&jt)!==0||(i.f&Qt)!==0;Rl(i,r?e:!1),i=a}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function Ol(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var r=i===a?null:ba(i);e.append(i),i=r}}let hi=!1;function Ja(t){hi=t}let Ai=!1;function Bl(t){Ai=t}let ye=null,Nt=!1;function ot(t){ye=t}let xe=null;function Rt(t){xe=t}let tt=null;function Fl(t){ye!==null&&(tt===null?tt=[t]:tt.push(t))}let it=null,ut=0,ht=null;function wc(t){ht=t}let Hl=1,_a=0,ii=_a;function Vl(t){ii=t}function Ul(){return++Hl}function ka(t){var e=t.f;if(e&nt)return!0;if(e&Ke&&(t.f&=-32769),e&Xt){var i=t.deps;if(i!==null)for(var a=i.length,r=0;r<a;r++){var n=i[r];if(ka(n)&&_l(n),n.wv>t.wv)return!0}e&wt&&Re===null&&$e(t,Xe)}return!1}function Wl(t,e,i=!0){var a=t.reactions;if(a!==null&&!(tt!=null&&tt.includes(t)))for(var r=0;r<a.length;r++){var n=a[r];n.f&Ke?Wl(n,e,!1):e===n&&(i?$e(n,nt):n.f&Xe&&$e(n,Xt),Ci(n))}}function Gl(t){var g;var e=it,i=ut,a=ht,r=ye,n=tt,l=Se,c=Nt,s=ii,d=t.f;it=null,ut=0,ht=null,ye=d&(Qt|Ei)?null:t,tt=null,Zi(t.ctx),Nt=!1,ii=++_a,t.ac!==null&&(Ii(()=>{t.ac.abort(Gi)}),t.ac=null);try{t.f|=Dr;var u=t.fn,p=u(),f=t.deps;if(it!==null){var h;if(Qa(t,ut),f!==null&&ut>0)for(f.length=ut+it.length,h=0;h<it.length;h++)f[ut+h]=it[h];else t.deps=f=it;if(hi&&wa()&&t.f&wt)for(h=ut;h<f.length;h++)((g=f[h]).reactions??(g.reactions=[])).push(t)}else f!==null&&ut<f.length&&(Qa(t,ut),f.length=ut);if(Ti()&&ht!==null&&!Nt&&f!==null&&!(t.f&(Ke|Xt|nt)))for(h=0;h<ht.length;h++)Wl(ht[h],t);return r!==null&&r!==t&&(_a++,ht!==null&&(a===null?a=ht:a.push(...ht))),t.f&ui&&(t.f^=ui),p}catch(y){return ul(y)}finally{t.f^=Dr,it=e,ut=i,ht=a,ye=r,tt=n,Zi(l),Nt=c,ii=s}}function xc(t,e){let i=e.reactions;if(i!==null){var a=Ha.call(i,t);if(a!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[a]=i[r],i.pop())}}i===null&&e.f&Ke&&(it===null||!it.includes(e))&&($e(e,Xt),e.f&wt&&(e.f^=wt,e.f&=-32769),xl(e),Qa(e,0))}function Qa(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)xc(t,i[a])}function Sa(t){var e=t.f;if(!(e&$t)){$e(t,Xe);var i=xe,a=hi;xe=t,hi=!0;try{e&(It|Xn)?yc(t):Dl(t),Ml(t);var r=Gl(t);t.teardown=typeof r=="function"?r:null,t.wv=Hl;var n;Te&&Ks&&t.f&nt&&t.deps}finally{hi=a,xe=i}}}async function Ea(){await Promise.resolve(),pl()}function o(t){var e=t.f,i=(e&Ke)!==0;if(ye!==null&&!Nt){var a=xe!==null&&(xe.f&$t)!==0;if(!a&&!(tt!=null&&tt.includes(t))){var r=ye.deps;if(ye.f&Dr)t.rv<_a&&(t.rv=_a,it===null&&r!==null&&r[ut]===t?ut++:it===null?it=[t]:it.includes(t)||it.push(t));else{(ye.deps??(ye.deps=[])).push(t);var n=t.reactions;n===null?t.reactions=[ye]:n.includes(ye)||n.push(ye)}}}if(Ai){if(pi.has(t))return pi.get(t);if(i){var l=t,c=l.v;return(!(l.f&Xe)&&l.reactions!==null||Zl(l))&&(c=Vr(l)),pi.set(l,c),c}}else i&&(!(Re!=null&&Re.has(t))||me!=null&&me.is_fork&&!wa())&&(l=t,ka(l)&&_l(l),hi&&wa()&&!(l.f&wt)&&Kl(l));if(Re!=null&&Re.has(t))return Re.get(t);if(t.f&ui)throw t.v;return t.v}function Kl(t){if(t.deps!==null){t.f^=wt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Ke&&!(e.f&wt)&&Kl(e)}}function Zl(t){if(t.v===Ue)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(pi.has(e)||e.f&Ke&&Zl(e))return!0;return!1}function Ot(t){var e=Nt;try{return Nt=!0,t()}finally{Nt=e}}const _c=-7169;function $e(t,e){t.f=t.f&_c|e}function Yl(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(At in t)Zr(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&At in i&&Zr(i)}}}function Zr(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let a in t)try{Zr(t[a],e)}catch{}const i=Ar(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=Zn(i);for(let r in a){const n=a[r].get;if(n)try{n.call(t)}catch{}}}}}function kc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Sc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ec(t){return Sc.includes(t)}const Tc={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Pc(t){return t=t.toLowerCase(),Tc[t]??t}const Cc=["touchstart","touchmove"];function zc(t){return Cc.includes(t)}const Jl=new Set,Yr=new Set;function Jr(t,e,i,a={}){function r(n){if(a.capture||Ta.call(e,n),!n.cancelBubble)return Ii(()=>i==null?void 0:i.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?ei(()=>{e.addEventListener(t,r,a)}):e.addEventListener(t,r,a),r}function Ic(t,e,i,a={}){var r=Jr(e,t,i,a);return()=>{t.removeEventListener(e,r,a)}}function _e(t,e,i,a,r){var n={capture:a,passive:r},l=Jr(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&xa(()=>{e.removeEventListener(t,l,n)})}function pe(t){for(var e=0;e<t.length;e++)Jl.add(t[e]);for(var i of Yr)i(t)}let Ql=null;function Ta(t){var w;var e=this,i=e.ownerDocument,a=t.type,r=((w=t.composedPath)==null?void 0:w.call(t))||[],n=r[0]||t.target;Ql=t;var l=0,c=Ql===t&&t.__root;if(c){var s=r.indexOf(c);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var d=r.indexOf(e);if(d===-1)return;s<=d&&(l=s)}if(n=r[l]||t.target,n!==e){fs(t,"currentTarget",{configurable:!0,get(){return n||i}});var u=ye,p=xe;ot(null),Rt(null);try{for(var f,h=[];n!==null;){var g=n.assignedSlot||n.parentNode||n.host||null;try{var y=n["__"+a];y!=null&&(!n.disabled||t.target===n)&&y.call(n,t)}catch(m){f?h.push(m):f=m}if(t.cancelBubble||g===e||g===null)break;n=g}if(f){for(let m of h)queueMicrotask(()=>{throw m});throw f}}finally{t.__root=e,delete t.currentTarget,ot(u),Rt(p)}}}function Xl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function $i(t,e){var i=xe;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function C(t,e){var i=(e&Bs)!==0,a=(e&Fs)!==0,r,n=!t.startsWith("<!>");return()=>{r===void 0&&(r=Xl(n?t:"<!>"+t),i||(r=Qi(r)));var l=a||Tl?document.importNode(r,!0):r.cloneNode(!0);if(i){var c=Qi(l),s=l.lastChild;$i(c,s)}else $i(l,l);return l}}function jc(t,e,i="svg"){var a=!t.startsWith("<!>"),r=`<${i}>${a?t:"<!>"+t}</${i}>`,n;return()=>{if(!n){var l=Xl(r),c=Qi(l);n=Qi(c)}var s=n.cloneNode(!0);return $i(s,s),s}}function Ye(t,e){return jc(t,e,"svg")}function kt(t=""){{var e=qt(t+"");return $i(e,e),e}}function ve(){var t=document.createDocumentFragment(),e=document.createComment(""),i=qt();return t.append(e,i),$i(e,i),t}function b(t,e){t!==null&&t.before(e)}let Xa=!0;function $a(t){Xa=t}function Y(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function Bt(t,e){return Ac(t,e)}const ea=new Map;function Ac(t,{target:e,anchor:i,props:a={},events:r,context:n,intro:l=!0}){sc();var c=new Set,s=p=>{for(var f=0;f<p.length;f++){var h=p[f];if(!c.has(h)){c.add(h);var g=zc(h);e.addEventListener(h,Ta,{passive:g});var y=ea.get(h);y===void 0?(document.addEventListener(h,Ta,{passive:g}),ea.set(h,1)):ea.set(h,y+1)}}};s(jr(Jl)),Yr.add(s);var d=void 0,u=gc(()=>{var p=i??e.appendChild(qt());return $s(p,{pending:()=>{}},f=>{if(n){te({});var h=Se;h.c=n}r&&(a.$$events=r),Xa=l,d=t(f,a)||{},Xa=!0,n&&ie()}),()=>{var g;for(var f of c){e.removeEventListener(f,Ta);var h=ea.get(f);--h===0?(document.removeEventListener(f,Ta),ea.delete(f)):ea.set(f,h)}Yr.delete(s),p!==i&&((g=p.parentNode)==null||g.removeChild(p))}});return Qr.set(d,u),d}let Qr=new WeakMap;function ta(t,e){const i=Qr.get(t);return i?(Qr.delete(t),i(e)):Promise.resolve()}class ia{constructor(e,i=!0){zt(this,"anchor");ue(this,Tt,new Map);ue(this,Kt,new Map);ue(this,pt,new Map);ue(this,Fi,new Set);ue(this,Na,!0);ue(this,Ra,()=>{var e=me;if(D(this,Tt).has(e)){var i=D(this,Tt).get(e),a=D(this,Kt).get(i);if(a)Kr(a),D(this,Fi).delete(i);else{var r=D(this,pt).get(i);r&&(D(this,Kt).set(i,r.effect),D(this,pt).delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),a=r.effect)}for(const[n,l]of D(this,Tt)){if(D(this,Tt).delete(n),n===e)break;const c=D(this,pt).get(l);c&&(Ze(c.effect),D(this,pt).delete(l))}for(const[n,l]of D(this,Kt)){if(n===i||D(this,Fi).has(n))continue;const c=()=>{if(Array.from(D(this,Tt).values()).includes(n)){var d=document.createDocumentFragment();Ol(l,d),d.append(qt()),D(this,pt).set(n,{effect:l,fragment:d})}else Ze(l);D(this,Fi).delete(n),D(this,Kt).delete(n)};D(this,Na)||!a?(D(this,Fi).add(n),Xi(l,c,!1)):c()}}});ue(this,Sr,e=>{D(this,Tt).delete(e);const i=Array.from(D(this,Tt).values());for(const[a,r]of D(this,pt))i.includes(a)||(Ze(r.effect),D(this,pt).delete(a))});this.anchor=e,ce(this,Na,i)}ensure(e,i){var a=me,r=zl();if(i&&!D(this,Kt).has(e)&&!D(this,pt).has(e))if(r){var n=document.createDocumentFragment(),l=qt();n.append(l),D(this,pt).set(e,{effect:lt(()=>i(l)),fragment:n})}else D(this,Kt).set(e,lt(()=>i(this.anchor)));if(D(this,Tt).set(a,e),r){for(const[c,s]of D(this,Kt))c===e?a.skipped_effects.delete(s):a.skipped_effects.add(s);for(const[c,s]of D(this,pt))c===e?a.skipped_effects.delete(s.effect):a.skipped_effects.add(s.effect);a.oncommit(D(this,Ra)),a.ondiscard(D(this,Sr))}else D(this,Ra).call(this)}}Tt=new WeakMap,Kt=new WeakMap,pt=new WeakMap,Fi=new WeakMap,Na=new WeakMap,Ra=new WeakMap,Sr=new WeakMap;const Lc=0,Xr=1;function Pa(t,e,i,a,r){var n=Ti(),l=Ue,c=n?Dt(l):Wr(l,!1,!1),s=n?Dt(l):Wr(l,!1,!1),d=new ia(t);fi(()=>{var u=e(),p=!1;if(ms(u)){var f=wl(),h=!1;const g=y=>{if(!p){h=!0,f(!1),Lt.ensure();try{y()}finally{ma(),Ji||pl()}}};u.then(y=>{g(()=>{ti(c,y),d.ensure(Xr,a&&(w=>a(w,c)))})},y=>{g(()=>{if(ti(s,y),d.ensure(Xr,r&&(w=>r(w,s))),!r)throw s.v})}),ei(()=>{h||g(()=>{d.ensure(Lc,i)})})}else ti(c,u),d.ensure(Xr,a&&(g=>a(g,c)));return()=>{p=!0}})}function V(t,e,i=!1){var a=new ia(t),r=i?jt:0;function n(l,c){a.ensure(l,c)}fi(()=>{var l=!1;e((c,s=!0)=>{l=!0,n(s,c)}),l||n(!1,null)},r)}function Ca(t,e,i){var a=new ia(t),r=!Ti();fi(()=>{var n=e();r&&n!==null&&typeof n=="object"&&(n={}),a.ensure(n,i)})}function Oe(t,e,...i){var a=new ia(t);fi(()=>{const r=e()??null;a.ensure(r,r&&(n=>r(n,...i)))},jt)}function $r(t,e,i){var a=new ia(t);fi(()=>{var r=e()??null;a.ensure(r,r&&(n=>i(n,r)))},jt)}function $l(t,e,i,a,r,n){var l=null,c=t,s=zi,d=new ia(c,!1);fi(()=>{const u=e()||null;var p=u==="svg"?Vs:null;if(u===null){d.ensure(null,null),$a(!0);return}return d.ensure(u,f=>{var h=zi;if(yl(s),u){if(l=p?document.createElementNS(p,u):document.createElement(u),$i(l,l),a){var g=l.appendChild(qt());a(l,g)}xe.nodes_end=l,f.before(l)}yl(h)}),$a(!0),()=>{u&&$a(!1)}},jt),xa(()=>{$a(!0)})}function Ft(t,e,i){ji(()=>{var a=Ot(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var r=!1,n={};Ya(()=>{var l=i();Yl(l),r&&ol(n,l)&&(n=l,a.update(l))}),r=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function er(t,e){var i=void 0,a;Ll(()=>{i!==(i=e())&&(a&&(Ze(a),a=null),i&&(a=lt(()=>{ji(()=>i(t))})))})}function eo(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=eo(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Mc(){for(var t,e,i=0,a="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=eo(t))&&(a&&(a+=" "),a+=e);return a}function Dc(t){return typeof t=="object"?Mc(t):t??""}const to=[...`
3
3
  \r\f \v\uFEFF`];function qc(t,e,i){var a=t==null?"":""+t;if(e&&(a=a?a+" "+e:e),i){for(var r in i)if(i[r])a=a?a+" "+r:r;else if(a.length)for(var n=r.length,l=0;(l=a.indexOf(r,l))>=0;){var c=l+n;(l===0||to.includes(a[l-1]))&&(c===a.length||to.includes(a[c]))?a=(l===0?"":a.substring(0,l))+a.substring(c+1):l=c}}return a===""?null:a}function io(t,e=!1){var i=e?" !important;":";",a="";for(var r in t){var n=t[r];n!=null&&n!==""&&(a+=" "+r+": "+n+i)}return a}function en(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Nc(t,e){if(e){var i="",a,r;if(Array.isArray(e)?(a=e[0],r=e[1]):a=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,l=0,c=!1,s=[];a&&s.push(...Object.keys(a).map(en)),r&&s.push(...Object.keys(r).map(en));var d=0,u=-1;const y=t.length;for(var p=0;p<y;p++){var f=t[p];if(c?f==="/"&&t[p-1]==="*"&&(c=!1):n?n===f&&(n=!1):f==="/"&&t[p+1]==="*"?c=!0:f==='"'||f==="'"?n=f:f==="("?l++:f===")"&&l--,!c&&n===!1&&l===0){if(f===":"&&u===-1)u=p;else if(f===";"||p===y-1){if(u!==-1){var h=en(t.substring(d,u).trim());if(!s.includes(h)){f!==";"&&p++;var g=t.substring(d,p).trim();i+=" "+g+";"}}d=p+1,u=-1}}}}return a&&(i+=io(a)),r&&(i+=io(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function we(t,e,i,a,r,n){var l=t.__className;if(l!==i||l===void 0){var c=qc(i,a,n);c==null?t.removeAttribute("class"):e?t.className=c:t.setAttribute("class",c),t.__className=i}else if(n&&r!==n)for(var s in n){var d=!!n[s];(r==null||d!==!!r[s])&&t.classList.toggle(s,d)}return n}function tn(t,e={},i,a){for(var r in i){var n=i[r];e[r]!==n&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,n,a))}}function Fe(t,e,i,a){var r=t.__style;if(r!==e){var n=Nc(e,a);n==null?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else a&&(Array.isArray(a)?(tn(t,i==null?void 0:i[0],a[0]),tn(t,i==null?void 0:i[1],a[1],"important")):tn(t,i,a));return a}function an(t,e,i=!1){if(t.multiple){if(e==null)return;if(!qe(e))return Ws();for(var a of t.options)a.selected=e.includes(ao(a));return}for(a of t.options){var r=ao(a);if(oc(r,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Rc(t){var e=new MutationObserver(()=>{an(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),xa(()=>{e.disconnect()})}function ao(t){return"__value"in t?t.__value:t.value}const aa=Symbol("class"),ra=Symbol("style"),ro=Symbol("is custom element"),no=Symbol("is html");function Oc(t,e){var i=rn(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function lo(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ae(t,e,i,a){var r=rn(t);r[e]!==(r[e]=i)&&(e==="loading"&&(t[bs]=i),i==null?t.removeAttribute(e):typeof i!="string"&&co(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Bc(t,e,i,a,r=!1,n=!1){var l=rn(t),c=l[ro],s=!l[no],d=e||{},u=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Dc(i.class):(a||i[aa])&&(i.class=null),i[ra]&&(i.style??(i.style=null));var f=co(t);for(const x in i){let E=i[x];if(u&&x==="value"&&E==null){t.value=t.__value="",d[x]=E;continue}if(x==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";we(t,h,E,a,e==null?void 0:e[aa],i[aa]),d[x]=E,d[aa]=i[aa];continue}if(x==="style"){Fe(t,E,e==null?void 0:e[ra],i[ra]),d[x]=E,d[ra]=i[ra];continue}var g=d[x];if(!(E===g&&!(E===void 0&&t.hasAttribute(x)))){d[x]=E;var y=x[0]+x[1];if(y!=="$$")if(y==="on"){const z={},P="$$"+x;let T=x.slice(2);var w=Ec(T);if(kc(T)&&(T=T.slice(0,-7),z.capture=!0),!w&&g){if(E!=null)continue;t.removeEventListener(T,d[P],z),d[P]=null}if(E!=null)if(w)t[`__${T}`]=E,pe([T]);else{let R=function(A){d[x].call(this,A)};d[P]=Jr(T,t,R,z)}else w&&(t[`__${T}`]=void 0)}else if(x==="style")ae(t,x,E);else if(x==="autofocus")dc(t,!!E);else if(!c&&(x==="__value"||x==="value"&&E!=null))t.value=t.__value=E;else if(x==="selected"&&u)lo(t,E);else{var m=x;s||(m=Pc(m));var _=m==="defaultValue"||m==="defaultChecked";if(E==null&&!c&&!_)if(l[x]=null,m==="value"||m==="checked"){let z=t;const P=e===void 0;if(m==="value"){let T=z.defaultValue;z.removeAttribute(m),z.defaultValue=T,z.value=z.__value=P?T:null}else{let T=z.defaultChecked;z.removeAttribute(m),z.defaultChecked=T,z.checked=P?T:!1}}else t.removeAttribute(x);else _||f.includes(m)&&(c||typeof E!="string")?(t[m]=E,m in l&&(l[m]=Ue)):typeof E!="function"&&ae(t,m,E)}}}return d}function oo(t,e,i=[],a=[],r=[],n,l=!1,c=!1){bl(r,i,a,s=>{var d=void 0,u={},p=t.nodeName==="SELECT",f=!1;if(Ll(()=>{var g=e(...s.map(o)),y=Bc(t,d,g,n,l,c);f&&p&&"value"in g&&an(t,g.value);for(let m of Object.getOwnPropertySymbols(u))g[m]||Ze(u[m]);for(let m of Object.getOwnPropertySymbols(g)){var w=g[m];m.description===Us&&(!d||w!==d[m])&&(u[m]&&Ze(u[m]),u[m]=lt(()=>er(t,()=>w))),y[m]=w}d=y}),p){var h=t;ji(()=>{an(h,d.value,!0),Rc(h)})}f=!0})}function rn(t){return t.__attributes??(t.__attributes={[ro]:t.nodeName.includes("-"),[no]:t.namespaceURI===Hs})}var so=new Map;function co(t){var e=t.getAttribute("is")||t.nodeName,i=so.get(e);if(i)return i;so.set(e,i=[]);for(var a,r=t,n=Element.prototype;n!==r;){a=Zn(r);for(var l in a)a[l].set&&i.push(l);r=Ar(r)}return i}const Fc=()=>performance.now(),ai={tick:t=>requestAnimationFrame(t),now:()=>Fc(),tasks:new Set};function uo(){const t=ai.now();ai.tasks.forEach(e=>{e.c(t)||(ai.tasks.delete(e),e.f())}),ai.tasks.size!==0&&ai.tick(uo)}function Hc(t){let e;return ai.tasks.size===0&&ai.tick(uo),{promise:new Promise(i=>{ai.tasks.add(e={c:t,f:i})}),abort(){ai.tasks.delete(e)}}}function tr(t,e){Ii(()=>{t.dispatchEvent(new CustomEvent(e))})}function Vc(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function po(t){const e={},i=t.split(";");for(const a of i){const[r,n]=a.split(":");if(!r||n===void 0)break;const l=Vc(r.trim());e[l]=n.trim()}return e}const Uc=t=>t;function Wc(t,e,i){var a=zi,r,n,l,c=null;a.a??(a.a={element:t,measure(){r=this.element.getBoundingClientRect()},apply(){if(l==null||l.abort(),n=this.element.getBoundingClientRect(),r.left!==n.left||r.right!==n.right||r.top!==n.top||r.bottom!==n.bottom){const s=e()(this.element,{from:r,to:n},i==null?void 0:i());l=ir(this.element,s,void 0,1,()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:s,width:d,height:u}=getComputedStyle(t);if(s!=="absolute"&&s!=="fixed"){var p=t.style;c={position:p.position,width:p.width,height:p.height,transform:p.transform},p.position="absolute",p.width=d,p.height=u;var f=t.getBoundingClientRect();if(r.left!==f.left||r.top!==f.top){var h=`translate(${r.left-f.left}px, ${r.top-f.top}px)`;p.transform=p.transform?`${p.transform} ${h}`:h}}}},unfix(){if(c){var s=t.style;s.position=c.position,s.width=c.width,s.height=c.height,s.transform=c.transform}}}),a.a.element=t}function Me(t,e,i,a){var r=(t&Ns)!==0,n=(t&Rs)!==0,l=r&&n,c=(t&Os)!==0,s=l?"both":r?"in":"out",d,u=e.inert,p=e.style.overflow,f,h;function g(){return Ii(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:s})))}var y={is_global:c,in(){var x;if(e.inert=u,!r){h==null||h.abort(),(x=h==null?void 0:h.reset)==null||x.call(h);return}n||f==null||f.abort(),tr(e,"introstart"),f=ir(e,g(),h,1,()=>{tr(e,"introend"),f==null||f.abort(),f=d=void 0,e.style.overflow=p})},out(x){if(!n){x==null||x(),d=void 0;return}e.inert=!0,tr(e,"outrostart"),h=ir(e,g(),f,0,()=>{tr(e,"outroend"),x==null||x()})},stop:()=>{f==null||f.abort(),h==null||h.abort()}},w=xe;if((w.transitions??(w.transitions=[])).push(y),r&&Xa){var m=c;if(!m){for(var _=w.parent;_&&_.f&jt;)for(;(_=_.parent)&&!(_.f&It););m=!_||(_.f&Wa)!==0}m&&ji(()=>{Ot(()=>y.in())})}}function ir(t,e,i,a,r){var n=a===1;if(Vi(e)){var l,c=!1;return ei(()=>{if(!c){var w=e({direction:n?"in":"out"});l=ir(t,w,i,a,r)}}),{abort:()=>{c=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:vt,deactivate:vt,reset:vt,t:()=>a};const{delay:s=0,css:d,tick:u,easing:p=Uc}=e;var f=[];if(n&&i===void 0&&(u&&u(0,1),d)){var h=po(d(0,1));f.push(h,h)}var g=()=>1-a,y=t.animate(f,{duration:s,fill:"forwards"});return y.onfinish=()=>{y.cancel();var w=(i==null?void 0:i.t())??1-a;i==null||i.abort();var m=a-w,_=e.duration*Math.abs(m),x=[];if(_>0){var E=!1;if(d)for(var z=Math.ceil(_/16.666666666666668),P=0;P<=z;P+=1){var T=w+m*p(P/z),R=po(d(T,1-T));x.push(R),E||(E=R.overflow==="hidden")}E&&(t.style.overflow="hidden"),g=()=>{var A=y.currentTime;return w+m*p(A/_)},u&&Hc(()=>{if(y.playState!=="running")return!1;var A=g();return u(A,1-A),!0})}y=t.animate(x,{duration:_,fill:"forwards"}),y.onfinish=()=>{g=()=>a,u==null||u(a,1-a),r()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=vt)},deactivate:()=>{r=vt},reset:()=>{a===0&&(u==null||u(1,0))},t:()=>g()}}function za(t,e,i=e){var a=new WeakSet;vc(t,"input",async r=>{var n=r?t.defaultValue:t.value;if(n=nn(t)?ln(n):n,i(n),me!==null&&a.add(me),await Ea(),n!==(n=e())){var l=t.selectionStart,c=t.selectionEnd,s=t.value.length;if(t.value=n??"",c!==null){var d=t.value.length;l===c&&c===s&&d>s?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=l,t.selectionEnd=Math.min(c,d))}}}),Ot(e)==null&&t.value&&(i(nn(t)?ln(t.value):t.value),me!==null&&a.add(me)),Ya(()=>{var r=e();if(t===document.activeElement){var n=Ka??me;if(a.has(n))return}nn(t)&&r===ln(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function nn(t){var e=t.type;return e==="number"||e==="range"}function ln(t){return t===""?null:+t}const Tr=class Tr{constructor(e){ue(this,Er);ue(this,ki,new WeakMap);ue(this,va);ue(this,Oa);ce(this,Oa,e)}observe(e,i){var a=D(this,ki).get(e)||new Set;return a.add(i),D(this,ki).set(e,a),ze(this,Er,us).call(this).observe(e,D(this,Oa)),()=>{var r=D(this,ki).get(e);r.delete(i),r.size===0&&(D(this,ki).delete(e),D(this,va).unobserve(e))}}};ki=new WeakMap,va=new WeakMap,Oa=new WeakMap,Er=new WeakSet,us=function(){return D(this,va)??ce(this,va,new ResizeObserver(e=>{for(var i of e){Tr.entries.set(i.target,i);for(var a of D(this,ki).get(i.target)||[])a(i)}}))},zt(Tr,"entries",new WeakMap);let on=Tr;var Gc=new on({box:"border-box"});function St(t,e,i){var a=Gc.observe(t,()=>i(t[e]));ji(()=>(Ot(()=>i(t[e])),a))}function vo(t,e){return t===e||(t==null?void 0:t[At])===e}function Je(t={},e,i,a){return ji(()=>{var r,n;return Ya(()=>{r=n,n=[],Ot(()=>{t!==i(...n)&&(e(t,...n),r&&vo(i(...r),t)&&e(null,...r))})}),()=>{ei(()=>{n&&vo(i(...n),t)&&e(null,...n)})}}),t}function sn(t,e){pc(window,["resize"],()=>Ii(()=>e(window[t])))}function cn(t=!1){const e=Se,i=e.l.u;if(!i)return;let a=()=>Yl(e.s);if(t){let r=0,n={};const l=ya(()=>{let c=!1;const s=e.s;for(const d in s)s[d]!==n[d]&&(n[d]=s[d],c=!0);return c&&r++,r});a=()=>o(l)}i.b.length&&hc(()=>{fo(e,a),Lr(i.b)}),Be(()=>{const r=Ot(()=>i.m.map(ys));return()=>{for(const n of r)typeof n=="function"&&n()}}),i.a.length&&Be(()=>{fo(e,a),Lr(i.a)})}function fo(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let ar=!1;function Kc(t){var e=ar;try{return ar=!1,[t(),ar]}finally{ar=e}}const Zc={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function ho(t,e,i){return new Proxy({props:t,exclude:e},Zc)}const Yc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Vi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a)return a[e]}},set(t,e,i){let a=t.props.length;for(;a--;){let r=t.props[a];Vi(r)&&(r=r());const n=di(r,e);if(n&&n.set)return n.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Vi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const r=di(a,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===At||e===il)return!1;for(let i of t.props)if(Vi(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Vi(i)&&(i=i()),!!i){for(const a in i)e.includes(a)||e.push(a);for(const a of Object.getOwnPropertySymbols(i))e.includes(a)||e.push(a)}return e}};function dn(...t){return new Proxy({props:t},Yc)}function B(t,e,i,a){var x;var r=!Ki||(i&Ls)!==0,n=(i&Ds)!==0,l=(i&qs)!==0,c=a,s=!0,d=()=>(s&&(s=!1,c=l?Ot(a):a),c),u;if(n){var p=At in t||il in t;u=((x=di(t,e))==null?void 0:x.set)??(p&&e in t?E=>t[e]=E:void 0)}var f,h=!1;n?[f,h]=Kc(()=>t[e]):f=t[e],f===void 0&&a!==void 0&&(f=d(),u&&(r&&Es(),u(f)));var g;if(r?g=()=>{var E=t[e];return E===void 0?d():(s=!0,E)}:g=()=>{var E=t[e];return E!==void 0&&(c=void 0),E===void 0?c:E},r&&!(i&Ms))return g;if(u){var y=t.$$legacy;return function(E,z){return arguments.length>0?((!r||!z||y||h)&&u(z?g():E),E):g()}}var w=!1,m=(i&As?ya:Hr)(()=>(w=!1,g()));n&&o(m);var _=xe;return function(E,z){if(arguments.length>0){const P=z?o(m):r&&n?Le(E):E;return O(m,P),w=!0,c!==void 0&&(c=P),E}return Ai&&w||_.f&$t?m.v:o(m)}}function st(t){Se===null&&Nr(),Ki&&Se.l!==null?Jc(Se).m.push(t):Be(()=>{const e=Ot(t);if(typeof e=="function")return e})}function un(t){Se===null&&Nr(),st(()=>()=>Ot(t))}function Jc(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Qc="5";typeof window<"u"&&((ns=window.__svelte??(window.__svelte={})).v??(ns.v=new Set)).add(Qc);function gi(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Xc="https://www.playpilot.com",$c="https://partner-api.playpilot.tech/1.0",ed="https://img-external.playpilot.tech",td="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Li=600,pn={};async function ri(t,{headers:e={},method:i="GET",body:a=null}={}){const r=!rr()&&i==="GET";if(r&&t in pn)return pn[t];const n=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch($c+t,{method:i,headers:new Headers({...n,...e}),body:a?JSON.stringify(a):null});if(!(l!=null&&l.ok))throw l;const c=await l.text();let s=c;try{c&&(s=JSON.parse(c))}catch{}return r&&(pn[t]=s),s}const go="EncryptedToken",mo="articleReplacementEditToken",id="playpilot-editorial-mode";async function yo({href:t=window.location.href,throwError:e=!1}={}){try{const i=gi();if(!i)throw new Error("No token was provided");const a=bo(t);if(!a)throw new Error("Could not be authenticated");return await ri(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),ad(a),!0}catch(i){if(console.error(i),e)throw i}finally{rd()}return!1}function bo(t=""){var a,r;const e=(a=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:a.editorial_token;if(e)return e;if(t){const n=new URL(t).searchParams.get(mo);if(n)return decodeURI(n)}return((r=("; "+document.cookie).split(`; ${go}=`).pop())==null?void 0:r.split(";")[0])||""}function ad(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=go+"="+t+";"+a+";path=/"}function rr(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(id)==="true"||!!t}function rd(){const t=new URL(window.location.href);t.searchParams.delete(mo),window.history.replaceState({},"",t)}function nd(t){let e=0;for(let i=0;i<t.length;i++){const a=t.charCodeAt(i);e=e*31+a>>>0}return e.toString(16)}function vn(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const v=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Ia(){var a,r;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(v);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(i){if(e.includes(i))return i;const n=e.find(l=>l.toLowerCase().startsWith(i+"-"));if(n)return n}return v.English}function wo(t,e=""){const i=[],a=[t];for(;a.length>0;){const r=a.pop();if(i.includes(r)||e&&r.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(r.tagName)||r.offsetWidth<=1)continue;const n=Array.from(r.childNodes).some(s=>{var d;return s.nodeType===Node.TEXT_NODE&&((d=s.nodeValue)==null?void 0:d.trim())!==""});if(n&&r.tagName==="LI"){const s=r.closest("ul, ol");s&&!i.includes(s)&&i.push(s);continue}const l=r.tagName==="P"&&!!r.textContent;if(n||l){i.push(r);continue}const c=Array.from(r.children);for(let s=c.length-1;s>=0;s--)a.push(c[s])}return i}function fn(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const i=t.replace(/(:)/g,"\\$1"),a=document.querySelector(i);if(a)return a}return document.querySelector("article")||document.querySelector("main")||document.body}function hn(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function gn(t){const e=fn(),i=wo(e,(t==null?void 0:t.exclude_elements_selector)||""),a=hn(i);return{parentElement:e,elements:i,pageText:a}}function xo(){const t=fn();return{content_heading:ld(t),content_modified_time:od(t),content_published_time:sd(t)}}function ld(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function od(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=_o().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?mn(i):null}function sd(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=_o().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?mn(i):null}function mn(t){try{return new Date(t).toISOString()}catch{return null}}function _o(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function Mi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function yn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function cd(t){return!!(t.exclude_urls_pattern&&Mi().match(new RegExp(t.exclude_urls_pattern)))}let bn=null;async function nr(t,{url:e=Mi(),hash:i=nd(t||""),params:a={},method:r="GET"}={}){const n=gi(),l=rr()?await yo():!1,c=Ia();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=xo(),d=await ri(s,{method:"POST",body:a})):d=await ri(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function ko(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;bn&&clearTimeout(bn);const c=async(s,d)=>{let u;try{try{u=await nr(t)}catch(p){throw(p==null?void 0:p.status)===404&&(u=await nr(t,{method:"POST"}),u.ai_enabled&&(u=await nr(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await dd(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=So(u.manual_injections||[]),u.ai_injections=So(u.ai_injections||[]),s(u);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}u&&n(u),bn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function dd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=xo().content_modified_time,a=e.content_modified_time?mn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await nr(t,{params:{run_ai:!0},method:"POST"})}function So(t){return t.map(e=>({...e,key:ud(e.sid)}))}function ud(t){return t+"-"+vn()}function pd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function vd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function fd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function wn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Eo(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function To(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function hd(t,e,i,a){const r=fd(e),n=wn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),u=c.replace(d,i);return l+u}function gd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function mi(t){return wn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function md(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=Po(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=Po(Co(n,2)),s=Co(l,2);return{before:c,after:s}}function Po(t){return t.split("").reverse().join("")}function Co(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function lr(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function yd(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,c=i?t.indexOf(i,l):t.length;if(i&&c===-1)break;const s=t.slice(l,c);a.push({match:s,index:l}),r=i?c+i.length:t.length+1}return a}function bd(t,e,i,a){const n=yd(t,i,a).filter(({match:c})=>wn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function wd(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function xd(t,e,i=0){const a=e.innerHTML,r=[],n=_d(e);let l=a.indexOf(t);for(;l!==-1;)vd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function _d(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!r&&!a&&s==="<"){a=!0,n&&(e.push({start:l,end:c}),n=!1);continue}if(a&&s==='"'&&(r=!r),a&&!r&&s===">"){a=!1;continue}!a&&!r&&!n&&(l=c,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function kd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function zo(t){return t.ctrlKey||t.metaKey||t.button!==0}const le={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Et={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},yi={Card:"tpi_card",Link:"tpi_link"};function Sd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function gt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function or(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const sr=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Ed(t=[]){return t.map(e=>{var i;return((i=sr.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const xn="playpilot_user_id";function Td(){if(!Io())return null;try{const t=localStorage.getItem(xn);return t||(localStorage.setItem(xn,vn(16)),localStorage.getItem(xn))}catch{return null}}function Io(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&gt("tracking")}const Pd="https://insights.playpilot.net";async function oe(t,e=null,i={}){var r,n,l,c,s;if(or())return;if(!gt("tracking")){zd(t,e,i);return}const a=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Ed(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Io()&&(i.user_id=Td(),i.region=window.PlayPilotLinkInjections.region),i.version="8.10.1",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Mi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>Li?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Pd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Cd({event:t,payload:i})}function Cd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function jo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function zd(t,e=null,i={}){var a;(a=window.PlayPilotLinkInjections).queued_tracking_events||(a.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function Id(){if(gt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])oe(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function Ao(){if(!gt("ads"))return[];const t=gi();if(!t)throw new Error("No token was provided");try{return await ri(`/ads/browse/?api-token=${t}`)}catch(e){throw oe(le.AdsFetchFailed,null,{status:e.status}),e}}function ja(t){var e;return!gt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function jd(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function _n(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const c=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(a=c==null?void 0:c.country)==null?void 0:a.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),Ad(s),s}catch(l){return oe(le.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Ad(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function kn(t={}){const e=gi();if(!e)throw new Error("No token was provided");return t={...t,language:Ia(),include_count:"false"},t.region!==null&&(t.region=t.region||await _n()),await ri(`/titles/browse?api-token=${e}&`+yn(t))}async function Ld(t){return(await kn({related_to_sid:t.sid})).results}const Md={"Where To Stream Online":{[v.English]:"Where to stream online",[v.Swedish]:"Var kan man streama online",[v.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[v.English]:"We may earn a commission from purchases made through some of the links below.",[v.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[v.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[v.English]:"An error occurred",[v.Swedish]:"Ett fel inträffade",[v.Danish]:"Der opstod en fejl"},Loading:{[v.English]:"Loading",[v.Swedish]:"Laddar",[v.Danish]:"Indlæser"},"Title Unavailable":{[v.English]:"This title is not currently available to stream.",[v.Swedish]:"Den här titeln går inte att streama just nu.",[v.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[v.English]:"is not currently available to stream.",[v.Swedish]:"går inte att streama just nu.",[v.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[v.English]:"is available to stream on",[v.Swedish]:"finns att streama på",[v.Danish]:"kan streames på"},"Is Available To Stream":{[v.English]:"is available to stream.",[v.Swedish]:"finns att streama.",[v.Danish]:"kan streames."},"View Streaming Options":{[v.English]:"View streaming options",[v.Swedish]:"Se streamingalternativ",[v.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[v.English]:"and",[v.Swedish]:"och",[v.Danish]:"og"},Minutes:{[v.English]:"minutes",[v.Swedish]:"minuter",[v.Danish]:"minutter"},"Type: movie":{[v.English]:"Movie",[v.Swedish]:"Film",[v.Danish]:"Film"},"Type: series":{[v.English]:"Series",[v.Swedish]:"Serie",[v.Danish]:"Serie"},Stream:{[v.English]:"Stream",[v.Swedish]:"Streama",[v.Danish]:"Stream"},Buy:{[v.English]:"Buy",[v.Swedish]:"Köp",[v.Danish]:"Køb"},Rent:{[v.English]:"Rent",[v.Swedish]:"Hyr",[v.Danish]:"Lej"},"Rent Or Buy":{[v.English]:"Rent or Buy",[v.Swedish]:"Hyr/köp",[v.Danish]:"Lej eller køb"},Watch:{[v.English]:"Watch",[v.Swedish]:"Titta nu",[v.Danish]:"Se nu"},"Category: AVOD":{[v.English]:"Stream for free",[v.Swedish]:"Streama gratis",[v.Danish]:"Stream gratis"},"Category: SVOD":{[v.English]:"Streaming services",[v.Swedish]:"Streamingtjänster",[v.Danish]:"Streamingtjenester"},"Category: RENT":{[v.English]:"Rent it",[v.Swedish]:"Hyr den",[v.Danish]:"Lej den"},"Category: BUY":{[v.English]:"Buy it",[v.Swedish]:"Köp den",[v.Danish]:"Køb den"},"Category: Other":{[v.English]:"Other",[v.Swedish]:"Annat",[v.Danish]:"Andet"},Share:{[v.English]:"Share",[v.Swedish]:"Dela",[v.Danish]:"Del"},"Copy URL":{[v.English]:"Copy URL",[v.Swedish]:"Kopiera URL",[v.Danish]:"Kopiér URL"},Email:{[v.English]:"Email",[v.Swedish]:"E-post",[v.Danish]:"E-mail"},"Show More":{[v.English]:"Show more",[v.Swedish]:"Visa mer",[v.Danish]:"Vis mere"},Cast:{[v.English]:"Cast",[v.Swedish]:"Rollista",[v.Danish]:"Skuespillere"},"Similar Titles":{[v.English]:"Similar movies & shows",[v.Swedish]:"Liknande filmer och serier",[v.Danish]:"Lignende film og serier"},"Watch Trailer":{[v.English]:"Watch trailer",[v.Swedish]:"Se trailer",[v.Danish]:"Se trailer"},"Streaming Guide":{[v.English]:"Streaming Guide",[v.Swedish]:"Streaming Guide",[v.Danish]:"Streaming Guide"},"Streaming Guide Description":{[v.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[v.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[v.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[v.English]:"Search movies and shows",[v.Swedish]:"Sök filmer och serier",[v.Danish]:"Søg film og serier"},Services:{[v.English]:"Services",[v.Swedish]:"Tjänster",[v.Danish]:"Tjenester"},Genres:{[v.English]:"Genres",[v.Swedish]:"Genrer",[v.Danish]:"Genrer"},IMDb:{[v.English]:"IMDb",[v.Swedish]:"IMDb",[v.Danish]:"IMDb"},Year:{[v.English]:"Year",[v.Swedish]:"År",[v.Danish]:"År"},Runtime:{[v.English]:"Runtime",[v.Swedish]:"Speltid",[v.Danish]:"Spilletid"},Countries:{[v.English]:"Countries",[v.Swedish]:"Länder",[v.Danish]:"Lande"},"All Filters":{[v.English]:"All filters",[v.Swedish]:"Alla filter",[v.Danish]:"Alle filtre"},"Sort By":{[v.English]:"Sort by",[v.Swedish]:"Sortera efter",[v.Danish]:"Sortér efter"},Popularity:{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},New:{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"Top Rated":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},"-popularity":{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},"-new":{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"-best":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"List: Trending":{[v.English]:"Trending Movies & Shows",[v.Swedish]:"Trendande Titlar",[v.Danish]:"Populære film og serier"},"List: Upcoming":{[v.English]:"Upcoming Releases",[v.Swedish]:"Kommande Premiärer",[v.Danish]:"Mest ventede film"},"List: New":{[v.English]:"New Releases",[v.Swedish]:"Nya Filmer & Serier",[v.Danish]:"Nye film og serier"},"List: Demand":{[v.English]:"Always in Demand",[v.Swedish]:"Tidlösa Favoriter",[v.Danish]:"Tidløse favoritter"},"List: Cinema":{[v.English]:"Coming to Cinemas",[v.Swedish]:"Snart på Bio",[v.Danish]:"Kommende film"},All:{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},Unscripted:{[v.English]:"Unscripted",[v.Swedish]:"Oscripterat",[v.Danish]:"Umanuskriptet"},Independent:{[v.English]:"Independent",[v.Swedish]:"Indie",[v.Danish]:"Indie"},"Game Show":{[v.English]:"Game Show",[v.Swedish]:"Gameshow",[v.Danish]:"Quizshow"},"Film Noir":{[v.English]:"Film Noir",[v.Swedish]:"Film noir",[v.Danish]:"Film noir"},Entertainment:{[v.English]:"Entertainment",[v.Swedish]:"Underhållning",[v.Danish]:"Underholdning"},News:{[v.English]:"News",[v.Swedish]:"Nyheter",[v.Danish]:"Nyheder"},Short:{[v.English]:"Short",[v.Swedish]:"Kortfilm",[v.Danish]:"Kortfilm"},Bollywood:{[v.English]:"Bollywood",[v.Swedish]:"Bollywood",[v.Danish]:"Bollywood"},Concert:{[v.English]:"Concert",[v.Swedish]:"Konsert",[v.Danish]:"Koncert"},Arthouse:{[v.English]:"Arthouse",[v.Swedish]:"Arthouse",[v.Danish]:"Arthouse"},"Alternate Version":{[v.English]:"Alternate Version",[v.Swedish]:"Alternativ version",[v.Danish]:"Alternativ version"},"Reality TV":{[v.English]:"Reality TV",[v.Swedish]:"Reality-TV",[v.Danish]:"Reality-TV"},Culture:{[v.English]:"Culture",[v.Swedish]:"Kultur",[v.Danish]:"Kultur"},Drama:{[v.English]:"Drama",[v.Swedish]:"Drama",[v.Danish]:"Drama"},Crime:{[v.English]:"Crime",[v.Swedish]:"Kriminal",[v.Danish]:"Krimi"},Western:{[v.English]:"Western",[v.Swedish]:"Western",[v.Danish]:"Western"},Thriller:{[v.English]:"Thriller",[v.Swedish]:"Thriller",[v.Danish]:"Thriller"},Animation:{[v.English]:"Animation",[v.Swedish]:"Animerat",[v.Danish]:"Animation"},Mystery:{[v.English]:"Mystery",[v.Swedish]:"Mysterium",[v.Danish]:"Mysterium"},Science:{[v.English]:"Science",[v.Swedish]:"Vetenskap",[v.Danish]:"Videnskab"},Nature:{[v.English]:"Nature",[v.Swedish]:"Natur",[v.Danish]:"Natur"},War:{[v.English]:"War",[v.Swedish]:"Krig",[v.Danish]:"Krig"},"Sci-Fi":{[v.English]:"Sci-Fi",[v.Swedish]:"Sci-fi",[v.Danish]:"Sci-fi"},Documentary:{[v.English]:"Documentary",[v.Swedish]:"Dokumentär",[v.Danish]:"Dokumentar"},"Stand-up":{[v.English]:"Stand-up",[v.Swedish]:"Standup",[v.Danish]:"Stand-up"},"Talk Show":{[v.English]:"Talk Show",[v.Swedish]:"Talkshow",[v.Danish]:"Talkshow"},Fantasy:{[v.English]:"Fantasy",[v.Swedish]:"Fantasy",[v.Danish]:"Fantasy"},History:{[v.English]:"History",[v.Swedish]:"Historia",[v.Danish]:"Historie"},Adventure:{[v.English]:"Adventure",[v.Swedish]:"Äventyr",[v.Danish]:"Eventyr"},Action:{[v.English]:"Action",[v.Swedish]:"Action",[v.Danish]:"Action"},Horror:{[v.English]:"Horror",[v.Swedish]:"Skräck",[v.Danish]:"Gyser"},Comedy:{[v.English]:"Comedy",[v.Swedish]:"Komedi",[v.Danish]:"Komedie"},Biography:{[v.English]:"Biography",[v.Swedish]:"Biografi",[v.Danish]:"Biografi"},Music:{[v.English]:"Music",[v.Swedish]:"Musik",[v.Danish]:"Musik"},Sport:{[v.English]:"Sport",[v.Swedish]:"Sport",[v.Danish]:"Sport"},Romance:{[v.English]:"Romance",[v.Swedish]:"Romantik",[v.Danish]:"Romantik"},Kids:{[v.English]:"Kids",[v.Swedish]:"Barn",[v.Danish]:"Børn"},Lifestyle:{[v.English]:"Lifestyle",[v.Swedish]:"Livsstil",[v.Danish]:"Livsstil"},Musical:{[v.English]:"Musical",[v.Swedish]:"Musikal",[v.Danish]:"Musical"},Anime:{[v.English]:"Anime",[v.Swedish]:"Anime",[v.Danish]:"Anime"},Family:{[v.English]:"Family",[v.Swedish]:"Familj",[v.Danish]:"Familie"}};function re(t,e=Ia()){var i;return((i=Md[t])==null?void 0:i[e])||t}const cr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Dd=t=>t;function Lo(t){const e=t-1;return e*e*e+1}function Mo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ni(t,{delay:e=0,duration:i=400,easing:a=Dd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Aa(t,{delay:e=0,duration:i=400,easing:a=Lo,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,u=s*(1-l),[p,f]=Mo(r),[h,g]=Mo(n);return{delay:e,duration:i,easing:a,css:(y,w)=>`
5
+ `)}function gn(t){const e=fn(),i=wo(e,(t==null?void 0:t.exclude_elements_selector)||""),a=hn(i);return{parentElement:e,elements:i,pageText:a}}function xo(){const t=fn();return{content_heading:ld(t),content_modified_time:od(t),content_published_time:sd(t)}}function ld(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function od(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=_o().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?mn(i):null}function sd(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=_o().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?mn(i):null}function mn(t){try{return new Date(t).toISOString()}catch{return null}}function _o(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(i=>i.textContent.includes("dateModified")||i.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function Mi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function yn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function cd(t){return!!(t.exclude_urls_pattern&&Mi().match(new RegExp(t.exclude_urls_pattern)))}let bn=null;async function nr(t,{url:e=Mi(),hash:i=nd(t||""),params:a={},method:r="GET"}={}){const n=gi(),l=rr()?await yo():!1,c=Ia();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=xo(),d=await ri(s,{method:"POST",body:a})):d=await ri(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function ko(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;bn&&clearTimeout(bn);const c=async(s,d)=>{let u;try{try{u=await nr(t)}catch(p){throw(p==null?void 0:p.status)===404&&(u=await nr(t,{method:"POST"}),u.ai_enabled&&(u=await nr(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await dd(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=So(u.manual_injections||[]),u.ai_injections=So(u.ai_injections||[]),s(u);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}u&&n(u),bn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function dd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=xo().content_modified_time,a=e.content_modified_time?mn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await nr(t,{params:{run_ai:!0},method:"POST"})}function So(t){return t.map(e=>({...e,key:ud(e.sid)}))}function ud(t){return t+"-"+vn()}function pd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function vd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function fd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function wn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Eo(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function To(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function hd(t,e,i,a){const r=fd(e),n=wn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),u=c.replace(d,i);return l+u}function gd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function mi(t){return wn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function md(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=Po(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=Po(Co(n,2)),s=Co(l,2);return{before:c,after:s}}function Po(t){return t.split("").reverse().join("")}function Co(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function lr(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function yd(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,c=i?t.indexOf(i,l):t.length;if(i&&c===-1)break;const s=t.slice(l,c);a.push({match:s,index:l}),r=i?c+i.length:t.length+1}return a}function bd(t,e,i,a){const n=yd(t,i,a).filter(({match:c})=>wn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function wd(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function xd(t,e,i=0){const a=e.innerHTML,r=[],n=_d(e);let l=a.indexOf(t);for(;l!==-1;)vd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function _d(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!r&&!a&&s==="<"){a=!0,n&&(e.push({start:l,end:c}),n=!1);continue}if(a&&s==='"'&&(r=!r),a&&!r&&s===">"){a=!1;continue}!a&&!r&&!n&&(l=c,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function kd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function zo(t){return t.ctrlKey||t.metaKey||t.button!==0}const oe={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Et={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},yi={Card:"tpi_card",Link:"tpi_link"};function Sd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function gt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function or(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const sr=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Ed(t=[]){return t.map(e=>{var i;return((i=sr.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const xn="playpilot_user_id";function Td(){if(!Io())return null;try{const t=localStorage.getItem(xn);return t||(localStorage.setItem(xn,vn(16)),localStorage.getItem(xn))}catch{return null}}function Io(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&gt("tracking")}const Pd="https://insights.playpilot.net";async function se(t,e=null,i={}){var r,n,l,c,s;if(or())return;if(!gt("tracking")){zd(t,e,i);return}const a=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Ed(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Io()&&(i.user_id=Td(),i.region=window.PlayPilotLinkInjections.region),i.version="8.10.3",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Mi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>Li?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Pd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Cd({event:t,payload:i})}function Cd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function jo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function zd(t,e=null,i={}){var a;(a=window.PlayPilotLinkInjections).queued_tracking_events||(a.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function Id(){if(gt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])se(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function Ao(){if(!gt("ads"))return[];const t=gi();if(!t)throw new Error("No token was provided");try{return await ri(`/ads/browse/?api-token=${t}`)}catch(e){throw se(oe.AdsFetchFailed,null,{status:e.status}),e}}function ja(t){var e;return!gt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function jd(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function _n(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const c=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(a=c==null?void 0:c.country)==null?void 0:a.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),Ad(s),s}catch(l){return se(oe.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Ad(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function kn(t={}){const e=gi();if(!e)throw new Error("No token was provided");return t={...t,language:Ia(),include_count:"false"},t.region!==null&&(t.region=t.region||await _n()),await ri(`/titles/browse?api-token=${e}&`+yn(t))}async function Ld(t){return(await kn({related_to_sid:t.sid})).results}const Md={"Where To Stream Online":{[v.English]:"Where to stream online",[v.Swedish]:"Var kan man streama online",[v.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[v.English]:"We may earn a commission from purchases made through some of the links below.",[v.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[v.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[v.English]:"An error occurred",[v.Swedish]:"Ett fel inträffade",[v.Danish]:"Der opstod en fejl"},Loading:{[v.English]:"Loading",[v.Swedish]:"Laddar",[v.Danish]:"Indlæser"},"Title Unavailable":{[v.English]:"This title is not currently available to stream.",[v.Swedish]:"Den här titeln går inte att streama just nu.",[v.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[v.English]:"is not currently available to stream.",[v.Swedish]:"går inte att streama just nu.",[v.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[v.English]:"is available to stream on",[v.Swedish]:"finns att streama på",[v.Danish]:"kan streames på"},"Is Available To Stream":{[v.English]:"is available to stream.",[v.Swedish]:"finns att streama.",[v.Danish]:"kan streames."},"View Streaming Options":{[v.English]:"View streaming options",[v.Swedish]:"Se streamingalternativ",[v.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[v.English]:"and",[v.Swedish]:"och",[v.Danish]:"og"},Minutes:{[v.English]:"minutes",[v.Swedish]:"minuter",[v.Danish]:"minutter"},"Type: movie":{[v.English]:"Movie",[v.Swedish]:"Film",[v.Danish]:"Film"},"Type: series":{[v.English]:"Series",[v.Swedish]:"Serie",[v.Danish]:"Serie"},Stream:{[v.English]:"Stream",[v.Swedish]:"Streama",[v.Danish]:"Stream"},Buy:{[v.English]:"Buy",[v.Swedish]:"Köp",[v.Danish]:"Køb"},Rent:{[v.English]:"Rent",[v.Swedish]:"Hyr",[v.Danish]:"Lej"},"Rent Or Buy":{[v.English]:"Rent or Buy",[v.Swedish]:"Hyr/köp",[v.Danish]:"Lej eller køb"},Watch:{[v.English]:"Watch",[v.Swedish]:"Titta nu",[v.Danish]:"Se nu"},"Category: AVOD":{[v.English]:"Stream for free",[v.Swedish]:"Streama gratis",[v.Danish]:"Stream gratis"},"Category: SVOD":{[v.English]:"Streaming services",[v.Swedish]:"Streamingtjänster",[v.Danish]:"Streamingtjenester"},"Category: RENT":{[v.English]:"Rent it",[v.Swedish]:"Hyr den",[v.Danish]:"Lej den"},"Category: BUY":{[v.English]:"Buy it",[v.Swedish]:"Köp den",[v.Danish]:"Køb den"},"Category: Other":{[v.English]:"Other",[v.Swedish]:"Annat",[v.Danish]:"Andet"},Share:{[v.English]:"Share",[v.Swedish]:"Dela",[v.Danish]:"Del"},"Copy URL":{[v.English]:"Copy URL",[v.Swedish]:"Kopiera URL",[v.Danish]:"Kopiér URL"},Email:{[v.English]:"Email",[v.Swedish]:"E-post",[v.Danish]:"E-mail"},"Show More":{[v.English]:"Show more",[v.Swedish]:"Visa mer",[v.Danish]:"Vis mere"},Cast:{[v.English]:"Cast",[v.Swedish]:"Rollista",[v.Danish]:"Skuespillere"},"Similar Titles":{[v.English]:"Similar movies & shows",[v.Swedish]:"Liknande filmer och serier",[v.Danish]:"Lignende film og serier"},"Watch Trailer":{[v.English]:"Watch trailer",[v.Swedish]:"Se trailer",[v.Danish]:"Se trailer"},"Streaming Guide":{[v.English]:"Streaming Guide",[v.Swedish]:"Streaming Guide",[v.Danish]:"Streaming Guide"},"Streaming Guide Description":{[v.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[v.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[v.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[v.English]:"Search movies and shows",[v.Swedish]:"Sök filmer och serier",[v.Danish]:"Søg film og serier"},Services:{[v.English]:"Services",[v.Swedish]:"Tjänster",[v.Danish]:"Tjenester"},Genres:{[v.English]:"Genres",[v.Swedish]:"Genrer",[v.Danish]:"Genrer"},IMDb:{[v.English]:"IMDb",[v.Swedish]:"IMDb",[v.Danish]:"IMDb"},Year:{[v.English]:"Year",[v.Swedish]:"År",[v.Danish]:"År"},Runtime:{[v.English]:"Runtime",[v.Swedish]:"Speltid",[v.Danish]:"Spilletid"},Countries:{[v.English]:"Countries",[v.Swedish]:"Länder",[v.Danish]:"Lande"},"All Filters":{[v.English]:"All filters",[v.Swedish]:"Alla filter",[v.Danish]:"Alle filtre"},"Sort By":{[v.English]:"Sort by",[v.Swedish]:"Sortera efter",[v.Danish]:"Sortér efter"},Popularity:{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},New:{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"Top Rated":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},"-popularity":{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},"-new":{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"-best":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"List: Trending":{[v.English]:"Trending Movies & Shows",[v.Swedish]:"Trendande Titlar",[v.Danish]:"Populære film og serier"},"List: Upcoming":{[v.English]:"Upcoming Releases",[v.Swedish]:"Kommande Premiärer",[v.Danish]:"Mest ventede film"},"List: New":{[v.English]:"New Releases",[v.Swedish]:"Nya Filmer & Serier",[v.Danish]:"Nye film og serier"},"List: Demand":{[v.English]:"Always in Demand",[v.Swedish]:"Tidlösa Favoriter",[v.Danish]:"Tidløse favoritter"},"List: Cinema":{[v.English]:"Coming to Cinemas",[v.Swedish]:"Snart på Bio",[v.Danish]:"Kommende film"},All:{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},Unscripted:{[v.English]:"Unscripted",[v.Swedish]:"Oscripterat",[v.Danish]:"Umanuskriptet"},Independent:{[v.English]:"Independent",[v.Swedish]:"Indie",[v.Danish]:"Indie"},"Game Show":{[v.English]:"Game Show",[v.Swedish]:"Gameshow",[v.Danish]:"Quizshow"},"Film Noir":{[v.English]:"Film Noir",[v.Swedish]:"Film noir",[v.Danish]:"Film noir"},Entertainment:{[v.English]:"Entertainment",[v.Swedish]:"Underhållning",[v.Danish]:"Underholdning"},News:{[v.English]:"News",[v.Swedish]:"Nyheter",[v.Danish]:"Nyheder"},Short:{[v.English]:"Short",[v.Swedish]:"Kortfilm",[v.Danish]:"Kortfilm"},Bollywood:{[v.English]:"Bollywood",[v.Swedish]:"Bollywood",[v.Danish]:"Bollywood"},Concert:{[v.English]:"Concert",[v.Swedish]:"Konsert",[v.Danish]:"Koncert"},Arthouse:{[v.English]:"Arthouse",[v.Swedish]:"Arthouse",[v.Danish]:"Arthouse"},"Alternate Version":{[v.English]:"Alternate Version",[v.Swedish]:"Alternativ version",[v.Danish]:"Alternativ version"},"Reality TV":{[v.English]:"Reality TV",[v.Swedish]:"Reality-TV",[v.Danish]:"Reality-TV"},Culture:{[v.English]:"Culture",[v.Swedish]:"Kultur",[v.Danish]:"Kultur"},Drama:{[v.English]:"Drama",[v.Swedish]:"Drama",[v.Danish]:"Drama"},Crime:{[v.English]:"Crime",[v.Swedish]:"Kriminal",[v.Danish]:"Krimi"},Western:{[v.English]:"Western",[v.Swedish]:"Western",[v.Danish]:"Western"},Thriller:{[v.English]:"Thriller",[v.Swedish]:"Thriller",[v.Danish]:"Thriller"},Animation:{[v.English]:"Animation",[v.Swedish]:"Animerat",[v.Danish]:"Animation"},Mystery:{[v.English]:"Mystery",[v.Swedish]:"Mysterium",[v.Danish]:"Mysterium"},Science:{[v.English]:"Science",[v.Swedish]:"Vetenskap",[v.Danish]:"Videnskab"},Nature:{[v.English]:"Nature",[v.Swedish]:"Natur",[v.Danish]:"Natur"},War:{[v.English]:"War",[v.Swedish]:"Krig",[v.Danish]:"Krig"},"Sci-Fi":{[v.English]:"Sci-Fi",[v.Swedish]:"Sci-fi",[v.Danish]:"Sci-fi"},Documentary:{[v.English]:"Documentary",[v.Swedish]:"Dokumentär",[v.Danish]:"Dokumentar"},"Stand-up":{[v.English]:"Stand-up",[v.Swedish]:"Standup",[v.Danish]:"Stand-up"},"Talk Show":{[v.English]:"Talk Show",[v.Swedish]:"Talkshow",[v.Danish]:"Talkshow"},Fantasy:{[v.English]:"Fantasy",[v.Swedish]:"Fantasy",[v.Danish]:"Fantasy"},History:{[v.English]:"History",[v.Swedish]:"Historia",[v.Danish]:"Historie"},Adventure:{[v.English]:"Adventure",[v.Swedish]:"Äventyr",[v.Danish]:"Eventyr"},Action:{[v.English]:"Action",[v.Swedish]:"Action",[v.Danish]:"Action"},Horror:{[v.English]:"Horror",[v.Swedish]:"Skräck",[v.Danish]:"Gyser"},Comedy:{[v.English]:"Comedy",[v.Swedish]:"Komedi",[v.Danish]:"Komedie"},Biography:{[v.English]:"Biography",[v.Swedish]:"Biografi",[v.Danish]:"Biografi"},Music:{[v.English]:"Music",[v.Swedish]:"Musik",[v.Danish]:"Musik"},Sport:{[v.English]:"Sport",[v.Swedish]:"Sport",[v.Danish]:"Sport"},Romance:{[v.English]:"Romance",[v.Swedish]:"Romantik",[v.Danish]:"Romantik"},Kids:{[v.English]:"Kids",[v.Swedish]:"Barn",[v.Danish]:"Børn"},Lifestyle:{[v.English]:"Lifestyle",[v.Swedish]:"Livsstil",[v.Danish]:"Livsstil"},Musical:{[v.English]:"Musical",[v.Swedish]:"Musikal",[v.Danish]:"Musical"},Anime:{[v.English]:"Anime",[v.Swedish]:"Anime",[v.Danish]:"Anime"},Family:{[v.English]:"Family",[v.Swedish]:"Familj",[v.Danish]:"Familie"}};function re(t,e=Ia()){var i;return((i=Md[t])==null?void 0:i[e])||t}const cr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Dd=t=>t;function Lo(t){const e=t-1;return e*e*e+1}function Mo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ni(t,{delay:e=0,duration:i=400,easing:a=Dd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Aa(t,{delay:e=0,duration:i=400,easing:a=Lo,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,u=s*(1-l),[p,f]=Mo(r),[h,g]=Mo(n);return{delay:e,duration:i,easing:a,css:(y,w)=>`
6
6
  transform: ${d} translate(${(1-y)*p}${f}, ${(1-y)*h}${g});
7
7
  opacity: ${s-u*w}`}}function na(t,{delay:e=0,duration:i=400,easing:a=Lo,start:r=0,opacity:n=0}={}){const l=getComputedStyle(t),c=+l.opacity,s=l.transform==="none"?"":l.transform,d=1-r,u=c*(1-n);return{delay:e,duration:i,easing:a,css:(p,f)=>`
8
8
  transform: ${s} scale(${1-d*f});
9
9
  opacity: ${c-u*f}
10
- `}}function dr(t){return t?t.replace("/src/img",""):null}function Do(t,e=null){return t!=null&&t.length?`${ed}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var qd=C('<img class="svelte-p6g2a"/>');function ur(t,e){te(e,!0);const i=B(e,"width",3,96),a=B(e,"height",3,144),r=B(e,"lazy",3,!0),n=B(e,"onload",3,()=>null);var l=qd();U(c=>{ae(l,"src",c),ae(l,"alt",`Movie poster for '${e.title.title??""}'`),ae(l,"width",i()),ae(l,"height",a()),ae(l,"loading",r()?"lazy":null)},[()=>dr(e.title.standing_poster)]),_e("error",l,({target:c})=>c.src=td),_e("load",l,function(...c){var s;(s=n())==null||s.apply(this,c)}),b(t,l),ie()}var Nd=Ye('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function pr(t,e){const i=B(e,"size",3,16);var a=Nd();U(()=>{ae(a,"width",i()),ae(a,"height",i())}),b(t,a)}var Rd=C('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function Od(t,e){const i=B(e,"embeddable_url",3,"");var a=Rd(),r=S(a);En(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=j(r,2);n.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var l=j(n,2);l.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var c=S(l);pr(c,{size:24}),Me(3,a,()=>ni,()=>({duration:100})),b(t,a)}pe(["click"]);const Bd="1304688689641511",Fd="https://endpoint-youtube-availability.playpilot.workers.dev";async function qo(t){var i,a,r,n;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const l=await fetch(`${Fd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const c=await l.json();return!((r=c.blocked)!=null&&r[e]||!c.blocked&&c.allowed&&!((n=c.allowed)!=null&&n.includes(e)))}catch(l){return oe(le.YouTubeAvailabilityRequestFailed,null,{message:l.message}),!1}}let vr={};function Hd(t){const e=Bn(),i={onclose:Vd,embeddable_url:t.embeddable_url||""};vr=Bt(Od,{target:e,props:i})}function Vd(){vr&&(ta(vr,{outro:!0}),vr=null)}function Sn(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function Ud(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&Sn(r.embeddable_url);try{n&&await qo(n)&&(a=r)}catch{}i++}return a}var Wd=Ye('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Gd=Ye('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Kd=Ye('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function Zd(t,e){const i=B(e,"muted",3,!1);var a=Kd(),r=S(a);{var n=c=>{var s=Wd();b(c,s)},l=c=>{var s=Gd();b(c,s)};V(r,c=>{i()?c(n):c(l,!1)})}b(t,a)}var Yd=C('<button class="mute svelte-1ivh34t" aria-label="Mute"><!></button>'),Jd=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function En(t,e){var _;te(e,!0);const i=B(e,"embeddable_url",3,""),a=B(e,"controls",19,()=>[]),r=B(e,"muted",3,!1),n=B(e,"loop",3,!1),l=B(e,"captions",3,!1),c=B(e,"showMuteControls",3,!1),s=W(()=>Sn(i())),d=((_=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:_.replace("#",""))||"fa548a";let u=G(null),p=G(Le(r()));function f(x=!o(p)){var E,z;o(p)!=x&&((z=(E=o(u))==null?void 0:E.contentWindow)==null||z.postMessage("mute","*")),O(p,x,!0)}var h={toggleMute:f},g=ve(),y=J(g);{var w=x=>{var E=Jd(),z=J(E);Je(z,R=>O(u,R),()=>o(u));var P=j(z,2);{var T=R=>{var A=Yd();A.__click=()=>f();var L=S(A);Zd(L,{get muted(){return o(p)}}),b(R,A)};V(P,R=>{c()&&R(T)})}U(R=>ae(z,"src",`https://video.playpilot.net/?video_id=${o(s)??""}&color=${d}&muted=${r()??""}&loop=${n()??""}&captions=${l()??""}&controls=${R??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),b(x,E)},m=x=>{var E=kt("Something went wrong");b(x,E)};V(y,x=>{o(s)?x(w):x(m,!1)})}return b(t,g),ie(h)}pe(["click"]);var Qd=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function No(t,e){te(e,!0);let i=B(e,"gap",3,"0"),a=B(e,"fill",3,!0),r=B(e,"transitionDuration",3,300),n=B(e,"threshold",3,30),l=B(e,"moveThreshold",3,0),c=B(e,"currentIndex",15,0),s=B(e,"shown",31,()=>Le([])),d=B(e,"sliderWidth",15,0),u=B(e,"currentScrollPosition",15,0),p=B(e,"maxWidth",15,0),f=B(e,"reachedEnd",15,!1),h=B(e,"distanceToEnd",15,0),g=B(e,"passedThreshold",15,!1),y=B(e,"passedMoveThreshold",15,!1),w=B(e,"allowWheel",3,!1),m=B(e,"end",3,()=>null),_=B(e,"change",3,ee=>null),x=B(e,"onend",19,m),E=B(e,"onchange",19,_),z=B(e,"onresize",3,()=>null),P=G(!1),T=G(!1),R=0,A=0,L=G(void 0),k=G(void 0),I=null,N=null;Be(()=>{o(k)&&ne(),o(k)&&h(p()-u()-d())}),st(()=>(be(),()=>I==null?void 0:I.disconnect()));function q(ee){const se=o(k).children.length,ge=Math.max(0,Math.min(ee,se-1));X({setIndex:ge}),ne()}function M(){O(T,!0),q(c()),requestAnimationFrame(()=>O(T,!1))}function Z(ee){he(ee.target)&&(ee.preventDefault(),R=ke(ee),O(P,!0))}function F(){if(o(P)){if(!g())X({setIndex:c()});else{const ee=u()-A,se=ee>0?1:-1;ee!=0&&X({direction:se})}O(P,!1),g(!1)}}function H(ee){if(!o(P))return;const se=ke(ee),ge=A+(R-se),rt=R-se;y(Math.abs(rt)>l()),g(Math.abs(u()-A)>n()),y()&&($(ge-l()*(rt>0?1:-1)),ne())}function K(ee){if(!w())return;const{deltaX:se,deltaY:ge}=ee;if(Math.abs(se)<Math.abs(ge))return;ee.preventDefault();const Ve=u()+se*20*.02;$(Ve),ne(),N&&clearTimeout(N),N=setTimeout(()=>{X({direction:se>0?1:-1})},100)}function Q(ee){he(document.activeElement)&&(ee.key=="ArrowLeft"&&q(c()-1),ee.key=="ArrowRight"&&q(c()+1))}function X({setIndex:ee=-1,direction:se=1}={}){const ge=Ae(),rt=c();c(0);let Ve;for(Ve=0;Ve<ge.length;Ve++)if(ee!=-1){if(Ve>=ee)break}else if(se>0&&ge[Ve]>u()||se<0&&ge[Ve+1]>u())break;c(Math.min(Ve,de().length-1)),$(ge[c()],!0),A=u(),E()&&c()!=rt&&E()(c())}function $(ee,se=!1){u(ee);const ge=p()-d();f(u()>=ge),f()&&(x()&&x()(),a()&&se&&u(ge))}function ne(){const ee=Ae();Array.from(ee).forEach((se,ge)=>{u()+d()<se||s().includes(ge)||s([...s(),ge])})}function ke(ee){var se,ge;return ee.pageX??((ge=(se=ee.touches)==null?void 0:se[0])==null?void 0:ge.pageX)}function Ae(){return de().map(ee=>ee.offsetLeft)}function de(){return Array.from(o(k).children).filter(ee=>ee instanceof HTMLElement).filter(ee=>ee.src!="about:blank")}function be(){I=new ResizeObserver(ee=>{for(const se of ee){const ge=Array.isArray(se.contentBoxSize)?se.contentBoxSize[0]:se.contentBoxSize;p(ge.inlineSize)}z()()}),I.observe(o(k))}function he(ee){return ee===o(L)||(ee==null?void 0:ee.closest(".slider"))===o(L)}var Ce={setIndex:q,reposition:M},Qe=Qd();_e("mousedown",je,Z),_e("mouseup",je,F),_e("mousemove",je,H),_e("touchstart",je,Z,void 0,!0),_e("touchend",je,F),_e("touchmove",je,H,void 0,!0),_e("keydown",je,Q),_e("resize",je,M);var De=J(Qe);let fe;var Ge=S(De);let at;var ci=S(Ge);Oe(ci,()=>e.children??vt,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:q,currentScrollPosition:u(),maxWidth:p(),reachedEnd:f(),distanceToEnd:h()})),Je(Ge,ee=>O(k,ee),()=>o(k)),Je(De,ee=>O(L,ee),()=>o(L));var Ct=j(De,2);return Oe(Ct,()=>e.controls??vt,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:q,currentScrollPosition:u(),maxWidth:p(),reachedEnd:f(),distanceToEnd:h()})),U(ee=>{fe=we(De,1,"slider svelte-1gs8ha8",null,fe,{dragging:o(P),"passed-threshold":g()}),at=Fe(Ge,"",at,ee)},[()=>({transform:`translateX(${u()*-1}px)`,"transition-duration":`${(o(P)||o(T)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),_e("wheel",De,K),St(De,"clientWidth",d),b(t,Qe),ie(Ce)}var Xd=Ye("<title> </title>"),$d=Ye('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function Ht(t,e){const i=B(e,"direction",3,"right"),a=B(e,"title",3,""),r=B(e,"size",3,16);var n=$d(),l=S(n);{var c=s=>{var d=Xd(),u=S(d);U(()=>Y(u,a())),b(s,d)};V(l,s=>{a()&&s(c)})}U(()=>{we(n,0,i(),"svelte-1m6nwwy"),ae(n,"width",`${r()??""}px`),ae(n,"height",`${r()??""}px`)}),b(t,n)}function Ne(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var eu=C('<div class="heading svelte-1ayf7b5"> </div>'),tu=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),iu=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),au=C("<!> <!>",1),ru=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function fr(t,e){te(e,!0);let i=B(e,"heading",3,""),a=B(e,"onchange",3,()=>null),r=B(e,"onresize",3,()=>null),n=B(e,"slider",15);var l=ru(),c=J(l);{var s=p=>{var f=eu(),h=S(f);Ft(f,(g,y)=>Ne==null?void 0:Ne(g,y),()=>2),U(()=>Y(h,i())),b(p,f)};V(c,p=>{i()&&p(s)})}var d=j(c,2),u=S(d);Je(No(u,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(f,h)=>{let g=()=>h==null?void 0:h().setIndex,y=()=>h==null?void 0:h().currentIndex,w=()=>h==null?void 0:h().reachedEnd;var m=au(),_=J(m);{var x=P=>{var T=tu();T.__click=()=>g()(y()-1);var R=S(T);Ht(R,{direction:"left",title:"Previous"}),b(P,T)};V(_,P=>{y()>0&&P(x)})}var E=j(_,2);{var z=P=>{var T=iu();T.__click=()=>g()(y()+1);var R=S(T);Ht(R,{title:"Next"}),b(P,T)};V(E,P=>{w()||P(z)})}b(f,m)},children:(f,h)=>{var g=ve(),y=J(g);Oe(y,()=>e.children),b(f,g)},$$slots:{controls:!0,default:!0}}),f=>n(f),()=>n()),b(t,l),ie()}pe(["click"]);function Ro(t){return`${Xc}/${t.type}/${t.slug}/`}var nu=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),lu=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),ou=C('<a class="poster svelte-12ph9f6"><!></a>'),su=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),cu=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),du=C('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),uu=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),pu=C('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),vu=C("<div><!></div>");function Oo(t,e){te(e,!0);let i=B(e,"minimumLength",3,1),a=B(e,"heading",3,""),r=B(e,"size",3,"small"),n=B(e,"aside",3,!1),l=B(e,"expandable",3,!1),c=B(e,"expandedTitle",15,null),s=B(e,"expandedRailKey",15,null),d=B(e,"onclick",3,()=>null),u=B(e,"onexpand",3,()=>null);const p=vn(),h=Rr("scope")==="popover"?Rr("title"):null;let g=G(null),y=G(null),w=G(null),m=!1;st(()=>{l()&&z()});function _(k,I,N){var M,Z,F,H;k==null||k.preventDefault();const q=I[N];if(l()&&!P(q)){const K=(M=o(g))==null?void 0:M.querySelectorAll(".title")[N],X=(((Z=o(g))==null?void 0:Z.getBoundingClientRect().right)||0)-K.getBoundingClientRect().right;m=!0,setTimeout(()=>m=!1,500),X<K.clientWidth*2&&((F=o(y))==null||F.setIndex(N-2)),E(q),k&&u()(q);return}k&&(oa()?bi({event:k,type:"titles-rail",data:I,returnToTitle:h,props:{initialIndex:N}}):bi({event:k,data:q,returnToTitle:h}),(H=o(w))==null||H.toggleMute(!0),d()(q))}async function x(){const k=await e.titles,I=await Ud(k);I&&(c()||s()&&s()!==p||E(I))}function E(k){s(p),c(k)}function z(){s()===p||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(q=>q.getBoundingClientRect().top>=0).sort((q,M)=>q.getBoundingClientRect().top-M.getBoundingClientRect().top)[0]!==o(g)||(c(null),s(null),x())}function P(k){var I;return s()===p&&k.sid===((I=c())==null?void 0:I.sid)}function T(k,I){l()&&(m||setTimeout(()=>_(null,k,I),250))}var R=vu();_e("scroll",je,z);let A;var L=S(R);Pa(L,()=>e.titles,k=>{fr(k,{get heading(){return a()},children:(I,N)=>{var q=ve(),M=J(q);Pe(M,16,()=>({length:12}),Ie,(Z,F)=>{var H=pu(),K=j(S(H),4);{var Q=X=>{var $=uu(),ne=S($);Pe(ne,20,()=>({length:3}),Ie,(ke,Ae)=>{var de=du();b(ke,de)}),b(X,$)};V(K,X=>{n()&&X(Q)})}b(Z,H)}),b(I,q)},$$slots:{default:!0}})},(k,I)=>{var N=ve(),q=J(N);{var M=Z=>{fr(Z,{get heading(){return a()},onchange:F=>T(o(I),F),onresize:()=>{var F;return(F=o(y))==null?void 0:F.reposition()},get slider(){return o(y)},set slider(F){O(y,F,!0)},children:(F,H)=>{var K=ve(),Q=J(K);Pe(Q,17,()=>o(I),Ie,(X,$,ne,ke)=>{const Ae=W(()=>P(o($))),de=W(()=>Ro(o($))),be=W(()=>se=>_(se,o(I),ne));var he=cu();let Ce;var Qe=S(he),De=S(Qe);{var fe=se=>{var ge=lu(),rt=S(ge);rt.__click=function(...Yt){var Jt;(Jt=o(be))==null||Jt.apply(this,Yt)};var Ve=j(rt,2);{var Zt=Yt=>{Je(En(Yt,{get embeddable_url(){return o($).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),Jt=>O(w,Jt,!0),()=>o(w))},Hn=Yt=>{var Jt=nu();U(()=>ae(Jt,"src",o($).medium_poster)),b(Yt,Jt)};V(Ve,Yt=>{o($).embeddable_url?Yt(Zt):Yt(Hn,!1)})}U(()=>ae(rt,"href",o(de))),Me(2,ge,()=>ni,()=>({delay:200,duration:200})),b(se,ge)},Ge=se=>{var ge=ou();ge.__click=function(...Ve){var Zt;(Zt=o(be))==null||Zt.apply(this,Ve)};var rt=S(ge);ur(rt,{get title(){return o($)},width:96,height:144}),U(()=>ae(ge,"href",o(de))),b(se,ge)};V(De,se=>{o(Ae)?se(fe):se(Ge,!1)})}var at=j(Qe,2);at.__click=function(...se){var ge;(ge=o(be))==null||ge.apply(this,se)};var ci=S(at),Ct=j(at,2);{var ee=se=>{var ge=su();ge.__click=function(...Ve){var Zt;(Zt=o(be))==null||Zt.apply(this,Ve)};var rt=S(ge);U(()=>Y(rt,o($).description)),b(se,ge)};V(Ct,se=>{n()&&se(ee)})}U(()=>{Ce=we(he,1,"title svelte-12ph9f6",null,Ce,{expanded:o(Ae)}),ae(at,"href",o(de)),Y(ci,o($).title)}),b(X,he)}),b(F,K)},$$slots:{default:!0}})};V(q,Z=>{var F;((F=o(I))==null?void 0:F.length)>=i()&&Z(M)})}b(k,N)}),Je(R,k=>O(g,k),()=>o(g)),U(()=>{A=we(R,1,`titles ${r()??""}`,"svelte-12ph9f6",A,{"with-aside":n()}),ae(R,"data-role",l()?"expandable-rail":null)}),b(t,R),ie()}pe(["click"]);var fu=C('<div class="rail svelte-1b834ry"><!></div>'),hu=C('<div data-testid="explore-home"></div> <!>',1);function gu(t,e){te(e,!0);let i=G(null),a=G(null);const r=[{heading:"List: Trending",params:{ordering:cr.Popular},properties:{expandable:!0}},{heading:"List: New",params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{aside:!0}},{heading:"List: Upcoming",params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{}},{heading:"List: Cinema",params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{expandable:!0}},{heading:"List: Demand",params:{from_playlist_sid:"licBS"},properties:{aside:!0}}];async function n(s={}){var d;try{return(d=await kn(s))==null?void 0:d.results}catch(u){throw console.log(u),oe(le.ExploreHomeRailError,null,{message:u.message||u.status.toString()||"",params:s}),new Error(u)}}var l=hu();_e("scroll",je,onscroll);var c=j(J(l),2);Pe(c,17,()=>r,Ie,(s,d)=>{let u=()=>o(d).heading,p=()=>o(d).params,f=()=>o(d).properties;var h=fu(),g=S(h);{let y=W(()=>re(u())),w=W(()=>n(p()));Oo(g,dn({get heading(){return o(y)},get titles(){return o(w)},size:"flexible",minimumLength:7},f,{onclick:()=>oe(le.ExploreTitleRailModalView,null,{rail:u()}),onexpand:m=>oe(le.ExploreTitleRailExpandClick,m,{rail:u()}),get expandedTitle(){return o(i)},set expandedTitle(m){O(i,m,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(m){O(a,m,!0)}}))}b(s,h)}),b(t,l),ie()}function Vt(t,e={}){const i=new Image;i.src=mu(t,e||{})}function mu(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Bd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Bo(t,e={}){return()=>{Be(()=>Vt(t,e))}}function yu(t,e={}){return i=>{const a=()=>Vt(t,e);Be(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var bu=C("<button><!></button>");function la(t,e){const i=B(e,"variant",3,"filled"),a=B(e,"size",3,"base"),r=B(e,"label",3,null),n=B(e,"active",3,!1);var l=bu();let c;l.__click=function(...d){var u;(u=e.onclick)==null||u.apply(this,d)};var s=S(l);Oe(s,()=>e.children??vt),U(()=>{c=we(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",c,{active:n()}),ae(l,"aria-label",r())}),b(t,l)}pe(["click"]);var wu=Ye('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function Tn(t,e){const i=B(e,"size",3,14);var a=wu();U(()=>{ae(a,"width",i()),ae(a,"height",i())}),b(t,a)}function Fo(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(s=>s.name===r.name),l=n==null?void 0:n.extra_info.category,c=r.extra_info.category;(l==="RENT"&&c==="BUY"||l==="BUY"&&c==="RENT")&&(i=i.filter(s=>s.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var xu=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function Pn(t,e){te(e,!0);let i=G(Le(Math.random()));var a=ve();_e("updateconsent",je,()=>O(i,Math.random(),!0));var r=J(a);Ca(r,()=>o(i),n=>{var l=ve(),c=J(l);{var s=d=>{var u=ve(),p=J(u);Pe(p,17,()=>e.pixels,Ie,(f,h)=>{var g=xu();U(()=>ae(g,"src",o(h))),b(f,g)}),b(d,u)};V(c,d=>{gt("pixels")&&d(s)})}b(n,l)}),b(t,a),ie()}var _u=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function ku(t,e){te(e,!0);const i=B(e,"size",3,30),a=B(e,"onclick",3,()=>null),r=W(()=>e.playlink.name),n=W(()=>e.playlink.url),l=W(()=>e.playlink.logo_url),c=W(()=>e.playlink.pixels);var s=_u();s.__click=function(...h){var g;(g=a())==null||g.apply(this,h)};let d;var u=S(s),p=j(u,2);{var f=h=>{Pn(h,{get pixels(){return o(c)}})};V(p,h=>{var g;(g=o(c))!=null&&g.length&&h(f)})}U(h=>{ae(s,"href",o(n)),ae(s,"data-playlink",o(r)),d=Fe(s,"",d,{"--size":`${i()??""}px`}),ae(u,"src",h),ae(u,"alt",o(r)),ae(u,"height",i()),ae(u,"width",i())},[()=>dr(o(l))]),b(t,s),ie()}pe(["click"]);var Su=C('<span class="more svelte-1plv45z"> </span>'),Eu=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Tu=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Ho(t,e){te(e,!0);const i=B(e,"size",3,30),a=W(()=>Fo(e.playlinks).slice(0,3));function r(p){p.stopPropagation()}var n=Tu(),l=S(n);Pe(l,17,()=>o(a),Ie,(p,f)=>{ku(p,{get playlink(){return o(f)},onclick:r,get size(){return i()}})});var c=j(l,2);{var s=p=>{var f=Su(),h=S(f);U(()=>Y(h,`+${e.playlinks.length-o(a).length}`)),b(p,f)};V(c,p=>{e.playlinks.length>o(a).length&&p(s)})}var d=j(c,2);{var u=p=>{var f=Eu();b(p,f)};V(d,p=>{e.playlinks.length||p(u)})}b(t,n),ie()}var Pu=C("<div>Series</div>"),Cu=C("<div> </div>"),zu=C('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Iu(t,e){te(e,!0);const i=B(e,"onclick",3,()=>null);var a=zu();a.__click=function(..._){var x;(x=i())==null||x.apply(this,_)};var r=S(a),n=S(r);ur(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=j(n,2),c=S(l),s=S(c);Tn(s,{size:12});var d=j(s),u=j(c,2);{var p=_=>{var x=Pu();b(_,x)};V(u,_=>{e.title.type==="series"&&_(p)})}var f=j(u,2);{var h=_=>{var x=Cu(),E=S(x);U(()=>Y(E,`${e.title.length??""} min`)),b(_,x)};V(f,_=>{e.title.length&&_(h)})}var g=j(r,2),y=S(g),w=S(y),m=j(y,2);Ho(m,{get playlinks(){return e.title.providers},size:20}),U(()=>{Y(d,` ${e.title.imdb_score||"-"}`),Y(w,e.title.title)}),b(t,a),ie()}pe(["click"]),Zs();var ju=C('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function Au(t){var e=ju(),i=j(S(e),2),a=S(i);Fe(a,"",{},{width:"60%"}),b(t,e)}var Lu=C('<div class="svelte-pkkpyl"> </div>'),Mu=C('<button class="title svelte-pkkpyl" data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <div> </div> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Vo(t,e){var k;te(e,!0);const i=B(e,"onclick",3,()=>null),a=!!((k=window.PlayPilotLinkInjections)!=null&&k.no_affiliate);var r=Mu();r.__click=function(...I){var N;(N=i())==null||N.apply(this,I)};var n=S(r),l=S(n);ur(l,{get title(){return e.title},width:30,height:43,lazy:!0});var c=j(n,2),s=S(c),d=S(s),u=j(s,2),p=S(u),f=S(p);Tn(f,{size:11});var h=j(f),g=j(p,2),y=S(g),w=j(g,2),m=S(w),_=j(w,2);{var x=I=>{var N=Lu(),q=S(N);U(()=>Y(q,`${e.title.length??""} min`)),b(I,N)};V(_,I=>{e.title.length&&I(x)})}var E=j(u,2);let z;var P=S(E),T=j(E,2);{var R=I=>{Ho(I,{get playlinks(){return e.title.providers}})};V(T,I=>{a||I(R)})}var A=j(c,2),L=S(A);Ht(L,{}),U(I=>{Y(d,e.title.title),Y(h,` ${e.title.imdb_score||"-"}`),Y(y,e.title.year),Y(m,I),z=we(E,1,"description svelte-pkkpyl",null,z,{large:a}),Y(P,e.title.description)},[()=>re(`Type: ${e.title.type}`)]),b(t,r),ie()}pe(["click"]);var Du=C('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function qu(t){var e=Du(),i=j(S(e),2),a=S(i);Fe(a,"",{},{width:"40%"});var r=j(a,2);Fe(r,"",{},{width:"60%"});var n=j(r,2);Fe(n,"",{},{width:"80%"}),b(t,e)}var Nu=C(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function Ru(t){var e=Nu();b(t,e)}var Ou=C("<div><!></div>"),Bu=C("<!> <!>",1),Fu=C("<p>Something went wrong</p>"),Hu=C('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function Vu(t,e){te(e,!0);const i=B(e,"searchQuery",3,""),a=B(e,"filter",19,()=>({}));let r=1,n=G(Le([])),l=null,c=0,s=JSON.stringify(a())+i(),d=G(Le(y())),u=G(0);const p=W(()=>o(u)>500),f=W(()=>o(u)>1400?8:o(u)>900?6:o(u)>600?4:3),h=W(()=>o(p)?Iu:Vo),g=W(()=>o(p)?Au:qu);Be(()=>{(i()||c!=0)&&w(i())}),Be(()=>{a()&&m()});async function y(){c+=1;const N=c,q={page_size:24,page:r};i()&&(q.search=i()),Object.entries(a()).forEach(([M,{type:Z,value:F}])=>{if(Z==="string")q[M]=F;else if(Z==="array")q[M]=F.join(",");else if(Z==="range"){const[H,K]=F;q[M+"_min"]=H,q[M+"_max"]=K}});try{const M=await kn(q)||{next:null,previous:null,results:[]};return N===c&&O(n,[...o(n),...M.results],!0),M}catch(M){throw console.log(M.status),oe(le.ExploreResultsError,null,{message:M.message||M.status.toString()||"",params:q}),new Error(M)}}async function w(N){z()&&(l&&clearTimeout(l),l=setTimeout(()=>{_(),O(d,y(),!0),N&&(oe(le.ExploreSearch,null,{query:N}),gt("pixels")&&Vt(Et.SearchQuery,{query:N}))},100))}function m(){z()&&(_(),O(d,y(),!0))}function _(){r=1,O(n,[],!0)}function x(){r++,O(d,y(),!0),oe(le.ExploreShowMore,null,{page:r})}function E(N,q){bi({event:N,data:q}),oe(le.ExploreTitleClick,q)}function z(){const N=JSON.stringify(a())+i();return N===s?!1:(s=N,!0)}var P=Hu(),T=J(P);let R,A;var L=S(T);Pe(L,17,()=>o(n),Ie,(N,q)=>{var M=ve(),Z=J(M);Ca(Z,()=>o(q).sid,F=>{var H=ve(),K=J(H);$r(K,()=>o(h),(Q,X)=>{X(Q,{get title(){return o(q)},onclick:$=>E($,o(q))})}),b(F,H)}),b(N,M)});var k=j(L,2);Pa(k,()=>o(d),N=>{var q=ve(),M=J(q);Pe(M,16,()=>({length:24}),Ie,(Z,F)=>{var H=ve(),K=J(H);$r(K,()=>o(g),(Q,X)=>{X(Q,{})}),b(Z,H)}),b(N,q)},void 0,N=>{});var I=j(T,2);Pa(I,()=>o(d),null,(N,q)=>{var M=W(()=>{var{next:$}=o(q);return{next:$}}),Z=W(()=>o(M).next),F=Bu(),H=J(F);{var K=$=>{var ne=Ou();let ke;var Ae=S(ne);la(Ae,{size:"large",onclick:x,children:(de,be)=>{var he=kt();U(Ce=>Y(he,Ce),[()=>re("Show More")]),b(de,he)},$$slots:{default:!0}}),U(()=>ke=we(ne,1,"show-more svelte-qc99of",null,ke,{grid:o(p)})),b($,ne)};V(H,$=>{o(Z)&&$(K)})}var Q=j(H,2);{var X=$=>{Ru($)};V(Q,$=>{var ne;!((ne=o(n))!=null&&ne.length)&&r===1&&$(X)})}b(N,F)},N=>{var q=Fu();b(N,q)}),U(()=>{R=we(T,1,"titles svelte-qc99of",null,R,{grid:o(p)}),A=Fe(T,"",A,{"--grid-columns":o(f)})}),St(T,"clientWidth",N=>O(u,N)),b(t,P),ie()}var Uu=Ye('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function Wu(t){var e=Uu();b(t,e)}var Gu=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Ku(t,e){te(e,!0);let i=G("");var a=Gu(),r=S(a),n=S(r);Wu(n);var l=j(r,2);l.__input=()=>e.oninput(o(i)),U(c=>ae(l,"placeholder",c),[()=>re("Search Movies And Shows")]),za(l,()=>o(i),c=>O(i,c)),b(t,a),ie()}pe(["input"]);const Zu=[{label:"Aruba",value:"AW"},{label:"Afghanistan",value:"AF"},{label:"Angola",value:"AO"},{label:"Anguilla",value:"AI"},{label:"Albania",value:"AL"},{label:"Andorra",value:"AD"},{label:"United Arab Emirates",value:"AE"},{label:"Argentina",value:"AR"},{label:"Armenia",value:"AM"},{label:"American Samoa",value:"AS"},{label:"Antigua and Barbuda",value:"AG"},{label:"Australia",value:"AU"},{label:"Austria",value:"AT"},{label:"Azerbaijan",value:"AZ"},{label:"Burundi",value:"BI"},{label:"Belgium",value:"BE"},{label:"Benin",value:"BJ"},{label:"Burkina Faso",value:"BF"},{label:"Bangladesh",value:"BD"},{label:"Bulgaria",value:"BG"},{label:"Bahrain",value:"BH"},{label:"Bahamas",value:"BS"},{label:"Bosnia and Herzegovina",value:"BA"},{label:"Belarus",value:"BY"},{label:"Belize",value:"BZ"},{label:"Bermuda",value:"BM"},{label:"Bolivia",value:"BO"},{label:"Brazil",value:"BR"},{label:"Barbados",value:"BB"},{label:"Brunei",value:"BN"},{label:"Bhutan",value:"BT"},{label:"Botswana",value:"BW"},{label:"Central African Republic",value:"CF"},{label:"Canada",value:"CA"},{label:"Switzerland",value:"CH"},{label:"Chile",value:"CL"},{label:"China",value:"CN"},{label:"Côte d'Ivoire",value:"CI"},{label:"Cameroon",value:"CM"},{label:"DR Congo",value:"CD"},{label:"Congo",value:"CG"},{label:"Cook Islands",value:"CK"},{label:"Colombia",value:"CO"},{label:"Comoros",value:"KM"},{label:"Cabo Verde",value:"CV"},{label:"Costa Rica",value:"CR"},{label:"Cuba",value:"CU"},{label:"Curaçao",value:"CW"},{label:"Cayman Islands",value:"KY"},{label:"Cyprus",value:"CY"},{label:"Czechia",value:"CZ"},{label:"Germany",value:"DE"},{label:"Djibouti",value:"DJ"},{label:"Dominica",value:"DM"},{label:"Denmark",value:"DK"},{label:"Dominican Republic",value:"DO"},{label:"Algeria",value:"DZ"},{label:"Ecuador",value:"EC"},{label:"Egypt",value:"EG"},{label:"Eritrea",value:"ER"},{label:"Spain",value:"ES"},{label:"Estonia",value:"EE"},{label:"Ethiopia",value:"ET"},{label:"Finland",value:"FI"},{label:"Fiji",value:"FJ"},{label:"Falkland Islands",value:"FK"},{label:"France",value:"FR"},{label:"Faroe Islands",value:"FO"},{label:"Micronesia",value:"FM"},{label:"Gabon",value:"GA"},{label:"United Kingdom",value:"GB"},{label:"Georgia",value:"GE"},{label:"Ghana",value:"GH"},{label:"Gibraltar",value:"GI"},{label:"Guinea",value:"GN"},{label:"Guadeloupe",value:"GP"},{label:"Gambia",value:"GM"},{label:"Guinea-Bissau",value:"GW"},{label:"Equatorial Guinea",value:"GQ"},{label:"Greece",value:"GR"},{label:"Grenada",value:"GD"},{label:"Greenland",value:"GL"},{label:"Guatemala",value:"GT"},{label:"Guyana",value:"GY"},{label:"Hong Kong",value:"HK"},{label:"Honduras",value:"HN"},{label:"Croatia",value:"HR"},{label:"Haiti",value:"HT"},{label:"Hungary",value:"HU"},{label:"Indonesia",value:"ID"},{label:"India",value:"IN"},{label:"Ireland",value:"IE"},{label:"Iran",value:"IR"},{label:"Iraq",value:"IQ"},{label:"Iceland",value:"IS"},{label:"Israel",value:"IL"},{label:"Italy",value:"IT"},{label:"Jamaica",value:"JM"},{label:"Jordan",value:"JO"},{label:"Japan",value:"JP"},{label:"Kazakhstan",value:"KZ"},{label:"Kenya",value:"KE"},{label:"Kyrgyzstan",value:"KG"},{label:"Cambodia",value:"KH"},{label:"Kiribati",value:"KI"},{label:"Saint Kitts and Nevis",value:"KN"},{label:"South Korea",value:"KR"},{label:"Kuwait",value:"KW"},{label:"Laos",value:"LA"},{label:"Lebanon",value:"LB"},{label:"Liberia",value:"LR"},{label:"Libya",value:"LY"},{label:"Saint Lucia",value:"LC"},{label:"Liechtenstein",value:"LI"},{label:"Sri Lanka",value:"LK"},{label:"Lesotho",value:"LS"},{label:"Lithuania",value:"LT"},{label:"Luxembourg",value:"LU"},{label:"Latvia",value:"LV"},{label:"Macao",value:"MO"},{label:"Morocco",value:"MA"},{label:"Monaco",value:"MC"},{label:"Moldova",value:"MD"},{label:"Madagascar",value:"MG"},{label:"Maldives",value:"MV"},{label:"Mexico",value:"MX"},{label:"Marshall Islands",value:"MH"},{label:"North Macedonia",value:"MK"},{label:"Mali",value:"ML"},{label:"Malta",value:"MT"},{label:"Myanmar",value:"MM"},{label:"Montenegro",value:"ME"},{label:"Mongolia",value:"MN"},{label:"Mozambique",value:"MZ"},{label:"Mauritania",value:"MR"},{label:"Martinique",value:"MQ"},{label:"Mauritius",value:"MU"},{label:"Malawi",value:"MW"},{label:"Malaysia",value:"MY"},{label:"Namibia",value:"NA"},{label:"New Caledonia",value:"NC"},{label:"Niger",value:"NE"},{label:"Nigeria",value:"NG"},{label:"Nicaragua",value:"NI"},{label:"Niue",value:"NU"},{label:"Netherlands",value:"NL"},{label:"Norway",value:"NO"},{label:"Nepal",value:"NP"},{label:"Nauru",value:"NR"},{label:"New Zealand",value:"NZ"},{label:"Oman",value:"OM"},{label:"Pakistan",value:"PK"},{label:"Panama",value:"PA"},{label:"Peru",value:"PE"},{label:"Philippines",value:"PH"},{label:"Palau",value:"PW"},{label:"Papua New Guinea",value:"PG"},{label:"Poland",value:"PL"},{label:"Puerto Rico",value:"PR"},{label:"North Korea",value:"KP"},{label:"Portugal",value:"PT"},{label:"Paraguay",value:"PY"},{label:"Palestine",value:"PS"},{label:"French Polynesia",value:"PF"},{label:"Qatar",value:"QA"},{label:"Romania",value:"RO"},{label:"Russian Federation",value:"RU"},{label:"Rwanda",value:"RW"},{label:"Saudi Arabia",value:"SA"},{label:"Sudan",value:"SD"},{label:"Senegal",value:"SN"},{label:"Singapore",value:"SG"},{label:"Solomon Islands",value:"SB"},{label:"Sierra Leone",value:"SL"},{label:"El Salvador",value:"SV"},{label:"San Marino",value:"SM"},{label:"Somalia",value:"SO"},{label:"Serbia",value:"RS"},{label:"South Sudan",value:"SS"},{label:"São Tomé and Príncipe",value:"ST"},{label:"Suriname",value:"SR"},{label:"Slovakia",value:"SK"},{label:"Slovenia",value:"SI"},{label:"Sweden",value:"SE"},{label:"Eswatini",value:"SZ"},{label:"Seychelles",value:"SC"},{label:"Syria",value:"SY"},{label:"Chad",value:"TD"},{label:"Togo",value:"TG"},{label:"Thailand",value:"TH"},{label:"Tajikistan",value:"TJ"},{label:"Turkmenistan",value:"TM"},{label:"Timor-Leste",value:"TL"},{label:"Tonga",value:"TO"},{label:"Trinidad and Tobago",value:"TT"},{label:"Tunisia",value:"TN"},{label:"Turkey",value:"TR"},{label:"Tuvalu",value:"TV"},{label:"Taiwan",value:"TW"},{label:"Tanzania",value:"TZ"},{label:"Uganda",value:"UG"},{label:"Ukraine",value:"UA"},{label:"Uruguay",value:"UY"},{label:"United States",value:"US"},{label:"Uzbekistan",value:"UZ"},{label:"Saint Vincent and the Grenadines",value:"VC"},{label:"Venezuela",value:"VE"},{label:"Vietnam",value:"VN"},{label:"Vanuatu",value:"VU"},{label:"Samoa",value:"WS"},{label:"Yemen",value:"YE"},{label:"South Africa",value:"ZA"},{label:"Zambia",value:"ZM"},{label:"Zimbabwe",value:"ZW"}];async function Yu(){const t=gi();if(!t)throw new Error("No token was provided");const e={region:await _n(),page:1,include_count:"false"};return await ri(`/providers/?api-token=${t}&`+yn(e))}function Ju(t){const e=t-1;return e*e*e+1}function Qu(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=P=>Math.sqrt(P)*120,easing:l=Ju}=a,c=getComputedStyle(t),s=c.transform==="none"?"":c.transform,[d,u]=c.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var p=Xu(t),f=t.clientWidth/i.width/p,h=t.clientHeight/i.height/p,g=e.left+e.width*d,y=e.top+e.height*u,w=i.left+i.width*d,m=i.top+i.height*u,_=(g-w)*f,x=(y-m)*h,E=e.width/i.width,z=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(_*_+x*x)):n,easing:l,css:(P,T)=>{var R=T*_,A=T*x,L=P+T*E,k=P+T*z;return`transform: ${s} translate(${R}px, ${A}px) scale(${L}, ${k});`}}}function Xu(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var $u=Ye('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function ep(t){var e=$u();b(t,e)}var tp=Ye('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function ip(t){var e=tp();b(t,e)}var ap=C('<div class="icon svelte-dfwzqz"><!></div>'),rp=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),np=C('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function lp(t,e){te(e,!0);let i=B(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=B(e,"selected",23,()=>[]),r=B(e,"placeholder",19,()=>`${re("Search")}...`),n=B(e,"onchange",3,()=>null),l=G("");const c=W(s);function s(){var g;return(g=i())!=null&&g.length?o(l)?i().filter(({label:y})=>y.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(g){const y=a().find(w=>w===g);a(y?a().filter(w=>w!==g):[...a(),g]),n()(a())}var u=np(),p=J(u),f=S(p),h=j(p,2);Pe(h,29,()=>o(c)||[],({label:g,value:y})=>y,(g,y)=>{let w=()=>o(y).label,m=()=>o(y).value;const _=W(()=>!!a().find(A=>A===m()));var x=rp(),E=S(x);let z;E.__click=()=>d(m());var P=S(E),T=j(P),R=S(T);Ca(R,()=>o(_),A=>{var L=ap(),k=S(L);{var I=q=>{ep(q)},N=q=>{ip(q)};V(k,q=>{o(_)?q(I):q(N,!1)})}Me(3,L,()=>na,()=>({start:.25,duration:100})),b(A,L)}),U(()=>{z=we(E,1,"option svelte-dfwzqz",null,z,{active:o(_)}),Y(P,`${w()??""} `)}),Wc(x,()=>Qu,()=>({duration:150})),b(g,x)}),U(()=>ae(f,"placeholder",r())),za(f,()=>o(l),g=>O(l,g)),b(t,u),ie()}pe(["click"]);var op=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),sp=C("<div><!> <!></div>");function Uo(t,e){te(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),c=G(0);function s(y){const w=y.target;w&&w.closest(".dropdown")!==o(a)&&O(i,!1)}function d(y){O(i,!o(i)),o(i)&&(O(c,0),O(l,0),u(y.target))}async function u(y){if(await Ea(),!o(r))return;const w=16,m=200,_=window.innerHeight,x=window.innerWidth,{top:E}=o(r).getBoundingClientRect(),{left:z}=y.getBoundingClientRect();O(n,z<window.innerWidth/2?"left":"right",!0),O(l,Math.max(Math.min(window.innerHeight-E-w,_*.6),m),!0),await Ea();const{left:P,right:T}=o(r).getBoundingClientRect(),R=x-T;P-w<0?O(c,R):R-w<0&&O(c,R-w)}var p=sp();_e("click",je,s);var f=S(p);Oe(f,()=>e.button,()=>({toggle:d}));var h=j(f,2);{var g=y=>{var w=op();let m;var _=S(w);Oe(_,()=>e.content),Je(w,x=>O(r,x),()=>o(r)),U(()=>m=Fe(w,"",m,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(c)?`${o(c)}px`:null})),Me(3,w,()=>na,()=>({start:.85,duration:100})),b(y,w)};V(h,y=>{o(i)&&y(g)})}Je(p,y=>O(a,y),()=>o(a)),U(()=>we(p,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),b(t,p),ie()}var cp=C('<span class="label svelte-1mfj6k7"> </span>'),dp=C('<div class="active-line svelte-1mfj6k7"></div>'),up=C('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function pp(t,e){te(e,!0);const i=B(e,"range",19,()=>[0,100]),a=B(e,"value",19,i),r=B(e,"label",3,""),n=B(e,"valueAppend",3,""),l=B(e,"formatFunction",3,F=>F.toString()),c=B(e,"onchange",3,()=>null);let s=i(),d=W(()=>Ui(s,2)),u=G(Le(o(d)[0])),p=G(Le(o(d)[1]));const f=W(()=>o(u)!==i()[0]||o(p)!==i()[1]),h=W(()=>100/(i()[1]-i()[0])*(o(u)-i()[0])),g=W(()=>100+100/(i()[1]-i()[0])*(o(p)-i()[1])-o(h)),y=W(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(u)-o(p))<5);Be(()=>{w(a())}),Be(()=>{O(p,Math.max(o(p),o(u)+1),!0),O(p,Math.min(o(p),i()[1]),!0),O(u,Math.min(o(u),o(p)-1),!0),O(u,Math.max(o(u),i()[0]),!0)});function w(F){(H=>{var K=Ui(H,2);O(u,K[0],!0),O(p,K[1],!0)})(F)}function m(){requestAnimationFrame(()=>c()([o(u),o(p)]))}var _=up(),x=S(_);{var E=F=>{var H=cp(),K=S(H);U((Q,X)=>Y(K,`${r()??""}: ${Q??""}—${X??""} ${n()??""}`),[()=>l()(o(u)),()=>l()(o(p))]),b(F,H)};V(x,F=>{r()&&F(E)})}var z=j(x,2);let P;var T=S(z);T.__mouseup=m,T.__touchend=m,T.__input=function(...F){};let R;var A=j(T,2);A.__mouseup=m,A.__touchend=m,A.__input=function(...F){};let L;var k=j(A,2),I=S(k),N=j(k,2),q=S(N),M=j(N,2);{var Z=F=>{var H=dp();let K;U(()=>K=Fe(H,"",K,{left:o(h)+"%","--width":o(g)+"%"})),b(F,H)};V(M,F=>{o(f)&&F(Z)})}U(()=>{P=we(z,1,"range svelte-1mfj6k7",null,P,{halved:o(y)}),ae(T,"min",i()[0]),ae(T,"max",i()[1]),R=we(T,1,"svelte-1mfj6k7",null,R,{active:o(f)}),ae(A,"min",i()[0]),ae(A,"max",i()[1]),L=we(A,1,"svelte-1mfj6k7",null,L,{active:o(f)}),Y(I,o(u)),Y(q,o(p))}),za(T,()=>o(u),F=>O(u,F)),za(A,()=>o(p),F=>O(p,F)),b(t,_),ie()}pe(["mouseup","touchend","input"]);function Cn(t,e){if(!t)return!1;const{type:i,value:a}=t;return!(i==="array"&&!a.length||i==="range"&&JSON.stringify(a)===JSON.stringify(e))}var vp=C(" <!>",1),fp=C('<p class="loading"> </p>'),hp=C('<p class="error"> </p>'),gp=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),mp=C('<div data-testid="filter-item"><!></div>');function yp(t,e){te(e,!0);let i=B(e,"filter",7),a=B(e,"onchange",3,()=>null),r=B(e,"data",7,null),n=B(e,"fetchData",3,null),l=B(e,"range",3,null),c=B(e,"valueAppend",3,"");const s=W(()=>Cn(i()[e.param],l()));let d=G(!!n());Be(()=>{!r()&&n()&&u()});async function u(){try{O(d,!0),r(await n()())}catch{oe(le.ExploreFetchProvidersFailed)}finally{O(d,!1)}}function p(y,w){if(oe(le.ExploreSetFilter,null,{key:e.param,value:y,total_filter:i()}),!y){delete i()[e.param];return}i()[e.param]={type:w,value:y},a()()}var f=mp();let h;var g=S(f);Uo(g,{button:(m,_)=>{let x=()=>_==null?void 0:_().toggle;la(m,{variant:"border",size:"large",get active(){return o(s)},get onclick(){return x()},children:(E,z)=>{var P=vp(),T=J(P),R=j(T);Ht(R,{direction:"down"}),U(()=>Y(T,`${e.label??""} `)),b(E,P)},$$slots:{default:!0}})},content:m=>{var _=gp(),x=S(_);{var E=A=>{var L=fp(),k=S(L);U(I=>Y(k,`${I??""}...`),[()=>re("Loading")]),b(A,L)},z=A=>{var L=ve(),k=J(L);{var I=N=>{var q=hp(),M=S(q);U(Z=>Y(M,Z),[()=>re("An Error Occurred")]),b(N,q)};V(k,N=>{n()&&!r()&&N(I)},!0)}b(A,L)};V(x,A=>{o(d)?A(E):A(z,!1)})}var P=j(x,2);{var T=A=>{const L=W(()=>{var k;return(k=i()[e.param])==null?void 0:k.value});lp(A,{get options(){return r()},get selected(){return o(L)},onchange:k=>p(k,"array")})},R=A=>{var L=ve(),k=J(L);{var I=N=>{const q=W(()=>{var M;return(M=i()[e.param])==null?void 0:M.value});pp(N,{get range(){return l()},get value(){return o(q)},get label(){return e.label},get valueAppend(){return c()},onchange:M=>p(M,"range")})};V(k,N=>{l()&&N(I)},!0)}b(A,L)};V(P,A=>{r()?A(T):A(R,!1)})}b(m,_)},$$slots:{button:!0,content:!0}}),U(()=>h=we(f,1,"filter-item svelte-er0ukh",null,h,{active:o(s)})),b(t,f),ie()}var bp=C(" <!>",1),wp=C("<button> </button>"),xp=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function _p(t,e){te(e,!0);const i=B(e,"filter",7),a=B(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:cr.Popular},{label:"New",value:cr.New},{label:"Top Rated",value:cr.Best}],l=W(()=>{var s;return((s=n.find(({value:d})=>{var u;return d===((u=i()[r])==null?void 0:u.value)}))==null?void 0:s.label)||"Sort By"});function c(s){s?i()[r]={type:"string",value:s}:delete i()[r],a()()}Uo(t,{button:(u,p)=>{let f=()=>p==null?void 0:p().toggle;la(u,{variant:"link",get onclick(){return f()},children:(h,g)=>{var y=bp(),w=J(y),m=j(w);Ht(m,{direction:"down"}),U(_=>Y(w,`${_??""} `),[()=>re(o(l))]),b(h,y)},$$slots:{default:!0}})},content:u=>{var p=xp();Pe(p,21,()=>n,Ie,(f,h,g,y)=>{let w=()=>o(h).label,m=()=>o(h).value;const _=W(()=>{var P;return m()===((P=i()[r])==null?void 0:P.value)});var x=wp();let E;x.__click=()=>c(m());var z=S(x);U(P=>{E=we(x,1,"option svelte-1ibt2k4",null,E,{active:o(_)}),Y(z,P)},[()=>re(w())]),b(f,x)}),b(u,p)},$$slots:{button:!0,content:!0}}),ie()}pe(["click"]);var kp=Ye('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function Sp(t){var e=kp();b(t,e)}var Ep=C('<button class="item svelte-cwy6fi"><!> <!></button>'),Tp=C('<div class="active-filter svelte-cwy6fi"></div>');function Pp(t,e){te(e,!0);function i(n){delete e.filter[n]}function a(n){let l=n.slice(0,30).trim();return n.length>l.length&&(l+="..."),l}var r=Tp();Pe(r,21,()=>Object.entries(e.filter),Ie,(n,l)=>{var c=W(()=>Ui(o(l),2));let s=()=>o(c)[0],d=()=>o(c)[1];const u=W(()=>{const{label:g,range:y,data:w,fetchData:m}=e.items.find(_=>s()===_.param)||{};return{label:g,range:y,data:w,fetchData:m}});var p=ve(),f=J(p);{var h=g=>{var y=Ep();y.__click=()=>i(s());var w=S(y);{var m=E=>{var z=ve(),P=J(z);Pa(P,()=>{var T,R;return((R=(T=o(u)).fetchData)==null?void 0:R.call(T))||o(u).data},null,(T,R)=>{var A=kt();U(L=>Y(A,L),[()=>{var L;return a((L=o(R))==null?void 0:L.filter(k=>d().value.includes(k.value)).map(k=>k.label).join(" + "))}]),b(T,A)}),b(E,z)},_=E=>{var z=ve(),P=J(z);{var T=A=>{var L=kt();U(k=>Y(L,`${o(u).label??""}: ${k??""}`),[()=>d().value.join(" - ")]),b(A,L)},R=A=>{var L=kt();U(k=>Y(L,k),[()=>re(d().value)]),b(A,L)};V(P,A=>{d().type==="range"?A(T):A(R,!1)},!0)}b(E,z)};V(w,E=>{d().type==="array"?E(m):E(_,!1)})}var x=j(w,2);pr(x,{size:8}),b(g,y)};V(f,g=>{Cn(d(),o(u).range)&&g(h)})}b(n,p)}),b(t,r),ie()}pe(["click"]);var Cp=C("<div><!></div>"),zp=C("<!> <!>",1),Ip=C('<div class="sorting svelte-11dg01g"><!></div>'),jp=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function Ap(t,e){te(e,!0);const i=B(e,"limit",3,!0),a=B(e,"showSorting",3,!0),r=B(e,"searchQuery",3,""),n=B(e,"onchange",3,()=>null),l=B(e,"onempty",3,()=>null),c=3,s=[{label:re("Services"),param:"providers",fetchData:async()=>(await Yu()).map(z=>({label:z.name,value:z.slug}))},{label:re("Genres"),param:"genres",data:sr.filter(z=>parseInt(z.slug)<900).map(z=>({label:re(z.name),value:z.slug}))},{label:re("IMDb"),param:"imdb_score",range:[0,10]},{label:re("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:re("Runtime"),param:"length",range:[0,180],valueAppend:re("Minutes")},{label:re("Countries"),param:"country_codes",data:Zu}];let d=G(Le(i())),u=!1;Be(()=>{Object.keys(e.filter).some(P=>{const{range:T}=s.find(R=>P===R.param)||{};return Cn(e.filter[P],T)})||r()?u=!0:u&&(u=!1,l()())});var p=jp(),f=J(p);let h;var g=S(f);Pe(g,21,()=>o(d)?s.slice(0,c):s,Ie,(z,P)=>{var T=Cp(),R=S(T);yp(R,dn({get filter(){return e.filter},get onchange(){return n()}},()=>o(P))),Me(3,T,()=>na,()=>({start:.75,duration:100})),b(z,T)});var y=j(g,2),w=S(y);{var m=z=>{la(z,{variant:"link",onclick:()=>O(d,!o(d)),children:(P,T)=>{var R=zp(),A=J(R);Sp(A);var L=j(A),k=j(L);{let I=W(()=>o(d)?"down":"up");Ht(k,{get direction(){return o(I)}})}U(I=>Y(L,` ${I??""} `),[()=>re("All Filters")]),b(P,R)},$$slots:{default:!0}})};V(w,z=>{i()&&z(m)})}var _=j(w,2);{var x=z=>{var P=Ip(),T=S(P);_p(T,{get filter(){return e.filter},get onchange(){return n()}}),Me(3,P,()=>Aa,()=>({x:5,duration:100})),b(z,P)};V(_,z=>{a()&&z(x)})}var E=j(f,2);Pp(E,{get filter(){return e.filter},get items(){return s}}),U(()=>h=we(f,1,"filter svelte-11dg01g",null,h,{limit:i()})),b(t,p),ie()}function Lp(t,e){te(e,!0);const i=B(e,"trackingEvent",19,()=>le.ExploreAnyClick);function a(l){var x;const c=l.target,s=c.parentElement;if(c===document.body)return;const d=`${s==null?void 0:s.nodeName.toLowerCase()}${r(s)}`,u=`${c==null?void 0:c.nodeName.toLowerCase()}${r(c)}`,p=`${d} > ${u}`,f=c.closest("a, button"),h=n(c)||n(s)||f&&n(f),g=h?(x=h.textContent)==null?void 0:x.slice(0,30):"",y=c.getAttribute("aria-label")||(f==null?void 0:f.getAttribute("aria-label"))||(s==null?void 0:s.getAttribute("aria-label")),w=c.placeholder,m=c.alt,_=(g||y||w||m||"").trim();oe(i(),null,{selector:p,text:_})}function r(l){if(!l)return"";const c=Array.from(l.classList).filter(s=>!s.startsWith("s-"));return c.length?"."+c.join("."):""}function n(l){return Array.from(l.childNodes).find(c=>{var s;return c.nodeName==="#text"&&!!((s=c.textContent)!=null&&s.trim())})}_e("click",je,a),ie()}function Mp(t,e){te(e,!0);const i=B(e,"trackingEvent",19,()=>le.ExploreScrollDistance),a={25:!1,50:!1,75:!1,100:!1};function r(){const n=window.scrollY,l=window.innerHeight,d=100/(e.element.clientHeight+n+e.element.getBoundingClientRect().top)*(n+l);for(const u in a)a[u]||d<parseInt(u)||(a[u]=!0,oe(i(),null,{scroll_percentage:u+"%"}))}_e("scroll",je,r),ie()}var Dp=C('<p class="description svelte-l2apr8"> </p>'),qp=C('<div class="filter svelte-l2apr8"><!></div>'),Np=C('<div class="explore playpilot-styled-scrollbar svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <!></div></div> <!> <!> <!></div> <!> <!>',1);function Rp(t,e){te(e,!0);let i=B(e,"navigate",3,()=>null),a=B(e,"searchQuery",15,""),r=B(e,"filter",27,()=>Le({})),n=null,l=G(null),c=G(Le(window.innerWidth));Be(()=>{var T;O(l,((T=n==null?void 0:n.closest(zn))==null?void 0:T.style.height)||null,!0)}),st(async()=>{var T;oe(le.ExplorePageView),(T=window.PlayPilotLinkInjections.ads)!=null&&T.length||(window.PlayPilotLinkInjections.ads=await Ao())});var s=Np(),d=J(s);let u;var p=S(d),f=S(p),h=j(S(f),2),g=S(h);Ft(h,T=>Ne==null?void 0:Ne(T));var y=j(h,2);{var w=T=>{var R=Dp(),A=S(R);U(L=>Y(A,L),[()=>re("Streaming Guide Description")]),b(T,R)};V(y,T=>{oa()||T(w)})}var m=j(p,2);Ku(m,{oninput:T=>a(T)});var _=j(m,2);{var x=T=>{var R=qp(),A=S(R);{let L=W(()=>o(c)<500),k=W(()=>!a());Ap(A,{get filter(){return r()},get searchQuery(){return a()},get limit(){return o(L)},get showSorting(){return o(k)},onchange:()=>i()("results"),onempty:()=>i()("home")})}b(T,R)};V(_,T=>{oa()&&T(x)})}var E=j(_,2);Oe(E,()=>e.children),Je(d,T=>n=T,()=>n);var z=j(d,2);Lp(z,{});var P=j(z,2);Mp(P,{get element(){return n}}),U(T=>{u=Fe(d,"",u,{height:o(l),"--playpilot-explore-width":`${o(c)??""}px`}),Y(g,T)},[()=>re("Streaming Guide")]),St(d,"clientWidth",T=>O(c,T)),b(t,s),ie()}function Wo(t,e){te(e,!0);const i=[{key:"results",component:Vu}];oa()&&i.unshift({key:"home",component:gu});let a=G(Le(i[0])),r=G(""),n=G(Le({}));const l=W(()=>o(a).component);Be(()=>{o(r)&&O(a,i.find(s=>s.key==="results"),!0)});function c(s){O(a,i.find(d=>d.key===s)||i[0],!0),oe(le.ExploreNavigate,null,{route:o(a).key})}Rp(t,{navigate:c,get searchQuery(){return o(r)},set searchQuery(s){O(r,s,!0)},get filter(){return o(n)},set filter(s){O(n,s,!0)},children:(s,d)=>{var u=ve(),p=J(u);$r(p,()=>o(l),(f,h)=>{h(f,{get searchQuery(){return o(r)},get filter(){return o(n)},navigate:c})}),b(s,u)},$$slots:{default:!0}}),ie()}const zn="[data-playpilot-explore]",Op="[data-playpilot-pre-consent-explore]",Go="playpilot-explore-custom-style";let hr=null;function gr(){var e;const t=document.querySelector(zn);t&&(mr(),(e=document.querySelector(Op))==null||e.remove(),t.innerHTML="",hr=Bt(Wo,{target:t}),Fp())}function mr(){var t;hr&&(ta(hr),hr=null,(t=document.querySelector("#"+Go))==null||t.remove())}function Bp(){var s;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:r}=t;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),c=l.nodeName==="A"?l:l.querySelector("a");return c.classList.remove("active"),c.innerText=i||"Streaming Guide",c.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function Fp(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Go,document.body.appendChild(e)}function oa(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function La(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?gt("pixels"):!1}function In(t,e){te(e,!0);const i=B(e,"size",3,"32px"),a=B(e,"onclick",3,()=>null),r=ho(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=ve(),l=J(n);$l(l,()=>e.href?"a":"button",!1,(c,s)=>{oo(c,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[ra]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=ve(),u=J(d);Oe(u,()=>e.children??vt),b(s,d)}),b(t,n),ie()}var Hp=C("<div></div>");function Vp(t,e){te(e,!0);let i=B(e,"threshold",3,100),a=B(e,"isDragging",15,!1),r=B(e,"passedThreshold",15,!1),n=B(e,"onpassed",3,()=>null),l=G(0),c=G(0),s=G(null),d=G(!1);const u=W(()=>Math.max(o(c)-o(l),0));Be(()=>{r(o(u)>i())});function p(m){if(m){a(!0),O(d,!0),O(l,m.touches[0].pageY,!0);for(const _ of e.targets)_.style.transitionDuration="0ms"}}function f(m){if(m&&a()){m.preventDefault(),O(c,m.touches[0].pageY,!0),o(s).style.transform=`translateY(${o(u)}px)`;for(const _ of e.targets)_.style.top=`${o(u)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(s).removeAttribute("style");for(const m of e.targets)m.style.removeProperty("transition"),requestAnimationFrame(()=>m.style.top="0px")}O(l,0),O(c,0)}}var g={start:p,move:f,end:h},y=Hp();_e("touchmove",je,f,void 0,!0),_e("touchend",je,h);let w;return y.__touchstart=p,Je(y,m=>O(s,m),()=>o(s)),U(()=>w=we(y,1,"handle svelte-1xqgdsn",null,w,{dragging:a(),dragged:o(d)})),b(t,y),ie(g)}pe(["touchstart"]);var Up=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Wp=["difference","intersection","symmetricDifference","union"],Ko=!1;const Cr=class Cr extends Set{constructor(i){super();ue(this,ha);ue(this,fa,new Map);ue(this,Pt,G(0));ue(this,Si,G(0));ue(this,Pr,ii||-1);if(i){for(var a of i)super.add(a);D(this,Si).v=super.size}Ko||ze(this,ha,vs).call(this)}has(i){var a=super.has(i),r=D(this,fa),n=r.get(i);if(n===void 0){if(!a)return o(D(this,Pt)),!1;n=ze(this,ha,ps).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),O(D(this,Si),super.size),vi(D(this,Pt))),this}delete(i){var a=super.delete(i),r=D(this,fa),n=r.get(i);return n!==void 0&&(r.delete(i),O(n,!1)),a&&(O(D(this,Si),super.size),vi(D(this,Pt))),a}clear(){if(super.size!==0){super.clear();var i=D(this,fa);for(var a of i.values())O(a,!1);i.clear(),O(D(this,Si),0),vi(D(this,Pt))}}keys(){return this.values()}values(){return o(D(this,Pt)),super.values()}entries(){return o(D(this,Pt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(D(this,Si))}};fa=new WeakMap,Pt=new WeakMap,Si=new WeakMap,Pr=new WeakMap,ha=new WeakSet,ps=function(i){return ii===D(this,Pr)?G(i):Dt(i)},vs=function(){Ko=!0;var i=Cr.prototype,a=Set.prototype;for(const r of Up)i[r]=function(...n){return o(D(this,Pt)),a[r].apply(this,n)};for(const r of Wp)i[r]=function(...n){o(D(this,Pt));var l=a[r].apply(this,n);return new Cr(l)}};let yr=Cr;class Gp{constructor(e,i){ue(this,Ba);ue(this,Fa);ce(this,Ba,e),ce(this,Fa,ml(i))}get current(){return D(this,Fa).call(this),D(this,Ba).call(this)}}Ba=new WeakMap,Fa=new WeakMap;const Kp=/\(.+\)/,Zp=new Set(["all","print","screen","and","or","not","only"]);class Yp extends Gp{constructor(e,i){let a=Kp.test(e)||e.split(/[\s,]+/).some(n=>Zp.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>Ic(r,"change",n))}}const jn=new Yp("(prefers-reduced-motion: reduce)");function An(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(n){if(n.key!=="Tab")return;const l=document.activeElement;if(!l)return;const c=e();if(!c.length)return;const[s]=c,d=c[c.length-1];n.shiftKey&&l===s&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(s.focus(),n.preventDefault())}const a=document.activeElement,[r]=e();return a!=null&&a.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function Jp(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Qp=C("<div><!></div>"),Xp=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),$p=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),ev=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),tv=C("<div><!></div>"),iv=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),av=C('<div data-testid="modal"><!> <!> <!> <!></div>');function br(t,e){te(e,!0);const i=H=>{var K=Qp(),Q=S(K);In(Q,{onclick:E,"aria-label":"Close",children:(X,$)=>{pr(X,{})},$$slots:{default:!0}}),Je(K,X=>O(g,X),()=>o(g)),U(()=>we(K,1,`close ${l()??""}`,"svelte-1rbidhv")),Me(7,K,()=>x),b(H,K)},a=B(e,"tall",3,!1),r=B(e,"wide",3,!1),n=B(e,"blur",3,!1),l=B(e,"closeButtonStyle",3,"shadow"),c=B(e,"initialScrollPosition",3,0),s=B(e,"onscroll",3,()=>null),d=B(e,"onclose",3,()=>null),u="#playpilot";let p=G(0),f=G(null),h=G(null),g=G(null),y=G(0),w=G(!1);const m=W(()=>o(p)<Li);Be(()=>{var H;o(p)&&O(y,((H=o(h))==null?void 0:H.offsetTop)||0,!0)}),Be(()=>{setTimeout(()=>{var H;return O(y,((H=o(h))==null?void 0:H.offsetTop)||0,!0)})}),Or("scope","modal"),st(()=>{const H=Jp();return H.classList.add("playpilot-modal-open"),O(w,!!es()),o(w)||window.history.pushState({modal:!0},"",u),requestAnimationFrame(_),()=>{var K;H.classList.remove("playpilot-modal-open"),!es()&&((K=history.state)!=null&&K.modal)&&history.back()}});function _(){const H=window.innerWidth>Li?o(f):o(h);H==null||H.scrollTo(0,c())}function x(H){return jn.current?ni(H,{duration:0}):o(m)?Aa(H,{duration:250,y:window.innerHeight,opacity:1}):na(H,{duration:150,start:.85})}function E(){d()(),Nn()}function z(H){H.target===o(f)&&E()}var P=av();_e("keydown",je,({key:H})=>{H==="Escape"&&E()}),_e("hashchange",je,E);let T;P.__click=z;let R;var A=S(P);{var L=H=>{var K=Xp(),Q=S(K);Oe(Q,()=>e.prepend),Me(7,K,()=>x),b(H,K)};V(A,H=>{e.prepend&&H(L)})}var k=j(A,2);{var I=H=>{var K=$p(),Q=S(K);Oe(Q,()=>e.bubble),Me(7,K,()=>x),b(H,K)};V(k,H=>{e.bubble&&H(I)})}var N=j(k,2);{var q=H=>{var K=ev(),Q=S(K);{var X=$=>{{let ne=W(()=>[o(h),o(g)]);Vp($,{get targets(){return o(ne)},onpassed:E})}};V(Q,$=>{o(h)&&o(g)&&$(X)})}Me(7,K,()=>x),b(H,K)};V(N,H=>{o(m)&&H(q)})}var M=j(N,2);{var Z=H=>{var K=ve(),Q=J(K);Oe(Q,()=>e.dialog),b(H,K)},F=H=>{var K=iv(),Q=J(K),X=S(Q);{var $=he=>{var Ce=tv(),Qe=S(Ce);In(Qe,{onclick:()=>ch(),"aria-label":"Back",children:(De,fe)=>{Ht(De,{direction:"left"})},$$slots:{default:!0}}),U(()=>we(Ce,1,`close back ${l()??""}`,"svelte-1rbidhv")),b(he,Ce)};V(X,he=>{o(w)&&he($)})}var ne=j(X,2);Oe(ne,()=>e.children??vt);var ke=j(ne,2);{var Ae=he=>{i(he)};V(ke,he=>{o(m)||he(Ae)})}Je(Q,he=>O(h,he),()=>o(h));var de=j(Q,2);{var be=he=>{i(he)};V(de,he=>{o(m)&&he(be)})}_e("scroll",Q,function(...he){var Ce;(Ce=s())==null||Ce.apply(this,he)}),Me(7,Q,()=>x),b(H,K)};V(M,H=>{e.dialog?H(Z):H(F,!1)})}Je(P,H=>O(f,H),()=>o(f)),Ft(P,H=>An==null?void 0:An(H)),U(()=>{T=we(P,1,"modal svelte-1rbidhv",null,T,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),R=Fe(P,"",R,{"--dialog-offset":`${o(y)??""}px`})}),sn("innerWidth",H=>O(p,H,!0)),Me(5,P,()=>ni,()=>({duration:150})),Me(6,P,()=>ni,()=>({duration:150,delay:100})),b(t,P),ie()}pe(["click"]);var rv=C('<div class="genre svelte-1mphbln"> </div>'),nv=C('<button class="genre expand svelte-1mphbln"> </button>'),lv=C("<!> <!>",1);function ov(t,e){te(e,!0);let i=G(!1);const a=W(()=>o(i)?e.genres:[e.genres[0]]);var r=lv(),n=J(r);Pe(n,17,()=>o(a),Ie,(s,d)=>{const u=W(()=>{var g;return(g=sr.find(y=>y.slug===o(d)))==null?void 0:g.name});var p=ve(),f=J(p);{var h=g=>{var y=rv(),w=S(y);er(y,()=>La()?Bo(Et.GenreInterest,{genre:o(u),source:yi.Card}):null),U(m=>Y(w,m),[()=>re(o(u))]),b(g,y)};V(f,g=>{o(u)&&g(h)})}b(s,p)});var l=j(n,2);{var c=s=>{var d=nv();d.__click=()=>O(i,!0);var u=S(d);U(()=>Y(u,`+${e.genres.length-1}`)),b(s,d)};V(l,s=>{!o(i)&&e.genres.length>1&&s(c)})}b(t,r),ie()}pe(["click"]);var sv=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),cv=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function Ln(t,e){const i=B(e,"small",3,!1);let a=G(!1);function r(u){u.preventDefault(),u.stopPropagation(),O(a,!o(a))}var n=cv();n.__click=r;var l=S(n);let c;var s=j(l,2);{var d=u=>{var p=sv(),f=S(p);U(()=>Y(f,e.disclaimer)),Me(3,p,()=>ni,()=>({duration:50})),b(u,p)};V(s,u=>{o(a)&&u(d)})}U(()=>c=we(l,1,"disclaimer svelte-1ldthr7",null,c,{small:i()})),b(t,n)}pe(["click"]);var dv=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),uv=C('<span class="cta svelte-13ka2ap"> </span>'),pv=C('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Zo(t,e){te(e,!0);const i=B(e,"disclaimer",3,""),a=B(e,"hideCategory",3,!1),r=B(e,"onclick",3,()=>null),n=W(()=>e.playlink.name),l=W(()=>e.playlink.url),c=W(()=>e.playlink.logo_url),s=W(()=>e.playlink.highlighted),d=W(()=>e.playlink.cta_text),u=W(()=>e.playlink.action_text),p=W(()=>e.playlink.pixels),f=W(()=>e.playlink.extra_info.category),h=W(()=>La()&&!o(s)),g={AVOD:re("Stream"),SVOD:re("Stream"),BUY:re("Buy"),RENT:re("Rent"),TVOD:re("Rent Or Buy")};let y=G(0);var w=ve(),m=J(w);$l(m,()=>{var _,x;return!((x=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&x.require_affiliate_consent)||gt("affiliate")?"a":"span"},!1,(_,x)=>{er(_,()=>o(h)?Bo(Et.ProviderInterest,{provider:e.playlink.slug,source:yi.Card}):null),er(_,()=>o(h)?yu(Et.ProviderClick,{provider:e.playlink.slug}):null),oo(_,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[aa]:{highlighted:o(s),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var E=pv(),z=J(E);let P;var T=S(z),R=j(T,2),A=S(R),L=j(R,2);{var k=Q=>{var X=dv(),$=S(X);U(ne=>Y($,ne),[()=>g[o(f)]||re("Stream")]),b(Q,X)};V(L,Q=>{a()||Q(k)})}var I=j(L,2);{var N=Q=>{var X=uv(),$=S(X);U(()=>Y($,o(d))),b(Q,X)};V(I,Q=>{o(d)&&Q(N)})}var q=j(I,2),M=S(q),Z=j(q,2);{var F=Q=>{Ln(Q,{get disclaimer(){return i()},small:!0})};V(Z,Q=>{i()&&Q(F)})}var H=j(z,2);{var K=Q=>{Pn(Q,{get pixels(){return o(p)}})};V(H,Q=>{var X;(X=o(p))!=null&&X.length&&Q(K)})}U((Q,X)=>{P=Fe(z,"",P,{"--action-width":o(y)?`${o(y)}px`:null}),ae(T,"src",Q),Y(A,o(n)),Y(M,X)},[()=>dr(o(c)),()=>o(u)||re("Watch")]),St(q,"clientWidth",Q=>O(y,Q)),b(x,E)}),b(t,w),ie()}var vv=C('<div class="disclaimer svelte-1fykz2q" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1fykz2q">PlayPilot.com</a></div>'),fv=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),hv=C('<div class="heading category svelte-1fykz2q"> </div>'),gv=C("<!> <!>",1),mv=C("<!> <div></div>",1),yv=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function bv(t,e){var E,z;te(e,!0);const i=Rr("scope")==="modal",a=ja("card"),r=!!((z=(E=window.PlayPilotLinkInjections)==null?void 0:E.config)!=null&&z.categorize_playlinks);let n=G(0);const l=W(()=>Fo(e.playlinks)),c=W(()=>p(e.playlinks)),s=W(()=>r?f(o(c)):[["",o(l)]]),d=W(()=>o(n)<500||!!a||o(l).length===1);function u(P){oe(i?le.TitleModalPlaylinkClick:le.TitlePopoverPlaylinkClick,e.title,{playlink:P})}function p(P){const T={};for(const R of P){const{category:A}=R.extra_info;A in T||(T[A]=[]),T[A].push(R)}return T}function f(P){const T=["AVOD","SVOD","RENT","BUY"],R=[];for(const L of T)P[L]&&R.push([L,P[L]]);const A=[];for(const L of Object.values(P))for(const k of L)T.includes(k.extra_info.category)||A.push(k);return[...R,["Other",A]]}var h=yv(),g=J(h),y=S(g);Ft(g,(P,T)=>Ne==null?void 0:Ne(P,T),()=>3);var w=j(g,2);{var m=P=>{var T=vv(),R=S(T);U(A=>Y(R,`${A??""} `),[()=>{var A,L;return((L=(A=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:A.config)==null?void 0:L.playlinks_disclaimer_text)||re("Commission Disclaimer")}]),b(P,T)},_=P=>{var T=fv(),R=S(T);U(A=>Y(R,A),[()=>re("Title Unavailable")]),b(P,T)};V(w,P=>{o(l).length?P(m):P(_,!1)})}var x=j(w,2);Pe(x,17,()=>o(s),Ie,(P,T,R,A)=>{var L=W(()=>Ui(o(T),2));let k=()=>o(L)[0],I=()=>o(L)[1];var N=mv(),q=J(N);{var M=H=>{var K=hv(),Q=S(K);Ft(K,(X,$)=>Ne==null?void 0:Ne(X,$),()=>4),U(X=>Y(Q,X),[()=>re(`Category: ${k()}`)]),b(H,K)};V(q,H=>{k()&&I().length&&H(M)})}var Z=j(q,2);let F;Pe(Z,21,I,Ie,(H,K,Q)=>{var X=gv(),$=J(X);Zo($,{get playlink(){return o(K)},onclick:()=>u(o(K).name)});var ne=j($,2);{var ke=Ae=>{{let de=W(()=>jd(a)),be=W(()=>a.disclaimer||"");Zo(Ae,{get playlink(){return o(de)},onclick:()=>oe(le.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(be)}})}};V(ne,Ae=>{a&&Q===0&&Ae(ke)})}b(H,X)}),U(()=>{F=we(Z,1,"playlinks svelte-1fykz2q",null,F,{list:o(d)}),ae(Z,"data-testid",`category-${k()??""}`)}),St(Z,"clientWidth",H=>O(n,H)),b(P,N)}),U(P=>Y(y,P),[()=>re("Where To Stream Online")]),b(t,h),ie()}var wv=C('<button class="show-more svelte-7itcht">Show more</button>'),xv=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),_v=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function kv(t,e){te(e,!0);const i=B(e,"blurb",3,""),a=B(e,"limit",3,200),r=B(e,"onclick",3,()=>null);let n=G(!1);const l=W(()=>e.text.slice(0,a()));function c(){O(n,!0),r()()}var s=_v(),d=S(s),u=S(d),p=j(u);{var f=m=>{var _=kt("...");b(m,_)};V(p,m=>{!o(n)&&e.text.length>a()&&m(f)})}var h=j(p,2);{var g=m=>{var _=wv();_.__click=()=>c(),b(m,_)};V(h,m=>{!o(n)&&(e.text.length>a()||i())&&m(g)})}var y=j(d,2);{var w=m=>{var _=xv(),x=S(_);U(()=>Y(x,i())),b(m,_)};V(y,m=>{o(n)&&m(w)})}U(()=>Y(u,o(n)?e.text:o(l))),b(t,s),ie()}pe(["click"]);async function Sv(t,{page:e=1}={}){const i={language:Ia(),region:await _n(),include_count:"false",participant_sid:t.sid,page:e};return(await ri(`/titles/browse?api-token=${gi()}&${yn(i)}`)).results}async function Ev(t){return(await ri(`/participants/browse?api-token=${gi()}&title_sid=${t.sid}`)).results}var Tv=C('<div class="character truncate svelte-zy7e3f"> </div>'),Pv=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),Cv=C('<div class="participant svelte-zy7e3f"></div>');function zv(t,e){te(e,!0);function i(l){const c=mi(hn(wo(fn()))),s={};for(const u of l){const p=lr(c,mi(u.name));s[u.sid]={participant:u,count:p}}return Object.values(s).sort((u,p)=>p.count-u.count).map(({participant:u})=>u)}function a(l,c){bi({event:l,type:"participant",data:c}),oe(le.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:c.name})}var r=ve(),n=J(r);Pa(n,()=>Ev(e.title),l=>{{let c=W(()=>re("Cast"));fr(l,{get heading(){return o(c)},children:(s,d)=>{var u=ve(),p=J(u);Pe(p,16,()=>({length:5}),Ie,(f,h)=>{var g=Cv();b(f,g)}),b(s,u)},$$slots:{default:!0}})}},(l,c)=>{var s=ve(),d=J(s);{var u=p=>{{let f=W(()=>re("Cast"));fr(p,{get heading(){return o(f)},children:(h,g)=>{var y=ve(),w=J(y);Pe(w,17,()=>i(o(c)).slice(0,15),Ie,(m,_)=>{var x=Pv();x.__click=R=>a(R,o(_));var E=S(x),z=S(E),P=j(E,2);{var T=R=>{var A=Tv(),L=S(A);U(()=>Y(L,o(_).character)),b(R,A)};V(P,R=>{o(_).character&&R(T)})}U(()=>Y(z,o(_).name)),b(m,x)}),b(h,y)},$$slots:{default:!0}})}};V(d,p=>{var f;(f=o(c))!=null&&f.length&&p(u)})}b(l,s)}),b(t,r),ie()}pe(["click"]);function Iv(t,e){te(e,!0);const i=Ld(e.title);{let a=W(()=>re("Similar Titles"));Oo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>oe(le.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ie()}function jv(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var Av=Ye('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function Lv(t){var e=Av();b(t,e)}var Mv=Ye('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function Dv(t){var e=Mv();b(t,e)}var qv=Ye('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function Nv(t){var e=qv();b(t,e)}var Rv=Ye('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Ov(t){var e=Rv();b(t,e)}var Bv=C('<button class="svelte-827qd7"><!></button>'),Fv=C('<div class="content svelte-827qd7"><!></div>'),Hv=C("<div><!> <!></div>");function Vv(t,e){const i=B(e,"label",3,""),a=B(e,"align",3,"right");let r=G(!1),n=G(null);function l(h){var y;h.currentTarget===((y=o(n))==null?void 0:y.querySelector("button"))&&h.stopPropagation(),O(r,!o(r))}var c=Hv();_e("click",je,()=>O(r,!1));var s=S(c);{var d=h=>{var g=ve(),y=J(g);Oe(y,()=>e.button,()=>({toggle:l})),b(h,g)},u=h=>{var g=Bv();g.__click=l;var y=S(g);Ov(y),U(()=>{ae(g,"aria-label",i()),ae(g,"aria-expanded",o(r))}),b(h,g)};V(s,h=>{e.button?h(d):h(u,!1)})}var p=j(s,2);{var f=h=>{var g=Fv(),y=S(g);Oe(y,()=>e.children),Me(1,g,()=>na,()=>({duration:50,start:.85})),b(h,g)};V(p,h=>{o(r)&&h(f)})}Je(c,h=>O(n,h),()=>o(n)),U(()=>we(c,1,`context-menu ${a()??""}`,"svelte-827qd7")),b(t,c)}pe(["click"]);var Uv=C("<!> ",1),Wv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Gv(t,e){te(e,!0);let i=B(e,"url",7);const r=window.innerWidth<Li&&typeof navigator.share<"u";st(()=>{i(i()+"?utm_source=tpi")});function n(s,d){if(!r){d(s);return}oe(le.ShareTitle,null,{title:e.title,url:Mi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){oe(le.ShareTitle,null,{title:e.title,url:Mi(),method:"copy"}),jv(i())}function c(){oe(le.ShareTitle,null,{title:e.title,url:Mi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Vv(t,{button:(d,u)=>{let p=()=>u==null?void 0:u().toggle;la(d,{onclick:f=>n(f,p()),children:(f,h)=>{var g=Uv(),y=J(g);Lv(y);var w=j(y);U(m=>Y(w,` ${m??""}`),[()=>re("Share")]),b(f,g)},$$slots:{default:!0}})},children:(d,u)=>{var p=Wv(),f=J(p);f.__click=l;var h=S(f);Dv(h);var g=j(h),y=j(f,2);y.__click=c;var w=S(y);Nv(w);var m=j(w);U((_,x)=>{Y(g,` ${_??""}`),Y(m,` ${x??""}`)},[()=>re("Copy URL"),()=>re("Email")]),b(d,p)},$$slots:{button:!0,default:!0}}),ie()}pe(["click"]);var Kv=Ye('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Zv(t){var e=Kv();b(t,e)}var Yv=C("<!> ",1);function Jv(t,e){te(e,!0);function i(){Hd(e.title),oe(le.TrailerClick,e.title)}la(t,{onclick:i,children:(a,r)=>{var n=Yv(),l=J(n);Zv(l);var c=j(l);U(s=>Y(c,` ${s??""}`),[()=>re("Watch Trailer")]),b(a,n)},$$slots:{default:!0}}),ie()}var Qv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Xv(t,e){const i=B(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=W(()=>Math.max(o(a),o(r)));var l=Qv(),c=S(l);En(c,{get embeddable_url(){return i()},muted:!0,loop:!0}),U(()=>Fe(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),St(l,"clientWidth",s=>O(a,s)),St(l,"clientHeight",s=>O(r,s)),b(t,l)}var $v=C("<div> </div>"),ef=C('<img alt=""/>'),tf=C('<div><div class="header svelte-16ajinh"><div><!></div> <div id="title"> </div> <div class="info svelte-16ajinh"><div class="imdb svelte-16ajinh"><!> </div> <!> <div> </div> <div class="capitalize svelte-16ajinh"> </div> <!></div> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main"><!> <!> <!> <!></div></div> <div><!></div>',1);function Mn(t,e){var De;te(e,!0);const i=B(e,"small",3,!1),a=B(e,"useVideoBackground",3,!0),r=!!((De=window.PlayPilotLinkInjections)!=null&&De.no_affiliate);Or("title",e.title);const n=W(()=>(!i()||r)&&e.title.description);let l=G(!1),c=G(!1),s=G(!1),d=G(!1);Be(()=>{a()&&e.title.embeddable_url&&qo(Sn(e.title.embeddable_url)).then(fe=>{O(d,fe,!0)})});var u=tf(),p=J(u);let f;var h=S(p),g=S(h);let y;var w=S(g);ur(w,{get title(){return e.title},onload:()=>O(l,!0),lazy:!1});var m=j(g,2);let _;var x=S(m);Ft(m,(fe,Ge)=>Ne==null?void 0:Ne(fe,Ge),()=>2);var E=j(m,2),z=S(E),P=S(z);Tn(P,{});var T=j(P),R=j(z,2);ov(R,{get genres(){return e.title.genres}});var A=j(R,2),L=S(A),k=j(A,2),I=S(k),N=j(k,2);{var q=fe=>{var Ge=$v(),at=S(Ge);U(ci=>Y(at,`${e.title.length??""} ${ci??""}`),[()=>re("Minutes")]),b(fe,Ge)};V(N,fe=>{!i()&&e.title.length&&fe(q)})}var M=j(E,2),Z=S(M);{var F=fe=>{Jv(fe,{get title(){return e.title}})};V(Z,fe=>{e.title.embeddable_url&&fe(F)})}var H=j(Z,2);{let fe=W(()=>Ro(e.title));Gv(H,{get title(){return e.title.title},get url(){return o(fe)}})}var K=j(h,2),Q=S(K);{var X=fe=>{kv(fe,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>oe(le.ExpandTitleDescription,e.title)})};V(Q,fe=>{o(n)&&fe(X)})}var $=j(Q,2);{var ne=fe=>{bv(fe,{get playlinks(){return e.title.providers},get title(){return e.title}})};V($,fe=>{r||fe(ne)})}var ke=j($,2);zv(ke,{get title(){return e.title}});var Ae=j(ke,2);Iv(Ae,{get title(){return e.title}});var de=j(p,2);let be;var he=S(de);{var Ce=fe=>{Xv(fe,{get embeddable_url(){return e.title.embeddable_url}})},Qe=fe=>{var Ge=ve(),at=J(Ge);Ca(at,()=>o(s),ci=>{var Ct=ef();let ee;U(se=>{ae(Ct,"src",se),ee=we(Ct,1,"svelte-16ajinh",null,ee,{loaded:o(c),blur:o(s)})},[()=>dr(o(s)?e.title.standing_poster:e.title.medium_poster)]),_e("load",Ct,()=>O(c,!0)),_e("error",Ct,()=>O(s,!0)),b(ci,Ct)}),b(fe,Ge)};V(he,fe=>{a()&&o(d)?fe(Ce):fe(Qe,!1)})}U(fe=>{f=we(p,1,"content svelte-16ajinh",null,f,{small:i()}),y=we(g,1,"poster svelte-16ajinh",null,y,{loaded:o(l)}),_=we(m,1,"heading svelte-16ajinh",null,_,{truncate:i()}),Y(x,e.title.title),Y(T,` ${e.title.imdb_score??""}`),Y(L,e.title.year),Y(I,fe),be=we(de,1,"background svelte-16ajinh",null,be,{small:i()})},[()=>re(`Type: ${e.title.type}`)]),b(t,u),ie()}function sa(t,e){const{onclick:i}=e;function a(r){return r.button!==1?null:(i(r),r)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const Yo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},Dn={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function af({key:t}){var a,r,n;if(!gt("tracking"))return 0;const e=(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:r[t];if(e!==void 0)return e;(n=window.PlayPilotLinkInjections)!=null&&n.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function Jo(t){const e=af(t);return Math.floor(e*t.numberOfVariants)}function rf(t){var i;const e=Jo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function nf(t,e=1){return gt("tracking")?Jo(t)===e:!1}function lf(t){const e=rf(t);oe(le.SplitTestView,null,{key:t.key,variant:e})}var of=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),sf=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),cf=C('<button class="button svelte-1mt6g1y"> </button>'),df=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),uf=C('<div class="background svelte-1mt6g1y"></div>'),pf=C("<!> <!>",1),vf=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Qo(t,e){te(e,!0),oe(le.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),lf(Dn.TopScrollFormat);const i=W(()=>e.campaign.disclaimer),a=W(()=>e.campaign.content),r=W(()=>e.campaign.cta),n=W(()=>o(a).format),l=W(()=>o(a).header),c=W(()=>o(a).header_logo),s=W(()=>o(a).image_uuid),d=W(()=>o(r).header),u=W(()=>o(r).url),p=W(()=>o(n)==="large"),f=W(()=>Do(o(s),Yo.TopScrollBackground)),h=W(()=>Do(o(s),Yo.TopScrollContent));let g=G(0);function y(){oe(le.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var w=vf();w.__click=y;let m,_;var x=S(w),E=S(x);{var z=A=>{var L=of();U(()=>{ae(L,"src",o(h)),ae(L,"alt",o(l))}),b(A,L)},P=A=>{var L=df(),k=J(L);{var I=F=>{var H=sf();U(()=>ae(H,"src",o(c))),b(F,H)};V(k,F=>{o(c)&&F(I)})}var N=j(k,2),q=S(N),M=j(N,2);{var Z=F=>{var H=cf(),K=S(H);U(()=>Y(K,o(d))),b(F,H)};V(M,F=>{o(d)&&F(Z)})}U(()=>Y(q,o(l))),b(A,L)};V(E,A=>{o(p)?A(z):A(P,!1)})}var T=j(x,2);{var R=A=>{var L=pf(),k=J(L);{var I=M=>{var Z=uf();let F;U(()=>F=Fe(Z,"",F,{"--background":`url('${o(f)??""}')`})),b(M,Z)};V(k,M=>{o(s)&&M(I)})}var N=j(k,2);{var q=M=>{Ln(M,{get disclaimer(){return o(i)}})};V(N,M=>{o(i)&&M(q)})}b(A,L)};V(T,A=>{o(p)||A(R)})}Ft(w,(A,L)=>sa==null?void 0:sa(A,L),()=>({onclick:y})),ji(()=>St(w,"clientWidth",A=>O(g,A))),U(()=>{ae(w,"href",o(u)),m=we(w,1,"top-scroll svelte-1mt6g1y",null,m,{simple:o(p)}),_=Fe(w,"",_,{"--width":`${o(g)??""}px`})}),b(t,w),ie()}pe(["click"]);var ff=C('<div class="content svelte-r7ubzi"><!></div>'),hf=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function gf(t,e){let i=G(!1);var a=hf();a.__touchstart=()=>O(i,!o(i));var r=S(a);Oe(r,()=>e.children);var n=j(r,2);{var l=c=>{var s=ff(),d=S(s);Oe(d,()=>e.content),Me(1,s,()=>ni,()=>({duration:100})),b(c,s)};V(n,c=>{o(i)&&c(l)})}_e("mouseenter",a,()=>O(i,!0)),_e("mouseleave",a,()=>O(i,!1)),b(t,a)}pe(["touchstart"]);var mf=C('<div class="info svelte-qcpiki"><!></div>'),yf=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),bf=C('<span class="name svelte-qcpiki"> </span>'),wf=C('<div class="subheader svelte-qcpiki"> </div>'),xf=C('<div class="action svelte-qcpiki"> </div>'),_f=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),kf=C('<img class="background svelte-qcpiki" alt=""/>'),Sf=C('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),Ef=C('<div class="disclaimer svelte-qcpiki"><!></div>'),Tf=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Xo(t,e){te(e,!0);const i=B(e,"compact",3,!1),a=W(()=>e.campaign.disclaimer),r=W(()=>e.campaign.content),n=W(()=>e.campaign.cta),l=W(()=>e.campaign.campaign_type),c=W(()=>o(r).header),s=W(()=>o(r).subheader),d=W(()=>o(r).header_logo),u=W(()=>o(r).image),p=W(()=>o(r).video),f=W(()=>o(n).header),h=W(()=>o(n).url),g=W(()=>o(n).subheader);let y=G(0);oe(le.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function w(){oe(le.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var m=Tf();let _;m.__click=w;var x=S(m);{var E=I=>{var N=mf(),q=S(N);{var M=F=>{gf(F,{content:K=>{var Q=kt();U(()=>Y(Q,o(g))),b(K,Q)},children:(K,Q)=>{var X=kt("Ad");b(K,X)},$$slots:{content:!0,default:!0}})},Z=F=>{var H=kt();U(()=>Y(H,o(g))),b(F,H)};V(q,F=>{i()?F(M):F(Z,!1)})}b(I,N)};V(x,I=>{o(g)&&I(E)})}var z=j(x,2);{var P=I=>{var N=_f(),q=S(N);{var M=ne=>{var ke=yf();U(()=>ae(ke,"src",o(d))),b(ne,ke)};V(q,ne=>{o(d)&&ne(M)})}var Z=j(q,2),F=S(Z);{var H=ne=>{var ke=bf(),Ae=S(ke);U(()=>Y(Ae,o(c))),b(ne,ke)};V(F,ne=>{o(c)&&ne(H)})}var K=j(F,2);{var Q=ne=>{var ke=wf(),Ae=S(ke);U(()=>Y(Ae,o(s))),b(ne,ke)};V(K,ne=>{o(s)&&ne(Q)})}var X=j(Z,2);{var $=ne=>{var ke=xf(),Ae=S(ke);U(()=>Y(Ae,o(f))),b(ne,ke)};V(X,ne=>{o(f)&&ne($)})}St(N,"clientHeight",ne=>O(y,ne)),b(I,N)};V(z,I=>{(o(d)||o(c)||o(s)||o(f))&&I(P)})}var T=j(z,2);{var R=I=>{var N=kf();U(()=>ae(N,"src",o(u))),b(I,N)},A=I=>{var N=ve(),q=J(N);{var M=Z=>{var F=Sf();F.muted=!0;var H=S(F);U(()=>ae(H,"src",o(p))),b(Z,F)};V(q,Z=>{o(l)==="video"&&o(p)&&Z(M)},!0)}b(I,N)};V(T,I=>{o(l)==="image"&&o(u)?I(R):I(A,!1)})}var L=j(T,2);{var k=I=>{var N=Ef();let q;var M=S(N);Ln(M,{get disclaimer(){return o(a)}}),U(()=>q=Fe(N,"",q,{"--offset":`${o(y)??""}px`})),b(I,N)};V(L,I=>{o(a)&&I(k)})}Ft(m,(I,N)=>sa==null?void 0:sa(I,N),()=>({onclick:w})),U(()=>{ae(m,"href",o(h)),_=we(m,1,"display svelte-qcpiki",null,_,{compact:i()})}),b(t,m),ie()}pe(["click"]);var Pf=C('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function Cf(t,e){var s,d;te(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",a=(d=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:d.explore_navigation_path;cn();var r=Pf();r.__click=()=>oe(le.CardToExploreCta);var n=S(r);ae(n,"src",i);var l=j(n,4),c=S(l);Ht(c,{}),U(()=>ae(r,"href",a)),b(t,r),ie()}pe(["click"]);function zf(t,e){var f,h;te(e,!0);const i=g=>{var y=ve(),w=J(y);{var m=x=>{Qo(x,{get campaign(){return l}})},_=x=>{Cf(x,{})};V(w,x=>{l?x(m):x(_,!1)})}b(g,y)},a=g=>{var y=ve(),w=J(y);{var m=_=>{Xo(_,{get campaign(){return c}})};V(w,_=>{c&&_(m)})}b(g,y)},r=B(e,"initialScrollPosition",3,0),n=ho(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=ja("top_scroll"),c=ja("card"),s=(h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||s&&!document.querySelector(zn);let u=!1;oe(le.TitleModalView,e.title),La()&&Vt(Et.TitleInterest,{title:e.title.title,source:yi.Card}),st(()=>{const g=Date.now();return()=>oe(le.TitleModalClose,e.title,{time_spent:Date.now()-g})});function p(){u||(oe(le.TitleModalScroll,e.title),u=!0)}{let g=W(()=>d?i:null),y=W(()=>c?a:null);br(t,{onscroll:p,get initialScrollPosition(){return r()},get bubble(){return o(g)},get prepend(){return o(y)},tall:!0,children:(w,m)=>{Mn(w,dn({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}ie()}var If=C(" <strong> </strong>",1),jf=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),Af=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),Lf=C('<button class="more svelte-ke01cs"> </button>'),Mf=C('<div class="header svelte-ke01cs"><div class="heading svelte-ke01cs" id="name"> </div> <!></div> <div class="content svelte-ke01cs"><div class="heading small svelte-ke01cs" id="credits"> </div> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function Df(t,e){te(e,!0);const i=W(()=>e.participant.name),a=W(()=>e.participant.birth_date),r=W(()=>e.participant.death_date),n=30;let l=G(Le([])),c=G(1),s=G(!0),d=G(!0);st(p),gt("pixels")&&Vt(Et.ParticipantView,{participant:e.participant.name});function u(L){return new Date(L).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function p(){O(d,!0);try{const L=await Sv(e.participant,{page:o(c)});O(l,[...o(l),...L],!0),O(s,(L==null?void 0:L.length)>=n)}catch{O(s,!1)}finally{O(d,!1),O(c,o(c)+1)}}var f=Mf(),h=J(f),g=S(h),y=S(g);Ft(g,(L,k)=>Ne==null?void 0:Ne(L,k),()=>2);var w=j(g,2);{var m=L=>{var k=jf(),I=S(k),N=j(I),q=S(N),M=j(N);{var Z=F=>{var H=If(),K=J(H),Q=j(K),X=S(Q);U(($,ne)=>{Y(K,`, ${$??""} `),Y(X,ne)},[()=>re("Died On"),()=>u(o(r))]),b(F,H)};V(M,F=>{o(r)&&F(Z)})}U((F,H)=>{Y(I,`${F??""} `),Y(q,H)},[()=>re("Born On"),()=>u(o(a))]),b(L,k)};V(w,L=>{o(a)&&L(m)})}var _=j(h,2),x=S(_),E=S(x);Ft(x,(L,k)=>Ne==null?void 0:Ne(L,k),()=>3);var z=j(x,2),P=S(z);Pe(P,17,()=>o(l),Ie,(L,k)=>{Vo(L,{get title(){return o(k)},onclick:I=>bi({event:I,data:o(k)})})});var T=j(P,2);{var R=L=>{var k=ve(),I=J(k);Pe(I,16,()=>({length:6}),Ie,(N,q)=>{var M=Af();b(N,M)}),b(L,k)},A=L=>{var k=ve(),I=J(k);{var N=q=>{var M=Lf();M.__click=p;var Z=S(M);U(F=>Y(Z,F),[()=>re("Show More")]),b(q,M)};V(I,q=>{o(s)&&q(N)},!0)}b(L,k)};V(T,L=>{o(d)?L(R):L(A,!1)})}U(L=>{Y(y,o(i)),Y(E,L)},[()=>re("Credits")]),b(t,f),ie()}pe(["click"]);function qf(t,e){te(e,!0);const i=B(e,"initialScrollPosition",3,0);let a=G(0);oe(le.ParticipantModalView,null,{participant:e.participant.name}),st(()=>{const r=Date.now();return()=>oe(le.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),br(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{Df(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),sn("innerWidth",r=>O(a,r,!0)),ie()}var Nf=C('<div class="content svelte-16hba4m"><!></div>');function Rf(t,e){const i=B(e,"initialScrollPosition",3,0);br(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=Nf(),l=S(n);Wo(l,{}),b(a,n)},$$slots:{default:!0}})}function Of(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var Bf=Ye('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function Ff(t){var e=Bf();b(t,e)}var Hf=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Vf=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Uf=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),Wf=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function Gf(t,e){te(e,!0),Or("scope","popover");const i=e.bubble&&nf(Dn.TopScrollFormat,1),a=W(()=>({duration:jn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),c=G(!1),s=G(0),d=G(0),u=G(0);st(async()=>{await Ea(),p(),await h(),e.append&&requestAnimationFrame(()=>{f(),h()}),await Ea(),y()});function p(){if(!o(r))return;const{top:k,right:I,bottom:N,height:q}=o(r).getBoundingClientRect(),M=g();O(n,k-M<0&&window.innerHeight-N>k+q,!0);const Z=window.innerWidth-I-M;I+M>window.innerWidth&&(o(r).style.left=`${Z}px`)}function f(){O(l,o(s)>450)}async function h(){if(O(u,0),await new Promise(F=>requestAnimationFrame(F)),!o(r))return;const{top:k,height:I}=o(r).getBoundingClientRect(),N=g(),q=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,M=o(l)?o(d)+q:0,Z=o(n)?window.innerHeight-k-N-M:k+I-M-N;O(u,Math.min(Z,window.innerHeight*.8),!0)}function g(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function y(){var M;if(!((M=o(r))!=null&&M.firstChild))return;const k=o(r).firstChild,{offsetHeight:I,scrollHeight:N,scrollTop:q}=k;N<=I?O(c,!1):O(c,q+I<N)}var w=Wf();let m,_;var x=S(w),E=S(x);Oe(E,()=>e.children);var z=j(E,2);{var P=k=>{var I=Hf(),N=S(I),q=S(N);Ff(q),Me(3,I,()=>ni,()=>({duration:100})),b(k,I)};V(z,k=>{o(c)&&k(P)})}var T=j(x,2);{var R=k=>{var I=Vf(),N=S(I);Oe(N,()=>e.bubble),Me(7,I,()=>Aa,()=>o(a)),b(k,I)};V(T,k=>{e.bubble&&k(R)})}var A=j(T,2);{var L=k=>{var I=Uf(),N=S(I);Oe(N,()=>e.append),Me(7,I,()=>Aa,()=>o(a)),St(I,"clientHeight",q=>O(d,q)),b(k,I)};V(A,k=>{e.append&&o(l)&&k(L)})}Je(w,k=>O(r,k),()=>o(r)),U(()=>{m=we(w,1,"popover svelte-wxwoko",null,m,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),_=Fe(w,"",_,{"--max-height":o(u)?o(u)+"px":null})}),_e("scroll",x,y),Me(7,x,()=>Aa,()=>o(a)),St(w,"clientHeight",k=>O(s,k)),b(t,w),ie()}var Kf=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Zf(t,e){te(e,!0);const i=u=>{var p=ve(),f=J(p);{var h=g=>{Qo(g,{get campaign(){return r}})};V(f,g=>{r&&g(h)})}b(u,p)},a=u=>{var p=ve(),f=J(p);{var h=g=>{Xo(g,{get campaign(){return n},compact:!0})};V(f,g=>{n&&g(h)})}b(u,p)},r=ja("top_scroll"),n=ja("card");let l=G(null);oe(le.TitlePopoverView,e.title),La()&&Vt(Et.TitleInterest,{title:e.title.title,source:yi.Card}),st(()=>{c();const u=Date.now();return()=>oe(le.TitlePopoverClose,e.title,{time_spent:Date.now()-u})});function c(){const u=e.event.target;if(!(u!=null&&u.getClientRects))return;const p=Array.from(u.getClientRects()),h=p.map(y=>y.x).map(y=>Math.abs(y-e.event.clientX)),g=p[h.indexOf(Math.min(...h))];o(l).style.top=g.top+window.scrollY+"px",o(l).style.left=g.left+window.scrollX+"px",o(l).style.height=g.height+"px"}var s=Kf(),d=S(s);{let u=W(()=>n?a:null),p=W(()=>r?i:null);Gf(d,{get append(){return o(u)},get bubble(){return o(p)},children:(f,h)=>{Mn(f,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}Je(s,u=>O(l,u),()=>o(l)),b(t,s),ie()}let wr=null,Di=null;function Yf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Di&&xr();const i=t.currentTarget;wr=i,setTimeout(()=>{wr===i&&(Di=Bt(Zf,{target:Bn(),props:{event:t,title:e.title_details}}))},100)}async function xr(t=!0){if(Di){const e=ta(Di,{outro:t});wr=null,Di=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Jf(t){if(!Di)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(li)||e.closest(oi)||xr()}function Qf(){wr=null}function Xf(){return!!Di}var $f=C('<div class="content svelte-c2erhr"><!></div>'),eh=C("<div><!></div>"),th=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),ih=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),ah=C("<!> <!>",1),rh=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function nh(t,e){te(e,!0);const i=B(e,"initialIndex",3,0),a=B(e,"onchange",3,()=>null),r=300;let n,l=G(!1);st(()=>{setTimeout(()=>{n==null||n.setIndex(i()),requestAnimationFrame(()=>O(l,!0))})});function c(s){a()(s),n.setIndex(s)}br(t,{blur:!0,dialog:d=>{var u=rh(),p=J(u);Fe(p,"",{},{"--transition-duration":"300ms"});var f=S(p);{const y=(_,x)=>{let E=()=>x==null?void 0:x().currentIndex;var z=ve(),P=J(z);Pe(P,17,()=>e.items,Ie,(T,R,A)=>{var L=eh();let k;L.__click=()=>c(A);var I=S(L);{var N=q=>{var M=$f(),Z=S(M);Oe(Z,()=>e.each,()=>o(R),E),Me(3,M,()=>ni,()=>({duration:o(l)?r:0})),b(q,M)};V(I,q=>{(Math.abs(A-E())===1||E()===A)&&q(N)})}U(()=>k=we(L,1,"item svelte-c2erhr",null,k,{active:A===E()})),b(T,L)}),b(_,z)},w=(_,x)=>{let E=()=>x==null?void 0:x().currentIndex,z=()=>x==null?void 0:x().reachedEnd;var P=ah(),T=J(P);{var R=k=>{var I=th();I.__click=()=>c(E()-1);var N=S(I);Ht(N,{size:21,direction:"left",title:"Previous"}),b(k,I)};V(T,k=>{E()>0&&k(R)})}var A=j(T,2);{var L=k=>{var I=ih();I.__click=()=>c(E()+1);var N=S(I);Ht(N,{size:21,title:"Next"}),b(k,I)};V(A,k=>{z()||k(L)})}b(_,P)};let m=W(()=>o(l)?r:0);Je(No(f,{threshold:40,moveThreshold:40,get transitionDuration(){return o(m)},children:y,controls:w,$$slots:{default:!0,controls:!0}}),_=>n=_,()=>n)}var h=j(p,2),g=S(h);In(g,{size:"42px",onclick:()=>Nn(),"aria-label":"Close",children:(y,w)=>{pr(y,{size:24})},$$slots:{default:!0}}),Me(7,h,()=>na),b(d,u)},$$slots:{dialog:!0}}),ie()}pe(["click"]);function lh(t,e){te(e,!0);const i=B(e,"initialIndex",3,0);nh(t,{get items(){return e.titles},get initialIndex(){return i()},onchange:r=>oe(le.ExploreTitleRailSetIndex,e.titles[r],{index:r}),each:(r,n=vt,l=vt)=>{{let c=W(()=>{var s;return n().sid===((s=e.titles[l()])==null?void 0:s.sid)});Mn(r,{get title(){return n()},get useVideoBackground(){return o(c)}})}},$$slots:{each:!0}}),ie()}const et=[];function bi({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&zo(e))return;e==null||e.preventDefault(),et!=null&&et.length&&qn();const c=Bn(),s={initialScrollPosition:r,...l},d=oh({type:t,target:c,data:a,props:s});n&&$o({type:t,injection:i,data:n}),$o({type:t,injection:i,data:a,scrollPosition:r,component:d})}function oh({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Bt(qf,{target:e,props:{participant:i,...a}}):t==="explore"?Bt(Rf,{target:e,props:{...a}}):t==="titles-rail"?Bt(lh,{target:e,props:{titles:i,...a}}):Bt(zf,{target:e,props:{title:i,...a}})}function $o({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){et.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function qn(t=!0){et.length&&(dh(),ta(et[et.length-1].component,{outro:t}))}function sh(t=!0){qn(t),et.pop()}function Nn(t=!0){for(qn(t);et.length>0;)et.pop()}function es(){return et[et.length-2]||null}function ch(){if(et.length<2)return;sh();const t=et.pop();t&&bi({...t})}function dh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Li?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(et[et.length-1].scrollPosition=e.scrollTop)}function uh(t,e){if(zo(t))return;let i=t.target;if(!i||(i.hasAttribute(li)||(i=i.closest(oi)),!i))return;const a=i.getAttribute(li);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),Of(()=>{xr(!1),bi({event:t,injection:r,data:r.title_details})},!jn.current&&window.innerWidth>=Li&&!window.matchMedia("(pointer: coarse)").matches))}var ph=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),vh=C('<!> <a target="_blank"> </a>',1),fh=C(" <!>.",1),hh=C("<!> <br/>",1),gh=C(" <br/>",1),mh=C('<span class="svelte-1to4glm"><!></span>'),yh=C('<p class="svelte-1to4glm"></p>');function bh(t,e){te(e,!0);const i=B(e,"onclickmodal",3,()=>null);function a(s,d){oe(le.AfterArticlePlaylinkClick,s,{playlink:d})}function r(s,d,u){oe(le.AfterArticleModalButtonClick,d),i()(s,u)}var n=ve(),l=J(n);{var c=s=>{var d=yh();Pe(d,21,()=>e.linkInjections,Ie,(u,p)=>{const f=W(()=>{const{key:_,title:x,title_details:E,after_article_style:z}=o(p);return{key:_,title:x,title_details:E,after_article_style:z}}),h=W(()=>{var _;return((_=o(f).title_details)==null?void 0:_.providers)||[]});var g=mh(),y=S(g);{var w=_=>{var x=hh(),E=J(x);{var z=T=>{var R=ph(),A=J(R),L=j(A);L.__click=N=>N.stopPropagation();var k=S(L);k.__click=N=>r(N,o(f).title_details,o(p));var I=S(k);U((N,q)=>{Y(A,`"${o(f).title??""}" ${N??""} `),Y(I,q)},[()=>re("Is Available To Stream"),()=>re("View Streaming Options")]),b(T,R)},P=T=>{var R=fh(),A=J(R),L=j(A);Pe(L,17,()=>o(h),Ie,(k,I,N)=>{let q=()=>o(I).name,M=()=>o(I).url;var Z=vh(),F=J(Z);{var H=X=>{var $=kt();U(ne=>Y($,ne),[()=>N===o(h).length-1?`, ${re("And")}`:","]),b(X,$)};V(F,X=>{N&&X(H)})}var K=j(F,2);K.__click=()=>a(o(f).title_details,q());var Q=S(K);U(()=>{ae(K,"href",M()),Y(Q,q())}),b(k,Z)}),U(k=>Y(A,`"${o(f).title??""}" ${k??""} `),[()=>re("Is Available To Stream On")]),b(T,R)};V(E,T=>{o(f).after_article_style==="modal_button"?T(z):T(P,!1)})}b(_,x)},m=_=>{var x=gh(),E=J(x);U(z=>Y(E,`"${o(f).title??""}" ${z??""} `),[()=>re("Title Unavailable Suffix")]),b(_,x)};V(y,_=>{o(h).length?_(w):_(m,!1)})}U(()=>ae(g,"data-playpilot-injection-key",o(f).key)),b(u,g)}),b(s,d)};V(l,s=>{e.linkInjections.length&&s(c)})}b(t,n),ie()}pe(["click"]);let Ma=null;function wh(t,e){var l,c;if(Ma||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,r=(a?document.querySelector(a):null)||t[t.length-1],n=((c=window.PlayPilotLinkInjections)==null?void 0:c.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),Ma=Bt(bh,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>bi({event:s,injection:d,data:d.title_details})}})}function xh(){var t;Ma&&(ta(Ma),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Ma=null)}var _h=C('<p class="svelte-1epbbn0"> </p>');function kh(t,e){te(e,!1),cn();var i=_h(),a=S(i);U(r=>Y(a,r),[()=>{var r,n;return((n=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.in_text_disclaimer_text)||re("In-Text Disclaimer")}]),b(t,i),ie()}let Da=null;function Sh(t){var n,l,c,s,d,u;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||Da)return;const e=document.createElement("div"),i=(s=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:s.in_text_disclaimer_selector,a=(i?document.querySelector(i):null)||t[0],r=((u=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:u.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",a.insertAdjacentElement(r,e),Da=Bt(kh,{target:e})}function Eh(){var t;Da&&(ta(Da),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Da=null)}const li="data-playpilot-injection-key",oi=`[${li}]`;function Th(t,e={aiInjections:[],manualInjections:[]}){On(),Ah();const i=Lh(e);if(!i.length)return[];const a=mi(t.map(d=>d.innerText).join(" ")),n=Dh(i).filter(d=>a.includes(mi(d.sentence))),l={};let c=-1;for(const d of Nh(n)){c++;const u=t.findIndex(E=>mi(E.innerText).includes(mi(d.sentence))),p=t[u];if(!p)continue;const f=Eo(d.title,p,["A"]);if(!(f!=null&&f.nodeValue)||To(f)){const E=Eo(d.title,p);if(E&&To(E)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:g}=Ph(d);let y=-1,w=!1;lr(p.innerHTML,d.title)===1&&(y=p.innerHTML.indexOf(d.title));const{phrase_before:_,phrase_after:x}=Ch(p,d);if(y===-1&&(_||x)){const E=[_,d.title,x].filter(Boolean).join(" ");if(y=p.innerHTML.indexOf(E),y===-1){const z=bd(p.innerHTML,d.title,_||"",x||"");if(z){const{leadingSpaces:P,trailingSpaces:T}=wd(z.match);g.innerHTML=z.match.trim();const R=z.index+P,A=z.index+z.match.length-T;if(p.innerHTML.slice(R,A).includes("href="))continue;Rn(p.innerHTML,d.title,p,h,R,A)&&(y=z.index,w=!0)}}}if(y===-1&&(f!=null&&f.nodeValue)){const E=p.innerHTML.indexOf(f.nodeValue),z=p.innerHTML.indexOf(d.sentence),P=z===-1?p.innerHTML.indexOf(d.sentence.slice(0,20)):-1,T=d.sentence.split(" ")[0],A=lr(p.innerHTML,T)===1?p.innerHTML.indexOf(T):-1,L=pd(n.slice(0,c+1),d,["title","sentence"])-1,k=xd(f.nodeValue,p,L);y=Math.max(E,P,k,A,z,0)}if(y!==-1&&!w&&!Rn(p.innerHTML,d.title,p,h,y)){const E=kd(d.title,p.innerHTML);E>-1?Rn(p.innerHTML,d.title,p,h,E):l[d.key]="Injection would have lead to broken HTML."}}Ih(n),zh();const s=qh(i);return s.length&&wh(t,s),document.querySelector(oi)&&Sh(t),i.filter(d=>d.title_details).map((d,u)=>{const p=!d.manual&&Rh(d,u,i),f=d.duplicate??p;f&&(l[d.key]=p?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${li}="${d.key}"]`),g=is(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,y=n.find(m=>m.key===d.key),w=g?l[d.key]||(y?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:f,failed:g,failed_message:w,matchingElement:h}})}function Ph(t){var a;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=document.createElement("a");return i.dataset.playpilotPosterUrl=(a=t.title_details)==null?void 0:a.standing_poster,i.innerText=t.title,i.href=t.playpilot_url,i.target="_blank",i.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",i),{injectionElement:e,linkElement:i}}function Rn(t,e,i,a,r,n=-1){const l=u=>Array.from(u.querySelectorAll(`a, ${oi}`)).filter(p=>!p.innerText).length,c=document.createElement("div");c.innerHTML=t;const s=l(c),d=c.innerText;return n>0?c.innerHTML=gd(t,a.outerHTML,r,n):c.innerHTML=hd(t,e,a.outerHTML,r),Math.abs(c.innerText.length-d.length)>1||s!=l(c)?!1:(i.innerHTML=c.innerHTML,!0)}function Ch(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(lr(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=md(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function zh(){const t=Array.from(document.querySelectorAll(`${oi} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const a=getComputedStyle(i);for(const r of e)a.getPropertyValue(r)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${r}`)}}function Ih(t){window.addEventListener("mousemove",Jf),window.addEventListener("click",i=>uh(i,t)),document.querySelectorAll(oi).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{Xf()||Yf(n,r)}),i.addEventListener("mouseleave",Qf))})}function On(){document.querySelectorAll(oi).forEach(e=>jh(e.getAttribute(li)||"")),xh(),Eh(),Nn(!1),xr(!1)}function jh(t){var r;const e=document.querySelector(`[${li}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(n=>n.remove());const a=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=a||""}function Ah(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(oi)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function Lh({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Mh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function ts(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&is(t)}function is(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function Dh(t){return as(t).filter(e=>e.in_text!==!1&&ts(e))}function qh(t){return as(t).filter(e=>e.after_article===!0&&ts(e))}function as(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&rs(i,e)))}function Nh(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const a=i.title.length-e.title.length;return a!==0?a:0})}function Rh(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&rs(a,t))}function rs(t,e){return t.title===e.title&&mi(t.sentence)===mi(e.sentence)}function Bn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Oh(){const t=gi();if(!t)throw new Error("No token was provided");try{return await await ri(`/domains/config?api-token=${t}`)||null}catch{return null}}pe(["click"]),pe(["input"]),pe(["click"]),pe(["click"]),pe(["click"]),pe(["mousedown","touchstart"]),pe(["mousedown","touchstart"]),pe(["click"]),pe(["click"]),pe(["click"]),pe(["click"]),pe(["click"]),pe(["click"]);function Bh(t,e){te(e,!0);const i=100;let a=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){n();return}if(!window.__tcfapi){a<i&&setTimeout(r,100),a++;return}window.__tcfapi("addEventListener",2,(l,c)=>{if(!c)return;const{purpose:s,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const u=p=>s.consents[p]===!0;Sd({ads:u(1),pixels:u(1)&&u(7),split_tests:u(9)&&u(10),tracking:u(7)&&u(8),affiliate:u(1)&&u(7)}),n()})}function n(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ie()}var Fh=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Hh=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Vh=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Uh=C('<button class="svelte-1tp7i1s"></button>'),Wh=C("<small>You are using the beta version of TPI</small>"),Gh=C('<button class="svelte-1tp7i1s">Use beta script</button>'),Kh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Zh=C("<option> </option>"),Yh=C('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function Jh(t,e){te(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(Le(d())),l=G(!1),c=null,s=G(184);un(()=>{c&&clearInterval(c)});function d(){var z,P,T,R,A,L;const m=window.PlayPilotLinkInjections,_=((z=m.evaluated_link_injections)==null?void 0:z.filter(k=>!k.failed))||[],x=((P=m.evaluated_link_injections)==null?void 0:P.filter(k=>k.failed))||[],E=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:m.domain_sid},{label:"Organization",data:m.organization_sid},{label:"HTML selector",data:m.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([k,I])=>({label:k,data:I})),[`Succesful injections (${_.length})`]:_.map(k=>({label:k.title,data:k.sentence})),[`Failed injections (${x.length})`]:x.map(k=>({label:k.title,data:`Reason: ${k.failed_message} | Sentence: ${k.sentence}`})),[`Fetched ads (${((T=m.ads)==null?void 0:T.length)||0})`]:(R=m.ads)==null?void 0:R.map(k=>({label:k.campaign_name,data:k})),[`Tracking events (${((A=m.tracked_events)==null?void 0:A.length)||0})`]:(L=m.tracked_events)==null?void 0:L.map(k=>({label:k.event,data:k.payload})),[`Visible pixels (${E.length})`]:E.map((k,I)=>({label:I+1,data:k.src}))}}function u(m){o(l)||(a.push(m.key),O(l,i.some(_=>a.slice(a.length-_.length,a.length).join("")===_),!0),c=setInterval(()=>O(n,d(),!0),200))}function p(m){window.PlayPilotLinkInjections.ads.unshift({campaign_format:m,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function f(m){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(Dn).forEach(({key:_,numberOfVariants:x})=>{const E=1/x;window.PlayPilotLinkInjections.split_test_identifiers[_]=Math.min(E*m,1)})}function h(){var x,E;const m=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!m)return;(E=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||E.call(x);const _=document.createElement("script");for(const z of m.attributes)_.setAttribute(z.name,z.value);_.getAttribute("onload")||_.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),_.src=m.src.replace("link-injection","link-injection@next"),m.insertAdjacentElement("afterend",_),m.remove()}var g=ve();_e("keydown",je,u);var y=J(g);{var w=m=>{var _=Yh(),x=j(S(_),4);{var E=de=>{var be=Fh();b(de,be)};V(x,de=>{var be,he,Ce;(be=window.PlayPilotLinkInjections.config)!=null&&be.exclude_urls_pattern&&Mi().match((Ce=(he=window.PlayPilotLinkInjections)==null?void 0:he.config)==null?void 0:Ce.exclude_urls_pattern)&&de(E)})}var z=j(x,2);Pe(z,17,()=>Object.entries(o(n)),Ie,(de,be)=>{var he=W(()=>Ui(o(be),2));let Ce=()=>o(he)[0],Qe=()=>o(he)[1];var De=Vh(),fe=S(De),Ge=S(fe),at=j(fe,2);{var ci=ee=>{var se=ve(),ge=J(se);{var rt=Ve=>{var Zt=ve(),Hn=J(Zt);Pe(Hn,17,Qe,Ie,(Yt,Jt,vg,fg)=>{let ag=()=>o(Jt).label,rg=()=>o(Jt).data;var ls=Hh(),os=S(ls),ng=S(os),lg=j(os,2),og=S(lg);U(sg=>{Y(ng,ag()),Y(og,sg)},[()=>JSON.stringify(rg())]),b(Yt,ls)}),b(Ve,Zt)};V(ge,Ve=>{Array.isArray(Qe())&&Ve(rt)})}b(ee,se)},Ct=ee=>{var se=kt("No data");b(ee,se)};V(at,ee=>{var se;(se=Qe())!=null&&se.length?ee(ci):ee(Ct,!1)})}U(()=>Y(Ge,Ce())),b(de,De)});var P=j(z,4);P.__click=()=>p("card");var T=j(P,2);T.__click=()=>p("top_scroll");var R=j(T,6);Pe(R,16,()=>({length:4}),Ie,(de,be,he)=>{var Ce=Uh();Ce.__click=()=>f(he),Ce.textContent=he,b(de,Ce)});var A=j(R,4);A.__click=()=>console.log(gn(window.PlayPilotLinkInjections.config));var L=j(A,2);L.__click=()=>console.log(gn(window.PlayPilotLinkInjections.config).pageText);var k=j(L,4);k.__click=function(...de){var be;(be=e.onrerender)==null||be.apply(this,de)};var I=j(k,2);{var N=de=>{var be=Wh();b(de,be)},q=de=>{var be=Gh();be.__click=h,b(de,be)};V(I,de=>{r?de(N):de(q,!1)})}var M=j(I,2);{var Z=de=>{var be=Kh();be.__click=()=>{mr(),window.PlayPilotLinkInjections.config.explore_use_router=!oa(),gr()},b(de,be)};V(M,de=>{oa()||de(Z)})}var F=j(M,4),H=j(S(F),2);Oc(H,window.PlayPilotLinkInjections.region),H.__change=de=>{mr(),window.PlayPilotLinkInjections.region=de.target.value,gr()};var K=j(F,2),Q=j(S(K),2);Q.__change=de=>{mr(),window.PlayPilotLinkInjections.language=de.target.value,gr()},Pe(Q,21,()=>Object.entries(v),Ie,(de,be)=>{var he=W(()=>Ui(o(be),2));let Ce=()=>o(he)[0],Qe=()=>o(he)[1];var De=Zh(),fe=S(De),Ge={};U(at=>{lo(De,at),Y(fe,Ce()),Ge!==(Ge=Qe())&&(De.value=(De.__value=Qe())??"")},[()=>Qe()===Ia()]),b(de,De)});var X=j(K,4),$=j(S(X),2);ae($,"min",80),ae($,"max",240),ae($,"step",8),$.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(s)}px`);var ne=j($,2),ke=S(ne),Ae=j(X,4);Ae.__click=()=>O(l,!1),U(()=>Y(ke,o(s))),za($,()=>o(s),de=>O(s,de)),b(m,_)};V(y,m=>{o(l)&&m(w)})}b(t,g),ie()}pe(["click","change","input"]);function Qh(t,e){te(e,!1);const i=Array.from(document.querySelectorAll(oi)),a=[],r=Date.now();let n=!1,l=null;st(()=>{if(!rr())return c(),()=>{var p;return(p=l==null?void 0:l.disconnect)==null?void 0:p.call(l)}});function c(){l=new IntersectionObserver(s),i.forEach(p=>{l.observe(p)})}function s(p){p.forEach(f=>{if(!f.isIntersecting)return;const h=f.target.getAttribute(li);h&&a.push(h),l.unobserve(f.target)})}function d(){const{scrollHeight:p,scrollTop:f,clientHeight:h}=document.documentElement;return f/(p-h)*100}function u(){var f,h;if(n||document.visibilityState!=="hidden")return;n=!0;const p=Date.now();oe(le.UserLeft,null,{time_start:r,time_end:p,time_spent:p-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(f=window.PlayPilotLinkInjections)==null?void 0:f.tracked_events)==null?void 0:h.map(g=>g.event))||[],scroll_percentage:d()})}cn(),_e("visibilitychange",je,u),ie()}function Xh(t,e){te(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new yr,r=.7,n="[data-playpilot-poster]";let l=G(0),c={},s=null;const d=W(()=>o(l)<Li);un(h);function u(){var x,E;if((E=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&E.disable_scroll_reveal_posters||!o(d))return;g();const y=window.innerHeight,w=new yr,m=y*r,_=y-m;for(const z of i){const{top:P}=z.getBoundingClientRect();P<m&&P>_&&w.add(z)}for(const z of w){if(a.has(z))continue;const P=z.dataset.playpilotPosterUrl;P in c&&c[P]!==z||(p(z,P),a.add(z),c[P]=z)}}function p(y,w){const m=document.createElement("img");m.classList.add("playpilot-floating-poster"),m.dataset.playpilotPoster="",m.src=w,m.alt="",m.onload=()=>m.classList.add("loaded"),y.insertAdjacentElement("afterbegin",m)}function f(y){const w=y.querySelector(n);w&&(w.classList.add("animating-out"),setTimeout(()=>w.remove(),500))}function h(){for(const y of Array.from(document.querySelectorAll(n)))y.remove()}function g(){s&&clearTimeout(s),s=setTimeout(()=>{for(const y of a)f(y),a.delete(y),c={}},1e3)}_e("scroll",je,u),sn("innerWidth",y=>O(l,y,!0)),ie()}function $h(t,e){te(e,!0);const i=[];st(()=>{if(!La())return;const r=new IntersectionObserver(n=>{n.forEach(l=>{if(!l.isIntersecting)return;r.unobserve(l.target);const c=l.target.getAttribute(li),s=e.linkInjections.find(u=>u.key===c),d=s==null?void 0:s.title_details;!c||!s||!d||i.includes(d.sid)||a(d)})});return e.linkInjections.forEach(n=>{n.matchingElement&&r.observe(n.matchingElement)}),()=>r.disconnect()});function a({sid:r,genres:n,participants:l,providers:c,title:s}){i.push(r),Vt(Et.TitleInterest,{title:s,source:yi.Link}),n.slice(0,3).forEach(d=>{var u;Vt(Et.GenreInterest,{genre:(u=sr.find(p=>p.slug===d))==null?void 0:u.name,source:yi.Link})}),l==null||l.slice(0,5).forEach(d=>{Vt(Et.ParticipantInterest,{participant:d.name,source:yi.Link})}),c==null||c.forEach(d=>{Vt(Et.ProviderInterest,{provider:d.name,source:yi.Link})})}ie()}var eg=C("<!> <!>",1),tg=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!> <!>',1);function ig(t,e){te(e,!0);let i=G(Le([])),a=G(null),r=G(Le(rr()));bo();let n=G(!1),l=G(!0),c=G(!0),s=G(Le([]));const d=W(()=>o(a)||{}),u=W(()=>Qn(o(d).ai_injections,()=>[],!0)),p=W(()=>Qn(o(d).manual_injections,()=>[],!0)),f=W(()=>hn(o(i))),h=y();Be(()=>{o(r)&&!o(l)&&w()}),gr(),un(On);async function g(){or()||(await h,Id(),oe(le.ArticlePageView),!(!o(u).length&&!o(p).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await Ao())))}async function y(){var q;O(l,!0);try{o(r)&&O(n,await yo({throwError:!0}),!0)}catch{oe(le.AuthFailed)}try{const M=window.PlayPilotLinkInjections.config||await Oh()||{};if(window.PlayPilotLinkInjections.config=M,M!=null&&M.custom_style&&_(M.custom_style||""),M!=null&&M.explore_navigation_selector&&Bp(),M!=null&&M.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),M!=null&&M.domain_sid&&jo({organizationSid:M.organization_sid,domainSid:M.domain_sid}),O(c,cd(M),!0),o(c))return;M!=null&&M.html_selector&&(window.PlayPilotLinkInjections.selector=M==null?void 0:M.html_selector),O(i,gn(window.PlayPilotLinkInjections.config).elements,!0)}catch(M){oe(le.FetchingConfigFailed),console.error("TPI Config failed to fetch",M);return}try{if(O(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),O(a,o(a)||await ko(o(f),{maxTries:1,runAiWhenRelevant:!or()}),!0),O(l,!1),!o(a)||(q=window.PlayPilotLinkInjections.config)!=null&&q.disable_public_injections&&!(o(r)&&o(n)))return;if(jo({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){m({aiInjections:o(u),manualInjections:o(p)});return}if(!o(r)||or())return;O(a,await ko(o(f),{requireCompletedResult:!0,onpoll:M=>O(a,M,!0)}),!0),m({aiInjections:o(u),manualInjections:o(p)})}catch(M){console.error(M),oe(le.InjectionError,null,{message:M.message})}}function w(){m(Mh(o(s)))}function m(q={aiInjections:o(u),manualInjections:o(p)}){const M=Th(o(i),q);JSON.stringify(M)!==JSON.stringify(o(s))&&(O(s,M,!0),window.PlayPilotLinkInjections.evaluated_link_injections=M),o(r)||x(M)}function _(q){const M="playpilot-custom-style",Z=document.getElementById(M),F=Z||document.createElement("style");F.textContent=`body { ${q} }`,F.id=M,Z||document.body.appendChild(F)}function x(q){const M=q.filter(F=>!F.failed),Z=q.filter(F=>F.failed);if(M.length&&oe(le.ArticleInjected,null,{manual:M.filter(F=>F.manual).length,ai:M.filter(F=>!F.manual).length}),Z.length){const F=H=>Z.filter(({failed_message:K})=>K==null?void 0:K.includes(H)).length;oe(le.FailedInjectionsCount,null,{total:Z.length,sentence_not_found:F("sentence was not found"),already_linked:F("already inside of a link"),broken_html:F("broken HTML"),duplicate:F("duplicate"),unknown:F("unknown reasons")})}}var E=tg(),z=J(E),P=S(z);V(P,q=>{});var T=j(P,2);Jh(T,{onrerender:w});var R=j(z,2);{var A=q=>{Pn(q,{get pixels(){return o(a).pixels}})};V(R,q=>{var M,Z;(Z=(M=o(a))==null?void 0:M.pixels)!=null&&Z.length&&q(A)})}var L=j(R,2);{var k=q=>{$h(q,{get linkInjections(){return o(s)}})};V(L,q=>{o(s).length&&q(k)})}var I=j(L,2);Ca(I,()=>o(s),q=>{var M=eg(),Z=J(M);Qh(Z,{});var F=j(Z,2);Xh(F,{}),b(q,M)});var N=j(I,2);Bh(N,{onchange:g}),b(t,E),ie()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Bt(ig,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),On()}}})();
10
+ `}}function dr(t){return t?t.replace("/src/img",""):null}function Do(t,e=null){return t!=null&&t.length?`${ed}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var qd=C('<img class="svelte-p6g2a"/>');function ur(t,e){te(e,!0);const i=B(e,"width",3,96),a=B(e,"height",3,144),r=B(e,"lazy",3,!0),n=B(e,"onload",3,()=>null);var l=qd();U(c=>{ae(l,"src",c),ae(l,"alt",`Movie poster for '${e.title.title??""}'`),ae(l,"width",i()),ae(l,"height",a()),ae(l,"loading",r()?"lazy":null)},[()=>dr(e.title.standing_poster)]),_e("error",l,({target:c})=>c.src=td),_e("load",l,function(...c){var s;(s=n())==null||s.apply(this,c)}),b(t,l),ie()}var Nd=Ye('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function pr(t,e){const i=B(e,"size",3,16);var a=Nd();U(()=>{ae(a,"width",i()),ae(a,"height",i())}),b(t,a)}var Rd=C('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function Od(t,e){const i=B(e,"embeddable_url",3,"");var a=Rd(),r=S(a);En(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=j(r,2);n.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var l=j(n,2);l.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var c=S(l);pr(c,{size:24}),Me(3,a,()=>ni,()=>({duration:100})),b(t,a)}pe(["click"]);const Bd="1304688689641511",Fd="https://endpoint-youtube-availability.playpilot.workers.dev";async function qo(t){var i,a,r,n;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const l=await fetch(`${Fd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const c=await l.json();return!((r=c.blocked)!=null&&r[e]||!c.blocked&&c.allowed&&!((n=c.allowed)!=null&&n.includes(e)))}catch{return!1}}let vr={};function Hd(t){const e=Bn(),i={onclose:Vd,embeddable_url:t.embeddable_url||""};vr=Bt(Od,{target:e,props:i})}function Vd(){vr&&(ta(vr,{outro:!0}),vr=null)}function Sn(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function Ud(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&Sn(r.embeddable_url);try{n&&await qo(n)&&(a=r)}catch{}i++}return a}var Wd=Ye('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Gd=Ye('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Kd=Ye('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function Zd(t,e){const i=B(e,"muted",3,!1);var a=Kd(),r=S(a);{var n=c=>{var s=Wd();b(c,s)},l=c=>{var s=Gd();b(c,s)};V(r,c=>{i()?c(n):c(l,!1)})}b(t,a)}var Yd=C('<button class="mute svelte-1ivh34t" aria-label="Mute"><!></button>'),Jd=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function En(t,e){var _;te(e,!0);const i=B(e,"embeddable_url",3,""),a=B(e,"controls",19,()=>[]),r=B(e,"muted",3,!1),n=B(e,"loop",3,!1),l=B(e,"captions",3,!1),c=B(e,"showMuteControls",3,!1),s=W(()=>Sn(i())),d=((_=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:_.replace("#",""))||"fa548a";let u=G(null),p=G(Le(r()));function f(x=!o(p)){var E,z;o(p)!=x&&((z=(E=o(u))==null?void 0:E.contentWindow)==null||z.postMessage("mute","*")),O(p,x,!0)}var h={toggleMute:f},g=ve(),y=J(g);{var w=x=>{var E=Jd(),z=J(E);Je(z,R=>O(u,R),()=>o(u));var P=j(z,2);{var T=R=>{var A=Yd();A.__click=()=>f();var L=S(A);Zd(L,{get muted(){return o(p)}}),b(R,A)};V(P,R=>{c()&&R(T)})}U(R=>ae(z,"src",`https://video.playpilot.net/?video_id=${o(s)??""}&color=${d}&muted=${r()??""}&loop=${n()??""}&captions=${l()??""}&controls=${R??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),b(x,E)},m=x=>{var E=kt("Something went wrong");b(x,E)};V(y,x=>{o(s)?x(w):x(m,!1)})}return b(t,g),ie(h)}pe(["click"]);var Qd=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function No(t,e){te(e,!0);let i=B(e,"gap",3,"0"),a=B(e,"fill",3,!0),r=B(e,"transitionDuration",3,300),n=B(e,"threshold",3,30),l=B(e,"moveThreshold",3,0),c=B(e,"currentIndex",15,0),s=B(e,"shown",31,()=>Le([])),d=B(e,"sliderWidth",15,0),u=B(e,"currentScrollPosition",15,0),p=B(e,"maxWidth",15,0),f=B(e,"reachedEnd",15,!1),h=B(e,"distanceToEnd",15,0),g=B(e,"passedThreshold",15,!1),y=B(e,"passedMoveThreshold",15,!1),w=B(e,"allowWheel",3,!1),m=B(e,"end",3,()=>null),_=B(e,"change",3,ee=>null),x=B(e,"onend",19,m),E=B(e,"onchange",19,_),z=B(e,"onresize",3,()=>null),P=G(!1),T=G(!1),R=0,A=0,L=G(void 0),k=G(void 0),I=null,N=null;Be(()=>{o(k)&&ne(),o(k)&&h(p()-u()-d())}),st(()=>(be(),()=>I==null?void 0:I.disconnect()));function q(ee){const le=o(k).children.length,ge=Math.max(0,Math.min(ee,le-1));X({setIndex:ge}),ne()}function M(){O(T,!0),q(c()),requestAnimationFrame(()=>O(T,!1))}function Z(ee){he(ee.target)&&(ee.preventDefault(),R=ke(ee),O(P,!0))}function F(){if(o(P)){if(!g())X({setIndex:c()});else{const ee=u()-A,le=ee>0?1:-1;ee!=0&&X({direction:le})}O(P,!1),g(!1)}}function H(ee){if(!o(P))return;const le=ke(ee),ge=A+(R-le),rt=R-le;y(Math.abs(rt)>l()),g(Math.abs(u()-A)>n()),y()&&($(ge-l()*(rt>0?1:-1)),ne())}function K(ee){if(!w())return;const{deltaX:le,deltaY:ge}=ee;if(Math.abs(le)<Math.abs(ge))return;ee.preventDefault();const Ve=u()+le*20*.02;$(Ve),ne(),N&&clearTimeout(N),N=setTimeout(()=>{X({direction:le>0?1:-1})},100)}function Q(ee){he(document.activeElement)&&(ee.key=="ArrowLeft"&&q(c()-1),ee.key=="ArrowRight"&&q(c()+1))}function X({setIndex:ee=-1,direction:le=1}={}){const ge=Ae(),rt=c();c(0);let Ve;for(Ve=0;Ve<ge.length;Ve++)if(ee!=-1){if(Ve>=ee)break}else if(le>0&&ge[Ve]>u()||le<0&&ge[Ve+1]>u())break;c(Math.min(Ve,de().length-1)),$(ge[c()],!0),A=u(),E()&&c()!=rt&&E()(c())}function $(ee,le=!1){u(ee);const ge=p()-d();f(u()>=ge),f()&&(x()&&x()(),a()&&le&&u(ge))}function ne(){const ee=Ae();Array.from(ee).forEach((le,ge)=>{u()+d()<le||s().includes(ge)||s([...s(),ge])})}function ke(ee){var le,ge;return ee.pageX??((ge=(le=ee.touches)==null?void 0:le[0])==null?void 0:ge.pageX)}function Ae(){return de().map(ee=>ee.offsetLeft)}function de(){return Array.from(o(k).children).filter(ee=>ee instanceof HTMLElement).filter(ee=>ee.src!="about:blank")}function be(){I=new ResizeObserver(ee=>{for(const le of ee){const ge=Array.isArray(le.contentBoxSize)?le.contentBoxSize[0]:le.contentBoxSize;p(ge.inlineSize)}z()()}),I.observe(o(k))}function he(ee){return ee===o(L)||(ee==null?void 0:ee.closest(".slider"))===o(L)}var Ce={setIndex:q,reposition:M},Qe=Qd();_e("mousedown",je,Z),_e("mouseup",je,F),_e("mousemove",je,H),_e("touchstart",je,Z,void 0,!0),_e("touchend",je,F),_e("touchmove",je,H,void 0,!0),_e("keydown",je,Q),_e("resize",je,M);var De=J(Qe);let fe;var Ge=S(De);let at;var ci=S(Ge);Oe(ci,()=>e.children??vt,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:q,currentScrollPosition:u(),maxWidth:p(),reachedEnd:f(),distanceToEnd:h()})),Je(Ge,ee=>O(k,ee),()=>o(k)),Je(De,ee=>O(L,ee),()=>o(L));var Ct=j(De,2);return Oe(Ct,()=>e.controls??vt,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:q,currentScrollPosition:u(),maxWidth:p(),reachedEnd:f(),distanceToEnd:h()})),U(ee=>{fe=we(De,1,"slider svelte-1gs8ha8",null,fe,{dragging:o(P),"passed-threshold":g()}),at=Fe(Ge,"",at,ee)},[()=>({transform:`translateX(${u()*-1}px)`,"transition-duration":`${(o(P)||o(T)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),_e("wheel",De,K),St(De,"clientWidth",d),b(t,Qe),ie(Ce)}var Xd=Ye("<title> </title>"),$d=Ye('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function Ht(t,e){const i=B(e,"direction",3,"right"),a=B(e,"title",3,""),r=B(e,"size",3,16);var n=$d(),l=S(n);{var c=s=>{var d=Xd(),u=S(d);U(()=>Y(u,a())),b(s,d)};V(l,s=>{a()&&s(c)})}U(()=>{we(n,0,i(),"svelte-1m6nwwy"),ae(n,"width",`${r()??""}px`),ae(n,"height",`${r()??""}px`)}),b(t,n)}function Ne(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var eu=C('<div class="heading svelte-1ayf7b5"> </div>'),tu=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),iu=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),au=C("<!> <!>",1),ru=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function fr(t,e){te(e,!0);let i=B(e,"heading",3,""),a=B(e,"onchange",3,()=>null),r=B(e,"onresize",3,()=>null),n=B(e,"slider",15);var l=ru(),c=J(l);{var s=p=>{var f=eu(),h=S(f);Ft(f,(g,y)=>Ne==null?void 0:Ne(g,y),()=>2),U(()=>Y(h,i())),b(p,f)};V(c,p=>{i()&&p(s)})}var d=j(c,2),u=S(d);Je(No(u,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(f,h)=>{let g=()=>h==null?void 0:h().setIndex,y=()=>h==null?void 0:h().currentIndex,w=()=>h==null?void 0:h().reachedEnd;var m=au(),_=J(m);{var x=P=>{var T=tu();T.__click=()=>g()(y()-1);var R=S(T);Ht(R,{direction:"left",title:"Previous"}),b(P,T)};V(_,P=>{y()>0&&P(x)})}var E=j(_,2);{var z=P=>{var T=iu();T.__click=()=>g()(y()+1);var R=S(T);Ht(R,{title:"Next"}),b(P,T)};V(E,P=>{w()||P(z)})}b(f,m)},children:(f,h)=>{var g=ve(),y=J(g);Oe(y,()=>e.children),b(f,g)},$$slots:{controls:!0,default:!0}}),f=>n(f),()=>n()),b(t,l),ie()}pe(["click"]);function Ro(t){return`${Xc}/${t.type}/${t.slug}/`}var nu=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),lu=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),ou=C('<a class="poster svelte-12ph9f6"><!></a>'),su=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),cu=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),du=C('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),uu=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),pu=C('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),vu=C("<div><!></div>");function Oo(t,e){te(e,!0);let i=B(e,"minimumLength",3,1),a=B(e,"heading",3,""),r=B(e,"size",3,"small"),n=B(e,"aside",3,!1),l=B(e,"expandable",3,!1),c=B(e,"expandedTitle",15,null),s=B(e,"expandedRailKey",15,null),d=B(e,"onclick",3,()=>null),u=B(e,"onexpand",3,()=>null);const p=vn(),h=Rr("scope")==="popover"?Rr("title"):null;let g=G(null),y=G(null),w=G(null),m=!1;st(()=>{l()&&z()});function _(k,I,N){var M,Z,F,H;k==null||k.preventDefault();const q=I[N];if(l()&&!P(q)){const K=(M=o(g))==null?void 0:M.querySelectorAll(".title")[N],X=(((Z=o(g))==null?void 0:Z.getBoundingClientRect().right)||0)-K.getBoundingClientRect().right;m=!0,setTimeout(()=>m=!1,500),X<K.clientWidth*2&&((F=o(y))==null||F.setIndex(N-2)),E(q),k&&u()(q);return}k&&(oa()?bi({event:k,type:"titles-rail",data:I,returnToTitle:h,props:{initialIndex:N}}):bi({event:k,data:q,returnToTitle:h}),(H=o(w))==null||H.toggleMute(!0),d()(q))}async function x(){const k=await e.titles,I=await Ud(k);I&&(c()||s()&&s()!==p||E(I))}function E(k){s(p),c(k)}function z(){s()===p||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(q=>q.getBoundingClientRect().top>=0).sort((q,M)=>q.getBoundingClientRect().top-M.getBoundingClientRect().top)[0]!==o(g)||(c(null),s(null),x())}function P(k){var I;return s()===p&&k.sid===((I=c())==null?void 0:I.sid)}function T(k,I){l()&&(m||setTimeout(()=>_(null,k,I),250))}var R=vu();_e("scroll",je,z);let A;var L=S(R);Pa(L,()=>e.titles,k=>{fr(k,{get heading(){return a()},children:(I,N)=>{var q=ve(),M=J(q);Pe(M,16,()=>({length:12}),Ie,(Z,F)=>{var H=pu(),K=j(S(H),4);{var Q=X=>{var $=uu(),ne=S($);Pe(ne,20,()=>({length:3}),Ie,(ke,Ae)=>{var de=du();b(ke,de)}),b(X,$)};V(K,X=>{n()&&X(Q)})}b(Z,H)}),b(I,q)},$$slots:{default:!0}})},(k,I)=>{var N=ve(),q=J(N);{var M=Z=>{fr(Z,{get heading(){return a()},onchange:F=>T(o(I),F),onresize:()=>{var F;return(F=o(y))==null?void 0:F.reposition()},get slider(){return o(y)},set slider(F){O(y,F,!0)},children:(F,H)=>{var K=ve(),Q=J(K);Pe(Q,17,()=>o(I),Ie,(X,$,ne,ke)=>{const Ae=W(()=>P(o($))),de=W(()=>Ro(o($))),be=W(()=>le=>_(le,o(I),ne));var he=cu();let Ce;var Qe=S(he),De=S(Qe);{var fe=le=>{var ge=lu(),rt=S(ge);rt.__click=function(...Yt){var Jt;(Jt=o(be))==null||Jt.apply(this,Yt)};var Ve=j(rt,2);{var Zt=Yt=>{Je(En(Yt,{get embeddable_url(){return o($).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),Jt=>O(w,Jt,!0),()=>o(w))},Hn=Yt=>{var Jt=nu();U(()=>ae(Jt,"src",o($).medium_poster)),b(Yt,Jt)};V(Ve,Yt=>{o($).embeddable_url?Yt(Zt):Yt(Hn,!1)})}U(()=>ae(rt,"href",o(de))),Me(2,ge,()=>ni,()=>({delay:200,duration:200})),b(le,ge)},Ge=le=>{var ge=ou();ge.__click=function(...Ve){var Zt;(Zt=o(be))==null||Zt.apply(this,Ve)};var rt=S(ge);ur(rt,{get title(){return o($)},width:96,height:144}),U(()=>ae(ge,"href",o(de))),b(le,ge)};V(De,le=>{o(Ae)?le(fe):le(Ge,!1)})}var at=j(Qe,2);at.__click=function(...le){var ge;(ge=o(be))==null||ge.apply(this,le)};var ci=S(at),Ct=j(at,2);{var ee=le=>{var ge=su();ge.__click=function(...Ve){var Zt;(Zt=o(be))==null||Zt.apply(this,Ve)};var rt=S(ge);U(()=>Y(rt,o($).description)),b(le,ge)};V(Ct,le=>{n()&&le(ee)})}U(()=>{Ce=we(he,1,"title svelte-12ph9f6",null,Ce,{expanded:o(Ae)}),ae(at,"href",o(de)),Y(ci,o($).title)}),b(X,he)}),b(F,K)},$$slots:{default:!0}})};V(q,Z=>{var F;((F=o(I))==null?void 0:F.length)>=i()&&Z(M)})}b(k,N)}),Je(R,k=>O(g,k),()=>o(g)),U(()=>{A=we(R,1,`titles ${r()??""}`,"svelte-12ph9f6",A,{"with-aside":n()}),ae(R,"data-role",l()?"expandable-rail":null)}),b(t,R),ie()}pe(["click"]);var fu=C('<div class="rail svelte-1b834ry"><!></div>'),hu=C('<div data-testid="explore-home"></div> <!>',1);function gu(t,e){te(e,!0);let i=G(null),a=G(null);const r=[{heading:"List: Trending",params:{ordering:cr.Popular},properties:{expandable:!0}},{heading:"List: New",params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{aside:!0}},{heading:"List: Upcoming",params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{}},{heading:"List: Cinema",params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{expandable:!0}},{heading:"List: Demand",params:{from_playlist_sid:"licBS"},properties:{aside:!0}}];async function n(s={}){var d;try{return(d=await kn(s))==null?void 0:d.results}catch(u){throw console.log(u),se(oe.ExploreHomeRailError,null,{message:u.message||u.status.toString()||"",params:s}),new Error(u)}}var l=hu();_e("scroll",je,onscroll);var c=j(J(l),2);Pe(c,17,()=>r,Ie,(s,d)=>{let u=()=>o(d).heading,p=()=>o(d).params,f=()=>o(d).properties;var h=fu(),g=S(h);{let y=W(()=>re(u())),w=W(()=>n(p()));Oo(g,dn({get heading(){return o(y)},get titles(){return o(w)},size:"flexible",minimumLength:7},f,{onclick:()=>se(oe.ExploreTitleRailModalView,null,{rail:u()}),onexpand:m=>se(oe.ExploreTitleRailExpandClick,m,{rail:u()}),get expandedTitle(){return o(i)},set expandedTitle(m){O(i,m,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(m){O(a,m,!0)}}))}b(s,h)}),b(t,l),ie()}function Vt(t,e={}){const i=new Image;i.src=mu(t,e||{})}function mu(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Bd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Bo(t,e={}){return()=>{Be(()=>Vt(t,e))}}function yu(t,e={}){return i=>{const a=()=>Vt(t,e);Be(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var bu=C("<button><!></button>");function la(t,e){const i=B(e,"variant",3,"filled"),a=B(e,"size",3,"base"),r=B(e,"label",3,null),n=B(e,"active",3,!1);var l=bu();let c;l.__click=function(...d){var u;(u=e.onclick)==null||u.apply(this,d)};var s=S(l);Oe(s,()=>e.children??vt),U(()=>{c=we(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",c,{active:n()}),ae(l,"aria-label",r())}),b(t,l)}pe(["click"]);var wu=Ye('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function Tn(t,e){const i=B(e,"size",3,14);var a=wu();U(()=>{ae(a,"width",i()),ae(a,"height",i())}),b(t,a)}function Fo(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(s=>s.name===r.name),l=n==null?void 0:n.extra_info.category,c=r.extra_info.category;(l==="RENT"&&c==="BUY"||l==="BUY"&&c==="RENT")&&(i=i.filter(s=>s.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var xu=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function Pn(t,e){te(e,!0);let i=G(Le(Math.random()));var a=ve();_e("updateconsent",je,()=>O(i,Math.random(),!0));var r=J(a);Ca(r,()=>o(i),n=>{var l=ve(),c=J(l);{var s=d=>{var u=ve(),p=J(u);Pe(p,17,()=>e.pixels,Ie,(f,h)=>{var g=xu();U(()=>ae(g,"src",o(h))),b(f,g)}),b(d,u)};V(c,d=>{gt("pixels")&&d(s)})}b(n,l)}),b(t,a),ie()}var _u=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function ku(t,e){te(e,!0);const i=B(e,"size",3,30),a=B(e,"onclick",3,()=>null),r=W(()=>e.playlink.name),n=W(()=>e.playlink.url),l=W(()=>e.playlink.logo_url),c=W(()=>e.playlink.pixels);var s=_u();s.__click=function(...h){var g;(g=a())==null||g.apply(this,h)};let d;var u=S(s),p=j(u,2);{var f=h=>{Pn(h,{get pixels(){return o(c)}})};V(p,h=>{var g;(g=o(c))!=null&&g.length&&h(f)})}U(h=>{ae(s,"href",o(n)),ae(s,"data-playlink",o(r)),d=Fe(s,"",d,{"--size":`${i()??""}px`}),ae(u,"src",h),ae(u,"alt",o(r)),ae(u,"height",i()),ae(u,"width",i())},[()=>dr(o(l))]),b(t,s),ie()}pe(["click"]);var Su=C('<span class="more svelte-1plv45z"> </span>'),Eu=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Tu=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Ho(t,e){te(e,!0);const i=B(e,"size",3,30),a=W(()=>Fo(e.playlinks).slice(0,3));function r(p){p.stopPropagation()}var n=Tu(),l=S(n);Pe(l,17,()=>o(a),Ie,(p,f)=>{ku(p,{get playlink(){return o(f)},onclick:r,get size(){return i()}})});var c=j(l,2);{var s=p=>{var f=Su(),h=S(f);U(()=>Y(h,`+${e.playlinks.length-o(a).length}`)),b(p,f)};V(c,p=>{e.playlinks.length>o(a).length&&p(s)})}var d=j(c,2);{var u=p=>{var f=Eu();b(p,f)};V(d,p=>{e.playlinks.length||p(u)})}b(t,n),ie()}var Pu=C("<div>Series</div>"),Cu=C("<div> </div>"),zu=C('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Iu(t,e){te(e,!0);const i=B(e,"onclick",3,()=>null);var a=zu();a.__click=function(..._){var x;(x=i())==null||x.apply(this,_)};var r=S(a),n=S(r);ur(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=j(n,2),c=S(l),s=S(c);Tn(s,{size:12});var d=j(s),u=j(c,2);{var p=_=>{var x=Pu();b(_,x)};V(u,_=>{e.title.type==="series"&&_(p)})}var f=j(u,2);{var h=_=>{var x=Cu(),E=S(x);U(()=>Y(E,`${e.title.length??""} min`)),b(_,x)};V(f,_=>{e.title.length&&_(h)})}var g=j(r,2),y=S(g),w=S(y),m=j(y,2);Ho(m,{get playlinks(){return e.title.providers},size:20}),U(()=>{Y(d,` ${e.title.imdb_score||"-"}`),Y(w,e.title.title)}),b(t,a),ie()}pe(["click"]),Zs();var ju=C('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function Au(t){var e=ju(),i=j(S(e),2),a=S(i);Fe(a,"",{},{width:"60%"}),b(t,e)}var Lu=C('<div class="svelte-pkkpyl"> </div>'),Mu=C('<button class="title svelte-pkkpyl" data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <div> </div> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Vo(t,e){var k;te(e,!0);const i=B(e,"onclick",3,()=>null),a=!!((k=window.PlayPilotLinkInjections)!=null&&k.no_affiliate);var r=Mu();r.__click=function(...I){var N;(N=i())==null||N.apply(this,I)};var n=S(r),l=S(n);ur(l,{get title(){return e.title},width:30,height:43,lazy:!0});var c=j(n,2),s=S(c),d=S(s),u=j(s,2),p=S(u),f=S(p);Tn(f,{size:11});var h=j(f),g=j(p,2),y=S(g),w=j(g,2),m=S(w),_=j(w,2);{var x=I=>{var N=Lu(),q=S(N);U(()=>Y(q,`${e.title.length??""} min`)),b(I,N)};V(_,I=>{e.title.length&&I(x)})}var E=j(u,2);let z;var P=S(E),T=j(E,2);{var R=I=>{Ho(I,{get playlinks(){return e.title.providers}})};V(T,I=>{a||I(R)})}var A=j(c,2),L=S(A);Ht(L,{}),U(I=>{Y(d,e.title.title),Y(h,` ${e.title.imdb_score||"-"}`),Y(y,e.title.year),Y(m,I),z=we(E,1,"description svelte-pkkpyl",null,z,{large:a}),Y(P,e.title.description)},[()=>re(`Type: ${e.title.type}`)]),b(t,r),ie()}pe(["click"]);var Du=C('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function qu(t){var e=Du(),i=j(S(e),2),a=S(i);Fe(a,"",{},{width:"40%"});var r=j(a,2);Fe(r,"",{},{width:"60%"});var n=j(r,2);Fe(n,"",{},{width:"80%"}),b(t,e)}var Nu=C(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function Ru(t){var e=Nu();b(t,e)}var Ou=C("<div><!></div>"),Bu=C("<!> <!>",1),Fu=C("<p>Something went wrong</p>"),Hu=C('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function Vu(t,e){te(e,!0);const i=B(e,"searchQuery",3,""),a=B(e,"filter",19,()=>({}));let r=1,n=G(Le([])),l=null,c=0,s=JSON.stringify(a())+i(),d=G(Le(y())),u=G(0);const p=W(()=>o(u)>500),f=W(()=>o(u)>1400?8:o(u)>900?6:o(u)>600?4:3),h=W(()=>o(p)?Iu:Vo),g=W(()=>o(p)?Au:qu);Be(()=>{(i()||c!=0)&&w(i())}),Be(()=>{a()&&m()});async function y(){c+=1;const N=c,q={page_size:24,page:r};i()&&(q.search=i()),Object.entries(a()).forEach(([M,{type:Z,value:F}])=>{if(Z==="string")q[M]=F;else if(Z==="array")q[M]=F.join(",");else if(Z==="range"){const[H,K]=F;q[M+"_min"]=H,q[M+"_max"]=K}});try{const M=await kn(q)||{next:null,previous:null,results:[]};return N===c&&O(n,[...o(n),...M.results],!0),M}catch(M){throw console.log(M.status),se(oe.ExploreResultsError,null,{message:M.message||M.status.toString()||"",params:q}),new Error(M)}}async function w(N){z()&&(l&&clearTimeout(l),l=setTimeout(()=>{_(),O(d,y(),!0),N&&(se(oe.ExploreSearch,null,{query:N}),gt("pixels")&&Vt(Et.SearchQuery,{query:N}))},100))}function m(){z()&&(_(),O(d,y(),!0))}function _(){r=1,O(n,[],!0)}function x(){r++,O(d,y(),!0),se(oe.ExploreShowMore,null,{page:r})}function E(N,q){bi({event:N,data:q}),se(oe.ExploreTitleClick,q)}function z(){const N=JSON.stringify(a())+i();return N===s?!1:(s=N,!0)}var P=Hu(),T=J(P);let R,A;var L=S(T);Pe(L,17,()=>o(n),Ie,(N,q)=>{var M=ve(),Z=J(M);Ca(Z,()=>o(q).sid,F=>{var H=ve(),K=J(H);$r(K,()=>o(h),(Q,X)=>{X(Q,{get title(){return o(q)},onclick:$=>E($,o(q))})}),b(F,H)}),b(N,M)});var k=j(L,2);Pa(k,()=>o(d),N=>{var q=ve(),M=J(q);Pe(M,16,()=>({length:24}),Ie,(Z,F)=>{var H=ve(),K=J(H);$r(K,()=>o(g),(Q,X)=>{X(Q,{})}),b(Z,H)}),b(N,q)},void 0,N=>{});var I=j(T,2);Pa(I,()=>o(d),null,(N,q)=>{var M=W(()=>{var{next:$}=o(q);return{next:$}}),Z=W(()=>o(M).next),F=Bu(),H=J(F);{var K=$=>{var ne=Ou();let ke;var Ae=S(ne);la(Ae,{size:"large",onclick:x,children:(de,be)=>{var he=kt();U(Ce=>Y(he,Ce),[()=>re("Show More")]),b(de,he)},$$slots:{default:!0}}),U(()=>ke=we(ne,1,"show-more svelte-qc99of",null,ke,{grid:o(p)})),b($,ne)};V(H,$=>{o(Z)&&$(K)})}var Q=j(H,2);{var X=$=>{Ru($)};V(Q,$=>{var ne;!((ne=o(n))!=null&&ne.length)&&r===1&&$(X)})}b(N,F)},N=>{var q=Fu();b(N,q)}),U(()=>{R=we(T,1,"titles svelte-qc99of",null,R,{grid:o(p)}),A=Fe(T,"",A,{"--grid-columns":o(f)})}),St(T,"clientWidth",N=>O(u,N)),b(t,P),ie()}var Uu=Ye('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function Wu(t){var e=Uu();b(t,e)}var Gu=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Ku(t,e){te(e,!0);let i=G("");var a=Gu(),r=S(a),n=S(r);Wu(n);var l=j(r,2);l.__input=()=>e.oninput(o(i)),U(c=>ae(l,"placeholder",c),[()=>re("Search Movies And Shows")]),za(l,()=>o(i),c=>O(i,c)),b(t,a),ie()}pe(["input"]);const Zu=[{label:"Aruba",value:"AW"},{label:"Afghanistan",value:"AF"},{label:"Angola",value:"AO"},{label:"Anguilla",value:"AI"},{label:"Albania",value:"AL"},{label:"Andorra",value:"AD"},{label:"United Arab Emirates",value:"AE"},{label:"Argentina",value:"AR"},{label:"Armenia",value:"AM"},{label:"American Samoa",value:"AS"},{label:"Antigua and Barbuda",value:"AG"},{label:"Australia",value:"AU"},{label:"Austria",value:"AT"},{label:"Azerbaijan",value:"AZ"},{label:"Burundi",value:"BI"},{label:"Belgium",value:"BE"},{label:"Benin",value:"BJ"},{label:"Burkina Faso",value:"BF"},{label:"Bangladesh",value:"BD"},{label:"Bulgaria",value:"BG"},{label:"Bahrain",value:"BH"},{label:"Bahamas",value:"BS"},{label:"Bosnia and Herzegovina",value:"BA"},{label:"Belarus",value:"BY"},{label:"Belize",value:"BZ"},{label:"Bermuda",value:"BM"},{label:"Bolivia",value:"BO"},{label:"Brazil",value:"BR"},{label:"Barbados",value:"BB"},{label:"Brunei",value:"BN"},{label:"Bhutan",value:"BT"},{label:"Botswana",value:"BW"},{label:"Central African Republic",value:"CF"},{label:"Canada",value:"CA"},{label:"Switzerland",value:"CH"},{label:"Chile",value:"CL"},{label:"China",value:"CN"},{label:"Côte d'Ivoire",value:"CI"},{label:"Cameroon",value:"CM"},{label:"DR Congo",value:"CD"},{label:"Congo",value:"CG"},{label:"Cook Islands",value:"CK"},{label:"Colombia",value:"CO"},{label:"Comoros",value:"KM"},{label:"Cabo Verde",value:"CV"},{label:"Costa Rica",value:"CR"},{label:"Cuba",value:"CU"},{label:"Curaçao",value:"CW"},{label:"Cayman Islands",value:"KY"},{label:"Cyprus",value:"CY"},{label:"Czechia",value:"CZ"},{label:"Germany",value:"DE"},{label:"Djibouti",value:"DJ"},{label:"Dominica",value:"DM"},{label:"Denmark",value:"DK"},{label:"Dominican Republic",value:"DO"},{label:"Algeria",value:"DZ"},{label:"Ecuador",value:"EC"},{label:"Egypt",value:"EG"},{label:"Eritrea",value:"ER"},{label:"Spain",value:"ES"},{label:"Estonia",value:"EE"},{label:"Ethiopia",value:"ET"},{label:"Finland",value:"FI"},{label:"Fiji",value:"FJ"},{label:"Falkland Islands",value:"FK"},{label:"France",value:"FR"},{label:"Faroe Islands",value:"FO"},{label:"Micronesia",value:"FM"},{label:"Gabon",value:"GA"},{label:"United Kingdom",value:"GB"},{label:"Georgia",value:"GE"},{label:"Ghana",value:"GH"},{label:"Gibraltar",value:"GI"},{label:"Guinea",value:"GN"},{label:"Guadeloupe",value:"GP"},{label:"Gambia",value:"GM"},{label:"Guinea-Bissau",value:"GW"},{label:"Equatorial Guinea",value:"GQ"},{label:"Greece",value:"GR"},{label:"Grenada",value:"GD"},{label:"Greenland",value:"GL"},{label:"Guatemala",value:"GT"},{label:"Guyana",value:"GY"},{label:"Hong Kong",value:"HK"},{label:"Honduras",value:"HN"},{label:"Croatia",value:"HR"},{label:"Haiti",value:"HT"},{label:"Hungary",value:"HU"},{label:"Indonesia",value:"ID"},{label:"India",value:"IN"},{label:"Ireland",value:"IE"},{label:"Iran",value:"IR"},{label:"Iraq",value:"IQ"},{label:"Iceland",value:"IS"},{label:"Israel",value:"IL"},{label:"Italy",value:"IT"},{label:"Jamaica",value:"JM"},{label:"Jordan",value:"JO"},{label:"Japan",value:"JP"},{label:"Kazakhstan",value:"KZ"},{label:"Kenya",value:"KE"},{label:"Kyrgyzstan",value:"KG"},{label:"Cambodia",value:"KH"},{label:"Kiribati",value:"KI"},{label:"Saint Kitts and Nevis",value:"KN"},{label:"South Korea",value:"KR"},{label:"Kuwait",value:"KW"},{label:"Laos",value:"LA"},{label:"Lebanon",value:"LB"},{label:"Liberia",value:"LR"},{label:"Libya",value:"LY"},{label:"Saint Lucia",value:"LC"},{label:"Liechtenstein",value:"LI"},{label:"Sri Lanka",value:"LK"},{label:"Lesotho",value:"LS"},{label:"Lithuania",value:"LT"},{label:"Luxembourg",value:"LU"},{label:"Latvia",value:"LV"},{label:"Macao",value:"MO"},{label:"Morocco",value:"MA"},{label:"Monaco",value:"MC"},{label:"Moldova",value:"MD"},{label:"Madagascar",value:"MG"},{label:"Maldives",value:"MV"},{label:"Mexico",value:"MX"},{label:"Marshall Islands",value:"MH"},{label:"North Macedonia",value:"MK"},{label:"Mali",value:"ML"},{label:"Malta",value:"MT"},{label:"Myanmar",value:"MM"},{label:"Montenegro",value:"ME"},{label:"Mongolia",value:"MN"},{label:"Mozambique",value:"MZ"},{label:"Mauritania",value:"MR"},{label:"Martinique",value:"MQ"},{label:"Mauritius",value:"MU"},{label:"Malawi",value:"MW"},{label:"Malaysia",value:"MY"},{label:"Namibia",value:"NA"},{label:"New Caledonia",value:"NC"},{label:"Niger",value:"NE"},{label:"Nigeria",value:"NG"},{label:"Nicaragua",value:"NI"},{label:"Niue",value:"NU"},{label:"Netherlands",value:"NL"},{label:"Norway",value:"NO"},{label:"Nepal",value:"NP"},{label:"Nauru",value:"NR"},{label:"New Zealand",value:"NZ"},{label:"Oman",value:"OM"},{label:"Pakistan",value:"PK"},{label:"Panama",value:"PA"},{label:"Peru",value:"PE"},{label:"Philippines",value:"PH"},{label:"Palau",value:"PW"},{label:"Papua New Guinea",value:"PG"},{label:"Poland",value:"PL"},{label:"Puerto Rico",value:"PR"},{label:"North Korea",value:"KP"},{label:"Portugal",value:"PT"},{label:"Paraguay",value:"PY"},{label:"Palestine",value:"PS"},{label:"French Polynesia",value:"PF"},{label:"Qatar",value:"QA"},{label:"Romania",value:"RO"},{label:"Russian Federation",value:"RU"},{label:"Rwanda",value:"RW"},{label:"Saudi Arabia",value:"SA"},{label:"Sudan",value:"SD"},{label:"Senegal",value:"SN"},{label:"Singapore",value:"SG"},{label:"Solomon Islands",value:"SB"},{label:"Sierra Leone",value:"SL"},{label:"El Salvador",value:"SV"},{label:"San Marino",value:"SM"},{label:"Somalia",value:"SO"},{label:"Serbia",value:"RS"},{label:"South Sudan",value:"SS"},{label:"São Tomé and Príncipe",value:"ST"},{label:"Suriname",value:"SR"},{label:"Slovakia",value:"SK"},{label:"Slovenia",value:"SI"},{label:"Sweden",value:"SE"},{label:"Eswatini",value:"SZ"},{label:"Seychelles",value:"SC"},{label:"Syria",value:"SY"},{label:"Chad",value:"TD"},{label:"Togo",value:"TG"},{label:"Thailand",value:"TH"},{label:"Tajikistan",value:"TJ"},{label:"Turkmenistan",value:"TM"},{label:"Timor-Leste",value:"TL"},{label:"Tonga",value:"TO"},{label:"Trinidad and Tobago",value:"TT"},{label:"Tunisia",value:"TN"},{label:"Turkey",value:"TR"},{label:"Tuvalu",value:"TV"},{label:"Taiwan",value:"TW"},{label:"Tanzania",value:"TZ"},{label:"Uganda",value:"UG"},{label:"Ukraine",value:"UA"},{label:"Uruguay",value:"UY"},{label:"United States",value:"US"},{label:"Uzbekistan",value:"UZ"},{label:"Saint Vincent and the Grenadines",value:"VC"},{label:"Venezuela",value:"VE"},{label:"Vietnam",value:"VN"},{label:"Vanuatu",value:"VU"},{label:"Samoa",value:"WS"},{label:"Yemen",value:"YE"},{label:"South Africa",value:"ZA"},{label:"Zambia",value:"ZM"},{label:"Zimbabwe",value:"ZW"}];async function Yu(){const t=gi();if(!t)throw new Error("No token was provided");const e={region:await _n(),page:1,include_count:"false"};return await ri(`/providers/?api-token=${t}&`+yn(e))}function Ju(t){const e=t-1;return e*e*e+1}function Qu(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=P=>Math.sqrt(P)*120,easing:l=Ju}=a,c=getComputedStyle(t),s=c.transform==="none"?"":c.transform,[d,u]=c.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var p=Xu(t),f=t.clientWidth/i.width/p,h=t.clientHeight/i.height/p,g=e.left+e.width*d,y=e.top+e.height*u,w=i.left+i.width*d,m=i.top+i.height*u,_=(g-w)*f,x=(y-m)*h,E=e.width/i.width,z=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(_*_+x*x)):n,easing:l,css:(P,T)=>{var R=T*_,A=T*x,L=P+T*E,k=P+T*z;return`transform: ${s} translate(${R}px, ${A}px) scale(${L}, ${k});`}}}function Xu(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var $u=Ye('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function ep(t){var e=$u();b(t,e)}var tp=Ye('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function ip(t){var e=tp();b(t,e)}var ap=C('<div class="icon svelte-dfwzqz"><!></div>'),rp=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),np=C('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function lp(t,e){te(e,!0);let i=B(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=B(e,"selected",23,()=>[]),r=B(e,"placeholder",19,()=>`${re("Search")}...`),n=B(e,"onchange",3,()=>null),l=G("");const c=W(s);function s(){var g;return(g=i())!=null&&g.length?o(l)?i().filter(({label:y})=>y.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(g){const y=a().find(w=>w===g);a(y?a().filter(w=>w!==g):[...a(),g]),n()(a())}var u=np(),p=J(u),f=S(p),h=j(p,2);Pe(h,29,()=>o(c)||[],({label:g,value:y})=>y,(g,y)=>{let w=()=>o(y).label,m=()=>o(y).value;const _=W(()=>!!a().find(A=>A===m()));var x=rp(),E=S(x);let z;E.__click=()=>d(m());var P=S(E),T=j(P),R=S(T);Ca(R,()=>o(_),A=>{var L=ap(),k=S(L);{var I=q=>{ep(q)},N=q=>{ip(q)};V(k,q=>{o(_)?q(I):q(N,!1)})}Me(3,L,()=>na,()=>({start:.25,duration:100})),b(A,L)}),U(()=>{z=we(E,1,"option svelte-dfwzqz",null,z,{active:o(_)}),Y(P,`${w()??""} `)}),Wc(x,()=>Qu,()=>({duration:150})),b(g,x)}),U(()=>ae(f,"placeholder",r())),za(f,()=>o(l),g=>O(l,g)),b(t,u),ie()}pe(["click"]);var op=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),sp=C("<div><!> <!></div>");function Uo(t,e){te(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),c=G(0);function s(y){const w=y.target;w&&w.closest(".dropdown")!==o(a)&&O(i,!1)}function d(y){O(i,!o(i)),o(i)&&(O(c,0),O(l,0),u(y.target))}async function u(y){if(await Ea(),!o(r))return;const w=16,m=200,_=window.innerHeight,x=window.innerWidth,{top:E}=o(r).getBoundingClientRect(),{left:z}=y.getBoundingClientRect();O(n,z<window.innerWidth/2?"left":"right",!0),O(l,Math.max(Math.min(window.innerHeight-E-w,_*.6),m),!0),await Ea();const{left:P,right:T}=o(r).getBoundingClientRect(),R=x-T;P-w<0?O(c,R):R-w<0&&O(c,R-w)}var p=sp();_e("click",je,s);var f=S(p);Oe(f,()=>e.button,()=>({toggle:d}));var h=j(f,2);{var g=y=>{var w=op();let m;var _=S(w);Oe(_,()=>e.content),Je(w,x=>O(r,x),()=>o(r)),U(()=>m=Fe(w,"",m,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(c)?`${o(c)}px`:null})),Me(3,w,()=>na,()=>({start:.85,duration:100})),b(y,w)};V(h,y=>{o(i)&&y(g)})}Je(p,y=>O(a,y),()=>o(a)),U(()=>we(p,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),b(t,p),ie()}var cp=C('<span class="label svelte-1mfj6k7"> </span>'),dp=C('<div class="active-line svelte-1mfj6k7"></div>'),up=C('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function pp(t,e){te(e,!0);const i=B(e,"range",19,()=>[0,100]),a=B(e,"value",19,i),r=B(e,"label",3,""),n=B(e,"valueAppend",3,""),l=B(e,"formatFunction",3,F=>F.toString()),c=B(e,"onchange",3,()=>null);let s=i(),d=W(()=>Ui(s,2)),u=G(Le(o(d)[0])),p=G(Le(o(d)[1]));const f=W(()=>o(u)!==i()[0]||o(p)!==i()[1]),h=W(()=>100/(i()[1]-i()[0])*(o(u)-i()[0])),g=W(()=>100+100/(i()[1]-i()[0])*(o(p)-i()[1])-o(h)),y=W(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(u)-o(p))<5);Be(()=>{w(a())}),Be(()=>{O(p,Math.max(o(p),o(u)+1),!0),O(p,Math.min(o(p),i()[1]),!0),O(u,Math.min(o(u),o(p)-1),!0),O(u,Math.max(o(u),i()[0]),!0)});function w(F){(H=>{var K=Ui(H,2);O(u,K[0],!0),O(p,K[1],!0)})(F)}function m(){requestAnimationFrame(()=>c()([o(u),o(p)]))}var _=up(),x=S(_);{var E=F=>{var H=cp(),K=S(H);U((Q,X)=>Y(K,`${r()??""}: ${Q??""}—${X??""} ${n()??""}`),[()=>l()(o(u)),()=>l()(o(p))]),b(F,H)};V(x,F=>{r()&&F(E)})}var z=j(x,2);let P;var T=S(z);T.__mouseup=m,T.__touchend=m,T.__input=function(...F){};let R;var A=j(T,2);A.__mouseup=m,A.__touchend=m,A.__input=function(...F){};let L;var k=j(A,2),I=S(k),N=j(k,2),q=S(N),M=j(N,2);{var Z=F=>{var H=dp();let K;U(()=>K=Fe(H,"",K,{left:o(h)+"%","--width":o(g)+"%"})),b(F,H)};V(M,F=>{o(f)&&F(Z)})}U(()=>{P=we(z,1,"range svelte-1mfj6k7",null,P,{halved:o(y)}),ae(T,"min",i()[0]),ae(T,"max",i()[1]),R=we(T,1,"svelte-1mfj6k7",null,R,{active:o(f)}),ae(A,"min",i()[0]),ae(A,"max",i()[1]),L=we(A,1,"svelte-1mfj6k7",null,L,{active:o(f)}),Y(I,o(u)),Y(q,o(p))}),za(T,()=>o(u),F=>O(u,F)),za(A,()=>o(p),F=>O(p,F)),b(t,_),ie()}pe(["mouseup","touchend","input"]);function Cn(t,e){if(!t)return!1;const{type:i,value:a}=t;return!(i==="array"&&!a.length||i==="range"&&JSON.stringify(a)===JSON.stringify(e))}var vp=C(" <!>",1),fp=C('<p class="loading"> </p>'),hp=C('<p class="error"> </p>'),gp=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),mp=C('<div data-testid="filter-item"><!></div>');function yp(t,e){te(e,!0);let i=B(e,"filter",7),a=B(e,"onchange",3,()=>null),r=B(e,"data",7,null),n=B(e,"fetchData",3,null),l=B(e,"range",3,null),c=B(e,"valueAppend",3,"");const s=W(()=>Cn(i()[e.param],l()));let d=G(!!n());Be(()=>{!r()&&n()&&u()});async function u(){try{O(d,!0),r(await n()())}catch{se(oe.ExploreFetchProvidersFailed)}finally{O(d,!1)}}function p(y,w){if(se(oe.ExploreSetFilter,null,{key:e.param,value:y,total_filter:i()}),!y){delete i()[e.param];return}i()[e.param]={type:w,value:y},a()()}var f=mp();let h;var g=S(f);Uo(g,{button:(m,_)=>{let x=()=>_==null?void 0:_().toggle;la(m,{variant:"border",size:"large",get active(){return o(s)},get onclick(){return x()},children:(E,z)=>{var P=vp(),T=J(P),R=j(T);Ht(R,{direction:"down"}),U(()=>Y(T,`${e.label??""} `)),b(E,P)},$$slots:{default:!0}})},content:m=>{var _=gp(),x=S(_);{var E=A=>{var L=fp(),k=S(L);U(I=>Y(k,`${I??""}...`),[()=>re("Loading")]),b(A,L)},z=A=>{var L=ve(),k=J(L);{var I=N=>{var q=hp(),M=S(q);U(Z=>Y(M,Z),[()=>re("An Error Occurred")]),b(N,q)};V(k,N=>{n()&&!r()&&N(I)},!0)}b(A,L)};V(x,A=>{o(d)?A(E):A(z,!1)})}var P=j(x,2);{var T=A=>{const L=W(()=>{var k;return(k=i()[e.param])==null?void 0:k.value});lp(A,{get options(){return r()},get selected(){return o(L)},onchange:k=>p(k,"array")})},R=A=>{var L=ve(),k=J(L);{var I=N=>{const q=W(()=>{var M;return(M=i()[e.param])==null?void 0:M.value});pp(N,{get range(){return l()},get value(){return o(q)},get label(){return e.label},get valueAppend(){return c()},onchange:M=>p(M,"range")})};V(k,N=>{l()&&N(I)},!0)}b(A,L)};V(P,A=>{r()?A(T):A(R,!1)})}b(m,_)},$$slots:{button:!0,content:!0}}),U(()=>h=we(f,1,"filter-item svelte-er0ukh",null,h,{active:o(s)})),b(t,f),ie()}var bp=C(" <!>",1),wp=C("<button> </button>"),xp=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function _p(t,e){te(e,!0);const i=B(e,"filter",7),a=B(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:cr.Popular},{label:"New",value:cr.New},{label:"Top Rated",value:cr.Best}],l=W(()=>{var s;return((s=n.find(({value:d})=>{var u;return d===((u=i()[r])==null?void 0:u.value)}))==null?void 0:s.label)||"Sort By"});function c(s){s?i()[r]={type:"string",value:s}:delete i()[r],a()()}Uo(t,{button:(u,p)=>{let f=()=>p==null?void 0:p().toggle;la(u,{variant:"link",get onclick(){return f()},children:(h,g)=>{var y=bp(),w=J(y),m=j(w);Ht(m,{direction:"down"}),U(_=>Y(w,`${_??""} `),[()=>re(o(l))]),b(h,y)},$$slots:{default:!0}})},content:u=>{var p=xp();Pe(p,21,()=>n,Ie,(f,h,g,y)=>{let w=()=>o(h).label,m=()=>o(h).value;const _=W(()=>{var P;return m()===((P=i()[r])==null?void 0:P.value)});var x=wp();let E;x.__click=()=>c(m());var z=S(x);U(P=>{E=we(x,1,"option svelte-1ibt2k4",null,E,{active:o(_)}),Y(z,P)},[()=>re(w())]),b(f,x)}),b(u,p)},$$slots:{button:!0,content:!0}}),ie()}pe(["click"]);var kp=Ye('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function Sp(t){var e=kp();b(t,e)}var Ep=C('<button class="item svelte-cwy6fi"><!> <!></button>'),Tp=C('<div class="active-filter svelte-cwy6fi"></div>');function Pp(t,e){te(e,!0);function i(n){delete e.filter[n]}function a(n){let l=n.slice(0,30).trim();return n.length>l.length&&(l+="..."),l}var r=Tp();Pe(r,21,()=>Object.entries(e.filter),Ie,(n,l)=>{var c=W(()=>Ui(o(l),2));let s=()=>o(c)[0],d=()=>o(c)[1];const u=W(()=>{const{label:g,range:y,data:w,fetchData:m}=e.items.find(_=>s()===_.param)||{};return{label:g,range:y,data:w,fetchData:m}});var p=ve(),f=J(p);{var h=g=>{var y=Ep();y.__click=()=>i(s());var w=S(y);{var m=E=>{var z=ve(),P=J(z);Pa(P,()=>{var T,R;return((R=(T=o(u)).fetchData)==null?void 0:R.call(T))||o(u).data},null,(T,R)=>{var A=kt();U(L=>Y(A,L),[()=>{var L;return a((L=o(R))==null?void 0:L.filter(k=>d().value.includes(k.value)).map(k=>k.label).join(" + "))}]),b(T,A)}),b(E,z)},_=E=>{var z=ve(),P=J(z);{var T=A=>{var L=kt();U(k=>Y(L,`${o(u).label??""}: ${k??""}`),[()=>d().value.join(" - ")]),b(A,L)},R=A=>{var L=kt();U(k=>Y(L,k),[()=>re(d().value)]),b(A,L)};V(P,A=>{d().type==="range"?A(T):A(R,!1)},!0)}b(E,z)};V(w,E=>{d().type==="array"?E(m):E(_,!1)})}var x=j(w,2);pr(x,{size:8}),b(g,y)};V(f,g=>{Cn(d(),o(u).range)&&g(h)})}b(n,p)}),b(t,r),ie()}pe(["click"]);var Cp=C("<div><!></div>"),zp=C("<!> <!>",1),Ip=C('<div class="sorting svelte-11dg01g"><!></div>'),jp=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function Ap(t,e){te(e,!0);const i=B(e,"limit",3,!0),a=B(e,"showSorting",3,!0),r=B(e,"searchQuery",3,""),n=B(e,"onchange",3,()=>null),l=B(e,"onempty",3,()=>null),c=3,s=[{label:re("Services"),param:"providers",fetchData:async()=>(await Yu()).map(z=>({label:z.name,value:z.slug}))},{label:re("Genres"),param:"genres",data:sr.filter(z=>parseInt(z.slug)<900).map(z=>({label:re(z.name),value:z.slug}))},{label:re("IMDb"),param:"imdb_score",range:[0,10]},{label:re("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:re("Runtime"),param:"length",range:[0,180],valueAppend:re("Minutes")},{label:re("Countries"),param:"country_codes",data:Zu}];let d=G(Le(i())),u=!1;Be(()=>{Object.keys(e.filter).some(P=>{const{range:T}=s.find(R=>P===R.param)||{};return Cn(e.filter[P],T)})||r()?u=!0:u&&(u=!1,l()())});var p=jp(),f=J(p);let h;var g=S(f);Pe(g,21,()=>o(d)?s.slice(0,c):s,Ie,(z,P)=>{var T=Cp(),R=S(T);yp(R,dn({get filter(){return e.filter},get onchange(){return n()}},()=>o(P))),Me(3,T,()=>na,()=>({start:.75,duration:100})),b(z,T)});var y=j(g,2),w=S(y);{var m=z=>{la(z,{variant:"link",onclick:()=>O(d,!o(d)),children:(P,T)=>{var R=zp(),A=J(R);Sp(A);var L=j(A),k=j(L);{let I=W(()=>o(d)?"down":"up");Ht(k,{get direction(){return o(I)}})}U(I=>Y(L,` ${I??""} `),[()=>re("All Filters")]),b(P,R)},$$slots:{default:!0}})};V(w,z=>{i()&&z(m)})}var _=j(w,2);{var x=z=>{var P=Ip(),T=S(P);_p(T,{get filter(){return e.filter},get onchange(){return n()}}),Me(3,P,()=>Aa,()=>({x:5,duration:100})),b(z,P)};V(_,z=>{a()&&z(x)})}var E=j(f,2);Pp(E,{get filter(){return e.filter},get items(){return s}}),U(()=>h=we(f,1,"filter svelte-11dg01g",null,h,{limit:i()})),b(t,p),ie()}function Lp(t,e){te(e,!0);const i=B(e,"trackingEvent",19,()=>oe.ExploreAnyClick);function a(l){var x;const c=l.target,s=c.parentElement;if(c===document.body)return;const d=`${s==null?void 0:s.nodeName.toLowerCase()}${r(s)}`,u=`${c==null?void 0:c.nodeName.toLowerCase()}${r(c)}`,p=`${d} > ${u}`,f=c.closest("a, button"),h=n(c)||n(s)||f&&n(f),g=h?(x=h.textContent)==null?void 0:x.slice(0,30):"",y=c.getAttribute("aria-label")||(f==null?void 0:f.getAttribute("aria-label"))||(s==null?void 0:s.getAttribute("aria-label")),w=c.placeholder,m=c.alt,_=(g||y||w||m||"").trim();se(i(),null,{selector:p,text:_})}function r(l){if(!l)return"";const c=Array.from(l.classList).filter(s=>!s.startsWith("s-"));return c.length?"."+c.join("."):""}function n(l){return Array.from(l.childNodes).find(c=>{var s;return c.nodeName==="#text"&&!!((s=c.textContent)!=null&&s.trim())})}_e("click",je,a),ie()}function Mp(t,e){te(e,!0);const i=B(e,"trackingEvent",19,()=>oe.ExploreScrollDistance),a={25:!1,50:!1,75:!1,100:!1};function r(){const n=window.scrollY,l=window.innerHeight,d=100/(e.element.clientHeight+n+e.element.getBoundingClientRect().top)*(n+l);for(const u in a)a[u]||d<parseInt(u)||(a[u]=!0,se(i(),null,{scroll_percentage:u+"%"}))}_e("scroll",je,r),ie()}var Dp=C('<p class="description svelte-l2apr8"> </p>'),qp=C('<div class="filter svelte-l2apr8"><!></div>'),Np=C('<div class="explore playpilot-styled-scrollbar svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <!></div></div> <!> <!> <!></div> <!> <!>',1);function Rp(t,e){te(e,!0);let i=B(e,"navigate",3,()=>null),a=B(e,"searchQuery",15,""),r=B(e,"filter",27,()=>Le({})),n=null,l=G(null),c=G(Le(window.innerWidth));Be(()=>{var T;O(l,((T=n==null?void 0:n.closest(zn))==null?void 0:T.style.height)||null,!0)}),st(async()=>{var T;se(oe.ExplorePageView),(T=window.PlayPilotLinkInjections.ads)!=null&&T.length||(window.PlayPilotLinkInjections.ads=await Ao())});var s=Np(),d=J(s);let u;var p=S(d),f=S(p),h=j(S(f),2),g=S(h);Ft(h,T=>Ne==null?void 0:Ne(T));var y=j(h,2);{var w=T=>{var R=Dp(),A=S(R);U(L=>Y(A,L),[()=>re("Streaming Guide Description")]),b(T,R)};V(y,T=>{oa()||T(w)})}var m=j(p,2);Ku(m,{oninput:T=>a(T)});var _=j(m,2);{var x=T=>{var R=qp(),A=S(R);{let L=W(()=>o(c)<500),k=W(()=>!a());Ap(A,{get filter(){return r()},get searchQuery(){return a()},get limit(){return o(L)},get showSorting(){return o(k)},onchange:()=>i()("results"),onempty:()=>i()("home")})}b(T,R)};V(_,T=>{oa()&&T(x)})}var E=j(_,2);Oe(E,()=>e.children),Je(d,T=>n=T,()=>n);var z=j(d,2);Lp(z,{});var P=j(z,2);Mp(P,{get element(){return n}}),U(T=>{u=Fe(d,"",u,{height:o(l),"--playpilot-explore-width":`${o(c)??""}px`}),Y(g,T)},[()=>re("Streaming Guide")]),St(d,"clientWidth",T=>O(c,T)),b(t,s),ie()}function Wo(t,e){te(e,!0);const i=[{key:"results",component:Vu}];oa()&&i.unshift({key:"home",component:gu});let a=G(Le(i[0])),r=G(""),n=G(Le({}));const l=W(()=>o(a).component);Be(()=>{o(r)&&O(a,i.find(s=>s.key==="results"),!0)});function c(s){O(a,i.find(d=>d.key===s)||i[0],!0),se(oe.ExploreNavigate,null,{route:o(a).key})}Rp(t,{navigate:c,get searchQuery(){return o(r)},set searchQuery(s){O(r,s,!0)},get filter(){return o(n)},set filter(s){O(n,s,!0)},children:(s,d)=>{var u=ve(),p=J(u);$r(p,()=>o(l),(f,h)=>{h(f,{get searchQuery(){return o(r)},get filter(){return o(n)},navigate:c})}),b(s,u)},$$slots:{default:!0}}),ie()}const zn="[data-playpilot-explore]",Op="[data-playpilot-pre-consent-explore]",Go="playpilot-explore-custom-style";let hr=null;function gr(){var e;const t=document.querySelector(zn);t&&(mr(),(e=document.querySelector(Op))==null||e.remove(),t.innerHTML="",hr=Bt(Wo,{target:t}),Fp())}function mr(){var t;hr&&(ta(hr),hr=null,(t=document.querySelector("#"+Go))==null||t.remove())}function Bp(){var s;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:r}=t;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),c=l.nodeName==="A"?l:l.querySelector("a");return c.classList.remove("active"),c.innerText=i||"Streaming Guide",c.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function Fp(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Go,document.body.appendChild(e)}function oa(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function La(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?gt("pixels"):!1}function In(t,e){te(e,!0);const i=B(e,"size",3,"32px"),a=B(e,"onclick",3,()=>null),r=ho(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=ve(),l=J(n);$l(l,()=>e.href?"a":"button",!1,(c,s)=>{oo(c,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[ra]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=ve(),u=J(d);Oe(u,()=>e.children??vt),b(s,d)}),b(t,n),ie()}var Hp=C("<div></div>");function Vp(t,e){te(e,!0);let i=B(e,"threshold",3,100),a=B(e,"isDragging",15,!1),r=B(e,"passedThreshold",15,!1),n=B(e,"onpassed",3,()=>null),l=G(0),c=G(0),s=G(null),d=G(!1);const u=W(()=>Math.max(o(c)-o(l),0));Be(()=>{r(o(u)>i())});function p(m){if(m){a(!0),O(d,!0),O(l,m.touches[0].pageY,!0);for(const _ of e.targets)_.style.transitionDuration="0ms"}}function f(m){if(m&&a()){m.preventDefault(),O(c,m.touches[0].pageY,!0),o(s).style.transform=`translateY(${o(u)}px)`;for(const _ of e.targets)_.style.top=`${o(u)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(s).removeAttribute("style");for(const m of e.targets)m.style.removeProperty("transition"),requestAnimationFrame(()=>m.style.top="0px")}O(l,0),O(c,0)}}var g={start:p,move:f,end:h},y=Hp();_e("touchmove",je,f,void 0,!0),_e("touchend",je,h);let w;return y.__touchstart=p,Je(y,m=>O(s,m),()=>o(s)),U(()=>w=we(y,1,"handle svelte-1xqgdsn",null,w,{dragging:a(),dragged:o(d)})),b(t,y),ie(g)}pe(["touchstart"]);var Up=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Wp=["difference","intersection","symmetricDifference","union"],Ko=!1;const Cr=class Cr extends Set{constructor(i){super();ue(this,ha);ue(this,fa,new Map);ue(this,Pt,G(0));ue(this,Si,G(0));ue(this,Pr,ii||-1);if(i){for(var a of i)super.add(a);D(this,Si).v=super.size}Ko||ze(this,ha,vs).call(this)}has(i){var a=super.has(i),r=D(this,fa),n=r.get(i);if(n===void 0){if(!a)return o(D(this,Pt)),!1;n=ze(this,ha,ps).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),O(D(this,Si),super.size),vi(D(this,Pt))),this}delete(i){var a=super.delete(i),r=D(this,fa),n=r.get(i);return n!==void 0&&(r.delete(i),O(n,!1)),a&&(O(D(this,Si),super.size),vi(D(this,Pt))),a}clear(){if(super.size!==0){super.clear();var i=D(this,fa);for(var a of i.values())O(a,!1);i.clear(),O(D(this,Si),0),vi(D(this,Pt))}}keys(){return this.values()}values(){return o(D(this,Pt)),super.values()}entries(){return o(D(this,Pt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(D(this,Si))}};fa=new WeakMap,Pt=new WeakMap,Si=new WeakMap,Pr=new WeakMap,ha=new WeakSet,ps=function(i){return ii===D(this,Pr)?G(i):Dt(i)},vs=function(){Ko=!0;var i=Cr.prototype,a=Set.prototype;for(const r of Up)i[r]=function(...n){return o(D(this,Pt)),a[r].apply(this,n)};for(const r of Wp)i[r]=function(...n){o(D(this,Pt));var l=a[r].apply(this,n);return new Cr(l)}};let yr=Cr;class Gp{constructor(e,i){ue(this,Ba);ue(this,Fa);ce(this,Ba,e),ce(this,Fa,ml(i))}get current(){return D(this,Fa).call(this),D(this,Ba).call(this)}}Ba=new WeakMap,Fa=new WeakMap;const Kp=/\(.+\)/,Zp=new Set(["all","print","screen","and","or","not","only"]);class Yp extends Gp{constructor(e,i){let a=Kp.test(e)||e.split(/[\s,]+/).some(n=>Zp.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>Ic(r,"change",n))}}const jn=new Yp("(prefers-reduced-motion: reduce)");function An(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(n){if(n.key!=="Tab")return;const l=document.activeElement;if(!l)return;const c=e();if(!c.length)return;const[s]=c,d=c[c.length-1];n.shiftKey&&l===s&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(s.focus(),n.preventDefault())}const a=document.activeElement,[r]=e();return a!=null&&a.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function Jp(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Qp=C("<div><!></div>"),Xp=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),$p=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),ev=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),tv=C("<div><!></div>"),iv=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),av=C('<div data-testid="modal"><!> <!> <!> <!></div>');function br(t,e){te(e,!0);const i=H=>{var K=Qp(),Q=S(K);In(Q,{onclick:E,"aria-label":"Close",children:(X,$)=>{pr(X,{})},$$slots:{default:!0}}),Je(K,X=>O(g,X),()=>o(g)),U(()=>we(K,1,`close ${l()??""}`,"svelte-1rbidhv")),Me(7,K,()=>x),b(H,K)},a=B(e,"tall",3,!1),r=B(e,"wide",3,!1),n=B(e,"blur",3,!1),l=B(e,"closeButtonStyle",3,"shadow"),c=B(e,"initialScrollPosition",3,0),s=B(e,"onscroll",3,()=>null),d=B(e,"onclose",3,()=>null),u="#playpilot";let p=G(0),f=G(null),h=G(null),g=G(null),y=G(0),w=G(!1);const m=W(()=>o(p)<Li);Be(()=>{var H;o(p)&&O(y,((H=o(h))==null?void 0:H.offsetTop)||0,!0)}),Be(()=>{setTimeout(()=>{var H;return O(y,((H=o(h))==null?void 0:H.offsetTop)||0,!0)})}),Or("scope","modal"),st(()=>{const H=Jp();return H.classList.add("playpilot-modal-open"),O(w,!!es()),o(w)||window.history.pushState({modal:!0},"",u),requestAnimationFrame(_),()=>{var K;H.classList.remove("playpilot-modal-open"),!es()&&((K=history.state)!=null&&K.modal)&&history.back()}});function _(){const H=window.innerWidth>Li?o(f):o(h);H==null||H.scrollTo(0,c())}function x(H){return jn.current?ni(H,{duration:0}):o(m)?Aa(H,{duration:250,y:window.innerHeight,opacity:1}):na(H,{duration:150,start:.85})}function E(){d()(),Nn()}function z(H){H.target===o(f)&&E()}var P=av();_e("keydown",je,({key:H})=>{H==="Escape"&&E()}),_e("hashchange",je,E);let T;P.__click=z;let R;var A=S(P);{var L=H=>{var K=Xp(),Q=S(K);Oe(Q,()=>e.prepend),Me(7,K,()=>x),b(H,K)};V(A,H=>{e.prepend&&H(L)})}var k=j(A,2);{var I=H=>{var K=$p(),Q=S(K);Oe(Q,()=>e.bubble),Me(7,K,()=>x),b(H,K)};V(k,H=>{e.bubble&&H(I)})}var N=j(k,2);{var q=H=>{var K=ev(),Q=S(K);{var X=$=>{{let ne=W(()=>[o(h),o(g)]);Vp($,{get targets(){return o(ne)},onpassed:E})}};V(Q,$=>{o(h)&&o(g)&&$(X)})}Me(7,K,()=>x),b(H,K)};V(N,H=>{o(m)&&H(q)})}var M=j(N,2);{var Z=H=>{var K=ve(),Q=J(K);Oe(Q,()=>e.dialog),b(H,K)},F=H=>{var K=iv(),Q=J(K),X=S(Q);{var $=he=>{var Ce=tv(),Qe=S(Ce);In(Qe,{onclick:()=>ch(),"aria-label":"Back",children:(De,fe)=>{Ht(De,{direction:"left"})},$$slots:{default:!0}}),U(()=>we(Ce,1,`close back ${l()??""}`,"svelte-1rbidhv")),b(he,Ce)};V(X,he=>{o(w)&&he($)})}var ne=j(X,2);Oe(ne,()=>e.children??vt);var ke=j(ne,2);{var Ae=he=>{i(he)};V(ke,he=>{o(m)||he(Ae)})}Je(Q,he=>O(h,he),()=>o(h));var de=j(Q,2);{var be=he=>{i(he)};V(de,he=>{o(m)&&he(be)})}_e("scroll",Q,function(...he){var Ce;(Ce=s())==null||Ce.apply(this,he)}),Me(7,Q,()=>x),b(H,K)};V(M,H=>{e.dialog?H(Z):H(F,!1)})}Je(P,H=>O(f,H),()=>o(f)),Ft(P,H=>An==null?void 0:An(H)),U(()=>{T=we(P,1,"modal svelte-1rbidhv",null,T,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),R=Fe(P,"",R,{"--dialog-offset":`${o(y)??""}px`})}),sn("innerWidth",H=>O(p,H,!0)),Me(5,P,()=>ni,()=>({duration:150})),Me(6,P,()=>ni,()=>({duration:150,delay:100})),b(t,P),ie()}pe(["click"]);var rv=C('<div class="genre svelte-1mphbln"> </div>'),nv=C('<button class="genre expand svelte-1mphbln"> </button>'),lv=C("<!> <!>",1);function ov(t,e){te(e,!0);let i=G(!1);const a=W(()=>o(i)?e.genres:[e.genres[0]]);var r=lv(),n=J(r);Pe(n,17,()=>o(a),Ie,(s,d)=>{const u=W(()=>{var g;return(g=sr.find(y=>y.slug===o(d)))==null?void 0:g.name});var p=ve(),f=J(p);{var h=g=>{var y=rv(),w=S(y);er(y,()=>La()?Bo(Et.GenreInterest,{genre:o(u),source:yi.Card}):null),U(m=>Y(w,m),[()=>re(o(u))]),b(g,y)};V(f,g=>{o(u)&&g(h)})}b(s,p)});var l=j(n,2);{var c=s=>{var d=nv();d.__click=()=>O(i,!0);var u=S(d);U(()=>Y(u,`+${e.genres.length-1}`)),b(s,d)};V(l,s=>{!o(i)&&e.genres.length>1&&s(c)})}b(t,r),ie()}pe(["click"]);var sv=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),cv=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function Ln(t,e){const i=B(e,"small",3,!1);let a=G(!1);function r(u){u.preventDefault(),u.stopPropagation(),O(a,!o(a))}var n=cv();n.__click=r;var l=S(n);let c;var s=j(l,2);{var d=u=>{var p=sv(),f=S(p);U(()=>Y(f,e.disclaimer)),Me(3,p,()=>ni,()=>({duration:50})),b(u,p)};V(s,u=>{o(a)&&u(d)})}U(()=>c=we(l,1,"disclaimer svelte-1ldthr7",null,c,{small:i()})),b(t,n)}pe(["click"]);var dv=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),uv=C('<span class="cta svelte-13ka2ap"> </span>'),pv=C('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Zo(t,e){te(e,!0);const i=B(e,"disclaimer",3,""),a=B(e,"hideCategory",3,!1),r=B(e,"onclick",3,()=>null),n=W(()=>e.playlink.name),l=W(()=>e.playlink.url),c=W(()=>e.playlink.logo_url),s=W(()=>e.playlink.highlighted),d=W(()=>e.playlink.cta_text),u=W(()=>e.playlink.action_text),p=W(()=>e.playlink.pixels),f=W(()=>e.playlink.extra_info.category),h=W(()=>La()&&!o(s)),g={AVOD:re("Stream"),SVOD:re("Stream"),BUY:re("Buy"),RENT:re("Rent"),TVOD:re("Rent Or Buy")};let y=G(0);var w=ve(),m=J(w);$l(m,()=>{var _,x;return!((x=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&x.require_affiliate_consent)||gt("affiliate")?"a":"span"},!1,(_,x)=>{er(_,()=>o(h)?Bo(Et.ProviderInterest,{provider:e.playlink.slug,source:yi.Card}):null),er(_,()=>o(h)?yu(Et.ProviderClick,{provider:e.playlink.slug}):null),oo(_,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[aa]:{highlighted:o(s),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var E=pv(),z=J(E);let P;var T=S(z),R=j(T,2),A=S(R),L=j(R,2);{var k=Q=>{var X=dv(),$=S(X);U(ne=>Y($,ne),[()=>g[o(f)]||re("Stream")]),b(Q,X)};V(L,Q=>{a()||Q(k)})}var I=j(L,2);{var N=Q=>{var X=uv(),$=S(X);U(()=>Y($,o(d))),b(Q,X)};V(I,Q=>{o(d)&&Q(N)})}var q=j(I,2),M=S(q),Z=j(q,2);{var F=Q=>{Ln(Q,{get disclaimer(){return i()},small:!0})};V(Z,Q=>{i()&&Q(F)})}var H=j(z,2);{var K=Q=>{Pn(Q,{get pixels(){return o(p)}})};V(H,Q=>{var X;(X=o(p))!=null&&X.length&&Q(K)})}U((Q,X)=>{P=Fe(z,"",P,{"--action-width":o(y)?`${o(y)}px`:null}),ae(T,"src",Q),Y(A,o(n)),Y(M,X)},[()=>dr(o(c)),()=>o(u)||re("Watch")]),St(q,"clientWidth",Q=>O(y,Q)),b(x,E)}),b(t,w),ie()}var vv=C('<div class="disclaimer svelte-1fykz2q" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1fykz2q">PlayPilot.com</a></div>'),fv=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),hv=C('<div class="heading category svelte-1fykz2q"> </div>'),gv=C("<!> <!>",1),mv=C("<!> <div></div>",1),yv=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function bv(t,e){var E,z;te(e,!0);const i=Rr("scope")==="modal",a=ja("card"),r=!!((z=(E=window.PlayPilotLinkInjections)==null?void 0:E.config)!=null&&z.categorize_playlinks);let n=G(0);const l=W(()=>Fo(e.playlinks)),c=W(()=>p(e.playlinks)),s=W(()=>r?f(o(c)):[["",o(l)]]),d=W(()=>o(n)<500||!!a||o(l).length===1);function u(P){se(i?oe.TitleModalPlaylinkClick:oe.TitlePopoverPlaylinkClick,e.title,{playlink:P})}function p(P){const T={};for(const R of P){const{category:A}=R.extra_info;A in T||(T[A]=[]),T[A].push(R)}return T}function f(P){const T=["AVOD","SVOD","RENT","BUY"],R=[];for(const L of T)P[L]&&R.push([L,P[L]]);const A=[];for(const L of Object.values(P))for(const k of L)T.includes(k.extra_info.category)||A.push(k);return[...R,["Other",A]]}var h=yv(),g=J(h),y=S(g);Ft(g,(P,T)=>Ne==null?void 0:Ne(P,T),()=>3);var w=j(g,2);{var m=P=>{var T=vv(),R=S(T);U(A=>Y(R,`${A??""} `),[()=>{var A,L;return((L=(A=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:A.config)==null?void 0:L.playlinks_disclaimer_text)||re("Commission Disclaimer")}]),b(P,T)},_=P=>{var T=fv(),R=S(T);U(A=>Y(R,A),[()=>re("Title Unavailable")]),b(P,T)};V(w,P=>{o(l).length?P(m):P(_,!1)})}var x=j(w,2);Pe(x,17,()=>o(s),Ie,(P,T,R,A)=>{var L=W(()=>Ui(o(T),2));let k=()=>o(L)[0],I=()=>o(L)[1];var N=mv(),q=J(N);{var M=H=>{var K=hv(),Q=S(K);Ft(K,(X,$)=>Ne==null?void 0:Ne(X,$),()=>4),U(X=>Y(Q,X),[()=>re(`Category: ${k()}`)]),b(H,K)};V(q,H=>{k()&&I().length&&H(M)})}var Z=j(q,2);let F;Pe(Z,21,I,Ie,(H,K,Q)=>{var X=gv(),$=J(X);Zo($,{get playlink(){return o(K)},onclick:()=>u(o(K).name)});var ne=j($,2);{var ke=Ae=>{{let de=W(()=>jd(a)),be=W(()=>a.disclaimer||"");Zo(Ae,{get playlink(){return o(de)},onclick:()=>se(oe.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(be)}})}};V(ne,Ae=>{a&&Q===0&&Ae(ke)})}b(H,X)}),U(()=>{F=we(Z,1,"playlinks svelte-1fykz2q",null,F,{list:o(d)}),ae(Z,"data-testid",`category-${k()??""}`)}),St(Z,"clientWidth",H=>O(n,H)),b(P,N)}),U(P=>Y(y,P),[()=>re("Where To Stream Online")]),b(t,h),ie()}var wv=C('<button class="show-more svelte-7itcht">Show more</button>'),xv=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),_v=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function kv(t,e){te(e,!0);const i=B(e,"blurb",3,""),a=B(e,"limit",3,200),r=B(e,"onclick",3,()=>null);let n=G(!1);const l=W(()=>e.text.slice(0,a()));function c(){O(n,!0),r()()}var s=_v(),d=S(s),u=S(d),p=j(u);{var f=m=>{var _=kt("...");b(m,_)};V(p,m=>{!o(n)&&e.text.length>a()&&m(f)})}var h=j(p,2);{var g=m=>{var _=wv();_.__click=()=>c(),b(m,_)};V(h,m=>{!o(n)&&(e.text.length>a()||i())&&m(g)})}var y=j(d,2);{var w=m=>{var _=xv(),x=S(_);U(()=>Y(x,i())),b(m,_)};V(y,m=>{o(n)&&m(w)})}U(()=>Y(u,o(n)?e.text:o(l))),b(t,s),ie()}pe(["click"]);async function Sv(t,{page:e=1}={}){const i={language:Ia(),region:await _n(),include_count:"false",participant_sid:t.sid,page:e};return(await ri(`/titles/browse?api-token=${gi()}&${yn(i)}`)).results}async function Ev(t){return(await ri(`/participants/browse?api-token=${gi()}&title_sid=${t.sid}`)).results}var Tv=C('<div class="character truncate svelte-zy7e3f"> </div>'),Pv=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),Cv=C('<div class="participant svelte-zy7e3f"></div>');function zv(t,e){te(e,!0);function i(l){const c=mi(hn(wo(fn()))),s={};for(const u of l){const p=lr(c,mi(u.name));s[u.sid]={participant:u,count:p}}return Object.values(s).sort((u,p)=>p.count-u.count).map(({participant:u})=>u)}function a(l,c){bi({event:l,type:"participant",data:c}),se(oe.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:c.name})}var r=ve(),n=J(r);Pa(n,()=>Ev(e.title),l=>{{let c=W(()=>re("Cast"));fr(l,{get heading(){return o(c)},children:(s,d)=>{var u=ve(),p=J(u);Pe(p,16,()=>({length:5}),Ie,(f,h)=>{var g=Cv();b(f,g)}),b(s,u)},$$slots:{default:!0}})}},(l,c)=>{var s=ve(),d=J(s);{var u=p=>{{let f=W(()=>re("Cast"));fr(p,{get heading(){return o(f)},children:(h,g)=>{var y=ve(),w=J(y);Pe(w,17,()=>i(o(c)).slice(0,15),Ie,(m,_)=>{var x=Pv();x.__click=R=>a(R,o(_));var E=S(x),z=S(E),P=j(E,2);{var T=R=>{var A=Tv(),L=S(A);U(()=>Y(L,o(_).character)),b(R,A)};V(P,R=>{o(_).character&&R(T)})}U(()=>Y(z,o(_).name)),b(m,x)}),b(h,y)},$$slots:{default:!0}})}};V(d,p=>{var f;(f=o(c))!=null&&f.length&&p(u)})}b(l,s)}),b(t,r),ie()}pe(["click"]);function Iv(t,e){te(e,!0);const i=Ld(e.title);{let a=W(()=>re("Similar Titles"));Oo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>se(oe.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ie()}function jv(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var Av=Ye('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function Lv(t){var e=Av();b(t,e)}var Mv=Ye('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function Dv(t){var e=Mv();b(t,e)}var qv=Ye('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function Nv(t){var e=qv();b(t,e)}var Rv=Ye('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Ov(t){var e=Rv();b(t,e)}var Bv=C('<button class="svelte-827qd7"><!></button>'),Fv=C('<div class="content svelte-827qd7"><!></div>'),Hv=C("<div><!> <!></div>");function Vv(t,e){const i=B(e,"label",3,""),a=B(e,"align",3,"right");let r=G(!1),n=G(null);function l(h){var y;h.currentTarget===((y=o(n))==null?void 0:y.querySelector("button"))&&h.stopPropagation(),O(r,!o(r))}var c=Hv();_e("click",je,()=>O(r,!1));var s=S(c);{var d=h=>{var g=ve(),y=J(g);Oe(y,()=>e.button,()=>({toggle:l})),b(h,g)},u=h=>{var g=Bv();g.__click=l;var y=S(g);Ov(y),U(()=>{ae(g,"aria-label",i()),ae(g,"aria-expanded",o(r))}),b(h,g)};V(s,h=>{e.button?h(d):h(u,!1)})}var p=j(s,2);{var f=h=>{var g=Fv(),y=S(g);Oe(y,()=>e.children),Me(1,g,()=>na,()=>({duration:50,start:.85})),b(h,g)};V(p,h=>{o(r)&&h(f)})}Je(c,h=>O(n,h),()=>o(n)),U(()=>we(c,1,`context-menu ${a()??""}`,"svelte-827qd7")),b(t,c)}pe(["click"]);var Uv=C("<!> ",1),Wv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Gv(t,e){te(e,!0);let i=B(e,"url",7);const r=window.innerWidth<Li&&typeof navigator.share<"u";st(()=>{i(i()+"?utm_source=tpi")});function n(s,d){if(!r){d(s);return}se(oe.ShareTitle,null,{title:e.title,url:Mi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){se(oe.ShareTitle,null,{title:e.title,url:Mi(),method:"copy"}),jv(i())}function c(){se(oe.ShareTitle,null,{title:e.title,url:Mi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Vv(t,{button:(d,u)=>{let p=()=>u==null?void 0:u().toggle;la(d,{onclick:f=>n(f,p()),children:(f,h)=>{var g=Uv(),y=J(g);Lv(y);var w=j(y);U(m=>Y(w,` ${m??""}`),[()=>re("Share")]),b(f,g)},$$slots:{default:!0}})},children:(d,u)=>{var p=Wv(),f=J(p);f.__click=l;var h=S(f);Dv(h);var g=j(h),y=j(f,2);y.__click=c;var w=S(y);Nv(w);var m=j(w);U((_,x)=>{Y(g,` ${_??""}`),Y(m,` ${x??""}`)},[()=>re("Copy URL"),()=>re("Email")]),b(d,p)},$$slots:{button:!0,default:!0}}),ie()}pe(["click"]);var Kv=Ye('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Zv(t){var e=Kv();b(t,e)}var Yv=C("<!> ",1);function Jv(t,e){te(e,!0);function i(){Hd(e.title),se(oe.TrailerClick,e.title)}la(t,{onclick:i,children:(a,r)=>{var n=Yv(),l=J(n);Zv(l);var c=j(l);U(s=>Y(c,` ${s??""}`),[()=>re("Watch Trailer")]),b(a,n)},$$slots:{default:!0}}),ie()}var Qv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Xv(t,e){const i=B(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=W(()=>Math.max(o(a),o(r)));var l=Qv(),c=S(l);En(c,{get embeddable_url(){return i()},muted:!0,loop:!0}),U(()=>Fe(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),St(l,"clientWidth",s=>O(a,s)),St(l,"clientHeight",s=>O(r,s)),b(t,l)}var $v=C("<div> </div>"),ef=C('<img alt=""/>'),tf=C('<div><div class="header svelte-16ajinh"><div><!></div> <div id="title"> </div> <div class="info svelte-16ajinh"><div class="imdb svelte-16ajinh"><!> </div> <!> <div> </div> <div class="capitalize svelte-16ajinh"> </div> <!></div> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main"><!> <!> <!> <!></div></div> <div><!></div>',1);function Mn(t,e){var De;te(e,!0);const i=B(e,"small",3,!1),a=B(e,"useVideoBackground",3,!0),r=!!((De=window.PlayPilotLinkInjections)!=null&&De.no_affiliate);Or("title",e.title);const n=W(()=>(!i()||r)&&e.title.description);let l=G(!1),c=G(!1),s=G(!1),d=G(!1);Be(()=>{a()&&e.title.embeddable_url&&qo(Sn(e.title.embeddable_url)).then(fe=>{O(d,fe,!0)})});var u=tf(),p=J(u);let f;var h=S(p),g=S(h);let y;var w=S(g);ur(w,{get title(){return e.title},onload:()=>O(l,!0),lazy:!1});var m=j(g,2);let _;var x=S(m);Ft(m,(fe,Ge)=>Ne==null?void 0:Ne(fe,Ge),()=>2);var E=j(m,2),z=S(E),P=S(z);Tn(P,{});var T=j(P),R=j(z,2);ov(R,{get genres(){return e.title.genres}});var A=j(R,2),L=S(A),k=j(A,2),I=S(k),N=j(k,2);{var q=fe=>{var Ge=$v(),at=S(Ge);U(ci=>Y(at,`${e.title.length??""} ${ci??""}`),[()=>re("Minutes")]),b(fe,Ge)};V(N,fe=>{!i()&&e.title.length&&fe(q)})}var M=j(E,2),Z=S(M);{var F=fe=>{Jv(fe,{get title(){return e.title}})};V(Z,fe=>{e.title.embeddable_url&&fe(F)})}var H=j(Z,2);{let fe=W(()=>Ro(e.title));Gv(H,{get title(){return e.title.title},get url(){return o(fe)}})}var K=j(h,2),Q=S(K);{var X=fe=>{kv(fe,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>se(oe.ExpandTitleDescription,e.title)})};V(Q,fe=>{o(n)&&fe(X)})}var $=j(Q,2);{var ne=fe=>{bv(fe,{get playlinks(){return e.title.providers},get title(){return e.title}})};V($,fe=>{r||fe(ne)})}var ke=j($,2);zv(ke,{get title(){return e.title}});var Ae=j(ke,2);Iv(Ae,{get title(){return e.title}});var de=j(p,2);let be;var he=S(de);{var Ce=fe=>{Xv(fe,{get embeddable_url(){return e.title.embeddable_url}})},Qe=fe=>{var Ge=ve(),at=J(Ge);Ca(at,()=>o(s),ci=>{var Ct=ef();let ee;U(le=>{ae(Ct,"src",le),ee=we(Ct,1,"svelte-16ajinh",null,ee,{loaded:o(c),blur:o(s)})},[()=>dr(o(s)?e.title.standing_poster:e.title.medium_poster)]),_e("load",Ct,()=>O(c,!0)),_e("error",Ct,()=>O(s,!0)),b(ci,Ct)}),b(fe,Ge)};V(he,fe=>{a()&&o(d)?fe(Ce):fe(Qe,!1)})}U(fe=>{f=we(p,1,"content svelte-16ajinh",null,f,{small:i()}),y=we(g,1,"poster svelte-16ajinh",null,y,{loaded:o(l)}),_=we(m,1,"heading svelte-16ajinh",null,_,{truncate:i()}),Y(x,e.title.title),Y(T,` ${e.title.imdb_score??""}`),Y(L,e.title.year),Y(I,fe),be=we(de,1,"background svelte-16ajinh",null,be,{small:i()})},[()=>re(`Type: ${e.title.type}`)]),b(t,u),ie()}function sa(t,e){const{onclick:i}=e;function a(r){return r.button!==1?null:(i(r),r)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const Yo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},Dn={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function af({key:t}){var a,r,n;if(!gt("tracking"))return 0;const e=(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:r[t];if(e!==void 0)return e;(n=window.PlayPilotLinkInjections)!=null&&n.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function Jo(t){const e=af(t);return Math.floor(e*t.numberOfVariants)}function rf(t){var i;const e=Jo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function nf(t,e=1){return gt("tracking")?Jo(t)===e:!1}function lf(t){const e=rf(t);se(oe.SplitTestView,null,{key:t.key,variant:e})}var of=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),sf=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),cf=C('<button class="button svelte-1mt6g1y"> </button>'),df=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),uf=C('<div class="background svelte-1mt6g1y"></div>'),pf=C("<!> <!>",1),vf=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Qo(t,e){te(e,!0),se(oe.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),lf(Dn.TopScrollFormat);const i=W(()=>e.campaign.disclaimer),a=W(()=>e.campaign.content),r=W(()=>e.campaign.cta),n=W(()=>o(a).format),l=W(()=>o(a).header),c=W(()=>o(a).header_logo),s=W(()=>o(a).image_uuid),d=W(()=>o(r).header),u=W(()=>o(r).url),p=W(()=>o(n)==="large"),f=W(()=>Do(o(s),Yo.TopScrollBackground)),h=W(()=>Do(o(s),Yo.TopScrollContent));let g=G(0);function y(){se(oe.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var w=vf();w.__click=y;let m,_;var x=S(w),E=S(x);{var z=A=>{var L=of();U(()=>{ae(L,"src",o(h)),ae(L,"alt",o(l))}),b(A,L)},P=A=>{var L=df(),k=J(L);{var I=F=>{var H=sf();U(()=>ae(H,"src",o(c))),b(F,H)};V(k,F=>{o(c)&&F(I)})}var N=j(k,2),q=S(N),M=j(N,2);{var Z=F=>{var H=cf(),K=S(H);U(()=>Y(K,o(d))),b(F,H)};V(M,F=>{o(d)&&F(Z)})}U(()=>Y(q,o(l))),b(A,L)};V(E,A=>{o(p)?A(z):A(P,!1)})}var T=j(x,2);{var R=A=>{var L=pf(),k=J(L);{var I=M=>{var Z=uf();let F;U(()=>F=Fe(Z,"",F,{"--background":`url('${o(f)??""}')`})),b(M,Z)};V(k,M=>{o(s)&&M(I)})}var N=j(k,2);{var q=M=>{Ln(M,{get disclaimer(){return o(i)}})};V(N,M=>{o(i)&&M(q)})}b(A,L)};V(T,A=>{o(p)||A(R)})}Ft(w,(A,L)=>sa==null?void 0:sa(A,L),()=>({onclick:y})),ji(()=>St(w,"clientWidth",A=>O(g,A))),U(()=>{ae(w,"href",o(u)),m=we(w,1,"top-scroll svelte-1mt6g1y",null,m,{simple:o(p)}),_=Fe(w,"",_,{"--width":`${o(g)??""}px`})}),b(t,w),ie()}pe(["click"]);var ff=C('<div class="content svelte-r7ubzi"><!></div>'),hf=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function gf(t,e){let i=G(!1);var a=hf();a.__touchstart=()=>O(i,!o(i));var r=S(a);Oe(r,()=>e.children);var n=j(r,2);{var l=c=>{var s=ff(),d=S(s);Oe(d,()=>e.content),Me(1,s,()=>ni,()=>({duration:100})),b(c,s)};V(n,c=>{o(i)&&c(l)})}_e("mouseenter",a,()=>O(i,!0)),_e("mouseleave",a,()=>O(i,!1)),b(t,a)}pe(["touchstart"]);var mf=C('<div class="info svelte-qcpiki"><!></div>'),yf=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),bf=C('<span class="name svelte-qcpiki"> </span>'),wf=C('<div class="subheader svelte-qcpiki"> </div>'),xf=C('<div class="action svelte-qcpiki"> </div>'),_f=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),kf=C('<img class="background svelte-qcpiki" alt=""/>'),Sf=C('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),Ef=C('<div class="disclaimer svelte-qcpiki"><!></div>'),Tf=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Xo(t,e){te(e,!0);const i=B(e,"compact",3,!1),a=W(()=>e.campaign.disclaimer),r=W(()=>e.campaign.content),n=W(()=>e.campaign.cta),l=W(()=>e.campaign.campaign_type),c=W(()=>o(r).header),s=W(()=>o(r).subheader),d=W(()=>o(r).header_logo),u=W(()=>o(r).image),p=W(()=>o(r).video),f=W(()=>o(n).header),h=W(()=>o(n).url),g=W(()=>o(n).subheader);let y=G(0);se(oe.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function w(){se(oe.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var m=Tf();let _;m.__click=w;var x=S(m);{var E=I=>{var N=mf(),q=S(N);{var M=F=>{gf(F,{content:K=>{var Q=kt();U(()=>Y(Q,o(g))),b(K,Q)},children:(K,Q)=>{var X=kt("Ad");b(K,X)},$$slots:{content:!0,default:!0}})},Z=F=>{var H=kt();U(()=>Y(H,o(g))),b(F,H)};V(q,F=>{i()?F(M):F(Z,!1)})}b(I,N)};V(x,I=>{o(g)&&I(E)})}var z=j(x,2);{var P=I=>{var N=_f(),q=S(N);{var M=ne=>{var ke=yf();U(()=>ae(ke,"src",o(d))),b(ne,ke)};V(q,ne=>{o(d)&&ne(M)})}var Z=j(q,2),F=S(Z);{var H=ne=>{var ke=bf(),Ae=S(ke);U(()=>Y(Ae,o(c))),b(ne,ke)};V(F,ne=>{o(c)&&ne(H)})}var K=j(F,2);{var Q=ne=>{var ke=wf(),Ae=S(ke);U(()=>Y(Ae,o(s))),b(ne,ke)};V(K,ne=>{o(s)&&ne(Q)})}var X=j(Z,2);{var $=ne=>{var ke=xf(),Ae=S(ke);U(()=>Y(Ae,o(f))),b(ne,ke)};V(X,ne=>{o(f)&&ne($)})}St(N,"clientHeight",ne=>O(y,ne)),b(I,N)};V(z,I=>{(o(d)||o(c)||o(s)||o(f))&&I(P)})}var T=j(z,2);{var R=I=>{var N=kf();U(()=>ae(N,"src",o(u))),b(I,N)},A=I=>{var N=ve(),q=J(N);{var M=Z=>{var F=Sf();F.muted=!0;var H=S(F);U(()=>ae(H,"src",o(p))),b(Z,F)};V(q,Z=>{o(l)==="video"&&o(p)&&Z(M)},!0)}b(I,N)};V(T,I=>{o(l)==="image"&&o(u)?I(R):I(A,!1)})}var L=j(T,2);{var k=I=>{var N=Ef();let q;var M=S(N);Ln(M,{get disclaimer(){return o(a)}}),U(()=>q=Fe(N,"",q,{"--offset":`${o(y)??""}px`})),b(I,N)};V(L,I=>{o(a)&&I(k)})}Ft(m,(I,N)=>sa==null?void 0:sa(I,N),()=>({onclick:w})),U(()=>{ae(m,"href",o(h)),_=we(m,1,"display svelte-qcpiki",null,_,{compact:i()})}),b(t,m),ie()}pe(["click"]);var Pf=C('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function Cf(t,e){var s,d;te(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",a=(d=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:d.explore_navigation_path;cn();var r=Pf();r.__click=()=>se(oe.CardToExploreCta);var n=S(r);ae(n,"src",i);var l=j(n,4),c=S(l);Ht(c,{}),U(()=>ae(r,"href",a)),b(t,r),ie()}pe(["click"]);function zf(t,e){var f,h;te(e,!0);const i=g=>{var y=ve(),w=J(y);{var m=x=>{Qo(x,{get campaign(){return l}})},_=x=>{Cf(x,{})};V(w,x=>{l?x(m):x(_,!1)})}b(g,y)},a=g=>{var y=ve(),w=J(y);{var m=_=>{Xo(_,{get campaign(){return c}})};V(w,_=>{c&&_(m)})}b(g,y)},r=B(e,"initialScrollPosition",3,0),n=ho(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=ja("top_scroll"),c=ja("card"),s=(h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||s&&!document.querySelector(zn);let u=!1;se(oe.TitleModalView,e.title),La()&&Vt(Et.TitleInterest,{title:e.title.title,source:yi.Card}),st(()=>{const g=Date.now();return()=>se(oe.TitleModalClose,e.title,{time_spent:Date.now()-g})});function p(){u||(se(oe.TitleModalScroll,e.title),u=!0)}{let g=W(()=>d?i:null),y=W(()=>c?a:null);br(t,{onscroll:p,get initialScrollPosition(){return r()},get bubble(){return o(g)},get prepend(){return o(y)},tall:!0,children:(w,m)=>{Mn(w,dn({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}ie()}var If=C(" <strong> </strong>",1),jf=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),Af=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),Lf=C('<button class="more svelte-ke01cs"> </button>'),Mf=C('<div class="header svelte-ke01cs"><div class="heading svelte-ke01cs" id="name"> </div> <!></div> <div class="content svelte-ke01cs"><div class="heading small svelte-ke01cs" id="credits"> </div> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function Df(t,e){te(e,!0);const i=W(()=>e.participant.name),a=W(()=>e.participant.birth_date),r=W(()=>e.participant.death_date),n=30;let l=G(Le([])),c=G(1),s=G(!0),d=G(!0);st(p),gt("pixels")&&Vt(Et.ParticipantView,{participant:e.participant.name});function u(L){return new Date(L).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function p(){O(d,!0);try{const L=await Sv(e.participant,{page:o(c)});O(l,[...o(l),...L],!0),O(s,(L==null?void 0:L.length)>=n)}catch{O(s,!1)}finally{O(d,!1),O(c,o(c)+1)}}var f=Mf(),h=J(f),g=S(h),y=S(g);Ft(g,(L,k)=>Ne==null?void 0:Ne(L,k),()=>2);var w=j(g,2);{var m=L=>{var k=jf(),I=S(k),N=j(I),q=S(N),M=j(N);{var Z=F=>{var H=If(),K=J(H),Q=j(K),X=S(Q);U(($,ne)=>{Y(K,`, ${$??""} `),Y(X,ne)},[()=>re("Died On"),()=>u(o(r))]),b(F,H)};V(M,F=>{o(r)&&F(Z)})}U((F,H)=>{Y(I,`${F??""} `),Y(q,H)},[()=>re("Born On"),()=>u(o(a))]),b(L,k)};V(w,L=>{o(a)&&L(m)})}var _=j(h,2),x=S(_),E=S(x);Ft(x,(L,k)=>Ne==null?void 0:Ne(L,k),()=>3);var z=j(x,2),P=S(z);Pe(P,17,()=>o(l),Ie,(L,k)=>{Vo(L,{get title(){return o(k)},onclick:I=>bi({event:I,data:o(k)})})});var T=j(P,2);{var R=L=>{var k=ve(),I=J(k);Pe(I,16,()=>({length:6}),Ie,(N,q)=>{var M=Af();b(N,M)}),b(L,k)},A=L=>{var k=ve(),I=J(k);{var N=q=>{var M=Lf();M.__click=p;var Z=S(M);U(F=>Y(Z,F),[()=>re("Show More")]),b(q,M)};V(I,q=>{o(s)&&q(N)},!0)}b(L,k)};V(T,L=>{o(d)?L(R):L(A,!1)})}U(L=>{Y(y,o(i)),Y(E,L)},[()=>re("Credits")]),b(t,f),ie()}pe(["click"]);function qf(t,e){te(e,!0);const i=B(e,"initialScrollPosition",3,0);let a=G(0);se(oe.ParticipantModalView,null,{participant:e.participant.name}),st(()=>{const r=Date.now();return()=>se(oe.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),br(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{Df(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),sn("innerWidth",r=>O(a,r,!0)),ie()}var Nf=C('<div class="content svelte-16hba4m"><!></div>');function Rf(t,e){const i=B(e,"initialScrollPosition",3,0);br(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=Nf(),l=S(n);Wo(l,{}),b(a,n)},$$slots:{default:!0}})}function Of(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var Bf=Ye('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function Ff(t){var e=Bf();b(t,e)}var Hf=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Vf=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Uf=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),Wf=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function Gf(t,e){te(e,!0),Or("scope","popover");const i=e.bubble&&nf(Dn.TopScrollFormat,1),a=W(()=>({duration:jn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),c=G(!1),s=G(0),d=G(0),u=G(0);st(async()=>{await Ea(),p(),await h(),e.append&&requestAnimationFrame(()=>{f(),h()}),await Ea(),y()});function p(){if(!o(r))return;const{top:k,right:I,bottom:N,height:q}=o(r).getBoundingClientRect(),M=g();O(n,k-M<0&&window.innerHeight-N>k+q,!0);const Z=window.innerWidth-I-M;I+M>window.innerWidth&&(o(r).style.left=`${Z}px`)}function f(){O(l,o(s)>450)}async function h(){if(O(u,0),await new Promise(F=>requestAnimationFrame(F)),!o(r))return;const{top:k,height:I}=o(r).getBoundingClientRect(),N=g(),q=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,M=o(l)?o(d)+q:0,Z=o(n)?window.innerHeight-k-N-M:k+I-M-N;O(u,Math.min(Z,window.innerHeight*.8),!0)}function g(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function y(){var M;if(!((M=o(r))!=null&&M.firstChild))return;const k=o(r).firstChild,{offsetHeight:I,scrollHeight:N,scrollTop:q}=k;N<=I?O(c,!1):O(c,q+I<N)}var w=Wf();let m,_;var x=S(w),E=S(x);Oe(E,()=>e.children);var z=j(E,2);{var P=k=>{var I=Hf(),N=S(I),q=S(N);Ff(q),Me(3,I,()=>ni,()=>({duration:100})),b(k,I)};V(z,k=>{o(c)&&k(P)})}var T=j(x,2);{var R=k=>{var I=Vf(),N=S(I);Oe(N,()=>e.bubble),Me(7,I,()=>Aa,()=>o(a)),b(k,I)};V(T,k=>{e.bubble&&k(R)})}var A=j(T,2);{var L=k=>{var I=Uf(),N=S(I);Oe(N,()=>e.append),Me(7,I,()=>Aa,()=>o(a)),St(I,"clientHeight",q=>O(d,q)),b(k,I)};V(A,k=>{e.append&&o(l)&&k(L)})}Je(w,k=>O(r,k),()=>o(r)),U(()=>{m=we(w,1,"popover svelte-wxwoko",null,m,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),_=Fe(w,"",_,{"--max-height":o(u)?o(u)+"px":null})}),_e("scroll",x,y),Me(7,x,()=>Aa,()=>o(a)),St(w,"clientHeight",k=>O(s,k)),b(t,w),ie()}var Kf=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Zf(t,e){te(e,!0);const i=u=>{var p=ve(),f=J(p);{var h=g=>{Qo(g,{get campaign(){return r}})};V(f,g=>{r&&g(h)})}b(u,p)},a=u=>{var p=ve(),f=J(p);{var h=g=>{Xo(g,{get campaign(){return n},compact:!0})};V(f,g=>{n&&g(h)})}b(u,p)},r=ja("top_scroll"),n=ja("card");let l=G(null);se(oe.TitlePopoverView,e.title),La()&&Vt(Et.TitleInterest,{title:e.title.title,source:yi.Card}),st(()=>{c();const u=Date.now();return()=>se(oe.TitlePopoverClose,e.title,{time_spent:Date.now()-u})});function c(){const u=e.event.target;if(!(u!=null&&u.getClientRects))return;const p=Array.from(u.getClientRects()),h=p.map(y=>y.x).map(y=>Math.abs(y-e.event.clientX)),g=p[h.indexOf(Math.min(...h))];o(l).style.top=g.top+window.scrollY+"px",o(l).style.left=g.left+window.scrollX+"px",o(l).style.height=g.height+"px"}var s=Kf(),d=S(s);{let u=W(()=>n?a:null),p=W(()=>r?i:null);Gf(d,{get append(){return o(u)},get bubble(){return o(p)},children:(f,h)=>{Mn(f,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}Je(s,u=>O(l,u),()=>o(l)),b(t,s),ie()}let wr=null,Di=null;function Yf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Di&&xr();const i=t.currentTarget;wr=i,setTimeout(()=>{wr===i&&(Di=Bt(Zf,{target:Bn(),props:{event:t,title:e.title_details}}))},100)}async function xr(t=!0){if(Di){const e=ta(Di,{outro:t});wr=null,Di=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Jf(t){if(!Di)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(li)||e.closest(oi)||xr()}function Qf(){wr=null}function Xf(){return!!Di}var $f=C('<div class="content svelte-c2erhr"><!></div>'),eh=C("<div><!></div>"),th=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),ih=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),ah=C("<!> <!>",1),rh=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function nh(t,e){te(e,!0);const i=B(e,"initialIndex",3,0),a=B(e,"onchange",3,()=>null),r=300;let n,l=G(!1);st(()=>{setTimeout(()=>{n==null||n.setIndex(i()),requestAnimationFrame(()=>O(l,!0))})});function c(s){a()(s),n.setIndex(s)}br(t,{blur:!0,dialog:d=>{var u=rh(),p=J(u);Fe(p,"",{},{"--transition-duration":"300ms"});var f=S(p);{const y=(_,x)=>{let E=()=>x==null?void 0:x().currentIndex;var z=ve(),P=J(z);Pe(P,17,()=>e.items,Ie,(T,R,A)=>{var L=eh();let k;L.__click=()=>c(A);var I=S(L);{var N=q=>{var M=$f(),Z=S(M);Oe(Z,()=>e.each,()=>o(R),E),Me(3,M,()=>ni,()=>({duration:o(l)?r:0})),b(q,M)};V(I,q=>{(Math.abs(A-E())===1||E()===A)&&q(N)})}U(()=>k=we(L,1,"item svelte-c2erhr",null,k,{active:A===E()})),b(T,L)}),b(_,z)},w=(_,x)=>{let E=()=>x==null?void 0:x().currentIndex,z=()=>x==null?void 0:x().reachedEnd;var P=ah(),T=J(P);{var R=k=>{var I=th();I.__click=()=>c(E()-1);var N=S(I);Ht(N,{size:21,direction:"left",title:"Previous"}),b(k,I)};V(T,k=>{E()>0&&k(R)})}var A=j(T,2);{var L=k=>{var I=ih();I.__click=()=>c(E()+1);var N=S(I);Ht(N,{size:21,title:"Next"}),b(k,I)};V(A,k=>{z()||k(L)})}b(_,P)};let m=W(()=>o(l)?r:0);Je(No(f,{threshold:40,moveThreshold:40,get transitionDuration(){return o(m)},children:y,controls:w,$$slots:{default:!0,controls:!0}}),_=>n=_,()=>n)}var h=j(p,2),g=S(h);In(g,{size:"42px",onclick:()=>Nn(),"aria-label":"Close",children:(y,w)=>{pr(y,{size:24})},$$slots:{default:!0}}),Me(7,h,()=>na),b(d,u)},$$slots:{dialog:!0}}),ie()}pe(["click"]);function lh(t,e){te(e,!0);const i=B(e,"initialIndex",3,0);nh(t,{get items(){return e.titles},get initialIndex(){return i()},onchange:r=>se(oe.ExploreTitleRailSetIndex,e.titles[r],{index:r}),each:(r,n=vt,l=vt)=>{{let c=W(()=>{var s;return n().sid===((s=e.titles[l()])==null?void 0:s.sid)});Mn(r,{get title(){return n()},get useVideoBackground(){return o(c)}})}},$$slots:{each:!0}}),ie()}const et=[];function bi({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&zo(e))return;e==null||e.preventDefault(),et!=null&&et.length&&qn();const c=Bn(),s={initialScrollPosition:r,...l},d=oh({type:t,target:c,data:a,props:s});n&&$o({type:t,injection:i,data:n}),$o({type:t,injection:i,data:a,scrollPosition:r,component:d})}function oh({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Bt(qf,{target:e,props:{participant:i,...a}}):t==="explore"?Bt(Rf,{target:e,props:{...a}}):t==="titles-rail"?Bt(lh,{target:e,props:{titles:i,...a}}):Bt(zf,{target:e,props:{title:i,...a}})}function $o({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){et.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function qn(t=!0){et.length&&(dh(),ta(et[et.length-1].component,{outro:t}))}function sh(t=!0){qn(t),et.pop()}function Nn(t=!0){for(qn(t);et.length>0;)et.pop()}function es(){return et[et.length-2]||null}function ch(){if(et.length<2)return;sh();const t=et.pop();t&&bi({...t})}function dh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Li?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(et[et.length-1].scrollPosition=e.scrollTop)}function uh(t,e){if(zo(t))return;let i=t.target;if(!i||(i.hasAttribute(li)||(i=i.closest(oi)),!i))return;const a=i.getAttribute(li);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),Of(()=>{xr(!1),bi({event:t,injection:r,data:r.title_details})},!jn.current&&window.innerWidth>=Li&&!window.matchMedia("(pointer: coarse)").matches))}var ph=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),vh=C('<!> <a target="_blank"> </a>',1),fh=C(" <!>.",1),hh=C("<!> <br/>",1),gh=C(" <br/>",1),mh=C('<span class="svelte-1to4glm"><!></span>'),yh=C('<p class="svelte-1to4glm"></p>');function bh(t,e){te(e,!0);const i=B(e,"onclickmodal",3,()=>null);function a(s,d){se(oe.AfterArticlePlaylinkClick,s,{playlink:d})}function r(s,d,u){se(oe.AfterArticleModalButtonClick,d),i()(s,u)}var n=ve(),l=J(n);{var c=s=>{var d=yh();Pe(d,21,()=>e.linkInjections,Ie,(u,p)=>{const f=W(()=>{const{key:_,title:x,title_details:E,after_article_style:z}=o(p);return{key:_,title:x,title_details:E,after_article_style:z}}),h=W(()=>{var _;return((_=o(f).title_details)==null?void 0:_.providers)||[]});var g=mh(),y=S(g);{var w=_=>{var x=hh(),E=J(x);{var z=T=>{var R=ph(),A=J(R),L=j(A);L.__click=N=>N.stopPropagation();var k=S(L);k.__click=N=>r(N,o(f).title_details,o(p));var I=S(k);U((N,q)=>{Y(A,`"${o(f).title??""}" ${N??""} `),Y(I,q)},[()=>re("Is Available To Stream"),()=>re("View Streaming Options")]),b(T,R)},P=T=>{var R=fh(),A=J(R),L=j(A);Pe(L,17,()=>o(h),Ie,(k,I,N)=>{let q=()=>o(I).name,M=()=>o(I).url;var Z=vh(),F=J(Z);{var H=X=>{var $=kt();U(ne=>Y($,ne),[()=>N===o(h).length-1?`, ${re("And")}`:","]),b(X,$)};V(F,X=>{N&&X(H)})}var K=j(F,2);K.__click=()=>a(o(f).title_details,q());var Q=S(K);U(()=>{ae(K,"href",M()),Y(Q,q())}),b(k,Z)}),U(k=>Y(A,`"${o(f).title??""}" ${k??""} `),[()=>re("Is Available To Stream On")]),b(T,R)};V(E,T=>{o(f).after_article_style==="modal_button"?T(z):T(P,!1)})}b(_,x)},m=_=>{var x=gh(),E=J(x);U(z=>Y(E,`"${o(f).title??""}" ${z??""} `),[()=>re("Title Unavailable Suffix")]),b(_,x)};V(y,_=>{o(h).length?_(w):_(m,!1)})}U(()=>ae(g,"data-playpilot-injection-key",o(f).key)),b(u,g)}),b(s,d)};V(l,s=>{e.linkInjections.length&&s(c)})}b(t,n),ie()}pe(["click"]);let Ma=null;function wh(t,e){var l,c;if(Ma||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,r=(a?document.querySelector(a):null)||t[t.length-1],n=((c=window.PlayPilotLinkInjections)==null?void 0:c.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),Ma=Bt(bh,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>bi({event:s,injection:d,data:d.title_details})}})}function xh(){var t;Ma&&(ta(Ma),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Ma=null)}var _h=C('<p class="svelte-1epbbn0"> </p>');function kh(t,e){te(e,!1),cn();var i=_h(),a=S(i);U(r=>Y(a,r),[()=>{var r,n;return((n=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.in_text_disclaimer_text)||re("In-Text Disclaimer")}]),b(t,i),ie()}let Da=null;function Sh(t){var n,l,c,s,d,u;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||Da)return;const e=document.createElement("div"),i=(s=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:s.in_text_disclaimer_selector,a=(i?document.querySelector(i):null)||t[0],r=((u=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:u.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",a.insertAdjacentElement(r,e),Da=Bt(kh,{target:e})}function Eh(){var t;Da&&(ta(Da),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Da=null)}const li="data-playpilot-injection-key",oi=`[${li}]`;function Th(t,e={aiInjections:[],manualInjections:[]}){On(),Ah();const i=Lh(e);if(!i.length)return[];const a=mi(t.map(d=>d.innerText).join(" ")),n=Dh(i).filter(d=>a.includes(mi(d.sentence))),l={};let c=-1;for(const d of Nh(n)){c++;const u=t.findIndex(E=>mi(E.innerText).includes(mi(d.sentence))),p=t[u];if(!p)continue;const f=Eo(d.title,p,["A"]);if(!(f!=null&&f.nodeValue)||To(f)){const E=Eo(d.title,p);if(E&&To(E)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:g}=Ph(d);let y=-1,w=!1;lr(p.innerHTML,d.title)===1&&(y=p.innerHTML.indexOf(d.title));const{phrase_before:_,phrase_after:x}=Ch(p,d);if(y===-1&&(_||x)){const E=[_,d.title,x].filter(Boolean).join(" ");if(y=p.innerHTML.indexOf(E),y===-1){const z=bd(p.innerHTML,d.title,_||"",x||"");if(z){const{leadingSpaces:P,trailingSpaces:T}=wd(z.match);g.innerHTML=z.match.trim();const R=z.index+P,A=z.index+z.match.length-T;if(p.innerHTML.slice(R,A).includes("href="))continue;Rn(p.innerHTML,d.title,p,h,R,A)&&(y=z.index,w=!0)}}}if(y===-1&&(f!=null&&f.nodeValue)){const E=p.innerHTML.indexOf(f.nodeValue),z=p.innerHTML.indexOf(d.sentence),P=z===-1?p.innerHTML.indexOf(d.sentence.slice(0,20)):-1,T=d.sentence.split(" ")[0],A=lr(p.innerHTML,T)===1?p.innerHTML.indexOf(T):-1,L=pd(n.slice(0,c+1),d,["title","sentence"])-1,k=xd(f.nodeValue,p,L);y=Math.max(E,P,k,A,z,0)}if(y!==-1&&!w&&!Rn(p.innerHTML,d.title,p,h,y)){const E=kd(d.title,p.innerHTML);E>-1?Rn(p.innerHTML,d.title,p,h,E):l[d.key]="Injection would have lead to broken HTML."}}Ih(n),zh();const s=qh(i);return s.length&&wh(t,s),document.querySelector(oi)&&Sh(t),i.filter(d=>d.title_details).map((d,u)=>{const p=!d.manual&&Rh(d,u,i),f=d.duplicate??p;f&&(l[d.key]=p?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${li}="${d.key}"]`),g=is(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,y=n.find(m=>m.key===d.key),w=g?l[d.key]||(y?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:f,failed:g,failed_message:w,matchingElement:h}})}function Ph(t){var a;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=document.createElement("a");return i.dataset.playpilotPosterUrl=(a=t.title_details)==null?void 0:a.standing_poster,i.innerText=t.title,i.href=t.playpilot_url,i.target="_blank",i.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",i),{injectionElement:e,linkElement:i}}function Rn(t,e,i,a,r,n=-1){const l=u=>Array.from(u.querySelectorAll(`a, ${oi}`)).filter(p=>!p.innerText).length,c=document.createElement("div");c.innerHTML=t;const s=l(c),d=c.innerText;return n>0?c.innerHTML=gd(t,a.outerHTML,r,n):c.innerHTML=hd(t,e,a.outerHTML,r),Math.abs(c.innerText.length-d.length)>1||s!=l(c)?!1:(i.innerHTML=c.innerHTML,!0)}function Ch(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(lr(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=md(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function zh(){const t=Array.from(document.querySelectorAll(`${oi} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const a=getComputedStyle(i);for(const r of e)a.getPropertyValue(r)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${r}`)}}function Ih(t){window.addEventListener("mousemove",Jf),window.addEventListener("click",i=>uh(i,t)),document.querySelectorAll(oi).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{Xf()||Yf(n,r)}),i.addEventListener("mouseleave",Qf))})}function On(){document.querySelectorAll(oi).forEach(e=>jh(e.getAttribute(li)||"")),xh(),Eh(),Nn(!1),xr(!1)}function jh(t){var r;const e=document.querySelector(`[${li}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(n=>n.remove());const a=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=a||""}function Ah(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(oi)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function Lh({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Mh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function ts(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&is(t)}function is(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function Dh(t){return as(t).filter(e=>e.in_text!==!1&&ts(e))}function qh(t){return as(t).filter(e=>e.after_article===!0&&ts(e))}function as(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&rs(i,e)))}function Nh(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const a=i.title.length-e.title.length;return a!==0?a:0})}function Rh(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&rs(a,t))}function rs(t,e){return t.title===e.title&&mi(t.sentence)===mi(e.sentence)}function Bn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Oh(){const t=gi();if(!t)throw new Error("No token was provided");try{return await await ri(`/domains/config?api-token=${t}`)||null}catch{return null}}pe(["click"]),pe(["input"]),pe(["click"]),pe(["click"]),pe(["click"]),pe(["mousedown","touchstart"]),pe(["mousedown","touchstart"]),pe(["click"]),pe(["click"]),pe(["click"]),pe(["click"]),pe(["click"]),pe(["click"]);function Bh(t,e){te(e,!0);const i=100;let a=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){n();return}if(!window.__tcfapi){a<i&&setTimeout(r,100),a++;return}window.__tcfapi("addEventListener",2,(l,c)=>{if(!c)return;const{purpose:s,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const u=p=>s.consents[p]===!0;Sd({ads:u(1),pixels:u(1)&&u(7),split_tests:u(9)&&u(10),tracking:u(7)&&u(8),affiliate:u(1)&&u(7)}),n()})}function n(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ie()}var Fh=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Hh=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Vh=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Uh=C('<button class="svelte-1tp7i1s"></button>'),Wh=C("<small>You are using the beta version of TPI</small>"),Gh=C('<button class="svelte-1tp7i1s">Use beta script</button>'),Kh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Zh=C("<option> </option>"),Yh=C('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function Jh(t,e){te(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(Le(d())),l=G(!1),c=null,s=G(184);un(()=>{c&&clearInterval(c)});function d(){var z,P,T,R,A,L;const m=window.PlayPilotLinkInjections,_=((z=m.evaluated_link_injections)==null?void 0:z.filter(k=>!k.failed))||[],x=((P=m.evaluated_link_injections)==null?void 0:P.filter(k=>k.failed))||[],E=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:m.domain_sid},{label:"Organization",data:m.organization_sid},{label:"HTML selector",data:m.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([k,I])=>({label:k,data:I})),[`Succesful injections (${_.length})`]:_.map(k=>({label:k.title,data:k.sentence})),[`Failed injections (${x.length})`]:x.map(k=>({label:k.title,data:`Reason: ${k.failed_message} | Sentence: ${k.sentence}`})),[`Fetched ads (${((T=m.ads)==null?void 0:T.length)||0})`]:(R=m.ads)==null?void 0:R.map(k=>({label:k.campaign_name,data:k})),[`Tracking events (${((A=m.tracked_events)==null?void 0:A.length)||0})`]:(L=m.tracked_events)==null?void 0:L.map(k=>({label:k.event,data:k.payload})),[`Visible pixels (${E.length})`]:E.map((k,I)=>({label:I+1,data:k.src}))}}function u(m){o(l)||(a.push(m.key),O(l,i.some(_=>a.slice(a.length-_.length,a.length).join("")===_),!0),c=setInterval(()=>O(n,d(),!0),200))}function p(m){window.PlayPilotLinkInjections.ads.unshift({campaign_format:m,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function f(m){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(Dn).forEach(({key:_,numberOfVariants:x})=>{const E=1/x;window.PlayPilotLinkInjections.split_test_identifiers[_]=Math.min(E*m,1)})}function h(){var x,E;const m=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!m)return;(E=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||E.call(x);const _=document.createElement("script");for(const z of m.attributes)_.setAttribute(z.name,z.value);_.getAttribute("onload")||_.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),_.src=m.src.replace("link-injection","link-injection@next"),m.insertAdjacentElement("afterend",_),m.remove()}var g=ve();_e("keydown",je,u);var y=J(g);{var w=m=>{var _=Yh(),x=j(S(_),4);{var E=de=>{var be=Fh();b(de,be)};V(x,de=>{var be,he,Ce;(be=window.PlayPilotLinkInjections.config)!=null&&be.exclude_urls_pattern&&Mi().match((Ce=(he=window.PlayPilotLinkInjections)==null?void 0:he.config)==null?void 0:Ce.exclude_urls_pattern)&&de(E)})}var z=j(x,2);Pe(z,17,()=>Object.entries(o(n)),Ie,(de,be)=>{var he=W(()=>Ui(o(be),2));let Ce=()=>o(he)[0],Qe=()=>o(he)[1];var De=Vh(),fe=S(De),Ge=S(fe),at=j(fe,2);{var ci=ee=>{var le=ve(),ge=J(le);{var rt=Ve=>{var Zt=ve(),Hn=J(Zt);Pe(Hn,17,Qe,Ie,(Yt,Jt,vg,fg)=>{let ag=()=>o(Jt).label,rg=()=>o(Jt).data;var ls=Hh(),os=S(ls),ng=S(os),lg=j(os,2),og=S(lg);U(sg=>{Y(ng,ag()),Y(og,sg)},[()=>JSON.stringify(rg())]),b(Yt,ls)}),b(Ve,Zt)};V(ge,Ve=>{Array.isArray(Qe())&&Ve(rt)})}b(ee,le)},Ct=ee=>{var le=kt("No data");b(ee,le)};V(at,ee=>{var le;(le=Qe())!=null&&le.length?ee(ci):ee(Ct,!1)})}U(()=>Y(Ge,Ce())),b(de,De)});var P=j(z,4);P.__click=()=>p("card");var T=j(P,2);T.__click=()=>p("top_scroll");var R=j(T,6);Pe(R,16,()=>({length:4}),Ie,(de,be,he)=>{var Ce=Uh();Ce.__click=()=>f(he),Ce.textContent=he,b(de,Ce)});var A=j(R,4);A.__click=()=>console.log(gn(window.PlayPilotLinkInjections.config));var L=j(A,2);L.__click=()=>console.log(gn(window.PlayPilotLinkInjections.config).pageText);var k=j(L,4);k.__click=function(...de){var be;(be=e.onrerender)==null||be.apply(this,de)};var I=j(k,2);{var N=de=>{var be=Wh();b(de,be)},q=de=>{var be=Gh();be.__click=h,b(de,be)};V(I,de=>{r?de(N):de(q,!1)})}var M=j(I,2);{var Z=de=>{var be=Kh();be.__click=()=>{mr(),window.PlayPilotLinkInjections.config.explore_use_router=!oa(),gr()},b(de,be)};V(M,de=>{oa()||de(Z)})}var F=j(M,4),H=j(S(F),2);Oc(H,window.PlayPilotLinkInjections.region),H.__change=de=>{mr(),window.PlayPilotLinkInjections.region=de.target.value,gr()};var K=j(F,2),Q=j(S(K),2);Q.__change=de=>{mr(),window.PlayPilotLinkInjections.language=de.target.value,gr()},Pe(Q,21,()=>Object.entries(v),Ie,(de,be)=>{var he=W(()=>Ui(o(be),2));let Ce=()=>o(he)[0],Qe=()=>o(he)[1];var De=Zh(),fe=S(De),Ge={};U(at=>{lo(De,at),Y(fe,Ce()),Ge!==(Ge=Qe())&&(De.value=(De.__value=Qe())??"")},[()=>Qe()===Ia()]),b(de,De)});var X=j(K,4),$=j(S(X),2);ae($,"min",80),ae($,"max",240),ae($,"step",8),$.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(s)}px`);var ne=j($,2),ke=S(ne),Ae=j(X,4);Ae.__click=()=>O(l,!1),U(()=>Y(ke,o(s))),za($,()=>o(s),de=>O(s,de)),b(m,_)};V(y,m=>{o(l)&&m(w)})}b(t,g),ie()}pe(["click","change","input"]);function Qh(t,e){te(e,!1);const i=Array.from(document.querySelectorAll(oi)),a=[],r=Date.now();let n=!1,l=null;st(()=>{if(!rr())return c(),()=>{var p;return(p=l==null?void 0:l.disconnect)==null?void 0:p.call(l)}});function c(){l=new IntersectionObserver(s),i.forEach(p=>{l.observe(p)})}function s(p){p.forEach(f=>{if(!f.isIntersecting)return;const h=f.target.getAttribute(li);h&&a.push(h),l.unobserve(f.target)})}function d(){const{scrollHeight:p,scrollTop:f,clientHeight:h}=document.documentElement;return f/(p-h)*100}function u(){var f,h;if(n||document.visibilityState!=="hidden")return;n=!0;const p=Date.now();se(oe.UserLeft,null,{time_start:r,time_end:p,time_spent:p-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(f=window.PlayPilotLinkInjections)==null?void 0:f.tracked_events)==null?void 0:h.map(g=>g.event))||[],scroll_percentage:d()})}cn(),_e("visibilitychange",je,u),ie()}function Xh(t,e){te(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new yr,r=.7,n="[data-playpilot-poster]";let l=G(0),c={},s=null;const d=W(()=>o(l)<Li);un(h);function u(){var x,E;if((E=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&E.disable_scroll_reveal_posters||!o(d))return;g();const y=window.innerHeight,w=new yr,m=y*r,_=y-m;for(const z of i){const{top:P}=z.getBoundingClientRect();P<m&&P>_&&w.add(z)}for(const z of w){if(a.has(z))continue;const P=z.dataset.playpilotPosterUrl;P in c&&c[P]!==z||(p(z,P),a.add(z),c[P]=z)}}function p(y,w){const m=document.createElement("img");m.classList.add("playpilot-floating-poster"),m.dataset.playpilotPoster="",m.src=w,m.alt="",m.onload=()=>m.classList.add("loaded"),y.insertAdjacentElement("afterbegin",m)}function f(y){const w=y.querySelector(n);w&&(w.classList.add("animating-out"),setTimeout(()=>w.remove(),500))}function h(){for(const y of Array.from(document.querySelectorAll(n)))y.remove()}function g(){s&&clearTimeout(s),s=setTimeout(()=>{for(const y of a)f(y),a.delete(y),c={}},1e3)}_e("scroll",je,u),sn("innerWidth",y=>O(l,y,!0)),ie()}function $h(t,e){te(e,!0);const i=[];st(()=>{if(!La())return;const r=new IntersectionObserver(n=>{n.forEach(l=>{if(!l.isIntersecting)return;r.unobserve(l.target);const c=l.target.getAttribute(li),s=e.linkInjections.find(u=>u.key===c),d=s==null?void 0:s.title_details;!c||!s||!d||i.includes(d.sid)||a(d)})});return e.linkInjections.forEach(n=>{n.matchingElement&&r.observe(n.matchingElement)}),()=>r.disconnect()});function a({sid:r,genres:n,participants:l,providers:c,title:s}){i.push(r),Vt(Et.TitleInterest,{title:s,source:yi.Link}),n.slice(0,3).forEach(d=>{var u;Vt(Et.GenreInterest,{genre:(u=sr.find(p=>p.slug===d))==null?void 0:u.name,source:yi.Link})}),l==null||l.slice(0,5).forEach(d=>{Vt(Et.ParticipantInterest,{participant:d.name,source:yi.Link})}),c==null||c.forEach(d=>{Vt(Et.ProviderInterest,{provider:d.name,source:yi.Link})})}ie()}var eg=C("<!> <!>",1),tg=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!> <!>',1);function ig(t,e){te(e,!0);let i=G(Le([])),a=G(null),r=G(Le(rr()));bo();let n=G(!1),l=G(!0),c=G(!0),s=G(Le([]));const d=W(()=>o(a)||{}),u=W(()=>Qn(o(d).ai_injections,()=>[],!0)),p=W(()=>Qn(o(d).manual_injections,()=>[],!0)),f=W(()=>hn(o(i))),h=y();Be(()=>{o(r)&&!o(l)&&w()}),gr(),un(On);async function g(){or()||(await h,Id(),se(oe.ArticlePageView),!(!o(u).length&&!o(p).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await Ao())))}async function y(){var q;O(l,!0);try{o(r)&&O(n,await yo({throwError:!0}),!0)}catch{se(oe.AuthFailed)}try{const M=window.PlayPilotLinkInjections.config||await Oh()||{};if(window.PlayPilotLinkInjections.config=M,M!=null&&M.custom_style&&_(M.custom_style||""),M!=null&&M.explore_navigation_selector&&Bp(),M!=null&&M.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),M!=null&&M.domain_sid&&jo({organizationSid:M.organization_sid,domainSid:M.domain_sid}),O(c,cd(M),!0),o(c))return;M!=null&&M.html_selector&&(window.PlayPilotLinkInjections.selector=M==null?void 0:M.html_selector),O(i,gn(window.PlayPilotLinkInjections.config).elements,!0)}catch(M){se(oe.FetchingConfigFailed),console.error("TPI Config failed to fetch",M);return}try{if(O(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),O(a,o(a)||await ko(o(f),{maxTries:1,runAiWhenRelevant:!or()}),!0),O(l,!1),!o(a)||(q=window.PlayPilotLinkInjections.config)!=null&&q.disable_public_injections&&!(o(r)&&o(n)))return;if(jo({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){m({aiInjections:o(u),manualInjections:o(p)});return}if(!o(r)||or())return;O(a,await ko(o(f),{requireCompletedResult:!0,onpoll:M=>O(a,M,!0)}),!0),m({aiInjections:o(u),manualInjections:o(p)})}catch(M){console.error(M),se(oe.InjectionError,null,{message:M.message})}}function w(){m(Mh(o(s)))}function m(q={aiInjections:o(u),manualInjections:o(p)}){const M=Th(o(i),q);JSON.stringify(M)!==JSON.stringify(o(s))&&(O(s,M,!0),window.PlayPilotLinkInjections.evaluated_link_injections=M),o(r)||x(M)}function _(q){const M="playpilot-custom-style",Z=document.getElementById(M),F=Z||document.createElement("style");F.textContent=`body { ${q} }`,F.id=M,Z||document.body.appendChild(F)}function x(q){const M=q.filter(F=>!F.failed),Z=q.filter(F=>F.failed);if(M.length&&se(oe.ArticleInjected,null,{manual:M.filter(F=>F.manual).length,ai:M.filter(F=>!F.manual).length}),Z.length){const F=H=>Z.filter(({failed_message:K})=>K==null?void 0:K.includes(H)).length;se(oe.FailedInjectionsCount,null,{total:Z.length,sentence_not_found:F("sentence was not found"),already_linked:F("already inside of a link"),broken_html:F("broken HTML"),duplicate:F("duplicate"),unknown:F("unknown reasons")})}}var E=tg(),z=J(E),P=S(z);V(P,q=>{});var T=j(P,2);Jh(T,{onrerender:w});var R=j(z,2);{var A=q=>{Pn(q,{get pixels(){return o(a).pixels}})};V(R,q=>{var M,Z;(Z=(M=o(a))==null?void 0:M.pixels)!=null&&Z.length&&q(A)})}var L=j(R,2);{var k=q=>{$h(q,{get linkInjections(){return o(s)}})};V(L,q=>{o(s).length&&q(k)})}var I=j(L,2);Ca(I,()=>o(s),q=>{var M=eg(),Z=J(M);Qh(Z,{});var F=j(Z,2);Xh(F,{}),b(q,M)});var N=j(I,2);Bh(N,{onchange:g}),b(t,E),ie()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Bt(ig,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),On()}}})();