@playpilot/tpi 8.36.2 → 8.36.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.
@@ -1,7 +1,7 @@
1
1
  var au=Object.defineProperty;var io=t=>{throw TypeError(t)};var lu=(t,e,n)=>e in t?au(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var dt=(t,e,n)=>lu(t,typeof e!="symbol"?e+"":e,n),Ca=(t,e,n)=>e.has(t)||io("Cannot "+n);var R=(t,e,n)=>(Ca(t,e,"read from private field"),n?n.call(t):e.get(t)),_e=(t,e,n)=>e.has(t)?io("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ke=(t,e,n,i)=>(Ca(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),Ie=(t,e,n)=>(Ca(t,e,"access private method"),n);var pl=Array.isArray,ou=Array.prototype.indexOf,Ai=Array.prototype.includes,ga=Array.from,su=Object.defineProperty,jn=Object.getOwnPropertyDescriptor,Uo=Object.getOwnPropertyDescriptors,cu=Object.prototype,uu=Array.prototype,_l=Object.getPrototypeOf,ro=Object.isExtensible;function di(t){return typeof t=="function"}const xt=()=>{};function du(t){return typeof(t==null?void 0:t.then)=="function"}function fu(t){return t()}function Za(t){for(var e=0;e<t.length;e++)t[e]()}function Go(){var t,e,n=new Promise((i,r)=>{t=i,e=r});return{promise:n,resolve:t,reject:e}}function ar(t,e,n=!1){return t===void 0?n?e():e:t}function ii(t,e){if(Array.isArray(t))return t;if(e===void 0||!(Symbol.iterator in t))return Array.from(t);const n=[];for(const i of t)if(n.push(i),n.length===e)break;return n}const ct=2,Ci=4,br=8,yl=1<<24,Ct=16,Kt=32,qn=64,Ka=128,Lt=512,rt=1024,ot=2048,ln=4096,ht=8192,Mt=16384,Bn=32768,Ya=1<<25,on=65536,Yr=1<<17,Zo=1<<18,Vi=1<<19,Ko=1<<20,tn=1<<25,ri=65536,Jr=1<<21,mi=1<<22,Dn=1<<23,an=Symbol("$state"),Yo=Symbol("legacy props"),vu=Symbol(""),Nr=Symbol("attributes"),Ja=Symbol("class"),Qa=Symbol("style"),Xi=Symbol("text"),qr=Symbol("form reset"),ma=new class extends Error{constructor(){super(...arguments);dt(this,"name","StaleReactionError");dt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Bo;const pa=!!((Bo=globalThis.document)!=null&&Bo.contentType)&&globalThis.document.contentType.includes("xml"),hu=11;function wl(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function gu(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function mu(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function pu(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function _u(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function yu(t){throw new Error("https://svelte.dev/e/effect_orphan")}function wu(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function bu(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function ku(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function xu(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Su(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Tu(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Pu=1,Eu=2,Jo=4,Iu=8,Au=16,Cu=1,Lu=2,Mu=4,ju=8,Du=16,Ru=1,Ou=2,Nu=4,qu=1,zu=2,et=Symbol(),Qo="http://www.w3.org/1999/xhtml",Xo="http://www.w3.org/2000/svg",Hu="http://www.w3.org/1998/Math/MathML",Fu="@attach";function Bu(){console.warn("https://svelte.dev/e/derived_inert")}function Vu(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Wu(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function $o(t){return t===this.v}function es(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ts(t){return!es(t,this.v)}let Wi=!1;function Uu(){Wi=!0}let Fe=null;function Li(t){Fe=t}function lr(t){return ns().get(t)}function kr(t,e){return ns().set(t,e),e}function re(t,e=!1,n){Fe={p:Fe,i:!1,c:null,e:null,s:t,x:null,r:Te,l:Wi&&!e?{s:null,u:null,$:[]}:null}}function ae(t){var e=Fe,n=e.e;if(n!==null){e.e=null;for(var i of n)Es(i)}return t!==void 0&&(e.x=t),e.i=!0,Fe=e.p,t??{}}function oi(){return!Wi||Fe!==null&&Fe.l===null}function ns(t){return Fe===null&&wl(),Fe.c??(Fe.c=new Map(Gu(Fe)||void 0))}function Gu(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}let Gn=[];function is(){var t=Gn;Gn=[],Za(t)}function Gt(t){if(Gn.length===0&&!pi){var e=Gn;queueMicrotask(()=>{e===Gn&&is()})}Gn.push(t)}function Zu(){for(;Gn.length>0;)is()}function rs(t){var e=Te;if(e===null)return Ae.f|=Dn,t;if(!(e.f&Bn)&&!(e.f&Ci))throw t;Cn(t,e)}function Cn(t,e){for(;e!==null;){if(e.f&Ka){if(!(e.f&Bn))throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}const Ku=-7169;function Je(t,e){t.f=t.f&Ku|e}function bl(t){t.f&Lt||t.deps===null?Je(t,rt):Je(t,ln)}function as(t){if(t!==null)for(const e of t)!(e.f&ct)||!(e.f&ri)||(e.f^=ri,as(e.deps))}function ls(t,e,n){t.f&ot?e.add(t):t.f&ln&&n.add(t),as(t.deps),Je(t,rt)}let Mr=!1;function Yu(t){var e=Mr;try{return Mr=!1,[t(),Mr]}finally{Mr=e}}let La=null,ui=null,ge=null,tr=null,lt=null,Xa=null,pi=!1,Ma=!1,gi=null,zr=null;var ao=0;let Ju=1;var wi,Tn,Yn,bi,ki,Jn,xi,dn,fr,wt,vr,Pn,Xt,$t,Si,Ti,Oe,$a,$i,el,os,ss,Hr,Qu,tl,fi;const sa=class sa{constructor(){_e(this,Oe);dt(this,"id",Ju++);_e(this,wi,!1);dt(this,"linked",!0);_e(this,Tn,null);_e(this,Yn,null);dt(this,"async_deriveds",new Map);dt(this,"current",new Map);dt(this,"previous",new Map);dt(this,"unblocked",new Set);_e(this,bi,new Set);_e(this,ki,new Set);_e(this,Jn,new Set);_e(this,xi,0);_e(this,dn,new Map);_e(this,fr,null);_e(this,wt,[]);_e(this,vr,[]);_e(this,Pn,new Set);_e(this,Xt,new Set);_e(this,$t,new Map);_e(this,Si,new Set);dt(this,"is_fork",!1);_e(this,Ti,!1)}skip_effect(e){R(this,$t).has(e)||R(this,$t).set(e,{d:[],m:[]}),R(this,Si).delete(e)}unskip_effect(e,n=i=>this.schedule(i)){var i=R(this,$t).get(e);if(i){R(this,$t).delete(e);for(var r of i.d)Je(r,ot),n(r);for(r of i.m)Je(r,ln),n(r)}R(this,Si).add(e)}capture(e,n,i=!1){e.v!==et&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&Dn||(this.current.set(e,[n,i]),lt==null||lt.set(e,n)),this.is_fork||(e.v=n)}activate(){ge=this}deactivate(){ge=null,lt=null}flush(){try{Ma=!0,ge=this,Ie(this,Oe,$i).call(this)}finally{ao=0,Xa=null,gi=null,zr=null,Ma=!1,ge=null,lt=null,ei.clear()}}discard(){for(const e of R(this,ki))e(this);R(this,ki).clear(),R(this,Jn).clear(),Ie(this,Oe,fi).call(this)}register_created_effect(e){R(this,vr).push(e)}increment(e,n){if(ke(this,xi,R(this,xi)+1),e){let i=R(this,dn).get(n)??0;R(this,dn).set(n,i+1)}}decrement(e,n){if(ke(this,xi,R(this,xi)-1),e){let i=R(this,dn).get(n)??0;i===1?R(this,dn).delete(n):R(this,dn).set(n,i-1)}R(this,Ti)||(ke(this,Ti,!0),Gt(()=>{ke(this,Ti,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const i of e)R(this,Pn).add(i);for(const i of n)R(this,Xt).add(i);e.clear(),n.clear()}oncommit(e){R(this,bi).add(e)}ondiscard(e){R(this,ki).add(e)}on_fork_commit(e){R(this,Jn).add(e)}run_fork_commit_callbacks(){for(const e of R(this,Jn))e(this);R(this,Jn).clear()}settled(){return(R(this,fr)??ke(this,fr,Go())).promise}static ensure(){var e;if(ge===null){const n=ge=new sa;Ie(e=n,Oe,tl).call(e),!Ma&&!pi&&Gt(()=>{R(n,wi)||n.flush()})}return ge}apply(){{lt=null;return}}schedule(e){var r;if(Xa=e,(r=e.b)!=null&&r.is_pending&&e.f&(Ci|br|yl)&&!(e.f&Bn)){e.b.defer_effect(e);return}for(var n=e;n.parent!==null;){n=n.parent;var i=n.f;if(gi!==null&&n===Te&&(Ae===null||!(Ae.f&ct)))return;if(i&(qn|Kt)){if(!(i&rt))return;n.f^=rt}}R(this,wt).push(n)}};wi=new WeakMap,Tn=new WeakMap,Yn=new WeakMap,bi=new WeakMap,ki=new WeakMap,Jn=new WeakMap,xi=new WeakMap,dn=new WeakMap,fr=new WeakMap,wt=new WeakMap,vr=new WeakMap,Pn=new WeakMap,Xt=new WeakMap,$t=new WeakMap,Si=new WeakMap,Ti=new WeakMap,Oe=new WeakSet,$a=function(){if(this.is_fork)return!0;for(const i of R(this,dn).keys()){for(var e=i,n=!1;e.parent!==null;){if(R(this,$t).has(e)){n=!0;break}e=e.parent}if(!n)return!0}return!1},$i=function(){var c,u,f,v;if(ke(this,wi,!0),ao++>1e3&&(Ie(this,Oe,fi).call(this),Xu()),!Ie(this,Oe,$a).call(this)){for(const d of R(this,Pn))R(this,Xt).delete(d),Je(d,ot),this.schedule(d);for(const d of R(this,Xt))Je(d,ln),this.schedule(d)}const e=R(this,wt);ke(this,wt,[]),this.apply();var n=gi=[],i=[],r=zr=[];for(const d of e)try{Ie(this,Oe,el).call(this,d,n,i)}catch(_){throw fs(d),_}if(ge=null,r.length>0){var a=sa.ensure();for(const d of r)a.schedule(d)}if(gi=null,zr=null,Ie(this,Oe,$a).call(this)){Ie(this,Oe,Hr).call(this,i),Ie(this,Oe,Hr).call(this,n);for(const[d,_]of R(this,$t))ds(d,_);r.length>0&&Ie(c=ge,Oe,$i).call(c);return}const o=Ie(this,Oe,os).call(this);if(o){Ie(u=o,Oe,ss).call(u,this);return}R(this,Pn).clear(),R(this,Xt).clear();for(const d of R(this,bi))d(this);R(this,bi).clear(),tr=this,lo(i),lo(n),tr=null,(f=R(this,fr))==null||f.resolve();var s=ge;if(this.linked&&R(this,xi)===0&&Ie(this,Oe,fi).call(this),R(this,wt).length>0){s===null&&(s=this,Ie(this,Oe,tl).call(this));const d=s;R(d,wt).push(...R(this,wt).filter(_=>!R(d,wt).includes(_)))}s!==null&&Ie(v=s,Oe,$i).call(v)},el=function(e,n,i){e.f^=rt;for(var r=e.first;r!==null;){var a=r.f,o=(a&(Kt|qn))!==0,s=o&&(a&rt)!==0,c=s||(a&ht)!==0||R(this,$t).has(r);if(!c&&r.fn!==null){o?r.f^=rt:a&Ci?n.push(r):Tr(r)&&(a&Ct&&R(this,Xt).add(r),ji(r));var u=r.first;if(u!==null){r=u;continue}}for(;r!==null;){var f=r.next;if(f!==null){r=f;break}r=r.parent}}},os=function(){for(var e=R(this,Tn);e!==null;){if(!e.is_fork){for(const[n,[,i]]of this.current)if(e.current.has(n)&&!i)return e}e=R(e,Tn)}return null},ss=function(e){var i;for(const[r,a]of e.current)!this.previous.has(r)&&e.previous.has(r)&&this.previous.set(r,e.previous.get(r)),this.current.set(r,a);for(const[r,a]of e.async_deriveds){const o=this.async_deriveds.get(r);o&&a.promise.then(o.resolve)}const n=r=>{var a=r.reactions;if(a!==null)for(const c of a){var o=c.f;if(o&ct)n(c);else{var s=c;o&(mi|Ct)&&!this.async_deriveds.has(s)&&(R(this,Xt).delete(s),Je(s,ot),this.schedule(s))}}};for(const r of this.current.keys())n(r);this.oncommit(()=>e.discard()),Ie(i=e,Oe,fi).call(i),ge=this,Ie(this,Oe,$i).call(this)},Hr=function(e){for(var n=0;n<e.length;n+=1)ls(e[n],R(this,Pn),R(this,Xt))},Qu=function(){var f;Ie(this,Oe,fi).call(this);for(let v=La;v!==null;v=R(v,Yn)){var e=v.id<this.id,n=[];for(const[d,[_,g]]of this.current){if(v.current.has(d)){var i=v.current.get(d)[0];if(e&&_!==i)v.current.set(d,[_,g]);else continue}n.push(d)}if(e)for(const[d,_]of this.async_deriveds){const g=v.async_deriveds.get(d);g&&_.promise.then(g.resolve)}if(R(v,wi)){var r=[...v.current.keys()].filter(d=>!this.current.has(d));if(r.length===0)e&&v.discard();else if(n.length>0){if(e)for(const d of R(this,Si))v.unskip_effect(d,_=>{var g;_.f&(Ct|mi)?v.schedule(_):Ie(g=v,Oe,Hr).call(g,[_])});v.activate();var a=new Set,o=new Map;for(var s of n)us(s,r,a,o);o=new Map;var c=[...v.current.keys()].filter(d=>this.current.has(d)?this.current.get(d)[0]!==d.v:!0);if(c.length>0)for(const d of R(this,vr))!(d.f&(Mt|ht|Yr))&&kl(d,c,o)&&(d.f&(mi|Ct)?(Je(d,ot),v.schedule(d)):R(v,Pn).add(d));if(R(v,wt).length>0){v.apply();for(var u of R(v,wt))Ie(f=v,Oe,el).call(f,u,[],[]);ke(v,wt,[])}v.deactivate()}}}},tl=function(){ui===null?La=ui=this:(ke(ui,Yn,this),ke(this,Tn,ui)),ui=this},fi=function(){var e=R(this,Tn),n=R(this,Yn);e===null?La=n:ke(e,Yn,n),n===null?ui=e:ke(n,Tn,e),this.linked=!1};let zn=sa;function cs(t){var e=pi;pi=!0;try{for(var n;;){if(Zu(),ge===null)return n;ge.flush()}}finally{pi=e}}function Xu(){try{wu()}catch(t){Cn(t,Xa)}}let Ft=null;function lo(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var i=t[n++];if(!(i.f&(Mt|ht))&&Tr(i)&&(Ft=new Set,ji(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&Ls(i),(Ft==null?void 0:Ft.size)>0)){ei.clear();for(const r of Ft){if(r.f&(Mt|ht))continue;const a=[r];let o=r.parent;for(;o!==null;)Ft.has(o)&&(Ft.delete(o),a.push(o)),o=o.parent;for(let s=a.length-1;s>=0;s--){const c=a[s];c.f&(Mt|ht)||ji(c)}}Ft.clear()}}Ft=null}}function us(t,e,n,i){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const r of t.reactions){const a=r.f;a&ct?us(r,e,n,i):a&(mi|Ct)&&!(a&ot)&&kl(r,e,i)&&(Je(r,ot),xl(r))}}function kl(t,e,n){const i=n.get(t);if(i!==void 0)return i;if(t.deps!==null)for(const r of t.deps){if(Ai.call(e,r))return!0;if(r.f&ct&&kl(r,e,n))return n.set(r,!0),!0}return n.set(t,!1),!1}function xl(t){ge.schedule(t)}function ds(t,e){if(!(t.f&Kt&&t.f&rt)){t.f&ot?e.d.push(t):t.f&ln&&e.m.push(t),Je(t,rt);for(var n=t.first;n!==null;)ds(n,e),n=n.next}}function fs(t){Je(t,rt);for(var e=t.first;e!==null;)fs(e),e=e.next}function vs(t){let e=0,n=sn(0),i;return()=>{Pl()&&(l(n),wa(()=>(e===0&&(i=Nt(()=>t(()=>Rn(n)))),e+=1,()=>{Gt(()=>{e-=1,e===0&&(i==null||i(),i=void 0,Rn(n))})})))}}var $u=on|Vi;function Sl(t,e,n,i){new ed(t,e,n,i)}var Et,ml,It,Qn,gt,At,ft,bt,fn,Xn,En,Pi,hr,gr,vn,ca,Xe,td,nd,id,nl,Fr,Br,il,rl;class ed{constructor(e,n,i,r){_e(this,Xe);dt(this,"parent");dt(this,"is_pending",!1);dt(this,"transform_error");_e(this,Et);_e(this,ml,null);_e(this,It);_e(this,Qn);_e(this,gt);_e(this,At,null);_e(this,ft,null);_e(this,bt,null);_e(this,fn,null);_e(this,Xn,0);_e(this,En,0);_e(this,Pi,!1);_e(this,hr,new Set);_e(this,gr,new Set);_e(this,vn,null);_e(this,ca,vs(()=>(ke(this,vn,sn(R(this,Xn))),()=>{ke(this,vn,null)})));var a;ke(this,Et,e),ke(this,It,n),ke(this,Qn,o=>{var s=Te;s.b=this,s.f|=Ka,i(o)}),this.parent=Te.b,this.transform_error=r??((a=this.parent)==null?void 0:a.transform_error)??(o=>o),ke(this,gt,kn(()=>{Ie(this,Xe,nl).call(this)},$u))}defer_effect(e){ls(e,R(this,hr),R(this,gr))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!R(this,It).pending}update_pending_count(e,n){Ie(this,Xe,il).call(this,e,n),ke(this,Xn,R(this,Xn)+e),!(!R(this,vn)||R(this,Pi))&&(ke(this,Pi,!0),Gt(()=>{ke(this,Pi,!1),R(this,vn)&&gn(R(this,vn),R(this,Xn))}))}get_effect_pending(){return R(this,ca).call(this),l(R(this,vn))}error(e){if(!R(this,It).onerror&&!R(this,It).failed)throw e;ge!=null&&ge.is_fork?(R(this,At)&&ge.skip_effect(R(this,At)),R(this,ft)&&ge.skip_effect(R(this,ft)),R(this,bt)&&ge.skip_effect(R(this,bt)),ge.on_fork_commit(()=>{Ie(this,Xe,rl).call(this,e)})):Ie(this,Xe,rl).call(this,e)}}Et=new WeakMap,ml=new WeakMap,It=new WeakMap,Qn=new WeakMap,gt=new WeakMap,At=new WeakMap,ft=new WeakMap,bt=new WeakMap,fn=new WeakMap,Xn=new WeakMap,En=new WeakMap,Pi=new WeakMap,hr=new WeakMap,gr=new WeakMap,vn=new WeakMap,ca=new WeakMap,Xe=new WeakSet,td=function(){try{ke(this,At,vt(()=>R(this,Qn).call(this,R(this,Et))))}catch(e){this.error(e)}},nd=function(e){const n=R(this,It).failed;n&&ke(this,bt,vt(()=>{n(R(this,Et),()=>e,()=>()=>{})}))},id=function(){const e=R(this,It).pending;e&&(this.is_pending=!0,ke(this,ft,vt(()=>e(R(this,Et)))),Gt(()=>{var n=ke(this,fn,document.createDocumentFragment()),i=Zt();n.append(i),ke(this,At,Ie(this,Xe,Br).call(this,()=>vt(()=>R(this,Qn).call(this,i)))),R(this,En)===0&&(R(this,Et).before(n),ke(this,fn,null),ti(R(this,ft),()=>{ke(this,ft,null)}),Ie(this,Xe,Fr).call(this,ge))}))},nl=function(){try{if(this.is_pending=this.has_pending_snippet(),ke(this,En,0),ke(this,Xn,0),ke(this,At,vt(()=>{R(this,Qn).call(this,R(this,Et))})),R(this,En)>0){var e=ke(this,fn,document.createDocumentFragment());Al(R(this,At),e);const n=R(this,It).pending;ke(this,ft,vt(()=>n(R(this,Et))))}else Ie(this,Xe,Fr).call(this,ge)}catch(n){this.error(n)}},Fr=function(e){this.is_pending=!1,e.transfer_effects(R(this,hr),R(this,gr))},Br=function(e){var n=Te,i=Ae,r=Fe;cn(R(this,gt)),Ot(R(this,gt)),Li(R(this,gt).ctx);try{return zn.ensure(),e()}catch(a){return rs(a),null}finally{cn(n),Ot(i),Li(r)}},il=function(e,n){var i;if(!this.has_pending_snippet()){this.parent&&Ie(i=this.parent,Xe,il).call(i,e,n);return}ke(this,En,R(this,En)+e),R(this,En)===0&&(Ie(this,Xe,Fr).call(this,n),R(this,ft)&&ti(R(this,ft),()=>{ke(this,ft,null)}),R(this,fn)&&(R(this,Et).before(R(this,fn)),ke(this,fn,null)))},rl=function(e){R(this,At)&&(st(R(this,At)),ke(this,At,null)),R(this,ft)&&(st(R(this,ft)),ke(this,ft,null)),R(this,bt)&&(st(R(this,bt)),ke(this,bt,null));var n=R(this,It).onerror;let i=R(this,It).failed;var r=!1,a=!1;const o=()=>{if(r){Wu();return}r=!0,a&&Tu(),R(this,bt)!==null&&ti(R(this,bt),()=>{ke(this,bt,null)}),Ie(this,Xe,Br).call(this,()=>{Ie(this,Xe,nl).call(this)})},s=c=>{try{a=!0,n==null||n(c,o),a=!1}catch(u){Cn(u,R(this,gt)&&R(this,gt).parent)}i&&ke(this,bt,Ie(this,Xe,Br).call(this,()=>{try{return vt(()=>{var u=Te;u.b=this,u.f|=Ka,i(R(this,Et),()=>c,()=>o)})}catch(u){return Cn(u,R(this,gt).parent),null}}))};Gt(()=>{var c;try{c=this.transform_error(e)}catch(u){Cn(u,R(this,gt)&&R(this,gt).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(s,u=>Cn(u,R(this,gt)&&R(this,gt).parent)):s(c)})};function hs(t,e,n,i){const r=oi()?Mi:_a;var a=t.filter(d=>!d.settled);if(n.length===0&&a.length===0){i(e.map(r));return}var o=Te,s=gs(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(d=>d.promise)):null;function u(d){if(!(o.f&Mt)){s();try{i(d)}catch(_){Cn(_,o)}or()}}var f=ms();if(n.length===0){c.then(()=>u(e.map(r))).finally(f);return}function v(){Promise.all(n.map(d=>rd(d))).then(d=>u([...e.map(r),...d])).catch(d=>Cn(d,o)).finally(f)}c?c.then(()=>{s(),v(),or()}):v()}function gs(){var t=Te,e=Ae,n=Fe,i=ge;return function(a=!0){cn(t),Ot(e),Li(n),a&&!(t.f&Mt)&&(i==null||i.activate(),i==null||i.apply())}}function or(t=!0){cn(null),Ot(null),Li(null),t&&(ge==null||ge.deactivate())}function ms(){var t=Te,e=t.b,n=ge,i=e.is_rendered();return e.update_pending_count(1,n),n.increment(i,t),()=>{e.update_pending_count(-1,n),n.decrement(i,t)}}function Mi(t){var e=ct|ot;return Te!==null&&(Te.f|=Vi),{ctx:Fe,deps:null,effects:null,equals:$o,f:e,fn:t,reactions:null,rv:0,v:et,wv:0,parent:Te,ac:null}}const jr=Symbol("obsolete");function rd(t,e,n){let i=Te;i===null&&gu();var r=void 0,a=sn(et),o=!Ae,s=new Set;return _d(()=>{var _;var c=Te,u=Go();r=u.promise;try{Promise.resolve(t()).then(u.resolve,g=>{g!==ma&&u.reject(g)}).finally(or)}catch(g){u.reject(g),or()}var f=ge;if(o){if(c.f&Bn)var v=ms();if(i.b.is_rendered())(_=f.async_deriveds.get(c))==null||_.reject(jr);else for(const g of s.values())g.reject(jr);s.add(u),f.async_deriveds.set(c,u)}const d=(g,h=void 0)=>{v==null||v(),s.delete(u),h!==jr&&(f.activate(),h?(a.f|=Dn,gn(a,h)):(a.f&Dn&&(a.f^=Dn),gn(a,g)),f.deactivate())};u.promise.then(d,g=>d(null,g||"unknown"))}),Sr(()=>{for(const c of s)c.reject(jr)}),new Promise(c=>{function u(f){function v(){f===r?c(a):u(r)}f.then(v,v)}u(r)})}function B(t){const e=Mi(t);return Ds(e),e}function _a(t){const e=Mi(t);return e.equals=ts,e}function ad(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)st(e[n])}}function Tl(t){var e,n=Te,i=t.parent;if(!pn&&i!==null&&i.f&(Mt|ht))return Bu(),t.v;cn(i);try{t.f&=~ri,ad(t),e=qs(t)}finally{cn(n)}return e}function ps(t){var e=Tl(t);if(!t.equals(e)&&(t.wv=Os(),(!(ge!=null&&ge.is_fork)||t.deps===null)&&(ge!==null?(ge.capture(t,e,!0),tr==null||tr.capture(t,e,!0)):t.v=e,t.deps===null))){Je(t,rt);return}pn||(lt!==null?(Pl()||ge!=null&&ge.is_fork)&&lt.set(t,e):bl(t))}function ld(t){var e,n;if(t.effects!==null)for(const i of t.effects)(i.teardown||i.ac)&&((e=i.teardown)==null||e.call(i),(n=i.ac)==null||n.abort(ma),i.teardown=xt,i.ac=null,sr(i,0),El(i))}function _s(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&ji(e)}let Qr=new Set;const ei=new Map;let ys=!1;function sn(t,e){var n={f:0,v:t,reactions:null,equals:$o,rv:0,wv:0};return n}function Z(t,e){const n=sn(t);return Ds(n),n}function al(t,e=!1,n=!0){var r;const i=sn(t);return e||(i.equals=ts),Wi&&n&&Fe!==null&&Fe.l!==null&&((r=Fe.l).s??(r.s=[])).push(i),i}function D(t,e,n=!1){Ae!==null&&(!Wt||Ae.f&Yr)&&oi()&&Ae.f&(ct|Ct|mi|Yr)&&(jt===null||!Ai.call(jt,t))&&Su();let i=n?je(e):e;return gn(t,i,zr)}function gn(t,e,n=null){if(!t.equals(e)){ei.set(t,pn?e:t.v);var i=zn.ensure();if(i.capture(t,e),t.f&ct){const r=t;t.f&ot&&Tl(r),lt===null&&bl(r)}t.wv=Os(),ws(t,ot,n),oi()&&Te!==null&&Te.f&rt&&!(Te.f&(Kt|qn))&&(Pt===null?wd([t]):Pt.push(t)),!i.is_fork&&Qr.size>0&&!ys&&od()}return e}function od(){ys=!1;for(const t of Qr){t.f&rt&&Je(t,ln);let e;try{e=Tr(t)}catch{e=!0}e&&ji(t)}Qr.clear()}function sd(t,e=1){var n=l(t),i=e===1?n++:n--;return D(t,n),i}function Rn(t){D(t,t.v+1)}function ws(t,e,n){var i=t.reactions;if(i!==null)for(var r=oi(),a=i.length,o=0;o<a;o++){var s=i[o],c=s.f;if(!(!r&&s===Te)){var u=(c&ot)===0;if(u&&Je(s,e),c&Yr)Qr.add(s);else if(c&ct){var f=s;lt==null||lt.delete(f),c&ri||(c&Lt&&(Te===null||!(Te.f&Jr))&&(s.f|=ri),ws(f,ln,n))}else if(u){var v=s;c&Ct&&Ft!==null&&Ft.add(v),n!==null?n.push(v):xl(v)}}}}function je(t){if(typeof t!="object"||t===null||an in t)return t;const e=_l(t);if(e!==cu&&e!==uu)return t;var n=new Map,i=pl(t),r=Z(0),a=mn,o=s=>{if(mn===a)return s();var c=Ae,u=mn;Ot(null),uo(a);var f=s();return Ot(c),uo(u),f};return i&&n.set("length",Z(t.length)),new Proxy(t,{defineProperty(s,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&ku();var f=n.get(c);return f===void 0?o(()=>{var v=Z(u.value);return n.set(c,v),v}):D(f,u.value,!0),!0},deleteProperty(s,c){var u=n.get(c);if(u===void 0){if(c in s){const f=o(()=>Z(et));n.set(c,f),Rn(r)}}else D(u,et),Rn(r);return!0},get(s,c,u){var _;if(c===an)return t;var f=n.get(c),v=c in s;if(f===void 0&&(!v||(_=jn(s,c))!=null&&_.writable)&&(f=o(()=>{var g=je(v?s[c]:et),h=Z(g);return h}),n.set(c,f)),f!==void 0){var d=l(f);return d===et?void 0:d}return Reflect.get(s,c,u)},getOwnPropertyDescriptor(s,c){var u=Reflect.getOwnPropertyDescriptor(s,c);if(u&&"value"in u){var f=n.get(c);f&&(u.value=l(f))}else if(u===void 0){var v=n.get(c),d=v==null?void 0:v.v;if(v!==void 0&&d!==et)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(s,c){var d;if(c===an)return!0;var u=n.get(c),f=u!==void 0&&u.v!==et||Reflect.has(s,c);if(u!==void 0||Te!==null&&(!f||(d=jn(s,c))!=null&&d.writable)){u===void 0&&(u=o(()=>{var _=f?je(s[c]):et,g=Z(_);return g}),n.set(c,u));var v=l(u);if(v===et)return!1}return f},set(s,c,u,f){var P;var v=n.get(c),d=c in s;if(i&&c==="length")for(var _=u;_<v.v;_+=1){var g=n.get(_+"");g!==void 0?D(g,et):_ in s&&(g=o(()=>Z(et)),n.set(_+"",g))}if(v===void 0)(!d||(P=jn(s,c))!=null&&P.writable)&&(v=o(()=>Z(void 0)),D(v,je(u)),n.set(c,v));else{d=v.v!==et;var h=o(()=>je(u));D(v,h)}var m=Reflect.getOwnPropertyDescriptor(s,c);if(m!=null&&m.set&&m.set.call(f,u),!d){if(i&&typeof c=="string"){var w=n.get("length"),k=Number(c);Number.isInteger(k)&&k>=w.v&&D(w,k+1)}Rn(r)}return!0},ownKeys(s){l(r);var c=Reflect.ownKeys(s).filter(v=>{var d=n.get(v);return d===void 0||d.v!==et});for(var[u,f]of n)f.v!==et&&!(u in s)&&c.push(u);return c},setPrototypeOf(){xu()}})}function oo(t){try{if(t!==null&&typeof t=="object"&&an in t)return t[an]}catch{}return t}function cd(t,e){return Object.is(oo(t),oo(e))}var Pe,bs,ks,xs;function ud(){if(Pe===void 0){Pe=window,bs=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;ks=jn(e,"firstChild").get,xs=jn(e,"nextSibling").get,ro(t)&&(t[Ja]=void 0,t[Nr]=null,t[Qa]=void 0,t.__e=void 0),ro(n)&&(n[Xi]=void 0)}}function Zt(t=""){return document.createTextNode(t)}function nn(t){return ks.call(t)}function xr(t){return xs.call(t)}function b(t,e){return nn(t)}function $(t,e=!1){{var n=nn(t);return n instanceof Comment&&n.data===""?xr(n):n}}function T(t,e=1,n=!1){let i=t;for(;e--;)i=xr(i);return i}function dd(t){t.textContent=""}function Ss(){return!1}function ya(t,e,n){return document.createElementNS(e??Qo,t,void 0)}function fd(t,e){if(e){const n=document.body;t.autofocus=!0,Gt(()=>{document.activeElement===n&&t.focus()})}}let so=!1;function vd(){so||(so=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)(e=n[qr])==null||e.call(n)})},{capture:!0}))}function hd(t,e,n,i=!0){i&&n();for(var r of e)t.addEventListener(r,n);Sr(()=>{for(var a of e)t.removeEventListener(a,n)})}function si(t){var e=Ae,n=Te;Ot(null),cn(null);try{return t()}finally{Ot(e),cn(n)}}function Ts(t,e,n,i=n){t.addEventListener(e,()=>si(n));const r=t[qr];r?t[qr]=()=>{r(),i(!0)}:t[qr]=()=>i(!0),vd()}function Ps(t){Te===null&&(Ae===null&&yu(),_u()),pn&&pu()}function gd(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Yt(t,e){var n=Te;n!==null&&n.f&ht&&(t|=ht);var i={ctx:Fe,deps:null,nodes:null,f:t|ot|Lt,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};ge==null||ge.register_created_effect(i);var r=i;if(t&Ci)gi!==null?gi.push(i):zn.ensure().schedule(i);else if(e!==null){try{ji(i)}catch(o){throw st(i),o}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&!(r.f&Vi)&&(r=r.first,t&Ct&&t&on&&r!==null&&(r.f|=on))}if(r!==null&&(r.parent=n,n!==null&&gd(r,n),Ae!==null&&Ae.f&ct&&!(t&qn))){var a=Ae;(a.effects??(a.effects=[])).push(r)}return i}function Pl(){return Ae!==null&&!Wt}function Sr(t){const e=Yt(br,null);return Je(e,rt),e.teardown=t,e}function Ye(t){Ps();var e=Te.f,n=!Ae&&(e&Kt)!==0&&(e&Bn)===0;if(n){var i=Fe;(i.e??(i.e=[])).push(t)}else return Es(t)}function Es(t){return Yt(Ci|Ko,t)}function md(t){return Ps(),Yt(br|Ko,t)}function pd(t){zn.ensure();const e=Yt(qn|Vi,t);return(n={})=>new Promise(i=>{n.outro?ti(e,()=>{st(e),i(void 0)}):(st(e),i(void 0))})}function Vn(t){return Yt(Ci,t)}function _d(t){return Yt(mi|Vi,t)}function wa(t,e=0){return Yt(br|e,t)}function W(t,e=[],n=[],i=[]){hs(i,e,n,r=>{Yt(br,()=>t(...r.map(l)))})}function kn(t,e=0){var n=Yt(Ct|e,t);return n}function Is(t,e=0){var n=Yt(yl|e,t);return n}function vt(t){return Yt(Kt|Vi,t)}function As(t){var e=t.teardown;if(e!==null){const n=pn,i=Ae;co(!0),Ot(null);try{e.call(null)}finally{co(n),Ot(i)}}}function El(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const r=n.ac;r!==null&&si(()=>{r.abort(ma)});var i=n.next;n.f&qn?n.parent=null:st(n,e),n=i}}function yd(t){for(var e=t.first;e!==null;){var n=e.next;e.f&Kt||st(e),e=n}}function st(t,e=!0){var n=!1;(e||t.f&Zo)&&t.nodes!==null&&t.nodes.end!==null&&(Cs(t.nodes.start,t.nodes.end),n=!0),Je(t,Ya),El(t,e&&!n),sr(t,0);var i=t.nodes&&t.nodes.t;if(i!==null)for(const a of i)a.stop();As(t),t.f^=Ya,t.f|=Mt;var r=t.parent;r!==null&&r.first!==null&&Ls(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Cs(t,e){for(;t!==null;){var n=t===e?null:xr(t);t.remove(),t=n}}function Ls(t){var e=t.parent,n=t.prev,i=t.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),e!==null&&(e.first===t&&(e.first=i),e.last===t&&(e.last=n))}function ti(t,e,n=!0){var i=[];Ms(t,i,!0);var r=()=>{n&&st(t),e&&e()},a=i.length;if(a>0){var o=()=>--a||r();for(var s of i)s.out(o)}else r()}function Ms(t,e,n){if(!(t.f&ht)){t.f^=ht;var i=t.nodes&&t.nodes.t;if(i!==null)for(const s of i)(s.is_global||n)&&e.push(s);for(var r=t.first;r!==null;){var a=r.next;if(!(r.f&qn)){var o=(r.f&on)!==0||(r.f&Kt)!==0&&(t.f&Ct)!==0;Ms(r,e,o?n:!1)}r=a}}}function Il(t){js(t,!0)}function js(t,e){if(t.f&ht){t.f^=ht,t.f&rt||(Je(t,ot),zn.ensure().schedule(t));for(var n=t.first;n!==null;){var i=n.next,r=(n.f&on)!==0||(n.f&Kt)!==0;js(n,r?e:!1),n=i}var a=t.nodes&&t.nodes.t;if(a!==null)for(const o of a)(o.is_global||e)&&o.in()}}function Al(t,e){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end;n!==null;){var r=n===i?null:xr(n);e.append(n),n=r}}let Vr=!1,pn=!1;function co(t){pn=t}let Ae=null,Wt=!1;function Ot(t){Ae=t}let Te=null;function cn(t){Te=t}let jt=null;function Ds(t){Ae!==null&&(jt===null?jt=[t]:jt.push(t))}let mt=null,yt=0,Pt=null;function wd(t){Pt=t}let Rs=1,Zn=0,mn=Zn;function uo(t){mn=t}function Os(){return++Rs}function Tr(t){var e=t.f;if(e&ot)return!0;if(e&ct&&(t.f&=~ri),e&ln){for(var n=t.deps,i=n.length,r=0;r<i;r++){var a=n[r];if(Tr(a)&&ps(a),a.wv>t.wv)return!0}e&Lt&&lt===null&&Je(t,rt)}return!1}function Ns(t,e,n=!0){var i=t.reactions;if(i!==null&&!(jt!==null&&Ai.call(jt,t)))for(var r=0;r<i.length;r++){var a=i[r];a.f&ct?Ns(a,e,!1):e===a&&(n?Je(a,ot):a.f&rt&&Je(a,ln),xl(a))}}function qs(t){var h;var e=mt,n=yt,i=Pt,r=Ae,a=jt,o=Fe,s=Wt,c=mn,u=t.f;mt=null,yt=0,Pt=null,Ae=u&(Kt|qn)?null:t,jt=null,Li(t.ctx),Wt=!1,mn=++Zn,t.ac!==null&&(si(()=>{t.ac.abort(ma)}),t.ac=null);try{t.f|=Jr;var f=t.fn,v=f();t.f|=Bn;var d=t.deps,_=ge==null?void 0:ge.is_fork;if(mt!==null){var g;if(_||sr(t,yt),d!==null&&yt>0)for(d.length=yt+mt.length,g=0;g<mt.length;g++)d[yt+g]=mt[g];else t.deps=d=mt;if(Pl()&&t.f&Lt)for(g=yt;g<d.length;g++)((h=d[g]).reactions??(h.reactions=[])).push(t)}else!_&&d!==null&&yt<d.length&&(sr(t,yt),d.length=yt);if(oi()&&Pt!==null&&!Wt&&d!==null&&!(t.f&(ct|ln|ot)))for(g=0;g<Pt.length;g++)Ns(Pt[g],t);if(r!==null&&r!==t){if(Zn++,r.deps!==null)for(let m=0;m<n;m+=1)r.deps[m].rv=Zn;if(e!==null)for(const m of e)m.rv=Zn;Pt!==null&&(i===null?i=Pt:i.push(...Pt))}return t.f&Dn&&(t.f^=Dn),v}catch(m){return rs(m)}finally{t.f^=Jr,mt=e,yt=n,Pt=i,Ae=r,jt=a,Li(o),Wt=s,mn=c}}function bd(t,e){let n=e.reactions;if(n!==null){var i=ou.call(n,t);if(i!==-1){var r=n.length-1;r===0?n=e.reactions=null:(n[i]=n[r],n.pop())}}if(n===null&&e.f&ct&&(mt===null||!Ai.call(mt,e))){var a=e;a.f&Lt&&(a.f^=Lt,a.f&=~ri),a.v!==et&&bl(a),ld(a),sr(a,0)}}function sr(t,e){var n=t.deps;if(n!==null)for(var i=e;i<n.length;i++)bd(t,n[i])}function ji(t){var e=t.f;if(!(e&Mt)){Je(t,rt);var n=Te,i=Vr;Te=t,Vr=!0;try{e&(Ct|yl)?yd(t):El(t),As(t);var r=qs(t);t.teardown=typeof r=="function"?r:null,t.wv=Rs;var a}finally{Vr=i,Te=n}}}async function cr(){await Promise.resolve(),cs()}function l(t){var e=t.f,n=(e&ct)!==0;if(Ae!==null&&!Wt){var i=Te!==null&&(Te.f&Mt)!==0;if(!i&&(jt===null||!Ai.call(jt,t))){var r=Ae.deps;if(Ae.f&Jr)t.rv<Zn&&(t.rv=Zn,mt===null&&r!==null&&r[yt]===t?yt++:mt===null?mt=[t]:mt.push(t));else{(Ae.deps??(Ae.deps=[])).push(t);var a=t.reactions;a===null?t.reactions=[Ae]:Ai.call(a,Ae)||a.push(Ae)}}}if(pn&&ei.has(t))return ei.get(t);if(n){var o=t;if(pn){var s=o.v;return(!(o.f&rt)&&o.reactions!==null||Hs(o))&&(s=Tl(o)),ei.set(o,s),s}var c=(o.f&Lt)===0&&!Wt&&Ae!==null&&(Vr||(Ae.f&Lt)!==0),u=(o.f&Bn)===0;Tr(o)&&(c&&(o.f|=Lt),ps(o)),c&&!u&&(_s(o),zs(o))}if(lt!=null&&lt.has(t))return lt.get(t);if(t.f&Dn)throw t.v;return t.v}function zs(t){if(t.f|=Lt,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&ct&&!(e.f&Lt)&&(_s(e),zs(e))}function Hs(t){if(t.v===et)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(ei.has(e)||e.f&ct&&Hs(e))return!0;return!1}function Nt(t){var e=Wt;try{return Wt=!0,t()}finally{Wt=e}}function Fs(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(an in t)ll(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&an in n&&ll(n)}}}function ll(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 i in t)try{ll(t[i],e)}catch{}const n=_l(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=Uo(n);for(let r in i){const a=i[r].get;if(a)try{a.call(t)}catch{}}}}}function kd(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const xd=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sd(t){return xd.includes(t)}const Td={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 Pd(t){return t=t.toLowerCase(),Td[t]??t}const Ed=["touchstart","touchmove"];function Id(t){return Ed.includes(t)}const Kn=Symbol("events"),Bs=new Set,ol=new Set;function Cl(t,e,n,i={}){function r(a){if(i.capture||sl.call(e,a),!a.cancelBubble)return si(()=>n==null?void 0:n.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Gt(()=>{e.addEventListener(t,r,i)}):e.addEventListener(t,r,i),r}function Ad(t,e,n,i={}){var r=Cl(e,t,n,i);return()=>{t.removeEventListener(e,r,i)}}function he(t,e,n,i,r){var a={capture:i,passive:r},o=Cl(t,e,n,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Sr(()=>{e.removeEventListener(t,o,a)})}function ne(t,e,n){(e[Kn]??(e[Kn]={}))[t]=n}function xe(t){for(var e=0;e<t.length;e++)Bs.add(t[e]);for(var n of ol)n(t)}let fo=null;function sl(t){var m,w;var e=this,n=e.ownerDocument,i=t.type,r=((m=t.composedPath)==null?void 0:m.call(t))||[],a=r[0]||t.target;fo=t;var o=0,s=fo===t&&t[Kn];if(s){var c=r.indexOf(s);if(c!==-1&&(e===document||e===window)){t[Kn]=e;return}var u=r.indexOf(e);if(u===-1)return;c<=u&&(o=c)}if(a=r[o]||t.target,a!==e){su(t,"currentTarget",{configurable:!0,get(){return a||n}});var f=Ae,v=Te;Ot(null),cn(null);try{for(var d,_=[];a!==null;){var g=a.assignedSlot||a.parentNode||a.host||null;try{var h=(w=a[Kn])==null?void 0:w[i];h!=null&&(!a.disabled||t.target===a)&&h.call(a,t)}catch(k){d?_.push(k):d=k}if(t.cancelBubble||g===e||g===null)break;a=g}if(d){for(let k of _)queueMicrotask(()=>{throw k});throw d}}finally{t[Kn]=e,delete t.currentTarget,Ot(f),cn(v)}}}var Vo;const ja=((Vo=globalThis==null?void 0:globalThis.window)==null?void 0:Vo.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Cd(t){return(ja==null?void 0:ja.createHTML(t))??t}function Vs(t){var e=ya("template");return e.innerHTML=Cd(t.replaceAll("<!>","<!---->")),e.content}const Ld=pa?"script":"SCRIPT";function Hn(t,e){var n=Te;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function S(t,e){var n=(e&qu)!==0,i=(e&zu)!==0,r,a=!t.startsWith("<!>");return()=>{r===void 0&&(r=Vs(a?t:"<!>"+t),n||(r=nn(r)));var o=i||bs?document.importNode(r,!0):r.cloneNode(!0);if(n){var s=nn(o),c=o.lastChild;Hn(s,c)}else Hn(o,o);return o}}function Md(t,e,n="svg"){var i=!t.startsWith("<!>"),r=`<${n}>${i?t:"<!>"+t}</${n}>`,a;return()=>{if(!a){var o=Vs(r),s=nn(o);a=nn(s)}var c=a.cloneNode(!0);return Hn(c,c),c}}function Ve(t,e){return Md(t,e,"svg")}function jd(t){return()=>Dd(t())}function Dd(t){const e=t.nodeType===hu,n=t.nodeName===Ld?[t]:t.querySelectorAll("script"),i=Te;for(const a of n){const o=ya("script");for(var r of a.attributes)o.setAttribute(r.name,r.value);o.textContent=a.textContent,(e?t.firstChild===a:t===a)&&(i.nodes.start=o),(e?t.lastChild===a:t===a)&&(i.nodes.end=o),a.replaceWith(o)}return t}function Ge(t=""){{var e=Zt(t+"");return Hn(e,e),e}}function ye(){var t=document.createDocumentFragment(),e=document.createComment(""),n=Zt();return t.append(e,n),Hn(e,n),t}function y(t,e){t!==null&&t.before(e)}let Xr=!0;function Dr(t){Xr=t}function X(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[Xi]??(t[Xi]=t.nodeValue))&&(t[Xi]=n,t.nodeValue=`${n}`)}function Dt(t,e){return Rd(t,e)}const Rr=new Map;function Rd(t,{target:e,anchor:n,props:i={},events:r,context:a,intro:o=!0,transformError:s}){ud();var c=void 0,u=pd(()=>{var f=n??e.appendChild(Zt());Sl(f,{pending:()=>{}},_=>{re({});var g=Fe;a&&(g.c=a),r&&(i.$$events=r),Xr=o,c=t(_,i)||{},Xr=!0,ae()},s);var v=new Set,d=_=>{for(var g=0;g<_.length;g++){var h=_[g];if(!v.has(h)){v.add(h);var m=Id(h);for(const P of[e,document]){var w=Rr.get(P);w===void 0&&(w=new Map,Rr.set(P,w));var k=w.get(h);k===void 0?(P.addEventListener(h,sl,{passive:m}),w.set(h,1)):w.set(h,k+1)}}}};return d(ga(Bs)),ol.add(d),()=>{var m;for(var _ of v)for(const w of[e,document]){var g=Rr.get(w),h=g.get(_);--h==0?(w.removeEventListener(_,sl),g.delete(_),g.size===0&&Rr.delete(w)):g.set(_,h)}ol.delete(d),f!==n&&((m=f.parentNode)==null||m.removeChild(f))}});return cl.set(c,u),c}let cl=new WeakMap;function Wn(t,e){const n=cl.get(t);return n?(cl.delete(t),n(e)):Promise.resolve()}var Bt,en,kt,$n,mr,pr,ua;class Ui{constructor(e,n=!0){dt(this,"anchor");_e(this,Bt,new Map);_e(this,en,new Map);_e(this,kt,new Map);_e(this,$n,new Set);_e(this,mr,!0);_e(this,pr,e=>{if(R(this,Bt).has(e)){var n=R(this,Bt).get(e),i=R(this,en).get(n);if(i)Il(i),R(this,$n).delete(n);else{var r=R(this,kt).get(n);r&&(R(this,en).set(n,r.effect),R(this,kt).delete(n),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[a,o]of R(this,Bt)){if(R(this,Bt).delete(a),a===e)break;const s=R(this,kt).get(o);s&&(st(s.effect),R(this,kt).delete(o))}for(const[a,o]of R(this,en)){if(a===n||R(this,$n).has(a))continue;const s=()=>{if(Array.from(R(this,Bt).values()).includes(a)){var u=document.createDocumentFragment();Al(o,u),u.append(Zt()),R(this,kt).set(a,{effect:o,fragment:u})}else st(o);R(this,$n).delete(a),R(this,en).delete(a)};R(this,mr)||!i?(R(this,$n).add(a),ti(o,s,!1)):s()}}});_e(this,ua,e=>{R(this,Bt).delete(e);const n=Array.from(R(this,Bt).values());for(const[i,r]of R(this,kt))n.includes(i)||(st(r.effect),R(this,kt).delete(i))});this.anchor=e,ke(this,mr,n)}ensure(e,n){var i=ge,r=Ss();if(n&&!R(this,en).has(e)&&!R(this,kt).has(e))if(r){var a=document.createDocumentFragment(),o=Zt();a.append(o),R(this,kt).set(e,{effect:vt(()=>n(o)),fragment:a})}else R(this,en).set(e,vt(()=>n(this.anchor)));if(R(this,Bt).set(i,e),r){for(const[s,c]of R(this,en))s===e?i.unskip_effect(c):i.skip_effect(c);for(const[s,c]of R(this,kt))s===e?i.unskip_effect(c.effect):i.skip_effect(c.effect);i.oncommit(R(this,pr)),i.ondiscard(R(this,ua))}else R(this,pr).call(this,i)}}Bt=new WeakMap,en=new WeakMap,kt=new WeakMap,$n=new WeakMap,mr=new WeakMap,pr=new WeakMap,ua=new WeakMap;const Od=0,vo=1,Nd=2;function _n(t,e,n,i,r){var a=oi(),o=et,s=a?sn(o):al(o,!1,!1),c=a?sn(o):al(o,!1,!1),u=new Ui(t);kn(()=>{var f=ge;f.deactivate();var v=e();f.activate();var d=!1;if(du(v)){var _=gs(),g=!1;const h=m=>{if(!d){g=!0,_(!1),zn.ensure();try{m()}finally{or(!1),pi||cs()}}};v.then(m=>{h(()=>{gn(s,m),u.ensure(vo,i&&(w=>i(w,s)))})},m=>{h(()=>{if(gn(c,m),u.ensure(Nd,r&&(w=>r(w,c))),!r)throw c.v})}),Gt(()=>{g||h(()=>{u.ensure(Od,n)})})}else gn(s,v),u.ensure(vo,i&&(h=>i(h,s)));return()=>{d=!0}})}function V(t,e,n=!1){var i=new Ui(t),r=n?on:0;function a(o,s){i.ensure(o,s)}kn(()=>{var o=!1;e((s,c=0)=>{o=!0,a(c,s)}),o||a(-1,null)},r)}const qd=Symbol("NaN");function Gi(t,e,n){var i=new Ui(t),r=!oi();kn(()=>{var a=e();a!==a&&(a=qd),r&&a!==null&&typeof a=="object"&&(a={}),i.ensure(a,n)})}function Be(t,e){return e}function zd(t,e,n){for(var i=[],r=e.length,a,o=e.length,s=0;s<r;s++){let v=e[s];ti(v,()=>{if(a){if(a.pending.delete(v),a.done.add(v),a.pending.size===0){var d=t.outrogroups;ul(t,ga(a.done)),d.delete(a),d.size===0&&(t.outrogroups=null)}}else o-=1},!1)}if(o===0){var c=i.length===0&&n!==null;if(c){var u=n,f=u.parentNode;dd(f),f.append(u),t.items.clear()}ul(t,e,!c)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function ul(t,e,n=!0){var i;if(t.pending.size>0){i=new Set;for(const o of t.pending.values())for(const s of o)i.add(t.items.get(s).e)}for(var r=0;r<e.length;r++){var a=e[r];if(i!=null&&i.has(a)){a.f|=tn;const o=document.createDocumentFragment();Al(a,o)}else st(e[r],n)}}var ho;function Ne(t,e,n,i,r,a=null){var o=t,s=new Map,c=(e&Jo)!==0;if(c){var u=t;o=u.appendChild(Zt())}var f=null,v=_a(()=>{var P=n();return pl(P)?P:P==null?[]:ga(P)}),d,_=new Map,g=!0;function h(P){k.effect.f&Mt||(k.pending.delete(P),k.fallback=f,Hd(k,d,o,e,i),f!==null&&(d.length===0?f.f&tn?(f.f^=tn,er(f,null,o)):Il(f):ti(f,()=>{f=null})))}function m(P){k.pending.delete(P)}var w=kn(()=>{d=l(v);for(var P=d.length,x=new Set,E=ge,M=Ss(),j=0;j<P;j+=1){var z=d[j],H=i(z,j),q=g?null:s.get(H);q?(q.v&&gn(q.v,z),q.i&&gn(q.i,j),M&&E.unskip_effect(q.e)):(q=Fd(s,g?o:ho??(ho=Zt()),z,H,j,r,e,n),g||(q.e.f|=tn),s.set(H,q)),x.add(H)}if(P===0&&a&&!f&&(g?f=vt(()=>a(o)):(f=vt(()=>a(ho??(ho=Zt()))),f.f|=tn)),P>x.size&&mu(),!g)if(_.set(E,x),M){for(const[I,N]of s)x.has(I)||E.skip_effect(N.e);E.oncommit(h),E.ondiscard(m)}else h(E);l(v)}),k={effect:w,items:s,pending:_,outrogroups:null,fallback:f};g=!1}function Qi(t){for(;t!==null&&!(t.f&Kt);)t=t.next;return t}function Hd(t,e,n,i,r){var q,I,N,A,F,K,U,L,G;var a=(i&Iu)!==0,o=e.length,s=t.items,c=Qi(t.effect.first),u,f=null,v,d=[],_=[],g,h,m,w;if(a)for(w=0;w<o;w+=1)g=e[w],h=r(g,w),m=s.get(h).e,m.f&tn||((I=(q=m.nodes)==null?void 0:q.a)==null||I.measure(),(v??(v=new Set)).add(m));for(w=0;w<o;w+=1){if(g=e[w],h=r(g,w),m=s.get(h).e,t.outrogroups!==null)for(const O of t.outrogroups)O.pending.delete(m),O.done.delete(m);if(m.f&ht&&(Il(m),a&&((A=(N=m.nodes)==null?void 0:N.a)==null||A.unfix(),(v??(v=new Set)).delete(m))),m.f&tn)if(m.f^=tn,m===c)er(m,null,n);else{var k=f?f.next:c;m===t.effect.last&&(t.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),Sn(t,f,m),Sn(t,m,k),er(m,k,n),f=m,d=[],_=[],c=Qi(f.next);continue}if(m!==c){if(u!==void 0&&u.has(m)){if(d.length<_.length){var P=_[0],x;f=P.prev;var E=d[0],M=d[d.length-1];for(x=0;x<d.length;x+=1)er(d[x],P,n);for(x=0;x<_.length;x+=1)u.delete(_[x]);Sn(t,E.prev,M.next),Sn(t,f,E),Sn(t,M,P),c=P,f=M,w-=1,d=[],_=[]}else u.delete(m),er(m,c,n),Sn(t,m.prev,m.next),Sn(t,m,f===null?t.effect.first:f.next),Sn(t,f,m),f=m;continue}for(d=[],_=[];c!==null&&c!==m;)(u??(u=new Set)).add(c),_.push(c),c=Qi(c.next);if(c===null)continue}m.f&tn||d.push(m),f=m,c=Qi(m.next)}if(t.outrogroups!==null){for(const O of t.outrogroups)O.pending.size===0&&(ul(t,ga(O.done)),(F=t.outrogroups)==null||F.delete(O));t.outrogroups.size===0&&(t.outrogroups=null)}if(c!==null||u!==void 0){var j=[];if(u!==void 0)for(m of u)m.f&ht||j.push(m);for(;c!==null;)!(c.f&ht)&&c!==t.fallback&&j.push(c),c=Qi(c.next);var z=j.length;if(z>0){var H=i&Jo&&o===0?n:null;if(a){for(w=0;w<z;w+=1)(U=(K=j[w].nodes)==null?void 0:K.a)==null||U.measure();for(w=0;w<z;w+=1)(G=(L=j[w].nodes)==null?void 0:L.a)==null||G.fix()}zd(t,j,H)}}a&&Gt(()=>{var O,J;if(v!==void 0)for(m of v)(J=(O=m.nodes)==null?void 0:O.a)==null||J.apply()})}function Fd(t,e,n,i,r,a,o,s){var c=o&Pu?o&Au?sn(n):al(n,!1,!1):null,u=o&Eu?sn(r):null;return{v:c,i:u,e:vt(()=>(a(e,c??n,u??r,s),()=>{t.delete(i)}))}}function er(t,e,n){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end,a=e&&!(e.f&tn)?e.nodes.start:n;i!==null;){var o=xr(i);if(a.before(i),i===r)return;i=o}}function Sn(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Ws(t,e,n=!1,i=!1,r=!1,a=!1){var o=t,s="";if(n)var c=t;W(()=>{var u=Te;if(s!==(s=e()??"")){if(n){u.nodes=null,c.innerHTML=s,s!==""&&Hn(nn(c),c.lastChild);return}if(u.nodes!==null&&(Cs(u.nodes.start,u.nodes.end),u.nodes=null),s!==""){var f=i?Xo:r?Hu:void 0,v=ya(i?"svg":r?"math":"template",f);v.innerHTML=s;var d=i||r?v:v.content;if(Hn(nn(d),d.lastChild),i||r)for(;nn(d);)o.before(nn(d));else o.before(d)}}})}function Qe(t,e,...n){var i=new Ui(t);kn(()=>{const r=e()??null;i.ensure(r,r&&(a=>r(a,...n)))},on)}function $r(t,e,n){var i=new Ui(t);kn(()=>{var r=e()??null;i.ensure(r,r&&(a=>n(a,r)))},on)}const Bd=()=>performance.now(),hn={tick:t=>requestAnimationFrame(t),now:()=>Bd(),tasks:new Set};function Us(){const t=hn.now();hn.tasks.forEach(e=>{e.c(t)||(hn.tasks.delete(e),e.f())}),hn.tasks.size!==0&&hn.tick(Us)}function Vd(t){let e;return hn.tasks.size===0&&hn.tick(Us),{promise:new Promise(n=>{hn.tasks.add(e={c:t,f:n})}),abort(){hn.tasks.delete(e)}}}function Or(t,e){si(()=>{t.dispatchEvent(new CustomEvent(e))})}function Wd(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(n=>n[0].toUpperCase()+n.slice(1)).join("")}function go(t){const e={},n=t.split(";");for(const i of n){const[r,a]=i.split(":");if(!r||a===void 0)break;const o=Wd(r.trim());e[o]=a.trim()}return e}const Ud=t=>t;let Gs=null;function mo(t){Gs=t}function Gd(t,e,n){var i=Gs??Te,r=i.nodes,a,o,s,c=null;r.a??(r.a={element:t,measure(){a=this.element.getBoundingClientRect()},apply(){if(s==null||s.abort(),o=this.element.getBoundingClientRect(),a.left!==o.left||a.right!==o.right||a.top!==o.top||a.bottom!==o.bottom){const u=e()(this.element,{from:a,to:o},n==null?void 0:n());s=ea(this.element,u,void 0,1,()=>{},()=>{s==null||s.abort(),s=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:v}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=v;var _=t.getBoundingClientRect();if(a.left!==_.left||a.top!==_.top){var g=`translate(${a.left-_.left}px, ${a.top-_.top}px)`;d.transform=d.transform?`${d.transform} ${g}`:g}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}}),r.a.element=t}function Re(t,e,n,i){var P;var r=(t&Ru)!==0,a=(t&Ou)!==0,o=r&&a,s=(t&Nu)!==0,c=o?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,d,_;function g(){return si(()=>u??(u=n()(e,(i==null?void 0:i())??{},{direction:c})))}var h={is_global:s,in(){var x;if(e.inert=f,!r){_==null||_.abort(),(x=_==null?void 0:_.reset)==null||x.call(_);return}a||d==null||d.abort(),d=ea(e,g(),_,1,()=>{Or(e,"introstart")},()=>{Or(e,"introend"),d==null||d.abort(),d=u=void 0,e.style.overflow=v})},out(x){if(!a){x==null||x(),u=void 0;return}e.inert=!0,_=ea(e,g(),d,0,()=>{Or(e,"outrostart")},()=>{Or(e,"outroend"),x==null||x()})},stop:()=>{d==null||d.abort(),_==null||_.abort()}},m=Te;if(((P=m.nodes).t??(P.t=[])).push(h),r&&Xr){var w=s;if(!w){for(var k=m.parent;k&&k.f&on;)for(;(k=k.parent)&&!(k.f&Ct););w=!k||(k.f&Bn)!==0}w&&Vn(()=>{Nt(()=>h.in())})}}function ea(t,e,n,i,r,a){var o=i===1;if(di(e)){var s,c=!1;return Gt(()=>{if(!c){var w=e({direction:o?"in":"out"});s=ea(t,w,n,i,r,a)}}),{abort:()=>{c=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n==null||n.deactivate(),!(e!=null&&e.duration)&&!(e!=null&&e.delay))return r(),a(),{abort:xt,deactivate:xt,reset:xt,t:()=>i};const{delay:u=0,css:f,tick:v,easing:d=Ud}=e;var _=[];if(o&&n===void 0&&(v&&v(0,1),f)){var g=go(f(0,1));_.push(g,g)}var h=()=>1-i,m=t.animate(_,{duration:u,fill:"forwards"});return m.onfinish=()=>{m.cancel(),r();var w=(n==null?void 0:n.t())??1-i;n==null||n.abort();var k=i-w,P=e.duration*Math.abs(k),x=[];if(P>0){var E=!1;if(f)for(var M=Math.ceil(P/16.666666666666668),j=0;j<=M;j+=1){var z=w+k*d(j/M),H=go(f(z,1-z));x.push(H),E||(E=H.overflow==="hidden")}E&&(t.style.overflow="hidden"),h=()=>{var q=m.currentTime;return w+k*d(q/P)},v&&Vd(()=>{if(m.playState!=="running")return!1;var q=h();return v(q,1-q),!0})}m=t.animate(x,{duration:P,fill:"forwards"}),m.onfinish=()=>{h=()=>i,v==null||v(i,1-i),a()}},{abort:()=>{m&&(m.cancel(),m.effect=null,m.onfinish=xt)},deactivate:()=>{a=xt},reset:()=>{i===0&&(v==null||v(1,0))},t:()=>h()}}function Zs(t,e,n,i,r,a){var o=null,s=t,c=Te,u=new Ui(s,!1);kn(()=>{const f=e()||null;var v=f==="svg"?Xo:void 0;if(f===null){u.ensure(null,null),Dr(!0);return}return u.ensure(f,d=>{if(f){if(o=ya(f,v),Hn(o,o),i){var _=o.appendChild(Zt());mo(c),i(o,_),mo(null)}Te.nodes.end=o,d.before(o)}}),Dr(!0),()=>{f&&Dr(!1)}},on),Sr(()=>{Dr(!0)})}function Ks(t,e){var n;n=document.head.appendChild(Zt());try{kn(()=>{var i=vt(()=>e(n));i.f|=Zo})}finally{}}function _t(t,e,n){Vn(()=>{var i=Nt(()=>e(t,n==null?void 0:n())||{});if(n&&(i!=null&&i.update)){var r=!1,a={};wa(()=>{var o=n();Fs(o),r&&es(a,o)&&(a=o,i.update(o))}),r=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function ta(t,e){var n=void 0,i;Is(()=>{n!==(n=e())&&(i&&(st(i),i=null),n&&(i=vt(()=>{Vn(()=>n(t))})))})}function Ys(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=Ys(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Zd(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=Ys(t))&&(i&&(i+=" "),i+=e);return i}function Kd(t){return typeof t=="object"?Zd(t):t??""}const po=[...`
2
- \r\f \v\uFEFF`];function Yd(t,e,n){var i=t==null?"":""+t;if(e&&(i=i?i+" "+e:e),n){for(var r of Object.keys(n))if(n[r])i=i?i+" "+r:r;else if(i.length)for(var a=r.length,o=0;(o=i.indexOf(r,o))>=0;){var s=o+a;(o===0||po.includes(i[o-1]))&&(s===i.length||po.includes(i[s]))?i=(o===0?"":i.substring(0,o))+i.substring(s+1):o=s}}return i===""?null:i}function _o(t,e=!1){var n=e?" !important;":";",i="";for(var r of Object.keys(t)){var a=t[r];a!=null&&a!==""&&(i+=" "+r+": "+a+n)}return i}function Da(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Jd(t,e){if(e){var n="",i,r;if(Array.isArray(e)?(i=e[0],r=e[1]):i=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,o=0,s=!1,c=[];i&&c.push(...Object.keys(i).map(Da)),r&&c.push(...Object.keys(r).map(Da));var u=0,f=-1;const h=t.length;for(var v=0;v<h;v++){var d=t[v];if(s?d==="/"&&t[v-1]==="*"&&(s=!1):a?a===d&&(a=!1):d==="/"&&t[v+1]==="*"?s=!0:d==='"'||d==="'"?a=d:d==="("?o++:d===")"&&o--,!s&&a===!1&&o===0){if(d===":"&&f===-1)f=v;else if(d===";"||v===h-1){if(f!==-1){var _=Da(t.substring(u,f).trim());if(!c.includes(_)){d!==";"&&v++;var g=t.substring(u,v).trim();n+=" "+g+";"}}u=v+1,f=-1}}}}return i&&(n+=_o(i)),r&&(n+=_o(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function me(t,e,n,i,r,a){var o=t[Ja];if(o!==n||o===void 0){var s=Yd(n,i,a);s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s),t[Ja]=n}else if(a&&r!==a)for(var c in a){var u=!!a[c];(r==null||u!==!!r[c])&&t.classList.toggle(c,u)}return a}function Ra(t,e={},n,i){for(var r in n){var a=n[r];e[r]!==a&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,i))}}function $e(t,e,n,i){var r=t[Qa];if(r!==e){var a=Jd(e,i);a==null?t.removeAttribute("style"):t.style.cssText=a,t[Qa]=e}else i&&(Array.isArray(i)?(Ra(t,n==null?void 0:n[0],i[0]),Ra(t,n==null?void 0:n[1],i[1],"important")):Ra(t,n,i));return i}function na(t,e,n=!1){if(t.multiple){if(e==null)return;if(!pl(e))return Vu();for(var i of t.options)i.selected=e.includes(nr(i));return}for(i of t.options){var r=nr(i);if(cd(r,e)){i.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Js(t){var e=new MutationObserver(()=>{na(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Sr(()=>{e.disconnect()})}function Qd(t,e,n=e){var i=new WeakSet,r=!0;Ts(t,"change",a=>{var o=a?"[selected]":":checked",s;if(t.multiple)s=[].map.call(t.querySelectorAll(o),nr);else{var c=t.querySelector(o)??t.querySelector("option:not([disabled])");s=c&&nr(c)}n(s),t.__value=s,ge!==null&&i.add(ge)}),Vn(()=>{var a=e();if(t===document.activeElement){var o=ge;if(i.has(o))return}if(na(t,a,r),r&&a===void 0){var s=t.querySelector(":checked");s!==null&&(a=nr(s),n(a))}t.__value=a,r=!1}),Js(t)}function nr(t){return"__value"in t?t.__value:t.value}const vi=Symbol("class"),hi=Symbol("style"),Qs=Symbol("is custom element"),Xs=Symbol("is html"),Xd=pa?"option":"OPTION",$d=pa?"select":"SELECT",ef=pa?"progress":"PROGRESS";function tf(t,e){var n=Ll(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==ef)||(t.value=e??"")}function $s(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ce(t,e,n,i){var r=Ll(t);r[e]!==(r[e]=n)&&(e==="loading"&&(t[vu]=n),n==null?t.removeAttribute(e):typeof n!="string"&&tc(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function nf(t,e,n,i,r=!1,a=!1){var o=Ll(t),s=o[Qs],c=!o[Xs],u=e||{},f=t.nodeName===Xd;for(var v in e)v in n||(n[v]=null);n.class?n.class=Kd(n.class):(i||n[vi])&&(n.class=null),n[hi]&&(n.style??(n.style=null));var d=tc(t);for(const x in n){let E=n[x];if(f&&x==="value"&&E==null){t.value=t.__value="",u[x]=E;continue}if(x==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";me(t,_,E,i,e==null?void 0:e[vi],n[vi]),u[x]=E,u[vi]=n[vi];continue}if(x==="style"){$e(t,E,e==null?void 0:e[hi],n[hi]),u[x]=E,u[hi]=n[hi];continue}var g=u[x];if(!(E===g&&!(E===void 0&&t.hasAttribute(x)))){u[x]=E;var h=x[0]+x[1];if(h!=="$$")if(h==="on"){const M={},j="$$"+x;let z=x.slice(2);var m=Sd(z);if(kd(z)&&(z=z.slice(0,-7),M.capture=!0),!m&&g){if(E!=null)continue;t.removeEventListener(z,u[j],M),u[j]=null}if(m)ne(z,t,E),xe([z]);else if(E!=null){let H=function(q){u[x].call(this,q)};var P=H;u[j]=Cl(z,t,H,M)}}else if(x==="style")ce(t,x,E);else if(x==="autofocus")fd(t,!!E);else if(!s&&(x==="__value"||x==="value"&&E!=null))t.value=t.__value=E;else if(x==="selected"&&f)$s(t,E);else{var w=x;c||(w=Pd(w));var k=w==="defaultValue"||w==="defaultChecked";if(E==null&&!s&&!k)if(o[x]=null,w==="value"||w==="checked"){let M=t;const j=e===void 0;if(w==="value"){let z=M.defaultValue;M.removeAttribute(w),M.defaultValue=z,M.value=M.__value=j?z:null}else{let z=M.defaultChecked;M.removeAttribute(w),M.defaultChecked=z,M.checked=j?z:!1}}else t.removeAttribute(x);else k||d.includes(w)&&(s||typeof E!="string")?(t[w]=E,w in o&&(o[w]=et)):typeof E!="function"&&ce(t,w,E)}}}return u}function ec(t,e,n=[],i=[],r=[],a,o=!1,s=!1){hs(r,n,i,c=>{var u=void 0,f={},v=t.nodeName===$d,d=!1;if(Is(()=>{var g=e(...c.map(l)),h=nf(t,u,g,a,o,s);d&&v&&"value"in g&&na(t,g.value);for(let w of Object.getOwnPropertySymbols(f))g[w]||st(f[w]);for(let w of Object.getOwnPropertySymbols(g)){var m=g[w];w.description===Fu&&(!u||m!==u[w])&&(f[w]&&st(f[w]),f[w]=vt(()=>ta(t,()=>m))),h[w]=m}u=h}),v){var _=t;Vn(()=>{na(_,u.value,!0),Js(_)})}d=!0})}function Ll(t){return t[Nr]??(t[Nr]={[Qs]:t.nodeName.includes("-"),[Xs]:t.namespaceURI===Qo})}var yo=new Map;function tc(t){var e=t.getAttribute("is")||t.nodeName,n=yo.get(e);if(n)return n;yo.set(e,n=[]);for(var i,r=t,a=Element.prototype;a!==r;){i=Uo(r);for(var o in i)i[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&n.push(o);r=_l(r)}return n}function Di(t,e,n=e){var i=new WeakSet;Ts(t,"input",async r=>{var a=r?t.defaultValue:t.value;if(a=Oa(t)?Na(a):a,n(a),ge!==null&&i.add(ge),await cr(),a!==(a=e())){var o=t.selectionStart,s=t.selectionEnd,c=t.value.length;if(t.value=a??"",s!==null){var u=t.value.length;o===s&&s===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=o,t.selectionEnd=Math.min(s,u))}}}),Nt(e)==null&&t.value&&(n(Oa(t)?Na(t.value):t.value),ge!==null&&i.add(ge)),wa(()=>{var r=e();if(t===document.activeElement){var a=ge;if(i.has(a))return}Oa(t)&&r===Na(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function Oa(t){var e=t.type;return e==="number"||e==="range"}function Na(t){return t===""?null:+t}var In,Ei,_r,da,nc;const fa=class fa{constructor(e){_e(this,da);_e(this,In,new WeakMap);_e(this,Ei);_e(this,_r);ke(this,_r,e)}observe(e,n){var i=R(this,In).get(e)||new Set;return i.add(n),R(this,In).set(e,i),Ie(this,da,nc).call(this).observe(e,R(this,_r)),()=>{var r=R(this,In).get(e);r.delete(n),r.size===0&&(R(this,In).delete(e),R(this,Ei).unobserve(e))}}};In=new WeakMap,Ei=new WeakMap,_r=new WeakMap,da=new WeakSet,nc=function(){return R(this,Ei)??ke(this,Ei,new ResizeObserver(e=>{for(var n of e){fa.entries.set(n.target,n);for(var i of R(this,In).get(n.target)||[])i(n)}}))},dt(fa,"entries",new WeakMap);let dl=fa;var rf=new dl({box:"border-box"});function St(t,e,n){var i=rf.observe(t,()=>n(t[e]));Vn(()=>(Nt(()=>n(t[e])),i))}function qa(t,e){return t===e||(t==null?void 0:t[an])===e}function Ke(t={},e,n,i){var r=Fe.r,a=Te;return Vn(()=>{var o,s;return wa(()=>{o=s,s=[],Nt(()=>{qa(n(...s),t)||(e(t,...s),o&&qa(n(...o),t)&&e(null,...o))})}),()=>{let c=a;for(;c!==r&&c.parent!==null&&c.parent.f&Ya;)c=c.parent;const u=()=>{s&&qa(n(...s),t)&&e(null,...s)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Ri(t,e){hd(window,["resize"],()=>si(()=>e(window[t])))}function Ml(t=!1){const e=Fe,n=e.l.u;if(!n)return;let i=()=>Fs(e.s);if(t){let r=0,a={};const o=Mi(()=>{let s=!1;const c=e.s;for(const u in c)c[u]!==a[u]&&(a[u]=c[u],s=!0);return s&&r++,r});i=()=>l(o)}n.b.length&&md(()=>{wo(e,i),Za(n.b)}),Ye(()=>{const r=Nt(()=>n.m.map(fu));return()=>{for(const a of r)typeof a=="function"&&a()}}),n.a.length&&Ye(()=>{wo(e,i),Za(n.a)})}function wo(t,e){if(t.l.s)for(const n of t.l.s)l(n);e()}const af={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 Zi(t,e,n){return new Proxy({props:t,exclude:e},af)}const lf={get(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(di(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(t,e,n){let i=t.props.length;for(;i--;){let r=t.props[i];di(r)&&(r=r());const a=jn(r,e);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(di(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const r=jn(i,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===an||e===Yo)return!1;for(let n of t.props)if(di(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(di(n)&&(n=n()),!!n){for(const i in n)e.includes(i)||e.push(i);for(const i of Object.getOwnPropertySymbols(n))e.includes(i)||e.push(i)}return e}};function yn(...t){return new Proxy({props:t},lf)}function C(t,e,n,i){var x;var r=!Wi||(n&Lu)!==0,a=(n&ju)!==0,o=(n&Du)!==0,s=i,c=!0,u=void 0,f=()=>o&&r?(u??(u=Mi(i)),l(u)):(c&&(c=!1,s=o?Nt(i):i),s);let v;if(a){var d=an in t||Yo in t;v=((x=jn(t,e))==null?void 0:x.set)??(d&&e in t?E=>t[e]=E:void 0)}var _,g=!1;a?[_,g]=Yu(()=>t[e]):_=t[e],_===void 0&&i!==void 0&&(_=f(),v&&(r&&bu(),v(_)));var h;if(r?h=()=>{var E=t[e];return E===void 0?f():(c=!0,E)}:h=()=>{var E=t[e];return E!==void 0&&(s=void 0),E===void 0?s:E},r&&!(n&Mu))return h;if(v){var m=t.$$legacy;return function(E,M){return arguments.length>0?((!r||!M||m||g)&&v(M?h():E),E):h()}}var w=!1,k=(n&Cu?Mi:_a)(()=>(w=!1,h()));a&&l(k);var P=Te;return function(E,M){if(arguments.length>0){const j=M?l(k):r&&a?je(E):E;return D(k,j),w=!0,s!==void 0&&(s=j),E}return pn&&w||P.f&Mt?k.v:l(k)}}function tt(t){Fe===null&&wl(),Wi&&Fe.l!==null?of(Fe).m.push(t):Ye(()=>{const e=Nt(t);if(typeof e=="function")return e})}function Pr(t){Fe===null&&wl(),tt(()=>()=>Nt(t))}function of(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const sf="5";var Wo;typeof window<"u"&&((Wo=window.__svelte??(window.__svelte={})).v??(Wo.v=new Set)).add(sf);function un(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const ic="https://www.playpilot.com",cf="https://partner-api.playpilot.tech/1.0",uf="https://img-external.playpilot.tech",df="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.36.2",Oi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Fn=600,za={};async function qt(t,{headers:e={},method:n="GET",body:i=null,baseUrl:r=cf}={}){const a=!ba()&&n==="GET";if(a&&t in za)return za[t];const o=n==="GET"?{}:{"Content-Type":"application/json"},s=await fetch(r+t,{method:n,headers:new Headers({...o,...e}),body:i?JSON.stringify(i):null});if(!(s!=null&&s.ok))throw s;const c=await s.text();let u=c;try{c&&(u=JSON.parse(c))}catch{}return a&&(za[t]=u),u}const jl="EncryptedToken",rc="articleReplacementEditToken",ac="playpilot-editorial-mode";async function lc({href:t=window.location.href,throwError:e=!1}={}){try{const n=un();if(!n)throw new Error("No token was provided");const i=Dl(t);if(!i)throw new Error("Could not be authenticated");return await qt(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),ff(i),!0}catch(n){if(console.error(n),e)throw n}finally{gf()}return!1}function Dl(t=""){var i,r;const e=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(e)return e;if(t){const a=new URL(t).searchParams.get(rc);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${jl}=`).pop())==null?void 0:r.split(";")[0])||""}function ff(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=jl+"="+t+";"+i+";path=/"}function vf(){document.cookie=jl+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function ba(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(ac)==="true"||!!t}function hf(){const t=new URL(window.location.href);t.searchParams.set(ac,"true"),window.history.replaceState({},"",t)}function gf(){const t=new URL(window.location.href);t.searchParams.delete(rc),window.history.replaceState({},"",t)}function mf(t){let e=0;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);e=e*31+i>>>0}return e.toString(16)}function Er(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<t;)n+=e[Math.floor(Math.random()*e.length)];return n}const p={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function Ir(){var i,r;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,e=Object.values(p);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(n){if(e.includes(n))return n;const a=e.find(o=>o.toLowerCase().startsWith(n+"-"));if(a)return a}return p.English}function Rl(t,e=""){const n=[],i=[t];for(;i.length>0;){const r=i.pop();if(n.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 a=Array.from(r.childNodes).some(c=>{var u;return c.nodeType===Node.TEXT_NODE&&((u=c.nodeValue)==null?void 0:u.trim())!==""});if(a&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const o=r.tagName==="P"&&!!r.textContent;if(a||o){n.push(r);continue}const s=Array.from(r.children);for(let c=s.length-1;c>=0;c--)i.push(s[c])}return n}function Ni(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const n=t.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function oc(t){return t.map(e=>e.innerText).join(`
2
+ \r\f \v\uFEFF`];function Yd(t,e,n){var i=t==null?"":""+t;if(e&&(i=i?i+" "+e:e),n){for(var r of Object.keys(n))if(n[r])i=i?i+" "+r:r;else if(i.length)for(var a=r.length,o=0;(o=i.indexOf(r,o))>=0;){var s=o+a;(o===0||po.includes(i[o-1]))&&(s===i.length||po.includes(i[s]))?i=(o===0?"":i.substring(0,o))+i.substring(s+1):o=s}}return i===""?null:i}function _o(t,e=!1){var n=e?" !important;":";",i="";for(var r of Object.keys(t)){var a=t[r];a!=null&&a!==""&&(i+=" "+r+": "+a+n)}return i}function Da(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Jd(t,e){if(e){var n="",i,r;if(Array.isArray(e)?(i=e[0],r=e[1]):i=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,o=0,s=!1,c=[];i&&c.push(...Object.keys(i).map(Da)),r&&c.push(...Object.keys(r).map(Da));var u=0,f=-1;const h=t.length;for(var v=0;v<h;v++){var d=t[v];if(s?d==="/"&&t[v-1]==="*"&&(s=!1):a?a===d&&(a=!1):d==="/"&&t[v+1]==="*"?s=!0:d==='"'||d==="'"?a=d:d==="("?o++:d===")"&&o--,!s&&a===!1&&o===0){if(d===":"&&f===-1)f=v;else if(d===";"||v===h-1){if(f!==-1){var _=Da(t.substring(u,f).trim());if(!c.includes(_)){d!==";"&&v++;var g=t.substring(u,v).trim();n+=" "+g+";"}}u=v+1,f=-1}}}}return i&&(n+=_o(i)),r&&(n+=_o(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function me(t,e,n,i,r,a){var o=t[Ja];if(o!==n||o===void 0){var s=Yd(n,i,a);s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s),t[Ja]=n}else if(a&&r!==a)for(var c in a){var u=!!a[c];(r==null||u!==!!r[c])&&t.classList.toggle(c,u)}return a}function Ra(t,e={},n,i){for(var r in n){var a=n[r];e[r]!==a&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,i))}}function $e(t,e,n,i){var r=t[Qa];if(r!==e){var a=Jd(e,i);a==null?t.removeAttribute("style"):t.style.cssText=a,t[Qa]=e}else i&&(Array.isArray(i)?(Ra(t,n==null?void 0:n[0],i[0]),Ra(t,n==null?void 0:n[1],i[1],"important")):Ra(t,n,i));return i}function na(t,e,n=!1){if(t.multiple){if(e==null)return;if(!pl(e))return Vu();for(var i of t.options)i.selected=e.includes(nr(i));return}for(i of t.options){var r=nr(i);if(cd(r,e)){i.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Js(t){var e=new MutationObserver(()=>{na(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Sr(()=>{e.disconnect()})}function Qd(t,e,n=e){var i=new WeakSet,r=!0;Ts(t,"change",a=>{var o=a?"[selected]":":checked",s;if(t.multiple)s=[].map.call(t.querySelectorAll(o),nr);else{var c=t.querySelector(o)??t.querySelector("option:not([disabled])");s=c&&nr(c)}n(s),t.__value=s,ge!==null&&i.add(ge)}),Vn(()=>{var a=e();if(t===document.activeElement){var o=ge;if(i.has(o))return}if(na(t,a,r),r&&a===void 0){var s=t.querySelector(":checked");s!==null&&(a=nr(s),n(a))}t.__value=a,r=!1}),Js(t)}function nr(t){return"__value"in t?t.__value:t.value}const vi=Symbol("class"),hi=Symbol("style"),Qs=Symbol("is custom element"),Xs=Symbol("is html"),Xd=pa?"option":"OPTION",$d=pa?"select":"SELECT",ef=pa?"progress":"PROGRESS";function tf(t,e){var n=Ll(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==ef)||(t.value=e??"")}function $s(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ce(t,e,n,i){var r=Ll(t);r[e]!==(r[e]=n)&&(e==="loading"&&(t[vu]=n),n==null?t.removeAttribute(e):typeof n!="string"&&tc(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function nf(t,e,n,i,r=!1,a=!1){var o=Ll(t),s=o[Qs],c=!o[Xs],u=e||{},f=t.nodeName===Xd;for(var v in e)v in n||(n[v]=null);n.class?n.class=Kd(n.class):(i||n[vi])&&(n.class=null),n[hi]&&(n.style??(n.style=null));var d=tc(t);for(const x in n){let E=n[x];if(f&&x==="value"&&E==null){t.value=t.__value="",u[x]=E;continue}if(x==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";me(t,_,E,i,e==null?void 0:e[vi],n[vi]),u[x]=E,u[vi]=n[vi];continue}if(x==="style"){$e(t,E,e==null?void 0:e[hi],n[hi]),u[x]=E,u[hi]=n[hi];continue}var g=u[x];if(!(E===g&&!(E===void 0&&t.hasAttribute(x)))){u[x]=E;var h=x[0]+x[1];if(h!=="$$")if(h==="on"){const M={},j="$$"+x;let z=x.slice(2);var m=Sd(z);if(kd(z)&&(z=z.slice(0,-7),M.capture=!0),!m&&g){if(E!=null)continue;t.removeEventListener(z,u[j],M),u[j]=null}if(m)ne(z,t,E),xe([z]);else if(E!=null){let H=function(q){u[x].call(this,q)};var P=H;u[j]=Cl(z,t,H,M)}}else if(x==="style")ce(t,x,E);else if(x==="autofocus")fd(t,!!E);else if(!s&&(x==="__value"||x==="value"&&E!=null))t.value=t.__value=E;else if(x==="selected"&&f)$s(t,E);else{var w=x;c||(w=Pd(w));var k=w==="defaultValue"||w==="defaultChecked";if(E==null&&!s&&!k)if(o[x]=null,w==="value"||w==="checked"){let M=t;const j=e===void 0;if(w==="value"){let z=M.defaultValue;M.removeAttribute(w),M.defaultValue=z,M.value=M.__value=j?z:null}else{let z=M.defaultChecked;M.removeAttribute(w),M.defaultChecked=z,M.checked=j?z:!1}}else t.removeAttribute(x);else k||d.includes(w)&&(s||typeof E!="string")?(t[w]=E,w in o&&(o[w]=et)):typeof E!="function"&&ce(t,w,E)}}}return u}function ec(t,e,n=[],i=[],r=[],a,o=!1,s=!1){hs(r,n,i,c=>{var u=void 0,f={},v=t.nodeName===$d,d=!1;if(Is(()=>{var g=e(...c.map(l)),h=nf(t,u,g,a,o,s);d&&v&&"value"in g&&na(t,g.value);for(let w of Object.getOwnPropertySymbols(f))g[w]||st(f[w]);for(let w of Object.getOwnPropertySymbols(g)){var m=g[w];w.description===Fu&&(!u||m!==u[w])&&(f[w]&&st(f[w]),f[w]=vt(()=>ta(t,()=>m))),h[w]=m}u=h}),v){var _=t;Vn(()=>{na(_,u.value,!0),Js(_)})}d=!0})}function Ll(t){return t[Nr]??(t[Nr]={[Qs]:t.nodeName.includes("-"),[Xs]:t.namespaceURI===Qo})}var yo=new Map;function tc(t){var e=t.getAttribute("is")||t.nodeName,n=yo.get(e);if(n)return n;yo.set(e,n=[]);for(var i,r=t,a=Element.prototype;a!==r;){i=Uo(r);for(var o in i)i[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&n.push(o);r=_l(r)}return n}function Di(t,e,n=e){var i=new WeakSet;Ts(t,"input",async r=>{var a=r?t.defaultValue:t.value;if(a=Oa(t)?Na(a):a,n(a),ge!==null&&i.add(ge),await cr(),a!==(a=e())){var o=t.selectionStart,s=t.selectionEnd,c=t.value.length;if(t.value=a??"",s!==null){var u=t.value.length;o===s&&s===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=o,t.selectionEnd=Math.min(s,u))}}}),Nt(e)==null&&t.value&&(n(Oa(t)?Na(t.value):t.value),ge!==null&&i.add(ge)),wa(()=>{var r=e();if(t===document.activeElement){var a=ge;if(i.has(a))return}Oa(t)&&r===Na(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function Oa(t){var e=t.type;return e==="number"||e==="range"}function Na(t){return t===""?null:+t}var In,Ei,_r,da,nc;const fa=class fa{constructor(e){_e(this,da);_e(this,In,new WeakMap);_e(this,Ei);_e(this,_r);ke(this,_r,e)}observe(e,n){var i=R(this,In).get(e)||new Set;return i.add(n),R(this,In).set(e,i),Ie(this,da,nc).call(this).observe(e,R(this,_r)),()=>{var r=R(this,In).get(e);r.delete(n),r.size===0&&(R(this,In).delete(e),R(this,Ei).unobserve(e))}}};In=new WeakMap,Ei=new WeakMap,_r=new WeakMap,da=new WeakSet,nc=function(){return R(this,Ei)??ke(this,Ei,new ResizeObserver(e=>{for(var n of e){fa.entries.set(n.target,n);for(var i of R(this,In).get(n.target)||[])i(n)}}))},dt(fa,"entries",new WeakMap);let dl=fa;var rf=new dl({box:"border-box"});function St(t,e,n){var i=rf.observe(t,()=>n(t[e]));Vn(()=>(Nt(()=>n(t[e])),i))}function qa(t,e){return t===e||(t==null?void 0:t[an])===e}function Ke(t={},e,n,i){var r=Fe.r,a=Te;return Vn(()=>{var o,s;return wa(()=>{o=s,s=[],Nt(()=>{qa(n(...s),t)||(e(t,...s),o&&qa(n(...o),t)&&e(null,...o))})}),()=>{let c=a;for(;c!==r&&c.parent!==null&&c.parent.f&Ya;)c=c.parent;const u=()=>{s&&qa(n(...s),t)&&e(null,...s)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Ri(t,e){hd(window,["resize"],()=>si(()=>e(window[t])))}function Ml(t=!1){const e=Fe,n=e.l.u;if(!n)return;let i=()=>Fs(e.s);if(t){let r=0,a={};const o=Mi(()=>{let s=!1;const c=e.s;for(const u in c)c[u]!==a[u]&&(a[u]=c[u],s=!0);return s&&r++,r});i=()=>l(o)}n.b.length&&md(()=>{wo(e,i),Za(n.b)}),Ye(()=>{const r=Nt(()=>n.m.map(fu));return()=>{for(const a of r)typeof a=="function"&&a()}}),n.a.length&&Ye(()=>{wo(e,i),Za(n.a)})}function wo(t,e){if(t.l.s)for(const n of t.l.s)l(n);e()}const af={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 Zi(t,e,n){return new Proxy({props:t,exclude:e},af)}const lf={get(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(di(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(t,e,n){let i=t.props.length;for(;i--;){let r=t.props[i];di(r)&&(r=r());const a=jn(r,e);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(di(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const r=jn(i,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===an||e===Yo)return!1;for(let n of t.props)if(di(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(di(n)&&(n=n()),!!n){for(const i in n)e.includes(i)||e.push(i);for(const i of Object.getOwnPropertySymbols(n))e.includes(i)||e.push(i)}return e}};function yn(...t){return new Proxy({props:t},lf)}function C(t,e,n,i){var x;var r=!Wi||(n&Lu)!==0,a=(n&ju)!==0,o=(n&Du)!==0,s=i,c=!0,u=void 0,f=()=>o&&r?(u??(u=Mi(i)),l(u)):(c&&(c=!1,s=o?Nt(i):i),s);let v;if(a){var d=an in t||Yo in t;v=((x=jn(t,e))==null?void 0:x.set)??(d&&e in t?E=>t[e]=E:void 0)}var _,g=!1;a?[_,g]=Yu(()=>t[e]):_=t[e],_===void 0&&i!==void 0&&(_=f(),v&&(r&&bu(),v(_)));var h;if(r?h=()=>{var E=t[e];return E===void 0?f():(c=!0,E)}:h=()=>{var E=t[e];return E!==void 0&&(s=void 0),E===void 0?s:E},r&&!(n&Mu))return h;if(v){var m=t.$$legacy;return function(E,M){return arguments.length>0?((!r||!M||m||g)&&v(M?h():E),E):h()}}var w=!1,k=(n&Cu?Mi:_a)(()=>(w=!1,h()));a&&l(k);var P=Te;return function(E,M){if(arguments.length>0){const j=M?l(k):r&&a?je(E):E;return D(k,j),w=!0,s!==void 0&&(s=j),E}return pn&&w||P.f&Mt?k.v:l(k)}}function tt(t){Fe===null&&wl(),Wi&&Fe.l!==null?of(Fe).m.push(t):Ye(()=>{const e=Nt(t);if(typeof e=="function")return e})}function Pr(t){Fe===null&&wl(),tt(()=>()=>Nt(t))}function of(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const sf="5";var Wo;typeof window<"u"&&((Wo=window.__svelte??(window.__svelte={})).v??(Wo.v=new Set)).add(sf);function un(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const ic="https://www.playpilot.com",cf="https://partner-api.playpilot.tech/1.0",uf="https://img-external.playpilot.tech",df="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.36.3",Oi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Fn=600,za={};async function qt(t,{headers:e={},method:n="GET",body:i=null,baseUrl:r=cf}={}){const a=!ba()&&n==="GET";if(a&&t in za)return za[t];const o=n==="GET"?{}:{"Content-Type":"application/json"},s=await fetch(r+t,{method:n,headers:new Headers({...o,...e}),body:i?JSON.stringify(i):null});if(!(s!=null&&s.ok))throw s;const c=await s.text();let u=c;try{c&&(u=JSON.parse(c))}catch{}return a&&(za[t]=u),u}const jl="EncryptedToken",rc="articleReplacementEditToken",ac="playpilot-editorial-mode";async function lc({href:t=window.location.href,throwError:e=!1}={}){try{const n=un();if(!n)throw new Error("No token was provided");const i=Dl(t);if(!i)throw new Error("Could not be authenticated");return await qt(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),ff(i),!0}catch(n){if(console.error(n),e)throw n}finally{gf()}return!1}function Dl(t=""){var i,r;const e=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(e)return e;if(t){const a=new URL(t).searchParams.get(rc);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${jl}=`).pop())==null?void 0:r.split(";")[0])||""}function ff(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=jl+"="+t+";"+i+";path=/"}function vf(){document.cookie=jl+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function ba(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(ac)==="true"||!!t}function hf(){const t=new URL(window.location.href);t.searchParams.set(ac,"true"),window.history.replaceState({},"",t)}function gf(){const t=new URL(window.location.href);t.searchParams.delete(rc),window.history.replaceState({},"",t)}function mf(t){let e=0;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);e=e*31+i>>>0}return e.toString(16)}function Er(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<t;)n+=e[Math.floor(Math.random()*e.length)];return n}const p={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function Ir(){var i,r;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,e=Object.values(p);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(n){if(e.includes(n))return n;const a=e.find(o=>o.toLowerCase().startsWith(n+"-"));if(a)return a}return p.English}function Rl(t,e=""){const n=[],i=[t];for(;i.length>0;){const r=i.pop();if(n.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 a=Array.from(r.childNodes).some(c=>{var u;return c.nodeType===Node.TEXT_NODE&&((u=c.nodeValue)==null?void 0:u.trim())!==""});if(a&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const o=r.tagName==="P"&&!!r.textContent;if(a||o){n.push(r);continue}const s=Array.from(r.children);for(let c=s.length-1;c>=0;c--)i.push(s[c])}return n}function Ni(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const n=t.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function oc(t){return t.map(e=>e.innerText).join(`
3
3
 
4
- `)}function qi(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const n=Ni(),i=Rl(n,(t==null?void 0:t.exclude_elements_selector)||""),r=oc(i);return{parentElement:n,elements:i,pageText:r}}function sc(){const t=Ni();return{content_heading:pf(t),content_modified_time:_f(t),content_published_time:yf(t)}}function pf(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function _f(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=cc().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Ol(n):null}function yf(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,n=cc().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Ol(n):null}function Ol(t){try{return new Date(t).toISOString()}catch{return null}}function cc(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(n=>n.textContent.includes("dateModified")||n.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function ni(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function wf(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function uc(t){return Object.entries(t).filter(([n,i])=>i!=null&&i!=="").map(([n,i])=>`${n}=${i}`).join("&")}function bf(t){return!!(t.exclude_urls_pattern&&ni().match(new RegExp(t.exclude_urls_pattern)))}let Ha=null;async function On({url:t=ni(),params:e={},method:n="GET"}={}){const i=un(),r=ba()?await lc():!1,a=Ir();if(!i)throw new Error("No token was provided");const o=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${r?"&editorial_mode_enabled=true":""}&language=${a}`;let s;if(n==="POST"){const{pageText:c}=qi();e.run_ai&&(e.hash=mf(c||""),e.page_text=c),e.url=t,e.metadata=sc(),s=await qt(o,{method:"POST",body:e})}else s=await qt(o+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=s,s}async function bo({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:r=()=>null}={}){let a=0;Ha&&clearTimeout(Ha);const o=async(s,c)=>{let u;try{try{u=await On()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(u=await On({method:"POST"}),u.ai_enabled&&(u=await On({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:f}=qi();if(u&&e&&(u=await kf(f,u)),t&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=ko(u.manual_injections||[]),u.ai_injections=ko(u.ai_injections||[]),s(u);return}catch{if(a++,a>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),s();return}u&&r(u),Ha=setTimeout(()=>o(s),n)}};return new Promise(o)}async function kf(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const n=async()=>await On({params:{run_ai:!0},method:"POST"}),i=sc().content_modified_time,r=e.content_modified_time?Ol(e.content_modified_time):null,a=i&&r===i;if(i&&e.ai_last_run&&e.ai_progress_message==="Failed"){const o=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(e.ai_last_run)<o)return await n()}return e.ai_last_run&&a||new Date(i||0)<=new Date(r||0)?e:await n()}async function xf(t){var a;const e=(a=window.PlayPilotLinkInjections)==null?void 0:a.selector,i=t.filter(o=>o.manual).map(o=>({sid:o.sid,title:o.title,sentence:o.sentence,phrase_before:o.phrase_before,phrase_after:o.phrase_after,playpilot_url:o.playpilot_url,after_article:!!o.after_article,after_article_style:o.after_article_style||null,in_text:o.in_text??!0,inactive:!!o.inactive,removed:!!o.removed,type:o.type}));if(!await On({method:"POST",params:{private_token:Dl(),manual_injections:i,content_text_selector:e}}))throw new Error("saveLinkInjections response was faulty");return t}function ko(t){return t.map(e=>({...e,key:dc(e.sid)}))}function dc(t){return t+"-"+Er()}function Sf(t,e,n){return t.filter(i=>n.every(r=>i[r]===e[r])).length}function Tf(t,e){return e.some(n=>t>=n.start&&t<n.end)}function fc(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Nl(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function xo(t,e,n=[]){var a,o;const i=document.createTreeWalker(e);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(t)&&!n.includes(((o=r.parentNode)==null?void 0:o.nodeName)||"")););return r}function So(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Pf(t,e,n,i){const r=fc(e),a=Nl(e),o=t.slice(0,i),s=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,u=new RegExp(`${a.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),f=s.replace(u,n);return o+f}function Ef(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function pt(t){return Nl(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function vc(t,e,n){const r=t.indexOf(e),a=Math.floor((n-e.length)/2);let o=Math.max(0,r-a),s=o+n;s>t.length&&(s=t.length,o=Math.max(0,s-n));let c=t.slice(o,s).trim();return o>0&&(c="…"+c),s<t.length&&(c+="…"),c}function hc(t,e,n){const i=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!i||!t.textContent)return{before:"",after:""};const r=Math.max(i.innerText.indexOf(t.textContent),0),a=To(i.innerText.slice(0,e+r)),o=i.innerText.slice(n+r),s=To(Po(a,2)),c=Po(o,2);return{before:s,after:c}}function To(t){return t.split("").reverse().join("")}function Po(t,e=1){const n=t.match(/[^\s]+/g);return n?n.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ia(t,e){let n=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)n++,i+=e.length;return n}function If(t,e,n){const i=[];let r=0;for(;r<=t.length;){const a=e?t.indexOf(e,r):r;if(a===-1&&e)break;const o=e?a+e.length:a,s=n?t.indexOf(n,o):t.length;if(n&&s===-1)break;const c=t.slice(o,s);i.push({match:c,index:o}),r=n?s+n.length:t.length+1}return i}function Af(t,e,n,i){const a=If(t,n,i).filter(({match:s})=>Nl(s).includes(e));return a.length?a.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function Cf(t){var e,n;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((n=t.match(/\s*$/))==null?void 0:n[0].length)||0}}function Lf(t,e,n=0){const i=e.innerHTML,r=[],a=Mf(e);let o=i.indexOf(t);for(;o!==-1;)Tf(o,a)&&r.push(o),o=i.indexOf(t,o+t.length);return r[n]??-1}function Mf(t){const e=[],n=t.innerHTML;let i=!1,r=!1,a=!1,o=0;for(let s=0;s<n.length;s++){const c=n[s];if(!r&&!i&&c==="<"){i=!0,a&&(e.push({start:o,end:s}),a=!1);continue}if(i&&c==='"'&&(r=!r),i&&!r&&c===">"){i=!1;continue}!i&&!r&&!a&&(o=s,a=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function jf(t,e){const n=[" ",".",",","<",">"];try{const i=n.map(s=>"\\"+s).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`([${i}])${r}([${i}])`),o=e.match(a);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function gc(t){return t.ctrlKey||t.metaKey||t.button!==0}const de={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",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",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",InjectionPopoverView:"ali_injection_popover_view",InjectionPopoverClose:"ali_injection_popover_close",InjectionPopoverPlaylinkClick:"ali_injection_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",DisplayedAdVideoPercentage:"ali_display_ad_video_percentage",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",WidgetArticleRailTitleClick:"ali_widget_article_rail_title_click",ShareTitle:"ali_share_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",CardToExploreCta:"ali_card_to_explore_cta",TitleParticipantsView:"ali_title_participants_view",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Ut={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Ln={Card:"tpi_card",Link:"tpi_link"};function Df(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function Un(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Wr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const ka=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Rf(t=[]){return t.map(e=>{var n;return((n=ka.find(i=>i.slug===e))==null?void 0:n.name)||""}).filter(Boolean)}const Fa="playpilot_user_id",Ba="playpilot_session_id";function mc(){if(!ql())return null;try{const t=localStorage.getItem(Fa);return t||(localStorage.setItem(Fa,Er(16)),localStorage.getItem(Fa))}catch{return null}}function Of(){if(!ql())return null;try{const t=sessionStorage.getItem(Ba);return t||(sessionStorage.setItem(Ba,Er(16)),sessionStorage.getItem(Ba))}catch{return null}}function ql(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&Un("tracking")}const Nf="https://insights.playpilot.net";async function fe(t,e=null,n={}){var r,a,o,s,c,u;if(Wr())return;if(!Un("tracking")){zf(t,e,n);return}if((((r=window.PlayPilotLinkInjections.tracked_events)==null?void 0:r.length)||0)>500)return;const i=new Headers({"Content-Type":"application/json"});e&&(n={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Rf(e.genres),providers:[...new Set(((a=e.providers)==null?void 0:a.map(f=>f.name))||[])],...n}),ql()&&(n.user_id=mc(),n.session_id=Of(),n.region=window.PlayPilotLinkInjections.region),n.version="8.36.2",n.time_since_initialize=(o=window.PlayPilotLinkInjections)!=null&&o.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,n.url=ni(),n.url_params=wf(),n.organization_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.organization_sid)||"undefined",n.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",n.device={type:window.innerWidth>Fn?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((u=screen.orientation)==null?void 0:u.type)||"undefined"},fetch(Nf,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:n,source:"ali",keepalive:!0})}),qf({event:t,payload:n})}function qf(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Eo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function zf(t,e=null,n={}){var i;(i=window.PlayPilotLinkInjections).queued_tracking_events||(i.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:n})}function Hf(){if(Un("tracking")){for(const{event:t,title:e,payload:n}of window.PlayPilotLinkInjections.queued_tracking_events||[])fe(t,e,n);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function pc(){if(!Un("ads"))return[];if(window.PlayPilotLinkInjections.no_affiliate)return[];const t=un();if(!t)throw new Error("No token was provided");try{return await qt(`/ads/browse/?api-token=${t}`)}catch(e){throw fe(de.AdsFetchFailed,null,{status:e.status}),e}}function ai(t){var e;return!Un("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(n=>n.campaign_format===t)||null}function Ff(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 Bf={Argentina:"ar",Australia:"au",Austria:"at",Belgium:"be",Brazil:"br",Canada:"ca",Chile:"cl",Colombia:"co",Denmark:"dk",Finland:"fi",France:"fr",Germany:"de",India:"in",Ireland:"ie",Italy:"it",Mexico:"mx",Netherlands:"nl",Norway:"no",Peru:"pe",Poland:"pl",Portugal:"pt",Russia:"ru",Singapore:"sg",Spain:"es",Sweden:"se",Switzerland:"ch",UK:"uk",USA:"us"},_c="playpilot_retargeting_user_id",yc="playpilot_retargeting_region",Vf=500,Io=[];let Va=[],Wa=null;function rn(t,e={}){var c;const n=window[_c]||null,i=window[yc]||null,r=((c=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:c[1])||null,a=window.location.href,o={event:t,url:a,user_id:n,client_id:r,region:i,params:e},s=JSON.stringify(o);Io.includes(s)||(Va.push(o),Io.push(s),Wa&&clearTimeout(Wa),Wa=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Va)}),Va=[]},Vf))}function wc(t,e={}){return()=>{Ye(()=>rn(t,e))}}function Wf(t,e={}){return n=>{const i=()=>rn(t,e);Ye(()=>(n.addEventListener("click",i),()=>n.removeEventListener("click",i)))}}async function Ar(t=5e3){var n,i,r,a;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.region;if(e)return e;try{const s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(i=s==null?void 0:s.country)==null?void 0:i.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),Uf(c),c}catch(o){return fe(de.RegionRequestFailed,null,{message:o.message}),((a=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:a.fallback_region)||""}}async function bc(t=""){try{return t||(t=await Ar()),!t||Object.values(Bf).some(e=>e===t)}catch{return!0}}function Uf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[yc]=t)}async function xa(t={}){const e=un();if(!e)throw new Error("No token was provided");if(t={...t,language:Ir(),include_count:!1},t.region!==null){let n=t.region||await Ar();await bc(n)||(n="gl"),t.region=n}return await qt(`/titles/browse?api-token=${e}&`+uc(t))}async function kc(t){return(await xa({related_to_sid:t.sid})).results}async function xc(t){const n=(await xa({sids:t,no_region_filter:!0})).results[0];if(!n)throw new Error("No title was returned for sid: "+t);return n}const Gf={"Where To Stream Online":{[p.English]:"Where to stream online",[p.Swedish]:"Var kan man streama online",[p.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[p.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[p.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[p.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[p.English]:"We may earn a commission from purchases made through some of the links below.",[p.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[p.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[p.English]:"An error occurred",[p.Swedish]:"Ett fel inträffade",[p.Danish]:"Der opstod en fejl"},Loading:{[p.English]:"Loading",[p.Swedish]:"Laddar",[p.Danish]:"Indlæser"},"Title Unavailable":{[p.English]:"This title is not currently available to stream.",[p.Swedish]:"Den här titeln går inte att streama just nu.",[p.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[p.English]:"is not currently available to stream.",[p.Swedish]:"går inte att streama just nu.",[p.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[p.English]:"is available to stream on",[p.Swedish]:"finns att streama på",[p.Danish]:"kan streames på"},"Is Available To Stream":{[p.English]:"is available to stream.",[p.Swedish]:"finns att streama.",[p.Danish]:"kan streames."},"View Streaming Options":{[p.English]:"View streaming options",[p.Swedish]:"Se streamingalternativ",[p.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[p.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[p.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[p.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[p.English]:"and",[p.Swedish]:"och",[p.Danish]:"og"},Minutes:{[p.English]:"minutes",[p.Swedish]:"minuter",[p.Danish]:"minutter"},"Type: movie":{[p.English]:"Movie",[p.Swedish]:"Film",[p.Danish]:"Film"},"Type: series":{[p.English]:"Series",[p.Swedish]:"Serie",[p.Danish]:"Serie"},Stream:{[p.English]:"Stream",[p.Swedish]:"Streama",[p.Danish]:"Stream"},Buy:{[p.English]:"Buy",[p.Swedish]:"Köp",[p.Danish]:"Køb"},Rent:{[p.English]:"Rent",[p.Swedish]:"Hyr",[p.Danish]:"Lej"},"Rent Or Buy":{[p.English]:"Rent or Buy",[p.Swedish]:"Hyr/köp",[p.Danish]:"Lej eller køb"},Watch:{[p.English]:"Watch",[p.Swedish]:"Titta nu",[p.Danish]:"Se nu"},"Category: AVOD":{[p.English]:"Stream for free",[p.Swedish]:"Streama gratis",[p.Danish]:"Stream gratis"},"Category: SVOD":{[p.English]:"Streaming services",[p.Swedish]:"Streamingtjänster",[p.Danish]:"Streamingtjenester"},"Category: RENT":{[p.English]:"Rent it",[p.Swedish]:"Hyr den",[p.Danish]:"Lej den"},"Category: BUY":{[p.English]:"Buy it",[p.Swedish]:"Köp den",[p.Danish]:"Køb den"},"Category: Other":{[p.English]:"Other",[p.Swedish]:"Annat",[p.Danish]:"Andet"},Share:{[p.English]:"Share",[p.Swedish]:"Dela",[p.Danish]:"Del"},"Copy URL":{[p.English]:"Copy URL",[p.Swedish]:"Kopiera URL",[p.Danish]:"Kopiér URL"},Email:{[p.English]:"Email",[p.Swedish]:"E-post",[p.Danish]:"E-mail"},"Show More":{[p.English]:"Show more",[p.Swedish]:"Visa mer",[p.Danish]:"Vis mere"},"Show Less":{[p.English]:"Show less",[p.Swedish]:"Visa mindre",[p.Danish]:"Vis mindre"},"Read More":{[p.English]:"Read more",[p.Swedish]:"Läs mer",[p.Danish]:"Læs mere"},"Read Less":{[p.English]:"Read less",[p.Swedish]:"Läs mindre",[p.Danish]:"Læs mindre"},Cast:{[p.English]:"Cast",[p.Swedish]:"Rollista",[p.Danish]:"Skuespillere"},"Similar Titles":{[p.English]:"Similar movies & shows",[p.Swedish]:"Liknande filmer och serier",[p.Danish]:"Lignende film og serier"},"Watch Trailer":{[p.English]:"Watch trailer",[p.Swedish]:"Se trailer",[p.Danish]:"Se trailer"},"Streaming Guide":{[p.English]:"Streaming Guide",[p.Swedish]:"Streaming Guide",[p.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[p.English]:"Discover and search all movies and TV shows",[p.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[p.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[p.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[p.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[p.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"Streaming Guide Description":{[p.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[p.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[p.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":{[p.English]:"Search movies and shows",[p.Swedish]:"Sök filmer och serier",[p.Danish]:"Søg film og serier"},Services:{[p.English]:"Services",[p.Swedish]:"Tjänster",[p.Danish]:"Tjenester"},Genres:{[p.English]:"Genres",[p.Swedish]:"Genrer",[p.Danish]:"Genrer"},IMDb:{[p.English]:"IMDb",[p.Swedish]:"IMDb",[p.Danish]:"IMDb"},Year:{[p.English]:"Year",[p.Swedish]:"År",[p.Danish]:"År"},Runtime:{[p.English]:"Runtime",[p.Swedish]:"Speltid",[p.Danish]:"Spilletid"},Countries:{[p.English]:"Countries",[p.Swedish]:"Länder",[p.Danish]:"Lande"},"All Filters":{[p.English]:"All filters",[p.Swedish]:"Alla filter",[p.Danish]:"Alle filtre"},"Sort By":{[p.English]:"Sort by",[p.Swedish]:"Sortera efter",[p.Danish]:"Sortér efter"},Popularity:{[p.English]:"Popularity",[p.Swedish]:"Popularitet",[p.Danish]:"Popularitet"},New:{[p.English]:"New",[p.Swedish]:"Nytt",[p.Danish]:"Nyt"},"Top Rated":{[p.English]:"Top Rated",[p.Swedish]:"Toppbetyg",[p.Danish]:"Højst vurderet"},"IMDb Rating":{[p.English]:"IMDb Rating",[p.Swedish]:"IMDb-betyg",[p.Danish]:"IMDb-vurdering"},"-popularity":{[p.English]:"Popularity",[p.Swedish]:"Popularitet",[p.Danish]:"Popularitet"},"-new":{[p.English]:"New",[p.Swedish]:"Nytt",[p.Danish]:"Nyt"},"-best":{[p.English]:"Top Rated",[p.Swedish]:"Toppbetyg",[p.Danish]:"Højst vurderet"},"-imdb_score":{[p.English]:"IMDb Rating",[p.Swedish]:"IMDb-betyg",[p.Danish]:"IMDb-vurdering"},Search:{[p.English]:"Search",[p.Swedish]:"Sök",[p.Danish]:"Søg"},"Born On":{[p.English]:"Born on",[p.Swedish]:"Född den",[p.Danish]:"Født den"},"Died On":{[p.English]:"Died on",[p.Swedish]:"Död den",[p.Danish]:"Død den"},Credits:{[p.English]:"Credits",[p.Swedish]:"Medverkande",[p.Danish]:"Medvirkende"},Home:{[p.English]:"Home",[p.Swedish]:"Hem",[p.Danish]:"Hjem"},Explore:{[p.English]:"Explore",[p.Swedish]:"Utforska",[p.Danish]:"Udforsk"},"Page Not Found":{[p.English]:"Page not found",[p.Swedish]:"Sidan hittades inte",[p.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[p.English]:"Mentioned in this article",[p.Swedish]:"Nämnda i den här artikeln",[p.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[p.English]:"Sorry, your region is not supported",[p.Swedish]:"Tyvärr stöds inte din region",[p.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[p.English]:"Show [[count]] more",[p.Swedish]:"Visa [[count]] till",[p.Danish]:"Vis [[count]] mere"},Movies:{[p.English]:"Movies",[p.Swedish]:"Filmer",[p.Danish]:"Film"},Shows:{[p.English]:"Shows",[p.Swedish]:"Serier",[p.Danish]:"Serier"},Documentaries:{[p.English]:"Documentaries",[p.Swedish]:"Dokumentärer",[p.Danish]:"Dokumentarer"},"List: Trending":{[p.English]:"Trending Movies & Shows",[p.Swedish]:"Trendande Titlar",[p.Danish]:"Populære film og serier"},"List: Upcoming":{[p.English]:"Upcoming Releases",[p.Swedish]:"Kommande Premiärer",[p.Danish]:"Mest ventede film"},"List: New":{[p.English]:"New Releases",[p.Swedish]:"Nya Filmer & Serier",[p.Danish]:"Nye film og serier"},"List: Demand":{[p.English]:"Always in Demand",[p.Swedish]:"Tidlösa Favoriter",[p.Danish]:"Tidløse favoritter"},"List: Cinema":{[p.English]:"Coming to Cinemas",[p.Swedish]:"Snart på Bio",[p.Danish]:"Kommende film"},"Explore All Movies And Shows":{[p.English]:"Explore all movies and TV shows",[p.Swedish]:"Utforska alla filmer och tv-serier",[p.Danish]:"Udforsk alle film og tv-serier"},"Job: all":{[p.English]:"All",[p.Swedish]:"Alla",[p.Danish]:"Alle"},"Job: actor":{[p.English]:"Actor",[p.Swedish]:"Skådespelare",[p.Danish]:"Skuespiller"},"Job: producer":{[p.English]:"Producer",[p.Swedish]:"Producent",[p.Danish]:"Producer"},"Job: executive-producer":{[p.English]:"Executive Producer",[p.Swedish]:"Verkställande producent",[p.Danish]:"Administrerende producer"},"Job: writer":{[p.English]:"Writer",[p.Swedish]:"Manusförfattare",[p.Danish]:"Manuskriptforfatter"},"Job: director":{[p.English]:"Director",[p.Swedish]:"Regissör",[p.Danish]:"Instruktør"},All:{[p.English]:"All",[p.Swedish]:"Alla",[p.Danish]:"Alle"},Unscripted:{[p.English]:"Unscripted",[p.Swedish]:"Oscripterat",[p.Danish]:"Umanuskriptet"},Independent:{[p.English]:"Independent",[p.Swedish]:"Indie",[p.Danish]:"Indie"},"Game Show":{[p.English]:"Game Show",[p.Swedish]:"Gameshow",[p.Danish]:"Quizshow"},"Film Noir":{[p.English]:"Film Noir",[p.Swedish]:"Film noir",[p.Danish]:"Film noir"},Entertainment:{[p.English]:"Entertainment",[p.Swedish]:"Underhållning",[p.Danish]:"Underholdning"},News:{[p.English]:"News",[p.Swedish]:"Nyheter",[p.Danish]:"Nyheder"},Short:{[p.English]:"Short",[p.Swedish]:"Kortfilm",[p.Danish]:"Kortfilm"},Bollywood:{[p.English]:"Bollywood",[p.Swedish]:"Bollywood",[p.Danish]:"Bollywood"},Concert:{[p.English]:"Concert",[p.Swedish]:"Konsert",[p.Danish]:"Koncert"},Arthouse:{[p.English]:"Arthouse",[p.Swedish]:"Arthouse",[p.Danish]:"Arthouse"},"Alternate Version":{[p.English]:"Alternate Version",[p.Swedish]:"Alternativ version",[p.Danish]:"Alternativ version"},"Reality TV":{[p.English]:"Reality TV",[p.Swedish]:"Reality-TV",[p.Danish]:"Reality-TV"},Culture:{[p.English]:"Culture",[p.Swedish]:"Kultur",[p.Danish]:"Kultur"},Drama:{[p.English]:"Drama",[p.Swedish]:"Drama",[p.Danish]:"Drama"},Crime:{[p.English]:"Crime",[p.Swedish]:"Kriminal",[p.Danish]:"Krimi"},Western:{[p.English]:"Western",[p.Swedish]:"Western",[p.Danish]:"Western"},Thriller:{[p.English]:"Thriller",[p.Swedish]:"Thriller",[p.Danish]:"Thriller"},Animation:{[p.English]:"Animation",[p.Swedish]:"Animerat",[p.Danish]:"Animation"},Mystery:{[p.English]:"Mystery",[p.Swedish]:"Mysterium",[p.Danish]:"Mysterium"},Science:{[p.English]:"Science",[p.Swedish]:"Vetenskap",[p.Danish]:"Videnskab"},Nature:{[p.English]:"Nature",[p.Swedish]:"Natur",[p.Danish]:"Natur"},War:{[p.English]:"War",[p.Swedish]:"Krig",[p.Danish]:"Krig"},"Sci-Fi":{[p.English]:"Sci-Fi",[p.Swedish]:"Sci-fi",[p.Danish]:"Sci-fi"},Documentary:{[p.English]:"Documentary",[p.Swedish]:"Dokumentär",[p.Danish]:"Dokumentar"},"Stand-up":{[p.English]:"Stand-up",[p.Swedish]:"Standup",[p.Danish]:"Stand-up"},"Talk Show":{[p.English]:"Talk Show",[p.Swedish]:"Talkshow",[p.Danish]:"Talkshow"},Fantasy:{[p.English]:"Fantasy",[p.Swedish]:"Fantasy",[p.Danish]:"Fantasy"},History:{[p.English]:"History",[p.Swedish]:"Historia",[p.Danish]:"Historie"},Adventure:{[p.English]:"Adventure",[p.Swedish]:"Äventyr",[p.Danish]:"Eventyr"},Action:{[p.English]:"Action",[p.Swedish]:"Action",[p.Danish]:"Action"},Horror:{[p.English]:"Horror",[p.Swedish]:"Skräck",[p.Danish]:"Gyser"},Comedy:{[p.English]:"Comedy",[p.Swedish]:"Komedi",[p.Danish]:"Komedie"},Biography:{[p.English]:"Biography",[p.Swedish]:"Biografi",[p.Danish]:"Biografi"},Music:{[p.English]:"Music",[p.Swedish]:"Musik",[p.Danish]:"Musik"},Sport:{[p.English]:"Sport",[p.Swedish]:"Sport",[p.Danish]:"Sport"},Romance:{[p.English]:"Romance",[p.Swedish]:"Romantik",[p.Danish]:"Romantik"},Kids:{[p.English]:"Kids",[p.Swedish]:"Barn",[p.Danish]:"Børn"},Lifestyle:{[p.English]:"Lifestyle",[p.Swedish]:"Livsstil",[p.Danish]:"Livsstil"},Musical:{[p.English]:"Musical",[p.Swedish]:"Musikal",[p.Danish]:"Musical"},Anime:{[p.English]:"Anime",[p.Swedish]:"Anime",[p.Danish]:"Anime"},Family:{[p.English]:"Family",[p.Swedish]:"Familj",[p.Danish]:"Familie"}};function se(t,e=Ir()){var n;return((n=Gf[t])==null?void 0:n[e])||t}const Zf=t=>t;function zl(t){const e=t-1;return e*e*e+1}function Ao(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Rt(t,{delay:e=0,duration:n=400,easing:i=Zf}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function _i(t,{delay:e=0,duration:n=400,easing:i=zl,x:r=0,y:a=0,opacity:o=0}={}){const s=getComputedStyle(t),c=+s.opacity,u=s.transform==="none"?"":s.transform,f=c*(1-o),[v,d]=Ao(r),[_,g]=Ao(a);return{delay:e,duration:n,easing:i,css:(h,m)=>`
4
+ `)}function qi(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const n=Ni(),i=Rl(n,(t==null?void 0:t.exclude_elements_selector)||""),r=oc(i);return{parentElement:n,elements:i,pageText:r}}function sc(){const t=Ni();return{content_heading:pf(t),content_modified_time:_f(t),content_published_time:yf(t)}}function pf(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function _f(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=cc().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Ol(n):null}function yf(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,n=cc().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Ol(n):null}function Ol(t){try{return new Date(t).toISOString()}catch{return null}}function cc(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(n=>n.textContent.includes("dateModified")||n.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function ni(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function wf(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function uc(t){return Object.entries(t).filter(([n,i])=>i!=null&&i!=="").map(([n,i])=>`${n}=${i}`).join("&")}function bf(t){return!!(t.exclude_urls_pattern&&ni().match(new RegExp(t.exclude_urls_pattern)))}let Ha=null;async function On({url:t=ni(),params:e={},method:n="GET"}={}){const i=un(),r=ba()?await lc():!1,a=Ir();if(!i)throw new Error("No token was provided");const o=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${r?"&editorial_mode_enabled=true":""}&language=${a}`;let s;if(n==="POST"){const{pageText:c}=qi();e.run_ai&&(e.hash=mf(c||""),e.page_text=c),e.url=t,e.metadata=sc(),s=await qt(o,{method:"POST",body:e})}else s=await qt(o+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=s,s}async function bo({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:r=()=>null}={}){let a=0;Ha&&clearTimeout(Ha);const o=async(s,c)=>{let u;try{try{u=await On()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(u=await On({method:"POST"}),u.ai_enabled&&(u=await On({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:f}=qi();if(u&&e&&(u=await kf(f,u)),t&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=ko(u.manual_injections||[]),u.ai_injections=ko(u.ai_injections||[]),s(u);return}catch{if(a++,a>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),s();return}u&&r(u),Ha=setTimeout(()=>o(s),n)}};return new Promise(o)}async function kf(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const n=async()=>await On({params:{run_ai:!0},method:"POST"}),i=sc().content_modified_time,r=e.content_modified_time?Ol(e.content_modified_time):null,a=i&&r===i;if(i&&e.ai_last_run&&e.ai_progress_message==="Failed"){const o=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(e.ai_last_run)<o)return await n()}return e.ai_last_run&&a||new Date(i||0)<=new Date(r||0)?e:await n()}async function xf(t){var a;const e=(a=window.PlayPilotLinkInjections)==null?void 0:a.selector,i=t.filter(o=>o.manual).map(o=>({sid:o.sid,title:o.title,sentence:o.sentence,phrase_before:o.phrase_before,phrase_after:o.phrase_after,playpilot_url:o.playpilot_url,after_article:!!o.after_article,after_article_style:o.after_article_style||null,in_text:o.in_text??!0,inactive:!!o.inactive,removed:!!o.removed,type:o.type}));if(!await On({method:"POST",params:{private_token:Dl(),manual_injections:i,content_text_selector:e}}))throw new Error("saveLinkInjections response was faulty");return t}function ko(t){return t.map(e=>({...e,key:dc(e.sid)}))}function dc(t){return t+"-"+Er()}function Sf(t,e,n){return t.filter(i=>n.every(r=>i[r]===e[r])).length}function Tf(t,e){return e.some(n=>t>=n.start&&t<n.end)}function fc(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Nl(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function xo(t,e,n=[]){var a,o;const i=document.createTreeWalker(e);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(t)&&!n.includes(((o=r.parentNode)==null?void 0:o.nodeName)||"")););return r}function So(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Pf(t,e,n,i){const r=fc(e),a=Nl(e),o=t.slice(0,i),s=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,u=new RegExp(`${a.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),f=s.replace(u,n);return o+f}function Ef(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function pt(t){return Nl(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function vc(t,e,n){const r=t.indexOf(e),a=Math.floor((n-e.length)/2);let o=Math.max(0,r-a),s=o+n;s>t.length&&(s=t.length,o=Math.max(0,s-n));let c=t.slice(o,s).trim();return o>0&&(c="…"+c),s<t.length&&(c+="…"),c}function hc(t,e,n){const i=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!i||!t.textContent)return{before:"",after:""};const r=Math.max(i.innerText.indexOf(t.textContent),0),a=To(i.innerText.slice(0,e+r)),o=i.innerText.slice(n+r),s=To(Po(a,2)),c=Po(o,2);return{before:s,after:c}}function To(t){return t.split("").reverse().join("")}function Po(t,e=1){const n=t.match(/[^\s]+/g);return n?n.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ia(t,e){let n=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)n++,i+=e.length;return n}function If(t,e,n){const i=[];let r=0;for(;r<=t.length;){const a=e?t.indexOf(e,r):r;if(a===-1&&e)break;const o=e?a+e.length:a,s=n?t.indexOf(n,o):t.length;if(n&&s===-1)break;const c=t.slice(o,s);i.push({match:c,index:o}),r=n?s+n.length:t.length+1}return i}function Af(t,e,n,i){const a=If(t,n,i).filter(({match:s})=>Nl(s).includes(e));return a.length?a.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function Cf(t){var e,n;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((n=t.match(/\s*$/))==null?void 0:n[0].length)||0}}function Lf(t,e,n=0){const i=e.innerHTML,r=[],a=Mf(e);let o=i.indexOf(t);for(;o!==-1;)Tf(o,a)&&r.push(o),o=i.indexOf(t,o+t.length);return r[n]??-1}function Mf(t){const e=[],n=t.innerHTML;let i=!1,r=!1,a=!1,o=0;for(let s=0;s<n.length;s++){const c=n[s];if(!r&&!i&&c==="<"){i=!0,a&&(e.push({start:o,end:s}),a=!1);continue}if(i&&c==='"'&&(r=!r),i&&!r&&c===">"){i=!1;continue}!i&&!r&&!a&&(o=s,a=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function jf(t,e){const n=[" ",".",",","<",">"];try{const i=n.map(s=>"\\"+s).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`([${i}])${r}([${i}])`),o=e.match(a);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function gc(t){return t.ctrlKey||t.metaKey||t.button!==0}const de={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",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",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",InjectionPopoverView:"ali_injection_popover_view",InjectionPopoverClose:"ali_injection_popover_close",InjectionPopoverPlaylinkClick:"ali_injection_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",DisplayedAdVideoPercentage:"ali_display_ad_video_percentage",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",WidgetArticleRailTitleClick:"ali_widget_article_rail_title_click",ShareTitle:"ali_share_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",CardToExploreCta:"ali_card_to_explore_cta",TitleParticipantsView:"ali_title_participants_view",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Ut={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Ln={Card:"tpi_card",Link:"tpi_link"};function Df(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function Un(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Wr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const ka=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function Rf(t=[]){return t.map(e=>{var n;return((n=ka.find(i=>i.slug===e))==null?void 0:n.name)||""}).filter(Boolean)}const Fa="playpilot_user_id",Ba="playpilot_session_id";function mc(){if(!ql())return null;try{const t=localStorage.getItem(Fa);return t||(localStorage.setItem(Fa,Er(16)),localStorage.getItem(Fa))}catch{return null}}function Of(){if(!ql())return null;try{const t=sessionStorage.getItem(Ba);return t||(sessionStorage.setItem(Ba,Er(16)),sessionStorage.getItem(Ba))}catch{return null}}function ql(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&Un("tracking")}const Nf="https://insights.playpilot.net";async function fe(t,e=null,n={}){var r,a,o,s,c,u;if(Wr())return;if(!Un("tracking")){zf(t,e,n);return}if((((r=window.PlayPilotLinkInjections.tracked_events)==null?void 0:r.length)||0)>500)return;const i=new Headers({"Content-Type":"application/json"});e&&(n={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Rf(e.genres),providers:[...new Set(((a=e.providers)==null?void 0:a.map(f=>f.name))||[])],...n}),ql()&&(n.user_id=mc(),n.session_id=Of(),n.region=window.PlayPilotLinkInjections.region),n.version="8.36.3",n.time_since_initialize=(o=window.PlayPilotLinkInjections)!=null&&o.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,n.url=ni(),n.url_params=wf(),n.organization_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.organization_sid)||"undefined",n.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",n.device={type:window.innerWidth>Fn?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((u=screen.orientation)==null?void 0:u.type)||"undefined"},fetch(Nf,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:n,source:"ali",keepalive:!0})}),qf({event:t,payload:n})}function qf(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Eo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function zf(t,e=null,n={}){var i;(i=window.PlayPilotLinkInjections).queued_tracking_events||(i.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:n})}function Hf(){if(Un("tracking")){for(const{event:t,title:e,payload:n}of window.PlayPilotLinkInjections.queued_tracking_events||[])fe(t,e,n);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function pc(){if(!Un("ads"))return[];if(window.PlayPilotLinkInjections.no_affiliate)return[];const t=un();if(!t)throw new Error("No token was provided");try{return await qt(`/ads/browse/?api-token=${t}`)}catch(e){throw fe(de.AdsFetchFailed,null,{status:e.status}),e}}function ai(t){var e;return!Un("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(n=>n.campaign_format===t)||null}function Ff(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 Bf={Argentina:"ar",Australia:"au",Austria:"at",Belgium:"be",Brazil:"br",Canada:"ca",Chile:"cl",Colombia:"co",Denmark:"dk",Finland:"fi",France:"fr",Germany:"de",India:"in",Ireland:"ie",Italy:"it",Mexico:"mx",Netherlands:"nl",Norway:"no",Peru:"pe",Poland:"pl",Portugal:"pt",Russia:"ru",Singapore:"sg",Spain:"es",Sweden:"se",Switzerland:"ch",UK:"uk",USA:"us"},_c="playpilot_retargeting_user_id",yc="playpilot_retargeting_region",Vf=500,Io=[];let Va=[],Wa=null;function rn(t,e={}){var c;const n=window[_c]||null,i=window[yc]||null,r=((c=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:c[1])||null,a=window.location.href,o={event:t,url:a,user_id:n,client_id:r,region:i,params:e},s=JSON.stringify(o);Io.includes(s)||(Va.push(o),Io.push(s),Wa&&clearTimeout(Wa),Wa=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Va)}),Va=[]},Vf))}function wc(t,e={}){return()=>{Ye(()=>rn(t,e))}}function Wf(t,e={}){return n=>{const i=()=>rn(t,e);Ye(()=>(n.addEventListener("click",i),()=>n.removeEventListener("click",i)))}}async function Ar(t=5e3){var n,i,r,a;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.region;if(e)return e;try{const s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(i=s==null?void 0:s.country)==null?void 0:i.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),Uf(c),c}catch(o){return fe(de.RegionRequestFailed,null,{message:o.message}),((a=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:a.fallback_region)||""}}async function bc(t=""){try{return t||(t=await Ar()),!t||Object.values(Bf).some(e=>e===t)}catch{return!0}}function Uf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[yc]=t)}async function xa(t={}){const e=un();if(!e)throw new Error("No token was provided");if(t={...t,language:Ir(),include_count:!1},t.region!==null){let n=t.region||await Ar();await bc(n)||(n="gl"),t.region=n}return await qt(`/titles/browse?api-token=${e}&`+uc(t))}async function kc(t){return(await xa({related_to_sid:t.sid})).results}async function xc(t){const n=(await xa({sids:t,no_region_filter:!0})).results[0];if(!n)throw new Error("No title was returned for sid: "+t);return n}const Gf={"Where To Stream Online":{[p.English]:"Where to stream online",[p.Swedish]:"Var kan man streama online",[p.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[p.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[p.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[p.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[p.English]:"We may earn a commission from purchases made through some of the links below.",[p.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[p.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[p.English]:"An error occurred",[p.Swedish]:"Ett fel inträffade",[p.Danish]:"Der opstod en fejl"},Loading:{[p.English]:"Loading",[p.Swedish]:"Laddar",[p.Danish]:"Indlæser"},"Title Unavailable":{[p.English]:"This title is not currently available to stream.",[p.Swedish]:"Den här titeln går inte att streama just nu.",[p.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[p.English]:"is not currently available to stream.",[p.Swedish]:"går inte att streama just nu.",[p.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[p.English]:"is available to stream on",[p.Swedish]:"finns att streama på",[p.Danish]:"kan streames på"},"Is Available To Stream":{[p.English]:"is available to stream.",[p.Swedish]:"finns att streama.",[p.Danish]:"kan streames."},"View Streaming Options":{[p.English]:"View streaming options",[p.Swedish]:"Se streamingalternativ",[p.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[p.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[p.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[p.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[p.English]:"and",[p.Swedish]:"och",[p.Danish]:"og"},Minutes:{[p.English]:"minutes",[p.Swedish]:"minuter",[p.Danish]:"minutter"},"Type: movie":{[p.English]:"Movie",[p.Swedish]:"Film",[p.Danish]:"Film"},"Type: series":{[p.English]:"Series",[p.Swedish]:"Serie",[p.Danish]:"Serie"},Stream:{[p.English]:"Stream",[p.Swedish]:"Streama",[p.Danish]:"Stream"},Buy:{[p.English]:"Buy",[p.Swedish]:"Köp",[p.Danish]:"Køb"},Rent:{[p.English]:"Rent",[p.Swedish]:"Hyr",[p.Danish]:"Lej"},"Rent Or Buy":{[p.English]:"Rent or Buy",[p.Swedish]:"Hyr/köp",[p.Danish]:"Lej eller køb"},Watch:{[p.English]:"Watch",[p.Swedish]:"Titta nu",[p.Danish]:"Se nu"},"Category: AVOD":{[p.English]:"Stream for free",[p.Swedish]:"Streama gratis",[p.Danish]:"Stream gratis"},"Category: SVOD":{[p.English]:"Streaming services",[p.Swedish]:"Streamingtjänster",[p.Danish]:"Streamingtjenester"},"Category: RENT":{[p.English]:"Rent it",[p.Swedish]:"Hyr den",[p.Danish]:"Lej den"},"Category: BUY":{[p.English]:"Buy it",[p.Swedish]:"Köp den",[p.Danish]:"Køb den"},"Category: Other":{[p.English]:"Other",[p.Swedish]:"Annat",[p.Danish]:"Andet"},Share:{[p.English]:"Share",[p.Swedish]:"Dela",[p.Danish]:"Del"},"Copy URL":{[p.English]:"Copy URL",[p.Swedish]:"Kopiera URL",[p.Danish]:"Kopiér URL"},Email:{[p.English]:"Email",[p.Swedish]:"E-post",[p.Danish]:"E-mail"},"Show More":{[p.English]:"Show more",[p.Swedish]:"Visa mer",[p.Danish]:"Vis mere"},"Show Less":{[p.English]:"Show less",[p.Swedish]:"Visa mindre",[p.Danish]:"Vis mindre"},"Read More":{[p.English]:"Read more",[p.Swedish]:"Läs mer",[p.Danish]:"Læs mere"},"Read Less":{[p.English]:"Read less",[p.Swedish]:"Läs mindre",[p.Danish]:"Læs mindre"},Cast:{[p.English]:"Cast",[p.Swedish]:"Rollista",[p.Danish]:"Skuespillere"},"Similar Titles":{[p.English]:"Similar movies & shows",[p.Swedish]:"Liknande filmer och serier",[p.Danish]:"Lignende film og serier"},"Watch Trailer":{[p.English]:"Watch trailer",[p.Swedish]:"Se trailer",[p.Danish]:"Se trailer"},"Streaming Guide":{[p.English]:"Streaming Guide",[p.Swedish]:"Streaming Guide",[p.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[p.English]:"Discover and search all movies and TV shows",[p.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[p.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[p.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[p.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[p.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"Streaming Guide Description":{[p.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[p.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[p.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":{[p.English]:"Search movies and shows",[p.Swedish]:"Sök filmer och serier",[p.Danish]:"Søg film og serier"},Services:{[p.English]:"Services",[p.Swedish]:"Tjänster",[p.Danish]:"Tjenester"},Genres:{[p.English]:"Genres",[p.Swedish]:"Genrer",[p.Danish]:"Genrer"},IMDb:{[p.English]:"IMDb",[p.Swedish]:"IMDb",[p.Danish]:"IMDb"},Year:{[p.English]:"Year",[p.Swedish]:"År",[p.Danish]:"År"},Runtime:{[p.English]:"Runtime",[p.Swedish]:"Speltid",[p.Danish]:"Spilletid"},Countries:{[p.English]:"Countries",[p.Swedish]:"Länder",[p.Danish]:"Lande"},"All Filters":{[p.English]:"All filters",[p.Swedish]:"Alla filter",[p.Danish]:"Alle filtre"},"Sort By":{[p.English]:"Sort by",[p.Swedish]:"Sortera efter",[p.Danish]:"Sortér efter"},Popularity:{[p.English]:"Popularity",[p.Swedish]:"Popularitet",[p.Danish]:"Popularitet"},New:{[p.English]:"New",[p.Swedish]:"Nytt",[p.Danish]:"Nyt"},"Top Rated":{[p.English]:"Top Rated",[p.Swedish]:"Toppbetyg",[p.Danish]:"Højst vurderet"},"IMDb Rating":{[p.English]:"IMDb Rating",[p.Swedish]:"IMDb-betyg",[p.Danish]:"IMDb-vurdering"},"-popularity":{[p.English]:"Popularity",[p.Swedish]:"Popularitet",[p.Danish]:"Popularitet"},"-new":{[p.English]:"New",[p.Swedish]:"Nytt",[p.Danish]:"Nyt"},"-best":{[p.English]:"Top Rated",[p.Swedish]:"Toppbetyg",[p.Danish]:"Højst vurderet"},"-imdb_score":{[p.English]:"IMDb Rating",[p.Swedish]:"IMDb-betyg",[p.Danish]:"IMDb-vurdering"},Search:{[p.English]:"Search",[p.Swedish]:"Sök",[p.Danish]:"Søg"},"Born On":{[p.English]:"Born on",[p.Swedish]:"Född den",[p.Danish]:"Født den"},"Died On":{[p.English]:"Died on",[p.Swedish]:"Död den",[p.Danish]:"Død den"},Credits:{[p.English]:"Credits",[p.Swedish]:"Medverkande",[p.Danish]:"Medvirkende"},Home:{[p.English]:"Home",[p.Swedish]:"Hem",[p.Danish]:"Hjem"},Explore:{[p.English]:"Explore",[p.Swedish]:"Utforska",[p.Danish]:"Udforsk"},"Page Not Found":{[p.English]:"Page not found",[p.Swedish]:"Sidan hittades inte",[p.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[p.English]:"Mentioned in this article",[p.Swedish]:"Nämnda i den här artikeln",[p.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[p.English]:"Sorry, your region is not supported",[p.Swedish]:"Tyvärr stöds inte din region",[p.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[p.English]:"Show [[count]] more",[p.Swedish]:"Visa [[count]] till",[p.Danish]:"Vis [[count]] mere"},Movies:{[p.English]:"Movies",[p.Swedish]:"Filmer",[p.Danish]:"Film"},Shows:{[p.English]:"Shows",[p.Swedish]:"Serier",[p.Danish]:"Serier"},Documentaries:{[p.English]:"Documentaries",[p.Swedish]:"Dokumentärer",[p.Danish]:"Dokumentarer"},"List: Trending":{[p.English]:"Trending Movies & Shows",[p.Swedish]:"Trendande Titlar",[p.Danish]:"Populære film og serier"},"List: Upcoming":{[p.English]:"Upcoming Releases",[p.Swedish]:"Kommande Premiärer",[p.Danish]:"Mest ventede film"},"List: New":{[p.English]:"New Releases",[p.Swedish]:"Nya Filmer & Serier",[p.Danish]:"Nye film og serier"},"List: Demand":{[p.English]:"Always in Demand",[p.Swedish]:"Tidlösa Favoriter",[p.Danish]:"Tidløse favoritter"},"List: Cinema":{[p.English]:"Coming to Cinemas",[p.Swedish]:"Snart på Bio",[p.Danish]:"Kommende film"},"Explore All Movies And Shows":{[p.English]:"Explore all movies and TV shows",[p.Swedish]:"Utforska alla filmer och tv-serier",[p.Danish]:"Udforsk alle film og tv-serier"},"Job: all":{[p.English]:"All",[p.Swedish]:"Alla",[p.Danish]:"Alle"},"Job: actor":{[p.English]:"Actor",[p.Swedish]:"Skådespelare",[p.Danish]:"Skuespiller"},"Job: producer":{[p.English]:"Producer",[p.Swedish]:"Producent",[p.Danish]:"Producer"},"Job: executive-producer":{[p.English]:"Executive Producer",[p.Swedish]:"Verkställande producent",[p.Danish]:"Administrerende producer"},"Job: writer":{[p.English]:"Writer",[p.Swedish]:"Manusförfattare",[p.Danish]:"Manuskriptforfatter"},"Job: director":{[p.English]:"Director",[p.Swedish]:"Regissör",[p.Danish]:"Instruktør"},"Job: cinematographer":{[p.English]:"Cinematographer",[p.Swedish]:"Filmfotograf",[p.Danish]:"Filmfotograf"},"Job: editor":{[p.English]:"Editor",[p.Swedish]:"Redaktör",[p.Danish]:"Redaktør"},All:{[p.English]:"All",[p.Swedish]:"Alla",[p.Danish]:"Alle"},Unscripted:{[p.English]:"Unscripted",[p.Swedish]:"Oscripterat",[p.Danish]:"Umanuskriptet"},Independent:{[p.English]:"Independent",[p.Swedish]:"Indie",[p.Danish]:"Indie"},"Game Show":{[p.English]:"Game Show",[p.Swedish]:"Gameshow",[p.Danish]:"Quizshow"},"Film Noir":{[p.English]:"Film Noir",[p.Swedish]:"Film noir",[p.Danish]:"Film noir"},Entertainment:{[p.English]:"Entertainment",[p.Swedish]:"Underhållning",[p.Danish]:"Underholdning"},News:{[p.English]:"News",[p.Swedish]:"Nyheter",[p.Danish]:"Nyheder"},Short:{[p.English]:"Short",[p.Swedish]:"Kortfilm",[p.Danish]:"Kortfilm"},Bollywood:{[p.English]:"Bollywood",[p.Swedish]:"Bollywood",[p.Danish]:"Bollywood"},Concert:{[p.English]:"Concert",[p.Swedish]:"Konsert",[p.Danish]:"Koncert"},Arthouse:{[p.English]:"Arthouse",[p.Swedish]:"Arthouse",[p.Danish]:"Arthouse"},"Alternate Version":{[p.English]:"Alternate Version",[p.Swedish]:"Alternativ version",[p.Danish]:"Alternativ version"},"Reality TV":{[p.English]:"Reality TV",[p.Swedish]:"Reality-TV",[p.Danish]:"Reality-TV"},Culture:{[p.English]:"Culture",[p.Swedish]:"Kultur",[p.Danish]:"Kultur"},Drama:{[p.English]:"Drama",[p.Swedish]:"Drama",[p.Danish]:"Drama"},Crime:{[p.English]:"Crime",[p.Swedish]:"Kriminal",[p.Danish]:"Krimi"},Western:{[p.English]:"Western",[p.Swedish]:"Western",[p.Danish]:"Western"},Thriller:{[p.English]:"Thriller",[p.Swedish]:"Thriller",[p.Danish]:"Thriller"},Animation:{[p.English]:"Animation",[p.Swedish]:"Animerat",[p.Danish]:"Animation"},Mystery:{[p.English]:"Mystery",[p.Swedish]:"Mysterium",[p.Danish]:"Mysterium"},Science:{[p.English]:"Science",[p.Swedish]:"Vetenskap",[p.Danish]:"Videnskab"},Nature:{[p.English]:"Nature",[p.Swedish]:"Natur",[p.Danish]:"Natur"},War:{[p.English]:"War",[p.Swedish]:"Krig",[p.Danish]:"Krig"},"Sci-Fi":{[p.English]:"Sci-Fi",[p.Swedish]:"Sci-fi",[p.Danish]:"Sci-fi"},Documentary:{[p.English]:"Documentary",[p.Swedish]:"Dokumentär",[p.Danish]:"Dokumentar"},"Stand-up":{[p.English]:"Stand-up",[p.Swedish]:"Standup",[p.Danish]:"Stand-up"},"Talk Show":{[p.English]:"Talk Show",[p.Swedish]:"Talkshow",[p.Danish]:"Talkshow"},Fantasy:{[p.English]:"Fantasy",[p.Swedish]:"Fantasy",[p.Danish]:"Fantasy"},History:{[p.English]:"History",[p.Swedish]:"Historia",[p.Danish]:"Historie"},Adventure:{[p.English]:"Adventure",[p.Swedish]:"Äventyr",[p.Danish]:"Eventyr"},Action:{[p.English]:"Action",[p.Swedish]:"Action",[p.Danish]:"Action"},Horror:{[p.English]:"Horror",[p.Swedish]:"Skräck",[p.Danish]:"Gyser"},Comedy:{[p.English]:"Comedy",[p.Swedish]:"Komedi",[p.Danish]:"Komedie"},Biography:{[p.English]:"Biography",[p.Swedish]:"Biografi",[p.Danish]:"Biografi"},Music:{[p.English]:"Music",[p.Swedish]:"Musik",[p.Danish]:"Musik"},Sport:{[p.English]:"Sport",[p.Swedish]:"Sport",[p.Danish]:"Sport"},Romance:{[p.English]:"Romance",[p.Swedish]:"Romantik",[p.Danish]:"Romantik"},Kids:{[p.English]:"Kids",[p.Swedish]:"Barn",[p.Danish]:"Børn"},Lifestyle:{[p.English]:"Lifestyle",[p.Swedish]:"Livsstil",[p.Danish]:"Livsstil"},Musical:{[p.English]:"Musical",[p.Swedish]:"Musikal",[p.Danish]:"Musical"},Anime:{[p.English]:"Anime",[p.Swedish]:"Anime",[p.Danish]:"Anime"},Family:{[p.English]:"Family",[p.Swedish]:"Familj",[p.Danish]:"Familie"}};function se(t,e=Ir()){var n;return((n=Gf[t])==null?void 0:n[e])||t}const Zf=t=>t;function zl(t){const e=t-1;return e*e*e+1}function Ao(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Rt(t,{delay:e=0,duration:n=400,easing:i=Zf}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function _i(t,{delay:e=0,duration:n=400,easing:i=zl,x:r=0,y:a=0,opacity:o=0}={}){const s=getComputedStyle(t),c=+s.opacity,u=s.transform==="none"?"":s.transform,f=c*(1-o),[v,d]=Ao(r),[_,g]=Ao(a);return{delay:e,duration:n,easing:i,css:(h,m)=>`
5
5
  transform: ${u} translate(${(1-h)*v}${d}, ${(1-h)*_}${g});
6
6
  opacity: ${c-f*m}`}}function ur(t,{delay:e=0,duration:n=400,easing:i=zl,axis:r="y"}={}){const a=getComputedStyle(t),o=+a.opacity,s=r==="y"?"height":"width",c=parseFloat(a[s]),u=r==="y"?["top","bottom"]:["left","right"],f=u.map(w=>`${w[0].toUpperCase()}${w.slice(1)}`),v=parseFloat(a[`padding${f[0]}`]),d=parseFloat(a[`padding${f[1]}`]),_=parseFloat(a[`margin${f[0]}`]),g=parseFloat(a[`margin${f[1]}`]),h=parseFloat(a[`border${f[0]}Width`]),m=parseFloat(a[`border${f[1]}Width`]);return{delay:e,duration:n,easing:i,css:w=>`overflow: hidden;opacity: ${Math.min(w*20,1)*o};${s}: ${w*c}px;padding-${u[0]}: ${w*v}px;padding-${u[1]}: ${w*d}px;margin-${u[0]}: ${w*_}px;margin-${u[1]}: ${w*g}px;border-${u[0]}-width: ${w*h}px;border-${u[1]}-width: ${w*m}px;min-${s}: 0`}}function Ki(t,{delay:e=0,duration:n=400,easing:i=zl,start:r=0,opacity:a=0}={}){const o=getComputedStyle(t),s=+o.opacity,c=o.transform==="none"?"":o.transform,u=1-r,f=s*(1-a);return{delay:e,duration:n,easing:i,css:(v,d)=>`
7
7
  transform: ${c} scale(${1-u*d});
@@ -1,3 +1,3 @@
1
- (function(){"use strict";function m(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}const j="https://partner-api.playpilot.tech/1.0",w="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.36.2",h={};async function u(e,{headers:t={},method:n="GET",body:i=null,baseUrl:o=j}={}){const r=!_()&&n==="GET";if(r&&e in h)return h[e];const s=n==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(o+e,{method:n,headers:new Headers({...s,...t}),body:i?JSON.stringify(i):null});if(!(l!=null&&l.ok))throw l;const c=await l.text();let a=c;try{c&&(a=JSON.parse(c))}catch{}return r&&(h[e]=a),a}const y="EncryptedToken",k="articleReplacementEditToken",A="playpilot-editorial-mode";async function q({href:e=window.location.href,throwError:t=!1}={}){try{const n=m();if(!n)throw new Error("No token was provided");const i=T(e);if(!i)throw new Error("Could not be authenticated");return await u(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),C(i),!0}catch(n){if(console.error(n),t)throw n}finally{M()}return!1}function T(e=""){var i,o;const t=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(t)return t;if(e){const r=new URL(e).searchParams.get(k);if(r)return decodeURI(r)}return((o=("; "+document.cookie).split(`; ${y}=`).pop())==null?void 0:o.split(";")[0])||""}function C(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const i="expires="+t.toUTCString();document.cookie=y+"="+e+";"+i+";path=/"}function _(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(A)==="true"||!!e}function M(){const e=new URL(window.location.href);e.searchParams.delete(k),window.history.replaceState({},"",e)}async function O(){const e=m();if(!e)throw new Error("No token was provided");try{return await await u(`/domains/config?api-token=${e}`)||null}catch{return null}}function D(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=t*31+i>>>0}return t.toString(16)}function N(e=5){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<e;)n+=t[Math.floor(Math.random()*t.length)];return n}const P={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function R(){var i,o;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,t=Object.values(P);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const n=(o=document.querySelector("html"))==null?void 0:o.getAttribute("lang");if(n){if(t.includes(n))return n;const r=t.find(s=>s.toLowerCase().startsWith(n+"-"));if(r)return r}return P.English}function U(e,t=""){const n=[],i=[e];for(;i.length>0;){const o=i.pop();if(n.includes(o)||t&&o.matches(t)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(o.tagName)||o.offsetWidth<=1)continue;const r=Array.from(o.childNodes).some(c=>{var a;return c.nodeType===Node.TEXT_NODE&&((a=c.nodeValue)==null?void 0:a.trim())!==""});if(r&&o.tagName==="LI"){const c=o.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const s=o.tagName==="P"&&!!o.textContent;if(r||s){n.push(o);continue}const l=Array.from(o.children);for(let c=l.length-1;c>=0;c--)i.push(l[c])}return n}function E(){var t;const e=(t=window.PlayPilotLinkInjections)==null?void 0:t.selector;if(e){const n=e.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function $(e){return e.map(t=>t.innerText).join(`
1
+ (function(){"use strict";function m(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}const j="https://partner-api.playpilot.tech/1.0",w="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.36.3",h={};async function u(e,{headers:t={},method:n="GET",body:i=null,baseUrl:o=j}={}){const r=!_()&&n==="GET";if(r&&e in h)return h[e];const s=n==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(o+e,{method:n,headers:new Headers({...s,...t}),body:i?JSON.stringify(i):null});if(!(l!=null&&l.ok))throw l;const c=await l.text();let a=c;try{c&&(a=JSON.parse(c))}catch{}return r&&(h[e]=a),a}const y="EncryptedToken",k="articleReplacementEditToken",A="playpilot-editorial-mode";async function q({href:e=window.location.href,throwError:t=!1}={}){try{const n=m();if(!n)throw new Error("No token was provided");const i=T(e);if(!i)throw new Error("Could not be authenticated");return await u(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),C(i),!0}catch(n){if(console.error(n),t)throw n}finally{M()}return!1}function T(e=""){var i,o;const t=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(t)return t;if(e){const r=new URL(e).searchParams.get(k);if(r)return decodeURI(r)}return((o=("; "+document.cookie).split(`; ${y}=`).pop())==null?void 0:o.split(";")[0])||""}function C(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const i="expires="+t.toUTCString();document.cookie=y+"="+e+";"+i+";path=/"}function _(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(A)==="true"||!!e}function M(){const e=new URL(window.location.href);e.searchParams.delete(k),window.history.replaceState({},"",e)}async function O(){const e=m();if(!e)throw new Error("No token was provided");try{return await await u(`/domains/config?api-token=${e}`)||null}catch{return null}}function D(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=t*31+i>>>0}return t.toString(16)}function N(e=5){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<e;)n+=t[Math.floor(Math.random()*t.length)];return n}const P={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function R(){var i,o;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,t=Object.values(P);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const n=(o=document.querySelector("html"))==null?void 0:o.getAttribute("lang");if(n){if(t.includes(n))return n;const r=t.find(s=>s.toLowerCase().startsWith(n+"-"));if(r)return r}return P.English}function U(e,t=""){const n=[],i=[e];for(;i.length>0;){const o=i.pop();if(n.includes(o)||t&&o.matches(t)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(o.tagName)||o.offsetWidth<=1)continue;const r=Array.from(o.childNodes).some(c=>{var a;return c.nodeType===Node.TEXT_NODE&&((a=c.nodeValue)==null?void 0:a.trim())!==""});if(r&&o.tagName==="LI"){const c=o.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const s=o.tagName==="P"&&!!o.textContent;if(r||s){n.push(o);continue}const l=Array.from(o.children);for(let c=l.length-1;c>=0;c--)i.push(l[c])}return n}function E(){var t;const e=(t=window.PlayPilotLinkInjections)==null?void 0:t.selector;if(e){const n=e.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function $(e){return e.map(t=>t.innerText).join(`
2
2
 
3
3
  `)}function S(e=(t=>(t=window.PlayPilotLinkInjections)==null?void 0:t.config)()||null){const n=E(),i=U(n,(e==null?void 0:e.exclude_elements_selector)||""),o=$(i);return{parentElement:n,elements:i,pageText:o}}function x(){const e=E();return{content_heading:v(e),content_modified_time:z(e),content_published_time:B(e)}}function v(e){const t=e.querySelector("h1")||document.querySelector("h1");return(t==null?void 0:t.innerText.trim())||null}function z(e){const t=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||e.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=L().dateModified||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function B(e){const t=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||e.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||e.querySelector("time")||document.querySelector("time")||e.querySelector("[datetime]")||document.querySelector("[datetime]")||null,n=L().datePublished||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function g(e){try{return new Date(e).toISOString()}catch{return null}}function L(){const t=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(n=>n.textContent.includes("dateModified")||n.textContent.includes("datePublished"));if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function I(){const e=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+e}function G(e){return!!(e.exclude_urls_pattern&&I().match(new RegExp(e.exclude_urls_pattern)))}let p=null;async function d({url:e=I(),params:t={},method:n="GET"}={}){const i=m(),o=_()?await q():!1,r=R();if(!i)throw new Error("No token was provided");const s=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${o?"&editorial_mode_enabled=true":""}&language=${r}`;let l;if(n==="POST"){const{pageText:c}=S();t.run_ai&&(t.hash=D(c||""),t.page_text=c),t.url=e,t.metadata=x(),l=await u(s,{method:"POST",body:t})}else l=await u(s+`&url=${e}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=l,l}async function H({requireCompletedResult:e=!1,runAiWhenRelevant:t=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:o=()=>null}={}){let r=0;p&&clearTimeout(p);const s=async(l,c)=>{let a;try{try{a=await d()}catch(f){throw console.error(f),(f==null?void 0:f.status)===404&&(a=await d({method:"POST"}),a.ai_enabled&&(a=await d({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:V}=S();if(a&&t&&(a=await F(V,a)),e&&a.ai_enabled&&a.ai_running)throw new Error;a.manual_injections=b(a.manual_injections||[]),a.ai_injections=b(a.ai_injections||[]),l(a);return}catch{if(r++,r>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),l();return}a&&o(a),p=setTimeout(()=>s(l),n)}};return new Promise(s)}async function F(e,t){if(!e||!t.ai_enabled||t.ai_running)return t;const n=async()=>await d({params:{run_ai:!0},method:"POST"}),i=x().content_modified_time,o=t.content_modified_time?g(t.content_modified_time):null,r=i&&o===i;if(i&&t.ai_last_run&&t.ai_progress_message==="Failed"){const s=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(t.ai_last_run)<s)return await n()}return t.ai_last_run&&r||new Date(i||0)<=new Date(o||0)?t:await n()}function b(e){return e.map(t=>({...t,key:J(t.sid)}))}function J(e){return e+"-"+N()}function K(e){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=e)}function W(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}window.PlayPilotLinkInjections||(window.PlayPilotLinkInjections={token:"",editorial_token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,last_successful_fetch:null,tracked_events:[],queued_tracking_events:[],split_test_identifiers:{},evaluated_link_injections:[],initial_link_injections_promise:null,time_at_initialize:0,ads:[],video_playtimes:{},require_consent:!0,no_affiliate:!1,consents:{ads:!1,pixels:!1,tracking:!1,split_tests:!1,affiliate:!1},config:{},app:null,async initialize(e={token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,editorial_token:"",require_consent:!0,no_affiliate:!1}){if(!e.token){console.error("An API token is required.");return}this.token=e.token,this.editorial_token=e.editorial_token,this.selector=e.selector,this.after_article_selector=e.after_article_selector,this.after_article_insert_position=e.after_article_insert_position,this.language=e.language,this.region=e.region,this.organization_sid=e.organization_sid,this.domain_sid=e.domain_sid,this.require_consent=e.require_consent,this.no_affiliate=e.no_affiliate,this.time_at_initialize=Date.now(),this.require_consent===!1&&K({ads:!0,pixels:!0,tracking:!0,split_tests:!0,affiliate:!0}),this.config=await O()||{},!G(this.config)&&(this.initial_link_injections_promise=H({maxTries:1,runAiWhenRelevant:!W()}),this.mount())},destroy(){var e;(e=window.PlayPilotMount)==null||e.destroy(),delete window.PlayPilotLinkInjections},mount(){const e="playpilot-mount",t="playpilot-mount-style",n=s=>{var l,c,a;s.target&&(s.target.dataset.loaded="true",!(((l=document.getElementById(e))==null?void 0:l.dataset.loaded)!=="true"||((c=document.getElementById(t))==null?void 0:c.dataset.loaded)!=="true")&&((a=window.PlayPilotMount)==null||a.mount()))},i=_()||T(),o=document.createElement("script");o.id=e,o.src=`${w}/dist/${i?"editorial.":""}mount.js`,o.defer=!0,o.onload=n;const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.type="text/css",r.href=`${w}/dist/mount.css`,r.onload=n,document.body.appendChild(o),document.head.appendChild(r)}})})();
package/dist/mount.js CHANGED
@@ -1,7 +1,7 @@
1
1
  var Mc=Object.defineProperty;var zl=t=>{throw TypeError(t)};var Dc=(t,e,n)=>e in t?Mc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var rt=(t,e,n)=>Dc(t,typeof e!="symbol"?e+"":e,n),ma=(t,e,n)=>e.has(t)||zl("Cannot "+n);var P=(t,e,n)=>(ma(t,e,"read from private field"),n?n.call(t):e.get(t)),se=(t,e,n)=>e.has(t)?zl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ve=(t,e,n,i)=>(ma(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),Se=(t,e,n)=>(ma(t,e,"access private method"),n);var il=Array.isArray,jc=Array.prototype.indexOf,ki=Array.prototype.includes,ta=Array.from,Rc=Object.defineProperty,Pn=Object.getOwnPropertyDescriptor,xo=Object.getOwnPropertyDescriptors,Oc=Object.prototype,Nc=Array.prototype,rl=Object.getPrototypeOf,Fl=Object.isExtensible;function ai(t){return typeof t=="function"}const mt=()=>{};function zc(t){return typeof(t==null?void 0:t.then)=="function"}function Fc(t){return t()}function Da(t){for(var e=0;e<t.length;e++)t[e]()}function To(){var t,e,n=new Promise((i,r)=>{t=i,e=r});return{promise:n,resolve:t,reject:e}}function ja(t,e,n=!1){return t===void 0?n?e():e:t}function Jn(t,e){if(Array.isArray(t))return t;if(e===void 0||!(Symbol.iterator in t))return Array.from(t);const n=[];for(const i of t)if(n.push(i),n.length===e)break;return n}const $e=2,Si=4,cr=8,al=1<<24,kt=16,Nt=32,Ln=64,Ra=128,St=512,We=1024,Qe=2048,Qt=4096,ot=8192,xt=16384,On=32768,Oa=1<<25,Xt=65536,Rr=1<<17,Eo=1<<18,Ci=1<<19,Po=1<<20,Zt=1<<25,Qn=65536,Or=1<<21,ui=1<<22,In=1<<23,Jt=Symbol("$state"),Io=Symbol("legacy props"),qc=Symbol(""),Sr=Symbol("attributes"),Na=Symbol("class"),za=Symbol("style"),zi=Symbol("text"),xr=Symbol("form reset"),na=new class extends Error{constructor(){super(...arguments);rt(this,"name","StaleReactionError");rt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var bo;const ia=!!((bo=globalThis.document)!=null&&bo.contentType)&&globalThis.document.contentType.includes("xml"),Hc=11;function ll(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Bc(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Vc(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Wc(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Uc(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Gc(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Zc(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Kc(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Yc(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Jc(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Qc(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Xc(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const $c=1,eu=2,Ao=4,tu=8,nu=16,iu=1,ru=2,au=4,lu=8,ou=16,su=1,cu=2,uu=4,du=1,fu=2,Be=Symbol(),Co="http://www.w3.org/1999/xhtml",Lo="http://www.w3.org/2000/svg",vu="http://www.w3.org/1998/Math/MathML",hu="@attach";function gu(){console.warn("https://svelte.dev/e/derived_inert")}function mu(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function pu(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Mo(t){return t===this.v}function Do(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function jo(t){return!Do(t,this.v)}let Li=!1;function _u(){Li=!0}let Ae=null;function xi(t){Ae=t}function Gi(t){return Ro().get(t)}function ur(t,e){return Ro().set(t,e),e}function te(t,e=!1,n){Ae={p:Ae,i:!1,c:null,e:null,s:t,x:null,r:pe,l:Li&&!e?{s:null,u:null,$:[]}:null}}function ne(t){var e=Ae,n=e.e;if(n!==null){e.e=null;for(var i of n)ls(i)}return t!==void 0&&(e.x=t),e.i=!0,Ae=e.p,t??{}}function $n(){return!Li||Ae!==null&&Ae.l===null}function Ro(t){return Ae===null&&ll(),Ae.c??(Ae.c=new Map(wu(Ae)||void 0))}function wu(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}let Fn=[];function Oo(){var t=Fn;Fn=[],Da(t)}function jt(t){if(Fn.length===0&&!di){var e=Fn;queueMicrotask(()=>{e===Fn&&Oo()})}Fn.push(t)}function yu(){for(;Fn.length>0;)Oo()}function No(t){var e=pe;if(e===null)return xe.f|=In,t;if(!(e.f&On)&&!(e.f&Si))throw t;xn(t,e)}function xn(t,e){for(;e!==null;){if(e.f&Ra){if(!(e.f&On))throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}const bu=-7169;function Oe(t,e){t.f=t.f&bu|e}function ol(t){t.f&St||t.deps===null?Oe(t,We):Oe(t,Qt)}function zo(t){if(t!==null)for(const e of t)!(e.f&$e)||!(e.f&Qn)||(e.f^=Qn,zo(e.deps))}function Fo(t,e,n){t.f&Qe?e.add(t):t.f&Qt&&n.add(t),zo(t.deps),Oe(t,We)}let _r=!1;function ku(t){var e=_r;try{return _r=!1,[t(),_r]}finally{_r=e}}let pa=null,ri=null,de=null,Hi=null,Je=null,Fa=null,di=!1,_a=!1,ci=null,Tr=null;var ql=0;let Su=1;var vi,wn,Bn,hi,gi,Vn,mi,rn,er,vt,tr,yn,Vt,Wt,pi,_i,Te,qa,Fi,Ha,qo,Ho,Er,xu,Ba,li;const Kr=class Kr{constructor(){se(this,Te);rt(this,"id",Su++);se(this,vi,!1);rt(this,"linked",!0);se(this,wn,null);se(this,Bn,null);rt(this,"async_deriveds",new Map);rt(this,"current",new Map);rt(this,"previous",new Map);rt(this,"unblocked",new Set);se(this,hi,new Set);se(this,gi,new Set);se(this,Vn,new Set);se(this,mi,0);se(this,rn,new Map);se(this,er,null);se(this,vt,[]);se(this,tr,[]);se(this,yn,new Set);se(this,Vt,new Set);se(this,Wt,new Map);se(this,pi,new Set);rt(this,"is_fork",!1);se(this,_i,!1)}skip_effect(e){P(this,Wt).has(e)||P(this,Wt).set(e,{d:[],m:[]}),P(this,pi).delete(e)}unskip_effect(e,n=i=>this.schedule(i)){var i=P(this,Wt).get(e);if(i){P(this,Wt).delete(e);for(var r of i.d)Oe(r,Qe),n(r);for(r of i.m)Oe(r,Qt),n(r)}P(this,pi).add(e)}capture(e,n,i=!1){e.v!==Be&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&In||(this.current.set(e,[n,i]),Je==null||Je.set(e,n)),this.is_fork||(e.v=n)}activate(){de=this}deactivate(){de=null,Je=null}flush(){try{_a=!0,de=this,Se(this,Te,Fi).call(this)}finally{ql=0,Fa=null,ci=null,Tr=null,_a=!1,de=null,Je=null,Zn.clear()}}discard(){for(const e of P(this,gi))e(this);P(this,gi).clear(),P(this,Vn).clear(),Se(this,Te,li).call(this)}register_created_effect(e){P(this,tr).push(e)}increment(e,n){if(ve(this,mi,P(this,mi)+1),e){let i=P(this,rn).get(n)??0;P(this,rn).set(n,i+1)}}decrement(e,n){if(ve(this,mi,P(this,mi)-1),e){let i=P(this,rn).get(n)??0;i===1?P(this,rn).delete(n):P(this,rn).set(n,i-1)}P(this,_i)||(ve(this,_i,!0),jt(()=>{ve(this,_i,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const i of e)P(this,yn).add(i);for(const i of n)P(this,Vt).add(i);e.clear(),n.clear()}oncommit(e){P(this,hi).add(e)}ondiscard(e){P(this,gi).add(e)}on_fork_commit(e){P(this,Vn).add(e)}run_fork_commit_callbacks(){for(const e of P(this,Vn))e(this);P(this,Vn).clear()}settled(){return(P(this,er)??ve(this,er,To())).promise}static ensure(){var e;if(de===null){const n=de=new Kr;Se(e=n,Te,Ba).call(e),!_a&&!di&&jt(()=>{P(n,vi)||n.flush()})}return de}apply(){{Je=null;return}}schedule(e){var r;if(Fa=e,(r=e.b)!=null&&r.is_pending&&e.f&(Si|cr|al)&&!(e.f&On)){e.b.defer_effect(e);return}for(var n=e;n.parent!==null;){n=n.parent;var i=n.f;if(ci!==null&&n===pe&&(xe===null||!(xe.f&$e)))return;if(i&(Ln|Nt)){if(!(i&We))return;n.f^=We}}P(this,vt).push(n)}};vi=new WeakMap,wn=new WeakMap,Bn=new WeakMap,hi=new WeakMap,gi=new WeakMap,Vn=new WeakMap,mi=new WeakMap,rn=new WeakMap,er=new WeakMap,vt=new WeakMap,tr=new WeakMap,yn=new WeakMap,Vt=new WeakMap,Wt=new WeakMap,pi=new WeakMap,_i=new WeakMap,Te=new WeakSet,qa=function(){if(this.is_fork)return!0;for(const i of P(this,rn).keys()){for(var e=i,n=!1;e.parent!==null;){if(P(this,Wt).has(e)){n=!0;break}e=e.parent}if(!n)return!0}return!1},Fi=function(){var c,u,f,v;if(ve(this,vi,!0),ql++>1e3&&(Se(this,Te,li).call(this),Tu()),!Se(this,Te,qa).call(this)){for(const d of P(this,yn))P(this,Vt).delete(d),Oe(d,Qe),this.schedule(d);for(const d of P(this,Vt))Oe(d,Qt),this.schedule(d)}const e=P(this,vt);ve(this,vt,[]),this.apply();var n=ci=[],i=[],r=Tr=[];for(const d of e)try{Se(this,Te,Ha).call(this,d,n,i)}catch(_){throw Uo(d),_}if(de=null,r.length>0){var a=Kr.ensure();for(const d of r)a.schedule(d)}if(ci=null,Tr=null,Se(this,Te,qa).call(this)){Se(this,Te,Er).call(this,i),Se(this,Te,Er).call(this,n);for(const[d,_]of P(this,Wt))Wo(d,_);r.length>0&&Se(c=de,Te,Fi).call(c);return}const s=Se(this,Te,qo).call(this);if(s){Se(u=s,Te,Ho).call(u,this);return}P(this,yn).clear(),P(this,Vt).clear();for(const d of P(this,hi))d(this);P(this,hi).clear(),Hi=this,Hl(i),Hl(n),Hi=null,(f=P(this,er))==null||f.resolve();var o=de;if(this.linked&&P(this,mi)===0&&Se(this,Te,li).call(this),P(this,vt).length>0){o===null&&(o=this,Se(this,Te,Ba).call(this));const d=o;P(d,vt).push(...P(this,vt).filter(_=>!P(d,vt).includes(_)))}o!==null&&Se(v=o,Te,Fi).call(v)},Ha=function(e,n,i){e.f^=We;for(var r=e.first;r!==null;){var a=r.f,s=(a&(Nt|Ln))!==0,o=s&&(a&We)!==0,c=o||(a&ot)!==0||P(this,Wt).has(r);if(!c&&r.fn!==null){s?r.f^=We:a&Si?n.push(r):vr(r)&&(a&kt&&P(this,Vt).add(r),Ei(r));var u=r.first;if(u!==null){r=u;continue}}for(;r!==null;){var f=r.next;if(f!==null){r=f;break}r=r.parent}}},qo=function(){for(var e=P(this,wn);e!==null;){if(!e.is_fork){for(const[n,[,i]]of this.current)if(e.current.has(n)&&!i)return e}e=P(e,wn)}return null},Ho=function(e){var i;for(const[r,a]of e.current)!this.previous.has(r)&&e.previous.has(r)&&this.previous.set(r,e.previous.get(r)),this.current.set(r,a);for(const[r,a]of e.async_deriveds){const s=this.async_deriveds.get(r);s&&a.promise.then(s.resolve)}const n=r=>{var a=r.reactions;if(a!==null)for(const c of a){var s=c.f;if(s&$e)n(c);else{var o=c;s&(ui|kt)&&!this.async_deriveds.has(o)&&(P(this,Vt).delete(o),Oe(o,Qe),this.schedule(o))}}};for(const r of this.current.keys())n(r);this.oncommit(()=>e.discard()),Se(i=e,Te,li).call(i),de=this,Se(this,Te,Fi).call(this)},Er=function(e){for(var n=0;n<e.length;n+=1)Fo(e[n],P(this,yn),P(this,Vt))},xu=function(){var f;Se(this,Te,li).call(this);for(let v=pa;v!==null;v=P(v,Bn)){var e=v.id<this.id,n=[];for(const[d,[_,m]]of this.current){if(v.current.has(d)){var i=v.current.get(d)[0];if(e&&_!==i)v.current.set(d,[_,m]);else continue}n.push(d)}if(e)for(const[d,_]of this.async_deriveds){const m=v.async_deriveds.get(d);m&&_.promise.then(m.resolve)}if(P(v,vi)){var r=[...v.current.keys()].filter(d=>!this.current.has(d));if(r.length===0)e&&v.discard();else if(n.length>0){if(e)for(const d of P(this,pi))v.unskip_effect(d,_=>{var m;_.f&(kt|ui)?v.schedule(_):Se(m=v,Te,Er).call(m,[_])});v.activate();var a=new Set,s=new Map;for(var o of n)Vo(o,r,a,s);s=new Map;var c=[...v.current.keys()].filter(d=>this.current.has(d)?this.current.get(d)[0]!==d.v:!0);if(c.length>0)for(const d of P(this,tr))!(d.f&(xt|ot|Rr))&&sl(d,c,s)&&(d.f&(ui|kt)?(Oe(d,Qe),v.schedule(d)):P(v,yn).add(d));if(P(v,vt).length>0){v.apply();for(var u of P(v,vt))Se(f=v,Te,Ha).call(f,u,[],[]);ve(v,vt,[])}v.deactivate()}}}},Ba=function(){ri===null?pa=ri=this:(ve(ri,Bn,this),ve(this,wn,ri)),ri=this},li=function(){var e=P(this,wn),n=P(this,Bn);e===null?pa=n:ve(e,Bn,n),n===null?ri=e:ve(n,wn,e),this.linked=!1};let Mn=Kr;function Bo(t){var e=di;di=!0;try{for(var n;;){if(yu(),de===null)return n;de.flush()}}finally{di=e}}function Tu(){try{Zc()}catch(t){xn(t,Fa)}}let At=null;function Hl(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var i=t[n++];if(!(i.f&(xt|ot))&&vr(i)&&(At=new Set,Ei(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&us(i),(At==null?void 0:At.size)>0)){Zn.clear();for(const r of At){if(r.f&(xt|ot))continue;const a=[r];let s=r.parent;for(;s!==null;)At.has(s)&&(At.delete(s),a.push(s)),s=s.parent;for(let o=a.length-1;o>=0;o--){const c=a[o];c.f&(xt|ot)||Ei(c)}}At.clear()}}At=null}}function Vo(t,e,n,i){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const r of t.reactions){const a=r.f;a&$e?Vo(r,e,n,i):a&(ui|kt)&&!(a&Qe)&&sl(r,e,i)&&(Oe(r,Qe),cl(r))}}function sl(t,e,n){const i=n.get(t);if(i!==void 0)return i;if(t.deps!==null)for(const r of t.deps){if(ki.call(e,r))return!0;if(r.f&$e&&sl(r,e,n))return n.set(r,!0),!0}return n.set(t,!1),!1}function cl(t){de.schedule(t)}function Wo(t,e){if(!(t.f&Nt&&t.f&We)){t.f&Qe?e.d.push(t):t.f&Qt&&e.m.push(t),Oe(t,We);for(var n=t.first;n!==null;)Wo(n,e),n=n.next}}function Uo(t){Oe(t,We);for(var e=t.first;e!==null;)Uo(e),e=e.next}function Go(t){let e=0,n=$t(0),i;return()=>{dl()&&(l(n),la(()=>(e===0&&(i=nn(()=>t(()=>An(n)))),e+=1,()=>{jt(()=>{e-=1,e===0&&(i==null||i(),i=void 0,An(n))})})))}}var Eu=Xt|Ci;function Zo(t,e,n,i){new Pu(t,e,n,i)}var wt,nl,yt,Wn,ut,bt,at,ht,an,Un,bn,wi,nr,ir,ln,Yr,Ne,Iu,Au,Cu,Va,Pr,Ir,Wa,Ua;class Pu{constructor(e,n,i,r){se(this,Ne);rt(this,"parent");rt(this,"is_pending",!1);rt(this,"transform_error");se(this,wt);se(this,nl,null);se(this,yt);se(this,Wn);se(this,ut);se(this,bt,null);se(this,at,null);se(this,ht,null);se(this,an,null);se(this,Un,0);se(this,bn,0);se(this,wi,!1);se(this,nr,new Set);se(this,ir,new Set);se(this,ln,null);se(this,Yr,Go(()=>(ve(this,ln,$t(P(this,Un))),()=>{ve(this,ln,null)})));var a;ve(this,wt,e),ve(this,yt,n),ve(this,Wn,s=>{var o=pe;o.b=this,o.f|=Ra,i(s)}),this.parent=pe.b,this.transform_error=r??((a=this.parent)==null?void 0:a.transform_error)??(s=>s),ve(this,ut,gn(()=>{Se(this,Ne,Va).call(this)},Eu))}defer_effect(e){Fo(e,P(this,nr),P(this,ir))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!P(this,yt).pending}update_pending_count(e,n){Se(this,Ne,Wa).call(this,e,n),ve(this,Un,P(this,Un)+e),!(!P(this,ln)||P(this,wi))&&(ve(this,wi,!0),jt(()=>{ve(this,wi,!1),P(this,ln)&&sn(P(this,ln),P(this,Un))}))}get_effect_pending(){return P(this,Yr).call(this),l(P(this,ln))}error(e){if(!P(this,yt).onerror&&!P(this,yt).failed)throw e;de!=null&&de.is_fork?(P(this,bt)&&de.skip_effect(P(this,bt)),P(this,at)&&de.skip_effect(P(this,at)),P(this,ht)&&de.skip_effect(P(this,ht)),de.on_fork_commit(()=>{Se(this,Ne,Ua).call(this,e)})):Se(this,Ne,Ua).call(this,e)}}wt=new WeakMap,nl=new WeakMap,yt=new WeakMap,Wn=new WeakMap,ut=new WeakMap,bt=new WeakMap,at=new WeakMap,ht=new WeakMap,an=new WeakMap,Un=new WeakMap,bn=new WeakMap,wi=new WeakMap,nr=new WeakMap,ir=new WeakMap,ln=new WeakMap,Yr=new WeakMap,Ne=new WeakSet,Iu=function(){try{ve(this,bt,lt(()=>P(this,Wn).call(this,P(this,wt))))}catch(e){this.error(e)}},Au=function(e){const n=P(this,yt).failed;n&&ve(this,ht,lt(()=>{n(P(this,wt),()=>e,()=>()=>{})}))},Cu=function(){const e=P(this,yt).pending;e&&(this.is_pending=!0,ve(this,at,lt(()=>e(P(this,wt)))),jt(()=>{var n=ve(this,an,document.createDocumentFragment()),i=Rt();n.append(i),ve(this,bt,Se(this,Ne,Ir).call(this,()=>lt(()=>P(this,Wn).call(this,i)))),P(this,bn)===0&&(P(this,wt).before(n),ve(this,an,null),Kn(P(this,at),()=>{ve(this,at,null)}),Se(this,Ne,Pr).call(this,de))}))},Va=function(){try{if(this.is_pending=this.has_pending_snippet(),ve(this,bn,0),ve(this,Un,0),ve(this,bt,lt(()=>{P(this,Wn).call(this,P(this,wt))})),P(this,bn)>0){var e=ve(this,an,document.createDocumentFragment());hl(P(this,bt),e);const n=P(this,yt).pending;ve(this,at,lt(()=>n(P(this,wt))))}else Se(this,Ne,Pr).call(this,de)}catch(n){this.error(n)}},Pr=function(e){this.is_pending=!1,e.transfer_effects(P(this,nr),P(this,ir))},Ir=function(e){var n=pe,i=xe,r=Ae;en(P(this,ut)),Et(P(this,ut)),xi(P(this,ut).ctx);try{return Mn.ensure(),e()}catch(a){return No(a),null}finally{en(n),Et(i),xi(r)}},Wa=function(e,n){var i;if(!this.has_pending_snippet()){this.parent&&Se(i=this.parent,Ne,Wa).call(i,e,n);return}ve(this,bn,P(this,bn)+e),P(this,bn)===0&&(Se(this,Ne,Pr).call(this,n),P(this,at)&&Kn(P(this,at),()=>{ve(this,at,null)}),P(this,an)&&(P(this,wt).before(P(this,an)),ve(this,an,null)))},Ua=function(e){P(this,bt)&&(Xe(P(this,bt)),ve(this,bt,null)),P(this,at)&&(Xe(P(this,at)),ve(this,at,null)),P(this,ht)&&(Xe(P(this,ht)),ve(this,ht,null));var n=P(this,yt).onerror;let i=P(this,yt).failed;var r=!1,a=!1;const s=()=>{if(r){pu();return}r=!0,a&&Xc(),P(this,ht)!==null&&Kn(P(this,ht),()=>{ve(this,ht,null)}),Se(this,Ne,Ir).call(this,()=>{Se(this,Ne,Va).call(this)})},o=c=>{try{a=!0,n==null||n(c,s),a=!1}catch(u){xn(u,P(this,ut)&&P(this,ut).parent)}i&&ve(this,ht,Se(this,Ne,Ir).call(this,()=>{try{return lt(()=>{var u=pe;u.b=this,u.f|=Ra,i(P(this,wt),()=>c,()=>s)})}catch(u){return xn(u,P(this,ut).parent),null}}))};jt(()=>{var c;try{c=this.transform_error(e)}catch(u){xn(u,P(this,ut)&&P(this,ut).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(o,u=>xn(u,P(this,ut)&&P(this,ut).parent)):o(c)})};function Ko(t,e,n,i){const r=$n()?Ti:ra;var a=t.filter(d=>!d.settled);if(n.length===0&&a.length===0){i(e.map(r));return}var s=pe,o=Yo(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(d=>d.promise)):null;function u(d){if(!(s.f&xt)){o();try{i(d)}catch(_){xn(_,s)}Zi()}}var f=Jo();if(n.length===0){c.then(()=>u(e.map(r))).finally(f);return}function v(){Promise.all(n.map(d=>Lu(d))).then(d=>u([...e.map(r),...d])).catch(d=>xn(d,s)).finally(f)}c?c.then(()=>{o(),v(),Zi()}):v()}function Yo(){var t=pe,e=xe,n=Ae,i=de;return function(a=!0){en(t),Et(e),xi(n),a&&!(t.f&xt)&&(i==null||i.activate(),i==null||i.apply())}}function Zi(t=!0){en(null),Et(null),xi(null),t&&(de==null||de.deactivate())}function Jo(){var t=pe,e=t.b,n=de,i=e.is_rendered();return e.update_pending_count(1,n),n.increment(i,t),()=>{e.update_pending_count(-1,n),n.decrement(i,t)}}function Ti(t){var e=$e|Qe;return pe!==null&&(pe.f|=Ci),{ctx:Ae,deps:null,effects:null,equals:Mo,f:e,fn:t,reactions:null,rv:0,v:Be,wv:0,parent:pe,ac:null}}const wr=Symbol("obsolete");function Lu(t,e,n){let i=pe;i===null&&Bc();var r=void 0,a=$t(Be),s=!xe,o=new Set;return Gu(()=>{var _;var c=pe,u=To();r=u.promise;try{Promise.resolve(t()).then(u.resolve,m=>{m!==na&&u.reject(m)}).finally(Zi)}catch(m){u.reject(m),Zi()}var f=de;if(s){if(c.f&On)var v=Jo();if(i.b.is_rendered())(_=f.async_deriveds.get(c))==null||_.reject(wr);else for(const m of o.values())m.reject(wr);o.add(u),f.async_deriveds.set(c,u)}const d=(m,g=void 0)=>{v==null||v(),o.delete(u),g!==wr&&(f.activate(),g?(a.f|=In,sn(a,g)):(a.f&In&&(a.f^=In),sn(a,m)),f.deactivate())};u.promise.then(d,m=>d(null,m||"unknown"))}),fr(()=>{for(const c of o)c.reject(wr)}),new Promise(c=>{function u(f){function v(){f===r?c(a):u(r)}f.then(v,v)}u(r)})}function H(t){const e=Ti(t);return vs(e),e}function ra(t){const e=Ti(t);return e.equals=jo,e}function Mu(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)Xe(e[n])}}function ul(t){var e,n=pe,i=t.parent;if(!dn&&i!==null&&i.f&(xt|ot))return gu(),t.v;en(i);try{t.f&=~Qn,Mu(t),e=ps(t)}finally{en(n)}return e}function Qo(t){var e=ul(t);if(!t.equals(e)&&(t.wv=gs(),(!(de!=null&&de.is_fork)||t.deps===null)&&(de!==null?(de.capture(t,e,!0),Hi==null||Hi.capture(t,e,!0)):t.v=e,t.deps===null))){Oe(t,We);return}dn||(Je!==null?(dl()||de!=null&&de.is_fork)&&Je.set(t,e):ol(t))}function Du(t){var e,n;if(t.effects!==null)for(const i of t.effects)(i.teardown||i.ac)&&((e=i.teardown)==null||e.call(i),(n=i.ac)==null||n.abort(na),i.teardown=mt,i.ac=null,Ki(i,0),fl(i))}function Xo(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&Ei(e)}let Nr=new Set;const Zn=new Map;let $o=!1;function $t(t,e){var n={f:0,v:t,reactions:null,equals:Mo,rv:0,wv:0};return n}function G(t,e){const n=$t(t);return vs(n),n}function Ga(t,e=!1,n=!0){var r;const i=$t(t);return e||(i.equals=jo),Li&&n&&Ae!==null&&Ae.l!==null&&((r=Ae.l).s??(r.s=[])).push(i),i}function N(t,e,n=!1){xe!==null&&(!Mt||xe.f&Rr)&&$n()&&xe.f&($e|kt|ui|Rr)&&(Tt===null||!ki.call(Tt,t))&&Qc();let i=n?Pe(e):e;return sn(t,i,Tr)}function sn(t,e,n=null){if(!t.equals(e)){Zn.set(t,dn?e:t.v);var i=Mn.ensure();if(i.capture(t,e),t.f&$e){const r=t;t.f&Qe&&ul(r),Je===null&&ol(r)}t.wv=gs(),es(t,Qe,n),$n()&&pe!==null&&pe.f&We&&!(pe.f&(Nt|Ln))&&(_t===null?Ku([t]):_t.push(t)),!i.is_fork&&Nr.size>0&&!$o&&ju()}return e}function ju(){$o=!1;for(const t of Nr){t.f&We&&Oe(t,Qt);let e;try{e=vr(t)}catch{e=!0}e&&Ei(t)}Nr.clear()}function Ru(t,e=1){var n=l(t),i=e===1?n++:n--;return N(t,n),i}function An(t){N(t,t.v+1)}function es(t,e,n){var i=t.reactions;if(i!==null)for(var r=$n(),a=i.length,s=0;s<a;s++){var o=i[s],c=o.f;if(!(!r&&o===pe)){var u=(c&Qe)===0;if(u&&Oe(o,e),c&Rr)Nr.add(o);else if(c&$e){var f=o;Je==null||Je.delete(f),c&Qn||(c&St&&(pe===null||!(pe.f&Or))&&(o.f|=Qn),es(f,Qt,n))}else if(u){var v=o;c&kt&&At!==null&&At.add(v),n!==null?n.push(v):cl(v)}}}}function Pe(t){if(typeof t!="object"||t===null||Jt in t)return t;const e=rl(t);if(e!==Oc&&e!==Nc)return t;var n=new Map,i=il(t),r=G(0),a=cn,s=o=>{if(cn===a)return o();var c=xe,u=cn;Et(null),Ul(a);var f=o();return Et(c),Ul(u),f};return i&&n.set("length",G(t.length)),new Proxy(t,{defineProperty(o,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Yc();var f=n.get(c);return f===void 0?s(()=>{var v=G(u.value);return n.set(c,v),v}):N(f,u.value,!0),!0},deleteProperty(o,c){var u=n.get(c);if(u===void 0){if(c in o){const f=s(()=>G(Be));n.set(c,f),An(r)}}else N(u,Be),An(r);return!0},get(o,c,u){var _;if(c===Jt)return t;var f=n.get(c),v=c in o;if(f===void 0&&(!v||(_=Pn(o,c))!=null&&_.writable)&&(f=s(()=>{var m=Pe(v?o[c]:Be),g=G(m);return g}),n.set(c,f)),f!==void 0){var d=l(f);return d===Be?void 0:d}return Reflect.get(o,c,u)},getOwnPropertyDescriptor(o,c){var u=Reflect.getOwnPropertyDescriptor(o,c);if(u&&"value"in u){var f=n.get(c);f&&(u.value=l(f))}else if(u===void 0){var v=n.get(c),d=v==null?void 0:v.v;if(v!==void 0&&d!==Be)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(o,c){var d;if(c===Jt)return!0;var u=n.get(c),f=u!==void 0&&u.v!==Be||Reflect.has(o,c);if(u!==void 0||pe!==null&&(!f||(d=Pn(o,c))!=null&&d.writable)){u===void 0&&(u=s(()=>{var _=f?Pe(o[c]):Be,m=G(_);return m}),n.set(c,u));var v=l(u);if(v===Be)return!1}return f},set(o,c,u,f){var T;var v=n.get(c),d=c in o;if(i&&c==="length")for(var _=u;_<v.v;_+=1){var m=n.get(_+"");m!==void 0?N(m,Be):_ in o&&(m=s(()=>G(Be)),n.set(_+"",m))}if(v===void 0)(!d||(T=Pn(o,c))!=null&&T.writable)&&(v=s(()=>G(void 0)),N(v,Pe(u)),n.set(c,v));else{d=v.v!==Be;var g=s(()=>Pe(u));N(v,g)}var p=Reflect.getOwnPropertyDescriptor(o,c);if(p!=null&&p.set&&p.set.call(f,u),!d){if(i&&typeof c=="string"){var w=n.get("length"),b=Number(c);Number.isInteger(b)&&b>=w.v&&N(w,b+1)}An(r)}return!0},ownKeys(o){l(r);var c=Reflect.ownKeys(o).filter(v=>{var d=n.get(v);return d===void 0||d.v!==Be});for(var[u,f]of n)f.v!==Be&&!(u in o)&&c.push(u);return c},setPrototypeOf(){Jc()}})}function Bl(t){try{if(t!==null&&typeof t=="object"&&Jt in t)return t[Jt]}catch{}return t}function Ou(t,e){return Object.is(Bl(t),Bl(e))}var Ie,ts,ns,is;function Nu(){if(Ie===void 0){Ie=window,ts=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;ns=Pn(e,"firstChild").get,is=Pn(e,"nextSibling").get,Fl(t)&&(t[Na]=void 0,t[Sr]=null,t[za]=void 0,t.__e=void 0),Fl(n)&&(n[zi]=void 0)}}function Rt(t=""){return document.createTextNode(t)}function Kt(t){return ns.call(t)}function dr(t){return is.call(t)}function S(t,e){return Kt(t)}function J(t,e=!1){{var n=Kt(t);return n instanceof Comment&&n.data===""?dr(n):n}}function A(t,e=1,n=!1){let i=t;for(;e--;)i=dr(i);return i}function zu(t){t.textContent=""}function rs(){return!1}function aa(t,e,n){return document.createElementNS(e??Co,t,void 0)}function Fu(t,e){if(e){const n=document.body;t.autofocus=!0,jt(()=>{document.activeElement===n&&t.focus()})}}let Vl=!1;function qu(){Vl||(Vl=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)(e=n[xr])==null||e.call(n)})},{capture:!0}))}function Hu(t,e,n,i=!0){i&&n();for(var r of e)t.addEventListener(r,n);fr(()=>{for(var a of e)t.removeEventListener(a,n)})}function ei(t){var e=xe,n=pe;Et(null),en(null);try{return t()}finally{Et(e),en(n)}}function Bu(t,e,n,i=n){t.addEventListener(e,()=>ei(n));const r=t[xr];r?t[xr]=()=>{r(),i(!0)}:t[xr]=()=>i(!0),qu()}function as(t){pe===null&&(xe===null&&Gc(),Uc()),dn&&Wc()}function Vu(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function qt(t,e){var n=pe;n!==null&&n.f&ot&&(t|=ot);var i={ctx:Ae,deps:null,nodes:null,f:t|Qe|St,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};de==null||de.register_created_effect(i);var r=i;if(t&Si)ci!==null?ci.push(i):Mn.ensure().schedule(i);else if(e!==null){try{Ei(i)}catch(s){throw Xe(i),s}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&!(r.f&Ci)&&(r=r.first,t&kt&&t&Xt&&r!==null&&(r.f|=Xt))}if(r!==null&&(r.parent=n,n!==null&&Vu(r,n),xe!==null&&xe.f&$e&&!(t&Ln))){var a=xe;(a.effects??(a.effects=[])).push(r)}return i}function dl(){return xe!==null&&!Mt}function fr(t){const e=qt(cr,null);return Oe(e,We),e.teardown=t,e}function Fe(t){as();var e=pe.f,n=!xe&&(e&Nt)!==0&&(e&On)===0;if(n){var i=Ae;(i.e??(i.e=[])).push(t)}else return ls(t)}function ls(t){return qt(Si|Po,t)}function Wu(t){return as(),qt(cr|Po,t)}function Uu(t){Mn.ensure();const e=qt(Ln|Ci,t);return(n={})=>new Promise(i=>{n.outro?Kn(e,()=>{Xe(e),i(void 0)}):(Xe(e),i(void 0))})}function ti(t){return qt(Si,t)}function Gu(t){return qt(ui|Ci,t)}function la(t,e=0){return qt(cr|e,t)}function B(t,e=[],n=[],i=[]){Ko(i,e,n,r=>{qt(cr,()=>t(...r.map(l)))})}function gn(t,e=0){var n=qt(kt|e,t);return n}function os(t,e=0){var n=qt(al|e,t);return n}function lt(t){return qt(Nt|Ci,t)}function ss(t){var e=t.teardown;if(e!==null){const n=dn,i=xe;Wl(!0),Et(null);try{e.call(null)}finally{Wl(n),Et(i)}}}function fl(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const r=n.ac;r!==null&&ei(()=>{r.abort(na)});var i=n.next;n.f&Ln?n.parent=null:Xe(n,e),n=i}}function Zu(t){for(var e=t.first;e!==null;){var n=e.next;e.f&Nt||Xe(e),e=n}}function Xe(t,e=!0){var n=!1;(e||t.f&Eo)&&t.nodes!==null&&t.nodes.end!==null&&(cs(t.nodes.start,t.nodes.end),n=!0),Oe(t,Oa),fl(t,e&&!n),Ki(t,0);var i=t.nodes&&t.nodes.t;if(i!==null)for(const a of i)a.stop();ss(t),t.f^=Oa,t.f|=xt;var r=t.parent;r!==null&&r.first!==null&&us(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function cs(t,e){for(;t!==null;){var n=t===e?null:dr(t);t.remove(),t=n}}function us(t){var e=t.parent,n=t.prev,i=t.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),e!==null&&(e.first===t&&(e.first=i),e.last===t&&(e.last=n))}function Kn(t,e,n=!0){var i=[];ds(t,i,!0);var r=()=>{n&&Xe(t),e&&e()},a=i.length;if(a>0){var s=()=>--a||r();for(var o of i)o.out(s)}else r()}function ds(t,e,n){if(!(t.f&ot)){t.f^=ot;var i=t.nodes&&t.nodes.t;if(i!==null)for(const o of i)(o.is_global||n)&&e.push(o);for(var r=t.first;r!==null;){var a=r.next;if(!(r.f&Ln)){var s=(r.f&Xt)!==0||(r.f&Nt)!==0&&(t.f&kt)!==0;ds(r,e,s?n:!1)}r=a}}}function vl(t){fs(t,!0)}function fs(t,e){if(t.f&ot){t.f^=ot,t.f&We||(Oe(t,Qe),Mn.ensure().schedule(t));for(var n=t.first;n!==null;){var i=n.next,r=(n.f&Xt)!==0||(n.f&Nt)!==0;fs(n,r?e:!1),n=i}var a=t.nodes&&t.nodes.t;if(a!==null)for(const s of a)(s.is_global||e)&&s.in()}}function hl(t,e){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end;n!==null;){var r=n===i?null:dr(n);e.append(n),n=r}}let Ar=!1,dn=!1;function Wl(t){dn=t}let xe=null,Mt=!1;function Et(t){xe=t}let pe=null;function en(t){pe=t}let Tt=null;function vs(t){xe!==null&&(Tt===null?Tt=[t]:Tt.push(t))}let dt=null,ft=0,_t=null;function Ku(t){_t=t}let hs=1,qn=0,cn=qn;function Ul(t){cn=t}function gs(){return++hs}function vr(t){var e=t.f;if(e&Qe)return!0;if(e&$e&&(t.f&=~Qn),e&Qt){for(var n=t.deps,i=n.length,r=0;r<i;r++){var a=n[r];if(vr(a)&&Qo(a),a.wv>t.wv)return!0}e&St&&Je===null&&Oe(t,We)}return!1}function ms(t,e,n=!0){var i=t.reactions;if(i!==null&&!(Tt!==null&&ki.call(Tt,t)))for(var r=0;r<i.length;r++){var a=i[r];a.f&$e?ms(a,e,!1):e===a&&(n?Oe(a,Qe):a.f&We&&Oe(a,Qt),cl(a))}}function ps(t){var g;var e=dt,n=ft,i=_t,r=xe,a=Tt,s=Ae,o=Mt,c=cn,u=t.f;dt=null,ft=0,_t=null,xe=u&(Nt|Ln)?null:t,Tt=null,xi(t.ctx),Mt=!1,cn=++qn,t.ac!==null&&(ei(()=>{t.ac.abort(na)}),t.ac=null);try{t.f|=Or;var f=t.fn,v=f();t.f|=On;var d=t.deps,_=de==null?void 0:de.is_fork;if(dt!==null){var m;if(_||Ki(t,ft),d!==null&&ft>0)for(d.length=ft+dt.length,m=0;m<dt.length;m++)d[ft+m]=dt[m];else t.deps=d=dt;if(dl()&&t.f&St)for(m=ft;m<d.length;m++)((g=d[m]).reactions??(g.reactions=[])).push(t)}else!_&&d!==null&&ft<d.length&&(Ki(t,ft),d.length=ft);if($n()&&_t!==null&&!Mt&&d!==null&&!(t.f&($e|Qt|Qe)))for(m=0;m<_t.length;m++)ms(_t[m],t);if(r!==null&&r!==t){if(qn++,r.deps!==null)for(let p=0;p<n;p+=1)r.deps[p].rv=qn;if(e!==null)for(const p of e)p.rv=qn;_t!==null&&(i===null?i=_t:i.push(..._t))}return t.f&In&&(t.f^=In),v}catch(p){return No(p)}finally{t.f^=Or,dt=e,ft=n,_t=i,xe=r,Tt=a,xi(s),Mt=o,cn=c}}function Yu(t,e){let n=e.reactions;if(n!==null){var i=jc.call(n,t);if(i!==-1){var r=n.length-1;r===0?n=e.reactions=null:(n[i]=n[r],n.pop())}}if(n===null&&e.f&$e&&(dt===null||!ki.call(dt,e))){var a=e;a.f&St&&(a.f^=St,a.f&=~Qn),a.v!==Be&&ol(a),Du(a),Ki(a,0)}}function Ki(t,e){var n=t.deps;if(n!==null)for(var i=e;i<n.length;i++)Yu(t,n[i])}function Ei(t){var e=t.f;if(!(e&xt)){Oe(t,We);var n=pe,i=Ar;pe=t,Ar=!0;try{e&(kt|al)?Zu(t):fl(t),ss(t);var r=ps(t);t.teardown=typeof r=="function"?r:null,t.wv=hs;var a}finally{Ar=i,pe=n}}}async function Yi(){await Promise.resolve(),Bo()}function l(t){var e=t.f,n=(e&$e)!==0;if(xe!==null&&!Mt){var i=pe!==null&&(pe.f&xt)!==0;if(!i&&(Tt===null||!ki.call(Tt,t))){var r=xe.deps;if(xe.f&Or)t.rv<qn&&(t.rv=qn,dt===null&&r!==null&&r[ft]===t?ft++:dt===null?dt=[t]:dt.push(t));else{(xe.deps??(xe.deps=[])).push(t);var a=t.reactions;a===null?t.reactions=[xe]:ki.call(a,xe)||a.push(xe)}}}if(dn&&Zn.has(t))return Zn.get(t);if(n){var s=t;if(dn){var o=s.v;return(!(s.f&We)&&s.reactions!==null||ws(s))&&(o=ul(s)),Zn.set(s,o),o}var c=(s.f&St)===0&&!Mt&&xe!==null&&(Ar||(xe.f&St)!==0),u=(s.f&On)===0;vr(s)&&(c&&(s.f|=St),Qo(s)),c&&!u&&(Xo(s),_s(s))}if(Je!=null&&Je.has(t))return Je.get(t);if(t.f&In)throw t.v;return t.v}function _s(t){if(t.f|=St,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&$e&&!(e.f&St)&&(Xo(e),_s(e))}function ws(t){if(t.v===Be)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Zn.has(e)||e.f&$e&&ws(e))return!0;return!1}function nn(t){var e=Mt;try{return Mt=!0,t()}finally{Mt=e}}function ys(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Jt in t)Za(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&Jt in n&&Za(n)}}}function Za(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 i in t)try{Za(t[i],e)}catch{}const n=rl(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=xo(n);for(let r in i){const a=i[r].get;if(a)try{a.call(t)}catch{}}}}}function Ju(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Qu=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Xu(t){return Qu.includes(t)}const $u={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 ed(t){return t=t.toLowerCase(),$u[t]??t}const td=["touchstart","touchmove"];function nd(t){return td.includes(t)}const Hn=Symbol("events"),bs=new Set,Ka=new Set;function gl(t,e,n,i={}){function r(a){if(i.capture||Ya.call(e,a),!a.cancelBubble)return ei(()=>n==null?void 0:n.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?jt(()=>{e.addEventListener(t,r,i)}):e.addEventListener(t,r,i),r}function id(t,e,n,i={}){var r=gl(e,t,n,i);return()=>{t.removeEventListener(e,r,i)}}function ye(t,e,n,i,r){var a={capture:i,passive:r},s=gl(t,e,n,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&fr(()=>{e.removeEventListener(t,s,a)})}function le(t,e,n){(e[Hn]??(e[Hn]={}))[t]=n}function me(t){for(var e=0;e<t.length;e++)bs.add(t[e]);for(var n of Ka)n(t)}let Gl=null;function Ya(t){var p,w;var e=this,n=e.ownerDocument,i=t.type,r=((p=t.composedPath)==null?void 0:p.call(t))||[],a=r[0]||t.target;Gl=t;var s=0,o=Gl===t&&t[Hn];if(o){var c=r.indexOf(o);if(c!==-1&&(e===document||e===window)){t[Hn]=e;return}var u=r.indexOf(e);if(u===-1)return;c<=u&&(s=c)}if(a=r[s]||t.target,a!==e){Rc(t,"currentTarget",{configurable:!0,get(){return a||n}});var f=xe,v=pe;Et(null),en(null);try{for(var d,_=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var g=(w=a[Hn])==null?void 0:w[i];g!=null&&(!a.disabled||t.target===a)&&g.call(a,t)}catch(b){d?_.push(b):d=b}if(t.cancelBubble||m===e||m===null)break;a=m}if(d){for(let b of _)queueMicrotask(()=>{throw b});throw d}}finally{t[Hn]=e,delete t.currentTarget,Et(f),en(v)}}}var ko;const wa=((ko=globalThis==null?void 0:globalThis.window)==null?void 0:ko.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function rd(t){return(wa==null?void 0:wa.createHTML(t))??t}function ks(t){var e=aa("template");return e.innerHTML=rd(t.replaceAll("<!>","<!---->")),e.content}const ad=ia?"script":"SCRIPT";function Dn(t,e){var n=pe;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function I(t,e){var n=(e&du)!==0,i=(e&fu)!==0,r,a=!t.startsWith("<!>");return()=>{r===void 0&&(r=ks(a?t:"<!>"+t),n||(r=Kt(r)));var s=i||ts?document.importNode(r,!0):r.cloneNode(!0);if(n){var o=Kt(s),c=s.lastChild;Dn(o,c)}else Dn(s,s);return s}}function ld(t,e,n="svg"){var i=!t.startsWith("<!>"),r=`<${n}>${i?t:"<!>"+t}</${n}>`,a;return()=>{if(!a){var s=ks(r),o=Kt(s);a=Kt(o)}var c=a.cloneNode(!0);return Dn(c,c),c}}function Ge(t,e){return ld(t,e,"svg")}function od(t){return()=>sd(t())}function sd(t){const e=t.nodeType===Hc,n=t.nodeName===ad?[t]:t.querySelectorAll("script"),i=pe;for(const a of n){const s=aa("script");for(var r of a.attributes)s.setAttribute(r.name,r.value);s.textContent=a.textContent,(e?t.firstChild===a:t===a)&&(i.nodes.start=s),(e?t.lastChild===a:t===a)&&(i.nodes.end=s),a.replaceWith(s)}return t}function st(t=""){{var e=Rt(t+"");return Dn(e,e),e}}function ge(){var t=document.createDocumentFragment(),e=document.createComment(""),n=Rt();return t.append(e,n),Dn(e,n),t}function y(t,e){t!==null&&t.before(e)}let zr=!0;function yr(t){zr=t}function Q(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[zi]??(t[zi]=t.nodeValue))&&(t[zi]=n,t.nodeValue=`${n}`)}function Ot(t,e){return cd(t,e)}const br=new Map;function cd(t,{target:e,anchor:n,props:i={},events:r,context:a,intro:s=!0,transformError:o}){Nu();var c=void 0,u=Uu(()=>{var f=n??e.appendChild(Rt());Zo(f,{pending:()=>{}},_=>{te({});var m=Ae;a&&(m.c=a),r&&(i.$$events=r),zr=s,c=t(_,i)||{},zr=!0,ne()},o);var v=new Set,d=_=>{for(var m=0;m<_.length;m++){var g=_[m];if(!v.has(g)){v.add(g);var p=nd(g);for(const T of[e,document]){var w=br.get(T);w===void 0&&(w=new Map,br.set(T,w));var b=w.get(g);b===void 0?(T.addEventListener(g,Ya,{passive:p}),w.set(g,1)):w.set(g,b+1)}}}};return d(ta(bs)),Ka.add(d),()=>{var p;for(var _ of v)for(const w of[e,document]){var m=br.get(w),g=m.get(_);--g==0?(w.removeEventListener(_,Ya),m.delete(_),m.size===0&&br.delete(w)):m.set(_,g)}Ka.delete(d),f!==n&&((p=f.parentNode)==null||p.removeChild(f))}});return Ja.set(c,u),c}let Ja=new WeakMap;function ni(t,e){const n=Ja.get(t);return n?(Ja.delete(t),n(e)):Promise.resolve()}var Ct,Ut,gt,Gn,rr,ar,Jr;class Mi{constructor(e,n=!0){rt(this,"anchor");se(this,Ct,new Map);se(this,Ut,new Map);se(this,gt,new Map);se(this,Gn,new Set);se(this,rr,!0);se(this,ar,e=>{if(P(this,Ct).has(e)){var n=P(this,Ct).get(e),i=P(this,Ut).get(n);if(i)vl(i),P(this,Gn).delete(n);else{var r=P(this,gt).get(n);r&&(P(this,Ut).set(n,r.effect),P(this,gt).delete(n),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[a,s]of P(this,Ct)){if(P(this,Ct).delete(a),a===e)break;const o=P(this,gt).get(s);o&&(Xe(o.effect),P(this,gt).delete(s))}for(const[a,s]of P(this,Ut)){if(a===n||P(this,Gn).has(a))continue;const o=()=>{if(Array.from(P(this,Ct).values()).includes(a)){var u=document.createDocumentFragment();hl(s,u),u.append(Rt()),P(this,gt).set(a,{effect:s,fragment:u})}else Xe(s);P(this,Gn).delete(a),P(this,Ut).delete(a)};P(this,rr)||!i?(P(this,Gn).add(a),Kn(s,o,!1)):o()}}});se(this,Jr,e=>{P(this,Ct).delete(e);const n=Array.from(P(this,Ct).values());for(const[i,r]of P(this,gt))n.includes(i)||(Xe(r.effect),P(this,gt).delete(i))});this.anchor=e,ve(this,rr,n)}ensure(e,n){var i=de,r=rs();if(n&&!P(this,Ut).has(e)&&!P(this,gt).has(e))if(r){var a=document.createDocumentFragment(),s=Rt();a.append(s),P(this,gt).set(e,{effect:lt(()=>n(s)),fragment:a})}else P(this,Ut).set(e,lt(()=>n(this.anchor)));if(P(this,Ct).set(i,e),r){for(const[o,c]of P(this,Ut))o===e?i.unskip_effect(c):i.skip_effect(c);for(const[o,c]of P(this,gt))o===e?i.unskip_effect(c.effect):i.skip_effect(c.effect);i.oncommit(P(this,ar)),i.ondiscard(P(this,Jr))}else P(this,ar).call(this,i)}}Ct=new WeakMap,Ut=new WeakMap,gt=new WeakMap,Gn=new WeakMap,rr=new WeakMap,ar=new WeakMap,Jr=new WeakMap;const ud=0,Zl=1,dd=2;function fn(t,e,n,i,r){var a=$n(),s=Be,o=a?$t(s):Ga(s,!1,!1),c=a?$t(s):Ga(s,!1,!1),u=new Mi(t);gn(()=>{var f=de;f.deactivate();var v=e();f.activate();var d=!1;if(zc(v)){var _=Yo(),m=!1;const g=p=>{if(!d){m=!0,_(!1),Mn.ensure();try{p()}finally{Zi(!1),di||Bo()}}};v.then(p=>{g(()=>{sn(o,p),u.ensure(Zl,i&&(w=>i(w,o)))})},p=>{g(()=>{if(sn(c,p),u.ensure(dd,r&&(w=>r(w,c))),!r)throw c.v})}),jt(()=>{m||g(()=>{u.ensure(ud,n)})})}else sn(o,v),u.ensure(Zl,i&&(g=>i(g,o)));return()=>{d=!0}})}function W(t,e,n=!1){var i=new Mi(t),r=n?Xt:0;function a(s,o){i.ensure(s,o)}gn(()=>{var s=!1;e((o,c=0)=>{s=!0,a(c,o)}),s||a(-1,null)},r)}const fd=Symbol("NaN");function hr(t,e,n){var i=new Mi(t),r=!$n();gn(()=>{var a=e();a!==a&&(a=fd),r&&a!==null&&typeof a=="object"&&(a={}),i.ensure(a,n)})}function Le(t,e){return e}function vd(t,e,n){for(var i=[],r=e.length,a,s=e.length,o=0;o<r;o++){let v=e[o];Kn(v,()=>{if(a){if(a.pending.delete(v),a.done.add(v),a.pending.size===0){var d=t.outrogroups;Qa(t,ta(a.done)),d.delete(a),d.size===0&&(t.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=i.length===0&&n!==null;if(c){var u=n,f=u.parentNode;zu(f),f.append(u),t.items.clear()}Qa(t,e,!c)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function Qa(t,e,n=!0){var i;if(t.pending.size>0){i=new Set;for(const s of t.pending.values())for(const o of s)i.add(t.items.get(o).e)}for(var r=0;r<e.length;r++){var a=e[r];if(i!=null&&i.has(a)){a.f|=Zt;const s=document.createDocumentFragment();hl(a,s)}else Xe(e[r],n)}}var Kl;function Ce(t,e,n,i,r,a=null){var s=t,o=new Map,c=(e&Ao)!==0;if(c){var u=t;s=u.appendChild(Rt())}var f=null,v=ra(()=>{var T=n();return il(T)?T:T==null?[]:ta(T)}),d,_=new Map,m=!0;function g(T){b.effect.f&xt||(b.pending.delete(T),b.fallback=f,hd(b,d,s,e,i),f!==null&&(d.length===0?f.f&Zt?(f.f^=Zt,qi(f,null,s)):vl(f):Kn(f,()=>{f=null})))}function p(T){b.pending.delete(T)}var w=gn(()=>{d=l(v);for(var T=d.length,E=new Set,x=de,R=rs(),j=0;j<T;j+=1){var O=d[j],q=i(O,j),z=m?null:o.get(q);z?(z.v&&sn(z.v,O),z.i&&sn(z.i,j),R&&x.unskip_effect(z.e)):(z=gd(o,m?s:Kl??(Kl=Rt()),O,q,j,r,e,n),m||(z.e.f|=Zt),o.set(q,z)),E.add(q)}if(T===0&&a&&!f&&(m?f=lt(()=>a(s)):(f=lt(()=>a(Kl??(Kl=Rt()))),f.f|=Zt)),T>E.size&&Vc(),!m)if(_.set(x,E),R){for(const[L,M]of o)E.has(L)||x.skip_effect(M.e);x.oncommit(g),x.ondiscard(p)}else g(x);l(v)}),b={effect:w,items:o,pending:_,outrogroups:null,fallback:f};m=!1}function Ni(t){for(;t!==null&&!(t.f&Nt);)t=t.next;return t}function hd(t,e,n,i,r){var z,L,M,k,D,U,K,V,Y;var a=(i&tu)!==0,s=e.length,o=t.items,c=Ni(t.effect.first),u,f=null,v,d=[],_=[],m,g,p,w;if(a)for(w=0;w<s;w+=1)m=e[w],g=r(m,w),p=o.get(g).e,p.f&Zt||((L=(z=p.nodes)==null?void 0:z.a)==null||L.measure(),(v??(v=new Set)).add(p));for(w=0;w<s;w+=1){if(m=e[w],g=r(m,w),p=o.get(g).e,t.outrogroups!==null)for(const F of t.outrogroups)F.pending.delete(p),F.done.delete(p);if(p.f&ot&&(vl(p),a&&((k=(M=p.nodes)==null?void 0:M.a)==null||k.unfix(),(v??(v=new Set)).delete(p))),p.f&Zt)if(p.f^=Zt,p===c)qi(p,null,n);else{var b=f?f.next:c;p===t.effect.last&&(t.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),_n(t,f,p),_n(t,p,b),qi(p,b,n),f=p,d=[],_=[],c=Ni(f.next);continue}if(p!==c){if(u!==void 0&&u.has(p)){if(d.length<_.length){var T=_[0],E;f=T.prev;var x=d[0],R=d[d.length-1];for(E=0;E<d.length;E+=1)qi(d[E],T,n);for(E=0;E<_.length;E+=1)u.delete(_[E]);_n(t,x.prev,R.next),_n(t,f,x),_n(t,R,T),c=T,f=R,w-=1,d=[],_=[]}else u.delete(p),qi(p,c,n),_n(t,p.prev,p.next),_n(t,p,f===null?t.effect.first:f.next),_n(t,f,p),f=p;continue}for(d=[],_=[];c!==null&&c!==p;)(u??(u=new Set)).add(c),_.push(c),c=Ni(c.next);if(c===null)continue}p.f&Zt||d.push(p),f=p,c=Ni(p.next)}if(t.outrogroups!==null){for(const F of t.outrogroups)F.pending.size===0&&(Qa(t,ta(F.done)),(D=t.outrogroups)==null||D.delete(F));t.outrogroups.size===0&&(t.outrogroups=null)}if(c!==null||u!==void 0){var j=[];if(u!==void 0)for(p of u)p.f&ot||j.push(p);for(;c!==null;)!(c.f&ot)&&c!==t.fallback&&j.push(c),c=Ni(c.next);var O=j.length;if(O>0){var q=i&Ao&&s===0?n:null;if(a){for(w=0;w<O;w+=1)(K=(U=j[w].nodes)==null?void 0:U.a)==null||K.measure();for(w=0;w<O;w+=1)(Y=(V=j[w].nodes)==null?void 0:V.a)==null||Y.fix()}vd(t,j,q)}}a&&jt(()=>{var F,Z;if(v!==void 0)for(p of v)(Z=(F=p.nodes)==null?void 0:F.a)==null||Z.apply()})}function gd(t,e,n,i,r,a,s,o){var c=s&$c?s&nu?$t(n):Ga(n,!1,!1):null,u=s&eu?$t(r):null;return{v:c,i:u,e:lt(()=>(a(e,c??n,u??r,o),()=>{t.delete(i)}))}}function qi(t,e,n){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end,a=e&&!(e.f&Zt)?e.nodes.start:n;i!==null;){var s=dr(i);if(a.before(i),i===r)return;i=s}}function _n(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function md(t,e,n=!1,i=!1,r=!1,a=!1){var s=t,o="";if(n)var c=t;B(()=>{var u=pe;if(o!==(o=e()??"")){if(n){u.nodes=null,c.innerHTML=o,o!==""&&Dn(Kt(c),c.lastChild);return}if(u.nodes!==null&&(cs(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){var f=i?Lo:r?vu:void 0,v=aa(i?"svg":r?"math":"template",f);v.innerHTML=o;var d=i||r?v:v.content;if(Dn(Kt(d),d.lastChild),i||r)for(;Kt(d);)s.before(Kt(d));else s.before(d)}}})}function Ve(t,e,...n){var i=new Mi(t);gn(()=>{const r=e()??null;i.ensure(r,r&&(a=>r(a,...n)))},Xt)}function Fr(t,e,n){var i=new Mi(t);gn(()=>{var r=e()??null;i.ensure(r,r&&(a=>n(a,r)))},Xt)}const pd=()=>performance.now(),on={tick:t=>requestAnimationFrame(t),now:()=>pd(),tasks:new Set};function Ss(){const t=on.now();on.tasks.forEach(e=>{e.c(t)||(on.tasks.delete(e),e.f())}),on.tasks.size!==0&&on.tick(Ss)}function _d(t){let e;return on.tasks.size===0&&on.tick(Ss),{promise:new Promise(n=>{on.tasks.add(e={c:t,f:n})}),abort(){on.tasks.delete(e)}}}function kr(t,e){ei(()=>{t.dispatchEvent(new CustomEvent(e))})}function wd(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(n=>n[0].toUpperCase()+n.slice(1)).join("")}function Yl(t){const e={},n=t.split(";");for(const i of n){const[r,a]=i.split(":");if(!r||a===void 0)break;const s=wd(r.trim());e[s]=a.trim()}return e}const yd=t=>t;let xs=null;function Jl(t){xs=t}function bd(t,e,n){var i=xs??pe,r=i.nodes,a,s,o,c=null;r.a??(r.a={element:t,measure(){a=this.element.getBoundingClientRect()},apply(){if(o==null||o.abort(),s=this.element.getBoundingClientRect(),a.left!==s.left||a.right!==s.right||a.top!==s.top||a.bottom!==s.bottom){const u=e()(this.element,{from:a,to:s},n==null?void 0:n());o=qr(this.element,u,void 0,1,()=>{},()=>{o==null||o.abort(),o=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:v}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=v;var _=t.getBoundingClientRect();if(a.left!==_.left||a.top!==_.top){var m=`translate(${a.left-_.left}px, ${a.top-_.top}px)`;d.transform=d.transform?`${d.transform} ${m}`:m}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}}),r.a.element=t}function Re(t,e,n,i){var T;var r=(t&su)!==0,a=(t&cu)!==0,s=r&&a,o=(t&uu)!==0,c=s?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,d,_;function m(){return ei(()=>u??(u=n()(e,(i==null?void 0:i())??{},{direction:c})))}var g={is_global:o,in(){var E;if(e.inert=f,!r){_==null||_.abort(),(E=_==null?void 0:_.reset)==null||E.call(_);return}a||d==null||d.abort(),d=qr(e,m(),_,1,()=>{kr(e,"introstart")},()=>{kr(e,"introend"),d==null||d.abort(),d=u=void 0,e.style.overflow=v})},out(E){if(!a){E==null||E(),u=void 0;return}e.inert=!0,_=qr(e,m(),d,0,()=>{kr(e,"outrostart")},()=>{kr(e,"outroend"),E==null||E()})},stop:()=>{d==null||d.abort(),_==null||_.abort()}},p=pe;if(((T=p.nodes).t??(T.t=[])).push(g),r&&zr){var w=o;if(!w){for(var b=p.parent;b&&b.f&Xt;)for(;(b=b.parent)&&!(b.f&kt););w=!b||(b.f&On)!==0}w&&ti(()=>{nn(()=>g.in())})}}function qr(t,e,n,i,r,a){var s=i===1;if(ai(e)){var o,c=!1;return jt(()=>{if(!c){var w=e({direction:s?"in":"out"});o=qr(t,w,n,i,r,a)}}),{abort:()=>{c=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n==null||n.deactivate(),!(e!=null&&e.duration)&&!(e!=null&&e.delay))return r(),a(),{abort:mt,deactivate:mt,reset:mt,t:()=>i};const{delay:u=0,css:f,tick:v,easing:d=yd}=e;var _=[];if(s&&n===void 0&&(v&&v(0,1),f)){var m=Yl(f(0,1));_.push(m,m)}var g=()=>1-i,p=t.animate(_,{duration:u,fill:"forwards"});return p.onfinish=()=>{p.cancel(),r();var w=(n==null?void 0:n.t())??1-i;n==null||n.abort();var b=i-w,T=e.duration*Math.abs(b),E=[];if(T>0){var x=!1;if(f)for(var R=Math.ceil(T/16.666666666666668),j=0;j<=R;j+=1){var O=w+b*d(j/R),q=Yl(f(O,1-O));E.push(q),x||(x=q.overflow==="hidden")}x&&(t.style.overflow="hidden"),g=()=>{var z=p.currentTime;return w+b*d(z/T)},v&&_d(()=>{if(p.playState!=="running")return!1;var z=g();return v(z,1-z),!0})}p=t.animate(E,{duration:T,fill:"forwards"}),p.onfinish=()=>{g=()=>i,v==null||v(i,1-i),a()}},{abort:()=>{p&&(p.cancel(),p.effect=null,p.onfinish=mt)},deactivate:()=>{a=mt},reset:()=>{i===0&&(v==null||v(1,0))},t:()=>g()}}function Ts(t,e,n,i,r,a){var s=null,o=t,c=pe,u=new Mi(o,!1);gn(()=>{const f=e()||null;var v=f==="svg"?Lo:void 0;if(f===null){u.ensure(null,null),yr(!0);return}return u.ensure(f,d=>{if(f){if(s=aa(f,v),Dn(s,s),i){var _=s.appendChild(Rt());Jl(c),i(s,_),Jl(null)}pe.nodes.end=s,d.before(s)}}),yr(!0),()=>{f&&yr(!1)}},Xt),fr(()=>{yr(!0)})}function kd(t,e){var n;n=document.head.appendChild(Rt());try{gn(()=>{var i=lt(()=>e(n));i.f|=Eo})}finally{}}function zt(t,e,n){ti(()=>{var i=nn(()=>e(t,n==null?void 0:n())||{});if(n&&(i!=null&&i.update)){var r=!1,a={};la(()=>{var s=n();ys(s),r&&Do(a,s)&&(a=s,i.update(s))}),r=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function Hr(t,e){var n=void 0,i;os(()=>{n!==(n=e())&&(i&&(Xe(i),i=null),n&&(i=lt(()=>{ti(()=>n(t))})))})}function Es(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=Es(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Sd(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=Es(t))&&(i&&(i+=" "),i+=e);return i}function xd(t){return typeof t=="object"?Sd(t):t??""}const Ql=[...`
2
- \r\f \v\uFEFF`];function Td(t,e,n){var i=t==null?"":""+t;if(e&&(i=i?i+" "+e:e),n){for(var r of Object.keys(n))if(n[r])i=i?i+" "+r:r;else if(i.length)for(var a=r.length,s=0;(s=i.indexOf(r,s))>=0;){var o=s+a;(s===0||Ql.includes(i[s-1]))&&(o===i.length||Ql.includes(i[o]))?i=(s===0?"":i.substring(0,s))+i.substring(o+1):s=o}}return i===""?null:i}function Xl(t,e=!1){var n=e?" !important;":";",i="";for(var r of Object.keys(t)){var a=t[r];a!=null&&a!==""&&(i+=" "+r+": "+a+n)}return i}function ya(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ed(t,e){if(e){var n="",i,r;if(Array.isArray(e)?(i=e[0],r=e[1]):i=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,o=!1,c=[];i&&c.push(...Object.keys(i).map(ya)),r&&c.push(...Object.keys(r).map(ya));var u=0,f=-1;const g=t.length;for(var v=0;v<g;v++){var d=t[v];if(o?d==="/"&&t[v-1]==="*"&&(o=!1):a?a===d&&(a=!1):d==="/"&&t[v+1]==="*"?o=!0:d==='"'||d==="'"?a=d:d==="("?s++:d===")"&&s--,!o&&a===!1&&s===0){if(d===":"&&f===-1)f=v;else if(d===";"||v===g-1){if(f!==-1){var _=ya(t.substring(u,f).trim());if(!c.includes(_)){d!==";"&&v++;var m=t.substring(u,v).trim();n+=" "+m+";"}}u=v+1,f=-1}}}}return i&&(n+=Xl(i)),r&&(n+=Xl(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function _e(t,e,n,i,r,a){var s=t[Na];if(s!==n||s===void 0){var o=Td(n,i,a);o==null?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o),t[Na]=n}else if(a&&r!==a)for(var c in a){var u=!!a[c];(r==null||u!==!!r[c])&&t.classList.toggle(c,u)}return a}function ba(t,e={},n,i){for(var r in n){var a=n[r];e[r]!==a&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,i))}}function Ue(t,e,n,i){var r=t[za];if(r!==e){var a=Ed(e,i);a==null?t.removeAttribute("style"):t.style.cssText=a,t[za]=e}else i&&(Array.isArray(i)?(ba(t,n==null?void 0:n[0],i[0]),ba(t,n==null?void 0:n[1],i[1],"important")):ba(t,n,i));return i}function Xa(t,e,n=!1){if(t.multiple){if(e==null)return;if(!il(e))return mu();for(var i of t.options)i.selected=e.includes($l(i));return}for(i of t.options){var r=$l(i);if(Ou(r,e)){i.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Pd(t){var e=new MutationObserver(()=>{Xa(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),fr(()=>{e.disconnect()})}function $l(t){return"__value"in t?t.__value:t.value}const oi=Symbol("class"),si=Symbol("style"),Ps=Symbol("is custom element"),Is=Symbol("is html"),Id=ia?"option":"OPTION",Ad=ia?"select":"SELECT",Cd=ia?"progress":"PROGRESS";function Ld(t,e){var n=ml(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==Cd)||(t.value=e??"")}function As(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function oe(t,e,n,i){var r=ml(t);r[e]!==(r[e]=n)&&(e==="loading"&&(t[qc]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Ls(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Md(t,e,n,i,r=!1,a=!1){var s=ml(t),o=s[Ps],c=!s[Is],u=e||{},f=t.nodeName===Id;for(var v in e)v in n||(n[v]=null);n.class?n.class=xd(n.class):(i||n[oi])&&(n.class=null),n[si]&&(n.style??(n.style=null));var d=Ls(t);for(const E in n){let x=n[E];if(f&&E==="value"&&x==null){t.value=t.__value="",u[E]=x;continue}if(E==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";_e(t,_,x,i,e==null?void 0:e[oi],n[oi]),u[E]=x,u[oi]=n[oi];continue}if(E==="style"){Ue(t,x,e==null?void 0:e[si],n[si]),u[E]=x,u[si]=n[si];continue}var m=u[E];if(!(x===m&&!(x===void 0&&t.hasAttribute(E)))){u[E]=x;var g=E[0]+E[1];if(g!=="$$")if(g==="on"){const R={},j="$$"+E;let O=E.slice(2);var p=Xu(O);if(Ju(O)&&(O=O.slice(0,-7),R.capture=!0),!p&&m){if(x!=null)continue;t.removeEventListener(O,u[j],R),u[j]=null}if(p)le(O,t,x),me([O]);else if(x!=null){let q=function(z){u[E].call(this,z)};var T=q;u[j]=gl(O,t,q,R)}}else if(E==="style")oe(t,E,x);else if(E==="autofocus")Fu(t,!!x);else if(!o&&(E==="__value"||E==="value"&&x!=null))t.value=t.__value=x;else if(E==="selected"&&f)As(t,x);else{var w=E;c||(w=ed(w));var b=w==="defaultValue"||w==="defaultChecked";if(x==null&&!o&&!b)if(s[E]=null,w==="value"||w==="checked"){let R=t;const j=e===void 0;if(w==="value"){let O=R.defaultValue;R.removeAttribute(w),R.defaultValue=O,R.value=R.__value=j?O:null}else{let O=R.defaultChecked;R.removeAttribute(w),R.defaultChecked=O,R.checked=j?O:!1}}else t.removeAttribute(E);else b||d.includes(w)&&(o||typeof x!="string")?(t[w]=x,w in s&&(s[w]=Be)):typeof x!="function"&&oe(t,w,x)}}}return u}function Cs(t,e,n=[],i=[],r=[],a,s=!1,o=!1){Ko(r,n,i,c=>{var u=void 0,f={},v=t.nodeName===Ad,d=!1;if(os(()=>{var m=e(...c.map(l)),g=Md(t,u,m,a,s,o);d&&v&&"value"in m&&Xa(t,m.value);for(let w of Object.getOwnPropertySymbols(f))m[w]||Xe(f[w]);for(let w of Object.getOwnPropertySymbols(m)){var p=m[w];w.description===hu&&(!u||p!==u[w])&&(f[w]&&Xe(f[w]),f[w]=lt(()=>Hr(t,()=>p))),g[w]=p}u=g}),v){var _=t;ti(()=>{Xa(_,u.value,!0),Pd(_)})}d=!0})}function ml(t){return t[Sr]??(t[Sr]={[Ps]:t.nodeName.includes("-"),[Is]:t.namespaceURI===Co})}var eo=new Map;function Ls(t){var e=t.getAttribute("is")||t.nodeName,n=eo.get(e);if(n)return n;eo.set(e,n=[]);for(var i,r=t,a=Element.prototype;a!==r;){i=xo(r);for(var s in i)i[s].set&&s!=="innerHTML"&&s!=="textContent"&&s!=="innerText"&&n.push(s);r=rl(r)}return n}function Ji(t,e,n=e){var i=new WeakSet;Bu(t,"input",async r=>{var a=r?t.defaultValue:t.value;if(a=ka(t)?Sa(a):a,n(a),de!==null&&i.add(de),await Yi(),a!==(a=e())){var s=t.selectionStart,o=t.selectionEnd,c=t.value.length;if(t.value=a??"",o!==null){var u=t.value.length;s===o&&o===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=s,t.selectionEnd=Math.min(o,u))}}}),nn(e)==null&&t.value&&(n(ka(t)?Sa(t.value):t.value),de!==null&&i.add(de)),la(()=>{var r=e();if(t===document.activeElement){var a=de;if(i.has(a))return}ka(t)&&r===Sa(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function ka(t){var e=t.type;return e==="number"||e==="range"}function Sa(t){return t===""?null:+t}var kn,yi,lr,Qr,Ms;const Xr=class Xr{constructor(e){se(this,Qr);se(this,kn,new WeakMap);se(this,yi);se(this,lr);ve(this,lr,e)}observe(e,n){var i=P(this,kn).get(e)||new Set;return i.add(n),P(this,kn).set(e,i),Se(this,Qr,Ms).call(this).observe(e,P(this,lr)),()=>{var r=P(this,kn).get(e);r.delete(n),r.size===0&&(P(this,kn).delete(e),P(this,yi).unobserve(e))}}};kn=new WeakMap,yi=new WeakMap,lr=new WeakMap,Qr=new WeakSet,Ms=function(){return P(this,yi)??ve(this,yi,new ResizeObserver(e=>{for(var n of e){Xr.entries.set(n.target,n);for(var i of P(this,kn).get(n.target)||[])i(n)}}))},rt(Xr,"entries",new WeakMap);let $a=Xr;var Dd=new $a({box:"border-box"});function pt(t,e,n){var i=Dd.observe(t,()=>n(t[e]));ti(()=>(nn(()=>n(t[e])),i))}function xa(t,e){return t===e||(t==null?void 0:t[Jt])===e}function ze(t={},e,n,i){var r=Ae.r,a=pe;return ti(()=>{var s,o;return la(()=>{s=o,o=[],nn(()=>{xa(n(...o),t)||(e(t,...o),s&&xa(n(...s),t)&&e(null,...s))})}),()=>{let c=a;for(;c!==r&&c.parent!==null&&c.parent.f&Oa;)c=c.parent;const u=()=>{o&&xa(n(...o),t)&&e(null,...o)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Pi(t,e){Hu(window,["resize"],()=>ei(()=>e(window[t])))}function pl(t=!1){const e=Ae,n=e.l.u;if(!n)return;let i=()=>ys(e.s);if(t){let r=0,a={};const s=Ti(()=>{let o=!1;const c=e.s;for(const u in c)c[u]!==a[u]&&(a[u]=c[u],o=!0);return o&&r++,r});i=()=>l(s)}n.b.length&&Wu(()=>{to(e,i),Da(n.b)}),Fe(()=>{const r=nn(()=>n.m.map(Fc));return()=>{for(const a of r)typeof a=="function"&&a()}}),n.a.length&&Fe(()=>{to(e,i),Da(n.a)})}function to(t,e){if(t.l.s)for(const n of t.l.s)l(n);e()}const jd={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 Di(t,e,n){return new Proxy({props:t,exclude:e},jd)}const Rd={get(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(ai(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(t,e,n){let i=t.props.length;for(;i--;){let r=t.props[i];ai(r)&&(r=r());const a=Pn(r,e);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(ai(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const r=Pn(i,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Jt||e===Io)return!1;for(let n of t.props)if(ai(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(ai(n)&&(n=n()),!!n){for(const i in n)e.includes(i)||e.push(i);for(const i of Object.getOwnPropertySymbols(n))e.includes(i)||e.push(i)}return e}};function jn(...t){return new Proxy({props:t},Rd)}function C(t,e,n,i){var E;var r=!Li||(n&ru)!==0,a=(n&lu)!==0,s=(n&ou)!==0,o=i,c=!0,u=void 0,f=()=>s&&r?(u??(u=Ti(i)),l(u)):(c&&(c=!1,o=s?nn(i):i),o);let v;if(a){var d=Jt in t||Io in t;v=((E=Pn(t,e))==null?void 0:E.set)??(d&&e in t?x=>t[e]=x:void 0)}var _,m=!1;a?[_,m]=ku(()=>t[e]):_=t[e],_===void 0&&i!==void 0&&(_=f(),v&&(r&&Kc(),v(_)));var g;if(r?g=()=>{var x=t[e];return x===void 0?f():(c=!0,x)}:g=()=>{var x=t[e];return x!==void 0&&(o=void 0),x===void 0?o:x},r&&!(n&au))return g;if(v){var p=t.$$legacy;return function(x,R){return arguments.length>0?((!r||!R||p||m)&&v(R?g():x),x):g()}}var w=!1,b=(n&iu?Ti:ra)(()=>(w=!1,g()));a&&l(b);var T=pe;return function(x,R){if(arguments.length>0){const j=R?l(b):r&&a?Pe(x):x;return N(b,j),w=!0,o!==void 0&&(o=j),x}return dn&&w||T.f&xt?b.v:l(b)}}function ct(t){Ae===null&&ll(),Li&&Ae.l!==null?Od(Ae).m.push(t):Fe(()=>{const e=nn(t);if(typeof e=="function")return e})}function gr(t){Ae===null&&ll(),ct(()=>()=>nn(t))}function Od(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Nd="5";var So;typeof window<"u"&&((So=window.__svelte??(window.__svelte={})).v??(So.v=new Set)).add(Nd);function Nn(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Ds="https://www.playpilot.com",zd="https://partner-api.playpilot.tech/1.0",Fd="https://img-external.playpilot.tech",qd="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.36.2",Hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Rn=600,Ta={};async function tn(t,{headers:e={},method:n="GET",body:i=null,baseUrl:r=zd}={}){const a=!oa()&&n==="GET";if(a&&t in Ta)return Ta[t];const s=n==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(r+t,{method:n,headers:new Headers({...s,...e}),body:i?JSON.stringify(i):null});if(!(o!=null&&o.ok))throw o;const c=await o.text();let u=c;try{c&&(u=JSON.parse(c))}catch{}return a&&(Ta[t]=u),u}const js="EncryptedToken",Rs="articleReplacementEditToken",Bd="playpilot-editorial-mode";async function Os({href:t=window.location.href,throwError:e=!1}={}){try{const n=Nn();if(!n)throw new Error("No token was provided");const i=Ns(t);if(!i)throw new Error("Could not be authenticated");return await tn(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),Vd(i),!0}catch(n){if(console.error(n),e)throw n}finally{Wd()}return!1}function Ns(t=""){var i,r;const e=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(e)return e;if(t){const a=new URL(t).searchParams.get(Rs);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${js}=`).pop())==null?void 0:r.split(";")[0])||""}function Vd(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=js+"="+t+";"+i+";path=/"}function oa(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Bd)==="true"||!!t}function Wd(){const t=new URL(window.location.href);t.searchParams.delete(Rs),window.history.replaceState({},"",t)}function Ud(t){let e=0;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);e=e*31+i>>>0}return e.toString(16)}function sa(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<t;)n+=e[Math.floor(Math.random()*e.length)];return n}const h={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function mr(){var i,r;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.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 n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(n){if(e.includes(n))return n;const a=e.find(s=>s.toLowerCase().startsWith(n+"-"));if(a)return a}return h.English}function zs(t,e=""){const n=[],i=[t];for(;i.length>0;){const r=i.pop();if(n.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 a=Array.from(r.childNodes).some(c=>{var u;return c.nodeType===Node.TEXT_NODE&&((u=c.nodeValue)==null?void 0:u.trim())!==""});if(a&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const s=r.tagName==="P"&&!!r.textContent;if(a||s){n.push(r);continue}const o=Array.from(r.children);for(let c=o.length-1;c>=0;c--)i.push(o[c])}return n}function _l(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const n=t.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function Fs(t){return t.map(e=>e.innerText).join(`
2
+ \r\f \v\uFEFF`];function Td(t,e,n){var i=t==null?"":""+t;if(e&&(i=i?i+" "+e:e),n){for(var r of Object.keys(n))if(n[r])i=i?i+" "+r:r;else if(i.length)for(var a=r.length,s=0;(s=i.indexOf(r,s))>=0;){var o=s+a;(s===0||Ql.includes(i[s-1]))&&(o===i.length||Ql.includes(i[o]))?i=(s===0?"":i.substring(0,s))+i.substring(o+1):s=o}}return i===""?null:i}function Xl(t,e=!1){var n=e?" !important;":";",i="";for(var r of Object.keys(t)){var a=t[r];a!=null&&a!==""&&(i+=" "+r+": "+a+n)}return i}function ya(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Ed(t,e){if(e){var n="",i,r;if(Array.isArray(e)?(i=e[0],r=e[1]):i=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,o=!1,c=[];i&&c.push(...Object.keys(i).map(ya)),r&&c.push(...Object.keys(r).map(ya));var u=0,f=-1;const g=t.length;for(var v=0;v<g;v++){var d=t[v];if(o?d==="/"&&t[v-1]==="*"&&(o=!1):a?a===d&&(a=!1):d==="/"&&t[v+1]==="*"?o=!0:d==='"'||d==="'"?a=d:d==="("?s++:d===")"&&s--,!o&&a===!1&&s===0){if(d===":"&&f===-1)f=v;else if(d===";"||v===g-1){if(f!==-1){var _=ya(t.substring(u,f).trim());if(!c.includes(_)){d!==";"&&v++;var m=t.substring(u,v).trim();n+=" "+m+";"}}u=v+1,f=-1}}}}return i&&(n+=Xl(i)),r&&(n+=Xl(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function _e(t,e,n,i,r,a){var s=t[Na];if(s!==n||s===void 0){var o=Td(n,i,a);o==null?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o),t[Na]=n}else if(a&&r!==a)for(var c in a){var u=!!a[c];(r==null||u!==!!r[c])&&t.classList.toggle(c,u)}return a}function ba(t,e={},n,i){for(var r in n){var a=n[r];e[r]!==a&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,i))}}function Ue(t,e,n,i){var r=t[za];if(r!==e){var a=Ed(e,i);a==null?t.removeAttribute("style"):t.style.cssText=a,t[za]=e}else i&&(Array.isArray(i)?(ba(t,n==null?void 0:n[0],i[0]),ba(t,n==null?void 0:n[1],i[1],"important")):ba(t,n,i));return i}function Xa(t,e,n=!1){if(t.multiple){if(e==null)return;if(!il(e))return mu();for(var i of t.options)i.selected=e.includes($l(i));return}for(i of t.options){var r=$l(i);if(Ou(r,e)){i.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Pd(t){var e=new MutationObserver(()=>{Xa(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),fr(()=>{e.disconnect()})}function $l(t){return"__value"in t?t.__value:t.value}const oi=Symbol("class"),si=Symbol("style"),Ps=Symbol("is custom element"),Is=Symbol("is html"),Id=ia?"option":"OPTION",Ad=ia?"select":"SELECT",Cd=ia?"progress":"PROGRESS";function Ld(t,e){var n=ml(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==Cd)||(t.value=e??"")}function As(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function oe(t,e,n,i){var r=ml(t);r[e]!==(r[e]=n)&&(e==="loading"&&(t[qc]=n),n==null?t.removeAttribute(e):typeof n!="string"&&Ls(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Md(t,e,n,i,r=!1,a=!1){var s=ml(t),o=s[Ps],c=!s[Is],u=e||{},f=t.nodeName===Id;for(var v in e)v in n||(n[v]=null);n.class?n.class=xd(n.class):(i||n[oi])&&(n.class=null),n[si]&&(n.style??(n.style=null));var d=Ls(t);for(const E in n){let x=n[E];if(f&&E==="value"&&x==null){t.value=t.__value="",u[E]=x;continue}if(E==="class"){var _=t.namespaceURI==="http://www.w3.org/1999/xhtml";_e(t,_,x,i,e==null?void 0:e[oi],n[oi]),u[E]=x,u[oi]=n[oi];continue}if(E==="style"){Ue(t,x,e==null?void 0:e[si],n[si]),u[E]=x,u[si]=n[si];continue}var m=u[E];if(!(x===m&&!(x===void 0&&t.hasAttribute(E)))){u[E]=x;var g=E[0]+E[1];if(g!=="$$")if(g==="on"){const R={},j="$$"+E;let O=E.slice(2);var p=Xu(O);if(Ju(O)&&(O=O.slice(0,-7),R.capture=!0),!p&&m){if(x!=null)continue;t.removeEventListener(O,u[j],R),u[j]=null}if(p)le(O,t,x),me([O]);else if(x!=null){let q=function(z){u[E].call(this,z)};var T=q;u[j]=gl(O,t,q,R)}}else if(E==="style")oe(t,E,x);else if(E==="autofocus")Fu(t,!!x);else if(!o&&(E==="__value"||E==="value"&&x!=null))t.value=t.__value=x;else if(E==="selected"&&f)As(t,x);else{var w=E;c||(w=ed(w));var b=w==="defaultValue"||w==="defaultChecked";if(x==null&&!o&&!b)if(s[E]=null,w==="value"||w==="checked"){let R=t;const j=e===void 0;if(w==="value"){let O=R.defaultValue;R.removeAttribute(w),R.defaultValue=O,R.value=R.__value=j?O:null}else{let O=R.defaultChecked;R.removeAttribute(w),R.defaultChecked=O,R.checked=j?O:!1}}else t.removeAttribute(E);else b||d.includes(w)&&(o||typeof x!="string")?(t[w]=x,w in s&&(s[w]=Be)):typeof x!="function"&&oe(t,w,x)}}}return u}function Cs(t,e,n=[],i=[],r=[],a,s=!1,o=!1){Ko(r,n,i,c=>{var u=void 0,f={},v=t.nodeName===Ad,d=!1;if(os(()=>{var m=e(...c.map(l)),g=Md(t,u,m,a,s,o);d&&v&&"value"in m&&Xa(t,m.value);for(let w of Object.getOwnPropertySymbols(f))m[w]||Xe(f[w]);for(let w of Object.getOwnPropertySymbols(m)){var p=m[w];w.description===hu&&(!u||p!==u[w])&&(f[w]&&Xe(f[w]),f[w]=lt(()=>Hr(t,()=>p))),g[w]=p}u=g}),v){var _=t;ti(()=>{Xa(_,u.value,!0),Pd(_)})}d=!0})}function ml(t){return t[Sr]??(t[Sr]={[Ps]:t.nodeName.includes("-"),[Is]:t.namespaceURI===Co})}var eo=new Map;function Ls(t){var e=t.getAttribute("is")||t.nodeName,n=eo.get(e);if(n)return n;eo.set(e,n=[]);for(var i,r=t,a=Element.prototype;a!==r;){i=xo(r);for(var s in i)i[s].set&&s!=="innerHTML"&&s!=="textContent"&&s!=="innerText"&&n.push(s);r=rl(r)}return n}function Ji(t,e,n=e){var i=new WeakSet;Bu(t,"input",async r=>{var a=r?t.defaultValue:t.value;if(a=ka(t)?Sa(a):a,n(a),de!==null&&i.add(de),await Yi(),a!==(a=e())){var s=t.selectionStart,o=t.selectionEnd,c=t.value.length;if(t.value=a??"",o!==null){var u=t.value.length;s===o&&o===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=s,t.selectionEnd=Math.min(o,u))}}}),nn(e)==null&&t.value&&(n(ka(t)?Sa(t.value):t.value),de!==null&&i.add(de)),la(()=>{var r=e();if(t===document.activeElement){var a=de;if(i.has(a))return}ka(t)&&r===Sa(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function ka(t){var e=t.type;return e==="number"||e==="range"}function Sa(t){return t===""?null:+t}var kn,yi,lr,Qr,Ms;const Xr=class Xr{constructor(e){se(this,Qr);se(this,kn,new WeakMap);se(this,yi);se(this,lr);ve(this,lr,e)}observe(e,n){var i=P(this,kn).get(e)||new Set;return i.add(n),P(this,kn).set(e,i),Se(this,Qr,Ms).call(this).observe(e,P(this,lr)),()=>{var r=P(this,kn).get(e);r.delete(n),r.size===0&&(P(this,kn).delete(e),P(this,yi).unobserve(e))}}};kn=new WeakMap,yi=new WeakMap,lr=new WeakMap,Qr=new WeakSet,Ms=function(){return P(this,yi)??ve(this,yi,new ResizeObserver(e=>{for(var n of e){Xr.entries.set(n.target,n);for(var i of P(this,kn).get(n.target)||[])i(n)}}))},rt(Xr,"entries",new WeakMap);let $a=Xr;var Dd=new $a({box:"border-box"});function pt(t,e,n){var i=Dd.observe(t,()=>n(t[e]));ti(()=>(nn(()=>n(t[e])),i))}function xa(t,e){return t===e||(t==null?void 0:t[Jt])===e}function ze(t={},e,n,i){var r=Ae.r,a=pe;return ti(()=>{var s,o;return la(()=>{s=o,o=[],nn(()=>{xa(n(...o),t)||(e(t,...o),s&&xa(n(...s),t)&&e(null,...s))})}),()=>{let c=a;for(;c!==r&&c.parent!==null&&c.parent.f&Oa;)c=c.parent;const u=()=>{o&&xa(n(...o),t)&&e(null,...o)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Pi(t,e){Hu(window,["resize"],()=>ei(()=>e(window[t])))}function pl(t=!1){const e=Ae,n=e.l.u;if(!n)return;let i=()=>ys(e.s);if(t){let r=0,a={};const s=Ti(()=>{let o=!1;const c=e.s;for(const u in c)c[u]!==a[u]&&(a[u]=c[u],o=!0);return o&&r++,r});i=()=>l(s)}n.b.length&&Wu(()=>{to(e,i),Da(n.b)}),Fe(()=>{const r=nn(()=>n.m.map(Fc));return()=>{for(const a of r)typeof a=="function"&&a()}}),n.a.length&&Fe(()=>{to(e,i),Da(n.a)})}function to(t,e){if(t.l.s)for(const n of t.l.s)l(n);e()}const jd={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 Di(t,e,n){return new Proxy({props:t,exclude:e},jd)}const Rd={get(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(ai(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(t,e,n){let i=t.props.length;for(;i--;){let r=t.props[i];ai(r)&&(r=r());const a=Pn(r,e);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(ai(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const r=Pn(i,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Jt||e===Io)return!1;for(let n of t.props)if(ai(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(ai(n)&&(n=n()),!!n){for(const i in n)e.includes(i)||e.push(i);for(const i of Object.getOwnPropertySymbols(n))e.includes(i)||e.push(i)}return e}};function jn(...t){return new Proxy({props:t},Rd)}function C(t,e,n,i){var E;var r=!Li||(n&ru)!==0,a=(n&lu)!==0,s=(n&ou)!==0,o=i,c=!0,u=void 0,f=()=>s&&r?(u??(u=Ti(i)),l(u)):(c&&(c=!1,o=s?nn(i):i),o);let v;if(a){var d=Jt in t||Io in t;v=((E=Pn(t,e))==null?void 0:E.set)??(d&&e in t?x=>t[e]=x:void 0)}var _,m=!1;a?[_,m]=ku(()=>t[e]):_=t[e],_===void 0&&i!==void 0&&(_=f(),v&&(r&&Kc(),v(_)));var g;if(r?g=()=>{var x=t[e];return x===void 0?f():(c=!0,x)}:g=()=>{var x=t[e];return x!==void 0&&(o=void 0),x===void 0?o:x},r&&!(n&au))return g;if(v){var p=t.$$legacy;return function(x,R){return arguments.length>0?((!r||!R||p||m)&&v(R?g():x),x):g()}}var w=!1,b=(n&iu?Ti:ra)(()=>(w=!1,g()));a&&l(b);var T=pe;return function(x,R){if(arguments.length>0){const j=R?l(b):r&&a?Pe(x):x;return N(b,j),w=!0,o!==void 0&&(o=j),x}return dn&&w||T.f&xt?b.v:l(b)}}function ct(t){Ae===null&&ll(),Li&&Ae.l!==null?Od(Ae).m.push(t):Fe(()=>{const e=nn(t);if(typeof e=="function")return e})}function gr(t){Ae===null&&ll(),ct(()=>()=>nn(t))}function Od(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Nd="5";var So;typeof window<"u"&&((So=window.__svelte??(window.__svelte={})).v??(So.v=new Set)).add(Nd);function Nn(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Ds="https://www.playpilot.com",zd="https://partner-api.playpilot.tech/1.0",Fd="https://img-external.playpilot.tech",qd="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.36.3",Hd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Rn=600,Ta={};async function tn(t,{headers:e={},method:n="GET",body:i=null,baseUrl:r=zd}={}){const a=!oa()&&n==="GET";if(a&&t in Ta)return Ta[t];const s=n==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(r+t,{method:n,headers:new Headers({...s,...e}),body:i?JSON.stringify(i):null});if(!(o!=null&&o.ok))throw o;const c=await o.text();let u=c;try{c&&(u=JSON.parse(c))}catch{}return a&&(Ta[t]=u),u}const js="EncryptedToken",Rs="articleReplacementEditToken",Bd="playpilot-editorial-mode";async function Os({href:t=window.location.href,throwError:e=!1}={}){try{const n=Nn();if(!n)throw new Error("No token was provided");const i=Ns(t);if(!i)throw new Error("Could not be authenticated");return await tn(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),Vd(i),!0}catch(n){if(console.error(n),e)throw n}finally{Wd()}return!1}function Ns(t=""){var i,r;const e=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(e)return e;if(t){const a=new URL(t).searchParams.get(Rs);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${js}=`).pop())==null?void 0:r.split(";")[0])||""}function Vd(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=js+"="+t+";"+i+";path=/"}function oa(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Bd)==="true"||!!t}function Wd(){const t=new URL(window.location.href);t.searchParams.delete(Rs),window.history.replaceState({},"",t)}function Ud(t){let e=0;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);e=e*31+i>>>0}return e.toString(16)}function sa(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<t;)n+=e[Math.floor(Math.random()*e.length)];return n}const h={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function mr(){var i,r;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.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 n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(n){if(e.includes(n))return n;const a=e.find(s=>s.toLowerCase().startsWith(n+"-"));if(a)return a}return h.English}function zs(t,e=""){const n=[],i=[t];for(;i.length>0;){const r=i.pop();if(n.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 a=Array.from(r.childNodes).some(c=>{var u;return c.nodeType===Node.TEXT_NODE&&((u=c.nodeValue)==null?void 0:u.trim())!==""});if(a&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const s=r.tagName==="P"&&!!r.textContent;if(a||s){n.push(r);continue}const o=Array.from(r.children);for(let c=o.length-1;c>=0;c--)i.push(o[c])}return n}function _l(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const n=t.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function Fs(t){return t.map(e=>e.innerText).join(`
3
3
 
4
- `)}function Qi(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const n=_l(),i=zs(n,(t==null?void 0:t.exclude_elements_selector)||""),r=Fs(i);return{parentElement:n,elements:i,pageText:r}}function qs(){const t=_l();return{content_heading:Gd(t),content_modified_time:Zd(t),content_published_time:Kd(t)}}function Gd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Zd(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=Hs().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?wl(n):null}function Kd(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,n=Hs().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?wl(n):null}function wl(t){try{return new Date(t).toISOString()}catch{return null}}function Hs(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(n=>n.textContent.includes("dateModified")||n.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function Yn(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function Yd(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function Bs(t){return Object.entries(t).filter(([n,i])=>i!=null&&i!=="").map(([n,i])=>`${n}=${i}`).join("&")}function Jd(t){return!!(t.exclude_urls_pattern&&Yn().match(new RegExp(t.exclude_urls_pattern)))}let Ea=null;async function Bi({url:t=Yn(),params:e={},method:n="GET"}={}){const i=Nn(),r=oa()?await Os():!1,a=mr();if(!i)throw new Error("No token was provided");const s=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${r?"&editorial_mode_enabled=true":""}&language=${a}`;let o;if(n==="POST"){const{pageText:c}=Qi();e.run_ai&&(e.hash=Ud(c||""),e.page_text=c),e.url=t,e.metadata=qs(),o=await tn(s,{method:"POST",body:e})}else o=await tn(s+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=o,o}async function no({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:r=()=>null}={}){let a=0;Ea&&clearTimeout(Ea);const s=async(o,c)=>{let u;try{try{u=await Bi()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(u=await Bi({method:"POST"}),u.ai_enabled&&(u=await Bi({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:f}=Qi();if(u&&e&&(u=await Qd(f,u)),t&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=io(u.manual_injections||[]),u.ai_injections=io(u.ai_injections||[]),o(u);return}catch{if(a++,a>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),o();return}u&&r(u),Ea=setTimeout(()=>s(o),n)}};return new Promise(s)}async function Qd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const n=async()=>await Bi({params:{run_ai:!0},method:"POST"}),i=qs().content_modified_time,r=e.content_modified_time?wl(e.content_modified_time):null,a=i&&r===i;if(i&&e.ai_last_run&&e.ai_progress_message==="Failed"){const s=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(e.ai_last_run)<s)return await n()}return e.ai_last_run&&a||new Date(i||0)<=new Date(r||0)?e:await n()}function io(t){return t.map(e=>({...e,key:Xd(e.sid)}))}function Xd(t){return t+"-"+sa()}function $d(t,e,n){return t.filter(i=>n.every(r=>i[r]===e[r])).length}function ef(t,e){return e.some(n=>t>=n.start&&t<n.end)}function Vs(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function yl(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function ro(t,e,n=[]){var a,s;const i=document.createTreeWalker(e);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(t)&&!n.includes(((s=r.parentNode)==null?void 0:s.nodeName)||"")););return r}function ao(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function tf(t,e,n,i){const r=Vs(e),a=yl(e),s=t.slice(0,i),o=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,u=new RegExp(`${a.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),f=o.replace(u,n);return s+f}function nf(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function Gt(t){return yl(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function rf(t,e,n){const i=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!i||!t.textContent)return{before:"",after:""};const r=Math.max(i.innerText.indexOf(t.textContent),0),a=lo(i.innerText.slice(0,e+r)),s=i.innerText.slice(n+r),o=lo(oo(a,2)),c=oo(s,2);return{before:o,after:c}}function lo(t){return t.split("").reverse().join("")}function oo(t,e=1){const n=t.match(/[^\s]+/g);return n?n.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function Br(t,e){let n=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)n++,i+=e.length;return n}function af(t,e,n){const i=[];let r=0;for(;r<=t.length;){const a=e?t.indexOf(e,r):r;if(a===-1&&e)break;const s=e?a+e.length:a,o=n?t.indexOf(n,s):t.length;if(n&&o===-1)break;const c=t.slice(s,o);i.push({match:c,index:s}),r=n?o+n.length:t.length+1}return i}function lf(t,e,n,i){const a=af(t,n,i).filter(({match:o})=>yl(o).includes(e));return a.length?a.reduce((o,c)=>!o||c.match.length<o.match.length?c:o):null}function of(t){var e,n;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((n=t.match(/\s*$/))==null?void 0:n[0].length)||0}}function sf(t,e,n=0){const i=e.innerHTML,r=[],a=cf(e);let s=i.indexOf(t);for(;s!==-1;)ef(s,a)&&r.push(s),s=i.indexOf(t,s+t.length);return r[n]??-1}function cf(t){const e=[],n=t.innerHTML;let i=!1,r=!1,a=!1,s=0;for(let o=0;o<n.length;o++){const c=n[o];if(!r&&!i&&c==="<"){i=!0,a&&(e.push({start:s,end:o}),a=!1);continue}if(i&&c==='"'&&(r=!r),i&&!r&&c===">"){i=!1;continue}!i&&!r&&!a&&(s=o,a=!0)}return!e.length&&t.textContent.length&&e.push({start:s,end:t.innerHTML.length}),e}function uf(t,e){const n=[" ",".",",","<",">"];try{const i=n.map(o=>"\\"+o).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`([${i}])${r}([${i}])`),s=e.match(a);return s!=null&&s.index?s.index+1:-1}catch{return-1}}function Ws(t){return t.ctrlKey||t.metaKey||t.button!==0}const ce={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",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",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",InjectionPopoverView:"ali_injection_popover_view",InjectionPopoverClose:"ali_injection_popover_close",InjectionPopoverPlaylinkClick:"ali_injection_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",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",DisplayedAdVideoPercentage:"ali_display_ad_video_percentage",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",WidgetArticleRailTitleClick:"ali_widget_article_rail_title_click",ShareTitle:"ali_share_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",CardToExploreCta:"ali_card_to_explore_cta",TitleParticipantsView:"ali_title_participants_view",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Dt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Tn={Card:"tpi_card",Link:"tpi_link"};function df(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function zn(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Cr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const ca=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function ff(t=[]){return t.map(e=>{var n;return((n=ca.find(i=>i.slug===e))==null?void 0:n.name)||""}).filter(Boolean)}const Pa="playpilot_user_id",Ia="playpilot_session_id";function Us(){if(!bl())return null;try{const t=localStorage.getItem(Pa);return t||(localStorage.setItem(Pa,sa(16)),localStorage.getItem(Pa))}catch{return null}}function vf(){if(!bl())return null;try{const t=sessionStorage.getItem(Ia);return t||(sessionStorage.setItem(Ia,sa(16)),sessionStorage.getItem(Ia))}catch{return null}}function bl(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&zn("tracking")}const hf="https://insights.playpilot.net";async function ue(t,e=null,n={}){var r,a,s,o,c,u;if(Cr())return;if(!zn("tracking")){mf(t,e,n);return}if((((r=window.PlayPilotLinkInjections.tracked_events)==null?void 0:r.length)||0)>500)return;const i=new Headers({"Content-Type":"application/json"});e&&(n={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:ff(e.genres),providers:[...new Set(((a=e.providers)==null?void 0:a.map(f=>f.name))||[])],...n}),bl()&&(n.user_id=Us(),n.session_id=vf(),n.region=window.PlayPilotLinkInjections.region),n.version="8.36.2",n.time_since_initialize=(s=window.PlayPilotLinkInjections)!=null&&s.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,n.url=Yn(),n.url_params=Yd(),n.organization_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.organization_sid)||"undefined",n.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",n.device={type:window.innerWidth>Rn?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((u=screen.orientation)==null?void 0:u.type)||"undefined"},fetch(hf,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:n,source:"ali",keepalive:!0})}),gf({event:t,payload:n})}function gf(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function so({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function mf(t,e=null,n={}){var i;(i=window.PlayPilotLinkInjections).queued_tracking_events||(i.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:n})}function pf(){if(zn("tracking")){for(const{event:t,title:e,payload:n}of window.PlayPilotLinkInjections.queued_tracking_events||[])ue(t,e,n);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function Gs(){if(!zn("ads"))return[];if(window.PlayPilotLinkInjections.no_affiliate)return[];const t=Nn();if(!t)throw new Error("No token was provided");try{return await tn(`/ads/browse/?api-token=${t}`)}catch(e){throw ue(ce.AdsFetchFailed,null,{status:e.status}),e}}function Xn(t){var e;return!zn("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(n=>n.campaign_format===t)||null}function _f(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 wf={Argentina:"ar",Australia:"au",Austria:"at",Belgium:"be",Brazil:"br",Canada:"ca",Chile:"cl",Colombia:"co",Denmark:"dk",Finland:"fi",France:"fr",Germany:"de",India:"in",Ireland:"ie",Italy:"it",Mexico:"mx",Netherlands:"nl",Norway:"no",Peru:"pe",Poland:"pl",Portugal:"pt",Russia:"ru",Singapore:"sg",Spain:"es",Sweden:"se",Switzerland:"ch",UK:"uk",USA:"us"},Zs="playpilot_retargeting_user_id",Ks="playpilot_retargeting_region",yf=500,co=[];let Aa=[],Ca=null;function Yt(t,e={}){var c;const n=window[Zs]||null,i=window[Ks]||null,r=((c=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:c[1])||null,a=window.location.href,s={event:t,url:a,user_id:n,client_id:r,region:i,params:e},o=JSON.stringify(s);co.includes(o)||(Aa.push(s),co.push(o),Ca&&clearTimeout(Ca),Ca=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Aa)}),Aa=[]},yf))}function Ys(t,e={}){return()=>{Fe(()=>Yt(t,e))}}function bf(t,e={}){return n=>{const i=()=>Yt(t,e);Fe(()=>(n.addEventListener("click",i),()=>n.removeEventListener("click",i)))}}async function pr(t=5e3){var n,i,r,a;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.region;if(e)return e;try{const o=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(i=o==null?void 0:o.country)==null?void 0:i.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),kf(c),c}catch(s){return ue(ce.RegionRequestFailed,null,{message:s.message}),((a=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:a.fallback_region)||""}}async function Js(t=""){try{return t||(t=await pr()),!t||Object.values(wf).some(e=>e===t)}catch{return!0}}function kf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[Ks]=t)}async function ua(t={}){const e=Nn();if(!e)throw new Error("No token was provided");if(t={...t,language:mr(),include_count:!1},t.region!==null){let n=t.region||await pr();await Js(n)||(n="gl"),t.region=n}return await tn(`/titles/browse?api-token=${e}&`+Bs(t))}async function Qs(t){return(await ua({related_to_sid:t.sid})).results}async function Xs(t){const n=(await ua({sids:t,no_region_filter:!0})).results[0];if(!n)throw new Error("No title was returned for sid: "+t);return n}const Sf={"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"},"Show Less":{[h.English]:"Show less",[h.Swedish]:"Visa mindre",[h.Danish]:"Vis mindre"},"Read More":{[h.English]:"Read more",[h.Swedish]:"Läs mer",[h.Danish]:"Læs mere"},"Read Less":{[h.English]:"Read less",[h.Swedish]:"Läs mindre",[h.Danish]:"Læs mindre"},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 Subheading":{[h.English]:"Discover and search all movies and TV shows",[h.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[h.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[h.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[h.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[h.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"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"},"IMDb Rating":{[h.English]:"IMDb Rating",[h.Swedish]:"IMDb-betyg",[h.Danish]:"IMDb-vurdering"},"-popularity":{[h.English]:"Popularity",[h.Swedish]:"Popularitet",[h.Danish]:"Popularitet"},"-new":{[h.English]:"New",[h.Swedish]:"Nytt",[h.Danish]:"Nyt"},"-best":{[h.English]:"Top Rated",[h.Swedish]:"Toppbetyg",[h.Danish]:"Højst vurderet"},"-imdb_score":{[h.English]:"IMDb Rating",[h.Swedish]:"IMDb-betyg",[h.Danish]:"IMDb-vurdering"},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"},Home:{[h.English]:"Home",[h.Swedish]:"Hem",[h.Danish]:"Hjem"},Explore:{[h.English]:"Explore",[h.Swedish]:"Utforska",[h.Danish]:"Udforsk"},"Page Not Found":{[h.English]:"Page not found",[h.Swedish]:"Sidan hittades inte",[h.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[h.English]:"Mentioned in this article",[h.Swedish]:"Nämnda i den här artikeln",[h.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[h.English]:"Sorry, your region is not supported",[h.Swedish]:"Tyvärr stöds inte din region",[h.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[h.English]:"Show [[count]] more",[h.Swedish]:"Visa [[count]] till",[h.Danish]:"Vis [[count]] mere"},Movies:{[h.English]:"Movies",[h.Swedish]:"Filmer",[h.Danish]:"Film"},Shows:{[h.English]:"Shows",[h.Swedish]:"Serier",[h.Danish]:"Serier"},Documentaries:{[h.English]:"Documentaries",[h.Swedish]:"Dokumentärer",[h.Danish]:"Dokumentarer"},"List: Trending":{[h.English]:"Trending Movies & Shows",[h.Swedish]:"Trendande Titlar",[h.Danish]:"Populære film og serier"},"List: Upcoming":{[h.English]:"Upcoming Releases",[h.Swedish]:"Kommande Premiärer",[h.Danish]:"Mest ventede film"},"List: New":{[h.English]:"New Releases",[h.Swedish]:"Nya Filmer & Serier",[h.Danish]:"Nye film og serier"},"List: Demand":{[h.English]:"Always in Demand",[h.Swedish]:"Tidlösa Favoriter",[h.Danish]:"Tidløse favoritter"},"List: Cinema":{[h.English]:"Coming to Cinemas",[h.Swedish]:"Snart på Bio",[h.Danish]:"Kommende film"},"Explore All Movies And Shows":{[h.English]:"Explore all movies and TV shows",[h.Swedish]:"Utforska alla filmer och tv-serier",[h.Danish]:"Udforsk alle film og tv-serier"},"Job: all":{[h.English]:"All",[h.Swedish]:"Alla",[h.Danish]:"Alle"},"Job: actor":{[h.English]:"Actor",[h.Swedish]:"Skådespelare",[h.Danish]:"Skuespiller"},"Job: producer":{[h.English]:"Producer",[h.Swedish]:"Producent",[h.Danish]:"Producer"},"Job: executive-producer":{[h.English]:"Executive Producer",[h.Swedish]:"Verkställande producent",[h.Danish]:"Administrerende producer"},"Job: writer":{[h.English]:"Writer",[h.Swedish]:"Manusförfattare",[h.Danish]:"Manuskriptforfatter"},"Job: director":{[h.English]:"Director",[h.Swedish]:"Regissör",[h.Danish]:"Instruktør"},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 ee(t,e=mr()){var n;return((n=Sf[t])==null?void 0:n[e])||t}const xf=t=>t;function $s(t){const e=t-1;return e*e*e+1}function uo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function un(t,{delay:e=0,duration:n=400,easing:i=xf}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function Vi(t,{delay:e=0,duration:n=400,easing:i=$s,x:r=0,y:a=0,opacity:s=0}={}){const o=getComputedStyle(t),c=+o.opacity,u=o.transform==="none"?"":o.transform,f=c*(1-s),[v,d]=uo(r),[_,m]=uo(a);return{delay:e,duration:n,easing:i,css:(g,p)=>`
4
+ `)}function Qi(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const n=_l(),i=zs(n,(t==null?void 0:t.exclude_elements_selector)||""),r=Fs(i);return{parentElement:n,elements:i,pageText:r}}function qs(){const t=_l();return{content_heading:Gd(t),content_modified_time:Zd(t),content_published_time:Kd(t)}}function Gd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Zd(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=Hs().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?wl(n):null}function Kd(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,n=Hs().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?wl(n):null}function wl(t){try{return new Date(t).toISOString()}catch{return null}}function Hs(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(n=>n.textContent.includes("dateModified")||n.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function Yn(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function Yd(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function Bs(t){return Object.entries(t).filter(([n,i])=>i!=null&&i!=="").map(([n,i])=>`${n}=${i}`).join("&")}function Jd(t){return!!(t.exclude_urls_pattern&&Yn().match(new RegExp(t.exclude_urls_pattern)))}let Ea=null;async function Bi({url:t=Yn(),params:e={},method:n="GET"}={}){const i=Nn(),r=oa()?await Os():!1,a=mr();if(!i)throw new Error("No token was provided");const s=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${r?"&editorial_mode_enabled=true":""}&language=${a}`;let o;if(n==="POST"){const{pageText:c}=Qi();e.run_ai&&(e.hash=Ud(c||""),e.page_text=c),e.url=t,e.metadata=qs(),o=await tn(s,{method:"POST",body:e})}else o=await tn(s+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=o,o}async function no({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:r=()=>null}={}){let a=0;Ea&&clearTimeout(Ea);const s=async(o,c)=>{let u;try{try{u=await Bi()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(u=await Bi({method:"POST"}),u.ai_enabled&&(u=await Bi({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:f}=Qi();if(u&&e&&(u=await Qd(f,u)),t&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=io(u.manual_injections||[]),u.ai_injections=io(u.ai_injections||[]),o(u);return}catch{if(a++,a>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),o();return}u&&r(u),Ea=setTimeout(()=>s(o),n)}};return new Promise(s)}async function Qd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const n=async()=>await Bi({params:{run_ai:!0},method:"POST"}),i=qs().content_modified_time,r=e.content_modified_time?wl(e.content_modified_time):null,a=i&&r===i;if(i&&e.ai_last_run&&e.ai_progress_message==="Failed"){const s=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(e.ai_last_run)<s)return await n()}return e.ai_last_run&&a||new Date(i||0)<=new Date(r||0)?e:await n()}function io(t){return t.map(e=>({...e,key:Xd(e.sid)}))}function Xd(t){return t+"-"+sa()}function $d(t,e,n){return t.filter(i=>n.every(r=>i[r]===e[r])).length}function ef(t,e){return e.some(n=>t>=n.start&&t<n.end)}function Vs(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function yl(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function ro(t,e,n=[]){var a,s;const i=document.createTreeWalker(e);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(t)&&!n.includes(((s=r.parentNode)==null?void 0:s.nodeName)||"")););return r}function ao(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function tf(t,e,n,i){const r=Vs(e),a=yl(e),s=t.slice(0,i),o=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,u=new RegExp(`${a.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),f=o.replace(u,n);return s+f}function nf(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function Gt(t){return yl(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function rf(t,e,n){const i=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!i||!t.textContent)return{before:"",after:""};const r=Math.max(i.innerText.indexOf(t.textContent),0),a=lo(i.innerText.slice(0,e+r)),s=i.innerText.slice(n+r),o=lo(oo(a,2)),c=oo(s,2);return{before:o,after:c}}function lo(t){return t.split("").reverse().join("")}function oo(t,e=1){const n=t.match(/[^\s]+/g);return n?n.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function Br(t,e){let n=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)n++,i+=e.length;return n}function af(t,e,n){const i=[];let r=0;for(;r<=t.length;){const a=e?t.indexOf(e,r):r;if(a===-1&&e)break;const s=e?a+e.length:a,o=n?t.indexOf(n,s):t.length;if(n&&o===-1)break;const c=t.slice(s,o);i.push({match:c,index:s}),r=n?o+n.length:t.length+1}return i}function lf(t,e,n,i){const a=af(t,n,i).filter(({match:o})=>yl(o).includes(e));return a.length?a.reduce((o,c)=>!o||c.match.length<o.match.length?c:o):null}function of(t){var e,n;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((n=t.match(/\s*$/))==null?void 0:n[0].length)||0}}function sf(t,e,n=0){const i=e.innerHTML,r=[],a=cf(e);let s=i.indexOf(t);for(;s!==-1;)ef(s,a)&&r.push(s),s=i.indexOf(t,s+t.length);return r[n]??-1}function cf(t){const e=[],n=t.innerHTML;let i=!1,r=!1,a=!1,s=0;for(let o=0;o<n.length;o++){const c=n[o];if(!r&&!i&&c==="<"){i=!0,a&&(e.push({start:s,end:o}),a=!1);continue}if(i&&c==='"'&&(r=!r),i&&!r&&c===">"){i=!1;continue}!i&&!r&&!a&&(s=o,a=!0)}return!e.length&&t.textContent.length&&e.push({start:s,end:t.innerHTML.length}),e}function uf(t,e){const n=[" ",".",",","<",">"];try{const i=n.map(o=>"\\"+o).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`([${i}])${r}([${i}])`),s=e.match(a);return s!=null&&s.index?s.index+1:-1}catch{return-1}}function Ws(t){return t.ctrlKey||t.metaKey||t.button!==0}const ce={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",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",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",InjectionPopoverView:"ali_injection_popover_view",InjectionPopoverClose:"ali_injection_popover_close",InjectionPopoverPlaylinkClick:"ali_injection_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",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",DisplayedAdVideoPercentage:"ali_display_ad_video_percentage",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",WidgetArticleRailTitleClick:"ali_widget_article_rail_title_click",ShareTitle:"ali_share_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",CardToExploreCta:"ali_card_to_explore_cta",TitleParticipantsView:"ali_title_participants_view",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Dt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Tn={Card:"tpi_card",Link:"tpi_link"};function df(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function zn(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Cr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const ca=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function ff(t=[]){return t.map(e=>{var n;return((n=ca.find(i=>i.slug===e))==null?void 0:n.name)||""}).filter(Boolean)}const Pa="playpilot_user_id",Ia="playpilot_session_id";function Us(){if(!bl())return null;try{const t=localStorage.getItem(Pa);return t||(localStorage.setItem(Pa,sa(16)),localStorage.getItem(Pa))}catch{return null}}function vf(){if(!bl())return null;try{const t=sessionStorage.getItem(Ia);return t||(sessionStorage.setItem(Ia,sa(16)),sessionStorage.getItem(Ia))}catch{return null}}function bl(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&zn("tracking")}const hf="https://insights.playpilot.net";async function ue(t,e=null,n={}){var r,a,s,o,c,u;if(Cr())return;if(!zn("tracking")){mf(t,e,n);return}if((((r=window.PlayPilotLinkInjections.tracked_events)==null?void 0:r.length)||0)>500)return;const i=new Headers({"Content-Type":"application/json"});e&&(n={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:ff(e.genres),providers:[...new Set(((a=e.providers)==null?void 0:a.map(f=>f.name))||[])],...n}),bl()&&(n.user_id=Us(),n.session_id=vf(),n.region=window.PlayPilotLinkInjections.region),n.version="8.36.3",n.time_since_initialize=(s=window.PlayPilotLinkInjections)!=null&&s.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,n.url=Yn(),n.url_params=Yd(),n.organization_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.organization_sid)||"undefined",n.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",n.device={type:window.innerWidth>Rn?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((u=screen.orientation)==null?void 0:u.type)||"undefined"},fetch(hf,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:n,source:"ali",keepalive:!0})}),gf({event:t,payload:n})}function gf(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function so({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function mf(t,e=null,n={}){var i;(i=window.PlayPilotLinkInjections).queued_tracking_events||(i.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:n})}function pf(){if(zn("tracking")){for(const{event:t,title:e,payload:n}of window.PlayPilotLinkInjections.queued_tracking_events||[])ue(t,e,n);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function Gs(){if(!zn("ads"))return[];if(window.PlayPilotLinkInjections.no_affiliate)return[];const t=Nn();if(!t)throw new Error("No token was provided");try{return await tn(`/ads/browse/?api-token=${t}`)}catch(e){throw ue(ce.AdsFetchFailed,null,{status:e.status}),e}}function Xn(t){var e;return!zn("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(n=>n.campaign_format===t)||null}function _f(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 wf={Argentina:"ar",Australia:"au",Austria:"at",Belgium:"be",Brazil:"br",Canada:"ca",Chile:"cl",Colombia:"co",Denmark:"dk",Finland:"fi",France:"fr",Germany:"de",India:"in",Ireland:"ie",Italy:"it",Mexico:"mx",Netherlands:"nl",Norway:"no",Peru:"pe",Poland:"pl",Portugal:"pt",Russia:"ru",Singapore:"sg",Spain:"es",Sweden:"se",Switzerland:"ch",UK:"uk",USA:"us"},Zs="playpilot_retargeting_user_id",Ks="playpilot_retargeting_region",yf=500,co=[];let Aa=[],Ca=null;function Yt(t,e={}){var c;const n=window[Zs]||null,i=window[Ks]||null,r=((c=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:c[1])||null,a=window.location.href,s={event:t,url:a,user_id:n,client_id:r,region:i,params:e},o=JSON.stringify(s);co.includes(o)||(Aa.push(s),co.push(o),Ca&&clearTimeout(Ca),Ca=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Aa)}),Aa=[]},yf))}function Ys(t,e={}){return()=>{Fe(()=>Yt(t,e))}}function bf(t,e={}){return n=>{const i=()=>Yt(t,e);Fe(()=>(n.addEventListener("click",i),()=>n.removeEventListener("click",i)))}}async function pr(t=5e3){var n,i,r,a;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.region;if(e)return e;try{const o=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(i=o==null?void 0:o.country)==null?void 0:i.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),kf(c),c}catch(s){return ue(ce.RegionRequestFailed,null,{message:s.message}),((a=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:a.fallback_region)||""}}async function Js(t=""){try{return t||(t=await pr()),!t||Object.values(wf).some(e=>e===t)}catch{return!0}}function kf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[Ks]=t)}async function ua(t={}){const e=Nn();if(!e)throw new Error("No token was provided");if(t={...t,language:mr(),include_count:!1},t.region!==null){let n=t.region||await pr();await Js(n)||(n="gl"),t.region=n}return await tn(`/titles/browse?api-token=${e}&`+Bs(t))}async function Qs(t){return(await ua({related_to_sid:t.sid})).results}async function Xs(t){const n=(await ua({sids:t,no_region_filter:!0})).results[0];if(!n)throw new Error("No title was returned for sid: "+t);return n}const Sf={"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"},"Show Less":{[h.English]:"Show less",[h.Swedish]:"Visa mindre",[h.Danish]:"Vis mindre"},"Read More":{[h.English]:"Read more",[h.Swedish]:"Läs mer",[h.Danish]:"Læs mere"},"Read Less":{[h.English]:"Read less",[h.Swedish]:"Läs mindre",[h.Danish]:"Læs mindre"},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 Subheading":{[h.English]:"Discover and search all movies and TV shows",[h.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[h.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[h.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[h.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[h.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"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"},"IMDb Rating":{[h.English]:"IMDb Rating",[h.Swedish]:"IMDb-betyg",[h.Danish]:"IMDb-vurdering"},"-popularity":{[h.English]:"Popularity",[h.Swedish]:"Popularitet",[h.Danish]:"Popularitet"},"-new":{[h.English]:"New",[h.Swedish]:"Nytt",[h.Danish]:"Nyt"},"-best":{[h.English]:"Top Rated",[h.Swedish]:"Toppbetyg",[h.Danish]:"Højst vurderet"},"-imdb_score":{[h.English]:"IMDb Rating",[h.Swedish]:"IMDb-betyg",[h.Danish]:"IMDb-vurdering"},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"},Home:{[h.English]:"Home",[h.Swedish]:"Hem",[h.Danish]:"Hjem"},Explore:{[h.English]:"Explore",[h.Swedish]:"Utforska",[h.Danish]:"Udforsk"},"Page Not Found":{[h.English]:"Page not found",[h.Swedish]:"Sidan hittades inte",[h.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[h.English]:"Mentioned in this article",[h.Swedish]:"Nämnda i den här artikeln",[h.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[h.English]:"Sorry, your region is not supported",[h.Swedish]:"Tyvärr stöds inte din region",[h.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[h.English]:"Show [[count]] more",[h.Swedish]:"Visa [[count]] till",[h.Danish]:"Vis [[count]] mere"},Movies:{[h.English]:"Movies",[h.Swedish]:"Filmer",[h.Danish]:"Film"},Shows:{[h.English]:"Shows",[h.Swedish]:"Serier",[h.Danish]:"Serier"},Documentaries:{[h.English]:"Documentaries",[h.Swedish]:"Dokumentärer",[h.Danish]:"Dokumentarer"},"List: Trending":{[h.English]:"Trending Movies & Shows",[h.Swedish]:"Trendande Titlar",[h.Danish]:"Populære film og serier"},"List: Upcoming":{[h.English]:"Upcoming Releases",[h.Swedish]:"Kommande Premiärer",[h.Danish]:"Mest ventede film"},"List: New":{[h.English]:"New Releases",[h.Swedish]:"Nya Filmer & Serier",[h.Danish]:"Nye film og serier"},"List: Demand":{[h.English]:"Always in Demand",[h.Swedish]:"Tidlösa Favoriter",[h.Danish]:"Tidløse favoritter"},"List: Cinema":{[h.English]:"Coming to Cinemas",[h.Swedish]:"Snart på Bio",[h.Danish]:"Kommende film"},"Explore All Movies And Shows":{[h.English]:"Explore all movies and TV shows",[h.Swedish]:"Utforska alla filmer och tv-serier",[h.Danish]:"Udforsk alle film og tv-serier"},"Job: all":{[h.English]:"All",[h.Swedish]:"Alla",[h.Danish]:"Alle"},"Job: actor":{[h.English]:"Actor",[h.Swedish]:"Skådespelare",[h.Danish]:"Skuespiller"},"Job: producer":{[h.English]:"Producer",[h.Swedish]:"Producent",[h.Danish]:"Producer"},"Job: executive-producer":{[h.English]:"Executive Producer",[h.Swedish]:"Verkställande producent",[h.Danish]:"Administrerende producer"},"Job: writer":{[h.English]:"Writer",[h.Swedish]:"Manusförfattare",[h.Danish]:"Manuskriptforfatter"},"Job: director":{[h.English]:"Director",[h.Swedish]:"Regissör",[h.Danish]:"Instruktør"},"Job: cinematographer":{[h.English]:"Cinematographer",[h.Swedish]:"Filmfotograf",[h.Danish]:"Filmfotograf"},"Job: editor":{[h.English]:"Editor",[h.Swedish]:"Redaktör",[h.Danish]:"Redaktør"},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 ee(t,e=mr()){var n;return((n=Sf[t])==null?void 0:n[e])||t}const xf=t=>t;function $s(t){const e=t-1;return e*e*e+1}function uo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function un(t,{delay:e=0,duration:n=400,easing:i=xf}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function Vi(t,{delay:e=0,duration:n=400,easing:i=$s,x:r=0,y:a=0,opacity:s=0}={}){const o=getComputedStyle(t),c=+o.opacity,u=o.transform==="none"?"":o.transform,f=c*(1-s),[v,d]=uo(r),[_,m]=uo(a);return{delay:e,duration:n,easing:i,css:(g,p)=>`
5
5
  transform: ${u} translate(${(1-g)*v}${d}, ${(1-g)*_}${m});
6
6
  opacity: ${c-f*p}`}}function ji(t,{delay:e=0,duration:n=400,easing:i=$s,start:r=0,opacity:a=0}={}){const s=getComputedStyle(t),o=+s.opacity,c=s.transform==="none"?"":s.transform,u=1-r,f=o*(1-a);return{delay:e,duration:n,easing:i,css:(v,d)=>`
7
7
  transform: ${c} scale(${1-u*d});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "8.36.2",
3
+ "version": "8.36.3",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
@@ -408,6 +408,16 @@ export const translations = {
408
408
  [Language.Swedish]: 'Regissör',
409
409
  [Language.Danish]: 'Instruktør',
410
410
  },
411
+ 'Job: cinematographer': {
412
+ [Language.English]: 'Cinematographer',
413
+ [Language.Swedish]: 'Filmfotograf',
414
+ [Language.Danish]: 'Filmfotograf',
415
+ },
416
+ 'Job: editor': {
417
+ [Language.English]: 'Editor',
418
+ [Language.Swedish]: 'Redaktör',
419
+ [Language.Danish]: 'Redaktør',
420
+ },
411
421
 
412
422
  // Genres
413
423
  'All': {