@playpilot/tpi 8.1.2 → 8.1.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 Dh=Object.defineProperty;var $o=we=>{throw TypeError(we)};var qh=(we,ke,Ie)=
2
2
  /*$vite$:1*/`,document.head.appendChild(we);const ke=!1;var Ie=Array.isArray,La=Array.prototype.indexOf,kr=Array.from,ns=Object.defineProperty,ai=Object.getOwnPropertyDescriptor,qn=Object.getOwnPropertyDescriptors,ls=Object.prototype,os=Array.prototype,Sr=Object.getPrototypeOf,Rn=Object.isExtensible;function Oi(t){return typeof t=="function"}const ut=()=>{};function ss(t){return typeof(t==null?void 0:t.then)=="function"}function cs(t){return t()}function Tr(t){for(var e=0;e<t.length;e++)t[e]()}function On(){var t,e,i=new Promise((a,r)=>{t=a,e=r});return{promise:i,resolve:t,reject:e}}function Nn(t,e,i=!1){return t===void 0?i?e():e:t}function Ma(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 He=2,Er=4,Da=8,Bn=1<<24,Et=16,Wt=32,bi=64,qa=128,bt=512,Ke=1024,tt=2048,Gt=4096,ot=8192,Kt=16384,Ra=32768,Pt=65536,Fn=1<<17,Vn=1<<18,Ni=1<<19,Hn=1<<20,da=32768,Pr=1<<21,Cr=1<<22,ri=1<<23,Ct=Symbol("$state"),Un=Symbol("legacy props"),ds=Symbol(""),Bi=new class extends Error{constructor(){super(...arguments);Tt(this,"name","StaleReactionError");Tt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function zr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function us(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ps(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function vs(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function fs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function hs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function gs(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function ms(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ys(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function bs(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _s(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Wn=1,Gn=2,Kn=4,xs=8,ws=16,ks=1,Ss=2,Ts=4,Es=8,Ps=16,Cs=1,zs=2,js=4,Is=1,As=2,Fe=Symbol(),Ls="http://www.w3.org/1999/xhtml",Ms="http://www.w3.org/2000/svg",Ds="@attach";function qs(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Rs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Yn(t){return t===this.v}function Zn(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Jn(t){return!Zn(t,this.v)}let Fi=!1,Os=!1;function Ns(){Fi=!0}let _e=null;function Vi(t){_e=t}function jr(t){return Xn().get(t)}function Ir(t,e){return Xn().set(t,e),e}function $(t,e=!1,i){_e={p:_e,i:!1,c:null,e:null,s:t,x:null,l:Fi&&!e?{s:null,u:null,$:[]}:null}}function ee(t){var e=_e,i=e.e;if(i!==null){e.e=null;for(var a of i)_l(a)}return t!==void 0&&(e.x=t),e.i=!0,_e=e.p,t??{}}function _i(){return!Fi||_e!==null&&_e.l===null}function Xn(t){return _e===null&&zr(),_e.c??(_e.c=new Map(Bs(_e)||void 0))}function Bs(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let xi=[];function Qn(){var t=xi;xi=[],Tr(t)}function Yt(t){if(xi.length===0&&!Ui){var e=xi;queueMicrotask(()=>{e===xi&&Qn()})}xi.push(t)}function Fs(){for(;xi.length>0;)Qn()}function $n(t){var e=ge;if(e===null)return he.f|=ri,t;if(e.f&Ra)Hi(t,e);else{if(!(e.f&qa))throw t;e.b.error(t)}}function Hi(t,e){for(;e!==null;){if(e.f&qa)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Oa=new Set;let fe=null,Na=null,Me=null,pt=[],Ba=null,Ar=!1,Ui=!1;const fr=class fr{constructor(){le(this,Ne);Tt(this,"committed",!1);Tt(this,"current",new Map);Tt(this,"previous",new Map);le(this,aa,new Set);le(this,ra,new Set);le(this,Ii,0);le(this,Ai,0);le(this,Pa,null);le(this,na,[]);le(this,la,[]);Tt(this,"skipped_effects",new Set);Tt(this,"is_fork",!1)}is_deferred(){return this.is_fork||L(this,Ai)>0}process(e){var a;pt=[],Na=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)Se(this,Ne,An).call(this,r,i);this.is_fork||Se(this,Ne,es).call(this),this.is_deferred()?(Se(this,Ne,Ri).call(this,i.effects),Se(this,Ne,Ri).call(this,i.render_effects),Se(this,Ne,Ri).call(this,i.block_effects)):(Na=this,fe=null,il(i.render_effects),il(i.effects),Na=null,(a=L(this,Pa))==null||a.resolve()),Me=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&ri||(this.current.set(e,e.v),Me==null||Me.set(e,e.v))}activate(){fe=this,this.apply()}deactivate(){fe===this&&(fe=null,Me=null)}flush(){if(this.activate(),pt.length>0){if(tl(),fe!==null&&fe!==this)return}else L(this,Ii)===0&&this.process([]);this.deactivate()}discard(){for(const e of L(this,ra))e(this);L(this,ra).clear()}increment(e){re(this,Ii,L(this,Ii)+1),e&&re(this,Ai,L(this,Ai)+1)}decrement(e){re(this,Ii,L(this,Ii)-1),e&&re(this,Ai,L(this,Ai)-1),this.revive()}revive(){for(const e of L(this,na))Ye(e,tt),wi(e);for(const e of L(this,la))Ye(e,Gt),wi(e);re(this,na,[]),re(this,la,[]),this.flush()}oncommit(e){L(this,aa).add(e)}ondiscard(e){L(this,ra).add(e)}settled(){return(L(this,Pa)??re(this,Pa,On())).promise}static ensure(){if(fe===null){const e=fe=new fr;Oa.add(fe),Ui||fr.enqueue(()=>{fe===e&&e.flush()})}return fe}static enqueue(e){Yt(e)}apply(){}};aa=new WeakMap,ra=new WeakMap,Ii=new WeakMap,Ai=new WeakMap,Pa=new WeakMap,na=new WeakMap,la=new WeakMap,Ne=new WeakSet,An=function(e,i){var u;e.f^=Ke;for(var a=e.first;a!==null;){var r=a.f,n=(r&(Wt|bi))!==0,l=n&&(r&Ke)!==0,s=l||(r&ot)!==0||this.skipped_effects.has(a);if(a.f&qa&&((u=a.b)!=null&&u.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!s&&a.fn!==null){n?a.f^=Ke:r&Er?i.effects.push(a):ma(a)&&(a.f&Et&&i.block_effects.push(a),ya(a));var c=a.first;if(c!==null){a=c;continue}}var d=a.parent;for(a=a.next;a===null&&d!==null;)d===i.effect&&(Se(this,Ne,Ri).call(this,i.effects),Se(this,Ne,Ri).call(this,i.render_effects),Se(this,Ne,Ri).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Ri=function(e){for(const i of e)(i.f&tt?L(this,na):L(this,la)).push(i),Se(this,Ne,Ln).call(this,i.deps),Ye(i,Ke)},Ln=function(e){if(e!==null)for(const i of e)!(i.f&He)||!(i.f&da)||(i.f^=da,Se(this,Ne,Ln).call(this,i.deps))},es=function(){if(L(this,Ai)===0){for(const e of L(this,aa))e();L(this,aa).clear()}L(this,Ii)===0&&Se(this,Ne,ts).call(this)},ts=function(){var n;if(Oa.size>1){this.previous.clear();var e=Me,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Oa){if(l===this){i=!1;continue}const s=[];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;s.push(d)}if(s.length===0)continue;const c=[...l.current.keys()].filter(d=>!this.current.has(d));if(c.length>0){var r=pt;pt=[];const d=new Set,u=new Map;for(const p of s)al(p,c,d,u);if(pt.length>0){fe=l,l.apply();for(const p of pt)Se(n=l,Ne,An).call(n,p,a);l.deactivate()}pt=r}}fe=null,Me=e}this.committed=!0,Oa.delete(this)};let zt=fr;function el(t){var e=Ui;Ui=!0;try{for(var i;;){if(Fs(),pt.length===0&&(fe==null||fe.flush(),pt.length===0))return Ba=null,i;tl()}}finally{Ui=e}}function tl(){var t=si;Ar=!0;var e=null;try{var i=0;for(Va(!0);pt.length>0;){var a=zt.ensure();if(i++>1e3){var r,n;Vs()}a.process(pt),ni.clear()}}finally{Ar=!1,Va(t),Ba=null}}function Vs(){try{hs()}catch(t){Hi(t,Ba)}}let _t=null;function il(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(Kt|ot))&&ma(a)&&(_t=new Set,ya(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?Sl(a):a.fn=null),(_t==null?void 0:_t.size)>0)){ni.clear();for(const r of _t){if(r.f&(Kt|ot))continue;const n=[r];let l=r.parent;for(;l!==null;)_t.has(l)&&(_t.delete(l),n.push(l)),l=l.parent;for(let s=n.length-1;s>=0;s--){const c=n[s];c.f&(Kt|ot)||ya(c)}}_t.clear()}}_t=null}}function al(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&He?al(r,e,i,a):n&(Cr|Et)&&!(n&tt)&&rl(r,e,a)&&(Ye(r,tt),wi(r))}}function rl(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&He&&rl(r,e,i))return i.set(r,!0),!0}return i.set(t,!1),!1}function wi(t){for(var e=Ba=t;e.parent!==null;){e=e.parent;var i=e.f;if(Ar&&e===ge&&i&Et&&!(i&Vn))return;if(i&(bi|Wt)){if(!(i&Ke))return;e.f^=Ke}}pt.push(e)}function nl(t){let e=0,i=It(0),a;return()=>{fa()&&(o(i),Fa(()=>(e===0&&(a=Dt(()=>t(()=>li(i)))),e+=1,()=>{Yt(()=>{e-=1,e===0&&(a==null||a(),a=void 0,li(i))})})))}}var Hs=Pt|Ni|qa;function Us(t,e,i){new Ws(t,e,i)}class Ws{constructor(e,i,a){le(this,Ve);Tt(this,"parent");le(this,ht,!1);le(this,gt);le(this,jn,null);le(this,Ft);le(this,Li);le(this,Vt);le(this,mt,null);le(this,rt,null);le(this,Ht,null);le(this,ii,null);le(this,pi,null);le(this,Mi,0);le(this,vi,0);le(this,Di,!1);le(this,fi,null);le(this,hr,nl(()=>(re(this,fi,It(L(this,Mi))),()=>{re(this,fi,null)})));re(this,gt,e),re(this,Ft,i),re(this,Li,a),this.parent=ge.b,re(this,ht,!!L(this,Ft).pending),re(this,Vt,oi(()=>{ge.b=this;{var r=Se(this,Ve,Mn).call(this);try{re(this,mt,it(()=>a(r)))}catch(n){this.error(n)}L(this,vi)>0?Se(this,Ve,wr).call(this):re(this,ht,!1)}return()=>{var n;(n=L(this,pi))==null||n.remove()}},Hs))}is_pending(){return L(this,ht)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!L(this,Ft).pending}update_pending_count(e){Se(this,Ve,Dn).call(this,e),re(this,Mi,L(this,Mi)+e),L(this,fi)&&Zt(L(this,fi),L(this,Mi))}get_effect_pending(){return L(this,hr).call(this),o(L(this,fi))}error(e){var i=L(this,Ft).onerror;let a=L(this,Ft).failed;if(L(this,Di)||!i&&!a)throw e;L(this,mt)&&(We(L(this,mt)),re(this,mt,null)),L(this,rt)&&(We(L(this,rt)),re(this,rt,null)),L(this,Ht)&&(We(L(this,Ht)),re(this,Ht,null));var r=!1,n=!1;const l=()=>{if(r){Rs();return}r=!0,n&&_s(),zt.ensure(),re(this,Mi,0),L(this,Ht)!==null&&Gi(L(this,Ht),()=>{re(this,Ht,null)}),re(this,ht,this.has_pending_snippet()),re(this,mt,Se(this,Ve,xr).call(this,()=>(re(this,Di,!1),it(()=>L(this,Li).call(this,L(this,gt)))))),L(this,vi)>0?Se(this,Ve,wr).call(this):re(this,ht,!1)};var s=he;try{at(null),n=!0,i==null||i(e,l),n=!1}catch(c){Hi(c,L(this,Vt)&&L(this,Vt).parent)}finally{at(s)}a&&Yt(()=>{re(this,Ht,Se(this,Ve,xr).call(this,()=>{zt.ensure(),re(this,Di,!0);try{return it(()=>{a(L(this,gt),()=>e,()=>l)})}catch(c){return Hi(c,L(this,Vt).parent),null}finally{re(this,Di,!1)}}))})}}ht=new WeakMap,gt=new WeakMap,jn=new WeakMap,Ft=new WeakMap,Li=new WeakMap,Vt=new WeakMap,mt=new WeakMap,rt=new WeakMap,Ht=new WeakMap,ii=new WeakMap,pi=new WeakMap,Mi=new WeakMap,vi=new WeakMap,Di=new WeakMap,fi=new WeakMap,hr=new WeakMap,Ve=new WeakSet,Rh=function(){try{re(this,mt,it(()=>L(this,Li).call(this,L(this,gt))))}catch(e){this.error(e)}re(this,ht,!1)},Oh=function(){const e=L(this,Ft).pending;e&&(re(this,rt,it(()=>e(L(this,gt)))),zt.enqueue(()=>{var i=Se(this,Ve,Mn).call(this);re(this,mt,Se(this,Ve,xr).call(this,()=>(zt.ensure(),it(()=>L(this,Li).call(this,i))))),L(this,vi)>0?Se(this,Ve,wr).call(this):(Gi(L(this,rt),()=>{re(this,rt,null)}),re(this,ht,!1))}))},Mn=function(){var e=L(this,gt);return L(this,ht)&&(re(this,pi,At()),L(this,gt).before(L(this,pi)),e=L(this,pi)),e},xr=function(e){var i=ge,a=he,r=_e;Mt(L(this,Vt)),at(L(this,Vt)),Vi(L(this,Vt).ctx);try{return e()}catch(n){return $n(n),null}finally{Mt(i),at(a),Vi(r)}},wr=function(){const e=L(this,Ft).pending;L(this,mt)!==null&&(re(this,ii,document.createDocumentFragment()),L(this,ii).append(L(this,pi)),Pl(L(this,mt),L(this,ii))),L(this,rt)===null&&re(this,rt,it(()=>e(L(this,gt))))},Dn=function(e){var i;if(!this.has_pending_snippet()){this.parent&&Se(i=this.parent,Ve,Dn).call(i,e);return}re(this,vi,L(this,vi)+e),L(this,vi)===0&&(re(this,ht,!1),L(this,rt)&&Gi(L(this,rt),()=>{re(this,rt,null)}),L(this,ii)&&(L(this,gt).before(L(this,ii)),re(this,ii,null)))};let ki=null;function ll(t){ki=t}function Ce(t,e){return e}function Gs(t,e,i){for(var a=[],r=e.length,n=0;n<r;n++)Or(e[n].e,a,!0);Tl(a,()=>{var l=a.length===0&&i!==null;if(l){var s=i,c=s.parentNode;tc(c),c.append(s),t.items.clear(),jt(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),jt(t,u.prev,u.next)),We(u.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Ee(t,e,i,a,r,n=null){var l=t,s=new Map,c=null,d=(e&Kn)!==0,u=(e&Wn)!==0,p=(e&Gn)!==0;if(d){var v=t;l=v.appendChild(At())}var f=null,m=Mr(()=>{var k=i();return Ie(k)?k:k==null?[]:kr(k)}),b,g=!0;function y(){Ks(w,b,l,e,a),f!==null&&(b.length===0?(f.fragment?(l.before(f.fragment),f.fragment=null):Nr(f.effect),x.first=f.effect):Gi(f.effect,()=>{f=null}))}var x=oi(()=>{b=o(m);for(var k=b.length,M=new Set,E=fe,z=null,N=ml(),A=0;A<k;A+=1){var j=b[A],D=a(j,A),P=g?null:s.get(D);P?(u&&Zt(P.v,j),p?Zt(P.i,A):P.i=A,N&&E.skipped_effects.delete(P.e)):(P=Ys(g?l:null,z,j,D,A,r,e,i),g&&(P.o=!0,z===null?c=P:z.next=P,z=P),s.set(D,P)),M.add(D)}if(k===0&&n&&!f)if(g)f={fragment:null,effect:it(()=>n(l))};else{var S=document.createDocumentFragment(),V=At();S.append(V),f={fragment:S,effect:it(()=>n(V))}}if(!g)if(N){for(const[W,Y]of s)M.has(W)||E.skipped_effects.add(Y.e);E.oncommit(y),E.ondiscard(()=>{})}else y();o(m)}),w={effect:x,flags:e,items:s,first:c};g=!1}function Ks(t,e,i,a,r){var j,D,P,S;var n=(a&xs)!==0,l=e.length,s=t.items,c=t.first,d,u=null,p,v=[],f=[],m,b,g,y;if(n)for(y=0;y<l;y+=1)m=e[y],b=r(m,y),g=s.get(b),g.o&&((j=g.a)==null||j.measure(),(p??(p=new Set)).add(g));for(y=0;y<l;y+=1){if(m=e[y],b=r(m,y),g=s.get(b),t.first??(t.first=g),!g.o){g.o=!0;var x=u?u.next:c;jt(t,u,g),jt(t,g,x),Lr(g,x,i),u=g,v=[],f=[],c=u.next;continue}if(g.e.f&ot&&(Nr(g.e),n&&((D=g.a)==null||D.unfix(),(p??(p=new Set)).delete(g))),g!==c){if(d!==void 0&&d.has(g)){if(v.length<f.length){var w=f[0],k;u=w.prev;var M=v[0],E=v[v.length-1];for(k=0;k<v.length;k+=1)Lr(v[k],w,i);for(k=0;k<f.length;k+=1)d.delete(f[k]);jt(t,M.prev,E.next),jt(t,u,M),jt(t,E,w),c=w,u=E,y-=1,v=[],f=[]}else d.delete(g),Lr(g,c,i),jt(t,g.prev,g.next),jt(t,g,u===null?t.first:u.next),jt(t,u,g),u=g;continue}for(v=[],f=[];c!==null&&c.k!==b;)c.e.f&ot||(d??(d=new Set)).add(c),f.push(c),c=c.next;if(c===null)continue;g=c}v.push(g),u=g,c=g.next}if(c!==null||d!==void 0){for(var z=d===void 0?[]:kr(d);c!==null;)c.e.f&ot||z.push(c),c=c.next;var N=z.length;if(N>0){var A=a&Kn&&l===0?i:null;if(n){for(y=0;y<N;y+=1)(P=z[y].a)==null||P.measure();for(y=0;y<N;y+=1)(S=z[y].a)==null||S.fix()}Gs(t,z,A)}}n&&Yt(()=>{var V;if(p!==void 0)for(g of p)(V=g.a)==null||V.apply()})}function Ys(t,e,i,a,r,n,l,s){var c=ki,d=(l&Wn)!==0,u=(l&ws)===0,p=d?u?Rr(i,!1,!1):It(i):i,v=l&Gn?It(r):r,f={i:v,v:p,k:a,a:null,e:null,o:!1,prev:e,next:null};ki=f;try{if(t===null){var m=document.createDocumentFragment();m.append(t=At())}return f.e=it(()=>n(t,p,v,s)),e!==null&&(e.next=f),f}finally{ki=c}}function Lr(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=va(n);r.before(n),n=l}}function jt(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 ol(t,e,i,a){const r=_i()?pa:Mr;if(i.length===0&&t.length===0){a(e.map(r));return}var n=fe,l=ge,s=sl();function c(){Promise.all(i.map(d=>Zs(d))).then(d=>{s();try{a([...e.map(r),...d])}catch(u){l.f&Kt||Hi(u,l)}n==null||n.deactivate(),ua()}).catch(d=>{Hi(d,l)})}t.length>0?Promise.all(t).then(()=>{s();try{return c()}finally{n==null||n.deactivate(),ua()}}):c()}function sl(){var t=ge,e=he,i=_e,a=fe;return function(n=!0){Mt(t),at(e),Vi(i),n&&(a==null||a.activate())}}function ua(){Mt(null),at(null),Vi(null)}function pa(t){var e=He|tt,i=he!==null&&he.f&He?he:null;return ge!==null&&(ge.f|=Ni),{ctx:_e,deps:null,effects:null,equals:Yn,f:e,fn:t,reactions:null,rv:0,v:Fe,wv:0,parent:i??ge,ac:null}}function Zs(t,e){let i=ge;i===null&&us();var a=i.b,r=void 0,n=It(Fe),l=!he,s=new Map;return cc(()=>{var v;var c=On();r=c.promise;try{Promise.resolve(t()).then(c.resolve,c.reject).then(()=>{d===fe&&d.committed&&d.deactivate(),ua()})}catch(f){c.reject(f),ua()}var d=fe;if(l){var u=!a.is_pending();a.update_pending_count(1),d.increment(u),(v=s.get(d))==null||v.reject(Bi),s.delete(d),s.set(d,c)}const p=(f,m=void 0)=>{if(d.activate(),m)m!==Bi&&(n.f|=ri,Zt(n,m));else{n.f&ri&&(n.f^=ri),Zt(n,f);for(const[b,g]of s){if(s.delete(b),b===d)break;g.reject(Bi)}}l&&(a.update_pending_count(-1),d.decrement(u))};c.promise.then(p,f=>p(null,f||"unknown"))}),ha(()=>{for(const c of s.values())c.reject(Bi)}),new Promise(c=>{function d(u){function p(){u===r?c(n):d(r)}u.then(p,p)}d(r)})}function H(t){const e=pa(t);return zl(e),e}function Mr(t){const e=pa(t);return e.equals=Jn,e}function cl(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)We(e[i])}}function Js(t){for(var e=t.parent;e!==null;){if(!(e.f&He))return e.f&Kt?null:e;e=e.parent}return null}function Dr(t){var e,i=ge;Mt(Js(t));try{t.f&=~da,cl(t),e=Ml(t)}finally{Mt(i)}return e}function dl(t){var e=Dr(t);if(t.equals(e)||(fe!=null&&fe.is_fork||(t.v=e),t.wv=Al()),!Ei)if(Me!==null)(fa()||fe!=null&&fe.is_fork)&&Me.set(t,e);else{var i=t.f&bt?Ke:Gt;Ye(t,i)}}let qr=new Set;const ni=new Map;let ul=!1;function It(t,e){var i={f:0,v:t,reactions:null,equals:Yn,rv:0,wv:0};return i}function G(t,e){const i=It(t);return zl(i),i}function Rr(t,e=!1,i=!0){var r;const a=It(t);return e||(a.equals=Jn),Fi&&i&&_e!==null&&_e.l!==null&&((r=_e.l).s??(r.s=[])).push(a),a}function q(t,e,i=!1){he!==null&&(!Lt||he.f&Fn)&&_i()&&he.f&(He|Et|Cr|Fn)&&!(Xe!=null&&Xe.includes(t))&&bs();let a=i?De(e):e;return Zt(t,a)}function Zt(t,e){if(!t.equals(e)){var i=t.v;Ei?ni.set(t,e):ni.set(t,i),t.v=e;var a=zt.ensure();a.capture(t,i),t.f&He&&(t.f&tt&&Dr(t),Ye(t,t.f&bt?Ke:Gt)),t.wv=Al(),pl(t,tt),_i()&&ge!==null&&ge.f&Ke&&!(ge.f&(Wt|bi))&&(vt===null?pc([t]):vt.push(t)),!a.is_fork&&qr.size>0&&!ul&&Xs()}return e}function Xs(){ul=!1;var t=si;Va(!0);const e=Array.from(qr);try{for(const i of e)i.f&Ke&&Ye(i,Gt),ma(i)&&ya(i)}finally{Va(t)}qr.clear()}function Qs(t,e=1){var i=o(t),a=e===1?i++:i--;return q(t,i),a}function li(t){q(t,t.v+1)}function pl(t,e){var i=t.reactions;if(i!==null)for(var a=_i(),r=i.length,n=0;n<r;n++){var l=i[n],s=l.f;if(!(!a&&l===ge)){var c=(s&tt)===0;if(c&&Ye(l,e),s&He){var d=l;Me==null||Me.delete(d),s&da||(s&bt&&(l.f|=da),pl(d,Gt))}else c&&(s&Et&&_t!==null&&_t.add(l),wi(l))}}}function De(t){if(typeof t!="object"||t===null||Ct in t)return t;const e=Sr(t);if(e!==ls&&e!==os)return t;var i=new Map,a=Ie(t),r=G(0),n=Jt,l=s=>{if(Jt===n)return s();var c=he,d=Jt;at(null),Il(n);var u=s();return at(c),Il(d),u};return a&&i.set("length",G(t.length)),new Proxy(t,{defineProperty(s,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&ms();var u=i.get(c);return u===void 0?u=l(()=>{var p=G(d.value);return i.set(c,p),p}):q(u,d.value,!0),!0},deleteProperty(s,c){var d=i.get(c);if(d===void 0){if(c in s){const u=l(()=>G(Fe));i.set(c,u),li(r)}}else q(d,Fe),li(r);return!0},get(s,c,d){var f;if(c===Ct)return t;var u=i.get(c),p=c in s;if(u===void 0&&(!p||(f=ai(s,c))!=null&&f.writable)&&(u=l(()=>{var m=De(p?s[c]:Fe),b=G(m);return b}),i.set(c,u)),u!==void 0){var v=o(u);return v===Fe?void 0:v}return Reflect.get(s,c,d)},getOwnPropertyDescriptor(s,c){var d=Reflect.getOwnPropertyDescriptor(s,c);if(d&&"value"in d){var u=i.get(c);u&&(d.value=o(u))}else if(d===void 0){var p=i.get(c),v=p==null?void 0:p.v;if(p!==void 0&&v!==Fe)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return d},has(s,c){var v;if(c===Ct)return!0;var d=i.get(c),u=d!==void 0&&d.v!==Fe||Reflect.has(s,c);if(d!==void 0||ge!==null&&(!u||(v=ai(s,c))!=null&&v.writable)){d===void 0&&(d=l(()=>{var f=u?De(s[c]):Fe,m=G(f);return m}),i.set(c,d));var p=o(d);if(p===Fe)return!1}return u},set(s,c,d,u){var w;var p=i.get(c),v=c in s;if(a&&c==="length")for(var f=d;f<p.v;f+=1){var m=i.get(f+"");m!==void 0?q(m,Fe):f in s&&(m=l(()=>G(Fe)),i.set(f+"",m))}if(p===void 0)(!v||(w=ai(s,c))!=null&&w.writable)&&(p=l(()=>G(void 0)),q(p,De(d)),i.set(c,p));else{v=p.v!==Fe;var b=l(()=>De(d));q(p,b)}var g=Reflect.getOwnPropertyDescriptor(s,c);if(g!=null&&g.set&&g.set.call(u,d),!v){if(a&&typeof c=="string"){var y=i.get("length"),x=Number(c);Number.isInteger(x)&&x>=y.v&&q(y,x+1)}li(r)}return!0},ownKeys(s){o(r);var c=Reflect.ownKeys(s).filter(p=>{var v=i.get(p);return v===void 0||v.v!==Fe});for(var[d,u]of i)u.v!==Fe&&!(d in s)&&c.push(d);return c},setPrototypeOf(){ys()}})}function vl(t){try{if(t!==null&&typeof t=="object"&&Ct in t)return t[Ct]}catch{}return t}function $s(t,e){return Object.is(vl(t),vl(e))}var Ae,fl,hl,gl;function ec(){if(Ae===void 0){Ae=window,fl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;hl=ai(e,"firstChild").get,gl=ai(e,"nextSibling").get,Rn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Rn(i)&&(i.__t=void 0)}}function At(t=""){return document.createTextNode(t)}function Wi(t){return hl.call(t)}function va(t){return gl.call(t)}function T(t,e){return Wi(t)}function J(t,e=!1){{var i=Wi(t);return i instanceof Comment&&i.data===""?va(i):i}}function I(t,e=1,i=!1){let a=t;for(;e--;)a=va(a);return a}function tc(t){t.textContent=""}function ml(){return!1}function ic(t,e){if(e){const i=document.body;t.autofocus=!0,Yt(()=>{document.activeElement===i&&t.focus()})}}let yl=!1;function ac(){yl||(yl=!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 rc(t,e,i,a=!0){a&&i();for(var r of e)t.addEventListener(r,i);ha(()=>{for(var n of e)t.removeEventListener(n,i)})}function Si(t){var e=he,i=ge;at(null),Mt(null);try{return t()}finally{at(e),Mt(i)}}function nc(t,e,i,a=i){t.addEventListener(e,()=>Si(i));const r=t.__on_r;r?t.__on_r=()=>{r(),a(!0)}:t.__on_r=()=>a(!0),ac()}function bl(t){ge===null&&(he===null&&fs(),vs()),Ei&&ps()}function lc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function xt(t,e,i){var a=ge;a!==null&&a.f&ot&&(t|=ot);var r={ctx:_e,deps:null,nodes_start:null,nodes_end:null,f:t|tt|bt,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{ya(r),r.f|=Ra}catch(s){throw We(r),s}else e!==null&&wi(r);var n=r;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&!(n.f&Ni)&&(n=n.first,t&Et&&t&Pt&&n!==null&&(n.f|=Pt)),n!==null&&(n.parent=a,a!==null&&lc(n,a),he!==null&&he.f&He&&!(t&bi))){var l=he;(l.effects??(l.effects=[])).push(n)}return r}function fa(){return he!==null&&!Lt}function ha(t){const e=xt(Da,null,!1);return Ye(e,Ke),e.teardown=t,e}function Ue(t){bl();var e=ge.f,i=!he&&(e&Wt)!==0&&(e&Ra)===0;if(i){var a=_e;(a.e??(a.e=[])).push(t)}else return _l(t)}function _l(t){return xt(Er|Hn,t,!1)}function oc(t){return bl(),xt(Da|Hn,t,!0)}function sc(t){zt.ensure();const e=xt(bi|Ni,t,!0);return(i={})=>new Promise(a=>{i.outro?Gi(e,()=>{We(e),a(void 0)}):(We(e),a(void 0))})}function Ti(t){return xt(Er,t,!1)}function cc(t){return xt(Cr|Ni,t,!0)}function Fa(t,e=0){return xt(Da|e,t,!0)}function U(t,e=[],i=[],a=[]){ol(a,e,i,r=>{xt(Da,()=>t(...r.map(o)),!0)})}function oi(t,e=0){var i=xt(Et|e,t,!0);return i}function xl(t,e=0){var i=xt(Bn|e,t,!0);return i}function it(t){return xt(Wt|Ni,t,!0)}function wl(t){var e=t.teardown;if(e!==null){const i=Ei,a=he;Cl(!0),at(null);try{e.call(null)}finally{Cl(i),at(a)}}}function kl(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const r=i.ac;r!==null&&Si(()=>{r.abort(Bi)});var a=i.next;i.f&bi?i.parent=null:We(i,e),i=a}}function dc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Wt||We(e),e=i}}function We(t,e=!0){var i=!1;(e||t.f&Vn)&&t.nodes_start!==null&&t.nodes_end!==null&&(uc(t.nodes_start,t.nodes_end),i=!0),kl(t,e&&!i),Ha(t,0),Ye(t,Kt);var a=t.transitions;if(a!==null)for(const n of a)n.stop();wl(t);var r=t.parent;r!==null&&r.first!==null&&Sl(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function uc(t,e){for(;t!==null;){var i=t===e?null:va(t);t.remove(),t=i}}function Sl(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 Gi(t,e,i=!0){var a=[];Or(t,a,!0),Tl(a,()=>{i&&We(t),e&&e()})}function Tl(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var r of t)r.out(a)}else e()}function Or(t,e,i){if(!(t.f&ot)){if(t.f^=ot,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&Pt)!==0||(a.f&Wt)!==0&&(t.f&Et)!==0;Or(a,e,n?i:!1),a=r}}}function Nr(t){El(t,!0)}function El(t,e){if(t.f&ot){t.f^=ot,t.f&Ke||(Ye(t,tt),wi(t));for(var i=t.first;i!==null;){var a=i.next,r=(i.f&Pt)!==0||(i.f&Wt)!==0;El(i,r?e:!1),i=a}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function Pl(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var r=i===a?null:va(i);e.append(i),i=r}}let si=!1;function Va(t){si=t}let Ei=!1;function Cl(t){Ei=t}let he=null,Lt=!1;function at(t){he=t}let ge=null;function Mt(t){ge=t}let Xe=null;function zl(t){he!==null&&(Xe===null?Xe=[t]:Xe.push(t))}let Qe=null,st=0,vt=null;function pc(t){vt=t}let jl=1,ga=0,Jt=ga;function Il(t){Jt=t}function Al(){return++jl}function ma(t){var e=t.f;if(e&tt)return!0;if(e&He&&(t.f&=-32769),e&Gt){var i=t.deps;if(i!==null)for(var a=i.length,r=0;r<a;r++){var n=i[r];if(ma(n)&&dl(n),n.wv>t.wv)return!0}e&bt&&Me===null&&Ye(t,Ke)}return!1}function Ll(t,e,i=!0){var a=t.reactions;if(a!==null&&!(Xe!=null&&Xe.includes(t)))for(var r=0;r<a.length;r++){var n=a[r];n.f&He?Ll(n,e,!1):e===n&&(i?Ye(n,tt):n.f&Ke&&Ye(n,Gt),wi(n))}}function Ml(t){var m;var e=Qe,i=st,a=vt,r=he,n=Xe,l=_e,s=Lt,c=Jt,d=t.f;Qe=null,st=0,vt=null,he=d&(Wt|bi)?null:t,Xe=null,Vi(t.ctx),Lt=!1,Jt=++ga,t.ac!==null&&(Si(()=>{t.ac.abort(Bi)}),t.ac=null);try{t.f|=Pr;var u=t.fn,p=u(),v=t.deps;if(Qe!==null){var f;if(Ha(t,st),v!==null&&st>0)for(v.length=st+Qe.length,f=0;f<Qe.length;f++)v[st+f]=Qe[f];else t.deps=v=Qe;if(si&&fa()&&t.f&bt)for(f=st;f<v.length;f++)((m=v[f]).reactions??(m.reactions=[])).push(t)}else v!==null&&st<v.length&&(Ha(t,st),v.length=st);if(_i()&&vt!==null&&!Lt&&v!==null&&!(t.f&(He|Gt|tt)))for(f=0;f<vt.length;f++)Ll(vt[f],t);return r!==null&&r!==t&&(ga++,vt!==null&&(a===null?a=vt:a.push(...vt))),t.f&ri&&(t.f^=ri),p}catch(b){return $n(b)}finally{t.f^=Pr,Qe=e,st=i,vt=a,he=r,Xe=n,Vi(l),Lt=s,Jt=c}}function vc(t,e){let i=e.reactions;if(i!==null){var a=La.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&He&&(Qe===null||!Qe.includes(e))&&(Ye(e,Gt),e.f&bt&&(e.f^=bt,e.f&=-32769),cl(e),Ha(e,0))}function Ha(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)vc(t,i[a])}function ya(t){var e=t.f;if(!(e&Kt)){Ye(t,Ke);var i=ge,a=si;ge=t,si=!0;try{e&(Et|Bn)?dc(t):kl(t),wl(t);var r=Ml(t);t.teardown=typeof r=="function"?r:null,t.wv=jl;var n;ke&&Os&&t.f&tt&&t.deps}finally{si=a,ge=i}}}async function ba(){await Promise.resolve(),el()}function o(t){var e=t.f,i=(e&He)!==0;if(he!==null&&!Lt){var a=ge!==null&&(ge.f&Kt)!==0;if(!a&&!(Xe!=null&&Xe.includes(t))){var r=he.deps;if(he.f&Pr)t.rv<ga&&(t.rv=ga,Qe===null&&r!==null&&r[st]===t?st++:Qe===null?Qe=[t]:Qe.includes(t)||Qe.push(t));else{(he.deps??(he.deps=[])).push(t);var n=t.reactions;n===null?t.reactions=[he]:n.includes(he)||n.push(he)}}}if(Ei){if(ni.has(t))return ni.get(t);if(i){var l=t,s=l.v;return(!(l.f&Ke)&&l.reactions!==null||ql(l))&&(s=Dr(l)),ni.set(l,s),s}}else i&&(!(Me!=null&&Me.has(t))||fe!=null&&fe.is_fork&&!fa())&&(l=t,ma(l)&&dl(l),si&&fa()&&!(l.f&bt)&&Dl(l));if(Me!=null&&Me.has(t))return Me.get(t);if(t.f&ri)throw t.v;return t.v}function Dl(t){if(t.deps!==null){t.f^=bt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&He&&!(e.f&bt)&&Dl(e)}}function ql(t){if(t.v===Fe)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(ni.has(e)||e.f&He&&ql(e))return!0;return!1}function Dt(t){var e=Lt;try{return Lt=!0,t()}finally{Lt=e}}const fc=-7169;function Ye(t,e){t.f=t.f&fc|e}function Rl(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Ct in t)Br(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&Ct in i&&Br(i)}}}function Br(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{Br(t[a],e)}catch{}const i=Sr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=qn(i);for(let r in a){const n=a[r].get;if(n)try{n.call(t)}catch{}}}}}function hc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const gc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function mc(t){return gc.includes(t)}const yc={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 bc(t){return t=t.toLowerCase(),yc[t]??t}const _c=["touchstart","touchmove"];function xc(t){return _c.includes(t)}const Ol=new Set,Fr=new Set;function Vr(t,e,i,a={}){function r(n){if(a.capture||_a.call(e,n),!n.cancelBubble)return Si(()=>i==null?void 0:i.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Yt(()=>{e.addEventListener(t,r,a)}):e.addEventListener(t,r,a),r}function wc(t,e,i,a={}){var r=Vr(e,t,i,a);return()=>{t.removeEventListener(e,r,a)}}function ye(t,e,i,a,r){var n={capture:a,passive:r},l=Vr(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ha(()=>{e.removeEventListener(t,l,n)})}function ce(t){for(var e=0;e<t.length;e++)Ol.add(t[e]);for(var i of Fr)i(t)}let Nl=null;function _a(t){var g;var e=this,i=e.ownerDocument,a=t.type,r=((g=t.composedPath)==null?void 0:g.call(t))||[],n=r[0]||t.target;Nl=t;var l=0,s=Nl===t&&t.__root;if(s){var c=r.indexOf(s);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var d=r.indexOf(e);if(d===-1)return;c<=d&&(l=c)}if(n=r[l]||t.target,n!==e){ns(t,"currentTarget",{configurable:!0,get(){return n||i}});var u=he,p=ge;at(null),Mt(null);try{for(var v,f=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var b=n["__"+a];b!=null&&(!n.disabled||t.target===n)&&b.call(n,t)}catch(y){v?f.push(y):v=y}if(t.cancelBubble||m===e||m===null)break;n=m}if(v){for(let y of f)queueMicrotask(()=>{throw y});throw v}}finally{t.__root=e,delete t.currentTarget,at(u),Mt(p)}}}function Bl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Ki(t,e){var i=ge;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function C(t,e){var i=(e&Is)!==0,a=(e&As)!==0,r,n=!t.startsWith("<!>");return()=>{r===void 0&&(r=Bl(n?t:"<!>"+t),i||(r=Wi(r)));var l=a||fl?document.importNode(r,!0):r.cloneNode(!0);if(i){var s=Wi(l),c=l.lastChild;Ki(s,c)}else Ki(l,l);return l}}function kc(t,e,i="svg"){var a=!t.startsWith("<!>"),r=`<${i}>${a?t:"<!>"+t}</${i}>`,n;return()=>{if(!n){var l=Bl(r),s=Wi(l);n=Wi(s)}var c=n.cloneNode(!0);return Ki(c,c),c}}function ft(t,e){return kc(t,e,"svg")}function qt(t=""){{var e=At(t+"");return Ki(e,e),e}}function ve(){var t=document.createDocumentFragment(),e=document.createComment(""),i=At();return t.append(e,i),Ki(e,i),t}function _(t,e){t!==null&&t.before(e)}let Ua=!0;function Wa(t){Ua=t}function Z(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 Rt(t,e){return Sc(t,e)}const Yi=new Map;function Sc(t,{target:e,anchor:i,props:a={},events:r,context:n,intro:l=!0}){ec();var s=new Set,c=p=>{for(var v=0;v<p.length;v++){var f=p[v];if(!s.has(f)){s.add(f);var m=xc(f);e.addEventListener(f,_a,{passive:m});var b=Yi.get(f);b===void 0?(document.addEventListener(f,_a,{passive:m}),Yi.set(f,1)):Yi.set(f,b+1)}}};c(kr(Ol)),Fr.add(c);var d=void 0,u=sc(()=>{var p=i??e.appendChild(At());return Us(p,{pending:()=>{}},v=>{if(n){$({});var f=_e;f.c=n}r&&(a.$$events=r),Ua=l,d=t(v,a)||{},Ua=!0,n&&ee()}),()=>{var m;for(var v of s){e.removeEventListener(v,_a);var f=Yi.get(v);--f===0?(document.removeEventListener(v,_a),Yi.delete(v)):Yi.set(v,f)}Fr.delete(c),p!==i&&((m=p.parentNode)==null||m.removeChild(p))}});return Hr.set(d,u),d}let Hr=new WeakMap;function Zi(t,e){const i=Hr.get(t);return i?(Hr.delete(t),i(e)):Promise.resolve()}class Ji{constructor(e,i=!0){Tt(this,"anchor");le(this,kt,new Map);le(this,Ut,new Map);le(this,dt,new Map);le(this,qi,new Set);le(this,Ca,!0);le(this,za,()=>{var e=fe;if(L(this,kt).has(e)){var i=L(this,kt).get(e),a=L(this,Ut).get(i);if(a)Nr(a),L(this,qi).delete(i);else{var r=L(this,dt).get(i);r&&(L(this,Ut).set(i,r.effect),L(this,dt).delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),a=r.effect)}for(const[n,l]of L(this,kt)){if(L(this,kt).delete(n),n===e)break;const s=L(this,dt).get(l);s&&(We(s.effect),L(this,dt).delete(l))}for(const[n,l]of L(this,Ut)){if(n===i||L(this,qi).has(n))continue;const s=()=>{if(Array.from(L(this,kt).values()).includes(n)){var d=document.createDocumentFragment();Pl(l,d),d.append(At()),L(this,dt).set(n,{effect:l,fragment:d})}else We(l);L(this,qi).delete(n),L(this,Ut).delete(n)};L(this,Ca)||!a?(L(this,qi).add(n),Gi(l,s,!1)):s()}}});le(this,gr,e=>{L(this,kt).delete(e);const i=Array.from(L(this,kt).values());for(const[a,r]of L(this,dt))i.includes(a)||(We(r.effect),L(this,dt).delete(a))});this.anchor=e,re(this,Ca,i)}ensure(e,i){var a=fe,r=ml();if(i&&!L(this,Ut).has(e)&&!L(this,dt).has(e))if(r){var n=document.createDocumentFragment(),l=At();n.append(l),L(this,dt).set(e,{effect:it(()=>i(l)),fragment:n})}else L(this,Ut).set(e,it(()=>i(this.anchor)));if(L(this,kt).set(a,e),r){for(const[s,c]of L(this,Ut))s===e?a.skipped_effects.delete(c):a.skipped_effects.add(c);for(const[s,c]of L(this,dt))s===e?a.skipped_effects.delete(c.effect):a.skipped_effects.add(c.effect);a.oncommit(L(this,za)),a.ondiscard(L(this,gr))}else L(this,za).call(this)}}kt=new WeakMap,Ut=new WeakMap,dt=new WeakMap,qi=new WeakMap,Ca=new WeakMap,za=new WeakMap,gr=new WeakMap;const Tc=0,Ur=1;function xa(t,e,i,a,r){var n=_i(),l=Fe,s=n?It(l):Rr(l,!1,!1),c=n?It(l):Rr(l,!1,!1),d=new Ji(t);oi(()=>{var u=e(),p=!1;if(ss(u)){var v=sl(),f=!1;const m=b=>{if(!p){f=!0,v(!1),zt.ensure();try{b()}finally{ua(),Ui||el()}}};u.then(b=>{m(()=>{Zt(s,b),d.ensure(Ur,a&&(g=>a(g,s)))})},b=>{m(()=>{if(Zt(c,b),d.ensure(Ur,r&&(g=>r(g,c))),!r)throw c.v})}),Yt(()=>{f||m(()=>{d.ensure(Tc,i)})})}else Zt(s,u),d.ensure(Ur,a&&(m=>a(m,s)));return()=>{p=!0}})}function F(t,e,i=!1){var a=new Ji(t),r=i?Pt:0;function n(l,s){a.ensure(l,s)}oi(()=>{var l=!1;e((s,c=!0)=>{l=!0,n(c,s)}),l||n(!1,null)},r)}function Xi(t,e,i){var a=new Ji(t),r=!_i();oi(()=>{var n=e();r&&n!==null&&typeof n=="object"&&(n={}),a.ensure(n,i)})}function qe(t,e,...i){var a=new Ji(t);oi(()=>{const r=e()??null;a.ensure(r,r&&(n=>r(n,...i)))},Pt)}function Wr(t,e,i){var a=new Ji(t);oi(()=>{var r=e()??null;a.ensure(r,r&&(n=>i(n,r)))},Pt)}function Fl(t,e,i,a,r,n){var l=null,s=t,c=ki,d=new Ji(s,!1);oi(()=>{const u=e()||null;var p=u==="svg"?Ms:null;if(u===null){d.ensure(null,null),Wa(!0);return}return d.ensure(u,v=>{var f=ki;if(ll(c),u){if(l=p?document.createElementNS(p,u):document.createElement(u),Ki(l,l),a){var m=l.appendChild(At());a(l,m)}ge.nodes_end=l,v.before(l)}ll(f)}),Wa(!0),()=>{u&&Wa(!1)}},Pt),ha(()=>{Wa(!0)})}function Ot(t,e,i){Ti(()=>{var a=Dt(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var r=!1,n={};Fa(()=>{var l=i();Rl(l),r&&Zn(n,l)&&(n=l,a.update(l))}),r=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function Ga(t,e){var i=void 0,a;xl(()=>{i!==(i=e())&&(a&&(We(a),a=null),i&&(a=it(()=>{Ti(()=>i(t))})))})}function Vl(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=Vl(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Ec(){for(var t,e,i=0,a="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Vl(t))&&(a&&(a+=" "),a+=e);return a}function Pc(t){return typeof t=="object"?Ec(t):t??""}const Hl=[...`
3
3
  \r\f \v\uFEFF`];function Cc(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 s=l+n;(l===0||Hl.includes(a[l-1]))&&(s===a.length||Hl.includes(a[s]))?a=(l===0?"":a.substring(0,l))+a.substring(s+1):l=s}}return a===""?null:a}function Ul(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 Gr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function zc(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,s=!1,c=[];a&&c.push(...Object.keys(a).map(Gr)),r&&c.push(...Object.keys(r).map(Gr));var d=0,u=-1;const b=t.length;for(var p=0;p<b;p++){var v=t[p];if(s?v==="/"&&t[p-1]==="*"&&(s=!1):n?n===v&&(n=!1):v==="/"&&t[p+1]==="*"?s=!0:v==='"'||v==="'"?n=v:v==="("?l++:v===")"&&l--,!s&&n===!1&&l===0){if(v===":"&&u===-1)u=p;else if(v===";"||p===b-1){if(u!==-1){var f=Gr(t.substring(d,u).trim());if(!c.includes(f)){v!==";"&&p++;var m=t.substring(d,p).trim();i+=" "+m+";"}}d=p+1,u=-1}}}}return a&&(i+=Ul(a)),r&&(i+=Ul(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function me(t,e,i,a,r,n){var l=t.__className;if(l!==i||l===void 0){var s=Cc(i,a,n);s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s),t.__className=i}else if(n&&r!==n)for(var c in n){var d=!!n[c];(r==null||d!==!!r[c])&&t.classList.toggle(c,d)}return n}function Kr(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 Oe(t,e,i,a){var r=t.__style;if(r!==e){var n=zc(e,a);n==null?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else a&&(Array.isArray(a)?(Kr(t,i==null?void 0:i[0],a[0]),Kr(t,i==null?void 0:i[1],a[1],"important")):Kr(t,i,a));return a}function Yr(t,e,i=!1){if(t.multiple){if(e==null)return;if(!Ie(e))return qs();for(var a of t.options)a.selected=e.includes(Wl(a));return}for(a of t.options){var r=Wl(a);if($s(r,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function jc(t){var e=new MutationObserver(()=>{Yr(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ha(()=>{e.disconnect()})}function Wl(t){return"__value"in t?t.__value:t.value}const Qi=Symbol("class"),$i=Symbol("style"),Gl=Symbol("is custom element"),Kl=Symbol("is html");function Ic(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ae(t,e,i,a){var r=Zl(t);r[e]!==(r[e]=i)&&(e==="loading"&&(t[ds]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Xl(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Ac(t,e,i,a,r=!1,n=!1){var l=Zl(t),s=l[Gl],c=!l[Kl],d=e||{},u=t.tagName==="OPTION";for(var p in e)p in i||(i[p]=null);i.class?i.class=Pc(i.class):(a||i[Qi])&&(i.class=null),i[$i]&&(i.style??(i.style=null));var v=Xl(t);for(const w in i){let k=i[w];if(u&&w==="value"&&k==null){t.value=t.__value="",d[w]=k;continue}if(w==="class"){var f=t.namespaceURI==="http://www.w3.org/1999/xhtml";me(t,f,k,a,e==null?void 0:e[Qi],i[Qi]),d[w]=k,d[Qi]=i[Qi];continue}if(w==="style"){Oe(t,k,e==null?void 0:e[$i],i[$i]),d[w]=k,d[$i]=i[$i];continue}var m=d[w];if(!(k===m&&!(k===void 0&&t.hasAttribute(w)))){d[w]=k;var b=w[0]+w[1];if(b!=="$$")if(b==="on"){const M={},E="$$"+w;let z=w.slice(2);var g=mc(z);if(hc(z)&&(z=z.slice(0,-7),M.capture=!0),!g&&m){if(k!=null)continue;t.removeEventListener(z,d[E],M),d[E]=null}if(k!=null)if(g)t[`__${z}`]=k,ce([z]);else{let N=function(A){d[w].call(this,A)};d[E]=Vr(z,t,N,M)}else g&&(t[`__${z}`]=void 0)}else if(w==="style")ae(t,w,k);else if(w==="autofocus")ic(t,!!k);else if(!s&&(w==="__value"||w==="value"&&k!=null))t.value=t.__value=k;else if(w==="selected"&&u)Ic(t,k);else{var y=w;c||(y=bc(y));var x=y==="defaultValue"||y==="defaultChecked";if(k==null&&!s&&!x)if(l[w]=null,y==="value"||y==="checked"){let M=t;const E=e===void 0;if(y==="value"){let z=M.defaultValue;M.removeAttribute(y),M.defaultValue=z,M.value=M.__value=E?z:null}else{let z=M.defaultChecked;M.removeAttribute(y),M.defaultChecked=z,M.checked=E?z:!1}}else t.removeAttribute(w);else x||v.includes(y)&&(s||typeof k!="string")?(t[y]=k,y in l&&(l[y]=Fe)):typeof k!="function"&&ae(t,y,k)}}}return d}function Yl(t,e,i=[],a=[],r=[],n,l=!1,s=!1){ol(r,i,a,c=>{var d=void 0,u={},p=t.nodeName==="SELECT",v=!1;if(xl(()=>{var m=e(...c.map(o)),b=Ac(t,d,m,n,l,s);v&&p&&"value"in m&&Yr(t,m.value);for(let y of Object.getOwnPropertySymbols(u))m[y]||We(u[y]);for(let y of Object.getOwnPropertySymbols(m)){var g=m[y];y.description===Ds&&(!d||g!==d[y])&&(u[y]&&We(u[y]),u[y]=it(()=>Ga(t,()=>g))),b[y]=g}d=b}),p){var f=t;Ti(()=>{Yr(f,d.value,!0),jc(f)})}v=!0})}function Zl(t){return t.__attributes??(t.__attributes={[Gl]:t.nodeName.includes("-"),[Kl]:t.namespaceURI===Ls})}var Jl=new Map;function Xl(t){var e=t.getAttribute("is")||t.nodeName,i=Jl.get(e);if(i)return i;Jl.set(e,i=[]);for(var a,r=t,n=Element.prototype;n!==r;){a=qn(r);for(var l in a)a[l].set&&i.push(l);r=Sr(r)}return i}const Lc=()=>performance.now(),Xt={tick:t=>requestAnimationFrame(t),now:()=>Lc(),tasks:new Set};function Ql(){const t=Xt.now();Xt.tasks.forEach(e=>{e.c(t)||(Xt.tasks.delete(e),e.f())}),Xt.tasks.size!==0&&Xt.tick(Ql)}function Mc(t){let e;return Xt.tasks.size===0&&Xt.tick(Ql),{promise:new Promise(i=>{Xt.tasks.add(e={c:t,f:i})}),abort(){Xt.tasks.delete(e)}}}function Ka(t,e){Si(()=>{t.dispatchEvent(new CustomEvent(e))})}function Dc(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 $l(t){const e={},i=t.split(";");for(const a of i){const[r,n]=a.split(":");if(!r||n===void 0)break;const l=Dc(r.trim());e[l]=n.trim()}return e}const qc=t=>t;function Rc(t,e,i){var a=ki,r,n,l,s=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 c=e()(this.element,{from:r,to:n},i==null?void 0:i());l=Ya(this.element,c,void 0,1,()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:c,width:d,height:u}=getComputedStyle(t);if(c!=="absolute"&&c!=="fixed"){var p=t.style;s={position:p.position,width:p.width,height:p.height,transform:p.transform},p.position="absolute",p.width=d,p.height=u;var v=t.getBoundingClientRect();if(r.left!==v.left||r.top!==v.top){var f=`translate(${r.left-v.left}px, ${r.top-v.top}px)`;p.transform=p.transform?`${p.transform} ${f}`:f}}}},unfix(){if(s){var c=t.style;c.position=s.position,c.width=s.width,c.height=s.height,c.transform=s.transform}}}),a.a.element=t}function ze(t,e,i,a){var r=(t&Cs)!==0,n=(t&zs)!==0,l=r&&n,s=(t&js)!==0,c=l?"both":r?"in":"out",d,u=e.inert,p=e.style.overflow,v,f;function m(){return Si(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:c})))}var b={is_global:s,in(){var w;if(e.inert=u,!r){f==null||f.abort(),(w=f==null?void 0:f.reset)==null||w.call(f);return}n||v==null||v.abort(),Ka(e,"introstart"),v=Ya(e,m(),f,1,()=>{Ka(e,"introend"),v==null||v.abort(),v=d=void 0,e.style.overflow=p})},out(w){if(!n){w==null||w(),d=void 0;return}e.inert=!0,Ka(e,"outrostart"),f=Ya(e,m(),v,0,()=>{Ka(e,"outroend"),w==null||w()})},stop:()=>{v==null||v.abort(),f==null||f.abort()}},g=ge;if((g.transitions??(g.transitions=[])).push(b),r&&Ua){var y=s;if(!y){for(var x=g.parent;x&&x.f&Pt;)for(;(x=x.parent)&&!(x.f&Et););y=!x||(x.f&Ra)!==0}y&&Ti(()=>{Dt(()=>b.in())})}}function Ya(t,e,i,a,r){var n=a===1;if(Oi(e)){var l,s=!1;return Yt(()=>{if(!s){var g=e({direction:n?"in":"out"});l=Ya(t,g,i,a,r)}}),{abort:()=>{s=!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:ut,deactivate:ut,reset:ut,t:()=>a};const{delay:c=0,css:d,tick:u,easing:p=qc}=e;var v=[];if(n&&i===void 0&&(u&&u(0,1),d)){var f=$l(d(0,1));v.push(f,f)}var m=()=>1-a,b=t.animate(v,{duration:c,fill:"forwards"});return b.onfinish=()=>{b.cancel();var g=(i==null?void 0:i.t())??1-a;i==null||i.abort();var y=a-g,x=e.duration*Math.abs(y),w=[];if(x>0){var k=!1;if(d)for(var M=Math.ceil(x/16.666666666666668),E=0;E<=M;E+=1){var z=g+y*p(E/M),N=$l(d(z,1-z));w.push(N),k||(k=N.overflow==="hidden")}k&&(t.style.overflow="hidden"),m=()=>{var A=b.currentTime;return g+y*p(A/x)},u&&Mc(()=>{if(b.playState!=="running")return!1;var A=m();return u(A,1-A),!0})}b=t.animate(w,{duration:x,fill:"forwards"}),b.onfinish=()=>{m=()=>a,u==null||u(a,1-a),r()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=ut)},deactivate:()=>{r=ut},reset:()=>{a===0&&(u==null||u(1,0))},t:()=>m()}}function Za(t,e,i=e){var a=new WeakSet;nc(t,"input",async r=>{var n=r?t.defaultValue:t.value;if(n=Zr(t)?Jr(n):n,i(n),fe!==null&&a.add(fe),await ba(),n!==(n=e())){var l=t.selectionStart,s=t.selectionEnd,c=t.value.length;if(t.value=n??"",s!==null){var d=t.value.length;l===s&&s===c&&d>c?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=l,t.selectionEnd=Math.min(s,d))}}}),Dt(e)==null&&t.value&&(i(Zr(t)?Jr(t.value):t.value),fe!==null&&a.add(fe)),Fa(()=>{var r=e();if(t===document.activeElement){var n=Na??fe;if(a.has(n))return}Zr(t)&&r===Jr(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function Zr(t){var e=t.type;return e==="number"||e==="range"}function Jr(t){return t===""?null:+t}const yr=class yr{constructor(e){le(this,mr);le(this,hi,new WeakMap);le(this,oa);le(this,ja);re(this,ja,e)}observe(e,i){var a=L(this,hi).get(e)||new Set;return a.add(i),L(this,hi).set(e,a),Se(this,mr,is).call(this).observe(e,L(this,ja)),()=>{var r=L(this,hi).get(e);r.delete(i),r.size===0&&(L(this,hi).delete(e),L(this,oa).unobserve(e))}}};hi=new WeakMap,oa=new WeakMap,ja=new WeakMap,mr=new WeakSet,is=function(){return L(this,oa)??re(this,oa,new ResizeObserver(e=>{for(var i of e){yr.entries.set(i.target,i);for(var a of L(this,hi).get(i.target)||[])a(i)}}))},Tt(yr,"entries",new WeakMap);let Xr=yr;var Oc=new Xr({box:"border-box"});function Nt(t,e,i){var a=Oc.observe(t,()=>i(t[e]));Ti(()=>(Dt(()=>i(t[e])),a))}function eo(t,e){return t===e||(t==null?void 0:t[Ct])===e}function $e(t={},e,i,a){return Ti(()=>{var r,n;return Fa(()=>{r=n,n=[],Dt(()=>{t!==i(...n)&&(e(t,...n),r&&eo(i(...r),t)&&e(null,...r))})}),()=>{Yt(()=>{n&&eo(i(...n),t)&&e(null,...n)})}}),t}function Qr(t,e){rc(window,["resize"],()=>Si(()=>e(window[t])))}function $r(t=!1){const e=_e,i=e.l.u;if(!i)return;let a=()=>Rl(e.s);if(t){let r=0,n={};const l=pa(()=>{let s=!1;const c=e.s;for(const d in c)c[d]!==n[d]&&(n[d]=c[d],s=!0);return s&&r++,r});a=()=>o(l)}i.b.length&&oc(()=>{to(e,a),Tr(i.b)}),Ue(()=>{const r=Dt(()=>i.m.map(cs));return()=>{for(const n of r)typeof n=="function"&&n()}}),i.a.length&&Ue(()=>{to(e,a),Tr(i.a)})}function to(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let Ja=!1;function Nc(t){var e=Ja;try{return Ja=!1,[t(),Ja]}finally{Ja=e}}const Bc={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 io(t,e,i){return new Proxy({props:t,exclude:e},Bc)}const Fc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Oi(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];Oi(r)&&(r=r());const n=ai(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(Oi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const r=ai(a,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Ct||e===Un)return!1;for(let i of t.props)if(Oi(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Oi(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 ao(...t){return new Proxy({props:t},Fc)}function O(t,e,i,a){var w;var r=!Fi||(i&Ss)!==0,n=(i&Es)!==0,l=(i&Ps)!==0,s=a,c=!0,d=()=>(c&&(c=!1,s=l?Dt(a):a),s),u;if(n){var p=Ct in t||Un in t;u=((w=ai(t,e))==null?void 0:w.set)??(p&&e in t?k=>t[e]=k:void 0)}var v,f=!1;n?[v,f]=Nc(()=>t[e]):v=t[e],v===void 0&&a!==void 0&&(v=d(),u&&(r&&gs(),u(v)));var m;if(r?m=()=>{var k=t[e];return k===void 0?d():(c=!0,k)}:m=()=>{var k=t[e];return k!==void 0&&(s=void 0),k===void 0?s:k},r&&!(i&Ts))return m;if(u){var b=t.$$legacy;return function(k,M){return arguments.length>0?((!r||!M||b||f)&&u(M?m():k),k):m()}}var g=!1,y=(i&ks?pa:Mr)(()=>(g=!1,m()));n&&o(y);var x=ge;return function(k,M){if(arguments.length>0){const E=M?o(y):r&&n?De(k):k;return q(y,E),g=!0,s!==void 0&&(s=E),k}return Ei&&g||x.f&Kt?y.v:o(y)}}function ct(t){_e===null&&zr(),Fi&&_e.l!==null?Vc(_e).m.push(t):Ue(()=>{const e=Dt(t);if(typeof e=="function")return e})}function en(t){_e===null&&zr(),ct(()=>()=>Dt(t))}function Vc(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Hc="5";typeof window<"u"&&((Qo=window.__svelte??(window.__svelte={})).v??(Qo.v=new Set)).add(Hc);function ci(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Uc="https://www.playpilot.com",Wc="https://partner-api.playpilot.tech/1.0",Gc="https://img-external.playpilot.tech",Kc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Pi=600,tn={};async function Qt(t,{headers:e={},method:i="GET",body:a=null}={}){const r=!Xa()&&i==="GET";if(r&&t in tn)return tn[t];const n=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(Wc+t,{method:i,headers:new Headers({...n,...e}),body:a?JSON.stringify(a):null});if(!(l!=null&&l.ok))throw l;const s=await l.text();let c=s;try{s&&(c=JSON.parse(s))}catch{}return r&&(tn[t]=c),c}const ro="EncryptedToken",no="articleReplacementEditToken",Yc="playpilot-editorial-mode";async function lo({href:t=window.location.href,throwError:e=!1}={}){try{const i=ci();if(!i)throw new Error("No token was provided");const a=oo(t);if(!a)throw new Error("Could not be authenticated");return await Qt(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),Zc(a),!0}catch(i){if(console.error(i),e)throw i}finally{Jc()}return!1}function oo(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(no);if(n)return decodeURI(n)}return((r=("; "+document.cookie).split(`; ${ro}=`).pop())==null?void 0:r.split(";")[0])||""}function Zc(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=ro+"="+t+";"+a+";path=/"}function Xa(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Yc)==="true"||!!t}function Jc(){const t=new URL(window.location.href);t.searchParams.delete(no),window.history.replaceState({},"",t)}function Xc(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 an(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const h=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Qa(){var a,r;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(h);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 h.English}function so(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(c=>{var d;return c.nodeType===Node.TEXT_NODE&&((d=c.nodeValue)==null?void 0:d.trim())!==""});if(n&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!i.includes(c)&&i.push(c);continue}const l=r.tagName==="P"&&!!r.textContent;if(n||l){i.push(r);continue}const s=Array.from(r.children);for(let c=s.length-1;c>=0;c--)a.push(s[c])}return i}function rn(){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 nn(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function ln(t){const e=rn(),i=so(e,(t==null?void 0:t.exclude_elements_selector)||""),a=nn(i);return{parentElement:e,elements:i,pageText:a}}function co(){const t=rn();return{content_heading:Qc(t),content_modified_time:$c(t),content_published_time:ed(t)}}function Qc(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function $c(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=uo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?on(i):null}function ed(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=uo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?on(i):null}function on(t){try{return new Date(t).toISOString()}catch{return null}}function uo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function Ci(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function sn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function td(t){return!!(t.exclude_urls_pattern&&Ci().match(new RegExp(t.exclude_urls_pattern)))}let cn=null;async function $a(t,{url:e=Ci(),hash:i=Xc(t||""),params:a={},method:r="GET"}={}){const n=ci(),l=Xa()?await lo():!1,s=Qa();if(!n)throw new Error("No token was provided");const c=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${s}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=co(),d=await Qt(c,{method:"POST",body:a})):d=await Qt(c+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function po(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;cn&&clearTimeout(cn);const s=async(c,d)=>{let u;try{try{u=await $a(t)}catch(p){throw(p==null?void 0:p.status)===404&&(u=await $a(t,{method:"POST"}),u.ai_enabled&&(u=await $a(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await id(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=vo(u.manual_injections||[]),u.ai_injections=vo(u.ai_injections||[]),c(u);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),c();return}u&&n(u),cn=setTimeout(()=>s(c),a)}};return new Promise(s)}async function id(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=co().content_modified_time,a=e.content_modified_time?on(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 $a(t,{params:{run_ai:!0},method:"POST"})}function vo(t){return t.map(e=>({...e,key:ad(e.sid)}))}function ad(t){return t+"-"+an()}function rd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function nd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function ld(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function dn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function fo(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 ho(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function od(t,e,i,a){const r=ld(e),n=dn(e),l=t.slice(0,a),s=t.slice(a),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),u=s.replace(d,i);return l+u}function sd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function di(t){return dn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function cd(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=go(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),s=go(mo(n,2)),c=mo(l,2);return{before:s,after:c}}function go(t){return t.split("").reverse().join("")}function mo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function er(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function dd(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,s=i?t.indexOf(i,l):t.length;if(i&&s===-1)break;const c=t.slice(l,s);a.push({match:c,index:l}),r=i?s+i.length:t.length+1}return a}function ud(t,e,i,a){const n=dd(t,i,a).filter(({match:s})=>dn(s).includes(e));return n.length?n.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function pd(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 vd(t,e,i=0){const a=e.innerHTML,r=[],n=fd(e);let l=a.indexOf(t);for(;l!==-1;)nd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function fd(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let s=0;s<i.length;s++){const c=i[s];if(!r&&!a&&c==="<"){a=!0,n&&(e.push({start:l,end:s}),n=!1);continue}if(a&&c==='"'&&(r=!r),a&&!r&&c===">"){a=!1;continue}!a&&!r&&!n&&(l=s,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function hd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(s=>"\\"+s).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 yo(t){return t.ctrlKey||t.metaKey||t.button!==0}const ue={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",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",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed"},wa={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function gd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function wt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function tr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const un=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function md(t=[]){return t.map(e=>{var i;return((i=un.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const pn="playpilot_user_id";function yd(){if(!bo())return null;try{const t=localStorage.getItem(pn);return t||(localStorage.setItem(pn,an(16)),localStorage.getItem(pn))}catch{return null}}function bo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const bd="https://insights.playpilot.net";async function pe(t,e=null,i={}){var r,n,l,s,c;if(tr())return;if(!wt("tracking")){xd(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:md(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),bo()&&(i.user_id=yd()),i.version="8.1.2",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Ci(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Pi?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((c=screen.orientation)==null?void 0:c.type)||"undefined"},fetch(bd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),_d({event:t,payload:i})}function _d(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function _o({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function xd(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 wd(){if(wt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])pe(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function xo(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?wt("pixels"):!1}async function wo(){if(!wt("ads"))return[];const t=ci();if(!t)throw new Error("No token was provided");try{return await Qt(`/ads/browse/?api-token=${t}`)}catch(e){throw pe(ue.AdsFetchFailed,null,{status:e.status}),e}}function ka(t){var e;return!wt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function kd(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"}}}const Sd=t=>t;function ko(t){const e=t-1;return e*e*e+1}function So(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function $t(t,{delay:e=0,duration:i=400,easing:a=Sd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Sa(t,{delay:e=0,duration:i=400,easing:a=ko,x:r=0,y:n=0,opacity:l=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,u=c*(1-l),[p,v]=So(r),[f,m]=So(n);return{delay:e,duration:i,easing:a,css:(b,g)=>`
5
+ `)}function ln(t){const e=rn(),i=so(e,(t==null?void 0:t.exclude_elements_selector)||""),a=nn(i);return{parentElement:e,elements:i,pageText:a}}function co(){const t=rn();return{content_heading:Qc(t),content_modified_time:$c(t),content_published_time:ed(t)}}function Qc(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function $c(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=uo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?on(i):null}function ed(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=uo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?on(i):null}function on(t){try{return new Date(t).toISOString()}catch{return null}}function uo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function Ci(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function sn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function td(t){return!!(t.exclude_urls_pattern&&Ci().match(new RegExp(t.exclude_urls_pattern)))}let cn=null;async function $a(t,{url:e=Ci(),hash:i=Xc(t||""),params:a={},method:r="GET"}={}){const n=ci(),l=Xa()?await lo():!1,s=Qa();if(!n)throw new Error("No token was provided");const c=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${s}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=co(),d=await Qt(c,{method:"POST",body:a})):d=await Qt(c+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function po(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;cn&&clearTimeout(cn);const s=async(c,d)=>{let u;try{try{u=await $a(t)}catch(p){throw(p==null?void 0:p.status)===404&&(u=await $a(t,{method:"POST"}),u.ai_enabled&&(u=await $a(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(u&&i&&(u=await id(t,u)),e&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=vo(u.manual_injections||[]),u.ai_injections=vo(u.ai_injections||[]),c(u);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),c();return}u&&n(u),cn=setTimeout(()=>s(c),a)}};return new Promise(s)}async function id(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=co().content_modified_time,a=e.content_modified_time?on(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 $a(t,{params:{run_ai:!0},method:"POST"})}function vo(t){return t.map(e=>({...e,key:ad(e.sid)}))}function ad(t){return t+"-"+an()}function rd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function nd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function ld(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function dn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function fo(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 ho(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function od(t,e,i,a){const r=ld(e),n=dn(e),l=t.slice(0,a),s=t.slice(a),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),u=s.replace(d,i);return l+u}function sd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function di(t){return dn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function cd(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=go(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),s=go(mo(n,2)),c=mo(l,2);return{before:s,after:c}}function go(t){return t.split("").reverse().join("")}function mo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function er(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function dd(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,s=i?t.indexOf(i,l):t.length;if(i&&s===-1)break;const c=t.slice(l,s);a.push({match:c,index:l}),r=i?s+i.length:t.length+1}return a}function ud(t,e,i,a){const n=dd(t,i,a).filter(({match:s})=>dn(s).includes(e));return n.length?n.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function pd(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 vd(t,e,i=0){const a=e.innerHTML,r=[],n=fd(e);let l=a.indexOf(t);for(;l!==-1;)nd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function fd(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let s=0;s<i.length;s++){const c=i[s];if(!r&&!a&&c==="<"){a=!0,n&&(e.push({start:l,end:s}),n=!1);continue}if(a&&c==='"'&&(r=!r),a&&!r&&c===">"){a=!1;continue}!a&&!r&&!n&&(l=s,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function hd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(s=>"\\"+s).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 yo(t){return t.ctrlKey||t.metaKey||t.button!==0}const ue={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",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",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed"},wa={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function gd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function wt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function tr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const un=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function md(t=[]){return t.map(e=>{var i;return((i=un.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const pn="playpilot_user_id";function yd(){if(!bo())return null;try{const t=localStorage.getItem(pn);return t||(localStorage.setItem(pn,an(16)),localStorage.getItem(pn))}catch{return null}}function bo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const bd="https://insights.playpilot.net";async function pe(t,e=null,i={}){var r,n,l,s,c;if(tr())return;if(!wt("tracking")){xd(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:md(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),bo()&&(i.user_id=yd()),i.version="8.1.3",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Ci(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Pi?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((c=screen.orientation)==null?void 0:c.type)||"undefined"},fetch(bd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),_d({event:t,payload:i})}function _d(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function _o({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function xd(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 wd(){if(wt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])pe(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function xo(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?wt("pixels"):!1}async function wo(){if(!wt("ads"))return[];const t=ci();if(!t)throw new Error("No token was provided");try{return await Qt(`/ads/browse/?api-token=${t}`)}catch(e){throw pe(ue.AdsFetchFailed,null,{status:e.status}),e}}function ka(t){var e;return!wt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function kd(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"}}}const Sd=t=>t;function ko(t){const e=t-1;return e*e*e+1}function So(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function $t(t,{delay:e=0,duration:i=400,easing:a=Sd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Sa(t,{delay:e=0,duration:i=400,easing:a=ko,x:r=0,y:n=0,opacity:l=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,u=c*(1-l),[p,v]=So(r),[f,m]=So(n);return{delay:e,duration:i,easing:a,css:(b,g)=>`
6
6
  transform: ${d} translate(${(1-b)*p}${v}, ${(1-b)*f}${m});
7
7
  opacity: ${c-u*g}`}}function ea(t,{delay:e=0,duration:i=400,easing:a=ko,start:r=0,opacity:n=0}={}){const l=getComputedStyle(t),s=+l.opacity,c=l.transform==="none"?"":l.transform,d=1-r,u=s*(1-n);return{delay:e,duration:i,easing:a,css:(p,v)=>`
8
8
  transform: ${c} scale(${1-d*v});
9
9
  opacity: ${s-u*v}
10
- `}}var Td=ft('<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 vn(t,e){const i=O(e,"size",3,16);var a=Td();U(()=>{ae(a,"width",i()),ae(a,"height",i())}),_(t,a)}var Ed=ft("<title> </title>"),Pd=ft('<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 Bt(t,e){const i=O(e,"direction",3,"right"),a=O(e,"title",3,""),r=O(e,"size",3,16);var n=Pd(),l=T(n);{var s=c=>{var d=Ed(),u=T(d);U(()=>Z(u,a())),_(c,d)};F(l,c=>{a()&&c(s)})}U(()=>{me(n,0,i(),"svelte-1m6nwwy"),ae(n,"width",`${r()??""}px`),ae(n,"height",`${r()??""}px`)}),_(t,n)}function fn(t,e){$(e,!0);const i=O(e,"size",3,"32px"),a=O(e,"onclick",3,()=>null),r=io(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=ve(),l=J(n);Fl(l,()=>e.href?"a":"button",!1,(s,c)=>{Yl(s,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[$i]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=ve(),u=J(d);qe(u,()=>e.children??ut),_(c,d)}),_(t,n),ee()}var Cd=C("<div></div>");function zd(t,e){$(e,!0);let i=O(e,"threshold",3,100),a=O(e,"isDragging",15,!1),r=O(e,"passedThreshold",15,!1),n=O(e,"onpassed",3,()=>null),l=G(0),s=G(0),c=G(null),d=G(!1);const u=H(()=>Math.max(o(s)-o(l),0));Ue(()=>{r(o(u)>i())});function p(y){if(y){a(!0),q(d,!0),q(l,y.touches[0].pageY,!0);for(const x of e.targets)x.style.transitionDuration="0ms"}}function v(y){if(y&&a()){y.preventDefault(),q(s,y.touches[0].pageY,!0),o(c).style.transform=`translateY(${o(u)}px)`;for(const x of e.targets)x.style.top=`${o(u)}px`}}function f(){if(a()){if(a(!1),r())n()();else{o(c).removeAttribute("style");for(const y of e.targets)y.style.removeProperty("transition"),requestAnimationFrame(()=>y.style.top="0px")}q(l,0),q(s,0)}}var m={start:p,move:v,end:f},b=Cd();ye("touchmove",Ae,v,void 0,!0),ye("touchend",Ae,f);let g;return b.__touchstart=p,$e(b,y=>q(c,y),()=>o(c)),U(()=>g=me(b,1,"handle svelte-1xqgdsn",null,g,{dragging:a(),dragged:o(d)})),_(t,b),ee(m)}ce(["touchstart"]);var jd=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Id=["difference","intersection","symmetricDifference","union"],To=!1;const _r=class _r extends Set{constructor(i){super();le(this,ca);le(this,sa,new Map);le(this,St,G(0));le(this,gi,G(0));le(this,br,Jt||-1);if(i){for(var a of i)super.add(a);L(this,gi).v=super.size}To||Se(this,ca,rs).call(this)}has(i){var a=super.has(i),r=L(this,sa),n=r.get(i);if(n===void 0){if(!a)return o(L(this,St)),!1;n=Se(this,ca,as).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),q(L(this,gi),super.size),li(L(this,St))),this}delete(i){var a=super.delete(i),r=L(this,sa),n=r.get(i);return n!==void 0&&(r.delete(i),q(n,!1)),a&&(q(L(this,gi),super.size),li(L(this,St))),a}clear(){if(super.size!==0){super.clear();var i=L(this,sa);for(var a of i.values())q(a,!1);i.clear(),q(L(this,gi),0),li(L(this,St))}}keys(){return this.values()}values(){return o(L(this,St)),super.values()}entries(){return o(L(this,St)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(L(this,gi))}};sa=new WeakMap,St=new WeakMap,gi=new WeakMap,br=new WeakMap,ca=new WeakSet,as=function(i){return Jt===L(this,br)?G(i):It(i)},rs=function(){To=!0;var i=_r.prototype,a=Set.prototype;for(const r of jd)i[r]=function(...n){return o(L(this,St)),a[r].apply(this,n)};for(const r of Id)i[r]=function(...n){o(L(this,St));var l=a[r].apply(this,n);return new _r(l)}};let ir=_r;class Ad{constructor(e,i){le(this,Ia);le(this,Aa);re(this,Ia,e),re(this,Aa,nl(i))}get current(){return L(this,Aa).call(this),L(this,Ia).call(this)}}Ia=new WeakMap,Aa=new WeakMap;const Ld=/\(.+\)/,Md=new Set(["all","print","screen","and","or","not","only"]);class Dd extends Ad{constructor(e,i){let a=Ld.test(e)||e.split(/[\s,]+/).some(n=>Md.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>wc(r,"change",n))}}function qd(t){const e=t-1;return e*e*e+1}const hn=new Dd("(prefers-reduced-motion: reduce)");function gn(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 s=e();if(!s.length)return;const[c]=s,d=s[s.length-1];n.shiftKey&&l===c&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(c.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 Rd(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Od=C("<div><!></div>"),Nd=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Bd=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Fd=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Vd=C("<div><!></div>"),Hd=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Ud=C('<div data-testid="modal"><!> <!> <!> <!></div>');function ar(t,e){$(e,!0);const i=R=>{var K=Od(),X=T(K);fn(X,{onclick:k,"aria-label":"Close",children:(Q,oe)=>{vn(Q,{})},$$slots:{default:!0}}),$e(K,Q=>q(m,Q),()=>o(m)),U(()=>me(K,1,`close ${l()??""}`,"svelte-1rbidhv")),ze(7,K,()=>w),_(R,K)},a=O(e,"tall",3,!1),r=O(e,"wide",3,!1),n=O(e,"blur",3,!1),l=O(e,"closeButtonStyle",3,"shadow"),s=O(e,"initialScrollPosition",3,0),c=O(e,"onscroll",3,()=>null),d=O(e,"onclose",3,()=>null),u="#playpilot";let p=G(0),v=G(null),f=G(null),m=G(null),b=G(0),g=G(!1);const y=H(()=>o(p)<Pi);Ue(()=>{var R;o(p)&&q(b,((R=o(f))==null?void 0:R.offsetTop)||0,!0)}),Ue(()=>{setTimeout(()=>{var R;return q(b,((R=o(f))==null?void 0:R.offsetTop)||0,!0)})}),Ir("scope","modal"),ct(()=>{const R=Rd();return R.classList.add("playpilot-modal-open"),q(g,!!Ko()),o(g)||window.history.pushState({modal:!0},"",u),requestAnimationFrame(x),()=>{var K;R.classList.remove("playpilot-modal-open"),!Ko()&&((K=history.state)!=null&&K.modal)&&history.back()}});function x(){const R=window.innerWidth>Pi?o(v):o(f);R==null||R.scrollTo(0,s())}function w(R){return hn.current?$t(R,{duration:0}):o(y)?Sa(R,{duration:250,y:window.innerHeight,opacity:1}):ea(R,{duration:150,start:.85})}function k(){d()(),En()}function M(R){R.target===o(v)&&k()}var E=Ud();ye("keydown",Ae,({key:R})=>{R==="Escape"&&k()}),ye("hashchange",Ae,k);let z;E.__click=M;let N;var A=T(E);{var j=R=>{var K=Nd(),X=T(K);qe(X,()=>e.prepend),ze(7,K,()=>w),_(R,K)};F(A,R=>{e.prepend&&R(j)})}var D=I(A,2);{var P=R=>{var K=Bd(),X=T(K);qe(X,()=>e.bubble),ze(7,K,()=>w),_(R,K)};F(D,R=>{e.bubble&&R(P)})}var S=I(D,2);{var V=R=>{var K=Fd(),X=T(K);{var Q=oe=>{{let ne=H(()=>[o(f),o(m)]);zd(oe,{get targets(){return o(ne)},onpassed:k})}};F(X,oe=>{o(f)&&o(m)&&oe(Q)})}ze(7,K,()=>w),_(R,K)};F(S,R=>{o(y)&&R(V)})}var W=I(S,2);{var Y=R=>{var K=ve(),X=J(K);qe(X,()=>e.dialog),_(R,K)},B=R=>{var K=Hd(),X=J(K),Q=T(X);{var oe=de=>{var Te=Vd(),nt=T(Te);fn(nt,{onclick:()=>Nf(),"aria-label":"Back",children:(Be,se)=>{Bt(Be,{direction:"left"})},$$slots:{default:!0}}),U(()=>me(Te,1,`close back ${l()??""}`,"svelte-1rbidhv")),_(de,Te)};F(Q,de=>{o(g)&&de(oe)})}var ne=I(Q,2);qe(ne,()=>e.children??ut);var xe=I(ne,2);{var je=de=>{i(de)};F(xe,de=>{o(y)||de(je)})}$e(X,de=>q(f,de),()=>o(f));var Je=I(X,2);{var Re=de=>{i(de)};F(Je,de=>{o(y)&&de(Re)})}ye("scroll",X,function(...de){var Te;(Te=c())==null||Te.apply(this,de)}),ze(7,X,()=>w),_(R,K)};F(W,R=>{e.dialog?R(Y):R(B,!1)})}$e(E,R=>q(v,R),()=>o(v)),Ot(E,R=>gn==null?void 0:gn(R)),U(()=>{z=me(E,1,"modal svelte-1rbidhv",null,z,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),N=Oe(E,"",N,{"--dialog-offset":`${o(b)??""}px`})}),Qr("innerWidth",R=>q(p,R,!0)),ze(5,E,()=>$t,()=>({duration:150})),ze(6,E,()=>$t,()=>({duration:150,delay:100})),_(t,E),ee()}ce(["click"]);const Wd={"Where To Stream Online":{[h.English]:"Where to stream online",[h.Swedish]:"Var kan man streama online",[h.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[h.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[h.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[h.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[h.English]:"We may earn a commission from purchases made through some of the links below.",[h.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[h.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[h.English]:"An error occurred",[h.Swedish]:"Ett fel inträffade",[h.Danish]:"Der opstod en fejl"},Loading:{[h.English]:"Loading",[h.Swedish]:"Laddar",[h.Danish]:"Indlæser"},"Title Unavailable":{[h.English]:"This title is not currently available to stream.",[h.Swedish]:"Den här titeln går inte att streama just nu.",[h.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[h.English]:"is not currently available to stream.",[h.Swedish]:"går inte att streama just nu.",[h.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[h.English]:"is available to stream on",[h.Swedish]:"finns att streama på",[h.Danish]:"kan streames på"},"Is Available To Stream":{[h.English]:"is available to stream.",[h.Swedish]:"finns att streama.",[h.Danish]:"kan streames."},"View Streaming Options":{[h.English]:"View streaming options",[h.Swedish]:"Se streamingalternativ",[h.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[h.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[h.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[h.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[h.English]:"and",[h.Swedish]:"och",[h.Danish]:"og"},Minutes:{[h.English]:"minutes",[h.Swedish]:"minuter",[h.Danish]:"minutter"},"Type: movie":{[h.English]:"Movie",[h.Swedish]:"Film",[h.Danish]:"Film"},"Type: series":{[h.English]:"Series",[h.Swedish]:"Serie",[h.Danish]:"Serie"},Stream:{[h.English]:"Stream",[h.Swedish]:"Streama",[h.Danish]:"Stream"},Buy:{[h.English]:"Buy",[h.Swedish]:"Köp",[h.Danish]:"Køb"},Rent:{[h.English]:"Rent",[h.Swedish]:"Hyr",[h.Danish]:"Lej"},"Rent Or Buy":{[h.English]:"Rent or Buy",[h.Swedish]:"Hyr/köp",[h.Danish]:"Lej eller køb"},Watch:{[h.English]:"Watch",[h.Swedish]:"Titta nu",[h.Danish]:"Se nu"},"Category: AVOD":{[h.English]:"Stream for free",[h.Swedish]:"Streama gratis",[h.Danish]:"Stream gratis"},"Category: SVOD":{[h.English]:"Streaming services",[h.Swedish]:"Streamingtjänster",[h.Danish]:"Streamingtjenester"},"Category: RENT":{[h.English]:"Rent it",[h.Swedish]:"Hyr den",[h.Danish]:"Lej den"},"Category: BUY":{[h.English]:"Buy it",[h.Swedish]:"Köp den",[h.Danish]:"Køb den"},"Category: Other":{[h.English]:"Other",[h.Swedish]:"Annat",[h.Danish]:"Andet"},Share:{[h.English]:"Share",[h.Swedish]:"Dela",[h.Danish]:"Del"},"Copy URL":{[h.English]:"Copy URL",[h.Swedish]:"Kopiera URL",[h.Danish]:"Kopiér URL"},Email:{[h.English]:"Email",[h.Swedish]:"E-post",[h.Danish]:"E-mail"},"Show More":{[h.English]:"Show more",[h.Swedish]:"Visa mer",[h.Danish]:"Vis mere"},Cast:{[h.English]:"Cast",[h.Swedish]:"Rollista",[h.Danish]:"Skuespillere"},"Similar Titles":{[h.English]:"Similar movies & shows",[h.Swedish]:"Liknande filmer och serier",[h.Danish]:"Lignende film og serier"},"Watch Trailer":{[h.English]:"Watch trailer",[h.Swedish]:"Se trailer",[h.Danish]:"Se trailer"},"Streaming Guide":{[h.English]:"Streaming Guide",[h.Swedish]:"Streaming Guide",[h.Danish]:"Streaming Guide"},"Streaming Guide Description":{[h.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[h.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[h.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":{[h.English]:"Search movies and shows",[h.Swedish]:"Sök filmer och serier",[h.Danish]:"Søg film og serier"},Services:{[h.English]:"Services",[h.Swedish]:"Tjänster",[h.Danish]:"Tjenester"},Genres:{[h.English]:"Genres",[h.Swedish]:"Genrer",[h.Danish]:"Genrer"},IMDb:{[h.English]:"IMDb",[h.Swedish]:"IMDb",[h.Danish]:"IMDb"},Year:{[h.English]:"Year",[h.Swedish]:"År",[h.Danish]:"År"},Runtime:{[h.English]:"Runtime",[h.Swedish]:"Speltid",[h.Danish]:"Spilletid"},Countries:{[h.English]:"Countries",[h.Swedish]:"Länder",[h.Danish]:"Lande"},"All Filters":{[h.English]:"All filters",[h.Swedish]:"Alla filter",[h.Danish]:"Alle filtre"},"Sort By":{[h.English]:"Sort by",[h.Swedish]:"Sortera efter",[h.Danish]:"Sortér efter"},Popularity:{[h.English]:"Popularity",[h.Swedish]:"Popularitet",[h.Danish]:"Popularitet"},New:{[h.English]:"New",[h.Swedish]:"Nytt",[h.Danish]:"Nyt"},"Top Rated":{[h.English]:"Top Rated",[h.Swedish]:"Toppbetyg",[h.Danish]:"Højst vurderet"},Search:{[h.English]:"Search",[h.Swedish]:"Sök",[h.Danish]:"Søg"},"Born On":{[h.English]:"Born on",[h.Swedish]:"Född den",[h.Danish]:"Født den"},"Died On":{[h.English]:"Died on",[h.Swedish]:"Död den",[h.Danish]:"Død den"},Credits:{[h.English]:"Credits",[h.Swedish]:"Medverkande",[h.Danish]:"Medvirkende"},All:{[h.English]:"All",[h.Swedish]:"Alla",[h.Danish]:"Alle"},Unscripted:{[h.English]:"Unscripted",[h.Swedish]:"Oscripterat",[h.Danish]:"Umanuskriptet"},Independent:{[h.English]:"Independent",[h.Swedish]:"Indie",[h.Danish]:"Indie"},"Game Show":{[h.English]:"Game Show",[h.Swedish]:"Gameshow",[h.Danish]:"Quizshow"},"Film Noir":{[h.English]:"Film Noir",[h.Swedish]:"Film noir",[h.Danish]:"Film noir"},Entertainment:{[h.English]:"Entertainment",[h.Swedish]:"Underhållning",[h.Danish]:"Underholdning"},News:{[h.English]:"News",[h.Swedish]:"Nyheter",[h.Danish]:"Nyheder"},Short:{[h.English]:"Short",[h.Swedish]:"Kortfilm",[h.Danish]:"Kortfilm"},Bollywood:{[h.English]:"Bollywood",[h.Swedish]:"Bollywood",[h.Danish]:"Bollywood"},Concert:{[h.English]:"Concert",[h.Swedish]:"Konsert",[h.Danish]:"Koncert"},Arthouse:{[h.English]:"Arthouse",[h.Swedish]:"Arthouse",[h.Danish]:"Arthouse"},"Alternate Version":{[h.English]:"Alternate Version",[h.Swedish]:"Alternativ version",[h.Danish]:"Alternativ version"},"Reality TV":{[h.English]:"Reality TV",[h.Swedish]:"Reality-TV",[h.Danish]:"Reality-TV"},Culture:{[h.English]:"Culture",[h.Swedish]:"Kultur",[h.Danish]:"Kultur"},Drama:{[h.English]:"Drama",[h.Swedish]:"Drama",[h.Danish]:"Drama"},Crime:{[h.English]:"Crime",[h.Swedish]:"Kriminal",[h.Danish]:"Krimi"},Western:{[h.English]:"Western",[h.Swedish]:"Western",[h.Danish]:"Western"},Thriller:{[h.English]:"Thriller",[h.Swedish]:"Thriller",[h.Danish]:"Thriller"},Animation:{[h.English]:"Animation",[h.Swedish]:"Animerat",[h.Danish]:"Animation"},Mystery:{[h.English]:"Mystery",[h.Swedish]:"Mysterium",[h.Danish]:"Mysterium"},Science:{[h.English]:"Science",[h.Swedish]:"Vetenskap",[h.Danish]:"Videnskab"},Nature:{[h.English]:"Nature",[h.Swedish]:"Natur",[h.Danish]:"Natur"},War:{[h.English]:"War",[h.Swedish]:"Krig",[h.Danish]:"Krig"},"Sci-Fi":{[h.English]:"Sci-Fi",[h.Swedish]:"Sci-fi",[h.Danish]:"Sci-fi"},Documentary:{[h.English]:"Documentary",[h.Swedish]:"Dokumentär",[h.Danish]:"Dokumentar"},"Stand-up":{[h.English]:"Stand-up",[h.Swedish]:"Standup",[h.Danish]:"Stand-up"},"Talk Show":{[h.English]:"Talk Show",[h.Swedish]:"Talkshow",[h.Danish]:"Talkshow"},Fantasy:{[h.English]:"Fantasy",[h.Swedish]:"Fantasy",[h.Danish]:"Fantasy"},History:{[h.English]:"History",[h.Swedish]:"Historia",[h.Danish]:"Historie"},Adventure:{[h.English]:"Adventure",[h.Swedish]:"Äventyr",[h.Danish]:"Eventyr"},Action:{[h.English]:"Action",[h.Swedish]:"Action",[h.Danish]:"Action"},Horror:{[h.English]:"Horror",[h.Swedish]:"Skräck",[h.Danish]:"Gyser"},Comedy:{[h.English]:"Comedy",[h.Swedish]:"Komedi",[h.Danish]:"Komedie"},Biography:{[h.English]:"Biography",[h.Swedish]:"Biografi",[h.Danish]:"Biografi"},Music:{[h.English]:"Music",[h.Swedish]:"Musik",[h.Danish]:"Musik"},Sport:{[h.English]:"Sport",[h.Swedish]:"Sport",[h.Danish]:"Sport"},Romance:{[h.English]:"Romance",[h.Swedish]:"Romantik",[h.Danish]:"Romantik"},Kids:{[h.English]:"Kids",[h.Swedish]:"Barn",[h.Danish]:"Børn"},Lifestyle:{[h.English]:"Lifestyle",[h.Swedish]:"Livsstil",[h.Danish]:"Livsstil"},Musical:{[h.English]:"Musical",[h.Swedish]:"Musikal",[h.Danish]:"Musical"},Anime:{[h.English]:"Anime",[h.Swedish]:"Anime",[h.Danish]:"Anime"},Family:{[h.English]:"Family",[h.Swedish]:"Familj",[h.Danish]:"Familie"}};function te(t,e=Qa()){var i;return((i=Wd[t])==null?void 0:i[e])||t}const Gd="1304688689641511",Kd="https://endpoint-youtube-availability.playpilot.workers.dev";function rr(t,e={}){const i=new Image;i.src=Yd(t,e||{})}function Yd(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Gd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Eo(t,e={}){return()=>{Ue(()=>rr(t,e))}}function Zd(t,e={}){return i=>{const a=()=>rr(t,e);Ue(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var Jd=C('<div class="genre svelte-1mphbln"> </div>'),Xd=C('<button class="genre expand svelte-1mphbln"> </button>'),Qd=C("<!> <!>",1);function $d(t,e){$(e,!0);let i=G(!1);const a=H(()=>o(i)?e.genres:[e.genres[0]]);var r=Qd(),n=J(r);Ee(n,17,()=>o(a),Ce,(c,d)=>{const u=H(()=>{var m;return(m=un.find(b=>b.slug===o(d)))==null?void 0:m.name});var p=ve(),v=J(p);{var f=m=>{var b=Jd(),g=T(b);Ga(b,()=>xo()?Eo(wa.GenreInterest,{genre:o(u)}):null),U(y=>Z(g,y),[()=>te(o(u))]),_(m,b)};F(v,m=>{o(u)&&m(f)})}_(c,p)});var l=I(n,2);{var s=c=>{var d=Xd();d.__click=()=>q(i,!0);var u=T(d);U(()=>Z(u,`+${e.genres.length-1}`)),_(c,d)};F(l,c=>{!o(i)&&e.genres.length>1&&c(s)})}_(t,r),ee()}ce(["click"]);function Po(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(c=>c.name===r.name),l=n==null?void 0:n.extra_info.category,s=r.extra_info.category;(l==="RENT"&&s==="BUY"||l==="BUY"&&s==="RENT")&&(i=i.filter(c=>c.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}function Le(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var eu=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),tu=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function mn(t,e){const i=O(e,"small",3,!1);let a=G(!1);function r(u){u.preventDefault(),u.stopPropagation(),q(a,!o(a))}var n=tu();n.__click=r;var l=T(n);let s;var c=I(l,2);{var d=u=>{var p=eu(),v=T(p);U(()=>Z(v,e.disclaimer)),ze(3,p,()=>$t,()=>({duration:50})),_(u,p)};F(c,u=>{o(a)&&u(d)})}U(()=>s=me(l,1,"disclaimer svelte-1ldthr7",null,s,{small:i()})),_(t,n)}ce(["click"]);var iu=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function yn(t,e){$(e,!0);let i=G(De(Math.random()));var a=ve();ye("updateconsent",Ae,()=>q(i,Math.random(),!0));var r=J(a);Xi(r,()=>o(i),n=>{var l=ve(),s=J(l);{var c=d=>{var u=ve(),p=J(u);Ee(p,17,()=>e.pixels,Ce,(v,f)=>{var m=iu();U(()=>ae(m,"src",o(f))),_(v,m)}),_(d,u)};F(s,d=>{wt("pixels")&&d(c)})}_(n,l)}),_(t,a),ee()}function nr(t){return t?t.replace("/src/img",""):null}function Co(t,e=null){return t!=null&&t.length?`${Gc}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var au=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),ru=C('<span class="cta svelte-13ka2ap"> </span>'),nu=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){$(e,!0);const i=O(e,"disclaimer",3,""),a=O(e,"hideCategory",3,!1),r=O(e,"onclick",3,()=>null),n=H(()=>e.playlink.name),l=H(()=>e.playlink.url),s=H(()=>e.playlink.logo_url),c=H(()=>e.playlink.highlighted),d=H(()=>e.playlink.cta_text),u=H(()=>e.playlink.action_text),p=H(()=>e.playlink.pixels),v=H(()=>e.playlink.extra_info.category),f=H(()=>xo()&&!o(c)),m={AVOD:te("Stream"),SVOD:te("Stream"),BUY:te("Buy"),RENT:te("Rent"),TVOD:te("Rent Or Buy")};let b=G(0);var g=ve(),y=J(g);Fl(y,()=>{var x,w;return!((w=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&w.require_affiliate_consent)||wt("affiliate")?"a":"span"},!1,(x,w)=>{Ga(x,()=>o(f)?Eo(wa.ProviderInterest,{provider:e.playlink.slug}):null),Ga(x,()=>o(f)?Zd(wa.ProviderClick,{provider:e.playlink.slug}):null),Yl(x,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[Qi]:{highlighted:o(c),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var k=nu(),M=J(k);let E;var z=T(M),N=I(z,2),A=T(N),j=I(N,2);{var D=X=>{var Q=au(),oe=T(Q);U(ne=>Z(oe,ne),[()=>m[o(v)]||te("Stream")]),_(X,Q)};F(j,X=>{a()||X(D)})}var P=I(j,2);{var S=X=>{var Q=ru(),oe=T(Q);U(()=>Z(oe,o(d))),_(X,Q)};F(P,X=>{o(d)&&X(S)})}var V=I(P,2),W=T(V),Y=I(V,2);{var B=X=>{mn(X,{get disclaimer(){return i()},small:!0})};F(Y,X=>{i()&&X(B)})}var R=I(M,2);{var K=X=>{yn(X,{get pixels(){return o(p)}})};F(R,X=>{var Q;(Q=o(p))!=null&&Q.length&&X(K)})}U((X,Q)=>{E=Oe(M,"",E,{"--action-width":o(b)?`${o(b)}px`:null}),ae(z,"src",X),Z(A,o(n)),Z(W,Q)},[()=>nr(o(s)),()=>o(u)||te("Watch")]),Nt(V,"clientWidth",X=>q(b,X)),_(w,k)}),_(t,g),ee()}var lu=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>'),ou=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),su=C('<div class="heading category svelte-1fykz2q"> </div>'),cu=C("<!> <!>",1),du=C("<!> <div></div>",1),uu=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function pu(t,e){var k,M;$(e,!0);const i=jr("scope")==="modal",a=ka("card"),r=!!((M=(k=window.PlayPilotLinkInjections)==null?void 0:k.config)!=null&&M.categorize_playlinks);let n=G(0);const l=H(()=>Po(e.playlinks)),s=H(()=>p(e.playlinks)),c=H(()=>r?v(o(s)):[["",o(l)]]),d=H(()=>o(n)<500||!!a||o(l).length===1);function u(E){pe(i?ue.TitleModalPlaylinkClick:ue.TitlePopoverPlaylinkClick,e.title,{playlink:E})}function p(E){const z={};for(const N of E){const{category:A}=N.extra_info;A in z||(z[A]=[]),z[A].push(N)}return z}function v(E){const z=["AVOD","SVOD","RENT","BUY"],N=[];for(const j of z)E[j]&&N.push([j,E[j]]);const A=[];for(const j of Object.values(E))for(const D of j)z.includes(D.extra_info.category)||A.push(D);return[...N,["Other",A]]}var f=uu(),m=J(f),b=T(m);Ot(m,(E,z)=>Le==null?void 0:Le(E,z),()=>3);var g=I(m,2);{var y=E=>{var z=lu(),N=T(z);U(A=>Z(N,`${A??""} `),[()=>{var A,j;return((j=(A=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:A.config)==null?void 0:j.playlinks_disclaimer_text)||te("Commission Disclaimer")}]),_(E,z)},x=E=>{var z=ou(),N=T(z);U(A=>Z(N,A),[()=>te("Title Unavailable")]),_(E,z)};F(g,E=>{o(l).length?E(y):E(x,!1)})}var w=I(g,2);Ee(w,17,()=>o(c),Ce,(E,z,N,A)=>{var j=H(()=>Ma(o(z),2));let D=()=>o(j)[0],P=()=>o(j)[1];var S=du(),V=J(S);{var W=R=>{var K=su(),X=T(K);Ot(K,(Q,oe)=>Le==null?void 0:Le(Q,oe),()=>4),U(Q=>Z(X,Q),[()=>te(`Category: ${D()}`)]),_(R,K)};F(V,R=>{D()&&P().length&&R(W)})}var Y=I(V,2);let B;Ee(Y,21,P,Ce,(R,K,X)=>{var Q=cu(),oe=J(Q);zo(oe,{get playlink(){return o(K)},onclick:()=>u(o(K).name)});var ne=I(oe,2);{var xe=je=>{{let Je=H(()=>kd(a)),Re=H(()=>a.disclaimer||"");zo(je,{get playlink(){return o(Je)},onclick:()=>pe(ue.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(Re)}})}};F(ne,je=>{a&&X===0&&je(xe)})}_(R,Q)}),U(()=>{B=me(Y,1,"playlinks svelte-1fykz2q",null,B,{list:o(d)}),ae(Y,"data-testid",`category-${D()??""}`)}),Nt(Y,"clientWidth",R=>q(n,R)),_(E,S)}),U(E=>Z(b,E),[()=>te("Where To Stream Online")]),_(t,f),ee()}var vu=C('<button class="show-more svelte-7itcht">Show more</button>'),fu=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),hu=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function gu(t,e){$(e,!0);const i=O(e,"blurb",3,""),a=O(e,"limit",3,200),r=O(e,"onclick",3,()=>null);let n=G(!1);const l=H(()=>e.text.slice(0,a()));function s(){q(n,!0),r()()}var c=hu(),d=T(c),u=T(d),p=I(u);{var v=y=>{var x=qt("...");_(y,x)};F(p,y=>{!o(n)&&e.text.length>a()&&y(v)})}var f=I(p,2);{var m=y=>{var x=vu();x.__click=()=>s(),_(y,x)};F(f,y=>{!o(n)&&(e.text.length>a()||i())&&y(m)})}var b=I(d,2);{var g=y=>{var x=fu(),w=T(x);U(()=>Z(w,i())),_(y,x)};F(b,y=>{o(n)&&y(g)})}U(()=>Z(u,o(n)?e.text:o(l))),_(t,c),ee()}ce(["click"]);var mu=ft('<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 bn(t,e){const i=O(e,"size",3,14);var a=mu();U(()=>{ae(a,"width",i()),ae(a,"height",i())}),_(t,a)}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 s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(a=s==null?void 0:s.country)==null?void 0:a.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),yu(c),c}catch(l){return pe(ue.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function yu(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function bu(t,{page:e=1}={}){const i={language:Qa(),region:await _n(),include_count:"false",participant_sid:t.sid,page:e};return(await Qt(`/titles/browse?api-token=${ci()}&${sn(i)}`)).results}async function _u(t){return(await Qt(`/participants/browse?api-token=${ci()}&title_sid=${t.sid}`)).results}var xu=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function jo(t,e){$(e,!0);let i=O(e,"gap",3,"0"),a=O(e,"fill",3,!0),r=O(e,"transitionDuration",3,300),n=O(e,"threshold",3,30),l=O(e,"moveThreshold",3,0),s=O(e,"currentIndex",15,0),c=O(e,"shown",31,()=>De([])),d=O(e,"sliderWidth",15,0),u=O(e,"currentScrollPosition",15,0),p=O(e,"maxWidth",15,0),v=O(e,"reachedEnd",15,!1),f=O(e,"distanceToEnd",15,0),m=O(e,"passedThreshold",15,!1),b=O(e,"passedMoveThreshold",15,!1),g=O(e,"allowWheel",3,!1),y=O(e,"end",3,()=>null),x=O(e,"change",3,ie=>null),w=O(e,"onend",19,y),k=O(e,"onchange",19,x),M=O(e,"onresize",3,()=>null),E=G(!1),z=G(!1),N=0,A=0,j=G(void 0),D=G(void 0),P=null,S=null;Ue(()=>{o(D)&&ne(),o(D)&&f(p()-u()-d())}),ct(()=>(Re(),()=>P==null?void 0:P.disconnect()));function V(ie){const be=o(D).children.length,Pe=Math.max(0,Math.min(ie,be-1));Q({setIndex:Pe}),ne()}function W(){q(z,!0),V(s()),requestAnimationFrame(()=>q(z,!1))}function Y(ie){de(ie.target)&&(ie.preventDefault(),N=xe(ie),q(E,!0))}function B(){if(o(E)){if(!m())Q({setIndex:s()});else{const ie=u()-A,be=ie>0?1:-1;ie!=0&&Q({direction:be})}q(E,!1),m(!1)}}function R(ie){if(!o(E))return;const be=xe(ie),Pe=A+(N-be),yi=N-be;b(Math.abs(yi)>l()),m(Math.abs(u()-A)>n()),b()&&(oe(Math.abs(Pe)-l()*(yi>0?1:-1)),ne())}function K(ie){if(!g())return;const{deltaX:be,deltaY:Pe}=ie;if(Math.abs(be)<Math.abs(Pe))return;ie.preventDefault();const yt=u()+be*20*.02;oe(yt),ne(),S&&clearTimeout(S),S=setTimeout(()=>{Q({direction:be>0?1:-1})},100)}function X(ie){de(document.activeElement)&&(ie.key=="ArrowLeft"&&V(s()-1),ie.key=="ArrowRight"&&V(s()+1))}function Q({setIndex:ie=-1,direction:be=1}={}){const Pe=je(),yi=s();s(0);let yt;for(yt=0;yt<Pe.length;yt++)if(ie!=-1){if(yt>=ie)break}else if(be>0&&Pe[yt]>u()||be<0&&Pe[yt+1]>u())break;s(Math.min(yt,Je().length-1)),oe(Pe[s()],!0),A=u(),k()&&s()!=yi&&k()(s())}function oe(ie,be=!1){u(ie);const Pe=p()-d();v(u()>=Pe),v()&&(w()&&w()(),a()&&be&&u(Pe))}function ne(){const ie=je();Array.from(ie).forEach((be,Pe)=>{u()+d()<be||c().includes(Pe)||c([...c(),Pe])})}function xe(ie){var be,Pe;return ie.pageX??((Pe=(be=ie.touches)==null?void 0:be[0])==null?void 0:Pe.pageX)}function je(){return Je().map(ie=>ie.offsetLeft)}function Je(){return Array.from(o(D).children).filter(ie=>ie instanceof HTMLElement).filter(ie=>ie.src!="about:blank")}function Re(){P=new ResizeObserver(ie=>{for(const be of ie){const Pe=Array.isArray(be.contentBoxSize)?be.contentBoxSize[0]:be.contentBoxSize;p(Pe.inlineSize)}M()()}),P.observe(o(D))}function de(ie){return ie===o(j)||(ie==null?void 0:ie.closest(".slider"))===o(j)}var Te={setIndex:V,reposition:W},nt=xu();ye("mousedown",Ae,Y),ye("mouseup",Ae,B),ye("mousemove",Ae,R),ye("touchstart",Ae,Y,void 0,!0),ye("touchend",Ae,B),ye("touchmove",Ae,R,void 0,!0),ye("keydown",Ae,X),ye("resize",Ae,W);var Be=J(nt);let se;var et=T(Be);let Ge;var lt=T(et);qe(lt,()=>e.children??ut,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:V,currentScrollPosition:u(),maxWidth:p(),reachedEnd:v(),distanceToEnd:f()})),$e(et,ie=>q(D,ie),()=>o(D)),$e(Be,ie=>q(j,ie),()=>o(j));var mi=I(Be,2);return qe(mi,()=>e.controls??ut,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:V,currentScrollPosition:u(),maxWidth:p(),reachedEnd:v(),distanceToEnd:f()})),U(ie=>{se=me(Be,1,"slider svelte-1gs8ha8",null,se,{dragging:o(E),"passed-threshold":m()}),Ge=Oe(et,"",Ge,ie)},[()=>({transform:`translateX(${u()*-1}px)`,"transition-duration":`${(o(E)||o(z)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),ye("wheel",Be,K),Nt(Be,"clientWidth",d),_(t,nt),ee(Te)}var wu=C('<div class="heading svelte-1ayf7b5"> </div>'),ku=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Su=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Tu=C("<!> <!>",1),Eu=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function lr(t,e){$(e,!0);let i=O(e,"heading",3,""),a=O(e,"onchange",3,()=>null),r=O(e,"onresize",3,()=>null),n=O(e,"slider",15);var l=Eu(),s=J(l);{var c=p=>{var v=wu(),f=T(v);Ot(v,(m,b)=>Le==null?void 0:Le(m,b),()=>2),U(()=>Z(f,i())),_(p,v)};F(s,p=>{i()&&p(c)})}var d=I(s,2),u=T(d);$e(jo(u,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(v,f)=>{let m=()=>f==null?void 0:f().setIndex,b=()=>f==null?void 0:f().currentIndex,g=()=>f==null?void 0:f().reachedEnd;var y=Tu(),x=J(y);{var w=E=>{var z=ku();z.__click=()=>m()(b()-1);var N=T(z);Bt(N,{direction:"left",title:"Previous"}),_(E,z)};F(x,E=>{b()>0&&E(w)})}var k=I(x,2);{var M=E=>{var z=Su();z.__click=()=>m()(b()+1);var N=T(z);Bt(N,{title:"Next"}),_(E,z)};F(k,E=>{g()||E(M)})}_(v,y)},children:(v,f)=>{var m=ve(),b=J(m);qe(b,()=>e.children),_(v,m)},$$slots:{controls:!0,default:!0}}),v=>n(v),()=>n()),_(t,l),ee()}ce(["click"]);var Pu=C('<div class="character truncate svelte-zy7e3f"> </div>'),Cu=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),zu=C('<div class="participant svelte-zy7e3f"></div>');function ju(t,e){$(e,!0);function i(l){const s=di(nn(so(rn()))),c={};for(const u of l){const p=er(s,di(u.name));c[u.sid]={participant:u,count:p}}return Object.values(c).sort((u,p)=>p.count-u.count).map(({participant:u})=>u)}function a(l,s){ei({event:l,type:"participant",data:s}),pe(ue.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var r=ve(),n=J(r);xa(n,()=>_u(e.title),l=>{{let s=H(()=>te("Cast"));lr(l,{get heading(){return o(s)},children:(c,d)=>{var u=ve(),p=J(u);Ee(p,16,()=>({length:5}),Ce,(v,f)=>{var m=zu();_(v,m)}),_(c,u)},$$slots:{default:!0}})}},(l,s)=>{var c=ve(),d=J(c);{var u=p=>{{let v=H(()=>te("Cast"));lr(p,{get heading(){return o(v)},children:(f,m)=>{var b=ve(),g=J(b);Ee(g,17,()=>i(o(s)).slice(0,15),Ce,(y,x)=>{var w=Cu();w.__click=N=>a(N,o(x));var k=T(w),M=T(k),E=I(k,2);{var z=N=>{var A=Pu(),j=T(A);U(()=>Z(j,o(x).character)),_(N,A)};F(E,N=>{o(x).character&&N(z)})}U(()=>Z(M,o(x).name)),_(y,w)}),_(f,b)},$$slots:{default:!0}})}};F(d,p=>{var v;(v=o(s))!=null&&v.length&&p(u)})}_(l,c)}),_(t,r),ee()}ce(["click"]);async function Io(t={}){const e=ci();if(!e)throw new Error("No token was provided");return t={...t,language:Qa(),region:await _n(),include_count:"false"},await Qt(`/titles/browse?api-token=${e}&`+sn(t))}async function or(t){return(await Io({related_to_sid:t.sid})).results}var Iu=C('<img class="svelte-p6g2a"/>');function sr(t,e){$(e,!0);const i=O(e,"width",3,96),a=O(e,"height",3,144),r=O(e,"lazy",3,!0),n=O(e,"onload",3,()=>null);var l=Iu();U(s=>{ae(l,"src",s),ae(l,"alt",`Movie poster for '${e.title.title??""}'`),ae(l,"width",i()),ae(l,"height",a()),ae(l,"loading",r()?"lazy":null)},[()=>nr(e.title.standing_poster)]),ye("error",l,({target:s})=>s.src=Kc),ye("load",l,function(...s){var c;(c=n())==null||c.apply(this,s)}),_(t,l),ee()}var Au=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 Lu(t,e){const i=O(e,"embeddable_url",3,"");var a=Au(),r=T(a);wn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=I(r,2);n.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var l=I(n,2);l.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var s=T(l);vn(s,{size:24}),ze(3,a,()=>$t,()=>({duration:100})),_(t,a)}ce(["click"]);async function Ao(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(`${Kd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const s=await l.json();return!((r=s.blocked)!=null&&r[e]||!s.blocked&&s.allowed&&!((n=s.allowed)!=null&&n.includes(e)))}catch(l){return pe(ue.YouTubeAvailabilityRequestFailed,null,{message:l.message}),!1}}let cr={};function Mu(t){const e=zn(),i={onclose:Du,embeddable_url:t.embeddable_url||""};cr=Rt(Lu,{target:e,props:i})}function Du(){cr&&(Zi(cr,{outro:!0}),cr=null)}function xn(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 qu(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&xn(r.embeddable_url);try{n&&await Ao(n)&&(a=r)}catch{}i++}return a}var Ru=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe>');function wn(t,e){var v;$(e,!0);const i=O(e,"embeddable_url",3,""),a=O(e,"controls",19,()=>[]),r=O(e,"muted",3,!1),n=O(e,"loop",3,!1),l=H(()=>xn(i())),s=((v=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:v.replace("#",""))||"fa548a";var c=ve(),d=J(c);{var u=f=>{var m=Ru();U(b=>ae(m,"src",`https://video.playpilot.net/?video_id=${o(l)??""}&color=${s}&muted=${r()??""}&loop=${n()??""}&controls=${b??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),_(f,m)},p=f=>{var m=qt("Something went wrong");_(f,m)};F(d,f=>{o(l)?f(u):f(p,!1)})}_(t,c),ee()}function Lo(t){return`${Uc}/${t.type}/${t.slug}/`}const Ou={sid:"tig9r9F",slug:"dune-prophecy-2024-series",poster_uuid:"61feb4b0a58f11efb0b50a58a9feac02",standing_poster_uuid:"6239ee86a58f11efb0b50a58a9feac02",genres:["101","109","123","107"],year:2024,imdb_score:7.5,type:"series",providers:[{sid:"plxWzpL",slug:"max",name:"Max",url:"https://out.playpilot.com/playlink/gAAAAABnReWk_jqQh4e6vBNNqD0rl4fafWJGUBj939o2z4EZB7yWUJ2jq5RpLSPYvD1kRdsj2CXkst0obPR-UYwuBx7_ofbR1aTCOEc8gV40OGChzuRbPmXl4U-OXhrkRMR5KJi0A8vJ2UGQcPBieRTiHovwTDnPO1rRs1jGwwwLcqkDFw24ILoDyGjLZzG-sy_b3C7I9bTxGeDTyqk1-hakg_S9_rzIorkHrMD4wJpXaeSsAbMUMb-z8VNvzdNKCOtRHZ_8pM-FaLt8Fp5rLa9XwHZ4z_37eyjF3e5BVIB_2kvaiRGcQ0I=",logo_url:"https://picsum.photos/64/64",extra_info:{category:"SVOD"}},{sid:"plxWzpK",slug:"netflix",name:"Netflix",url:"https://out.playpilot.com/playlink/gAAAAABnReWk_jqQh4e6vBNNqD0rl4fafWJGUBj939o2z4EZB7yWUJ2jq5RpLSPYvD1kRdsj2CXkst0obPR-UYwuBx7_ofbR1aTCOEc8gV40OGChzuRbPmXl4U-OXhrkRMR5KJi0A8vJ2UGQcPBieRTiHovwTDnPO1rRs1jGwwwLcqkDFw24ILoDyGjLZzG-sy_b3C7I9bTxGeDTyqk1-hakg_S9_rzIorkHrMD4wJpXaeSsAbMUMb-z8VNvzdNKCOtRHZ_8pM-FaLt8Fp5rLa9XwHZ4z_37eyjF3e5BVIB_2kvaiRGcQ0I=",logo_url:"https://picsum.photos/seed/2/64/64",extra_info:{category:"RENT"}}],description:"Ten thousand years before the ascension of Paul Atreides, sisters Valya and Tula Harkonnen establish the fabled sect and female order that would become known as the Bene Gesserit to control the future of humankind.",small_poster:"https://img.playpilot.tech/61feb4b0a58f11efb0b50a58a9feac02/src/img?optimizer=image&class=16by9x14",medium_poster:"https://img.playpilot.tech/61feb4b0a58f11efb0b50a58a9feac02/src/img?optimizer=image&class=16by9x40",standing_poster:"https://img.playpilot.tech/6239ee86a58f11efb0b50a58a9feac02/src/img?optimizer=image&class=2by3x18",title:"Dune: Prophecy",original_title:"Dune: Prophecy",embeddable_url:null};var Nu=C("<!> <!> <!>",1),Bu=C('<div data-testid="explore-home"></div> <!> <div style="height: 1000px"></div>',1);function Fu(t,e){$(e,!0);let i=G(null),a=G(null);var r=Bu(),n=I(J(r),2);xa(n,()=>or(Ou),l=>{var s=qt("Loading...");_(l,s)},(l,s)=>{var c=ve(),d=J(c);{var u=p=>{var v=Nu(),f=J(v);ur(f,{heading:"Some titles",get titles(){return o(s)},expandable:!0,get expandedTitle(){return o(i)},set expandedTitle(x){q(i,x,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(x){q(a,x,!0)}});var m=I(f,2);{var b=x=>{{let w=H(()=>or(o(s)[1]));ur(x,{heading:"Some other titles",get titles(){return o(w)},expandable:!0,get expandedTitle(){return o(i)},set expandedTitle(k){q(i,k,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(k){q(a,k,!0)}})}};F(m,x=>{o(s)[1]&&x(b)})}var g=I(m,2);{var y=x=>{{let w=H(()=>or(o(s)[5]));ur(x,{heading:"Some more titles",get titles(){return o(w)},expandable:!0,get expandedTitle(){return o(i)},set expandedTitle(k){q(i,k,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(k){q(a,k,!0)}})}};F(g,x=>{o(s)[5]&&x(y)})}_(p,v)};F(d,p=>{o(s)&&p(u)})}_(l,c)}),_(t,r),ee()}var Vu=C("<button><!></button>");function zi(t,e){const i=O(e,"variant",3,"filled"),a=O(e,"size",3,"base"),r=O(e,"label",3,null),n=O(e,"active",3,!1);var l=Vu();let s;l.__click=function(...d){var u;(u=e.onclick)==null||u.apply(this,d)};var c=T(l);qe(c,()=>e.children??ut),U(()=>{s=me(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",s,{active:n()}),ae(l,"aria-label",r())}),_(t,l)}ce(["click"]);var Hu=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Uu(t,e){$(e,!0);const i=O(e,"size",3,30),a=O(e,"onclick",3,()=>null),r=H(()=>e.playlink.name),n=H(()=>e.playlink.url),l=H(()=>e.playlink.logo_url),s=H(()=>e.playlink.pixels);var c=Hu();c.__click=function(...f){var m;(m=a())==null||m.apply(this,f)};let d;var u=T(c),p=I(u,2);{var v=f=>{yn(f,{get pixels(){return o(s)}})};F(p,f=>{var m;(m=o(s))!=null&&m.length&&f(v)})}U(f=>{ae(c,"href",o(n)),ae(c,"data-playlink",o(r)),d=Oe(c,"",d,{"--size":`${i()??""}px`}),ae(u,"src",f),ae(u,"alt",o(r)),ae(u,"height",i()),ae(u,"width",i())},[()=>nr(o(l))]),_(t,c),ee()}ce(["click"]);var Wu=C('<span class="more svelte-1plv45z"> </span>'),Gu=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Ku=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Mo(t,e){$(e,!0);const i=O(e,"size",3,30),a=H(()=>Po(e.playlinks).slice(0,3));function r(p){p.stopPropagation()}var n=Ku(),l=T(n);Ee(l,17,()=>o(a),Ce,(p,v)=>{Uu(p,{get playlink(){return o(v)},onclick:r,get size(){return i()}})});var s=I(l,2);{var c=p=>{var v=Wu(),f=T(v);U(()=>Z(f,`+${e.playlinks.length-o(a).length}`)),_(p,v)};F(s,p=>{e.playlinks.length>o(a).length&&p(c)})}var d=I(s,2);{var u=p=>{var v=Gu();_(p,v)};F(d,p=>{e.playlinks.length||p(u)})}_(t,n),ee()}var Yu=C("<div>Series</div>"),Zu=C("<div> </div>"),Ju=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 Xu(t,e){$(e,!0);const i=O(e,"onclick",3,()=>null);var a=Ju();a.__click=function(...x){var w;(w=i())==null||w.apply(this,x)};var r=T(a),n=T(r);sr(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=I(n,2),s=T(l),c=T(s);bn(c,{size:12});var d=I(c),u=I(s,2);{var p=x=>{var w=Yu();_(x,w)};F(u,x=>{e.title.type==="series"&&x(p)})}var v=I(u,2);{var f=x=>{var w=Zu(),k=T(w);U(()=>Z(k,`${e.title.length??""} min`)),_(x,w)};F(v,x=>{e.title.length&&x(f)})}var m=I(r,2),b=T(m),g=T(b),y=I(b,2);Mo(y,{get playlinks(){return e.title.providers},size:20}),U(()=>{Z(d,` ${e.title.imdb_score||"-"}`),Z(g,e.title.title)}),_(t,a),ee()}ce(["click"]),Ns();var Qu=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 $u(t){var e=Qu(),i=I(T(e),2),a=T(i);Oe(a,"",{},{width:"60%"}),_(t,e)}var ep=C('<div class="svelte-pkkpyl"> </div>'),tp=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 Do(t,e){var D;$(e,!0);const i=O(e,"onclick",3,()=>null),a=!!((D=window.PlayPilotLinkInjections)!=null&&D.no_affiliate);var r=tp();r.__click=function(...P){var S;(S=i())==null||S.apply(this,P)};var n=T(r),l=T(n);sr(l,{get title(){return e.title},width:30,height:43,lazy:!0});var s=I(n,2),c=T(s),d=T(c),u=I(c,2),p=T(u),v=T(p);bn(v,{size:11});var f=I(v),m=I(p,2),b=T(m),g=I(m,2),y=T(g),x=I(g,2);{var w=P=>{var S=ep(),V=T(S);U(()=>Z(V,`${e.title.length??""} min`)),_(P,S)};F(x,P=>{e.title.length&&P(w)})}var k=I(u,2);let M;var E=T(k),z=I(k,2);{var N=P=>{Mo(P,{get playlinks(){return e.title.providers}})};F(z,P=>{a||P(N)})}var A=I(s,2),j=T(A);Bt(j,{}),U(P=>{Z(d,e.title.title),Z(f,` ${e.title.imdb_score||"-"}`),Z(b,e.title.year),Z(y,P),M=me(k,1,"description svelte-pkkpyl",null,M,{large:a}),Z(E,e.title.description)},[()=>te(`Type: ${e.title.type}`)]),_(t,r),ee()}ce(["click"]);var ip=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 ap(t){var e=ip(),i=I(T(e),2),a=T(i);Oe(a,"",{},{width:"40%"});var r=I(a,2);Oe(r,"",{},{width:"60%"});var n=I(r,2);Oe(n,"",{},{width:"80%"}),_(t,e)}const rp=[{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 np(){const t=ci();if(!t)throw new Error("No token was provided");const e={region:await _n(),page:1,include_count:"false"};return await Qt(`/providers/?api-token=${t}&`+sn(e))}function lp(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=E=>Math.sqrt(E)*120,easing:l=qd}=a,s=getComputedStyle(t),c=s.transform==="none"?"":s.transform,[d,u]=s.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var p=op(t),v=t.clientWidth/i.width/p,f=t.clientHeight/i.height/p,m=e.left+e.width*d,b=e.top+e.height*u,g=i.left+i.width*d,y=i.top+i.height*u,x=(m-g)*v,w=(b-y)*f,k=e.width/i.width,M=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(x*x+w*w)):n,easing:l,css:(E,z)=>{var N=z*x,A=z*w,j=E+z*k,D=E+z*M;return`transform: ${c} translate(${N}px, ${A}px) scale(${j}, ${D});`}}}function op(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 sp=C('<div class="icon svelte-dfwzqz"> </div>'),cp=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),dp=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 up(t,e){$(e,!0);let i=O(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=O(e,"selected",23,()=>[]),r=O(e,"placeholder",19,()=>`${te("Search")}...`),n=O(e,"onchange",3,()=>null),l=G("");const s=H(c);function c(){var m;return(m=i())!=null&&m.length?o(l)?i().filter(({label:b})=>b.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(m){const b=a().find(g=>g===m);a(b?a().filter(g=>g!==m):[...a(),m]),n()(a())}var u=dp(),p=J(u),v=T(p),f=I(p,2);Ee(f,29,()=>o(s)||[],({label:m,value:b})=>b,(m,b)=>{let g=()=>o(b).label,y=()=>o(b).value;const x=H(()=>!!a().find(A=>A===y()));var w=cp(),k=T(w);let M;k.__click=()=>d(y());var E=T(k),z=I(E),N=T(z);Xi(N,()=>o(x),A=>{var j=sp(),D=T(j);U(()=>Z(D,o(x)?"-":"+")),ze(3,j,()=>ea,()=>({start:.25,duration:100})),_(A,j)}),U(()=>{M=me(k,1,"option svelte-dfwzqz",null,M,{active:o(x)}),Z(E,`${g()??""} `)}),Rc(w,()=>lp,()=>({duration:150})),_(m,w)}),U(()=>ae(v,"placeholder",r())),Za(v,()=>o(l),m=>q(l,m)),_(t,u),ee()}ce(["click"]);var pp=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),vp=C("<div><!> <!></div>");function qo(t,e){$(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),s=G(0);function c(b){const g=b.target;g&&g.closest(".dropdown")!==o(a)&&q(i,!1)}function d(b){q(i,!o(i)),o(i)&&(q(s,0),q(l,0),u(b.target))}async function u(b){if(await ba(),!o(r))return;const g=16,y=200,x=window.innerHeight,w=window.innerWidth,{top:k}=o(r).getBoundingClientRect(),{left:M}=b.getBoundingClientRect();q(n,M<window.innerWidth/2?"left":"right",!0),q(l,Math.max(Math.min(window.innerHeight-k-g,x*.6),y),!0),await ba();const{left:E,right:z}=o(r).getBoundingClientRect(),N=w-z;E-g<0?q(s,N):N-g<0&&q(s,N-g)}var p=vp();ye("click",Ae,c);var v=T(p);qe(v,()=>e.button,()=>({toggle:d}));var f=I(v,2);{var m=b=>{var g=pp();let y;var x=T(g);qe(x,()=>e.content),$e(g,w=>q(r,w),()=>o(r)),U(()=>y=Oe(g,"",y,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(s)?`${o(s)}px`:null})),ze(3,g,()=>ea,()=>({start:.85,duration:100})),_(b,g)};F(f,b=>{o(i)&&b(m)})}$e(p,b=>q(a,b),()=>o(a)),U(()=>me(p,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),_(t,p),ee()}var fp=C('<span class="label svelte-1mfj6k7"> </span>'),hp=C('<div class="active-line svelte-1mfj6k7"></div>'),gp=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 mp(t,e){$(e,!0);const i=O(e,"range",19,()=>[0,100]),a=O(e,"value",19,i),r=O(e,"label",3,""),n=O(e,"valueAppend",3,""),l=O(e,"formatFunction",3,B=>B.toString()),s=O(e,"onchange",3,()=>null);let c=i(),d=H(()=>Ma(c,2)),u=G(De(o(d)[0])),p=G(De(o(d)[1]));const v=H(()=>o(u)!==i()[0]||o(p)!==i()[1]),f=H(()=>100/(i()[1]-i()[0])*(o(u)-i()[0])),m=H(()=>100+100/(i()[1]-i()[0])*(o(p)-i()[1])-o(f)),b=H(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(u)-o(p))<5);Ue(()=>{g(a())}),Ue(()=>{q(p,Math.max(o(p),o(u)+1),!0),q(p,Math.min(o(p),i()[1]),!0),q(u,Math.min(o(u),o(p)-1),!0),q(u,Math.max(o(u),i()[0]),!0)});function g(B){(R=>{var K=Ma(R,2);q(u,K[0],!0),q(p,K[1],!0)})(B)}function y(){requestAnimationFrame(()=>s()([o(u),o(p)]))}var x=gp(),w=T(x);{var k=B=>{var R=fp(),K=T(R);U((X,Q)=>Z(K,`${r()??""}: ${X??""}—${Q??""} ${n()??""}`),[()=>l()(o(u)),()=>l()(o(p))]),_(B,R)};F(w,B=>{r()&&B(k)})}var M=I(w,2);let E;var z=T(M);z.__mouseup=y,z.__touchend=y,z.__input=function(...B){};let N;var A=I(z,2);A.__mouseup=y,A.__touchend=y,A.__input=function(...B){};let j;var D=I(A,2),P=T(D),S=I(D,2),V=T(S),W=I(S,2);{var Y=B=>{var R=hp();let K;U(()=>K=Oe(R,"",K,{left:o(f)+"%","--width":o(m)+"%"})),_(B,R)};F(W,B=>{o(v)&&B(Y)})}U(()=>{E=me(M,1,"range svelte-1mfj6k7",null,E,{halved:o(b)}),ae(z,"min",i()[0]),ae(z,"max",i()[1]),N=me(z,1,"svelte-1mfj6k7",null,N,{active:o(v)}),ae(A,"min",i()[0]),ae(A,"max",i()[1]),j=me(A,1,"svelte-1mfj6k7",null,j,{active:o(v)}),Z(P,o(u)),Z(V,o(p))}),Za(z,()=>o(u),B=>q(u,B)),Za(A,()=>o(p),B=>q(p,B)),_(t,x),ee()}ce(["mouseup","touchend","input"]);var yp=C(" <!>",1),bp=C('<p class="loading"> </p>'),_p=C('<p class="error"> </p>'),xp=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),wp=C('<div data-testid="filter-item"><!></div>');function kp(t,e){$(e,!0);let i=O(e,"filter",7),a=O(e,"onchange",3,()=>null),r=O(e,"data",7,null),n=O(e,"fetchData",3,null),l=O(e,"range",3,null),s=O(e,"valueAppend",3,"");const c=H(()=>{if(!i()[e.param])return!1;const{type:b,value:g}=i()[e.param];return!(b==="array"&&!g.length||b==="range"&&JSON.stringify(g)===JSON.stringify(l()))});let d=G(!!n());Ue(()=>{!r()&&n()&&u()});async function u(){try{q(d,!0),r(await n()())}catch{pe(ue.ExploreFetchProvidersFailed)}finally{q(d,!1)}}function p(b,g){if(pe(ue.ExploreSetFilter,null,{key:e.param,value:b,total_filter:i()}),!b){delete i()[e.param];return}i()[e.param]={type:g,value:b},a()()}var v=wp();let f;var m=T(v);qo(m,{button:(y,x)=>{let w=()=>x==null?void 0:x().toggle;zi(y,{variant:"border",size:"large",get active(){return o(c)},get onclick(){return w()},children:(k,M)=>{var E=yp(),z=J(E),N=I(z);Bt(N,{direction:"down"}),U(()=>Z(z,`${e.label??""} `)),_(k,E)},$$slots:{default:!0}})},content:y=>{var x=xp(),w=T(x);{var k=A=>{var j=bp(),D=T(j);U(P=>Z(D,`${P??""}...`),[()=>te("Loading")]),_(A,j)},M=A=>{var j=ve(),D=J(j);{var P=S=>{var V=_p(),W=T(V);U(Y=>Z(W,Y),[()=>te("An Error Occurred")]),_(S,V)};F(D,S=>{n()&&!r()&&S(P)},!0)}_(A,j)};F(w,A=>{o(d)?A(k):A(M,!1)})}var E=I(w,2);{var z=A=>{const j=H(()=>{var D;return(D=i()[e.param])==null?void 0:D.value});up(A,{get options(){return r()},get selected(){return o(j)},onchange:D=>p(D,"array")})},N=A=>{var j=ve(),D=J(j);{var P=S=>{const V=H(()=>{var W;return(W=i()[e.param])==null?void 0:W.value});mp(S,{get range(){return l()},get value(){return o(V)},get label(){return e.label},get valueAppend(){return s()},onchange:W=>p(W,"range")})};F(D,S=>{l()&&S(P)},!0)}_(A,j)};F(E,A=>{r()?A(z):A(N,!1)})}_(y,x)},$$slots:{button:!0,content:!0}}),U(()=>f=me(v,1,"filter-item svelte-er0ukh",null,f,{active:o(c)})),_(t,v),ee()}var Sp=C(" <!>",1),Tp=C("<button> </button>"),Ep=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function Pp(t,e){$(e,!0);const i=O(e,"filter",7),a=O(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:"-popularity"},{label:"New",value:"-new"},{label:"Top Rated",value:"-best"}],l=H(()=>{var c;return((c=n.find(({value:d})=>{var u;return d===((u=i()[r])==null?void 0:u.value)}))==null?void 0:c.label)||"Sort By"});function s(c){c?i()[r]={type:"string",value:c}:delete i()[r],a()()}qo(t,{button:(u,p)=>{let v=()=>p==null?void 0:p().toggle;zi(u,{variant:"link",get onclick(){return v()},children:(f,m)=>{var b=Sp(),g=J(b),y=I(g);Bt(y,{direction:"down"}),U(x=>Z(g,`${x??""} `),[()=>te(o(l))]),_(f,b)},$$slots:{default:!0}})},content:u=>{var p=Ep();Ee(p,21,()=>n,Ce,(v,f,m,b)=>{let g=()=>o(f).label,y=()=>o(f).value;const x=H(()=>{var E;return y()===((E=i()[r])==null?void 0:E.value)});var w=Tp();let k;w.__click=()=>s(y());var M=T(w);U(E=>{k=me(w,1,"option svelte-1ibt2k4",null,k,{active:o(x)}),Z(M,E)},[()=>te(g())]),_(v,w)}),_(u,p)},$$slots:{button:!0,content:!0}}),ee()}ce(["click"]);var Cp=ft('<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 zp(t){var e=Cp();_(t,e)}var jp=C("<div><!></div>"),Ip=C("<!> <!>",1),Ap=C('<div class="sorting"><!></div>'),Lp=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function Mp(t,e){$(e,!0);const i=O(e,"onchange",3,()=>null),a=O(e,"limit",3,!0),r=O(e,"showSorting",3,!0),n=3,l=[{label:te("Services"),param:"providers",fetchData:async()=>(await np()).map(g=>({label:g.name,value:g.slug}))},{label:te("Genres"),param:"genres",data:un.map(g=>({label:g.name,value:g.slug}))},{label:te("IMDb"),param:"imdb_score",range:[0,10]},{label:te("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:te("Runtime"),param:"length",range:[0,180],valueAppend:te("Minutes")},{label:te("Countries"),param:"country_codes",data:rp}];let s=G(De(a()));var c=Lp();let d;var u=T(c);Ee(u,21,()=>o(s)?l.slice(0,n):l,Ce,(g,y)=>{var x=jp(),w=T(x);kp(w,ao({get filter(){return e.filter},get onchange(){return i()}},()=>o(y))),ze(3,x,()=>ea,()=>({start:.75,duration:100})),_(g,x)});var p=I(u,2),v=T(p);{var f=g=>{zi(g,{variant:"link",onclick:()=>q(s,!o(s)),children:(y,x)=>{var w=Ip(),k=J(w);zp(k);var M=I(k),E=I(M);{let z=H(()=>o(s)?"down":"up");Bt(E,{get direction(){return o(z)}})}U(z=>Z(M,` ${z??""} `),[()=>te("All Filters")]),_(y,w)},$$slots:{default:!0}})};F(v,g=>{a()&&g(f)})}var m=I(v,2);{var b=g=>{var y=Ap(),x=T(y);Pp(x,{get filter(){return e.filter},get onchange(){return i()}}),ze(3,y,()=>Sa,()=>({x:5,duration:100})),_(g,y)};F(m,g=>{r()&&g(b)})}U(()=>d=me(c,1,"filter svelte-11dg01g",null,d,{limit:a()})),_(t,c),ee()}var Dp=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 qp(t){var e=Dp();_(t,e)}var Rp=C('<div class="filter svelte-qc99of"><!></div>'),Op=C("<div><!></div>"),Np=C("<!> <!>",1),Bp=C("<p>Something went wrong</p>"),Fp=C('<!> <div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function Vp(t,e){$(e,!0);const i=O(e,"searchQuery",3,""),a=De({});let r=G(De([])),n=G(1),l=null,s=0,c=G(De(m())),d=G(0);const u=H(()=>o(d)>500),p=H(()=>o(d)>1400?8:o(d)>900?6:o(d)>600?4:3),v=H(()=>o(u)?Xu:Do),f=H(()=>o(u)?$u:ap);Ue(()=>{i()&&b(i())});async function m(){s+=1;const P=s,S={page_size:24,page:o(n)};i()&&(S.search=i()),Object.entries(a).forEach(([W,{type:Y,value:B}])=>{if(Y==="string")S[W]=B;else if(Y==="array")S[W]=B.join(",");else if(Y==="range"){const[R,K]=B;S[W+"_min"]=R,S[W+"_max"]=K}});const V=await Io(S);return P===s&&q(r,[...o(r),...V.results],!0),V}async function b(P){l&&clearTimeout(l),l=setTimeout(()=>{y(),q(c,m(),!0),P&&(pe(ue.ExploreSearch,null,{query:P}),wt("pixels")&&rr(wa.SearchQuery,{query:P}))},100)}function g(){y(),q(c,m(),!0)}function y(){q(n,1),q(r,[],!0)}function x(){Qs(n),q(c,m(),!0),pe(ue.ExploreShowMore,null,{page:o(n)})}function w(P,S){ei({event:P,data:S}),pe(ue.ExploreTitleClick,S)}var k=Fp(),M=J(k);Xi(M,()=>o(u),P=>{var S=Rp(),V=T(S);{let W=H(()=>!o(u)),Y=H(()=>!i());Mp(V,{get filter(){return a},get limit(){return o(W)},onchange:g,get showSorting(){return o(Y)}})}_(P,S)});var E=I(M,2);let z,N;var A=T(E);Ee(A,17,()=>o(r),Ce,(P,S)=>{var V=ve(),W=J(V);Xi(W,()=>o(S).sid,Y=>{var B=ve(),R=J(B);Wr(R,()=>o(v),(K,X)=>{X(K,{get title(){return o(S)},onclick:Q=>w(Q,o(S))})}),_(Y,B)}),_(P,V)});var j=I(A,2);xa(j,()=>o(c),P=>{var S=ve(),V=J(S);Ee(V,16,()=>({length:24}),Ce,(W,Y)=>{var B=ve(),R=J(B);Wr(R,()=>o(f),(K,X)=>{X(K,{})}),_(W,B)}),_(P,S)},void 0,P=>{});var D=I(E,2);xa(D,()=>o(c),null,(P,S)=>{var V=H(()=>{var{next:Q}=o(S);return{next:Q}}),W=H(()=>o(V).next),Y=Np(),B=J(Y);{var R=Q=>{var oe=Op();let ne;var xe=T(oe);zi(xe,{size:"large",onclick:x,children:(je,Je)=>{var Re=qt();U(de=>Z(Re,de),[()=>te("Show More")]),_(je,Re)},$$slots:{default:!0}}),U(()=>ne=me(oe,1,"show-more svelte-qc99of",null,ne,{grid:o(u)})),_(Q,oe)};F(B,Q=>{o(W)&&Q(R)})}var K=I(B,2);{var X=Q=>{qp(Q)};F(K,Q=>{var oe;!((oe=o(r))!=null&&oe.length)&&o(n)===1&&Q(X)})}_(P,Y)},P=>{var S=Bp();_(P,S)}),U(()=>{z=me(E,1,"titles svelte-qc99of",null,z,{grid:o(u)}),N=Oe(E,"",N,{"--grid-columns":o(p)})}),Nt(E,"clientWidth",P=>q(d,P)),_(t,k),ee()}var Hp=ft('<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 Up(t){var e=Hp();_(t,e)}var Wp=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Gp(t,e){$(e,!0);let i=G("");var a=Wp(),r=T(a),n=T(r);Up(n);var l=I(r,2);l.__input=()=>e.oninput(o(i)),U(s=>ae(l,"placeholder",s),[()=>te("Search Movies And Shows")]),Za(l,()=>o(i),s=>q(i,s)),_(t,a),ee()}ce(["input"]);var Kp=C('<p class="description svelte-l2apr8"> </p>'),Yp=C('<div class="navigation svelte-l2apr8" role="navigation"></div>'),Zp=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>');function Jp(t,e){$(e,!0);let i=O(e,"navigate",3,()=>null),a=O(e,"searchQuery",15,""),r=null,n=G(null);Ue(()=>{var x;q(n,((x=r==null?void 0:r.closest(Oo))==null?void 0:x.style.height)||null,!0)}),ct(async()=>{var x;pe(ue.ExplorePageView),(x=window.PlayPilotLinkInjections.ads)!=null&&x.length||(window.PlayPilotLinkInjections.ads=await wo())});var l=Zp();let s;var c=T(l),d=T(c),u=I(T(d),2),p=T(u);Ot(u,x=>Le==null?void 0:Le(x));var v=I(u,2);{var f=x=>{var w=Kp(),k=T(w);U(M=>Z(k,M),[()=>te("Streaming Guide Description")]),_(x,w)};F(v,x=>{ta()||x(f)})}var m=I(c,2);{var b=x=>{var w=Yp();Ee(w,21,()=>e.routes,Ce,(k,M)=>{{let E=H(()=>e.currentRoute.key===o(M).key);zi(k,{variant:"border",size:"large",get active(){return o(E)},onclick:()=>i()(o(M)),children:(z,N)=>{var A=qt();U(j=>Z(A,j),[()=>te(o(M).label)]),_(z,A)},$$slots:{default:!0}})}}),_(x,w)};F(m,x=>{ta()&&x(b)})}var g=I(m,2);Gp(g,{oninput:x=>a(x)});var y=I(g,2);qe(y,()=>e.children),$e(l,x=>r=x,()=>r),U(x=>{s=Oe(l,"",s,{height:o(n)}),Z(p,x)},[()=>te("Streaming Guide")]),_(t,l),ee()}function Ro(t,e){$(e,!0);const i=[{key:"results",label:"Explore",component:Vp}];ta()&&i.unshift({key:"home",label:"Home",component:Fu});let a=G(De(i[0])),r=G("");const n=H(()=>o(a).component);Ue(()=>{o(r)&&q(a,i.find(s=>s.key==="results"),!0)});function l(s){q(a,s,!0)}Jp(t,{get routes(){return i},get currentRoute(){return o(a)},navigate:l,get searchQuery(){return o(r)},set searchQuery(s){q(r,s,!0)},children:(s,c)=>{var d=ve(),u=J(d);Wr(u,()=>o(n),(p,v)=>{v(p,{get searchQuery(){return o(r)}})}),_(s,d)},$$slots:{default:!0}}),ee()}const Oo="[data-playpilot-explore]",Xp="[data-playpilot-pre-consent-explore]",No="playpilot-explore-custom-style";let dr=null;function Bo(){var e;const t=document.querySelector(Oo);t&&(Fo(),(e=document.querySelector(Xp))==null||e.remove(),t.innerHTML="",dr=Rt(Ro,{target:t}),$p())}function Fo(){var t;dr&&(Zi(dr),dr=null,(t=document.querySelector("#"+No))==null||t.remove())}function Qp(){var c;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;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),s=l.nodeName==="A"?l:l.querySelector("a");return s.classList.remove("active"),s.innerText=i||"Streaming Guide",s.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function $p(){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=No,document.body.appendChild(e)}function ta(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}var ev=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),tv=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),iv=C('<a class="poster svelte-12ph9f6"><!></a>'),av=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a></div>'),rv=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>'),nv=C('<div class="titles"><!></div>');function ur(t,e){$(e,!0);let i=O(e,"heading",3,""),a=O(e,"expandable",3,!1),r=O(e,"expandedTitle",15,null),n=O(e,"expandedRailKey",15,null),l=O(e,"onclick",3,()=>null);const s=an(),d=jr("scope")==="popover"?jr("title"):null;let u=G(null),p=G(null);ct(()=>{a()&&f()});function v(w,k,M){w==null||w.preventDefault();const E=k[M];if(a()&&!g(E)){m(E);return}ta()?ei({event:w,type:"titles-rail",data:k,returnToTitle:d,props:{initialIndex:M}}):ei({event:w,data:E,returnToTitle:d}),l()(E)}async function f(w=500){const k=await e.titles,M=await qu(k);M&&setTimeout(()=>{r()||n()&&n()!==s||m(M)},w)}function m(w){n(s),r(w)}function b(){n()===s||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(E=>E.getBoundingClientRect().top>0).sort((E,z)=>E.getBoundingClientRect().top-z.getBoundingClientRect().top)[0]!==o(u)||(r(null),n(null),f(0))}function g(w){var k;return n()===s&&w.sid===((k=r())==null?void 0:k.sid)}var y=nv();ye("scroll",Ae,b);var x=T(y);xa(x,()=>e.titles,w=>{lr(w,{get heading(){return i()},children:(k,M)=>{var E=ve(),z=J(E);Ee(z,16,()=>({length:12}),Ce,(N,A)=>{var j=rv();_(N,j)}),_(k,E)},$$slots:{default:!0}})},(w,k)=>{var M=ve(),E=J(M);{var z=N=>{lr(N,{get heading(){return i()},onchange:A=>setTimeout(()=>v(null,o(k),A),250),onresize:()=>{var A;return(A=o(p))==null?void 0:A.reposition()},get slider(){return o(p)},set slider(A){q(p,A,!0)},children:(A,j)=>{var D=ve(),P=J(D);Ee(P,17,()=>o(k),Ce,(S,V,W,Y)=>{const B=H(()=>g(o(V))),R=H(()=>Lo(o(V))),K=H(()=>de=>v(de,o(k),W));var X=av();let Q;var oe=T(X),ne=T(oe);{var xe=de=>{var Te=tv(),nt=T(Te);nt.__click=function(...Ge){var lt;(lt=o(K))==null||lt.apply(this,Ge)};var Be=I(nt,2);{var se=Ge=>{wn(Ge,{get embeddable_url(){return o(V).embeddable_url},muted:!0,loop:!0})},et=Ge=>{var lt=ev();U(()=>ae(lt,"src",o(V).medium_poster)),_(Ge,lt)};F(Be,Ge=>{o(V).embeddable_url?Ge(se):Ge(et,!1)})}U(()=>ae(nt,"href",o(R))),ze(2,Te,()=>$t,()=>({delay:200,duration:200})),_(de,Te)},je=de=>{var Te=iv();Te.__click=function(...Be){var se;(se=o(K))==null||se.apply(this,Be)};var nt=T(Te);sr(nt,{get title(){return o(V)},width:96,height:144}),U(()=>ae(Te,"href",o(R))),_(de,Te)};F(ne,de=>{o(B)?de(xe):de(je,!1)})}var Je=I(oe,2);Je.__click=function(...de){var Te;(Te=o(K))==null||Te.apply(this,de)};var Re=T(Je);U(()=>{Q=me(X,1,"title svelte-12ph9f6",null,Q,{expanded:o(B)}),ae(Je,"href",o(R)),Z(Re,o(V).title)}),_(S,X)}),_(A,D)},$$slots:{default:!0}})};F(E,N=>{var A;(A=o(k))!=null&&A.length&&N(z)})}_(w,M)}),$e(y,w=>q(u,w),()=>o(u)),U(()=>ae(y,"data-role",a()?"expandable-rail":null)),_(t,y),ee()}ce(["click"]);function lv(t,e){$(e,!0);const i=or(e.title);{let a=H(()=>te("Similar Titles"));ur(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>pe(ue.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ee()}function ov(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 sv=ft('<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 cv(t){var e=sv();_(t,e)}var dv=ft('<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 uv(t){var e=dv();_(t,e)}var pv=ft('<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 vv(t){var e=pv();_(t,e)}var fv=ft('<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 hv(t){var e=fv();_(t,e)}var gv=C('<button class="svelte-827qd7"><!></button>'),mv=C('<div class="content svelte-827qd7"><!></div>'),yv=C("<div><!> <!></div>");function bv(t,e){const i=O(e,"label",3,""),a=O(e,"align",3,"right");let r=G(!1),n=G(null);function l(f){var b;f.currentTarget===((b=o(n))==null?void 0:b.querySelector("button"))&&f.stopPropagation(),q(r,!o(r))}var s=yv();ye("click",Ae,()=>q(r,!1));var c=T(s);{var d=f=>{var m=ve(),b=J(m);qe(b,()=>e.button,()=>({toggle:l})),_(f,m)},u=f=>{var m=gv();m.__click=l;var b=T(m);hv(b),U(()=>{ae(m,"aria-label",i()),ae(m,"aria-expanded",o(r))}),_(f,m)};F(c,f=>{e.button?f(d):f(u,!1)})}var p=I(c,2);{var v=f=>{var m=mv(),b=T(m);qe(b,()=>e.children),ze(1,m,()=>ea,()=>({duration:50,start:.85})),_(f,m)};F(p,f=>{o(r)&&f(v)})}$e(s,f=>q(n,f),()=>o(n)),U(()=>me(s,1,`context-menu ${a()??""}`,"svelte-827qd7")),_(t,s)}ce(["click"]);var _v=C("<!> ",1),xv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function wv(t,e){$(e,!0);let i=O(e,"url",7);const r=window.innerWidth<Pi&&typeof navigator.share<"u";ct(()=>{i(i()+"?utm_source=tpi")});function n(c,d){if(!r){d(c);return}pe(ue.ShareTitle,null,{title:e.title,url:Ci(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){pe(ue.ShareTitle,null,{title:e.title,url:Ci(),method:"copy"}),ov(i())}function s(){pe(ue.ShareTitle,null,{title:e.title,url:Ci(),method:"email"}),window.location.href=`mailto:?body=${i()}`}bv(t,{button:(d,u)=>{let p=()=>u==null?void 0:u().toggle;zi(d,{onclick:v=>n(v,p()),children:(v,f)=>{var m=_v(),b=J(m);cv(b);var g=I(b);U(y=>Z(g,` ${y??""}`),[()=>te("Share")]),_(v,m)},$$slots:{default:!0}})},children:(d,u)=>{var p=xv(),v=J(p);v.__click=l;var f=T(v);uv(f);var m=I(f),b=I(v,2);b.__click=s;var g=T(b);vv(g);var y=I(g);U((x,w)=>{Z(m,` ${x??""}`),Z(y,` ${w??""}`)},[()=>te("Copy URL"),()=>te("Email")]),_(d,p)},$$slots:{button:!0,default:!0}}),ee()}ce(["click"]);var kv=ft('<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 Sv(t){var e=kv();_(t,e)}var Tv=C("<!> ",1);function Ev(t,e){$(e,!0);function i(){Mu(e.title),pe(ue.TrailerClick,e.title)}zi(t,{onclick:i,children:(a,r)=>{var n=Tv(),l=J(n);Sv(l);var s=I(l);U(c=>Z(s,` ${c??""}`),[()=>te("Watch Trailer")]),_(a,n)},$$slots:{default:!0}}),ee()}var Pv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Cv(t,e){const i=O(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=H(()=>Math.max(o(a),o(r)));var l=Pv(),s=T(l);wn(s,{get embeddable_url(){return i()},muted:!0,loop:!0}),U(()=>Oe(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),Nt(l,"clientWidth",c=>q(a,c)),Nt(l,"clientHeight",c=>q(r,c)),_(t,l)}var zv=C("<div> </div>"),jv=C('<img alt=""/>'),Iv=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 kn(t,e){var Be;$(e,!0);const i=O(e,"small",3,!1),a=O(e,"useVideoBackground",3,!0),r=!!((Be=window.PlayPilotLinkInjections)!=null&&Be.no_affiliate);Ir("title",e.title);const n=H(()=>(!i()||r)&&e.title.description);let l=G(!1),s=G(!1),c=G(!1),d=G(!1);Ue(()=>{a()&&e.title.embeddable_url&&Ao(xn(e.title.embeddable_url)).then(se=>{q(d,se,!0)})});var u=Iv(),p=J(u);let v;var f=T(p),m=T(f);let b;var g=T(m);sr(g,{get title(){return e.title},onload:()=>q(l,!0),lazy:!1});var y=I(m,2);let x;var w=T(y);Ot(y,(se,et)=>Le==null?void 0:Le(se,et),()=>2);var k=I(y,2),M=T(k),E=T(M);bn(E,{});var z=I(E),N=I(M,2);$d(N,{get genres(){return e.title.genres}});var A=I(N,2),j=T(A),D=I(A,2),P=T(D),S=I(D,2);{var V=se=>{var et=zv(),Ge=T(et);U(lt=>Z(Ge,`${e.title.length??""} ${lt??""}`),[()=>te("Minutes")]),_(se,et)};F(S,se=>{!i()&&e.title.length&&se(V)})}var W=I(k,2),Y=T(W);{var B=se=>{Ev(se,{get title(){return e.title}})};F(Y,se=>{e.title.embeddable_url&&se(B)})}var R=I(Y,2);{let se=H(()=>Lo(e.title));wv(R,{get title(){return e.title.title},get url(){return o(se)}})}var K=I(f,2),X=T(K);{var Q=se=>{gu(se,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>pe(ue.ExpandTitleDescription,e.title)})};F(X,se=>{o(n)&&se(Q)})}var oe=I(X,2);{var ne=se=>{pu(se,{get playlinks(){return e.title.providers},get title(){return e.title}})};F(oe,se=>{r||se(ne)})}var xe=I(oe,2);ju(xe,{get title(){return e.title}});var je=I(xe,2);lv(je,{get title(){return e.title}});var Je=I(p,2);let Re;var de=T(Je);{var Te=se=>{Cv(se,{get embeddable_url(){return e.title.embeddable_url}})},nt=se=>{var et=ve(),Ge=J(et);Xi(Ge,()=>o(c),lt=>{var mi=jv();let ie;U(be=>{ae(mi,"src",be),ie=me(mi,1,"svelte-16ajinh",null,ie,{loaded:o(s),blur:o(c)})},[()=>nr(o(c)?e.title.standing_poster:e.title.medium_poster)]),ye("load",mi,()=>q(s,!0)),ye("error",mi,()=>q(c,!0)),_(lt,mi)}),_(se,et)};F(de,se=>{a()&&o(d)?se(Te):se(nt,!1)})}U(se=>{v=me(p,1,"content svelte-16ajinh",null,v,{small:i()}),b=me(m,1,"poster svelte-16ajinh",null,b,{loaded:o(l)}),x=me(y,1,"heading svelte-16ajinh",null,x,{truncate:i()}),Z(w,e.title.title),Z(z,` ${e.title.imdb_score??""}`),Z(j,e.title.year),Z(P,se),Re=me(Je,1,"background svelte-16ajinh",null,Re,{small:i()})},[()=>te(`Type: ${e.title.type}`)]),_(t,u),ee()}function ia(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 Vo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},Sn={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Av({key:t}){var a,r,n;if(!wt("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 Ho(t){const e=Av(t);return Math.floor(e*t.numberOfVariants)}function Lv(t){var i;const e=Ho(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function Mv(t,e=1){return wt("tracking")?Ho(t)===e:!1}function Dv(t){const e=Lv(t);pe(ue.SplitTestView,null,{key:t.key,variant:e})}var qv=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Rv=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Ov=C('<button class="button svelte-1mt6g1y"> </button>'),Nv=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),Bv=C('<div class="background svelte-1mt6g1y"></div>'),Fv=C("<!> <!>",1),Vv=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Uo(t,e){$(e,!0),pe(ue.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),Dv(Sn.TopScrollFormat);const i=H(()=>e.campaign.disclaimer),a=H(()=>e.campaign.content),r=H(()=>e.campaign.cta),n=H(()=>o(a).format),l=H(()=>o(a).header),s=H(()=>o(a).header_logo),c=H(()=>o(a).image_uuid),d=H(()=>o(r).header),u=H(()=>o(r).url),p=H(()=>o(n)==="large"),v=H(()=>Co(o(c),Vo.TopScrollBackground)),f=H(()=>Co(o(c),Vo.TopScrollContent));let m=G(0);function b(){pe(ue.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var g=Vv();g.__click=b;let y,x;var w=T(g),k=T(w);{var M=A=>{var j=qv();U(()=>{ae(j,"src",o(f)),ae(j,"alt",o(l))}),_(A,j)},E=A=>{var j=Nv(),D=J(j);{var P=B=>{var R=Rv();U(()=>ae(R,"src",o(s))),_(B,R)};F(D,B=>{o(s)&&B(P)})}var S=I(D,2),V=T(S),W=I(S,2);{var Y=B=>{var R=Ov(),K=T(R);U(()=>Z(K,o(d))),_(B,R)};F(W,B=>{o(d)&&B(Y)})}U(()=>Z(V,o(l))),_(A,j)};F(k,A=>{o(p)?A(M):A(E,!1)})}var z=I(w,2);{var N=A=>{var j=Fv(),D=J(j);{var P=W=>{var Y=Bv();let B;U(()=>B=Oe(Y,"",B,{"--background":`url('${o(v)??""}')`})),_(W,Y)};F(D,W=>{o(c)&&W(P)})}var S=I(D,2);{var V=W=>{mn(W,{get disclaimer(){return o(i)}})};F(S,W=>{o(i)&&W(V)})}_(A,j)};F(z,A=>{o(p)||A(N)})}Ot(g,(A,j)=>ia==null?void 0:ia(A,j),()=>({onclick:b})),Ti(()=>Nt(g,"clientWidth",A=>q(m,A))),U(()=>{ae(g,"href",o(u)),y=me(g,1,"top-scroll svelte-1mt6g1y",null,y,{simple:o(p)}),x=Oe(g,"",x,{"--width":`${o(m)??""}px`})}),_(t,g),ee()}ce(["click"]);var Hv=C('<div class="content svelte-r7ubzi"><!></div>'),Uv=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function Wv(t,e){let i=G(!1);var a=Uv();a.__touchstart=()=>q(i,!o(i));var r=T(a);qe(r,()=>e.children);var n=I(r,2);{var l=s=>{var c=Hv(),d=T(c);qe(d,()=>e.content),ze(1,c,()=>$t,()=>({duration:100})),_(s,c)};F(n,s=>{o(i)&&s(l)})}ye("mouseenter",a,()=>q(i,!0)),ye("mouseleave",a,()=>q(i,!1)),_(t,a)}ce(["touchstart"]);var Gv=C('<div class="info svelte-qcpiki"><!></div>'),Kv=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),Yv=C('<span class="name svelte-qcpiki"> </span>'),Zv=C('<div class="subheader svelte-qcpiki"> </div>'),Jv=C('<div class="action svelte-qcpiki"> </div>'),Xv=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),Qv=C('<img class="background svelte-qcpiki" alt=""/>'),$v=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 Wo(t,e){$(e,!0);const i=O(e,"compact",3,!1),a=H(()=>e.campaign.disclaimer),r=H(()=>e.campaign.content),n=H(()=>e.campaign.cta),l=H(()=>e.campaign.campaign_type),s=H(()=>o(r).header),c=H(()=>o(r).subheader),d=H(()=>o(r).header_logo),u=H(()=>o(r).image),p=H(()=>o(r).video),v=H(()=>o(n).header),f=H(()=>o(n).url),m=H(()=>o(n).subheader);let b=G(0);pe(ue.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function g(){pe(ue.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var y=tf();let x;y.__click=g;var w=T(y);{var k=P=>{var S=Gv(),V=T(S);{var W=B=>{Wv(B,{content:K=>{var X=qt();U(()=>Z(X,o(m))),_(K,X)},children:(K,X)=>{var Q=qt("Ad");_(K,Q)},$$slots:{content:!0,default:!0}})},Y=B=>{var R=qt();U(()=>Z(R,o(m))),_(B,R)};F(V,B=>{i()?B(W):B(Y,!1)})}_(P,S)};F(w,P=>{o(m)&&P(k)})}var M=I(w,2);{var E=P=>{var S=Xv(),V=T(S);{var W=ne=>{var xe=Kv();U(()=>ae(xe,"src",o(d))),_(ne,xe)};F(V,ne=>{o(d)&&ne(W)})}var Y=I(V,2),B=T(Y);{var R=ne=>{var xe=Yv(),je=T(xe);U(()=>Z(je,o(s))),_(ne,xe)};F(B,ne=>{o(s)&&ne(R)})}var K=I(B,2);{var X=ne=>{var xe=Zv(),je=T(xe);U(()=>Z(je,o(c))),_(ne,xe)};F(K,ne=>{o(c)&&ne(X)})}var Q=I(Y,2);{var oe=ne=>{var xe=Jv(),je=T(xe);U(()=>Z(je,o(v))),_(ne,xe)};F(Q,ne=>{o(v)&&ne(oe)})}Nt(S,"clientHeight",ne=>q(b,ne)),_(P,S)};F(M,P=>{(o(d)||o(s)||o(c)||o(v))&&P(E)})}var z=I(M,2);{var N=P=>{var S=Qv();U(()=>ae(S,"src",o(u))),_(P,S)},A=P=>{var S=ve(),V=J(S);{var W=Y=>{var B=$v();B.muted=!0;var R=T(B);U(()=>ae(R,"src",o(p))),_(Y,B)};F(V,Y=>{o(l)==="video"&&o(p)&&Y(W)},!0)}_(P,S)};F(z,P=>{o(l)==="image"&&o(u)?P(N):P(A,!1)})}var j=I(z,2);{var D=P=>{var S=ef();let V;var W=T(S);mn(W,{get disclaimer(){return o(a)}}),U(()=>V=Oe(S,"",V,{"--offset":`${o(b)??""}px`})),_(P,S)};F(j,P=>{o(a)&&P(D)})}Ot(y,(P,S)=>ia==null?void 0:ia(P,S),()=>({onclick:g})),U(()=>{ae(y,"href",o(f)),x=me(y,1,"display svelte-qcpiki",null,x,{compact:i()})}),_(t,y),ee()}ce(["click"]);var af=C('<button class="call-to-action svelte-1677ll3"><div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></button>');function rf(t,e){$(e,!1),$r();var i=af();i.__click=()=>ei({type:"explore"});var a=I(T(i),2),r=T(a);Bt(r,{}),_(t,i),ee()}ce(["click"]);function nf(t,e){var p,v;$(e,!0);const i=f=>{var m=ve(),b=J(m);{var g=x=>{Uo(x,{get campaign(){return l}})},y=x=>{rf(x,{})};F(b,x=>{l?x(g):x(y,!1)})}_(f,m)},a=f=>{var m=ve(),b=J(m);{var g=y=>{Wo(y,{get campaign(){return s}})};F(b,y=>{s&&y(g)})}_(f,m)},r=O(e,"initialScrollPosition",3,0),n=io(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=ka("top_scroll"),s=ka("card"),c=(v=(p=window.PlayPilotLinkInjections)==null?void 0:p.config)==null?void 0:v.explore_insert_cta_in_tpi;let d=!1;pe(ue.TitleModalView,e.title),ct(()=>{const f=Date.now();return()=>pe(ue.TitleModalClose,e.title,{time_spent:Date.now()-f})});function u(){d||(pe(ue.TitleModalScroll,e.title),d=!0)}{let f=H(()=>l||c?i:null),m=H(()=>s?a:null);ar(t,{onscroll:u,get initialScrollPosition(){return r()},get bubble(){return o(f)},get prepend(){return o(m)},tall:!0,children:(b,g)=>{kn(b,ao({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}ee()}var lf=C(" <strong> </strong>",1),of=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),sf=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),cf=C('<button class="more svelte-ke01cs"> </button>'),df=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 uf(t,e){$(e,!0);const i=H(()=>e.participant.name),a=H(()=>e.participant.birth_date),r=H(()=>e.participant.death_date),n=30;let l=G(De([])),s=G(1),c=G(!0),d=G(!0);ct(p),wt("pixels")&&rr(wa.ParticipantView,{participant:e.participant.name});function u(j){return new Date(j).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function p(){q(d,!0);try{const j=await bu(e.participant,{page:o(s)});q(l,[...o(l),...j],!0),q(c,(j==null?void 0:j.length)>=n)}catch{q(c,!1)}finally{q(d,!1),q(s,o(s)+1)}}var v=df(),f=J(v),m=T(f),b=T(m);Ot(m,(j,D)=>Le==null?void 0:Le(j,D),()=>2);var g=I(m,2);{var y=j=>{var D=of(),P=T(D),S=I(P),V=T(S),W=I(S);{var Y=B=>{var R=lf(),K=J(R),X=I(K),Q=T(X);U((oe,ne)=>{Z(K,`, ${oe??""} `),Z(Q,ne)},[()=>te("Died On"),()=>u(o(r))]),_(B,R)};F(W,B=>{o(r)&&B(Y)})}U((B,R)=>{Z(P,`${B??""} `),Z(V,R)},[()=>te("Born On"),()=>u(o(a))]),_(j,D)};F(g,j=>{o(a)&&j(y)})}var x=I(f,2),w=T(x),k=T(w);Ot(w,(j,D)=>Le==null?void 0:Le(j,D),()=>3);var M=I(w,2),E=T(M);Ee(E,17,()=>o(l),Ce,(j,D)=>{Do(j,{get title(){return o(D)},onclick:P=>ei({event:P,data:o(D)})})});var z=I(E,2);{var N=j=>{var D=ve(),P=J(D);Ee(P,16,()=>({length:6}),Ce,(S,V)=>{var W=sf();_(S,W)}),_(j,D)},A=j=>{var D=ve(),P=J(D);{var S=V=>{var W=cf();W.__click=p;var Y=T(W);U(B=>Z(Y,B),[()=>te("Show More")]),_(V,W)};F(P,V=>{o(c)&&V(S)},!0)}_(j,D)};F(z,j=>{o(d)?j(N):j(A,!1)})}U(j=>{Z(b,o(i)),Z(k,j)},[()=>te("Credits")]),_(t,v),ee()}ce(["click"]);function pf(t,e){$(e,!0);const i=O(e,"initialScrollPosition",3,0);let a=G(0);pe(ue.ParticipantModalView,null,{participant:e.participant.name}),ct(()=>{const r=Date.now();return()=>pe(ue.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),ar(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{uf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),Qr("innerWidth",r=>q(a,r,!0)),ee()}var vf=C('<div class="content svelte-16hba4m"><!></div>');function ff(t,e){const i=O(e,"initialScrollPosition",3,0);ar(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=vf(),l=T(n);Ro(l,{}),_(a,n)},$$slots:{default:!0}})}function hf(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 gf=ft('<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 mf(t){var e=gf();_(t,e)}var yf=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),bf=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),_f=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),xf=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function wf(t,e){$(e,!0),Ir("scope","popover");const i=e.bubble&&Mv(Sn.TopScrollFormat,1),a=H(()=>({duration:hn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),s=G(!1),c=G(0),d=G(0),u=G(0);ct(async()=>{await ba(),p(),await f(),e.append&&requestAnimationFrame(()=>{v(),f()}),await ba(),b()});function p(){if(!o(r))return;const{top:D,right:P,bottom:S,height:V}=o(r).getBoundingClientRect(),W=m();q(n,D-W<0&&window.innerHeight-S>D+V,!0);const Y=window.innerWidth-P-W;P+W>window.innerWidth&&(o(r).style.left=`${Y}px`)}function v(){q(l,o(c)>450)}async function f(){if(q(u,0),await new Promise(B=>requestAnimationFrame(B)),!o(r))return;const{top:D,height:P}=o(r).getBoundingClientRect(),S=m(),V=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,W=o(l)?o(d)+V:0,Y=o(n)?window.innerHeight-D-S-W:D+P-W-S;q(u,Math.min(Y,window.innerHeight*.8),!0)}function m(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function b(){var W;if(!((W=o(r))!=null&&W.firstChild))return;const D=o(r).firstChild,{offsetHeight:P,scrollHeight:S,scrollTop:V}=D;S<=P?q(s,!1):q(s,V+P<S)}var g=xf();let y,x;var w=T(g),k=T(w);qe(k,()=>e.children);var M=I(k,2);{var E=D=>{var P=yf(),S=T(P),V=T(S);mf(V),ze(3,P,()=>$t,()=>({duration:100})),_(D,P)};F(M,D=>{o(s)&&D(E)})}var z=I(w,2);{var N=D=>{var P=bf(),S=T(P);qe(S,()=>e.bubble),ze(7,P,()=>Sa,()=>o(a)),_(D,P)};F(z,D=>{e.bubble&&D(N)})}var A=I(z,2);{var j=D=>{var P=_f(),S=T(P);qe(S,()=>e.append),ze(7,P,()=>Sa,()=>o(a)),Nt(P,"clientHeight",V=>q(d,V)),_(D,P)};F(A,D=>{e.append&&o(l)&&D(j)})}$e(g,D=>q(r,D),()=>o(r)),U(()=>{y=me(g,1,"popover svelte-wxwoko",null,y,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),x=Oe(g,"",x,{"--max-height":o(u)?o(u)+"px":null})}),ye("scroll",w,b),ze(7,w,()=>Sa,()=>o(a)),Nt(g,"clientHeight",D=>q(c,D)),_(t,g),ee()}var kf=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Sf(t,e){$(e,!0);const i=u=>{var p=ve(),v=J(p);{var f=m=>{Uo(m,{get campaign(){return r}})};F(v,m=>{r&&m(f)})}_(u,p)},a=u=>{var p=ve(),v=J(p);{var f=m=>{Wo(m,{get campaign(){return n},compact:!0})};F(v,m=>{n&&m(f)})}_(u,p)},r=ka("top_scroll"),n=ka("card");let l=G(null);pe(ue.TitlePopoverView,e.title),ct(()=>{s();const u=Date.now();return()=>pe(ue.TitlePopoverClose,e.title,{time_spent:Date.now()-u})});function s(){const u=e.event.target;if(!(u!=null&&u.getClientRects))return;const p=Array.from(u.getClientRects()),f=p.map(b=>b.x).map(b=>Math.abs(b-e.event.clientX)),m=p[f.indexOf(Math.min(...f))];o(l).style.top=m.top+window.scrollY+"px",o(l).style.left=m.left+window.scrollX+"px",o(l).style.height=m.height+"px"}var c=kf(),d=T(c);{let u=H(()=>n?a:null),p=H(()=>r?i:null);wf(d,{get append(){return o(u)},get bubble(){return o(p)},children:(v,f)=>{kn(v,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}$e(c,u=>q(l,u),()=>o(l)),_(t,c),ee()}let pr=null,ji=null;function Tf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;ji&&vr();const i=t.currentTarget;pr=i,setTimeout(()=>{pr===i&&(ji=Rt(Sf,{target:zn(),props:{event:t,title:e.title_details}}))},100)}async function vr(t=!0){if(ji){const e=Zi(ji,{outro:t});pr=null,ji=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Ef(t){if(!ji)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(ui)||e.closest(ti)||vr()}function Pf(){pr=null}function Cf(){return!!ji}var zf=C('<div class="content svelte-c2erhr"><!></div>'),jf=C("<div><!></div>"),If=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Af=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Lf=C("<!> <!>",1),Mf=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Df(t,e){$(e,!0);const i=O(e,"initialIndex",3,0),a=300;let r,n=G(!1);ct(()=>{setTimeout(()=>{r==null||r.setIndex(i()),requestAnimationFrame(()=>q(n,!0))})}),ar(t,{blur:!0,dialog:s=>{var c=Mf(),d=J(c);Oe(d,"",{},{"--transition-duration":"300ms"});var u=T(d);{const f=(g,y)=>{let x=()=>y==null?void 0:y().currentIndex;var w=ve(),k=J(w);Ee(k,17,()=>e.items,Ce,(M,E,z)=>{var N=jf();let A;N.__click=()=>r.setIndex(z);var j=T(N);{var D=P=>{var S=zf(),V=T(S);qe(V,()=>e.each,()=>o(E),x),ze(3,S,()=>$t,()=>({duration:o(n)?a:0})),_(P,S)};F(j,P=>{(Math.abs(z-x())===1||x()===z)&&P(D)})}U(()=>A=me(N,1,"item svelte-c2erhr",null,A,{active:z===x()})),_(M,N)}),_(g,w)},m=(g,y)=>{let x=()=>y==null?void 0:y().setIndex,w=()=>y==null?void 0:y().currentIndex,k=()=>y==null?void 0:y().reachedEnd;var M=Lf(),E=J(M);{var z=j=>{var D=If();D.__click=()=>x()(w()-1);var P=T(D);Bt(P,{size:21,direction:"left",title:"Previous"}),_(j,D)};F(E,j=>{w()>0&&j(z)})}var N=I(E,2);{var A=j=>{var D=Af();D.__click=()=>x()(w()+1);var P=T(D);Bt(P,{size:21,title:"Next"}),_(j,D)};F(N,j=>{k()||j(A)})}_(g,M)};let b=H(()=>o(n)?a:0);$e(jo(u,{threshold:40,moveThreshold:40,get transitionDuration(){return o(b)},children:f,controls:m,$$slots:{default:!0,controls:!0}}),g=>r=g,()=>r)}var p=I(d,2),v=T(p);fn(v,{size:"42px",onclick:()=>En(),"aria-label":"Close",children:(f,m)=>{vn(f,{size:24})},$$slots:{default:!0}}),ze(7,p,()=>ea),_(s,c)},$$slots:{dialog:!0}}),ee()}ce(["click"]);function qf(t,e){$(e,!0);const i=O(e,"initialIndex",3,0);Df(t,{get items(){return e.titles},get initialIndex(){return i()},each:(r,n=ut,l=ut)=>{{let s=H(()=>{var c;return n().sid===((c=e.titles[l()])==null?void 0:c.sid)});kn(r,{get title(){return n()},get useVideoBackground(){return o(s)}})}},$$slots:{each:!0}}),ee()}const Ze=[];function ei({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&yo(e))return;e==null||e.preventDefault(),Ze!=null&&Ze.length&&Tn();const s=zn(),c={initialScrollPosition:r,...l},d=Rf({type:t,target:s,data:a,props:c});n&&Go({type:t,injection:i,data:n}),Go({type:t,injection:i,data:a,scrollPosition:r,component:d})}function Rf({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Rt(pf,{target:e,props:{participant:i,...a}}):t==="explore"?Rt(ff,{target:e,props:{...a}}):t==="titles-rail"?Rt(qf,{target:e,props:{titles:i,...a}}):Rt(nf,{target:e,props:{title:i,...a}})}function Go({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){Ze.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function Tn(t=!0){Ze.length&&(Bf(),Zi(Ze[Ze.length-1].component,{outro:t}))}function Of(t=!0){Tn(t),Ze.pop()}function En(t=!0){for(Tn(t);Ze.length>0;)Ze.pop()}function Ko(){return Ze[Ze.length-2]||null}function Nf(){if(Ze.length<2)return;Of();const t=Ze.pop();t&&ei({...t})}function Bf(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Pi?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(Ze[Ze.length-1].scrollPosition=e.scrollTop)}function Ff(t,e){if(yo(t))return;let i=t.target;if(!i||(i.hasAttribute(ui)||(i=i.closest(ti)),!i))return;const a=i.getAttribute(ui);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),hf(()=>{vr(!1),ei({event:t,injection:r,data:r.title_details})},!hn.current&&window.innerWidth>=Pi&&!window.matchMedia("(pointer: coarse)").matches))}var Vf=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),Hf=C('<!> <a target="_blank"> </a>',1),Uf=C(" <!>.",1),Wf=C("<!> <br/>",1),Gf=C(" <br/>",1),Kf=C('<span class="svelte-1to4glm"><!></span>'),Yf=C('<p class="svelte-1to4glm"></p>');function Zf(t,e){$(e,!0);const i=O(e,"onclickmodal",3,()=>null);function a(c,d){pe(ue.AfterArticlePlaylinkClick,c,{playlink:d})}function r(c,d,u){pe(ue.AfterArticleModalButtonClick,d),i()(c,u)}var n=ve(),l=J(n);{var s=c=>{var d=Yf();Ee(d,21,()=>e.linkInjections,Ce,(u,p)=>{const v=H(()=>{const{key:x,title:w,title_details:k,after_article_style:M}=o(p);return{key:x,title:w,title_details:k,after_article_style:M}}),f=H(()=>{var x;return((x=o(v).title_details)==null?void 0:x.providers)||[]});var m=Kf(),b=T(m);{var g=x=>{var w=Wf(),k=J(w);{var M=z=>{var N=Vf(),A=J(N),j=I(A);j.__click=S=>S.stopPropagation();var D=T(j);D.__click=S=>r(S,o(v).title_details,o(p));var P=T(D);U((S,V)=>{Z(A,`"${o(v).title??""}" ${S??""} `),Z(P,V)},[()=>te("Is Available To Stream"),()=>te("View Streaming Options")]),_(z,N)},E=z=>{var N=Uf(),A=J(N),j=I(A);Ee(j,17,()=>o(f),Ce,(D,P,S)=>{let V=()=>o(P).name,W=()=>o(P).url;var Y=Hf(),B=J(Y);{var R=Q=>{var oe=qt();U(ne=>Z(oe,ne),[()=>S===o(f).length-1?`, ${te("And")}`:","]),_(Q,oe)};F(B,Q=>{S&&Q(R)})}var K=I(B,2);K.__click=()=>a(o(v).title_details,V());var X=T(K);U(()=>{ae(K,"href",W()),Z(X,V())}),_(D,Y)}),U(D=>Z(A,`"${o(v).title??""}" ${D??""} `),[()=>te("Is Available To Stream On")]),_(z,N)};F(k,z=>{o(v).after_article_style==="modal_button"?z(M):z(E,!1)})}_(x,w)},y=x=>{var w=Gf(),k=J(w);U(M=>Z(k,`"${o(v).title??""}" ${M??""} `),[()=>te("Title Unavailable Suffix")]),_(x,w)};F(b,x=>{o(f).length?x(g):x(y,!1)})}U(()=>ae(m,"data-playpilot-injection-key",o(v).key)),_(u,m)}),_(c,d)};F(l,c=>{e.linkInjections.length&&c(s)})}_(t,n),ee()}ce(["click"]);let Ta=null;function Jf(t,e){var l,s;if(Ta||!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=((s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),Ta=Rt(Zf,{target:i,props:{linkInjections:e,onclickmodal:(c,d)=>ei({event:c,injection:d,data:d.title_details})}})}function Xf(){var t;Ta&&(Zi(Ta),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Ta=null)}var Qf=C('<p class="svelte-1epbbn0"> </p>');function $f(t,e){$(e,!1),$r();var i=Qf(),a=T(i);U(r=>Z(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)||te("In-Text Disclaimer")}]),_(t,i),ee()}let Ea=null;function eh(t){var n,l,s,c,d,u;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||Ea)return;const e=document.createElement("div"),i=(c=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:c.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),Ea=Rt($f,{target:e})}function th(){var t;Ea&&(Zi(Ea),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Ea=null)}const ui="data-playpilot-injection-key",ti=`[${ui}]`;function ih(t,e={aiInjections:[],manualInjections:[]}){Cn(),sh();const i=ch(e);if(!i.length)return[];const a=di(t.map(d=>d.innerText).join(" ")),n=uh(i).filter(d=>a.includes(di(d.sentence))),l={};let s=-1;for(const d of vh(n)){s++;const u=t.findIndex(k=>di(k.innerText).includes(di(d.sentence))),p=t[u];if(!p)continue;const v=fo(d.title,p,["A"]);if(!(v!=null&&v.nodeValue)||ho(v)){const k=fo(d.title,p);if(k&&ho(k)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:f,linkElement:m}=ah(d);let b=-1,g=!1;er(p.innerHTML,d.title)===1&&(b=p.innerHTML.indexOf(d.title));const{phrase_before:x,phrase_after:w}=rh(p,d);if(b===-1&&(x||w)){const k=[x,d.title,w].filter(Boolean).join(" ");if(b=p.innerHTML.indexOf(k),b===-1){const M=ud(p.innerHTML,d.title,x||"",w||"");if(M){const{leadingSpaces:E,trailingSpaces:z}=pd(M.match);m.innerHTML=M.match.trim();const N=M.index+E,A=M.index+M.match.length-z;if(p.innerHTML.slice(N,A).includes("href="))continue;Pn(p.innerHTML,d.title,p,f,N,A)&&(b=M.index,g=!0)}}}if(b===-1&&(v!=null&&v.nodeValue)){const k=p.innerHTML.indexOf(v.nodeValue),M=p.innerHTML.indexOf(d.sentence),E=M===-1?p.innerHTML.indexOf(d.sentence.slice(0,20)):-1,z=d.sentence.split(" ")[0],A=er(p.innerHTML,z)===1?p.innerHTML.indexOf(z):-1,j=rd(n.slice(0,s+1),d,["title","sentence"])-1,D=vd(v.nodeValue,p,j);b=Math.max(k,E,D,A,M,0)}if(b!==-1&&!g&&!Pn(p.innerHTML,d.title,p,f,b)){const k=hd(d.title,p.innerHTML);k>-1?Pn(p.innerHTML,d.title,p,f,k):l[d.key]="Injection would have lead to broken HTML."}}lh(n),nh();const c=ph(i);return c.length&&Jf(t,c),document.querySelector(ti)&&eh(t),i.filter(d=>d.title_details).map((d,u)=>{const p=!d.manual&&fh(d,u,i),v=d.duplicate??p;v&&(l[d.key]=p?"Injection was manually removed.":"Injection was marked as duplicate.");const f=document.querySelector(`[${ui}="${d.key}"]`),m=Zo(d)&&!d.inactive&&!d.removed&&!d.after_article&&!f,b=n.find(y=>y.key===d.key),g=m?l[d.key]||(b?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:v,failed:m,failed_message:g}})}function ah(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 Pn(t,e,i,a,r,n=-1){const l=u=>Array.from(u.querySelectorAll(`a, ${ti}`)).filter(p=>!p.innerText).length,s=document.createElement("div");s.innerHTML=t;const c=l(s),d=s.innerText;return n>0?s.innerHTML=sd(t,a.outerHTML,r,n):s.innerHTML=od(t,e,a.outerHTML,r),Math.abs(s.innerText.length-d.length)>1||c!=l(s)?!1:(i.innerHTML=s.innerHTML,!0)}function rh(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(er(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=cd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function nh(){const t=Array.from(document.querySelectorAll(`${ti} 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 lh(t){window.addEventListener("mousemove",Ef),window.addEventListener("click",i=>Ff(i,t)),document.querySelectorAll(ti).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{Cf()||Tf(n,r)}),i.addEventListener("mouseleave",Pf))})}function Cn(){document.querySelectorAll(ti).forEach(e=>oh(e.getAttribute(ui)||"")),Xf(),th(),En(!1),vr(!1)}function oh(t){var r;const e=document.querySelector(`[${ui}="${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 sh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ti)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function ch({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function dh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Yo(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&Zo(t)}function Zo(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function uh(t){return Jo(t).filter(e=>e.in_text!==!1&&Yo(e))}function ph(t){return Jo(t).filter(e=>e.after_article===!0&&Yo(e))}function Jo(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)&&Xo(i,e)))}function vh(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 fh(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&Xo(a,t))}function Xo(t,e){return t.title===e.title&&di(t.sentence)===di(e.sentence)}function zn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function hh(){const t=ci();if(!t)throw new Error("No token was provided");try{return await await Qt(`/domains/config?api-token=${t}`)||null}catch{return null}}ce(["click"]),ce(["input"]),ce(["click"]),ce(["click"]),ce(["click"]),ce(["mousedown","touchstart"]),ce(["mousedown","touchstart"]),ce(["click"]),ce(["click"]),ce(["click"]),ce(["click"]),ce(["click"]),ce(["click"]);function gh(t,e){$(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,s)=>{if(!s)return;const{purpose:c,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const u=p=>c.consents[p]===!0;gd({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()}ee()}var mh=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),yh=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),bh=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),_h=C('<button class="svelte-1tp7i1s"></button>'),xh=C("<small>You are using the beta version of TPI</small>"),wh=C('<button class="svelte-1tp7i1s">Use beta script</button>'),kh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Sh=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> <!> <!></div>');function Th(t,e){$(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(De(c())),l=G(!1),s=null;en(()=>{s&&clearInterval(s)});function c(){var k,M,E,z,N,A;const g=window.PlayPilotLinkInjections,y=((k=g.evaluated_link_injections)==null?void 0:k.filter(j=>!j.failed))||[],x=((M=g.evaluated_link_injections)==null?void 0:M.filter(j=>j.failed))||[],w=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:g.domain_sid},{label:"Organization",data:g.organization_sid},{label:"HTML selector",data:g.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([j,D])=>({label:j,data:D})),[`Succesful injections (${y.length})`]:y.map(j=>({label:j.title,data:j.sentence})),[`Failed injections (${x.length})`]:x.map(j=>({label:j.title,data:`Reason: ${j.failed_message} | Sentence: ${j.sentence}`})),[`Fetched ads (${((E=g.ads)==null?void 0:E.length)||0})`]:(z=g.ads)==null?void 0:z.map(j=>({label:j.campaign_name,data:j})),[`Tracking events (${((N=g.tracked_events)==null?void 0:N.length)||0})`]:(A=g.tracked_events)==null?void 0:A.map(j=>({label:j.event,data:j.payload})),[`Visible pixels (${w.length})`]:w.map((j,D)=>({label:D+1,data:j.src}))}}function d(g){o(l)||(a.push(g.key),q(l,i.some(y=>a.slice(a.length-y.length,a.length).join("")===y),!0),s=setInterval(()=>q(n,c(),!0),200))}function u(g){window.PlayPilotLinkInjections.ads.unshift({campaign_format:g,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function p(g){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(Sn).forEach(({key:y,numberOfVariants:x})=>{const w=1/x;window.PlayPilotLinkInjections.split_test_identifiers[y]=Math.min(w*g,1)})}function v(){var x,w;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(w=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||w.call(x);const y=document.createElement("script");for(const k of g.attributes)y.setAttribute(k.name,k.value);y.getAttribute("onload")||y.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),y.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",y),g.remove()}var f=ve();ye("keydown",Ae,d);var m=J(f);{var b=g=>{var y=Sh(),x=I(T(y),4);{var w=Y=>{var B=mh();_(Y,B)};F(x,Y=>{var B,R,K;(B=window.PlayPilotLinkInjections.config)!=null&&B.exclude_urls_pattern&&Ci().match((K=(R=window.PlayPilotLinkInjections)==null?void 0:R.config)==null?void 0:K.exclude_urls_pattern)&&Y(w)})}var k=I(x,2);Ee(k,17,()=>Object.entries(o(n)),Ce,(Y,B)=>{var R=H(()=>Ma(o(B),2));let K=()=>o(R)[0],X=()=>o(R)[1];var Q=bh(),oe=T(Q),ne=T(oe),xe=I(oe,2);{var je=Re=>{var de=ve(),Te=J(de);{var nt=Be=>{var se=ve(),et=J(se);Ee(et,17,X,Ce,(Ge,lt,mi,ie)=>{let be=()=>o(lt).label,Pe=()=>o(lt).data;var yi=yh(),yt=T(yi),Ih=T(yt),Ah=I(yt,2),Lh=T(Ah);U(Mh=>{Z(Ih,be()),Z(Lh,Mh)},[()=>JSON.stringify(Pe())]),_(Ge,yi)}),_(Be,se)};F(Te,Be=>{Array.isArray(X())&&Be(nt)})}_(Re,de)},Je=Re=>{var de=qt("No data");_(Re,de)};F(xe,Re=>{var de;(de=X())!=null&&de.length?Re(je):Re(Je,!1)})}U(()=>Z(ne,K())),_(Y,Q)});var M=I(k,4);M.__click=()=>u("card");var E=I(M,2);E.__click=()=>u("top_scroll");var z=I(E,6);Ee(z,16,()=>({length:4}),Ce,(Y,B,R)=>{var K=_h();K.__click=()=>p(R),K.textContent=R,_(Y,K)});var N=I(z,4);N.__click=()=>console.log(ln(window.PlayPilotLinkInjections.config));var A=I(N,2);A.__click=()=>console.log(ln(window.PlayPilotLinkInjections.config).pageText);var j=I(A,4);j.__click=function(...Y){var B;(B=e.onrerender)==null||B.apply(this,Y)};var D=I(j,2);{var P=Y=>{var B=xh();_(Y,B)},S=Y=>{var B=wh();B.__click=v,_(Y,B)};F(D,Y=>{r?Y(P):Y(S,!1)})}var V=I(D,2);{var W=Y=>{var B=kh();B.__click=()=>{Fo(),window.PlayPilotLinkInjections.config.explore_use_router=!ta(),Bo()},_(Y,B)};F(V,Y=>{ta()||Y(W)})}_(g,y)};F(m,g=>{o(l)&&g(b)})}_(t,f),ee()}ce(["click"]);function Eh(t,e){$(e,!1);const i=Array.from(document.querySelectorAll(ti)),a=[],r=Date.now();let n=!1,l=null;ct(()=>{Xa()||s()});function s(){l=new IntersectionObserver(c),i.forEach(p=>{l.observe(p)})}function c(p){p.forEach(v=>{if(!v.isIntersecting)return;const f=v.target.getAttribute(ui);f&&a.push(f),l.unobserve(v.target)})}function d(){const{scrollHeight:p,scrollTop:v,clientHeight:f}=document.documentElement;return v/(p-f)*100}function u(){var v,f;if(n||document.visibilityState!=="hidden")return;n=!0;const p=Date.now();pe(ue.UserLeft,null,{time_start:r,time_end:p,time_spent:p-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((f=(v=window.PlayPilotLinkInjections)==null?void 0:v.tracked_events)==null?void 0:f.map(m=>m.event))||[],scroll_percentage:d()})}$r(),ye("visibilitychange",Ae,u),ee()}function Ph(t,e){$(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new ir,r=.7,n="[data-playpilot-poster]";let l=G(0),s={},c=null;const d=H(()=>o(l)<Pi);en(f);function u(){var w,k;if((k=(w=window.PlayPilotLinkInjections)==null?void 0:w.config)!=null&&k.disable_scroll_reveal_posters||!o(d))return;m();const b=window.innerHeight,g=new ir,y=b*r,x=b-y;for(const M of i){const{top:E}=M.getBoundingClientRect();E<y&&E>x&&g.add(M)}for(const M of g){if(a.has(M))continue;const E=M.dataset.playpilotPosterUrl;E in s&&s[E]!==M||(p(M,E),a.add(M),s[E]=M)}}function p(b,g){const y=document.createElement("img");y.classList.add("playpilot-floating-poster"),y.dataset.playpilotPoster="",y.src=g,y.alt="",y.onload=()=>y.classList.add("loaded"),b.insertAdjacentElement("afterbegin",y)}function v(b){const g=b.querySelector(n);g&&(g.classList.add("animating-out"),setTimeout(()=>g.remove(),500))}function f(){for(const b of Array.from(document.querySelectorAll(n)))b.remove()}function m(){c&&clearTimeout(c),c=setTimeout(()=>{for(const b of a)v(b),a.delete(b),s={}},1e3)}ye("scroll",Ae,u),Qr("innerWidth",b=>q(l,b,!0)),ee()}var Ch=C("<!> <!>",1),zh=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function jh(t,e){$(e,!0);let i=G(De([])),a=G(null),r=G(De(Xa()));oo();let n=G(!1),l=G(!0),s=G(!0),c=G(De([]));const d=H(()=>o(a)||{}),u=H(()=>Nn(o(d).ai_injections,()=>[],!0)),p=H(()=>Nn(o(d).manual_injections,()=>[],!0)),v=H(()=>nn(o(i))),f=b();Ue(()=>{o(r)&&!o(l)&&g()}),Bo(),en(Cn);async function m(){tr()||(await f,wd(),pe(ue.ArticlePageView),!(!o(u).length&&!o(p).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await wo())))}async function b(){var P;q(l,!0);try{o(r)&&q(n,await lo({throwError:!0}),!0)}catch{pe(ue.AuthFailed)}try{const S=window.PlayPilotLinkInjections.config||await hh()||{};if(window.PlayPilotLinkInjections.config=S,S!=null&&S.custom_style&&x(S.custom_style||""),S!=null&&S.explore_navigation_selector&&Qp(),S!=null&&S.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),S!=null&&S.domain_sid&&_o({organizationSid:S.organization_sid,domainSid:S.domain_sid}),q(s,td(S),!0),o(s))return;S!=null&&S.html_selector&&(window.PlayPilotLinkInjections.selector=S==null?void 0:S.html_selector),q(i,ln(window.PlayPilotLinkInjections.config).elements,!0)}catch(S){pe(ue.FetchingConfigFailed),console.error("TPI Config failed to fetch",S);return}try{if(q(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),q(a,o(a)||await po(o(v),{maxTries:1,runAiWhenRelevant:!tr()}),!0),q(l,!1),!o(a)||(P=window.PlayPilotLinkInjections.config)!=null&&P.disable_public_injections&&!(o(r)&&o(n)))return;if(_o({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){y({aiInjections:o(u),manualInjections:o(p)});return}if(!o(r)||tr())return;q(a,await po(o(v),{requireCompletedResult:!0,onpoll:S=>q(a,S,!0)}),!0),y({aiInjections:o(u),manualInjections:o(p)})}catch(S){console.error(S),pe(ue.InjectionError,null,{message:S.message})}}function g(){y(dh(o(c)))}function y(P={aiInjections:o(u),manualInjections:o(p)}){const S=ih(o(i),P);JSON.stringify(S)!==JSON.stringify(o(c))&&(q(c,S,!0),window.PlayPilotLinkInjections.evaluated_link_injections=S),o(r)||w(S)}function x(P){const S="playpilot-custom-style",V=document.getElementById(S),W=V||document.createElement("style");W.textContent=`body { ${P} }`,W.id=S,V||document.body.appendChild(W)}function w(P){const S=P.filter(W=>!W.failed),V=P.filter(W=>W.failed);if(S.length&&pe(ue.ArticleInjected,null,{manual:S.filter(W=>W.manual).length,ai:S.filter(W=>!W.manual).length}),V.length){const W=Y=>V.filter(({failed_message:B})=>B==null?void 0:B.includes(Y)).length;pe(ue.FailedInjectionsCount,null,{total:V.length,sentence_not_found:W("sentence was not found"),already_linked:W("already inside of a link"),broken_html:W("broken HTML"),duplicate:W("duplicate"),unknown:W("unknown reasons")})}}var k=zh(),M=J(k),E=T(M);F(E,P=>{});var z=I(E,2);Th(z,{onrerender:g});var N=I(M,2);{var A=P=>{yn(P,{get pixels(){return o(a).pixels}})};F(N,P=>{var S,V;(V=(S=o(a))==null?void 0:S.pixels)!=null&&V.length&&P(A)})}var j=I(N,2);Xi(j,()=>o(c),P=>{var S=Ch(),V=J(S);Eh(V,{});var W=I(V,2);Ph(W,{}),_(P,S)});var D=I(j,2);gh(D,{onchange:m}),_(t,k),ee()}window.PlayPilotMount={mount(){window.PlayPilotLinkInjections.app&&this.destroy();const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Rt(jh,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),Cn()}}})();
10
+ `}}var Td=ft('<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 vn(t,e){const i=O(e,"size",3,16);var a=Td();U(()=>{ae(a,"width",i()),ae(a,"height",i())}),_(t,a)}var Ed=ft("<title> </title>"),Pd=ft('<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 Bt(t,e){const i=O(e,"direction",3,"right"),a=O(e,"title",3,""),r=O(e,"size",3,16);var n=Pd(),l=T(n);{var s=c=>{var d=Ed(),u=T(d);U(()=>Z(u,a())),_(c,d)};F(l,c=>{a()&&c(s)})}U(()=>{me(n,0,i(),"svelte-1m6nwwy"),ae(n,"width",`${r()??""}px`),ae(n,"height",`${r()??""}px`)}),_(t,n)}function fn(t,e){$(e,!0);const i=O(e,"size",3,"32px"),a=O(e,"onclick",3,()=>null),r=io(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=ve(),l=J(n);Fl(l,()=>e.href?"a":"button",!1,(s,c)=>{Yl(s,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[$i]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=ve(),u=J(d);qe(u,()=>e.children??ut),_(c,d)}),_(t,n),ee()}var Cd=C("<div></div>");function zd(t,e){$(e,!0);let i=O(e,"threshold",3,100),a=O(e,"isDragging",15,!1),r=O(e,"passedThreshold",15,!1),n=O(e,"onpassed",3,()=>null),l=G(0),s=G(0),c=G(null),d=G(!1);const u=H(()=>Math.max(o(s)-o(l),0));Ue(()=>{r(o(u)>i())});function p(y){if(y){a(!0),q(d,!0),q(l,y.touches[0].pageY,!0);for(const x of e.targets)x.style.transitionDuration="0ms"}}function v(y){if(y&&a()){y.preventDefault(),q(s,y.touches[0].pageY,!0),o(c).style.transform=`translateY(${o(u)}px)`;for(const x of e.targets)x.style.top=`${o(u)}px`}}function f(){if(a()){if(a(!1),r())n()();else{o(c).removeAttribute("style");for(const y of e.targets)y.style.removeProperty("transition"),requestAnimationFrame(()=>y.style.top="0px")}q(l,0),q(s,0)}}var m={start:p,move:v,end:f},b=Cd();ye("touchmove",Ae,v,void 0,!0),ye("touchend",Ae,f);let g;return b.__touchstart=p,$e(b,y=>q(c,y),()=>o(c)),U(()=>g=me(b,1,"handle svelte-1xqgdsn",null,g,{dragging:a(),dragged:o(d)})),_(t,b),ee(m)}ce(["touchstart"]);var jd=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Id=["difference","intersection","symmetricDifference","union"],To=!1;const _r=class _r extends Set{constructor(i){super();le(this,ca);le(this,sa,new Map);le(this,St,G(0));le(this,gi,G(0));le(this,br,Jt||-1);if(i){for(var a of i)super.add(a);L(this,gi).v=super.size}To||Se(this,ca,rs).call(this)}has(i){var a=super.has(i),r=L(this,sa),n=r.get(i);if(n===void 0){if(!a)return o(L(this,St)),!1;n=Se(this,ca,as).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),q(L(this,gi),super.size),li(L(this,St))),this}delete(i){var a=super.delete(i),r=L(this,sa),n=r.get(i);return n!==void 0&&(r.delete(i),q(n,!1)),a&&(q(L(this,gi),super.size),li(L(this,St))),a}clear(){if(super.size!==0){super.clear();var i=L(this,sa);for(var a of i.values())q(a,!1);i.clear(),q(L(this,gi),0),li(L(this,St))}}keys(){return this.values()}values(){return o(L(this,St)),super.values()}entries(){return o(L(this,St)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(L(this,gi))}};sa=new WeakMap,St=new WeakMap,gi=new WeakMap,br=new WeakMap,ca=new WeakSet,as=function(i){return Jt===L(this,br)?G(i):It(i)},rs=function(){To=!0;var i=_r.prototype,a=Set.prototype;for(const r of jd)i[r]=function(...n){return o(L(this,St)),a[r].apply(this,n)};for(const r of Id)i[r]=function(...n){o(L(this,St));var l=a[r].apply(this,n);return new _r(l)}};let ir=_r;class Ad{constructor(e,i){le(this,Ia);le(this,Aa);re(this,Ia,e),re(this,Aa,nl(i))}get current(){return L(this,Aa).call(this),L(this,Ia).call(this)}}Ia=new WeakMap,Aa=new WeakMap;const Ld=/\(.+\)/,Md=new Set(["all","print","screen","and","or","not","only"]);class Dd extends Ad{constructor(e,i){let a=Ld.test(e)||e.split(/[\s,]+/).some(n=>Md.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>wc(r,"change",n))}}function qd(t){const e=t-1;return e*e*e+1}const hn=new Dd("(prefers-reduced-motion: reduce)");function gn(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 s=e();if(!s.length)return;const[c]=s,d=s[s.length-1];n.shiftKey&&l===c&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(c.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 Rd(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Od=C("<div><!></div>"),Nd=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Bd=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Fd=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Vd=C("<div><!></div>"),Hd=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Ud=C('<div data-testid="modal"><!> <!> <!> <!></div>');function ar(t,e){$(e,!0);const i=R=>{var K=Od(),X=T(K);fn(X,{onclick:k,"aria-label":"Close",children:(Q,oe)=>{vn(Q,{})},$$slots:{default:!0}}),$e(K,Q=>q(m,Q),()=>o(m)),U(()=>me(K,1,`close ${l()??""}`,"svelte-1rbidhv")),ze(7,K,()=>w),_(R,K)},a=O(e,"tall",3,!1),r=O(e,"wide",3,!1),n=O(e,"blur",3,!1),l=O(e,"closeButtonStyle",3,"shadow"),s=O(e,"initialScrollPosition",3,0),c=O(e,"onscroll",3,()=>null),d=O(e,"onclose",3,()=>null),u="#playpilot";let p=G(0),v=G(null),f=G(null),m=G(null),b=G(0),g=G(!1);const y=H(()=>o(p)<Pi);Ue(()=>{var R;o(p)&&q(b,((R=o(f))==null?void 0:R.offsetTop)||0,!0)}),Ue(()=>{setTimeout(()=>{var R;return q(b,((R=o(f))==null?void 0:R.offsetTop)||0,!0)})}),Ir("scope","modal"),ct(()=>{const R=Rd();return R.classList.add("playpilot-modal-open"),q(g,!!Ko()),o(g)||window.history.pushState({modal:!0},"",u),requestAnimationFrame(x),()=>{var K;R.classList.remove("playpilot-modal-open"),!Ko()&&((K=history.state)!=null&&K.modal)&&history.back()}});function x(){const R=window.innerWidth>Pi?o(v):o(f);R==null||R.scrollTo(0,s())}function w(R){return hn.current?$t(R,{duration:0}):o(y)?Sa(R,{duration:250,y:window.innerHeight,opacity:1}):ea(R,{duration:150,start:.85})}function k(){d()(),En()}function M(R){R.target===o(v)&&k()}var E=Ud();ye("keydown",Ae,({key:R})=>{R==="Escape"&&k()}),ye("hashchange",Ae,k);let z;E.__click=M;let N;var A=T(E);{var j=R=>{var K=Nd(),X=T(K);qe(X,()=>e.prepend),ze(7,K,()=>w),_(R,K)};F(A,R=>{e.prepend&&R(j)})}var D=I(A,2);{var P=R=>{var K=Bd(),X=T(K);qe(X,()=>e.bubble),ze(7,K,()=>w),_(R,K)};F(D,R=>{e.bubble&&R(P)})}var S=I(D,2);{var V=R=>{var K=Fd(),X=T(K);{var Q=oe=>{{let ne=H(()=>[o(f),o(m)]);zd(oe,{get targets(){return o(ne)},onpassed:k})}};F(X,oe=>{o(f)&&o(m)&&oe(Q)})}ze(7,K,()=>w),_(R,K)};F(S,R=>{o(y)&&R(V)})}var W=I(S,2);{var Y=R=>{var K=ve(),X=J(K);qe(X,()=>e.dialog),_(R,K)},B=R=>{var K=Hd(),X=J(K),Q=T(X);{var oe=de=>{var Te=Vd(),nt=T(Te);fn(nt,{onclick:()=>Nf(),"aria-label":"Back",children:(Be,se)=>{Bt(Be,{direction:"left"})},$$slots:{default:!0}}),U(()=>me(Te,1,`close back ${l()??""}`,"svelte-1rbidhv")),_(de,Te)};F(Q,de=>{o(g)&&de(oe)})}var ne=I(Q,2);qe(ne,()=>e.children??ut);var xe=I(ne,2);{var je=de=>{i(de)};F(xe,de=>{o(y)||de(je)})}$e(X,de=>q(f,de),()=>o(f));var Je=I(X,2);{var Re=de=>{i(de)};F(Je,de=>{o(y)&&de(Re)})}ye("scroll",X,function(...de){var Te;(Te=c())==null||Te.apply(this,de)}),ze(7,X,()=>w),_(R,K)};F(W,R=>{e.dialog?R(Y):R(B,!1)})}$e(E,R=>q(v,R),()=>o(v)),Ot(E,R=>gn==null?void 0:gn(R)),U(()=>{z=me(E,1,"modal svelte-1rbidhv",null,z,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),N=Oe(E,"",N,{"--dialog-offset":`${o(b)??""}px`})}),Qr("innerWidth",R=>q(p,R,!0)),ze(5,E,()=>$t,()=>({duration:150})),ze(6,E,()=>$t,()=>({duration:150,delay:100})),_(t,E),ee()}ce(["click"]);const Wd={"Where To Stream Online":{[h.English]:"Where to stream online",[h.Swedish]:"Var kan man streama online",[h.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[h.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[h.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[h.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[h.English]:"We may earn a commission from purchases made through some of the links below.",[h.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[h.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[h.English]:"An error occurred",[h.Swedish]:"Ett fel inträffade",[h.Danish]:"Der opstod en fejl"},Loading:{[h.English]:"Loading",[h.Swedish]:"Laddar",[h.Danish]:"Indlæser"},"Title Unavailable":{[h.English]:"This title is not currently available to stream.",[h.Swedish]:"Den här titeln går inte att streama just nu.",[h.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[h.English]:"is not currently available to stream.",[h.Swedish]:"går inte att streama just nu.",[h.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[h.English]:"is available to stream on",[h.Swedish]:"finns att streama på",[h.Danish]:"kan streames på"},"Is Available To Stream":{[h.English]:"is available to stream.",[h.Swedish]:"finns att streama.",[h.Danish]:"kan streames."},"View Streaming Options":{[h.English]:"View streaming options",[h.Swedish]:"Se streamingalternativ",[h.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[h.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[h.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[h.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[h.English]:"and",[h.Swedish]:"och",[h.Danish]:"og"},Minutes:{[h.English]:"minutes",[h.Swedish]:"minuter",[h.Danish]:"minutter"},"Type: movie":{[h.English]:"Movie",[h.Swedish]:"Film",[h.Danish]:"Film"},"Type: series":{[h.English]:"Series",[h.Swedish]:"Serie",[h.Danish]:"Serie"},Stream:{[h.English]:"Stream",[h.Swedish]:"Streama",[h.Danish]:"Stream"},Buy:{[h.English]:"Buy",[h.Swedish]:"Köp",[h.Danish]:"Køb"},Rent:{[h.English]:"Rent",[h.Swedish]:"Hyr",[h.Danish]:"Lej"},"Rent Or Buy":{[h.English]:"Rent or Buy",[h.Swedish]:"Hyr/köp",[h.Danish]:"Lej eller køb"},Watch:{[h.English]:"Watch",[h.Swedish]:"Titta nu",[h.Danish]:"Se nu"},"Category: AVOD":{[h.English]:"Stream for free",[h.Swedish]:"Streama gratis",[h.Danish]:"Stream gratis"},"Category: SVOD":{[h.English]:"Streaming services",[h.Swedish]:"Streamingtjänster",[h.Danish]:"Streamingtjenester"},"Category: RENT":{[h.English]:"Rent it",[h.Swedish]:"Hyr den",[h.Danish]:"Lej den"},"Category: BUY":{[h.English]:"Buy it",[h.Swedish]:"Köp den",[h.Danish]:"Køb den"},"Category: Other":{[h.English]:"Other",[h.Swedish]:"Annat",[h.Danish]:"Andet"},Share:{[h.English]:"Share",[h.Swedish]:"Dela",[h.Danish]:"Del"},"Copy URL":{[h.English]:"Copy URL",[h.Swedish]:"Kopiera URL",[h.Danish]:"Kopiér URL"},Email:{[h.English]:"Email",[h.Swedish]:"E-post",[h.Danish]:"E-mail"},"Show More":{[h.English]:"Show more",[h.Swedish]:"Visa mer",[h.Danish]:"Vis mere"},Cast:{[h.English]:"Cast",[h.Swedish]:"Rollista",[h.Danish]:"Skuespillere"},"Similar Titles":{[h.English]:"Similar movies & shows",[h.Swedish]:"Liknande filmer och serier",[h.Danish]:"Lignende film og serier"},"Watch Trailer":{[h.English]:"Watch trailer",[h.Swedish]:"Se trailer",[h.Danish]:"Se trailer"},"Streaming Guide":{[h.English]:"Streaming Guide",[h.Swedish]:"Streaming Guide",[h.Danish]:"Streaming Guide"},"Streaming Guide Description":{[h.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[h.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[h.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":{[h.English]:"Search movies and shows",[h.Swedish]:"Sök filmer och serier",[h.Danish]:"Søg film og serier"},Services:{[h.English]:"Services",[h.Swedish]:"Tjänster",[h.Danish]:"Tjenester"},Genres:{[h.English]:"Genres",[h.Swedish]:"Genrer",[h.Danish]:"Genrer"},IMDb:{[h.English]:"IMDb",[h.Swedish]:"IMDb",[h.Danish]:"IMDb"},Year:{[h.English]:"Year",[h.Swedish]:"År",[h.Danish]:"År"},Runtime:{[h.English]:"Runtime",[h.Swedish]:"Speltid",[h.Danish]:"Spilletid"},Countries:{[h.English]:"Countries",[h.Swedish]:"Länder",[h.Danish]:"Lande"},"All Filters":{[h.English]:"All filters",[h.Swedish]:"Alla filter",[h.Danish]:"Alle filtre"},"Sort By":{[h.English]:"Sort by",[h.Swedish]:"Sortera efter",[h.Danish]:"Sortér efter"},Popularity:{[h.English]:"Popularity",[h.Swedish]:"Popularitet",[h.Danish]:"Popularitet"},New:{[h.English]:"New",[h.Swedish]:"Nytt",[h.Danish]:"Nyt"},"Top Rated":{[h.English]:"Top Rated",[h.Swedish]:"Toppbetyg",[h.Danish]:"Højst vurderet"},Search:{[h.English]:"Search",[h.Swedish]:"Sök",[h.Danish]:"Søg"},"Born On":{[h.English]:"Born on",[h.Swedish]:"Född den",[h.Danish]:"Født den"},"Died On":{[h.English]:"Died on",[h.Swedish]:"Död den",[h.Danish]:"Død den"},Credits:{[h.English]:"Credits",[h.Swedish]:"Medverkande",[h.Danish]:"Medvirkende"},All:{[h.English]:"All",[h.Swedish]:"Alla",[h.Danish]:"Alle"},Unscripted:{[h.English]:"Unscripted",[h.Swedish]:"Oscripterat",[h.Danish]:"Umanuskriptet"},Independent:{[h.English]:"Independent",[h.Swedish]:"Indie",[h.Danish]:"Indie"},"Game Show":{[h.English]:"Game Show",[h.Swedish]:"Gameshow",[h.Danish]:"Quizshow"},"Film Noir":{[h.English]:"Film Noir",[h.Swedish]:"Film noir",[h.Danish]:"Film noir"},Entertainment:{[h.English]:"Entertainment",[h.Swedish]:"Underhållning",[h.Danish]:"Underholdning"},News:{[h.English]:"News",[h.Swedish]:"Nyheter",[h.Danish]:"Nyheder"},Short:{[h.English]:"Short",[h.Swedish]:"Kortfilm",[h.Danish]:"Kortfilm"},Bollywood:{[h.English]:"Bollywood",[h.Swedish]:"Bollywood",[h.Danish]:"Bollywood"},Concert:{[h.English]:"Concert",[h.Swedish]:"Konsert",[h.Danish]:"Koncert"},Arthouse:{[h.English]:"Arthouse",[h.Swedish]:"Arthouse",[h.Danish]:"Arthouse"},"Alternate Version":{[h.English]:"Alternate Version",[h.Swedish]:"Alternativ version",[h.Danish]:"Alternativ version"},"Reality TV":{[h.English]:"Reality TV",[h.Swedish]:"Reality-TV",[h.Danish]:"Reality-TV"},Culture:{[h.English]:"Culture",[h.Swedish]:"Kultur",[h.Danish]:"Kultur"},Drama:{[h.English]:"Drama",[h.Swedish]:"Drama",[h.Danish]:"Drama"},Crime:{[h.English]:"Crime",[h.Swedish]:"Kriminal",[h.Danish]:"Krimi"},Western:{[h.English]:"Western",[h.Swedish]:"Western",[h.Danish]:"Western"},Thriller:{[h.English]:"Thriller",[h.Swedish]:"Thriller",[h.Danish]:"Thriller"},Animation:{[h.English]:"Animation",[h.Swedish]:"Animerat",[h.Danish]:"Animation"},Mystery:{[h.English]:"Mystery",[h.Swedish]:"Mysterium",[h.Danish]:"Mysterium"},Science:{[h.English]:"Science",[h.Swedish]:"Vetenskap",[h.Danish]:"Videnskab"},Nature:{[h.English]:"Nature",[h.Swedish]:"Natur",[h.Danish]:"Natur"},War:{[h.English]:"War",[h.Swedish]:"Krig",[h.Danish]:"Krig"},"Sci-Fi":{[h.English]:"Sci-Fi",[h.Swedish]:"Sci-fi",[h.Danish]:"Sci-fi"},Documentary:{[h.English]:"Documentary",[h.Swedish]:"Dokumentär",[h.Danish]:"Dokumentar"},"Stand-up":{[h.English]:"Stand-up",[h.Swedish]:"Standup",[h.Danish]:"Stand-up"},"Talk Show":{[h.English]:"Talk Show",[h.Swedish]:"Talkshow",[h.Danish]:"Talkshow"},Fantasy:{[h.English]:"Fantasy",[h.Swedish]:"Fantasy",[h.Danish]:"Fantasy"},History:{[h.English]:"History",[h.Swedish]:"Historia",[h.Danish]:"Historie"},Adventure:{[h.English]:"Adventure",[h.Swedish]:"Äventyr",[h.Danish]:"Eventyr"},Action:{[h.English]:"Action",[h.Swedish]:"Action",[h.Danish]:"Action"},Horror:{[h.English]:"Horror",[h.Swedish]:"Skräck",[h.Danish]:"Gyser"},Comedy:{[h.English]:"Comedy",[h.Swedish]:"Komedi",[h.Danish]:"Komedie"},Biography:{[h.English]:"Biography",[h.Swedish]:"Biografi",[h.Danish]:"Biografi"},Music:{[h.English]:"Music",[h.Swedish]:"Musik",[h.Danish]:"Musik"},Sport:{[h.English]:"Sport",[h.Swedish]:"Sport",[h.Danish]:"Sport"},Romance:{[h.English]:"Romance",[h.Swedish]:"Romantik",[h.Danish]:"Romantik"},Kids:{[h.English]:"Kids",[h.Swedish]:"Barn",[h.Danish]:"Børn"},Lifestyle:{[h.English]:"Lifestyle",[h.Swedish]:"Livsstil",[h.Danish]:"Livsstil"},Musical:{[h.English]:"Musical",[h.Swedish]:"Musikal",[h.Danish]:"Musical"},Anime:{[h.English]:"Anime",[h.Swedish]:"Anime",[h.Danish]:"Anime"},Family:{[h.English]:"Family",[h.Swedish]:"Familj",[h.Danish]:"Familie"}};function te(t,e=Qa()){var i;return((i=Wd[t])==null?void 0:i[e])||t}const Gd="1304688689641511",Kd="https://endpoint-youtube-availability.playpilot.workers.dev";function rr(t,e={}){const i=new Image;i.src=Yd(t,e||{})}function Yd(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Gd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Eo(t,e={}){return()=>{Ue(()=>rr(t,e))}}function Zd(t,e={}){return i=>{const a=()=>rr(t,e);Ue(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var Jd=C('<div class="genre svelte-1mphbln"> </div>'),Xd=C('<button class="genre expand svelte-1mphbln"> </button>'),Qd=C("<!> <!>",1);function $d(t,e){$(e,!0);let i=G(!1);const a=H(()=>o(i)?e.genres:[e.genres[0]]);var r=Qd(),n=J(r);Ee(n,17,()=>o(a),Ce,(c,d)=>{const u=H(()=>{var m;return(m=un.find(b=>b.slug===o(d)))==null?void 0:m.name});var p=ve(),v=J(p);{var f=m=>{var b=Jd(),g=T(b);Ga(b,()=>xo()?Eo(wa.GenreInterest,{genre:o(u)}):null),U(y=>Z(g,y),[()=>te(o(u))]),_(m,b)};F(v,m=>{o(u)&&m(f)})}_(c,p)});var l=I(n,2);{var s=c=>{var d=Xd();d.__click=()=>q(i,!0);var u=T(d);U(()=>Z(u,`+${e.genres.length-1}`)),_(c,d)};F(l,c=>{!o(i)&&e.genres.length>1&&c(s)})}_(t,r),ee()}ce(["click"]);function Po(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(c=>c.name===r.name),l=n==null?void 0:n.extra_info.category,s=r.extra_info.category;(l==="RENT"&&s==="BUY"||l==="BUY"&&s==="RENT")&&(i=i.filter(c=>c.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}function Le(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var eu=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),tu=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function mn(t,e){const i=O(e,"small",3,!1);let a=G(!1);function r(u){u.preventDefault(),u.stopPropagation(),q(a,!o(a))}var n=tu();n.__click=r;var l=T(n);let s;var c=I(l,2);{var d=u=>{var p=eu(),v=T(p);U(()=>Z(v,e.disclaimer)),ze(3,p,()=>$t,()=>({duration:50})),_(u,p)};F(c,u=>{o(a)&&u(d)})}U(()=>s=me(l,1,"disclaimer svelte-1ldthr7",null,s,{small:i()})),_(t,n)}ce(["click"]);var iu=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function yn(t,e){$(e,!0);let i=G(De(Math.random()));var a=ve();ye("updateconsent",Ae,()=>q(i,Math.random(),!0));var r=J(a);Xi(r,()=>o(i),n=>{var l=ve(),s=J(l);{var c=d=>{var u=ve(),p=J(u);Ee(p,17,()=>e.pixels,Ce,(v,f)=>{var m=iu();U(()=>ae(m,"src",o(f))),_(v,m)}),_(d,u)};F(s,d=>{wt("pixels")&&d(c)})}_(n,l)}),_(t,a),ee()}function nr(t){return t?t.replace("/src/img",""):null}function Co(t,e=null){return t!=null&&t.length?`${Gc}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var au=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),ru=C('<span class="cta svelte-13ka2ap"> </span>'),nu=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){$(e,!0);const i=O(e,"disclaimer",3,""),a=O(e,"hideCategory",3,!1),r=O(e,"onclick",3,()=>null),n=H(()=>e.playlink.name),l=H(()=>e.playlink.url),s=H(()=>e.playlink.logo_url),c=H(()=>e.playlink.highlighted),d=H(()=>e.playlink.cta_text),u=H(()=>e.playlink.action_text),p=H(()=>e.playlink.pixels),v=H(()=>e.playlink.extra_info.category),f=H(()=>xo()&&!o(c)),m={AVOD:te("Stream"),SVOD:te("Stream"),BUY:te("Buy"),RENT:te("Rent"),TVOD:te("Rent Or Buy")};let b=G(0);var g=ve(),y=J(g);Fl(y,()=>{var x,w;return!((w=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&w.require_affiliate_consent)||wt("affiliate")?"a":"span"},!1,(x,w)=>{Ga(x,()=>o(f)?Eo(wa.ProviderInterest,{provider:e.playlink.slug}):null),Ga(x,()=>o(f)?Zd(wa.ProviderClick,{provider:e.playlink.slug}):null),Yl(x,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[Qi]:{highlighted:o(c),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var k=nu(),M=J(k);let E;var z=T(M),N=I(z,2),A=T(N),j=I(N,2);{var D=X=>{var Q=au(),oe=T(Q);U(ne=>Z(oe,ne),[()=>m[o(v)]||te("Stream")]),_(X,Q)};F(j,X=>{a()||X(D)})}var P=I(j,2);{var S=X=>{var Q=ru(),oe=T(Q);U(()=>Z(oe,o(d))),_(X,Q)};F(P,X=>{o(d)&&X(S)})}var V=I(P,2),W=T(V),Y=I(V,2);{var B=X=>{mn(X,{get disclaimer(){return i()},small:!0})};F(Y,X=>{i()&&X(B)})}var R=I(M,2);{var K=X=>{yn(X,{get pixels(){return o(p)}})};F(R,X=>{var Q;(Q=o(p))!=null&&Q.length&&X(K)})}U((X,Q)=>{E=Oe(M,"",E,{"--action-width":o(b)?`${o(b)}px`:null}),ae(z,"src",X),Z(A,o(n)),Z(W,Q)},[()=>nr(o(s)),()=>o(u)||te("Watch")]),Nt(V,"clientWidth",X=>q(b,X)),_(w,k)}),_(t,g),ee()}var lu=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>'),ou=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),su=C('<div class="heading category svelte-1fykz2q"> </div>'),cu=C("<!> <!>",1),du=C("<!> <div></div>",1),uu=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function pu(t,e){var k,M;$(e,!0);const i=jr("scope")==="modal",a=ka("card"),r=!!((M=(k=window.PlayPilotLinkInjections)==null?void 0:k.config)!=null&&M.categorize_playlinks);let n=G(0);const l=H(()=>Po(e.playlinks)),s=H(()=>p(e.playlinks)),c=H(()=>r?v(o(s)):[["",o(l)]]),d=H(()=>o(n)<500||!!a||o(l).length===1);function u(E){pe(i?ue.TitleModalPlaylinkClick:ue.TitlePopoverPlaylinkClick,e.title,{playlink:E})}function p(E){const z={};for(const N of E){const{category:A}=N.extra_info;A in z||(z[A]=[]),z[A].push(N)}return z}function v(E){const z=["AVOD","SVOD","RENT","BUY"],N=[];for(const j of z)E[j]&&N.push([j,E[j]]);const A=[];for(const j of Object.values(E))for(const D of j)z.includes(D.extra_info.category)||A.push(D);return[...N,["Other",A]]}var f=uu(),m=J(f),b=T(m);Ot(m,(E,z)=>Le==null?void 0:Le(E,z),()=>3);var g=I(m,2);{var y=E=>{var z=lu(),N=T(z);U(A=>Z(N,`${A??""} `),[()=>{var A,j;return((j=(A=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:A.config)==null?void 0:j.playlinks_disclaimer_text)||te("Commission Disclaimer")}]),_(E,z)},x=E=>{var z=ou(),N=T(z);U(A=>Z(N,A),[()=>te("Title Unavailable")]),_(E,z)};F(g,E=>{o(l).length?E(y):E(x,!1)})}var w=I(g,2);Ee(w,17,()=>o(c),Ce,(E,z,N,A)=>{var j=H(()=>Ma(o(z),2));let D=()=>o(j)[0],P=()=>o(j)[1];var S=du(),V=J(S);{var W=R=>{var K=su(),X=T(K);Ot(K,(Q,oe)=>Le==null?void 0:Le(Q,oe),()=>4),U(Q=>Z(X,Q),[()=>te(`Category: ${D()}`)]),_(R,K)};F(V,R=>{D()&&P().length&&R(W)})}var Y=I(V,2);let B;Ee(Y,21,P,Ce,(R,K,X)=>{var Q=cu(),oe=J(Q);zo(oe,{get playlink(){return o(K)},onclick:()=>u(o(K).name)});var ne=I(oe,2);{var xe=je=>{{let Je=H(()=>kd(a)),Re=H(()=>a.disclaimer||"");zo(je,{get playlink(){return o(Je)},onclick:()=>pe(ue.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(Re)}})}};F(ne,je=>{a&&X===0&&je(xe)})}_(R,Q)}),U(()=>{B=me(Y,1,"playlinks svelte-1fykz2q",null,B,{list:o(d)}),ae(Y,"data-testid",`category-${D()??""}`)}),Nt(Y,"clientWidth",R=>q(n,R)),_(E,S)}),U(E=>Z(b,E),[()=>te("Where To Stream Online")]),_(t,f),ee()}var vu=C('<button class="show-more svelte-7itcht">Show more</button>'),fu=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),hu=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function gu(t,e){$(e,!0);const i=O(e,"blurb",3,""),a=O(e,"limit",3,200),r=O(e,"onclick",3,()=>null);let n=G(!1);const l=H(()=>e.text.slice(0,a()));function s(){q(n,!0),r()()}var c=hu(),d=T(c),u=T(d),p=I(u);{var v=y=>{var x=qt("...");_(y,x)};F(p,y=>{!o(n)&&e.text.length>a()&&y(v)})}var f=I(p,2);{var m=y=>{var x=vu();x.__click=()=>s(),_(y,x)};F(f,y=>{!o(n)&&(e.text.length>a()||i())&&y(m)})}var b=I(d,2);{var g=y=>{var x=fu(),w=T(x);U(()=>Z(w,i())),_(y,x)};F(b,y=>{o(n)&&y(g)})}U(()=>Z(u,o(n)?e.text:o(l))),_(t,c),ee()}ce(["click"]);var mu=ft('<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 bn(t,e){const i=O(e,"size",3,14);var a=mu();U(()=>{ae(a,"width",i()),ae(a,"height",i())}),_(t,a)}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 s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(a=s==null?void 0:s.country)==null?void 0:a.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),yu(c),c}catch(l){return pe(ue.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function yu(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function bu(t,{page:e=1}={}){const i={language:Qa(),region:await _n(),include_count:"false",participant_sid:t.sid,page:e};return(await Qt(`/titles/browse?api-token=${ci()}&${sn(i)}`)).results}async function _u(t){return(await Qt(`/participants/browse?api-token=${ci()}&title_sid=${t.sid}`)).results}var xu=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function jo(t,e){$(e,!0);let i=O(e,"gap",3,"0"),a=O(e,"fill",3,!0),r=O(e,"transitionDuration",3,300),n=O(e,"threshold",3,30),l=O(e,"moveThreshold",3,0),s=O(e,"currentIndex",15,0),c=O(e,"shown",31,()=>De([])),d=O(e,"sliderWidth",15,0),u=O(e,"currentScrollPosition",15,0),p=O(e,"maxWidth",15,0),v=O(e,"reachedEnd",15,!1),f=O(e,"distanceToEnd",15,0),m=O(e,"passedThreshold",15,!1),b=O(e,"passedMoveThreshold",15,!1),g=O(e,"allowWheel",3,!1),y=O(e,"end",3,()=>null),x=O(e,"change",3,ie=>null),w=O(e,"onend",19,y),k=O(e,"onchange",19,x),M=O(e,"onresize",3,()=>null),E=G(!1),z=G(!1),N=0,A=0,j=G(void 0),D=G(void 0),P=null,S=null;Ue(()=>{o(D)&&ne(),o(D)&&f(p()-u()-d())}),ct(()=>(Re(),()=>P==null?void 0:P.disconnect()));function V(ie){const be=o(D).children.length,Pe=Math.max(0,Math.min(ie,be-1));Q({setIndex:Pe}),ne()}function W(){q(z,!0),V(s()),requestAnimationFrame(()=>q(z,!1))}function Y(ie){de(ie.target)&&(ie.preventDefault(),N=xe(ie),q(E,!0))}function B(){if(o(E)){if(!m())Q({setIndex:s()});else{const ie=u()-A,be=ie>0?1:-1;ie!=0&&Q({direction:be})}q(E,!1),m(!1)}}function R(ie){if(!o(E))return;const be=xe(ie),Pe=A+(N-be),yi=N-be;b(Math.abs(yi)>l()),m(Math.abs(u()-A)>n()),b()&&(oe(Math.abs(Pe)-l()*(yi>0?1:-1)),ne())}function K(ie){if(!g())return;const{deltaX:be,deltaY:Pe}=ie;if(Math.abs(be)<Math.abs(Pe))return;ie.preventDefault();const yt=u()+be*20*.02;oe(yt),ne(),S&&clearTimeout(S),S=setTimeout(()=>{Q({direction:be>0?1:-1})},100)}function X(ie){de(document.activeElement)&&(ie.key=="ArrowLeft"&&V(s()-1),ie.key=="ArrowRight"&&V(s()+1))}function Q({setIndex:ie=-1,direction:be=1}={}){const Pe=je(),yi=s();s(0);let yt;for(yt=0;yt<Pe.length;yt++)if(ie!=-1){if(yt>=ie)break}else if(be>0&&Pe[yt]>u()||be<0&&Pe[yt+1]>u())break;s(Math.min(yt,Je().length-1)),oe(Pe[s()],!0),A=u(),k()&&s()!=yi&&k()(s())}function oe(ie,be=!1){u(ie);const Pe=p()-d();v(u()>=Pe),v()&&(w()&&w()(),a()&&be&&u(Pe))}function ne(){const ie=je();Array.from(ie).forEach((be,Pe)=>{u()+d()<be||c().includes(Pe)||c([...c(),Pe])})}function xe(ie){var be,Pe;return ie.pageX??((Pe=(be=ie.touches)==null?void 0:be[0])==null?void 0:Pe.pageX)}function je(){return Je().map(ie=>ie.offsetLeft)}function Je(){return Array.from(o(D).children).filter(ie=>ie instanceof HTMLElement).filter(ie=>ie.src!="about:blank")}function Re(){P=new ResizeObserver(ie=>{for(const be of ie){const Pe=Array.isArray(be.contentBoxSize)?be.contentBoxSize[0]:be.contentBoxSize;p(Pe.inlineSize)}M()()}),P.observe(o(D))}function de(ie){return ie===o(j)||(ie==null?void 0:ie.closest(".slider"))===o(j)}var Te={setIndex:V,reposition:W},nt=xu();ye("mousedown",Ae,Y),ye("mouseup",Ae,B),ye("mousemove",Ae,R),ye("touchstart",Ae,Y,void 0,!0),ye("touchend",Ae,B),ye("touchmove",Ae,R,void 0,!0),ye("keydown",Ae,X),ye("resize",Ae,W);var Be=J(nt);let se;var et=T(Be);let Ge;var lt=T(et);qe(lt,()=>e.children??ut,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:V,currentScrollPosition:u(),maxWidth:p(),reachedEnd:v(),distanceToEnd:f()})),$e(et,ie=>q(D,ie),()=>o(D)),$e(Be,ie=>q(j,ie),()=>o(j));var mi=I(Be,2);return qe(mi,()=>e.controls??ut,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:V,currentScrollPosition:u(),maxWidth:p(),reachedEnd:v(),distanceToEnd:f()})),U(ie=>{se=me(Be,1,"slider svelte-1gs8ha8",null,se,{dragging:o(E),"passed-threshold":m()}),Ge=Oe(et,"",Ge,ie)},[()=>({transform:`translateX(${u()*-1}px)`,"transition-duration":`${(o(E)||o(z)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),ye("wheel",Be,K),Nt(Be,"clientWidth",d),_(t,nt),ee(Te)}var wu=C('<div class="heading svelte-1ayf7b5"> </div>'),ku=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Su=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Tu=C("<!> <!>",1),Eu=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function lr(t,e){$(e,!0);let i=O(e,"heading",3,""),a=O(e,"onchange",3,()=>null),r=O(e,"onresize",3,()=>null),n=O(e,"slider",15);var l=Eu(),s=J(l);{var c=p=>{var v=wu(),f=T(v);Ot(v,(m,b)=>Le==null?void 0:Le(m,b),()=>2),U(()=>Z(f,i())),_(p,v)};F(s,p=>{i()&&p(c)})}var d=I(s,2),u=T(d);$e(jo(u,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(v,f)=>{let m=()=>f==null?void 0:f().setIndex,b=()=>f==null?void 0:f().currentIndex,g=()=>f==null?void 0:f().reachedEnd;var y=Tu(),x=J(y);{var w=E=>{var z=ku();z.__click=()=>m()(b()-1);var N=T(z);Bt(N,{direction:"left",title:"Previous"}),_(E,z)};F(x,E=>{b()>0&&E(w)})}var k=I(x,2);{var M=E=>{var z=Su();z.__click=()=>m()(b()+1);var N=T(z);Bt(N,{title:"Next"}),_(E,z)};F(k,E=>{g()||E(M)})}_(v,y)},children:(v,f)=>{var m=ve(),b=J(m);qe(b,()=>e.children),_(v,m)},$$slots:{controls:!0,default:!0}}),v=>n(v),()=>n()),_(t,l),ee()}ce(["click"]);var Pu=C('<div class="character truncate svelte-zy7e3f"> </div>'),Cu=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),zu=C('<div class="participant svelte-zy7e3f"></div>');function ju(t,e){$(e,!0);function i(l){const s=di(nn(so(rn()))),c={};for(const u of l){const p=er(s,di(u.name));c[u.sid]={participant:u,count:p}}return Object.values(c).sort((u,p)=>p.count-u.count).map(({participant:u})=>u)}function a(l,s){ei({event:l,type:"participant",data:s}),pe(ue.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var r=ve(),n=J(r);xa(n,()=>_u(e.title),l=>{{let s=H(()=>te("Cast"));lr(l,{get heading(){return o(s)},children:(c,d)=>{var u=ve(),p=J(u);Ee(p,16,()=>({length:5}),Ce,(v,f)=>{var m=zu();_(v,m)}),_(c,u)},$$slots:{default:!0}})}},(l,s)=>{var c=ve(),d=J(c);{var u=p=>{{let v=H(()=>te("Cast"));lr(p,{get heading(){return o(v)},children:(f,m)=>{var b=ve(),g=J(b);Ee(g,17,()=>i(o(s)).slice(0,15),Ce,(y,x)=>{var w=Cu();w.__click=N=>a(N,o(x));var k=T(w),M=T(k),E=I(k,2);{var z=N=>{var A=Pu(),j=T(A);U(()=>Z(j,o(x).character)),_(N,A)};F(E,N=>{o(x).character&&N(z)})}U(()=>Z(M,o(x).name)),_(y,w)}),_(f,b)},$$slots:{default:!0}})}};F(d,p=>{var v;(v=o(s))!=null&&v.length&&p(u)})}_(l,c)}),_(t,r),ee()}ce(["click"]);async function Io(t={}){const e=ci();if(!e)throw new Error("No token was provided");return t={...t,language:Qa(),region:await _n(),include_count:"false"},await Qt(`/titles/browse?api-token=${e}&`+sn(t))}async function or(t){return(await Io({related_to_sid:t.sid})).results}var Iu=C('<img class="svelte-p6g2a"/>');function sr(t,e){$(e,!0);const i=O(e,"width",3,96),a=O(e,"height",3,144),r=O(e,"lazy",3,!0),n=O(e,"onload",3,()=>null);var l=Iu();U(s=>{ae(l,"src",s),ae(l,"alt",`Movie poster for '${e.title.title??""}'`),ae(l,"width",i()),ae(l,"height",a()),ae(l,"loading",r()?"lazy":null)},[()=>nr(e.title.standing_poster)]),ye("error",l,({target:s})=>s.src=Kc),ye("load",l,function(...s){var c;(c=n())==null||c.apply(this,s)}),_(t,l),ee()}var Au=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 Lu(t,e){const i=O(e,"embeddable_url",3,"");var a=Au(),r=T(a);wn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=I(r,2);n.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var l=I(n,2);l.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var s=T(l);vn(s,{size:24}),ze(3,a,()=>$t,()=>({duration:100})),_(t,a)}ce(["click"]);async function Ao(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(`${Kd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const s=await l.json();return!((r=s.blocked)!=null&&r[e]||!s.blocked&&s.allowed&&!((n=s.allowed)!=null&&n.includes(e)))}catch(l){return pe(ue.YouTubeAvailabilityRequestFailed,null,{message:l.message}),!1}}let cr={};function Mu(t){const e=zn(),i={onclose:Du,embeddable_url:t.embeddable_url||""};cr=Rt(Lu,{target:e,props:i})}function Du(){cr&&(Zi(cr,{outro:!0}),cr=null)}function xn(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 qu(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&xn(r.embeddable_url);try{n&&await Ao(n)&&(a=r)}catch{}i++}return a}var Ru=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe>');function wn(t,e){var v;$(e,!0);const i=O(e,"embeddable_url",3,""),a=O(e,"controls",19,()=>[]),r=O(e,"muted",3,!1),n=O(e,"loop",3,!1),l=H(()=>xn(i())),s=((v=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:v.replace("#",""))||"fa548a";var c=ve(),d=J(c);{var u=f=>{var m=Ru();U(b=>ae(m,"src",`https://video.playpilot.net/?video_id=${o(l)??""}&color=${s}&muted=${r()??""}&loop=${n()??""}&controls=${b??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),_(f,m)},p=f=>{var m=qt("Something went wrong");_(f,m)};F(d,f=>{o(l)?f(u):f(p,!1)})}_(t,c),ee()}function Lo(t){return`${Uc}/${t.type}/${t.slug}/`}const Ou={sid:"tig9r9F",slug:"dune-prophecy-2024-series",poster_uuid:"61feb4b0a58f11efb0b50a58a9feac02",standing_poster_uuid:"6239ee86a58f11efb0b50a58a9feac02",genres:["101","109","123","107"],year:2024,imdb_score:7.5,type:"series",providers:[{sid:"plxWzpL",slug:"max",name:"Max",url:"https://out.playpilot.com/playlink/gAAAAABnReWk_jqQh4e6vBNNqD0rl4fafWJGUBj939o2z4EZB7yWUJ2jq5RpLSPYvD1kRdsj2CXkst0obPR-UYwuBx7_ofbR1aTCOEc8gV40OGChzuRbPmXl4U-OXhrkRMR5KJi0A8vJ2UGQcPBieRTiHovwTDnPO1rRs1jGwwwLcqkDFw24ILoDyGjLZzG-sy_b3C7I9bTxGeDTyqk1-hakg_S9_rzIorkHrMD4wJpXaeSsAbMUMb-z8VNvzdNKCOtRHZ_8pM-FaLt8Fp5rLa9XwHZ4z_37eyjF3e5BVIB_2kvaiRGcQ0I=",logo_url:"https://picsum.photos/64/64",extra_info:{category:"SVOD"}},{sid:"plxWzpK",slug:"netflix",name:"Netflix",url:"https://out.playpilot.com/playlink/gAAAAABnReWk_jqQh4e6vBNNqD0rl4fafWJGUBj939o2z4EZB7yWUJ2jq5RpLSPYvD1kRdsj2CXkst0obPR-UYwuBx7_ofbR1aTCOEc8gV40OGChzuRbPmXl4U-OXhrkRMR5KJi0A8vJ2UGQcPBieRTiHovwTDnPO1rRs1jGwwwLcqkDFw24ILoDyGjLZzG-sy_b3C7I9bTxGeDTyqk1-hakg_S9_rzIorkHrMD4wJpXaeSsAbMUMb-z8VNvzdNKCOtRHZ_8pM-FaLt8Fp5rLa9XwHZ4z_37eyjF3e5BVIB_2kvaiRGcQ0I=",logo_url:"https://picsum.photos/seed/2/64/64",extra_info:{category:"RENT"}}],description:"Ten thousand years before the ascension of Paul Atreides, sisters Valya and Tula Harkonnen establish the fabled sect and female order that would become known as the Bene Gesserit to control the future of humankind.",small_poster:"https://img.playpilot.tech/61feb4b0a58f11efb0b50a58a9feac02/src/img?optimizer=image&class=16by9x14",medium_poster:"https://img.playpilot.tech/61feb4b0a58f11efb0b50a58a9feac02/src/img?optimizer=image&class=16by9x40",standing_poster:"https://img.playpilot.tech/6239ee86a58f11efb0b50a58a9feac02/src/img?optimizer=image&class=2by3x18",title:"Dune: Prophecy",original_title:"Dune: Prophecy",embeddable_url:null};var Nu=C("<!> <!> <!>",1),Bu=C('<div data-testid="explore-home"></div> <!> <div style="height: 1000px"></div>',1);function Fu(t,e){$(e,!0);let i=G(null),a=G(null);var r=Bu(),n=I(J(r),2);xa(n,()=>or(Ou),l=>{var s=qt("Loading...");_(l,s)},(l,s)=>{var c=ve(),d=J(c);{var u=p=>{var v=Nu(),f=J(v);ur(f,{heading:"Some titles",get titles(){return o(s)},expandable:!0,get expandedTitle(){return o(i)},set expandedTitle(x){q(i,x,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(x){q(a,x,!0)}});var m=I(f,2);{var b=x=>{{let w=H(()=>or(o(s)[1]));ur(x,{heading:"Some other titles",get titles(){return o(w)},expandable:!0,get expandedTitle(){return o(i)},set expandedTitle(k){q(i,k,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(k){q(a,k,!0)}})}};F(m,x=>{o(s)[1]&&x(b)})}var g=I(m,2);{var y=x=>{{let w=H(()=>or(o(s)[5]));ur(x,{heading:"Some more titles",get titles(){return o(w)},expandable:!0,get expandedTitle(){return o(i)},set expandedTitle(k){q(i,k,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(k){q(a,k,!0)}})}};F(g,x=>{o(s)[5]&&x(y)})}_(p,v)};F(d,p=>{o(s)&&p(u)})}_(l,c)}),_(t,r),ee()}var Vu=C("<button><!></button>");function zi(t,e){const i=O(e,"variant",3,"filled"),a=O(e,"size",3,"base"),r=O(e,"label",3,null),n=O(e,"active",3,!1);var l=Vu();let s;l.__click=function(...d){var u;(u=e.onclick)==null||u.apply(this,d)};var c=T(l);qe(c,()=>e.children??ut),U(()=>{s=me(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",s,{active:n()}),ae(l,"aria-label",r())}),_(t,l)}ce(["click"]);var Hu=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Uu(t,e){$(e,!0);const i=O(e,"size",3,30),a=O(e,"onclick",3,()=>null),r=H(()=>e.playlink.name),n=H(()=>e.playlink.url),l=H(()=>e.playlink.logo_url),s=H(()=>e.playlink.pixels);var c=Hu();c.__click=function(...f){var m;(m=a())==null||m.apply(this,f)};let d;var u=T(c),p=I(u,2);{var v=f=>{yn(f,{get pixels(){return o(s)}})};F(p,f=>{var m;(m=o(s))!=null&&m.length&&f(v)})}U(f=>{ae(c,"href",o(n)),ae(c,"data-playlink",o(r)),d=Oe(c,"",d,{"--size":`${i()??""}px`}),ae(u,"src",f),ae(u,"alt",o(r)),ae(u,"height",i()),ae(u,"width",i())},[()=>nr(o(l))]),_(t,c),ee()}ce(["click"]);var Wu=C('<span class="more svelte-1plv45z"> </span>'),Gu=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Ku=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Mo(t,e){$(e,!0);const i=O(e,"size",3,30),a=H(()=>Po(e.playlinks).slice(0,3));function r(p){p.stopPropagation()}var n=Ku(),l=T(n);Ee(l,17,()=>o(a),Ce,(p,v)=>{Uu(p,{get playlink(){return o(v)},onclick:r,get size(){return i()}})});var s=I(l,2);{var c=p=>{var v=Wu(),f=T(v);U(()=>Z(f,`+${e.playlinks.length-o(a).length}`)),_(p,v)};F(s,p=>{e.playlinks.length>o(a).length&&p(c)})}var d=I(s,2);{var u=p=>{var v=Gu();_(p,v)};F(d,p=>{e.playlinks.length||p(u)})}_(t,n),ee()}var Yu=C("<div>Series</div>"),Zu=C("<div> </div>"),Ju=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 Xu(t,e){$(e,!0);const i=O(e,"onclick",3,()=>null);var a=Ju();a.__click=function(...x){var w;(w=i())==null||w.apply(this,x)};var r=T(a),n=T(r);sr(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=I(n,2),s=T(l),c=T(s);bn(c,{size:12});var d=I(c),u=I(s,2);{var p=x=>{var w=Yu();_(x,w)};F(u,x=>{e.title.type==="series"&&x(p)})}var v=I(u,2);{var f=x=>{var w=Zu(),k=T(w);U(()=>Z(k,`${e.title.length??""} min`)),_(x,w)};F(v,x=>{e.title.length&&x(f)})}var m=I(r,2),b=T(m),g=T(b),y=I(b,2);Mo(y,{get playlinks(){return e.title.providers},size:20}),U(()=>{Z(d,` ${e.title.imdb_score||"-"}`),Z(g,e.title.title)}),_(t,a),ee()}ce(["click"]),Ns();var Qu=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 $u(t){var e=Qu(),i=I(T(e),2),a=T(i);Oe(a,"",{},{width:"60%"}),_(t,e)}var ep=C('<div class="svelte-pkkpyl"> </div>'),tp=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 Do(t,e){var D;$(e,!0);const i=O(e,"onclick",3,()=>null),a=!!((D=window.PlayPilotLinkInjections)!=null&&D.no_affiliate);var r=tp();r.__click=function(...P){var S;(S=i())==null||S.apply(this,P)};var n=T(r),l=T(n);sr(l,{get title(){return e.title},width:30,height:43,lazy:!0});var s=I(n,2),c=T(s),d=T(c),u=I(c,2),p=T(u),v=T(p);bn(v,{size:11});var f=I(v),m=I(p,2),b=T(m),g=I(m,2),y=T(g),x=I(g,2);{var w=P=>{var S=ep(),V=T(S);U(()=>Z(V,`${e.title.length??""} min`)),_(P,S)};F(x,P=>{e.title.length&&P(w)})}var k=I(u,2);let M;var E=T(k),z=I(k,2);{var N=P=>{Mo(P,{get playlinks(){return e.title.providers}})};F(z,P=>{a||P(N)})}var A=I(s,2),j=T(A);Bt(j,{}),U(P=>{Z(d,e.title.title),Z(f,` ${e.title.imdb_score||"-"}`),Z(b,e.title.year),Z(y,P),M=me(k,1,"description svelte-pkkpyl",null,M,{large:a}),Z(E,e.title.description)},[()=>te(`Type: ${e.title.type}`)]),_(t,r),ee()}ce(["click"]);var ip=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 ap(t){var e=ip(),i=I(T(e),2),a=T(i);Oe(a,"",{},{width:"40%"});var r=I(a,2);Oe(r,"",{},{width:"60%"});var n=I(r,2);Oe(n,"",{},{width:"80%"}),_(t,e)}const rp=[{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 np(){const t=ci();if(!t)throw new Error("No token was provided");const e={region:await _n(),page:1,include_count:"false"};return await Qt(`/providers/?api-token=${t}&`+sn(e))}function lp(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=E=>Math.sqrt(E)*120,easing:l=qd}=a,s=getComputedStyle(t),c=s.transform==="none"?"":s.transform,[d,u]=s.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var p=op(t),v=t.clientWidth/i.width/p,f=t.clientHeight/i.height/p,m=e.left+e.width*d,b=e.top+e.height*u,g=i.left+i.width*d,y=i.top+i.height*u,x=(m-g)*v,w=(b-y)*f,k=e.width/i.width,M=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(x*x+w*w)):n,easing:l,css:(E,z)=>{var N=z*x,A=z*w,j=E+z*k,D=E+z*M;return`transform: ${c} translate(${N}px, ${A}px) scale(${j}, ${D});`}}}function op(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 sp=C('<div class="icon svelte-dfwzqz"> </div>'),cp=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),dp=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 up(t,e){$(e,!0);let i=O(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=O(e,"selected",23,()=>[]),r=O(e,"placeholder",19,()=>`${te("Search")}...`),n=O(e,"onchange",3,()=>null),l=G("");const s=H(c);function c(){var m;return(m=i())!=null&&m.length?o(l)?i().filter(({label:b})=>b.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(m){const b=a().find(g=>g===m);a(b?a().filter(g=>g!==m):[...a(),m]),n()(a())}var u=dp(),p=J(u),v=T(p),f=I(p,2);Ee(f,29,()=>o(s)||[],({label:m,value:b})=>b,(m,b)=>{let g=()=>o(b).label,y=()=>o(b).value;const x=H(()=>!!a().find(A=>A===y()));var w=cp(),k=T(w);let M;k.__click=()=>d(y());var E=T(k),z=I(E),N=T(z);Xi(N,()=>o(x),A=>{var j=sp(),D=T(j);U(()=>Z(D,o(x)?"-":"+")),ze(3,j,()=>ea,()=>({start:.25,duration:100})),_(A,j)}),U(()=>{M=me(k,1,"option svelte-dfwzqz",null,M,{active:o(x)}),Z(E,`${g()??""} `)}),Rc(w,()=>lp,()=>({duration:150})),_(m,w)}),U(()=>ae(v,"placeholder",r())),Za(v,()=>o(l),m=>q(l,m)),_(t,u),ee()}ce(["click"]);var pp=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),vp=C("<div><!> <!></div>");function qo(t,e){$(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),s=G(0);function c(b){const g=b.target;g&&g.closest(".dropdown")!==o(a)&&q(i,!1)}function d(b){q(i,!o(i)),o(i)&&(q(s,0),q(l,0),u(b.target))}async function u(b){if(await ba(),!o(r))return;const g=16,y=200,x=window.innerHeight,w=window.innerWidth,{top:k}=o(r).getBoundingClientRect(),{left:M}=b.getBoundingClientRect();q(n,M<window.innerWidth/2?"left":"right",!0),q(l,Math.max(Math.min(window.innerHeight-k-g,x*.6),y),!0),await ba();const{left:E,right:z}=o(r).getBoundingClientRect(),N=w-z;E-g<0?q(s,N):N-g<0&&q(s,N-g)}var p=vp();ye("click",Ae,c);var v=T(p);qe(v,()=>e.button,()=>({toggle:d}));var f=I(v,2);{var m=b=>{var g=pp();let y;var x=T(g);qe(x,()=>e.content),$e(g,w=>q(r,w),()=>o(r)),U(()=>y=Oe(g,"",y,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(s)?`${o(s)}px`:null})),ze(3,g,()=>ea,()=>({start:.85,duration:100})),_(b,g)};F(f,b=>{o(i)&&b(m)})}$e(p,b=>q(a,b),()=>o(a)),U(()=>me(p,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),_(t,p),ee()}var fp=C('<span class="label svelte-1mfj6k7"> </span>'),hp=C('<div class="active-line svelte-1mfj6k7"></div>'),gp=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 mp(t,e){$(e,!0);const i=O(e,"range",19,()=>[0,100]),a=O(e,"value",19,i),r=O(e,"label",3,""),n=O(e,"valueAppend",3,""),l=O(e,"formatFunction",3,B=>B.toString()),s=O(e,"onchange",3,()=>null);let c=i(),d=H(()=>Ma(c,2)),u=G(De(o(d)[0])),p=G(De(o(d)[1]));const v=H(()=>o(u)!==i()[0]||o(p)!==i()[1]),f=H(()=>100/(i()[1]-i()[0])*(o(u)-i()[0])),m=H(()=>100+100/(i()[1]-i()[0])*(o(p)-i()[1])-o(f)),b=H(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(u)-o(p))<5);Ue(()=>{g(a())}),Ue(()=>{q(p,Math.max(o(p),o(u)+1),!0),q(p,Math.min(o(p),i()[1]),!0),q(u,Math.min(o(u),o(p)-1),!0),q(u,Math.max(o(u),i()[0]),!0)});function g(B){(R=>{var K=Ma(R,2);q(u,K[0],!0),q(p,K[1],!0)})(B)}function y(){requestAnimationFrame(()=>s()([o(u),o(p)]))}var x=gp(),w=T(x);{var k=B=>{var R=fp(),K=T(R);U((X,Q)=>Z(K,`${r()??""}: ${X??""}—${Q??""} ${n()??""}`),[()=>l()(o(u)),()=>l()(o(p))]),_(B,R)};F(w,B=>{r()&&B(k)})}var M=I(w,2);let E;var z=T(M);z.__mouseup=y,z.__touchend=y,z.__input=function(...B){};let N;var A=I(z,2);A.__mouseup=y,A.__touchend=y,A.__input=function(...B){};let j;var D=I(A,2),P=T(D),S=I(D,2),V=T(S),W=I(S,2);{var Y=B=>{var R=hp();let K;U(()=>K=Oe(R,"",K,{left:o(f)+"%","--width":o(m)+"%"})),_(B,R)};F(W,B=>{o(v)&&B(Y)})}U(()=>{E=me(M,1,"range svelte-1mfj6k7",null,E,{halved:o(b)}),ae(z,"min",i()[0]),ae(z,"max",i()[1]),N=me(z,1,"svelte-1mfj6k7",null,N,{active:o(v)}),ae(A,"min",i()[0]),ae(A,"max",i()[1]),j=me(A,1,"svelte-1mfj6k7",null,j,{active:o(v)}),Z(P,o(u)),Z(V,o(p))}),Za(z,()=>o(u),B=>q(u,B)),Za(A,()=>o(p),B=>q(p,B)),_(t,x),ee()}ce(["mouseup","touchend","input"]);var yp=C(" <!>",1),bp=C('<p class="loading"> </p>'),_p=C('<p class="error"> </p>'),xp=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),wp=C('<div data-testid="filter-item"><!></div>');function kp(t,e){$(e,!0);let i=O(e,"filter",7),a=O(e,"onchange",3,()=>null),r=O(e,"data",7,null),n=O(e,"fetchData",3,null),l=O(e,"range",3,null),s=O(e,"valueAppend",3,"");const c=H(()=>{if(!i()[e.param])return!1;const{type:b,value:g}=i()[e.param];return!(b==="array"&&!g.length||b==="range"&&JSON.stringify(g)===JSON.stringify(l()))});let d=G(!!n());Ue(()=>{!r()&&n()&&u()});async function u(){try{q(d,!0),r(await n()())}catch{pe(ue.ExploreFetchProvidersFailed)}finally{q(d,!1)}}function p(b,g){if(pe(ue.ExploreSetFilter,null,{key:e.param,value:b,total_filter:i()}),!b){delete i()[e.param];return}i()[e.param]={type:g,value:b},a()()}var v=wp();let f;var m=T(v);qo(m,{button:(y,x)=>{let w=()=>x==null?void 0:x().toggle;zi(y,{variant:"border",size:"large",get active(){return o(c)},get onclick(){return w()},children:(k,M)=>{var E=yp(),z=J(E),N=I(z);Bt(N,{direction:"down"}),U(()=>Z(z,`${e.label??""} `)),_(k,E)},$$slots:{default:!0}})},content:y=>{var x=xp(),w=T(x);{var k=A=>{var j=bp(),D=T(j);U(P=>Z(D,`${P??""}...`),[()=>te("Loading")]),_(A,j)},M=A=>{var j=ve(),D=J(j);{var P=S=>{var V=_p(),W=T(V);U(Y=>Z(W,Y),[()=>te("An Error Occurred")]),_(S,V)};F(D,S=>{n()&&!r()&&S(P)},!0)}_(A,j)};F(w,A=>{o(d)?A(k):A(M,!1)})}var E=I(w,2);{var z=A=>{const j=H(()=>{var D;return(D=i()[e.param])==null?void 0:D.value});up(A,{get options(){return r()},get selected(){return o(j)},onchange:D=>p(D,"array")})},N=A=>{var j=ve(),D=J(j);{var P=S=>{const V=H(()=>{var W;return(W=i()[e.param])==null?void 0:W.value});mp(S,{get range(){return l()},get value(){return o(V)},get label(){return e.label},get valueAppend(){return s()},onchange:W=>p(W,"range")})};F(D,S=>{l()&&S(P)},!0)}_(A,j)};F(E,A=>{r()?A(z):A(N,!1)})}_(y,x)},$$slots:{button:!0,content:!0}}),U(()=>f=me(v,1,"filter-item svelte-er0ukh",null,f,{active:o(c)})),_(t,v),ee()}var Sp=C(" <!>",1),Tp=C("<button> </button>"),Ep=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function Pp(t,e){$(e,!0);const i=O(e,"filter",7),a=O(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:"-popularity"},{label:"New",value:"-new"},{label:"Top Rated",value:"-best"}],l=H(()=>{var c;return((c=n.find(({value:d})=>{var u;return d===((u=i()[r])==null?void 0:u.value)}))==null?void 0:c.label)||"Sort By"});function s(c){c?i()[r]={type:"string",value:c}:delete i()[r],a()()}qo(t,{button:(u,p)=>{let v=()=>p==null?void 0:p().toggle;zi(u,{variant:"link",get onclick(){return v()},children:(f,m)=>{var b=Sp(),g=J(b),y=I(g);Bt(y,{direction:"down"}),U(x=>Z(g,`${x??""} `),[()=>te(o(l))]),_(f,b)},$$slots:{default:!0}})},content:u=>{var p=Ep();Ee(p,21,()=>n,Ce,(v,f,m,b)=>{let g=()=>o(f).label,y=()=>o(f).value;const x=H(()=>{var E;return y()===((E=i()[r])==null?void 0:E.value)});var w=Tp();let k;w.__click=()=>s(y());var M=T(w);U(E=>{k=me(w,1,"option svelte-1ibt2k4",null,k,{active:o(x)}),Z(M,E)},[()=>te(g())]),_(v,w)}),_(u,p)},$$slots:{button:!0,content:!0}}),ee()}ce(["click"]);var Cp=ft('<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 zp(t){var e=Cp();_(t,e)}var jp=C("<div><!></div>"),Ip=C("<!> <!>",1),Ap=C('<div class="sorting"><!></div>'),Lp=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function Mp(t,e){$(e,!0);const i=O(e,"onchange",3,()=>null),a=O(e,"limit",3,!0),r=O(e,"showSorting",3,!0),n=3,l=[{label:te("Services"),param:"providers",fetchData:async()=>(await np()).map(g=>({label:g.name,value:g.slug}))},{label:te("Genres"),param:"genres",data:un.map(g=>({label:g.name,value:g.slug}))},{label:te("IMDb"),param:"imdb_score",range:[0,10]},{label:te("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:te("Runtime"),param:"length",range:[0,180],valueAppend:te("Minutes")},{label:te("Countries"),param:"country_codes",data:rp}];let s=G(De(a()));var c=Lp();let d;var u=T(c);Ee(u,21,()=>o(s)?l.slice(0,n):l,Ce,(g,y)=>{var x=jp(),w=T(x);kp(w,ao({get filter(){return e.filter},get onchange(){return i()}},()=>o(y))),ze(3,x,()=>ea,()=>({start:.75,duration:100})),_(g,x)});var p=I(u,2),v=T(p);{var f=g=>{zi(g,{variant:"link",onclick:()=>q(s,!o(s)),children:(y,x)=>{var w=Ip(),k=J(w);zp(k);var M=I(k),E=I(M);{let z=H(()=>o(s)?"down":"up");Bt(E,{get direction(){return o(z)}})}U(z=>Z(M,` ${z??""} `),[()=>te("All Filters")]),_(y,w)},$$slots:{default:!0}})};F(v,g=>{a()&&g(f)})}var m=I(v,2);{var b=g=>{var y=Ap(),x=T(y);Pp(x,{get filter(){return e.filter},get onchange(){return i()}}),ze(3,y,()=>Sa,()=>({x:5,duration:100})),_(g,y)};F(m,g=>{r()&&g(b)})}U(()=>d=me(c,1,"filter svelte-11dg01g",null,d,{limit:a()})),_(t,c),ee()}var Dp=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 qp(t){var e=Dp();_(t,e)}var Rp=C('<div class="filter svelte-qc99of"><!></div>'),Op=C("<div><!></div>"),Np=C("<!> <!>",1),Bp=C("<p>Something went wrong</p>"),Fp=C('<!> <div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function Vp(t,e){$(e,!0);const i=O(e,"searchQuery",3,""),a=De({});let r=G(De([])),n=G(1),l=null,s=0,c=G(De(m())),d=G(0);const u=H(()=>o(d)>500),p=H(()=>o(d)>1400?8:o(d)>900?6:o(d)>600?4:3),v=H(()=>o(u)?Xu:Do),f=H(()=>o(u)?$u:ap);Ue(()=>{i()&&b(i())});async function m(){s+=1;const P=s,S={page_size:24,page:o(n)};i()&&(S.search=i()),Object.entries(a).forEach(([W,{type:Y,value:B}])=>{if(Y==="string")S[W]=B;else if(Y==="array")S[W]=B.join(",");else if(Y==="range"){const[R,K]=B;S[W+"_min"]=R,S[W+"_max"]=K}});const V=await Io(S);return P===s&&q(r,[...o(r),...V.results],!0),V}async function b(P){l&&clearTimeout(l),l=setTimeout(()=>{y(),q(c,m(),!0),P&&(pe(ue.ExploreSearch,null,{query:P}),wt("pixels")&&rr(wa.SearchQuery,{query:P}))},100)}function g(){y(),q(c,m(),!0)}function y(){q(n,1),q(r,[],!0)}function x(){Qs(n),q(c,m(),!0),pe(ue.ExploreShowMore,null,{page:o(n)})}function w(P,S){ei({event:P,data:S}),pe(ue.ExploreTitleClick,S)}var k=Fp(),M=J(k);Xi(M,()=>o(u),P=>{var S=Rp(),V=T(S);{let W=H(()=>!o(u)),Y=H(()=>!i());Mp(V,{get filter(){return a},get limit(){return o(W)},onchange:g,get showSorting(){return o(Y)}})}_(P,S)});var E=I(M,2);let z,N;var A=T(E);Ee(A,17,()=>o(r),Ce,(P,S)=>{var V=ve(),W=J(V);Xi(W,()=>o(S).sid,Y=>{var B=ve(),R=J(B);Wr(R,()=>o(v),(K,X)=>{X(K,{get title(){return o(S)},onclick:Q=>w(Q,o(S))})}),_(Y,B)}),_(P,V)});var j=I(A,2);xa(j,()=>o(c),P=>{var S=ve(),V=J(S);Ee(V,16,()=>({length:24}),Ce,(W,Y)=>{var B=ve(),R=J(B);Wr(R,()=>o(f),(K,X)=>{X(K,{})}),_(W,B)}),_(P,S)},void 0,P=>{});var D=I(E,2);xa(D,()=>o(c),null,(P,S)=>{var V=H(()=>{var{next:Q}=o(S);return{next:Q}}),W=H(()=>o(V).next),Y=Np(),B=J(Y);{var R=Q=>{var oe=Op();let ne;var xe=T(oe);zi(xe,{size:"large",onclick:x,children:(je,Je)=>{var Re=qt();U(de=>Z(Re,de),[()=>te("Show More")]),_(je,Re)},$$slots:{default:!0}}),U(()=>ne=me(oe,1,"show-more svelte-qc99of",null,ne,{grid:o(u)})),_(Q,oe)};F(B,Q=>{o(W)&&Q(R)})}var K=I(B,2);{var X=Q=>{qp(Q)};F(K,Q=>{var oe;!((oe=o(r))!=null&&oe.length)&&o(n)===1&&Q(X)})}_(P,Y)},P=>{var S=Bp();_(P,S)}),U(()=>{z=me(E,1,"titles svelte-qc99of",null,z,{grid:o(u)}),N=Oe(E,"",N,{"--grid-columns":o(p)})}),Nt(E,"clientWidth",P=>q(d,P)),_(t,k),ee()}var Hp=ft('<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 Up(t){var e=Hp();_(t,e)}var Wp=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Gp(t,e){$(e,!0);let i=G("");var a=Wp(),r=T(a),n=T(r);Up(n);var l=I(r,2);l.__input=()=>e.oninput(o(i)),U(s=>ae(l,"placeholder",s),[()=>te("Search Movies And Shows")]),Za(l,()=>o(i),s=>q(i,s)),_(t,a),ee()}ce(["input"]);var Kp=C('<p class="description svelte-l2apr8"> </p>'),Yp=C('<div class="navigation svelte-l2apr8" role="navigation"></div>'),Zp=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>');function Jp(t,e){$(e,!0);let i=O(e,"navigate",3,()=>null),a=O(e,"searchQuery",15,""),r=null,n=G(null);Ue(()=>{var x;q(n,((x=r==null?void 0:r.closest(Oo))==null?void 0:x.style.height)||null,!0)}),ct(async()=>{var x;pe(ue.ExplorePageView),(x=window.PlayPilotLinkInjections.ads)!=null&&x.length||(window.PlayPilotLinkInjections.ads=await wo())});var l=Zp();let s;var c=T(l),d=T(c),u=I(T(d),2),p=T(u);Ot(u,x=>Le==null?void 0:Le(x));var v=I(u,2);{var f=x=>{var w=Kp(),k=T(w);U(M=>Z(k,M),[()=>te("Streaming Guide Description")]),_(x,w)};F(v,x=>{ta()||x(f)})}var m=I(c,2);{var b=x=>{var w=Yp();Ee(w,21,()=>e.routes,Ce,(k,M)=>{{let E=H(()=>e.currentRoute.key===o(M).key);zi(k,{variant:"border",size:"large",get active(){return o(E)},onclick:()=>i()(o(M)),children:(z,N)=>{var A=qt();U(j=>Z(A,j),[()=>te(o(M).label)]),_(z,A)},$$slots:{default:!0}})}}),_(x,w)};F(m,x=>{ta()&&x(b)})}var g=I(m,2);Gp(g,{oninput:x=>a(x)});var y=I(g,2);qe(y,()=>e.children),$e(l,x=>r=x,()=>r),U(x=>{s=Oe(l,"",s,{height:o(n)}),Z(p,x)},[()=>te("Streaming Guide")]),_(t,l),ee()}function Ro(t,e){$(e,!0);const i=[{key:"results",label:"Explore",component:Vp}];ta()&&i.unshift({key:"home",label:"Home",component:Fu});let a=G(De(i[0])),r=G("");const n=H(()=>o(a).component);Ue(()=>{o(r)&&q(a,i.find(s=>s.key==="results"),!0)});function l(s){q(a,s,!0)}Jp(t,{get routes(){return i},get currentRoute(){return o(a)},navigate:l,get searchQuery(){return o(r)},set searchQuery(s){q(r,s,!0)},children:(s,c)=>{var d=ve(),u=J(d);Wr(u,()=>o(n),(p,v)=>{v(p,{get searchQuery(){return o(r)}})}),_(s,d)},$$slots:{default:!0}}),ee()}const Oo="[data-playpilot-explore]",Xp="[data-playpilot-pre-consent-explore]",No="playpilot-explore-custom-style";let dr=null;function Bo(){var e;const t=document.querySelector(Oo);t&&(Fo(),(e=document.querySelector(Xp))==null||e.remove(),t.innerHTML="",dr=Rt(Ro,{target:t}),$p())}function Fo(){var t;dr&&(Zi(dr),dr=null,(t=document.querySelector("#"+No))==null||t.remove())}function Qp(){var c;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;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),s=l.nodeName==="A"?l:l.querySelector("a");return s.classList.remove("active"),s.innerText=i||"Streaming Guide",s.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function $p(){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=No,document.body.appendChild(e)}function ta(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}var ev=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),tv=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),iv=C('<a class="poster svelte-12ph9f6"><!></a>'),av=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a></div>'),rv=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>'),nv=C('<div class="titles"><!></div>');function ur(t,e){$(e,!0);let i=O(e,"heading",3,""),a=O(e,"expandable",3,!1),r=O(e,"expandedTitle",15,null),n=O(e,"expandedRailKey",15,null),l=O(e,"onclick",3,()=>null);const s=an(),d=jr("scope")==="popover"?jr("title"):null;let u=G(null),p=G(null);ct(()=>{a()&&f()});function v(w,k,M){w==null||w.preventDefault();const E=k[M];if(a()&&!g(E)){m(E);return}ta()?ei({event:w,type:"titles-rail",data:k,returnToTitle:d,props:{initialIndex:M}}):ei({event:w,data:E,returnToTitle:d}),l()(E)}async function f(w=500){const k=await e.titles,M=await qu(k);M&&setTimeout(()=>{r()||n()&&n()!==s||m(M)},w)}function m(w){n(s),r(w)}function b(){n()===s||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(E=>E.getBoundingClientRect().top>0).sort((E,z)=>E.getBoundingClientRect().top-z.getBoundingClientRect().top)[0]!==o(u)||(r(null),n(null),f(0))}function g(w){var k;return n()===s&&w.sid===((k=r())==null?void 0:k.sid)}var y=nv();ye("scroll",Ae,b);var x=T(y);xa(x,()=>e.titles,w=>{lr(w,{get heading(){return i()},children:(k,M)=>{var E=ve(),z=J(E);Ee(z,16,()=>({length:12}),Ce,(N,A)=>{var j=rv();_(N,j)}),_(k,E)},$$slots:{default:!0}})},(w,k)=>{var M=ve(),E=J(M);{var z=N=>{lr(N,{get heading(){return i()},onchange:A=>{a()&&setTimeout(()=>v(null,o(k),A),250)},onresize:()=>{var A;return(A=o(p))==null?void 0:A.reposition()},get slider(){return o(p)},set slider(A){q(p,A,!0)},children:(A,j)=>{var D=ve(),P=J(D);Ee(P,17,()=>o(k),Ce,(S,V,W,Y)=>{const B=H(()=>g(o(V))),R=H(()=>Lo(o(V))),K=H(()=>de=>v(de,o(k),W));var X=av();let Q;var oe=T(X),ne=T(oe);{var xe=de=>{var Te=tv(),nt=T(Te);nt.__click=function(...Ge){var lt;(lt=o(K))==null||lt.apply(this,Ge)};var Be=I(nt,2);{var se=Ge=>{wn(Ge,{get embeddable_url(){return o(V).embeddable_url},muted:!0,loop:!0})},et=Ge=>{var lt=ev();U(()=>ae(lt,"src",o(V).medium_poster)),_(Ge,lt)};F(Be,Ge=>{o(V).embeddable_url?Ge(se):Ge(et,!1)})}U(()=>ae(nt,"href",o(R))),ze(2,Te,()=>$t,()=>({delay:200,duration:200})),_(de,Te)},je=de=>{var Te=iv();Te.__click=function(...Be){var se;(se=o(K))==null||se.apply(this,Be)};var nt=T(Te);sr(nt,{get title(){return o(V)},width:96,height:144}),U(()=>ae(Te,"href",o(R))),_(de,Te)};F(ne,de=>{o(B)?de(xe):de(je,!1)})}var Je=I(oe,2);Je.__click=function(...de){var Te;(Te=o(K))==null||Te.apply(this,de)};var Re=T(Je);U(()=>{Q=me(X,1,"title svelte-12ph9f6",null,Q,{expanded:o(B)}),ae(Je,"href",o(R)),Z(Re,o(V).title)}),_(S,X)}),_(A,D)},$$slots:{default:!0}})};F(E,N=>{var A;(A=o(k))!=null&&A.length&&N(z)})}_(w,M)}),$e(y,w=>q(u,w),()=>o(u)),U(()=>ae(y,"data-role",a()?"expandable-rail":null)),_(t,y),ee()}ce(["click"]);function lv(t,e){$(e,!0);const i=or(e.title);{let a=H(()=>te("Similar Titles"));ur(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>pe(ue.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ee()}function ov(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 sv=ft('<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 cv(t){var e=sv();_(t,e)}var dv=ft('<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 uv(t){var e=dv();_(t,e)}var pv=ft('<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 vv(t){var e=pv();_(t,e)}var fv=ft('<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 hv(t){var e=fv();_(t,e)}var gv=C('<button class="svelte-827qd7"><!></button>'),mv=C('<div class="content svelte-827qd7"><!></div>'),yv=C("<div><!> <!></div>");function bv(t,e){const i=O(e,"label",3,""),a=O(e,"align",3,"right");let r=G(!1),n=G(null);function l(f){var b;f.currentTarget===((b=o(n))==null?void 0:b.querySelector("button"))&&f.stopPropagation(),q(r,!o(r))}var s=yv();ye("click",Ae,()=>q(r,!1));var c=T(s);{var d=f=>{var m=ve(),b=J(m);qe(b,()=>e.button,()=>({toggle:l})),_(f,m)},u=f=>{var m=gv();m.__click=l;var b=T(m);hv(b),U(()=>{ae(m,"aria-label",i()),ae(m,"aria-expanded",o(r))}),_(f,m)};F(c,f=>{e.button?f(d):f(u,!1)})}var p=I(c,2);{var v=f=>{var m=mv(),b=T(m);qe(b,()=>e.children),ze(1,m,()=>ea,()=>({duration:50,start:.85})),_(f,m)};F(p,f=>{o(r)&&f(v)})}$e(s,f=>q(n,f),()=>o(n)),U(()=>me(s,1,`context-menu ${a()??""}`,"svelte-827qd7")),_(t,s)}ce(["click"]);var _v=C("<!> ",1),xv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function wv(t,e){$(e,!0);let i=O(e,"url",7);const r=window.innerWidth<Pi&&typeof navigator.share<"u";ct(()=>{i(i()+"?utm_source=tpi")});function n(c,d){if(!r){d(c);return}pe(ue.ShareTitle,null,{title:e.title,url:Ci(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){pe(ue.ShareTitle,null,{title:e.title,url:Ci(),method:"copy"}),ov(i())}function s(){pe(ue.ShareTitle,null,{title:e.title,url:Ci(),method:"email"}),window.location.href=`mailto:?body=${i()}`}bv(t,{button:(d,u)=>{let p=()=>u==null?void 0:u().toggle;zi(d,{onclick:v=>n(v,p()),children:(v,f)=>{var m=_v(),b=J(m);cv(b);var g=I(b);U(y=>Z(g,` ${y??""}`),[()=>te("Share")]),_(v,m)},$$slots:{default:!0}})},children:(d,u)=>{var p=xv(),v=J(p);v.__click=l;var f=T(v);uv(f);var m=I(f),b=I(v,2);b.__click=s;var g=T(b);vv(g);var y=I(g);U((x,w)=>{Z(m,` ${x??""}`),Z(y,` ${w??""}`)},[()=>te("Copy URL"),()=>te("Email")]),_(d,p)},$$slots:{button:!0,default:!0}}),ee()}ce(["click"]);var kv=ft('<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 Sv(t){var e=kv();_(t,e)}var Tv=C("<!> ",1);function Ev(t,e){$(e,!0);function i(){Mu(e.title),pe(ue.TrailerClick,e.title)}zi(t,{onclick:i,children:(a,r)=>{var n=Tv(),l=J(n);Sv(l);var s=I(l);U(c=>Z(s,` ${c??""}`),[()=>te("Watch Trailer")]),_(a,n)},$$slots:{default:!0}}),ee()}var Pv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Cv(t,e){const i=O(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=H(()=>Math.max(o(a),o(r)));var l=Pv(),s=T(l);wn(s,{get embeddable_url(){return i()},muted:!0,loop:!0}),U(()=>Oe(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),Nt(l,"clientWidth",c=>q(a,c)),Nt(l,"clientHeight",c=>q(r,c)),_(t,l)}var zv=C("<div> </div>"),jv=C('<img alt=""/>'),Iv=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 kn(t,e){var Be;$(e,!0);const i=O(e,"small",3,!1),a=O(e,"useVideoBackground",3,!0),r=!!((Be=window.PlayPilotLinkInjections)!=null&&Be.no_affiliate);Ir("title",e.title);const n=H(()=>(!i()||r)&&e.title.description);let l=G(!1),s=G(!1),c=G(!1),d=G(!1);Ue(()=>{a()&&e.title.embeddable_url&&Ao(xn(e.title.embeddable_url)).then(se=>{q(d,se,!0)})});var u=Iv(),p=J(u);let v;var f=T(p),m=T(f);let b;var g=T(m);sr(g,{get title(){return e.title},onload:()=>q(l,!0),lazy:!1});var y=I(m,2);let x;var w=T(y);Ot(y,(se,et)=>Le==null?void 0:Le(se,et),()=>2);var k=I(y,2),M=T(k),E=T(M);bn(E,{});var z=I(E),N=I(M,2);$d(N,{get genres(){return e.title.genres}});var A=I(N,2),j=T(A),D=I(A,2),P=T(D),S=I(D,2);{var V=se=>{var et=zv(),Ge=T(et);U(lt=>Z(Ge,`${e.title.length??""} ${lt??""}`),[()=>te("Minutes")]),_(se,et)};F(S,se=>{!i()&&e.title.length&&se(V)})}var W=I(k,2),Y=T(W);{var B=se=>{Ev(se,{get title(){return e.title}})};F(Y,se=>{e.title.embeddable_url&&se(B)})}var R=I(Y,2);{let se=H(()=>Lo(e.title));wv(R,{get title(){return e.title.title},get url(){return o(se)}})}var K=I(f,2),X=T(K);{var Q=se=>{gu(se,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>pe(ue.ExpandTitleDescription,e.title)})};F(X,se=>{o(n)&&se(Q)})}var oe=I(X,2);{var ne=se=>{pu(se,{get playlinks(){return e.title.providers},get title(){return e.title}})};F(oe,se=>{r||se(ne)})}var xe=I(oe,2);ju(xe,{get title(){return e.title}});var je=I(xe,2);lv(je,{get title(){return e.title}});var Je=I(p,2);let Re;var de=T(Je);{var Te=se=>{Cv(se,{get embeddable_url(){return e.title.embeddable_url}})},nt=se=>{var et=ve(),Ge=J(et);Xi(Ge,()=>o(c),lt=>{var mi=jv();let ie;U(be=>{ae(mi,"src",be),ie=me(mi,1,"svelte-16ajinh",null,ie,{loaded:o(s),blur:o(c)})},[()=>nr(o(c)?e.title.standing_poster:e.title.medium_poster)]),ye("load",mi,()=>q(s,!0)),ye("error",mi,()=>q(c,!0)),_(lt,mi)}),_(se,et)};F(de,se=>{a()&&o(d)?se(Te):se(nt,!1)})}U(se=>{v=me(p,1,"content svelte-16ajinh",null,v,{small:i()}),b=me(m,1,"poster svelte-16ajinh",null,b,{loaded:o(l)}),x=me(y,1,"heading svelte-16ajinh",null,x,{truncate:i()}),Z(w,e.title.title),Z(z,` ${e.title.imdb_score??""}`),Z(j,e.title.year),Z(P,se),Re=me(Je,1,"background svelte-16ajinh",null,Re,{small:i()})},[()=>te(`Type: ${e.title.type}`)]),_(t,u),ee()}function ia(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 Vo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},Sn={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Av({key:t}){var a,r,n;if(!wt("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 Ho(t){const e=Av(t);return Math.floor(e*t.numberOfVariants)}function Lv(t){var i;const e=Ho(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function Mv(t,e=1){return wt("tracking")?Ho(t)===e:!1}function Dv(t){const e=Lv(t);pe(ue.SplitTestView,null,{key:t.key,variant:e})}var qv=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Rv=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Ov=C('<button class="button svelte-1mt6g1y"> </button>'),Nv=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),Bv=C('<div class="background svelte-1mt6g1y"></div>'),Fv=C("<!> <!>",1),Vv=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Uo(t,e){$(e,!0),pe(ue.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),Dv(Sn.TopScrollFormat);const i=H(()=>e.campaign.disclaimer),a=H(()=>e.campaign.content),r=H(()=>e.campaign.cta),n=H(()=>o(a).format),l=H(()=>o(a).header),s=H(()=>o(a).header_logo),c=H(()=>o(a).image_uuid),d=H(()=>o(r).header),u=H(()=>o(r).url),p=H(()=>o(n)==="large"),v=H(()=>Co(o(c),Vo.TopScrollBackground)),f=H(()=>Co(o(c),Vo.TopScrollContent));let m=G(0);function b(){pe(ue.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var g=Vv();g.__click=b;let y,x;var w=T(g),k=T(w);{var M=A=>{var j=qv();U(()=>{ae(j,"src",o(f)),ae(j,"alt",o(l))}),_(A,j)},E=A=>{var j=Nv(),D=J(j);{var P=B=>{var R=Rv();U(()=>ae(R,"src",o(s))),_(B,R)};F(D,B=>{o(s)&&B(P)})}var S=I(D,2),V=T(S),W=I(S,2);{var Y=B=>{var R=Ov(),K=T(R);U(()=>Z(K,o(d))),_(B,R)};F(W,B=>{o(d)&&B(Y)})}U(()=>Z(V,o(l))),_(A,j)};F(k,A=>{o(p)?A(M):A(E,!1)})}var z=I(w,2);{var N=A=>{var j=Fv(),D=J(j);{var P=W=>{var Y=Bv();let B;U(()=>B=Oe(Y,"",B,{"--background":`url('${o(v)??""}')`})),_(W,Y)};F(D,W=>{o(c)&&W(P)})}var S=I(D,2);{var V=W=>{mn(W,{get disclaimer(){return o(i)}})};F(S,W=>{o(i)&&W(V)})}_(A,j)};F(z,A=>{o(p)||A(N)})}Ot(g,(A,j)=>ia==null?void 0:ia(A,j),()=>({onclick:b})),Ti(()=>Nt(g,"clientWidth",A=>q(m,A))),U(()=>{ae(g,"href",o(u)),y=me(g,1,"top-scroll svelte-1mt6g1y",null,y,{simple:o(p)}),x=Oe(g,"",x,{"--width":`${o(m)??""}px`})}),_(t,g),ee()}ce(["click"]);var Hv=C('<div class="content svelte-r7ubzi"><!></div>'),Uv=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function Wv(t,e){let i=G(!1);var a=Uv();a.__touchstart=()=>q(i,!o(i));var r=T(a);qe(r,()=>e.children);var n=I(r,2);{var l=s=>{var c=Hv(),d=T(c);qe(d,()=>e.content),ze(1,c,()=>$t,()=>({duration:100})),_(s,c)};F(n,s=>{o(i)&&s(l)})}ye("mouseenter",a,()=>q(i,!0)),ye("mouseleave",a,()=>q(i,!1)),_(t,a)}ce(["touchstart"]);var Gv=C('<div class="info svelte-qcpiki"><!></div>'),Kv=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),Yv=C('<span class="name svelte-qcpiki"> </span>'),Zv=C('<div class="subheader svelte-qcpiki"> </div>'),Jv=C('<div class="action svelte-qcpiki"> </div>'),Xv=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),Qv=C('<img class="background svelte-qcpiki" alt=""/>'),$v=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 Wo(t,e){$(e,!0);const i=O(e,"compact",3,!1),a=H(()=>e.campaign.disclaimer),r=H(()=>e.campaign.content),n=H(()=>e.campaign.cta),l=H(()=>e.campaign.campaign_type),s=H(()=>o(r).header),c=H(()=>o(r).subheader),d=H(()=>o(r).header_logo),u=H(()=>o(r).image),p=H(()=>o(r).video),v=H(()=>o(n).header),f=H(()=>o(n).url),m=H(()=>o(n).subheader);let b=G(0);pe(ue.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function g(){pe(ue.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var y=tf();let x;y.__click=g;var w=T(y);{var k=P=>{var S=Gv(),V=T(S);{var W=B=>{Wv(B,{content:K=>{var X=qt();U(()=>Z(X,o(m))),_(K,X)},children:(K,X)=>{var Q=qt("Ad");_(K,Q)},$$slots:{content:!0,default:!0}})},Y=B=>{var R=qt();U(()=>Z(R,o(m))),_(B,R)};F(V,B=>{i()?B(W):B(Y,!1)})}_(P,S)};F(w,P=>{o(m)&&P(k)})}var M=I(w,2);{var E=P=>{var S=Xv(),V=T(S);{var W=ne=>{var xe=Kv();U(()=>ae(xe,"src",o(d))),_(ne,xe)};F(V,ne=>{o(d)&&ne(W)})}var Y=I(V,2),B=T(Y);{var R=ne=>{var xe=Yv(),je=T(xe);U(()=>Z(je,o(s))),_(ne,xe)};F(B,ne=>{o(s)&&ne(R)})}var K=I(B,2);{var X=ne=>{var xe=Zv(),je=T(xe);U(()=>Z(je,o(c))),_(ne,xe)};F(K,ne=>{o(c)&&ne(X)})}var Q=I(Y,2);{var oe=ne=>{var xe=Jv(),je=T(xe);U(()=>Z(je,o(v))),_(ne,xe)};F(Q,ne=>{o(v)&&ne(oe)})}Nt(S,"clientHeight",ne=>q(b,ne)),_(P,S)};F(M,P=>{(o(d)||o(s)||o(c)||o(v))&&P(E)})}var z=I(M,2);{var N=P=>{var S=Qv();U(()=>ae(S,"src",o(u))),_(P,S)},A=P=>{var S=ve(),V=J(S);{var W=Y=>{var B=$v();B.muted=!0;var R=T(B);U(()=>ae(R,"src",o(p))),_(Y,B)};F(V,Y=>{o(l)==="video"&&o(p)&&Y(W)},!0)}_(P,S)};F(z,P=>{o(l)==="image"&&o(u)?P(N):P(A,!1)})}var j=I(z,2);{var D=P=>{var S=ef();let V;var W=T(S);mn(W,{get disclaimer(){return o(a)}}),U(()=>V=Oe(S,"",V,{"--offset":`${o(b)??""}px`})),_(P,S)};F(j,P=>{o(a)&&P(D)})}Ot(y,(P,S)=>ia==null?void 0:ia(P,S),()=>({onclick:g})),U(()=>{ae(y,"href",o(f)),x=me(y,1,"display svelte-qcpiki",null,x,{compact:i()})}),_(t,y),ee()}ce(["click"]);var af=C('<button class="call-to-action svelte-1677ll3"><div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></button>');function rf(t,e){$(e,!1),$r();var i=af();i.__click=()=>ei({type:"explore"});var a=I(T(i),2),r=T(a);Bt(r,{}),_(t,i),ee()}ce(["click"]);function nf(t,e){var p,v;$(e,!0);const i=f=>{var m=ve(),b=J(m);{var g=x=>{Uo(x,{get campaign(){return l}})},y=x=>{rf(x,{})};F(b,x=>{l?x(g):x(y,!1)})}_(f,m)},a=f=>{var m=ve(),b=J(m);{var g=y=>{Wo(y,{get campaign(){return s}})};F(b,y=>{s&&y(g)})}_(f,m)},r=O(e,"initialScrollPosition",3,0),n=io(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=ka("top_scroll"),s=ka("card"),c=(v=(p=window.PlayPilotLinkInjections)==null?void 0:p.config)==null?void 0:v.explore_insert_cta_in_tpi;let d=!1;pe(ue.TitleModalView,e.title),ct(()=>{const f=Date.now();return()=>pe(ue.TitleModalClose,e.title,{time_spent:Date.now()-f})});function u(){d||(pe(ue.TitleModalScroll,e.title),d=!0)}{let f=H(()=>l||c?i:null),m=H(()=>s?a:null);ar(t,{onscroll:u,get initialScrollPosition(){return r()},get bubble(){return o(f)},get prepend(){return o(m)},tall:!0,children:(b,g)=>{kn(b,ao({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}ee()}var lf=C(" <strong> </strong>",1),of=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),sf=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),cf=C('<button class="more svelte-ke01cs"> </button>'),df=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 uf(t,e){$(e,!0);const i=H(()=>e.participant.name),a=H(()=>e.participant.birth_date),r=H(()=>e.participant.death_date),n=30;let l=G(De([])),s=G(1),c=G(!0),d=G(!0);ct(p),wt("pixels")&&rr(wa.ParticipantView,{participant:e.participant.name});function u(j){return new Date(j).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function p(){q(d,!0);try{const j=await bu(e.participant,{page:o(s)});q(l,[...o(l),...j],!0),q(c,(j==null?void 0:j.length)>=n)}catch{q(c,!1)}finally{q(d,!1),q(s,o(s)+1)}}var v=df(),f=J(v),m=T(f),b=T(m);Ot(m,(j,D)=>Le==null?void 0:Le(j,D),()=>2);var g=I(m,2);{var y=j=>{var D=of(),P=T(D),S=I(P),V=T(S),W=I(S);{var Y=B=>{var R=lf(),K=J(R),X=I(K),Q=T(X);U((oe,ne)=>{Z(K,`, ${oe??""} `),Z(Q,ne)},[()=>te("Died On"),()=>u(o(r))]),_(B,R)};F(W,B=>{o(r)&&B(Y)})}U((B,R)=>{Z(P,`${B??""} `),Z(V,R)},[()=>te("Born On"),()=>u(o(a))]),_(j,D)};F(g,j=>{o(a)&&j(y)})}var x=I(f,2),w=T(x),k=T(w);Ot(w,(j,D)=>Le==null?void 0:Le(j,D),()=>3);var M=I(w,2),E=T(M);Ee(E,17,()=>o(l),Ce,(j,D)=>{Do(j,{get title(){return o(D)},onclick:P=>ei({event:P,data:o(D)})})});var z=I(E,2);{var N=j=>{var D=ve(),P=J(D);Ee(P,16,()=>({length:6}),Ce,(S,V)=>{var W=sf();_(S,W)}),_(j,D)},A=j=>{var D=ve(),P=J(D);{var S=V=>{var W=cf();W.__click=p;var Y=T(W);U(B=>Z(Y,B),[()=>te("Show More")]),_(V,W)};F(P,V=>{o(c)&&V(S)},!0)}_(j,D)};F(z,j=>{o(d)?j(N):j(A,!1)})}U(j=>{Z(b,o(i)),Z(k,j)},[()=>te("Credits")]),_(t,v),ee()}ce(["click"]);function pf(t,e){$(e,!0);const i=O(e,"initialScrollPosition",3,0);let a=G(0);pe(ue.ParticipantModalView,null,{participant:e.participant.name}),ct(()=>{const r=Date.now();return()=>pe(ue.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),ar(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{uf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),Qr("innerWidth",r=>q(a,r,!0)),ee()}var vf=C('<div class="content svelte-16hba4m"><!></div>');function ff(t,e){const i=O(e,"initialScrollPosition",3,0);ar(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=vf(),l=T(n);Ro(l,{}),_(a,n)},$$slots:{default:!0}})}function hf(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 gf=ft('<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 mf(t){var e=gf();_(t,e)}var yf=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),bf=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),_f=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),xf=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function wf(t,e){$(e,!0),Ir("scope","popover");const i=e.bubble&&Mv(Sn.TopScrollFormat,1),a=H(()=>({duration:hn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),s=G(!1),c=G(0),d=G(0),u=G(0);ct(async()=>{await ba(),p(),await f(),e.append&&requestAnimationFrame(()=>{v(),f()}),await ba(),b()});function p(){if(!o(r))return;const{top:D,right:P,bottom:S,height:V}=o(r).getBoundingClientRect(),W=m();q(n,D-W<0&&window.innerHeight-S>D+V,!0);const Y=window.innerWidth-P-W;P+W>window.innerWidth&&(o(r).style.left=`${Y}px`)}function v(){q(l,o(c)>450)}async function f(){if(q(u,0),await new Promise(B=>requestAnimationFrame(B)),!o(r))return;const{top:D,height:P}=o(r).getBoundingClientRect(),S=m(),V=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,W=o(l)?o(d)+V:0,Y=o(n)?window.innerHeight-D-S-W:D+P-W-S;q(u,Math.min(Y,window.innerHeight*.8),!0)}function m(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function b(){var W;if(!((W=o(r))!=null&&W.firstChild))return;const D=o(r).firstChild,{offsetHeight:P,scrollHeight:S,scrollTop:V}=D;S<=P?q(s,!1):q(s,V+P<S)}var g=xf();let y,x;var w=T(g),k=T(w);qe(k,()=>e.children);var M=I(k,2);{var E=D=>{var P=yf(),S=T(P),V=T(S);mf(V),ze(3,P,()=>$t,()=>({duration:100})),_(D,P)};F(M,D=>{o(s)&&D(E)})}var z=I(w,2);{var N=D=>{var P=bf(),S=T(P);qe(S,()=>e.bubble),ze(7,P,()=>Sa,()=>o(a)),_(D,P)};F(z,D=>{e.bubble&&D(N)})}var A=I(z,2);{var j=D=>{var P=_f(),S=T(P);qe(S,()=>e.append),ze(7,P,()=>Sa,()=>o(a)),Nt(P,"clientHeight",V=>q(d,V)),_(D,P)};F(A,D=>{e.append&&o(l)&&D(j)})}$e(g,D=>q(r,D),()=>o(r)),U(()=>{y=me(g,1,"popover svelte-wxwoko",null,y,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),x=Oe(g,"",x,{"--max-height":o(u)?o(u)+"px":null})}),ye("scroll",w,b),ze(7,w,()=>Sa,()=>o(a)),Nt(g,"clientHeight",D=>q(c,D)),_(t,g),ee()}var kf=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Sf(t,e){$(e,!0);const i=u=>{var p=ve(),v=J(p);{var f=m=>{Uo(m,{get campaign(){return r}})};F(v,m=>{r&&m(f)})}_(u,p)},a=u=>{var p=ve(),v=J(p);{var f=m=>{Wo(m,{get campaign(){return n},compact:!0})};F(v,m=>{n&&m(f)})}_(u,p)},r=ka("top_scroll"),n=ka("card");let l=G(null);pe(ue.TitlePopoverView,e.title),ct(()=>{s();const u=Date.now();return()=>pe(ue.TitlePopoverClose,e.title,{time_spent:Date.now()-u})});function s(){const u=e.event.target;if(!(u!=null&&u.getClientRects))return;const p=Array.from(u.getClientRects()),f=p.map(b=>b.x).map(b=>Math.abs(b-e.event.clientX)),m=p[f.indexOf(Math.min(...f))];o(l).style.top=m.top+window.scrollY+"px",o(l).style.left=m.left+window.scrollX+"px",o(l).style.height=m.height+"px"}var c=kf(),d=T(c);{let u=H(()=>n?a:null),p=H(()=>r?i:null);wf(d,{get append(){return o(u)},get bubble(){return o(p)},children:(v,f)=>{kn(v,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}$e(c,u=>q(l,u),()=>o(l)),_(t,c),ee()}let pr=null,ji=null;function Tf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;ji&&vr();const i=t.currentTarget;pr=i,setTimeout(()=>{pr===i&&(ji=Rt(Sf,{target:zn(),props:{event:t,title:e.title_details}}))},100)}async function vr(t=!0){if(ji){const e=Zi(ji,{outro:t});pr=null,ji=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Ef(t){if(!ji)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(ui)||e.closest(ti)||vr()}function Pf(){pr=null}function Cf(){return!!ji}var zf=C('<div class="content svelte-c2erhr"><!></div>'),jf=C("<div><!></div>"),If=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Af=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Lf=C("<!> <!>",1),Mf=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Df(t,e){$(e,!0);const i=O(e,"initialIndex",3,0),a=300;let r,n=G(!1);ct(()=>{setTimeout(()=>{r==null||r.setIndex(i()),requestAnimationFrame(()=>q(n,!0))})}),ar(t,{blur:!0,dialog:s=>{var c=Mf(),d=J(c);Oe(d,"",{},{"--transition-duration":"300ms"});var u=T(d);{const f=(g,y)=>{let x=()=>y==null?void 0:y().currentIndex;var w=ve(),k=J(w);Ee(k,17,()=>e.items,Ce,(M,E,z)=>{var N=jf();let A;N.__click=()=>r.setIndex(z);var j=T(N);{var D=P=>{var S=zf(),V=T(S);qe(V,()=>e.each,()=>o(E),x),ze(3,S,()=>$t,()=>({duration:o(n)?a:0})),_(P,S)};F(j,P=>{(Math.abs(z-x())===1||x()===z)&&P(D)})}U(()=>A=me(N,1,"item svelte-c2erhr",null,A,{active:z===x()})),_(M,N)}),_(g,w)},m=(g,y)=>{let x=()=>y==null?void 0:y().setIndex,w=()=>y==null?void 0:y().currentIndex,k=()=>y==null?void 0:y().reachedEnd;var M=Lf(),E=J(M);{var z=j=>{var D=If();D.__click=()=>x()(w()-1);var P=T(D);Bt(P,{size:21,direction:"left",title:"Previous"}),_(j,D)};F(E,j=>{w()>0&&j(z)})}var N=I(E,2);{var A=j=>{var D=Af();D.__click=()=>x()(w()+1);var P=T(D);Bt(P,{size:21,title:"Next"}),_(j,D)};F(N,j=>{k()||j(A)})}_(g,M)};let b=H(()=>o(n)?a:0);$e(jo(u,{threshold:40,moveThreshold:40,get transitionDuration(){return o(b)},children:f,controls:m,$$slots:{default:!0,controls:!0}}),g=>r=g,()=>r)}var p=I(d,2),v=T(p);fn(v,{size:"42px",onclick:()=>En(),"aria-label":"Close",children:(f,m)=>{vn(f,{size:24})},$$slots:{default:!0}}),ze(7,p,()=>ea),_(s,c)},$$slots:{dialog:!0}}),ee()}ce(["click"]);function qf(t,e){$(e,!0);const i=O(e,"initialIndex",3,0);Df(t,{get items(){return e.titles},get initialIndex(){return i()},each:(r,n=ut,l=ut)=>{{let s=H(()=>{var c;return n().sid===((c=e.titles[l()])==null?void 0:c.sid)});kn(r,{get title(){return n()},get useVideoBackground(){return o(s)}})}},$$slots:{each:!0}}),ee()}const Ze=[];function ei({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&yo(e))return;e==null||e.preventDefault(),Ze!=null&&Ze.length&&Tn();const s=zn(),c={initialScrollPosition:r,...l},d=Rf({type:t,target:s,data:a,props:c});n&&Go({type:t,injection:i,data:n}),Go({type:t,injection:i,data:a,scrollPosition:r,component:d})}function Rf({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Rt(pf,{target:e,props:{participant:i,...a}}):t==="explore"?Rt(ff,{target:e,props:{...a}}):t==="titles-rail"?Rt(qf,{target:e,props:{titles:i,...a}}):Rt(nf,{target:e,props:{title:i,...a}})}function Go({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){Ze.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function Tn(t=!0){Ze.length&&(Bf(),Zi(Ze[Ze.length-1].component,{outro:t}))}function Of(t=!0){Tn(t),Ze.pop()}function En(t=!0){for(Tn(t);Ze.length>0;)Ze.pop()}function Ko(){return Ze[Ze.length-2]||null}function Nf(){if(Ze.length<2)return;Of();const t=Ze.pop();t&&ei({...t})}function Bf(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Pi?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(Ze[Ze.length-1].scrollPosition=e.scrollTop)}function Ff(t,e){if(yo(t))return;let i=t.target;if(!i||(i.hasAttribute(ui)||(i=i.closest(ti)),!i))return;const a=i.getAttribute(ui);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),hf(()=>{vr(!1),ei({event:t,injection:r,data:r.title_details})},!hn.current&&window.innerWidth>=Pi&&!window.matchMedia("(pointer: coarse)").matches))}var Vf=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),Hf=C('<!> <a target="_blank"> </a>',1),Uf=C(" <!>.",1),Wf=C("<!> <br/>",1),Gf=C(" <br/>",1),Kf=C('<span class="svelte-1to4glm"><!></span>'),Yf=C('<p class="svelte-1to4glm"></p>');function Zf(t,e){$(e,!0);const i=O(e,"onclickmodal",3,()=>null);function a(c,d){pe(ue.AfterArticlePlaylinkClick,c,{playlink:d})}function r(c,d,u){pe(ue.AfterArticleModalButtonClick,d),i()(c,u)}var n=ve(),l=J(n);{var s=c=>{var d=Yf();Ee(d,21,()=>e.linkInjections,Ce,(u,p)=>{const v=H(()=>{const{key:x,title:w,title_details:k,after_article_style:M}=o(p);return{key:x,title:w,title_details:k,after_article_style:M}}),f=H(()=>{var x;return((x=o(v).title_details)==null?void 0:x.providers)||[]});var m=Kf(),b=T(m);{var g=x=>{var w=Wf(),k=J(w);{var M=z=>{var N=Vf(),A=J(N),j=I(A);j.__click=S=>S.stopPropagation();var D=T(j);D.__click=S=>r(S,o(v).title_details,o(p));var P=T(D);U((S,V)=>{Z(A,`"${o(v).title??""}" ${S??""} `),Z(P,V)},[()=>te("Is Available To Stream"),()=>te("View Streaming Options")]),_(z,N)},E=z=>{var N=Uf(),A=J(N),j=I(A);Ee(j,17,()=>o(f),Ce,(D,P,S)=>{let V=()=>o(P).name,W=()=>o(P).url;var Y=Hf(),B=J(Y);{var R=Q=>{var oe=qt();U(ne=>Z(oe,ne),[()=>S===o(f).length-1?`, ${te("And")}`:","]),_(Q,oe)};F(B,Q=>{S&&Q(R)})}var K=I(B,2);K.__click=()=>a(o(v).title_details,V());var X=T(K);U(()=>{ae(K,"href",W()),Z(X,V())}),_(D,Y)}),U(D=>Z(A,`"${o(v).title??""}" ${D??""} `),[()=>te("Is Available To Stream On")]),_(z,N)};F(k,z=>{o(v).after_article_style==="modal_button"?z(M):z(E,!1)})}_(x,w)},y=x=>{var w=Gf(),k=J(w);U(M=>Z(k,`"${o(v).title??""}" ${M??""} `),[()=>te("Title Unavailable Suffix")]),_(x,w)};F(b,x=>{o(f).length?x(g):x(y,!1)})}U(()=>ae(m,"data-playpilot-injection-key",o(v).key)),_(u,m)}),_(c,d)};F(l,c=>{e.linkInjections.length&&c(s)})}_(t,n),ee()}ce(["click"]);let Ta=null;function Jf(t,e){var l,s;if(Ta||!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=((s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),Ta=Rt(Zf,{target:i,props:{linkInjections:e,onclickmodal:(c,d)=>ei({event:c,injection:d,data:d.title_details})}})}function Xf(){var t;Ta&&(Zi(Ta),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Ta=null)}var Qf=C('<p class="svelte-1epbbn0"> </p>');function $f(t,e){$(e,!1),$r();var i=Qf(),a=T(i);U(r=>Z(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)||te("In-Text Disclaimer")}]),_(t,i),ee()}let Ea=null;function eh(t){var n,l,s,c,d,u;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||Ea)return;const e=document.createElement("div"),i=(c=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:c.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),Ea=Rt($f,{target:e})}function th(){var t;Ea&&(Zi(Ea),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Ea=null)}const ui="data-playpilot-injection-key",ti=`[${ui}]`;function ih(t,e={aiInjections:[],manualInjections:[]}){Cn(),sh();const i=ch(e);if(!i.length)return[];const a=di(t.map(d=>d.innerText).join(" ")),n=uh(i).filter(d=>a.includes(di(d.sentence))),l={};let s=-1;for(const d of vh(n)){s++;const u=t.findIndex(k=>di(k.innerText).includes(di(d.sentence))),p=t[u];if(!p)continue;const v=fo(d.title,p,["A"]);if(!(v!=null&&v.nodeValue)||ho(v)){const k=fo(d.title,p);if(k&&ho(k)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:f,linkElement:m}=ah(d);let b=-1,g=!1;er(p.innerHTML,d.title)===1&&(b=p.innerHTML.indexOf(d.title));const{phrase_before:x,phrase_after:w}=rh(p,d);if(b===-1&&(x||w)){const k=[x,d.title,w].filter(Boolean).join(" ");if(b=p.innerHTML.indexOf(k),b===-1){const M=ud(p.innerHTML,d.title,x||"",w||"");if(M){const{leadingSpaces:E,trailingSpaces:z}=pd(M.match);m.innerHTML=M.match.trim();const N=M.index+E,A=M.index+M.match.length-z;if(p.innerHTML.slice(N,A).includes("href="))continue;Pn(p.innerHTML,d.title,p,f,N,A)&&(b=M.index,g=!0)}}}if(b===-1&&(v!=null&&v.nodeValue)){const k=p.innerHTML.indexOf(v.nodeValue),M=p.innerHTML.indexOf(d.sentence),E=M===-1?p.innerHTML.indexOf(d.sentence.slice(0,20)):-1,z=d.sentence.split(" ")[0],A=er(p.innerHTML,z)===1?p.innerHTML.indexOf(z):-1,j=rd(n.slice(0,s+1),d,["title","sentence"])-1,D=vd(v.nodeValue,p,j);b=Math.max(k,E,D,A,M,0)}if(b!==-1&&!g&&!Pn(p.innerHTML,d.title,p,f,b)){const k=hd(d.title,p.innerHTML);k>-1?Pn(p.innerHTML,d.title,p,f,k):l[d.key]="Injection would have lead to broken HTML."}}lh(n),nh();const c=ph(i);return c.length&&Jf(t,c),document.querySelector(ti)&&eh(t),i.filter(d=>d.title_details).map((d,u)=>{const p=!d.manual&&fh(d,u,i),v=d.duplicate??p;v&&(l[d.key]=p?"Injection was manually removed.":"Injection was marked as duplicate.");const f=document.querySelector(`[${ui}="${d.key}"]`),m=Zo(d)&&!d.inactive&&!d.removed&&!d.after_article&&!f,b=n.find(y=>y.key===d.key),g=m?l[d.key]||(b?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:v,failed:m,failed_message:g}})}function ah(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 Pn(t,e,i,a,r,n=-1){const l=u=>Array.from(u.querySelectorAll(`a, ${ti}`)).filter(p=>!p.innerText).length,s=document.createElement("div");s.innerHTML=t;const c=l(s),d=s.innerText;return n>0?s.innerHTML=sd(t,a.outerHTML,r,n):s.innerHTML=od(t,e,a.outerHTML,r),Math.abs(s.innerText.length-d.length)>1||c!=l(s)?!1:(i.innerHTML=s.innerHTML,!0)}function rh(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(er(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=cd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function nh(){const t=Array.from(document.querySelectorAll(`${ti} 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 lh(t){window.addEventListener("mousemove",Ef),window.addEventListener("click",i=>Ff(i,t)),document.querySelectorAll(ti).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{Cf()||Tf(n,r)}),i.addEventListener("mouseleave",Pf))})}function Cn(){document.querySelectorAll(ti).forEach(e=>oh(e.getAttribute(ui)||"")),Xf(),th(),En(!1),vr(!1)}function oh(t){var r;const e=document.querySelector(`[${ui}="${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 sh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ti)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function ch({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function dh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Yo(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&Zo(t)}function Zo(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function uh(t){return Jo(t).filter(e=>e.in_text!==!1&&Yo(e))}function ph(t){return Jo(t).filter(e=>e.after_article===!0&&Yo(e))}function Jo(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)&&Xo(i,e)))}function vh(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 fh(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&Xo(a,t))}function Xo(t,e){return t.title===e.title&&di(t.sentence)===di(e.sentence)}function zn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function hh(){const t=ci();if(!t)throw new Error("No token was provided");try{return await await Qt(`/domains/config?api-token=${t}`)||null}catch{return null}}ce(["click"]),ce(["input"]),ce(["click"]),ce(["click"]),ce(["click"]),ce(["mousedown","touchstart"]),ce(["mousedown","touchstart"]),ce(["click"]),ce(["click"]),ce(["click"]),ce(["click"]),ce(["click"]),ce(["click"]);function gh(t,e){$(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,s)=>{if(!s)return;const{purpose:c,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const u=p=>c.consents[p]===!0;gd({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()}ee()}var mh=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),yh=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),bh=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),_h=C('<button class="svelte-1tp7i1s"></button>'),xh=C("<small>You are using the beta version of TPI</small>"),wh=C('<button class="svelte-1tp7i1s">Use beta script</button>'),kh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Sh=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> <!> <!></div>');function Th(t,e){$(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(De(c())),l=G(!1),s=null;en(()=>{s&&clearInterval(s)});function c(){var k,M,E,z,N,A;const g=window.PlayPilotLinkInjections,y=((k=g.evaluated_link_injections)==null?void 0:k.filter(j=>!j.failed))||[],x=((M=g.evaluated_link_injections)==null?void 0:M.filter(j=>j.failed))||[],w=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:g.domain_sid},{label:"Organization",data:g.organization_sid},{label:"HTML selector",data:g.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([j,D])=>({label:j,data:D})),[`Succesful injections (${y.length})`]:y.map(j=>({label:j.title,data:j.sentence})),[`Failed injections (${x.length})`]:x.map(j=>({label:j.title,data:`Reason: ${j.failed_message} | Sentence: ${j.sentence}`})),[`Fetched ads (${((E=g.ads)==null?void 0:E.length)||0})`]:(z=g.ads)==null?void 0:z.map(j=>({label:j.campaign_name,data:j})),[`Tracking events (${((N=g.tracked_events)==null?void 0:N.length)||0})`]:(A=g.tracked_events)==null?void 0:A.map(j=>({label:j.event,data:j.payload})),[`Visible pixels (${w.length})`]:w.map((j,D)=>({label:D+1,data:j.src}))}}function d(g){o(l)||(a.push(g.key),q(l,i.some(y=>a.slice(a.length-y.length,a.length).join("")===y),!0),s=setInterval(()=>q(n,c(),!0),200))}function u(g){window.PlayPilotLinkInjections.ads.unshift({campaign_format:g,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function p(g){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(Sn).forEach(({key:y,numberOfVariants:x})=>{const w=1/x;window.PlayPilotLinkInjections.split_test_identifiers[y]=Math.min(w*g,1)})}function v(){var x,w;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(w=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||w.call(x);const y=document.createElement("script");for(const k of g.attributes)y.setAttribute(k.name,k.value);y.getAttribute("onload")||y.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),y.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",y),g.remove()}var f=ve();ye("keydown",Ae,d);var m=J(f);{var b=g=>{var y=Sh(),x=I(T(y),4);{var w=Y=>{var B=mh();_(Y,B)};F(x,Y=>{var B,R,K;(B=window.PlayPilotLinkInjections.config)!=null&&B.exclude_urls_pattern&&Ci().match((K=(R=window.PlayPilotLinkInjections)==null?void 0:R.config)==null?void 0:K.exclude_urls_pattern)&&Y(w)})}var k=I(x,2);Ee(k,17,()=>Object.entries(o(n)),Ce,(Y,B)=>{var R=H(()=>Ma(o(B),2));let K=()=>o(R)[0],X=()=>o(R)[1];var Q=bh(),oe=T(Q),ne=T(oe),xe=I(oe,2);{var je=Re=>{var de=ve(),Te=J(de);{var nt=Be=>{var se=ve(),et=J(se);Ee(et,17,X,Ce,(Ge,lt,mi,ie)=>{let be=()=>o(lt).label,Pe=()=>o(lt).data;var yi=yh(),yt=T(yi),Ih=T(yt),Ah=I(yt,2),Lh=T(Ah);U(Mh=>{Z(Ih,be()),Z(Lh,Mh)},[()=>JSON.stringify(Pe())]),_(Ge,yi)}),_(Be,se)};F(Te,Be=>{Array.isArray(X())&&Be(nt)})}_(Re,de)},Je=Re=>{var de=qt("No data");_(Re,de)};F(xe,Re=>{var de;(de=X())!=null&&de.length?Re(je):Re(Je,!1)})}U(()=>Z(ne,K())),_(Y,Q)});var M=I(k,4);M.__click=()=>u("card");var E=I(M,2);E.__click=()=>u("top_scroll");var z=I(E,6);Ee(z,16,()=>({length:4}),Ce,(Y,B,R)=>{var K=_h();K.__click=()=>p(R),K.textContent=R,_(Y,K)});var N=I(z,4);N.__click=()=>console.log(ln(window.PlayPilotLinkInjections.config));var A=I(N,2);A.__click=()=>console.log(ln(window.PlayPilotLinkInjections.config).pageText);var j=I(A,4);j.__click=function(...Y){var B;(B=e.onrerender)==null||B.apply(this,Y)};var D=I(j,2);{var P=Y=>{var B=xh();_(Y,B)},S=Y=>{var B=wh();B.__click=v,_(Y,B)};F(D,Y=>{r?Y(P):Y(S,!1)})}var V=I(D,2);{var W=Y=>{var B=kh();B.__click=()=>{Fo(),window.PlayPilotLinkInjections.config.explore_use_router=!ta(),Bo()},_(Y,B)};F(V,Y=>{ta()||Y(W)})}_(g,y)};F(m,g=>{o(l)&&g(b)})}_(t,f),ee()}ce(["click"]);function Eh(t,e){$(e,!1);const i=Array.from(document.querySelectorAll(ti)),a=[],r=Date.now();let n=!1,l=null;ct(()=>{Xa()||s()});function s(){l=new IntersectionObserver(c),i.forEach(p=>{l.observe(p)})}function c(p){p.forEach(v=>{if(!v.isIntersecting)return;const f=v.target.getAttribute(ui);f&&a.push(f),l.unobserve(v.target)})}function d(){const{scrollHeight:p,scrollTop:v,clientHeight:f}=document.documentElement;return v/(p-f)*100}function u(){var v,f;if(n||document.visibilityState!=="hidden")return;n=!0;const p=Date.now();pe(ue.UserLeft,null,{time_start:r,time_end:p,time_spent:p-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((f=(v=window.PlayPilotLinkInjections)==null?void 0:v.tracked_events)==null?void 0:f.map(m=>m.event))||[],scroll_percentage:d()})}$r(),ye("visibilitychange",Ae,u),ee()}function Ph(t,e){$(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new ir,r=.7,n="[data-playpilot-poster]";let l=G(0),s={},c=null;const d=H(()=>o(l)<Pi);en(f);function u(){var w,k;if((k=(w=window.PlayPilotLinkInjections)==null?void 0:w.config)!=null&&k.disable_scroll_reveal_posters||!o(d))return;m();const b=window.innerHeight,g=new ir,y=b*r,x=b-y;for(const M of i){const{top:E}=M.getBoundingClientRect();E<y&&E>x&&g.add(M)}for(const M of g){if(a.has(M))continue;const E=M.dataset.playpilotPosterUrl;E in s&&s[E]!==M||(p(M,E),a.add(M),s[E]=M)}}function p(b,g){const y=document.createElement("img");y.classList.add("playpilot-floating-poster"),y.dataset.playpilotPoster="",y.src=g,y.alt="",y.onload=()=>y.classList.add("loaded"),b.insertAdjacentElement("afterbegin",y)}function v(b){const g=b.querySelector(n);g&&(g.classList.add("animating-out"),setTimeout(()=>g.remove(),500))}function f(){for(const b of Array.from(document.querySelectorAll(n)))b.remove()}function m(){c&&clearTimeout(c),c=setTimeout(()=>{for(const b of a)v(b),a.delete(b),s={}},1e3)}ye("scroll",Ae,u),Qr("innerWidth",b=>q(l,b,!0)),ee()}var Ch=C("<!> <!>",1),zh=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function jh(t,e){$(e,!0);let i=G(De([])),a=G(null),r=G(De(Xa()));oo();let n=G(!1),l=G(!0),s=G(!0),c=G(De([]));const d=H(()=>o(a)||{}),u=H(()=>Nn(o(d).ai_injections,()=>[],!0)),p=H(()=>Nn(o(d).manual_injections,()=>[],!0)),v=H(()=>nn(o(i))),f=b();Ue(()=>{o(r)&&!o(l)&&g()}),Bo(),en(Cn);async function m(){tr()||(await f,wd(),pe(ue.ArticlePageView),!(!o(u).length&&!o(p).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await wo())))}async function b(){var P;q(l,!0);try{o(r)&&q(n,await lo({throwError:!0}),!0)}catch{pe(ue.AuthFailed)}try{const S=window.PlayPilotLinkInjections.config||await hh()||{};if(window.PlayPilotLinkInjections.config=S,S!=null&&S.custom_style&&x(S.custom_style||""),S!=null&&S.explore_navigation_selector&&Qp(),S!=null&&S.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),S!=null&&S.domain_sid&&_o({organizationSid:S.organization_sid,domainSid:S.domain_sid}),q(s,td(S),!0),o(s))return;S!=null&&S.html_selector&&(window.PlayPilotLinkInjections.selector=S==null?void 0:S.html_selector),q(i,ln(window.PlayPilotLinkInjections.config).elements,!0)}catch(S){pe(ue.FetchingConfigFailed),console.error("TPI Config failed to fetch",S);return}try{if(q(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),q(a,o(a)||await po(o(v),{maxTries:1,runAiWhenRelevant:!tr()}),!0),q(l,!1),!o(a)||(P=window.PlayPilotLinkInjections.config)!=null&&P.disable_public_injections&&!(o(r)&&o(n)))return;if(_o({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){y({aiInjections:o(u),manualInjections:o(p)});return}if(!o(r)||tr())return;q(a,await po(o(v),{requireCompletedResult:!0,onpoll:S=>q(a,S,!0)}),!0),y({aiInjections:o(u),manualInjections:o(p)})}catch(S){console.error(S),pe(ue.InjectionError,null,{message:S.message})}}function g(){y(dh(o(c)))}function y(P={aiInjections:o(u),manualInjections:o(p)}){const S=ih(o(i),P);JSON.stringify(S)!==JSON.stringify(o(c))&&(q(c,S,!0),window.PlayPilotLinkInjections.evaluated_link_injections=S),o(r)||w(S)}function x(P){const S="playpilot-custom-style",V=document.getElementById(S),W=V||document.createElement("style");W.textContent=`body { ${P} }`,W.id=S,V||document.body.appendChild(W)}function w(P){const S=P.filter(W=>!W.failed),V=P.filter(W=>W.failed);if(S.length&&pe(ue.ArticleInjected,null,{manual:S.filter(W=>W.manual).length,ai:S.filter(W=>!W.manual).length}),V.length){const W=Y=>V.filter(({failed_message:B})=>B==null?void 0:B.includes(Y)).length;pe(ue.FailedInjectionsCount,null,{total:V.length,sentence_not_found:W("sentence was not found"),already_linked:W("already inside of a link"),broken_html:W("broken HTML"),duplicate:W("duplicate"),unknown:W("unknown reasons")})}}var k=zh(),M=J(k),E=T(M);F(E,P=>{});var z=I(E,2);Th(z,{onrerender:g});var N=I(M,2);{var A=P=>{yn(P,{get pixels(){return o(a).pixels}})};F(N,P=>{var S,V;(V=(S=o(a))==null?void 0:S.pixels)!=null&&V.length&&P(A)})}var j=I(N,2);Xi(j,()=>o(c),P=>{var S=Ch(),V=J(S);Eh(V,{});var W=I(V,2);Ph(W,{}),_(P,S)});var D=I(j,2);gh(D,{onchange:m}),_(t,k),ee()}window.PlayPilotMount={mount(){window.PlayPilotLinkInjections.app&&this.destroy();const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Rt(jh,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),Cn()}}})();