@playpilot/tpi 8.23.5 → 8.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mount.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var i1=Object.defineProperty;var yc=Ae=>{throw TypeError(Ae)};var r1=(Ae,Me,He)=>Me in Ae?i1(Ae,Me,{enumerable:!0,configurable:!0,writable:!0,value:He}):Ae[Me]=He;var st=(Ae,Me,He)=>r1(Ae,typeof Me!="symbol"?Me+"":Me,He),Il=(Ae,Me,He)=>Me.has(Ae)||yc("Cannot "+He);var z=(Ae,Me,He)=>(Il(Ae,Me,"read from private field"),He?He.call(Ae):Me.get(Ae)),oe=(Ae,Me,He)=>Me.has(Ae)?yc("Cannot add the same private member more than once"):Me instanceof WeakSet?Me.add(Ae):Me.set(Ae,He),fe=(Ae,Me,He,fn)=>(Il(Ae,Me,"write to private field"),fn?fn.call(Ae,He):Me.set(Ae,He),He),be=(Ae,Me,He)=>(Il(Ae,Me,"access private method"),He);(function(){"use strict";var uc,xr,Li,Qi,kr,_r,Ji,Sr,vi,nn,bt,an,Mi,ti,ii,Er,Tr,Se,jl,vn,Al,bc,wc,ua,n1,Ll,Ar,jt,Cl,At,Xi,pt,Lt,ot,wt,fi,$i,Di,Pr,ln,on,hi,la,Ne,a1,l1,o1,Ml,va,fa,Dl,ql,vc,Ht,ri,xt,er,sn,cn,oa,qi,zr,dn,sa,xc,fc,Cr,Bt,Ri,da,Ir,kc,_c,pn,un;var Ae=document.createElement("style");Ae.textContent=`img.svelte-p6g2a{display:block;width:100%;height:auto;margin:0!important;color:transparent}.overlay.svelte-f0c4xl{z-index:2147483647;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;background:var(--playpilot-detail-backdrop, rgba(0, 0, 0, .95))}.overlay.svelte-f0c4xl iframe{z-index:1;position:relative;display:block;width:95vmin;height:auto;aspect-ratio:16/9;box-shadow:0 0 64px #ffffff26;background:#000}.backdrop.svelte-f0c4xl{z-index:0;position:fixed;top:0;right:0;bottom:0;left:0}.close.svelte-f0c4xl{-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1;position:fixed;top:32px;right:32px;padding:0;margin:0;border:0;background:transparent;color:#fff;cursor:pointer}.close.svelte-f0c4xl:hover{transform:scale(1.1)}.close.svelte-f0c4xl:active{transform:scale(1)}iframe.svelte-1ivh34t{z-index:-1;position:relative;width:100%;height:100%}.mute.svelte-1ivh34t{z-index:10;display:flex;align-items:center;justify-content:center;position:absolute;top:calc(8px + var(--mute-top, 0px));right:calc(8px + var(--mute-right, 0px));padding:4px;border:0;border-radius:50%;background:transparent;filter:drop-shadow(2px 2px 2px rgba(0,0,0,.5));transition:transform 50ms;cursor:pointer;color:#fff}.mute.svelte-1ivh34t:hover{outline:1px solid white;transform:scale(1.1)}.mute.svelte-1ivh34t:active{transform:scale(.95)}.slider.svelte-1gs8ha8{overflow-x:hidden;touch-action:pan-y}.slider.vertical.svelte-1gs8ha8{height:100%;overflow-y:hidden;touch-action:pan-x}@media (pointer: fine){.slider.passed-threshold.svelte-1gs8ha8{pointer-events:none}}.slider-content.svelte-1gs8ha8{display:flex;align-items:flex-start;width:fit-content;gap:var(--gap, 0);-webkit-user-select:none;user-select:none;transition:transform}@media (prefers-reduced-motion){.slider-content.svelte-1gs8ha8{transition:none}}.vertical.svelte-1gs8ha8>.slider-content:where(.svelte-1gs8ha8){flex-direction:column;justify-content:flex-start;align-items:center}.up.svelte-1m6nwwy{transform:rotate(270deg)}.right.svelte-1m6nwwy{margin-left:2px}.down.svelte-1m6nwwy{transform:rotate(90deg)}.left.svelte-1m6nwwy{margin-right:2px;transform:rotate(180deg)}.heading.svelte-1ayf7b5{margin:16px 0 8px;font-size:var(--playpilot-rail-title-font-size, 18px);line-height:normal;font-weight:var(--playpilot-rail-title-font-weight, inherit);color:var(--playpilot-rail-title-text-color, var(--playpilot-text-color));font-family:var(--playpilot-rail-title-font-family, var(--playpilot-font-family))}.rail.svelte-1ayf7b5{--gap: var(--rail-gap, 8px);position:relative;width:calc(100% + var(--rail-margin, 16px) * 2);margin:0 calc(var(--rail-margin, 16px) * -1)}.rail.svelte-1ayf7b5 .slider{padding:0 var(--rail-margin, 16px)}.rail.svelte-1ayf7b5 .slider-content>:last-child{margin-right:calc(var(--rail-margin, 16px) * 2)}.arrow.svelte-1ayf7b5{display:none;align-items:center;justify-content:center;position:absolute;left:32px;top:50%;width:32px;height:32px;padding:0;margin:0;border:var(--playpilot-rails-arrow-border, 0);border-radius:50%;transform:translate(-50%) translateY(-50%);background:var(--playpilot-rails-arrow-background, var(--playpilot-content-light));z-index:2;cursor:pointer;color:var(--playpilot-rails-arrow-color, var(--playpilot-text-color))}@media (hover: hover){.arrow.svelte-1ayf7b5{display:flex}}.arrow.svelte-1ayf7b5:hover{filter:brightness(1.2)}.arrow.right.svelte-1ayf7b5{left:auto;right:0}.titles.svelte-12ph9f6{--width: var(--playpilot-rail-size-default, 96px);--image-height: calc(var(--width) * 3 / 2);--expanded-width: var(--width);--border-radius: var(--playpilot-rail-border-radius, var(--playpilot-border-radius))}.titles.with-aside.svelte-12ph9f6{--rail-gap: 16px}.titles.large.svelte-12ph9f6{--width: var(--playpilot-rail-size-large, 120px)}.titles.huge.svelte-12ph9f6{--width: var(--playpilot-rail-size-large, min(var(--playpilot-explore-width, 1000px) * .65, 240px))}.titles.flexible.svelte-12ph9f6{--width: var(--playpilot-rail-size-flexible, clamp(128px, var(--playpilot-explore-width, 1000px) * .2, 184px));--expanded-width: calc(var(--image-height) / 9 * 16)}.title.svelte-12ph9f6{cursor:pointer;width:unset;font-size:var(--playpilot-rail-font-size, var(--playpilot-font-size-small));line-height:1.2}.title.svelte-12ph9f6:hover,.title.svelte-12ph9f6:active{filter:brightness(1.1)}.with-aside.svelte-12ph9f6 .title:where(.svelte-12ph9f6){display:grid;grid-template:"media heading" "media aside";grid-template-rows:1lh auto;grid-template-columns:1fr 1fr;align-items:flex-start;gap:4px 8px;width:calc(var(--width) * 2);height:var(--image-height);overflow:hidden;font-size:clamp(var(--playpilot-font-size-small),var(--playpilot-explore-width, 1000px) * .015,var(--playpilot-font-size-base))}.with-aside.svelte-12ph9f6 .title.expanded:where(.svelte-12ph9f6){width:calc(var(--expanded-width) + var(--width))}.media.svelte-12ph9f6{grid-area:media;width:var(--width);max-height:var(--image-height);border-radius:var(--border-radius);transition:width .2s;transition-delay:1ms;overflow:hidden}.expanded.svelte-12ph9f6 .media:where(.svelte-12ph9f6){width:var(--expanded-width);transition-delay:0ms}@keyframes svelte-12ph9f6-fade-iframe{to{opacity:1}}.video.svelte-12ph9f6{position:relative;height:var(--image-height);width:var(--expanded-width);aspect-ratio:16/9;border-radius:var(--border-radius);overflow:hidden;background:#000;z-index:1}.video.svelte-12ph9f6 iframe{opacity:0;animation:svelte-12ph9f6-fade-iframe .5s .5s forwards}@media (max-width: 599px){.video.svelte-12ph9f6 iframe{position:absolute;width:225%;top:50%;left:50%;transform:translate(-50%) translateY(-50%)}}.video.svelte-12ph9f6+.poster{position:absolute;top:0}.video-overlay.svelte-12ph9f6{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.video-fallback.svelte-12ph9f6{position:absolute;object-fit:cover;height:var(--image-height);width:var(--expanded-width)}.poster.svelte-12ph9f6{display:block;height:var(--image-height);width:var(--width);aspect-ratio:2/3;border-radius:var(--border-radius);background:var(--playpilot-detail-background-light, var(--playpilot-lighter));text-decoration:none;overflow:hidden}.heading.svelte-12ph9f6{grid-area:heading;display:-webkit-box;padding-top:8px;overflow:hidden;max-width:var(--width);text-decoration:none;color:var(--playpilot-rail-text-color, var(--playpilot-text-color-alt))!important;font-style:normal!important;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.with-aside.svelte-12ph9f6 .heading:where(.svelte-12ph9f6){width:100%;padding-top:0;color:var(--playpilot-text-color)!important;font-weight:var(--playpilot-rail-aside-heading-font-weight, var(--playpilot-font-bold));font-family:var(--playpilot-rail-aside-heading-font-family, var(--playpilot-font-family));line-clamp:1;-webkit-line-clamp:1}.aside.svelte-12ph9f6{grid-area:aside;display:-webkit-box;height:100%;-webkit-mask-image:linear-gradient(to top,transparent .5lh,white 1.5lh);mask-image:linear-gradient(to top,transparent .5lh,white 1.5lh);overflow:hidden;color:var(--playpilot-rail-text-color, var(--playpilot-text-color-alt))!important;font-family:var(--playpilot-rail-aside-font-family, var(--playpilot-font-family));font-size:.9em;line-height:1.3}.skeleton.svelte-12ph9f6{display:block;height:1em;width:100%;background:var(--playpilot-detail-background-light, var(--playpilot-lighter));border-radius:32px;color:transparent}.skeleton.svelte-12ph9f6:last-child{margin-top:4.8px;width:50%}.aside-skeleton.svelte-12ph9f6{display:flex;flex-direction:column;gap:4.8px;width:100%}.aside-skeleton.svelte-12ph9f6 .skeleton:where(.svelte-12ph9f6){margin:0}.rail.svelte-1b834ry{margin-top:var(--playpilot-explore-rail-spacing-mobile, 16px)}@media (min-width: 600px){.rail.svelte-1b834ry{margin-top:var(--playpilot-explore-rail-spacing-desktop, 32px)}}.button.svelte-5bqh67{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:100%;align-items:center;justify-content:center;gap:4px;padding:.25em .5em;background:transparent;border:var(--playpilot-button-border, 0);border-radius:var(--playpilot-button-border-radius, var(--playpilot-border-radius));color:var(--playpilot-button-text-color, var(--playpilot-text-color-alt));font-size:inherit;font-family:inherit;font-weight:var(--playpilot-button-font-weight, var(--playpilot-normal));cursor:pointer}.button.svelte-5bqh67 svg{--icon-size: 1.5em;width:var(--icon-size);height:var(--icon-size);opacity:.75}.button.svelte-5bqh67 svg:last-child{--icon-size: .85em}.filled.svelte-5bqh67{background:var(--playpilot-button-filled-background, var(--playpilot-content))}.filled.svelte-5bqh67:hover,.filled.svelte-5bqh67:active{background:var(--playpilot-button-filled-hover-background, var(--playpilot-content-light));color:var(--playpilot-button-filled-hover-text-color, var(--playpilot-text-color))}.filled.active.svelte-5bqh67{box-shadow:inset 0 0 0 1px currentColor}.border.svelte-5bqh67{box-shadow:inset 0 0 0 1px var(--playpilot-button-border-color, var(--playpilot-content-light))}.border.svelte-5bqh67:hover,.border.svelte-5bqh67:active,.border.active.svelte-5bqh67{background:var(--playpilot-button-hover-border-color, var(--playpilot-lighter));color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.border.active.svelte-5bqh67{box-shadow:inset 0 0 0 1px var(--playpilot-button-active-border-color, var(--playpilot-text-color-alt));filter:brightness(var(--playpilot-hover-filter-brightness))}.link.svelte-5bqh67{display:inline-flex;height:auto;padding:0;font-size:inherit;line-height:inherit}.link.svelte-5bqh67:hover,.link.svelte-5bqh67:active{color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.link.svelte-5bqh67 svg{width:.85em;height:.85em}.large.svelte-5bqh67{padding:.5em 1em}.wide.svelte-5bqh67{font-size:16px;padding:.5em 1.5em}.wide.svelte-5bqh67 svg:first-child{--icon-size: 15.2px}img.svelte-ico4xd{position:absolute;width:1px;height:1px;border:0;opacity:0}.playlink.svelte-1tx3tz8{display:inline-block;width:var(--size);height:var(--size);background:var(--playpilot-playlink-background, var(--playpilot-light));border-radius:var(--playpilot-playlink-border-radius, calc(var(--size) * .25));overflow:hidden}.playlink.svelte-1tx3tz8:hover,.playlink.svelte-1tx3tz8:active{filter:brightness(var(--playpilot-playlink-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-playlink-hover-background, var(--playpilot-lighter))!important;text-decoration:none!important;outline:2px solid var(--playpilot-detail-text-color, var(--playpilot-text-color))}.playlink.svelte-1tx3tz8 img:where(.svelte-1tx3tz8){display:block;margin:0;width:auto}.playlinks.svelte-1plv45z{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}.more.svelte-1plv45z{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;padding:0 2px;background:transparent;border:0;color:var(--playpilot-list-item-more-text-color, var(--playpilot-text-color-alt));font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));font-family:inherit;line-height:normal}.more.svelte-1plv45z:hover{cursor:pointer;color:var(--playpilot-text-color)}.empty.svelte-1plv45z{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:4px;opacity:.65;font-style:italic;font-size:.85em;white-space:initial;color:var(--playpilot-list-item-empty-text-color, var(--playpilot-text-color-alt))}.title.svelte-12igath{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;flex-direction:column;width:100%;background:transparent;padding:0;border:0;border-radius:var(--playpilot-grid-item-border-radius, var(--playpilot-border-radius));transition:transform .1s;text-decoration:none;font-style:normal!important;font-family:var(--playpilot-font-family);line-height:normal;cursor:pointer}.title.svelte-12igath:hover{filter:brightness(var(--playpilot-grid-item-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-grid-item-hover-background, var(--playpilot-lighter));box-shadow:var(--playpilot-grid-item-hover-shadow, 0 0 0 8px var(--playpilot-lighter));transform:scale(var(--playpilot-grid-item-hover-scale, 1.025));z-index:1}.poster.svelte-12igath{position:relative;width:100%;height:auto;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));overflow:hidden}.content.svelte-12igath{padding-top:8px}.heading.svelte-12igath{margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:inherit;text-align:left;font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;color:var(--playpilot-grid-item-title-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-grid-item-title-font-weight, var(--playpilot-font-bold))}.title.svelte-12igath:hover .heading:where(.svelte-12igath){color:var(--playpilot-grid-item-title-hover-text-color, var(--playpilot-text-color));text-decoration:var(--playpilot-grid-item-title-hover-text-decoration, var(--playpilot-none))}.meta.svelte-12igath{display:flex;justify-content:space-between;position:absolute;top:0;left:0;width:100%;padding:8px 8px 16px;background:linear-gradient(to bottom,rgba(0,0,0,.75),transparent);color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.5),0 1px 2px rgba(0,0,0,.25)}.meta.svelte-12igath svg{filter:drop-shadow(0 1px 0 rgba(0,0,0,.35))}.imdb.svelte-12igath{display:flex;align-items:center;gap:4px}.skeleton.svelte-1uz2nzg{width:100%}.poster.svelte-1uz2nzg{flex:0 0 auto;height:auto;width:100%;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-content)}.lines.svelte-1uz2nzg{display:flex;flex-direction:column;margin-top:8px;gap:8px;width:100%}.line.svelte-1uz2nzg{height:var(--playpilot-font-size-base);background:var(--playpilot-content);border-radius:5rem}.title.svelte-pkkpyl{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;width:100%;background:var(--playpilot-list-item-background, var(--playpilot-lighter));padding:var(--playpilot-list-item-padding, 8px);border:0;border-radius:var(--playpilot-list-item-border-radius, var(--playpilot-border-radius));text-decoration:none;font-style:normal!important;font-family:var(--playpilot-font-family);line-height:normal;cursor:pointer}.title.svelte-pkkpyl:hover{filter:brightness(var(--playpilot-list-item-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-list-item-hover-background, var(--playpilot-lighter));box-shadow:var(--playpilot-list-item-hover-shadow, var(--playpilot-none))}.poster.svelte-pkkpyl{flex:0 0 auto;height:auto;align-self:start;width:66px;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));overflow:hidden}.compact.svelte-pkkpyl .poster:where(.svelte-pkkpyl){width:56px}.content.svelte-pkkpyl{padding-left:16px;font-family:inherit;text-align:left;color:var(--playpilot-list-item-text-color, var(--playpilot-text-color));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal}@media (min-width: 600px){.content.svelte-pkkpyl{padding-right:16px}}.compact.svelte-pkkpyl .content:where(.svelte-pkkpyl){padding-left:12px;padding-right:0}.heading.svelte-pkkpyl{color:var(--playpilot-list-item-title-text-color, var(--playpilot-text-color));font-weight:var(--playpilot-list-item-title-font-weight, var(--playpilot-font-bold));line-height:1.2}.meta.svelte-pkkpyl{display:flex;flex-wrap:wrap;gap:0 8px;margin:2px 0;font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));font-weight:var(--playpilot-list-item-meta-font-weight, var(--playpilot-font-bold));color:var(--playpilot-list-item-meta-text-color, var(--playpilot-text-color-alt))}.meta.svelte-pkkpyl>div:where(.svelte-pkkpyl){text-transform:capitalize}.compact.svelte-pkkpyl .meta:where(.svelte-pkkpyl){margin:2px 0 4px}.imdb.svelte-pkkpyl{display:flex;align-items:center;gap:4px}.description.svelte-pkkpyl{margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));color:var(--playpilot-list-item-description-text-color, var(--playpilot-text-color))}.description.large.svelte-pkkpyl{line-clamp:2;-webkit-line-clamp:2}.action.svelte-pkkpyl{display:flex;margin:0 8px 0 auto;padding-left:8px;align-self:center;color:var(--playpilot-list-item-action-color, var(--playpilot-text-color-alt))}.action.svelte-pkkpyl:hover,.action.svelte-pkkpyl:active{color:var(--playpilot-list-item-action-hover-color, var(--playpilot-text-color))}.compact.svelte-pkkpyl .action:where(.svelte-pkkpyl){display:none}.skeleton.svelte-17sb7p8{display:flex;align-items:center;width:100%;gap:16px}.poster.svelte-17sb7p8{flex:0 0 auto;height:auto;align-self:start;width:66px;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-content)}.lines.svelte-17sb7p8{display:flex;flex-direction:column;gap:8px;width:100%}.line.svelte-17sb7p8{width:60%;height:var(--playpilot-font-size-base);background:var(--playpilot-content);border-radius:5rem}p.svelte-4bt48{margin:0}strong.svelte-4bt48{font-size:var(--playpilot-font-size-large)}.empty.svelte-4bt48{max-width:var(--playpilot-explore-header-max-width, 600px);padding:32px;border-radius:var(--playpilot-border-radius-large);background:var(--playpilot-lighter)}.titles.svelte-qc99of{--playpilot-list-item-padding: 0;--playpilot-list-item-background: transparent;--playpilot-list-item-hover-shadow: 0 0 0 4px var(--playpilot-lighter);--playpilot-detail-image-background: var(--playpilot-content);display:flex;flex-direction:column;gap:8px;margin-top:24px}.titles.grid.svelte-qc99of{display:grid;grid-template-columns:repeat(var(--grid-columns),minmax(120px,1fr));gap:16px}.show-more.svelte-qc99of{flex:0 0 100%;display:grid;margin-top:16px}.show-more.grid.svelte-qc99of{margin:32px auto 0;max-width:600px;width:100%}.search.svelte-1pnrmr6{position:relative}.icon.svelte-1pnrmr6{display:flex;align-items:center;position:absolute;height:100%;left:16px;color:var(--playpilot-text-color-alt);opacity:.75}.input.svelte-1pnrmr6{width:100%;max-width:var(--playpilot-explore-header-max-width, 600px);padding:12px 16px 12px 48px;border:var(--playpilot-explore-search-border, 0);border-radius:var(--playpilot-exlore-search-border-radius, var(--playpilot-border-radius));background:var(--playpilot-explore-search-background, var(--playpilot-content));transition:none;color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-large);font-family:var(--playpilot-font-family)}.input.svelte-1pnrmr6:focus{outline:var(--playpilot-explore-search-focus-outline, 1px solid white);outline-offset:0}.input.svelte-1pnrmr6::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.header.svelte-dfwzqz{padding:12px}.input.svelte-dfwzqz{width:100%;padding:12px 16px;border:0;border-radius:var(--playpilot-border-radius);background:var(--playpilot-content-light);color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-base);font-family:var(--playpilot-font-family)}.input.svelte-dfwzqz:focus{outline:1px solid white}.input.svelte-dfwzqz::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.option.svelte-dfwzqz{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px;border:0;border-top:1px solid var(--playpilot-content-light);background:var(--playpilot-content);color:var(--playpilot-text-color-alt);font-family:inherit;text-align:left;cursor:pointer}.option.svelte-dfwzqz:hover,.option.active.svelte-dfwzqz{color:var(--playpilot-text-color);filter:brightness(var(--playpilot-hover-filter-brightness))}.action.svelte-dfwzqz{flex:0 0 1lh;position:relative;width:1lh;height:1lh;font-size:1.25em}.icon.svelte-dfwzqz{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border:1px solid var(--playpilot-content-light);border-radius:50%}.active.svelte-dfwzqz .icon:where(.svelte-dfwzqz){color:var(--playpilot-green);border-color:var(--playpilot-green)}.dropdown.svelte-fg0dzp{position:relative}.content.svelte-fg0dzp{z-index:10;position:absolute;top:44px;right:var(--offset, 0px);max-height:var(--max-height, 60vh);border-radius:var(--playpilot-border-radius);box-shadow:var(--playpilot-shadow-large);transform-origin:top right;background:var(--playpilot-content);overflow-y:auto;overflow-x:hidden;scrollbar-color:var(--playpilot-content-light) transparent;scrollbar-width:thin}.content.svelte-fg0dzp::-webkit-scrollbar{width:12px}.content.svelte-fg0dzp::-webkit-scrollbar-track{background:var(--playpilot-light)}.content.svelte-fg0dzp::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:transparent}.content.svelte-fg0dzp::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.content.svelte-fg0dzp::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}.left.svelte-fg0dzp .content:where(.svelte-fg0dzp){right:auto;left:var(--offset, 0px);transform-origin:top left}.slider.svelte-1mfj6k7{display:flex;flex-direction:column;width:100%;height:104px;padding:16px}.range.svelte-1mfj6k7{position:relative;padding-top:8px}.label.svelte-1mfj6k7{color:var(--playpilot-text-color);font-weight:var(--playpilot-font-weight-bold);font-size:var(--playpilot-font-size-base)}input[type=range].svelte-1mfj6k7{box-sizing:border-box;-moz-appearance:none;appearance:none;-webkit-appearance:none;position:absolute;width:100%;height:16px;margin:0;padding:1px 0;overflow:hidden;border:0;border-radius:1px;outline:none;background:linear-gradient(var(--playpilot-content-light),var(--playpilot-content-light)) no-repeat center;background-size:100% 1px;pointer-events:none}input[type=range].svelte-1mfj6k7:nth-child(2){background:none}input[type=range].active.svelte-1mfj6k7::-webkit-slider-thumb{background-color:var(--playpilot-text-color-alt)}input[type=range].active.svelte-1mfj6k7::-moz-range-thumb{background-color:var(--playpilot-text-color-alt)}input[type=range].svelte-1mfj6k7::-webkit-slider-thumb{-webkit-appearance:none;z-index:2;position:relative;width:16px;height:16px;margin:4px 0;border:0;border-radius:50%;background:var(--playpilot-text-color-alt);cursor:pointer;pointer-events:all;transition:transform .1s,border-radius .1s,width .1s}input[type=range].svelte-1mfj6k7::-moz-range-thumb{-webkit-appearance:none;z-index:2;position:relative;width:16px;height:16px;margin:4px 0;border:0;border-radius:50%;background:var(--playpilot-text-color-alt);cursor:pointer;pointer-events:all;transition:transform .1s,border-radius .1s,width .1s}.halved.svelte-1mfj6k7 input[type=range]:where(.svelte-1mfj6k7)::-webkit-slider-thumb{width:8px;transform:translate(-45%);border-radius:8px .15rem .15rem 8px}.halved.svelte-1mfj6k7 input[type=range]:where(.svelte-1mfj6k7)::-moz-range-thumb{width:8px;transform:translate(-45%);border-radius:8px .15rem .15rem 8px}.halved.svelte-1mfj6k7 input[type=range]:where(.svelte-1mfj6k7):nth-child(2)::-webkit-slider-thumb{transform:translate(45%);border-radius:.15rem 8px 8px .15rem}.halved.svelte-1mfj6k7 input[type=range]:where(.svelte-1mfj6k7):nth-child(2)::-moz-range-thumb{transform:translate(45%);border-radius:.15rem 8px 8px .15rem}input[type=range].svelte-1mfj6k7::-webkit-slider-thumb:before{display:block;position:absolute;top:12px;left:100%;width:100%;height:2px;content:" "}input[type=range].svelte-1mfj6k7::-moz-range-thumb:before{display:block;position:absolute;top:12px;left:100%;width:100%;height:2px;content:" "}.active-line.svelte-1mfj6k7{z-index:0;position:absolute;top:auto;bottom:auto;left:0;width:var(--width, 100%);height:1px;transform:translateY(calc(16px / 2 - var(--range-fill-height, 1px) / 2));background:var(--playpilot-text-color-alt);pointer-events:none}.halved.svelte-1mfj6k7 .active-line:where(.svelte-1mfj6k7){width:calc(var(--width, 100%) + 16px/2)}.value-marker.svelte-1mfj6k7{position:absolute;bottom:-44px;color:var(--playpilot-text-color-alt);font-weight:400;font-size:var(--playpilot-font-size-small)}.value-marker.right.svelte-1mfj6k7{right:0;text-align:right}.filter-item.active.svelte-er0ukh .dropdown>button{box-shadow:inset 0 0 0 1px var(--playpilot-green)}.content.svelte-er0ukh{width:240px}.content.svelte-1ibt2k4{width:112px}.option.svelte-1ibt2k4{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:12px 16px;width:100%;border:0;background:transparent;text-align:left;font-family:inherit;font-size:inherit;color:var(--playpilot-text-color-alt);cursor:pointer}.option.svelte-1ibt2k4:hover,.option.active.svelte-1ibt2k4{color:var(--playpilot-text-color);background:var(--playpilot-content-light)}.active-filter.svelte-cwy6fi{display:flex;gap:4px}.item.svelte-cwy6fi{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;gap:8px;padding:2.4px 8px;border:1px solid var(--playpilot-content);border-radius:var(--playpilot-border-radius-large);background:var(--playpilot-lighter);color:var(--playpilot-text-color-alt);font-family:inherit;font-size:var(--playpilot-font-size-small);cursor:pointer}.item.svelte-cwy6fi:hover{border-color:var(--playpilot-content-light);color:var(--playpilot-text-color)}.filter.svelte-11dg01g{position:relative}.items.svelte-11dg01g{display:flex;flex-wrap:wrap;gap:8px;padding-right:112px}.limit.svelte-11dg01g .items:where(.svelte-11dg01g){padding-right:0}.actions.svelte-11dg01g{position:absolute;top:4px;right:0}.limit.svelte-11dg01g .actions:where(.svelte-11dg01g){position:initial;top:auto;display:flex;justify-content:space-between;margin-top:8px}.sorting.svelte-11dg01g{margin-top:1.6px}.explore.svelte-l2apr8{background:var(--playpilot-explore-background, var(--playpilot-light));border-radius:var(--playpilot-border-radius-large);max-width:var(--playpilot-explore-max-width, 1200px);min-height:75vh;margin:0 auto;padding:var(--playpilot-explore-padding, 16px 16px 96px);overflow:auto;font-family:var(--playpilot-font-family);font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));scrollbar-color:var(--playpilot-content-light) transparent;scrollbar-width:thin}.explore.svelte-l2apr8::-webkit-scrollbar{width:12px}.explore.svelte-l2apr8::-webkit-scrollbar-track{background:var(--playpilot-light)}.explore.svelte-l2apr8::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:transparent}.explore.svelte-l2apr8::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.explore.svelte-l2apr8::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}.explore.svelte-l2apr8 *{box-sizing:border-box}.header.svelte-l2apr8{display:flex;flex-direction:column;gap:8px;margin:var(--playpilot-explore-header-margin, 0 0 16px);width:100%}.divider.svelte-l2apr8{width:100%;height:var(--playpilot-explore-divider-height, 0);max-width:var(--playpilot-explore-header-max-width, 600px);background:var(--playpilot-explore-divider-background, var(--playpilot-text-color))}.heading.svelte-l2apr8,.subheading.svelte-l2apr8{color:var(--playpilot-text-color);font-size:var(--playpilot-explore-heading-font-size, clamp(24px, 5vw, 32px));font-weight:var(--playpilot-explore-heading-font-weight, var(--playpilot-font-bold));text-transform:var(--playpilot-explore-heading-text-transform, var(--playpilot-normal));line-height:var(--playpilot-explore-heading-line-height, 1.5)}.subheading.svelte-l2apr8{margin-top:8px;max-width:240px;font-size:var(--playpilot-explore-subheading-font-size, clamp(16px, 2.5vw, 20px))}@media (min-width: 600px){.subheading.svelte-l2apr8{max-width:100%}}.disclaimer.svelte-l2apr8{margin:var(--playpilot-explore-disclaimer-margin, 0);font-size:var(--playpilot-explore-diclaimer-font-size, var(--playpilot-font-size-small));color:var(--playpilot-explore-disclaimer-color, var(--playpilot-text-color-alt));opacity:.75}.disclaimer.svelte-l2apr8 a{color:inherit;font-style:inherit}.description.svelte-l2apr8{max-width:var(--playpilot-explore-header-max-width, 600px);margin:0;color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-base);line-height:1.35}.filter.svelte-l2apr8{display:flex;flex-direction:column;gap:8px;width:100%;margin:8px 0 24px}.unsupported-region.svelte-l2apr8{position:relative;padding:8px 16px;margin:8px 0;background:var(--playpilot-warning);border:1px solid black;border-radius:var(--playpilot-border-radius);font-weight:var(--playpilot-font-bold);color:#000}.disclaimer.svelte-1ldthr7{display:flex;align-items:center;justify-content:center;border:var(--playpilot-disclaimer-border, 2px solid rgba(255, 255, 255, .5));padding:4px;height:20px;width:20px;border-radius:99px;color:var(--playpilot-disclaimer-text-color, var(--playpilot-text-color-alt));font-weight:700;line-height:1}.disclaimer.svelte-1ldthr7:hover{border-color:var(--playpilot-disclaimer-hover-border-color, var(--playpilot-text-color));color:var(--playpilot-disclaimer-hover-text-color, var(--playpilot-text-color))}.disclaimer.small.svelte-1ldthr7{height:16px;width:16px}.tooltip.svelte-1ldthr7{z-index:2;position:absolute;right:0;bottom:0;padding:4px;background:transparent;border:0;color:var(--playpilot-disclaimer-tooltip-text-color, var(--playpilot-text-color));cursor:pointer}.tooltip-content.svelte-1ldthr7{display:block;z-index:20;position:absolute;right:100%;bottom:4px;width:calc(var(--width, 15rem) * .8);padding:8px;border-radius:8px;background:var(--playpilot-disclaimer-tooltip-background, var(--playpilot-content));box-shadow:var(--playpilot-shadow);font-size:12px;line-height:1.1;text-align:right;white-space:normal}@keyframes svelte-13ka2ap-sheen{0%,20%,60%,80.01%,to{background-position:-100% 0}80%{background-position:100% 0}}img.svelte-13ka2ap{height:36px;width:36px;border-radius:var(--playpilot-playlink-image-border-radius, var(--playpilot-border-radius));background:#00000040}.playlink.svelte-13ka2ap{display:block;position:relative;background:var(--playpilot-playlink-background, var(--playpilot-lighter));box-shadow:var(--playpilot-playlink-shadow, var(--playpilot-shadow));border:var(--playpilot-playlink-border, 0);border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));color:var(--playpilot-playlink-text-color, var(--playpilot-text-color))!important;font-weight:var(--playpilot-playlink-font-weight, inherit);font-style:var(--playpilot-playlink-font-style, var(--playpilot-normal))!important;text-decoration:none!important;white-space:nowrap;font-size:var(--playpilot-playlinks-font-size, 12px);line-height:1}.playlink.svelte-13ka2ap:not(span):hover,.playlink.svelte-13ka2ap:not(span):active{filter:brightness(var(--playpilot-playlink-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-playlink-hover-background, var(--playpilot-lighter))!important;text-decoration:none!important}.playlink.highlighted.svelte-13ka2ap{grid-column:span 2}.playlink.highlighted.svelte-13ka2ap:before{content:"";z-index:1;display:block;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:linear-gradient(to left,currentColor 20%,transparent 50%,currentColor 80%);background-size:200% 100%;background-position:-100% 0;opacity:.35;pointer-events:none}@media (prefers-reduced-motion: no-preference){.playlink.highlighted.svelte-13ka2ap:before{animation:svelte-13ka2ap-sheen 4s ease-in-out infinite}}.playlink.highlighted.svelte-13ka2ap:after{content:"";z-index:2;display:block;position:absolute;top:2px;right:2px;bottom:2px;left:2px;border-radius:inherit;background:var(--playpilot-playlink-background, var(--playpilot-lighter))}.playlink.svelte-13ka2ap img:where(.svelte-13ka2ap){grid-area:image;margin:0}.playlink-content.svelte-13ka2ap{position:relative;z-index:5;display:grid;grid-template-areas:"image name action" "image category action";grid-template-columns:36px auto var(--action-width, 96px);align-items:center;gap:0 12px;padding:12px}.highlighted.svelte-13ka2ap .playlink-content:where(.svelte-13ka2ap){grid-template-areas:"image name action" "image category action" "image cta action";gap:4px 12px}.no-category.svelte-13ka2ap .playlink-content:where(.svelte-13ka2ap){grid-template-areas:"image name action" "image cta action"}.no-subtext.svelte-13ka2ap .playlink-content:where(.svelte-13ka2ap){grid-template-areas:"image name action"}.name.svelte-13ka2ap{grid-area:name;width:100%;overflow:hidden;font-weight:var(--playpilot-playlink-font-weight, 500);font-family:var(--playpilot-playlink-font-family, inherit);text-overflow:ellipsis;white-space:nowrap}.category.svelte-13ka2ap{grid-area:category;width:100%;font-size:var(--playpilot-playlinks-category-font-size, 10px);color:var(--playpilot-playlink-category-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-playlink-category-font-weight, inherit);font-family:var(--playpilot-playlink-category-font-family, inherit)}.cta.svelte-13ka2ap{grid-area:cta;width:100%;font-size:var(--playpilot-playlinks-cta-font-size, 10px);color:var(--playpilot-playlink-cta-text-color, var(--playpilot-text-color));font-weight:var(--playpilot-playlink-cta-font-weight, inherit);font-family:var(--playpilot-playlink-cta-font-family, inherit);white-space:normal;line-height:1.2}.action.svelte-13ka2ap{grid-area:action;margin-left:auto;padding:8px;border:var(--playpilot-playlinks-action-border, 1px solid currentColor);border-radius:var(--playpilot-playlinks-action-border-radius, 32px);font-weight:var(--playpilot-playlinks-action-font-weight, 500);color:var(--playpilot-playlinks-action-text-color, var(--playpilot-text-color))}.highlighted.svelte-13ka2ap .action:where(.svelte-13ka2ap){border:0;background:var(--playpilot-playlinks-action-background-color, white);color:var(--playpilot-playlinks-action-text-color, black)}.disclaimer.svelte-1v1053{margin:var(--playpilot-playlinks-disclaimer-margin, 8px) 0;opacity:var(--playpilot-playlinks-disclaimer-opacity, .65);color:var(--playpilot-playlinks-disclaimer-text-color, var(--playpilot-text-color-alt));font-size:var(--playpilot-playlinks-disclaimer-font-size, 10px);font-style:var(--playpilot-playlinks-disclaimer-font-style, var(--playpilot-normal))}.disclaimer.svelte-1v1053 a:where(.svelte-1v1053){color:inherit;font-size:inherit;font-style:inherit}.disclaimer.svelte-1v1053 a:where(.svelte-1v1053):hover{color:var(--playpilot-playlinks-disclaimer-text-color-hover, var(--playpilot-text-color))}.empty.svelte-1v1053{padding:12px;margin-top:8px;background:var(--playpilot-playlink-background, var(--playpilot-lighter));box-shadow:var(--playpilot-playlink-shadow, var(--playpilot-shadow));border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));white-space:initial;line-height:1.35}.heading.svelte-1fykz2q{margin:0;color:var(--playpilot-playlinks-title-color, var(--playpilot-text-color-alt));font-family:var(--playpilot-playlinks-title-font-family, inherit);font-weight:var(--playpilot-playlinks-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-playlinks-title-font-size, var(--playpilot-font-size-base));line-height:normal}.category.svelte-1fykz2q{margin:8px 0 4px;font-size:var(--playpilot-playlinks-category-font-size, var(--playpilot-font-size-small))}.playlinks.svelte-1fykz2q{box-sizing:border-box;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px;max-width:var(--playpilot-playlinks-max-width, 100%)}.playlinks.list.svelte-1fykz2q{grid-template-columns:1fr}.playlinks.list.svelte-1fykz2q .playlink.highlighted{grid-column:span 1}.show-more.svelte-1fykz2q{margin-top:8px}.description.svelte-7itcht:first-child{margin:-16px 0 16px;max-width:var(--playpilot-description-max-width, 100%);max-height:var(--playpilot-description-max-height, 100vh);overflow:auto}.paragraph.svelte-7itcht{display:block;margin:16px 0 0;font-family:var(--playpilot-description-font-family, var(--playpilot-font-family))}.toggle.svelte-7itcht{display:inline;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;background:transparent;border:0;color:var(--playpilot-read-more-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-read-more-font-weight, inherit);font-family:inherit;font-size:inherit}.toggle.svelte-7itcht:hover{text-decoration:underline;text-decoration-thickness:2px;cursor:pointer}.participant.svelte-zy7e3f{display:flex;flex-direction:column;flex:0 0 10rem;width:10rem;min-height:54px;padding:8px;border:var(--playpilot-cast-border, 0);border-radius:var(--playpilot-cast-border-radius, var(--playpilot-border-radius));background:var(--playpilot-cast-background, var(--playpilot-lighter));cursor:pointer;font-family:inherit;text-align:left;color:inherit;font-size:var(--playpilot-cast-font-size, var(--playpilot-font-size-small));line-height:normal;white-space:nowrap}.participant.svelte-zy7e3f:is(button:where(.svelte-zy7e3f)):hover,.participant.svelte-zy7e3f:is(button:where(.svelte-zy7e3f)):active{filter:brightness(var(--playpilot-cast-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));text-decoration:none!important}.character.svelte-zy7e3f{color:var(--playpilot-cast-character-text-color, var(--playpilot-text-color-alt));font-style:italic}.truncate.svelte-zy7e3f{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.svelte-827qd7{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:4px;background:transparent;color:var(--playpilot-text-color-alt)}button.svelte-827qd7:hover{cursor:pointer;color:var(--playpilot-text-color)}.context-menu.svelte-827qd7{position:relative}.content.svelte-827qd7{z-index:10;position:absolute;bottom:calc(100% + 8px);right:0;max-width:240px;border-radius:var(--playpilot-context-menu-border-radius, 8px);background:var(--playpilot-detail-background, var(--playpilot-lighter));box-shadow:var(--playpilot-shadow)}.center.svelte-827qd7 .content:where(.svelte-827qd7){right:auto;left:50%;transform:translate(-50%)}.content.svelte-827qd7:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--playpilot-context-menu-border-radius, 8px);background:var(--playpilot-context-menu-background-lightness, rgba(255, 255, 255, .05));pointer-events:none}.item.svelte-npfy12{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;gap:8px;border:0;padding:12px 16px;width:100%;border-bottom:1px solid var(--playpilot-context-menu-border, rgba(255, 255, 255, .1));background:transparent;white-space:nowrap;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:inherit;font-weight:400;text-align:left}.item.svelte-npfy12:hover{background:var(--playpilot-context-menu-border, rgba(255, 255, 255, .1))}.item.svelte-npfy12:first-child{border-radius:var(--playpilot-context-menu-border-radius, 8px) var(--playpilot-context-menu-border-radius, 8px) 0 0}.item.svelte-npfy12:last-child{border-radius:0 0 var(--playpilot-context-menu-border-radius, 8px) var(--playpilot-context-menu-border-radius, 8px);border-bottom:0}.item.svelte-npfy12:not(:hover) svg{opacity:.75}.video-background.svelte-18bbkrh{background:#000}.video-background.svelte-18bbkrh iframe{position:absolute;height:var(--height);width:var(--width);top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.background.svelte-1h1ov71{position:absolute;top:0;left:0;width:100%;height:var(--playpilot-detail-background-height, 320px);border-radius:var(--playpilot-detail-background-border-radius, 0px);overflow:hidden;background:var(--playpilot-detail-background, var(--playpilot-lighter));-webkit-mask-image:linear-gradient(to bottom,black 40%,transparent);mask-image:linear-gradient(to bottom,black 40%,transparent);opacity:var(--playpilot-detail-background-opacity, 1)}@media (min-width: 600px){.background.svelte-1h1ov71{height:var(--playpilot-detail-background-height, 192px);-webkit-mask-image:linear-gradient(to bottom,black 60%,transparent);mask-image:linear-gradient(to bottom,black 60%,transparent)}}@media (max-width: 599px){.background.svelte-1h1ov71 .video-background{width:var(--playpilot-detail-background-width, 225%)}}.background.small.svelte-1h1ov71 .video-background{width:150%}.background.inline.svelte-1h1ov71{overflow:visible;position:unset;-webkit-mask-image:unset;mask-image:unset}.background.offset-mute.svelte-1h1ov71{--mute-top: 48px;--mute-right: 4px}.background.svelte-1h1ov71 img:where(.svelte-1h1ov71){width:100%;height:100%;object-fit:cover;object-position:center;margin:0;opacity:0;z-index:0}.background.svelte-1h1ov71 img.loaded:where(.svelte-1h1ov71){opacity:1}.background.svelte-1h1ov71 img.blur:where(.svelte-1h1ov71){opacity:.5;transform:scale(1.1);filter:blur(.75rem)}.genre.svelte-1mphbln{display:inline-flex;flex-wrap:wrap;background:var(--playpilot-genre-background, var(--playpilot-content));border:0;border-radius:var(--playpilot-genre-border-radius, var(--playpilot-border-radius-large));padding:4px 8px;font-family:var(--playpilot-genre-font-family, inherit);font-weight:var(--playpilot-genre-font-weight, inherit);text-transform:var(--playpilot-genre-text-transform, var(--playpilot-none));color:var(--playpilot-genre-text-color, var(--playpilot-text-color-alt));line-height:1;font-size:inherit}.genre.svelte-1mphbln:is(button:where(.svelte-1mphbln)):hover{cursor:pointer;filter:brightness(var(--playpilot-genre-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-genre-background-hover, var(--playpilot-content))}.expand.svelte-1mphbln{margin-left:-8px}.info.svelte-13b1w31{z-index:1;position:relative;grid-area:info;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}@media (min-width: 600px){.info.svelte-13b1w31{gap:8px 16px}}.info.small.svelte-13b1w31{gap:8px 12px}.imdb.svelte-13b1w31{display:flex;align-items:center;gap:4px}.imdb.svelte-13b1w31 svg{margin-top:-2px}.small.svelte-13b1w31 .imdb:where(.svelte-13b1w31) svg{margin-top:0;width:12px;height:12px}.capitalize.svelte-13b1w31{text-transform:capitalize}.heading.svelte-16ajinh{z-index:1;position:relative;grid-area:heading;margin:8px 0;color:var(--playpilot-detail-title-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-title-font-family, inherit);font-weight:var(--playpilot-detail-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-detail-title-font-size, 24px);line-height:1.2;font-style:var(--playpilot-detail-title-font-style, var(--playpilot-normal))}.small.svelte-16ajinh .heading:where(.svelte-16ajinh){font-size:var(--playpilot-detail-title-font-size-small, 18px)}.content.svelte-16ajinh{position:relative;padding:var(--playpilot-detail-padding, 16px);color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;font-style:normal}.content.svelte-16ajinh ::view-transition-old(content),.content.svelte-16ajinh ::view-transition-new(content){height:100%}.content.small.svelte-16ajinh{font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));line-height:1.45;padding-bottom:16px}.header.svelte-16ajinh{padding:min(272px,70vw) 0 16px}@media (min-width: 390px){.header.svelte-16ajinh{display:grid;grid-template:"poster heading" "poster info" "actions actions";grid-template-columns:72px auto;grid-template-rows:1fr;align-items:flex-end;gap:0 12px}}@media (min-width: 600px){.header.svelte-16ajinh{display:block;padding-top:var(--playpilot-title-header-offset, 48px)}}.small.svelte-16ajinh .header:where(.svelte-16ajinh){padding-top:16px}.poster.svelte-16ajinh{z-index:1;position:relative;grid-area:poster;display:block;width:72px;margin:0;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));box-shadow:var(--playpilot-detail-image-shadow, var(--playpilot-shadow));overflow:hidden;opacity:0}.poster.loaded.svelte-16ajinh{opacity:1}.main.svelte-16ajinh{z-index:1;position:relative}.actions.svelte-16ajinh{z-index:1;position:relative;grid-area:actions;display:flex;gap:8px;margin-top:16px}.truncate.svelte-16ajinh{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.title.svelte-1nq44zr{--playpilot-description-max-width: 600px;--playpilot-playlinks-max-width: 600px;position:relative;border-radius:var(--playpilot-border-radius);overflow:hidden;margin-top:16px}@media (min-width: 600px){.title.svelte-1nq44zr{--playpilot-detail-header-offset: 80px;--playpilot-detail-background-height: 560px;--playpilot-detail-background-opacity: .5}}.back.svelte-1nq44zr{--playpilot-button-text-color: white;font-weight:var(--playpilot-font-bold)}.back.offset.svelte-1nq44zr{z-index:1;position:absolute;margin-left:16px;margin-top:16px}.empty.svelte-1nq44zr{margin-top:16px;padding:16px;border:1px solid var(--playpilot-content);max-width:320px;border-radius:var(--playpilot-border-radius);font-size:var(--playpilot-font-size-large);font-weight:var(--playpilot-font-bold);color:var(--playpilot-text-color)}.button.svelte-1ch8qoj{display:flex;align-items:center;justify-content:center;flex:0 0 var(--size);width:var(--size);height:var(--size);border-radius:50%;border:0;padding:var(--playpilot-button-padding, 0);background:var(--playpilot-button-background, var(--playpilot-content));box-shadow:var(--playpilot-button-shadow, var(--playpilot-shadow));color:var(--playpilot-button-text-color, var(--playpilot-text-color-alt));cursor:pointer;transition:transform 50ms}.button.svelte-1ch8qoj:hover{filter:brightness(1.2);transform:scale(1.05);outline:1px solid var(--playpilot-button-hover-border-color, var(--playpilot-text-color-alt))}.handle.svelte-1xqgdsn{position:relative;width:100%;height:var(--playpilot-drag-handle-height, 48px)}.handle.svelte-1xqgdsn:before{content:"";display:block;position:absolute;top:calc(50% - var(--playpilot-drag-handle-bar-height, 4px) / 2);width:100%;height:var(--playpilot-drag-handle-bar-height, 4px);border-radius:16px;background:var(--playpilot-drag-handle-color, currentColor);opacity:.65;transition:opacity .1s,scale .1s}.handle.dragged.svelte-1xqgdsn{transition:transform .2s}.handle.dragging.svelte-1xqgdsn{transition:none}.handle.dragging.svelte-1xqgdsn:before{scale:1.5 1;opacity:1}.modal.svelte-1rbidhv{--playpilot-detail-background-border-radius: var(--playpilot-detail-border-radius, var(--playpilot-border-radius-large) var(--playpilot-border-radius-large) 0 0);z-index:2147483647;box-sizing:border-box;position:fixed;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;top:0;right:0;bottom:0;left:0;background:var(--playpilot-detail-backdrop, rgba(0, 0, 0, .65))}@media (min-width: 600px){.modal.svelte-1rbidhv{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:32px 0}}.modal.has-bubble.svelte-1rbidhv{--playpilot-detail-background-border-radius: 0}.modal.background-blur.svelte-1rbidhv{-webkit-backdrop-filter:blur(1.5rem);backdrop-filter:blur(1.5rem)}.dialog.svelte-1rbidhv,.bubble.svelte-1rbidhv,.prepend.svelte-1rbidhv{max-width:600px}.wide.svelte-1rbidhv .dialog:where(.svelte-1rbidhv),.wide.svelte-1rbidhv .bubble:where(.svelte-1rbidhv),.wide.svelte-1rbidhv .prepend:where(.svelte-1rbidhv){max-width:900px}.dialog.svelte-1rbidhv{z-index:1;position:relative;width:100%;height:80vh;margin-top:auto;padding-bottom:env(safe-area-inset-bottom);overflow:auto;overscroll-behavior:contain;border-radius:var(--playpilot-detail-border-radius, 16px 16px 0 0);background:var(--playpilot-detail-background, var(--playpilot-light));will-change:top;transition:top .2s;scrollbar-color:var(--playpilot-content-light) transparent;scrollbar-width:thin}.dialog.svelte-1rbidhv::-webkit-scrollbar{width:12px}.dialog.svelte-1rbidhv::-webkit-scrollbar-track{background:var(--playpilot-light)}.dialog.svelte-1rbidhv::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:transparent}.dialog.svelte-1rbidhv::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.dialog.svelte-1rbidhv::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}@supports (height: 1dvh){.dialog.svelte-1rbidhv{height:80dvh}}@media (min-width: 600px){.dialog.svelte-1rbidhv{height:unset;margin:auto 0;padding-bottom:0;overflow:visible;border-radius:var(--playpilot-detail-border-radius, var(--playpilot-border-radius-large))}}@media (max-width: 599px){.tall.svelte-1rbidhv .dialog:where(.svelte-1rbidhv){height:90vh}@supports (height: 1dvh){.tall.svelte-1rbidhv .dialog:where(.svelte-1rbidhv){height:90dvh}}}.has-prepend.svelte-1rbidhv .dialog:where(.svelte-1rbidhv){margin-top:0}.has-bubble.svelte-1rbidhv .dialog:where(.svelte-1rbidhv){border-top-left-radius:0;border-top-right-radius:0;margin-top:0}.swipe-handle.svelte-1rbidhv{z-index:5;position:absolute;top:var(--dialog-offset);left:50%;transform:translateY(-8px) translate(-50%);width:112px;color:var(--playpilot-text-color)}.close.svelte-1rbidhv{--playpilot-button-background: var(--playpilot-modal-close-button-background, var(--playpilot-content));--playpilot-button-shadow: var(--playpilot-modal-close-button-shadow, var(--playpilot-shadow));--playpilot-button-padding: var(--playpilot-modal-close-button-padding, 8px);--playpilot-button-text-color: var(--playpilot-modal-close-button-text-color, var(--playpilot-text-color-alt));z-index:5;position:fixed;margin-top:calc(var(--dialog-offset) + 16px);top:0;right:16px;transition:top .2s}@media (min-width: 600px){.close.svelte-1rbidhv{position:absolute;margin-top:0;top:16px}}.close.svelte-1rbidhv:hover{filter:brightness(1.1)}.close.flat.svelte-1rbidhv{--playpilot-button-background: transparent;--playpilot-button-shadow: none}.close.back.svelte-1rbidhv{right:auto;left:16px}.close.back.flat.svelte-1rbidhv{left:8px}.close.back.flat.svelte-1rbidhv svg{margin:0}.prepend.svelte-1rbidhv{z-index:1;position:relative;width:calc(100% - 16px);padding-top:48px;margin:auto auto 8px}@media (min-width: 600px){.prepend.svelte-1rbidhv{padding-top:0;margin-top:0}}.bubble.svelte-1rbidhv{z-index:1;position:relative;width:100%;margin:auto 0 0}@media (min-width: 600px){.bubble.svelte-1rbidhv{width:100%;margin-top:0}}.top-scroll.svelte-1mt6g1y{position:relative;display:block;width:100%;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0;background:#000;color:var(--playpilot-top-scroll-text-color, white);font-family:var(--playpilot-top-scroll-font-family, var(--playpilot-font-family));font-size:var(--playpilot-top-scroll-font-size, var(--playpilot-font-size-base));text-decoration:none;line-height:1.35}.content.svelte-1mt6g1y{display:flex;z-index:1;position:relative;align-items:center;height:100%;min-height:72px;padding:4px 8px;gap:8px;color:var(--playpilot-top-scroll-text-color, white)}.simple.svelte-1mt6g1y .content:where(.svelte-1mt6g1y){justify-content:center;min-height:0;padding:0}.logo.svelte-1mt6g1y{border-radius:var(--playpilot-top-scroll-logo-border-radius, var(--playpilot-border-radius));background:#000}.tagline.svelte-1mt6g1y{margin:0;text-shadow:var(--playpilot-shadow)}.button.svelte-1mt6g1y{margin-left:auto;margin-right:16px;padding:4px 8px;background:var(--playpilot-top-scroll-button-background, white);border:0;border-radius:var(--playpilot-top-scroll-button-border-radius, var(--playpilot-border-radius-small));box-shadow:var(--playpilot-shadow);color:var(--playpilot-top-scroll-button-text-color, black);font-family:inherit;font-size:inherit;line-height:inherit}.button.svelte-1mt6g1y:hover{outline:4px solid var(--playpilot-top-scroll-button-background, rgba(255, 255, 255, .35));background:var(--playpilot-top-scroll-button-background, white)}.button.svelte-1mt6g1y:active{background:var(--playpilot-top-scroll-button-background, white)}.background.svelte-1mt6g1y{z-index:0;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0;background-image:var(--background);background-position:center;background-size:cover;opacity:.4}.top-scroll.svelte-1mt6g1y:hover .background:where(.svelte-1mt6g1y){filter:brightness(1.15)}.content-image.svelte-1mt6g1y{display:block;max-width:100%;height:auto;background:#000;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0}.top-scroll.svelte-1mt6g1y:hover .content-image:where(.svelte-1mt6g1y){filter:brightness(1.15)}.tooltip.svelte-r7ubzi{position:relative}.content.svelte-r7ubzi{position:absolute;bottom:0;left:0;transform:translateY(100%);padding:4px;background:var(--playpilot-tooltip-background, var(--playpilot-light));border-radius:var(--playpilot-tooltip-border-radius, var(--playpilot-border-radius-small));box-shadow:var(--playpilot-tooltip-shadow, var(--playpilot-shadow));color:var(--playpilot-tooltip-text-color, var(--playpilot-text-color));white-space:nowrap}.display.svelte-qcpiki{display:block;position:relative;border-radius:var(--playpilot-display-ad-border-radius, var(--playpilot-border-radius));overflow:hidden;background:#000;aspect-ratio:16/9;color:#fff!important;text-shadow:1px 1px 2px rgba(0,0,0,.35);font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));line-height:1.2;font-style:normal!important}.info.svelte-qcpiki{position:absolute;top:0;left:0;padding:8px;font-size:12px;text-decoration:underline}@media (min-width: 600px){.info.svelte-qcpiki{padding:16px}.compact.svelte-qcpiki .info:where(.svelte-qcpiki){padding:12px}}.cta.svelte-qcpiki{z-index:1;display:flex;align-items:center;gap:8px;position:absolute;right:0;bottom:0;left:0;padding:8px;background:linear-gradient(to right,#6e6e6e,#5555554d);font-size:14px;text-decoration:none}@media (min-width: 600px){.cta.svelte-qcpiki{padding:16px}.compact.svelte-qcpiki .cta:where(.svelte-qcpiki){padding:12px}}.logo.svelte-qcpiki{border-radius:var(--playpilot-display-ad-border-radius, var(--playpilot-border-radius))}.name.svelte-qcpiki{font-weight:500}.subheader.svelte-qcpiki{font-size:12px}.action.svelte-qcpiki{margin-left:auto;padding:8px 12px;background:var(--playpilot-display-ad-action-background, white);border-radius:var(--playpilot-display-action-border-radius, 32px);transition:transform 50ms;text-shadow:none;font-weight:var(--playpilot-display-action-font-weight, 500);color:var(--playpilot-display-action-text-color, black);white-space:nowrap}.action.svelte-qcpiki:hover{transform:scale(1.05)}.background.svelte-qcpiki{display:block;width:100%;height:auto}.disclaimer.svelte-qcpiki{position:absolute;bottom:calc(var(--offset) + 4px);right:4px}strong.svelte-1677ll3{color:var(--playpilot-text-color);font-size:var(--playpilot-font-size-base);font-weight:400}.call-to-action.svelte-1677ll3{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;gap:16px;width:100%;padding:16px;border:0;border-radius:var(--playpilot-border-radius-large) var(--playpilot-border-radius-large) 0 0;background:var(--playpilot-light);font-family:var(--playpilot-font-family);color:var(--playpilot-text-color-alt)!important;font-size:var(--playpilot-font-size-small);font-style:normal!important;text-decoration:none;line-height:1.5;text-align:left;cursor:pointer}.call-to-action.svelte-1677ll3:hover{filter:brightness(var(--playpilot-hover-filter-brightness))}.arrow.svelte-1677ll3{margin-left:auto}.arrow.svelte-1677ll3 svg{display:block;height:20px;width:auto}.header.svelte-ke01cs{padding:64px 16px 32px;font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:var(--playpilot-participant-description-line-height, var(--playpilot-normal));color:var(--playpilot-detail-text-color, var(--playpilot-text-color))}.header.small.svelte-ke01cs{padding:16px}.heading.svelte-ke01cs{margin:0;font-family:var(--playpilot-detail-title-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-detail-title-font-size, 24px);line-height:normal;font-style:var(--playpilot-detail-title-font-style, var(--playpilot-normal))}.heading.subheading.svelte-ke01cs{margin:0 0 8px;font-size:var(--playpilot-detail-title-small-font-size, 20px)}.dates.svelte-ke01cs{margin:8px 0 0}.content.svelte-ke01cs{padding:0 16px 16px;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;font-style:normal}.content.svelte-ke01cs ::view-transition-old(content),.content.svelte-ke01cs ::view-transition-new(content){height:100%}.list.svelte-ke01cs{display:flex;flex-direction:column;gap:8px}.skeleton.svelte-ke01cs{min-height:116px;border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-background-light, var(--playpilot-lighter))}.more.svelte-ke01cs{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:8px 16px;border:0;border-radius:var(--playpilot-participants-load-more-border-radius, var(--playpilot-border-radius));background:var(--playpilot-participants-load-more-background, var(--playpilot-content));color:inherit;font-size:inherit;font-family:inherit}.more.svelte-ke01cs:hover{filter:brightness(1.2)}@keyframes svelte-wxwoko-delay-render{0%{opacity:0}to{opacity:1}}.popover.svelte-wxwoko{--offset: 8px;display:flex;flex-direction:column-reverse;gap:8px;position:absolute;top:calc((var(--offset) - 1px) * -1);left:0;width:calc(100vw - 32px);max-width:320px;padding:var(--offset) 0;transform:translateY(calc(-100% + var(--offset)));opacity:0;animation:svelte-wxwoko-delay-render 0ms 1ms forwards;z-index:2147483647}.popover.flip.svelte-wxwoko{flex-direction:column;top:auto;bottom:calc(var(--offset) + 1px);transform:translateY(calc(100% + var(--offset)))}.popover.flip.inline.svelte-wxwoko{flex-direction:column-reverse}.popover.inline.svelte-wxwoko{gap:0}.dialog.svelte-wxwoko{cursor:default;position:relative;border-radius:var(--playpilot-popover-border-radius, var(--playpilot-border-radius-large));background:var(--playpilot-popover-background, var(--playpilot-light));box-shadow:var(--playpilot-popover-shadow, var(--playpilot-shadow-large));max-height:min(var(--max-height, 100vh),576px);overflow-y:overlay;overflow-x:hidden;view-transition-name:playpilot-title-content;scrollbar-color:var(--playpilot-content-light) transparent;scrollbar-width:thin}.dialog.svelte-wxwoko::-webkit-scrollbar{width:12px}.dialog.svelte-wxwoko::-webkit-scrollbar-track{background:var(--playpilot-light)}.dialog.svelte-wxwoko::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:transparent}.dialog.svelte-wxwoko::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.dialog.svelte-wxwoko::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}.has-bubble.svelte-wxwoko .dialog:where(.svelte-wxwoko){border-top-left-radius:0;border-top-right-radius:0}.scroll-indicator.svelte-wxwoko{z-index:1;position:sticky;bottom:0;pointer-events:none}.scroll-indicator.svelte-wxwoko:after{content:"";display:block;position:absolute;bottom:0;left:0;height:32px;width:100%;background:linear-gradient(to bottom,transparent,black);opacity:var(--playpilot-popover-scroll-indicator-opacity, .5)}.scroll-indicator-icon.svelte-wxwoko{z-index:1;position:absolute;display:flex;bottom:4px;left:50%;transform:translate(-50%);opacity:.75}.scroll-indicator-icon.svelte-wxwoko svg{fill:var(--playpilot-popover-scroll-indicator-fill, var(--playpilot-text-color))!important}.bubble.svelte-wxwoko,.append.svelte-wxwoko{view-transition-name:playpilot-title-extra}.injection-popover.svelte-1laomht{position:absolute}.back.svelte-29uorr{position:absolute;top:24px;left:var(--modal-close-overlay-left, 16px);font-family:var(--playpilot-font-family);transition:transform 50ms}@media (min-width: 600px){.back.svelte-29uorr{left:16px}}.back.svelte-29uorr:hover{transform:scale(1.025)}.back.svelte-29uorr:hover button{text-decoration:underline}.back.svelte-29uorr button{color:var(--playpilot-modal-close-text-color, white)}.close.svelte-29uorr{--playpilot-button-background: transparent;--playpilot-button-text-color: white;position:absolute;top:16px;right:16px}.rail-modal.svelte-c2erhr{--gap: 4px;position:relative;width:min(800px,85vw);margin:auto auto 0;opacity:0}@media (min-width: 600px){.rail-modal.svelte-c2erhr{margin:auto}}.rail-modal.initialized.svelte-c2erhr{opacity:1}.rail-modal.svelte-c2erhr>.slider{overflow:visible}@media (min-width: 600px){.rail-modal.svelte-c2erhr>.slider>.slider-content{align-items:center}}.item.svelte-c2erhr{width:min(800px,85vw);transition:opacity var(--transition-duration),transform var(--transition-duration)}.item.active.svelte-c2erhr{transform:none;opacity:1}.item.svelte-c2erhr:not(.active){transform:scale(.95) translateY(32px);opacity:.5}@media (min-width: 600px){.item.svelte-c2erhr:not(.active){transform:scale(.9);opacity:.35}}.item.svelte-c2erhr:not(.active) *{pointer-events:none}.rail-modal.svelte-c2erhr:not(.initialized) .item:where(.svelte-c2erhr){transition:none}.content.svelte-c2erhr{position:relative;border:1px solid var(--playpilot-rail-modal-item-border, var(--playpilot-content));border-radius:var(--playpilot-rail-modal-item-border-radius, var(--playpilot-border-radius-huge)) var(--playpilot-rail-modal-item-border-radius, var(--playpilot-border-radius-huge)) 0 0;background:var(--playpilot-rail-modal-item-background, var(--playpilot-light));box-shadow:none;height:calc(90vh - env(safe-area-inset-top));overflow:auto;overscroll-behavior:contain;transition:box-shadow var(--transition-duration);scrollbar-color:var(--playpilot-content-light) transparent;scrollbar-width:thin}.content.svelte-c2erhr::-webkit-scrollbar{width:12px}.content.svelte-c2erhr::-webkit-scrollbar-track{background:var(--playpilot-light)}.content.svelte-c2erhr::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:transparent}.content.svelte-c2erhr::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.content.svelte-c2erhr::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}@supports (height: 1dvh){.content.svelte-c2erhr{height:calc(90dvh - env(safe-area-inset-top))}}@media (min-width: 600px){.content.svelte-c2erhr{height:auto;max-height:85vh;border-radius:var(--playpilot-rail-modal-item-border-radius, var(--playpilot-border-radius-huge))}}.active.svelte-c2erhr .content:where(.svelte-c2erhr){box-shadow:var(--playpilot-rail-modal-shadow, 0 -8px 8px rgba(0, 0, 0, .2))}.arrow.svelte-c2erhr{--offset: -20px;--scale: 1;cursor:pointer;z-index:2;display:flex;align-items:center;justify-content:center;position:absolute;left:var(--offset);top:50%;width:48px;height:48px;border:1px solid var(--playpilot-rail-modal-item-border, var(--playpilot-content));border-radius:50%;transform:translateY(-50%) scale(var(--scale));transition:transform 50ms;background:var(--playpilot-rail-modal-arrow-background, var(--playpilot-lighter));box-shadow:var(--playpilot-rail-modal-arrow-shadow, 0 4px 8px rgba(0, 0, 0, .35));color:var(--playpilot-rail-modal-arrow-color, var(--playpilot-text-color))}@media (min-width: 600px){.arrow.svelte-c2erhr{--offset: -56px}}.arrow.svelte-c2erhr:hover,.arrow.svelte-c2erhr:active{filter:brightness(1.2)}.arrow.svelte-c2erhr:hover{--scale: 1.05}.arrow.svelte-c2erhr:active{--scale: .97}.arrow.right.svelte-c2erhr{left:auto;right:var(--offset)}.close.svelte-c2erhr{--modal-close-overlay-left: calc((100vw - min(800px, 85vw))/2) }.reel.svelte-5maid2{--playpilot-detail-background-height: calc(100vh - 152px) ;--playpilot-detail-background-border-radius: 0;--playpilot-detail-background-width: 400%;--playpilot-detail-backdrop: black;--playpilot-description-max-height: 40vh;--playpilot-modal-close-text-color: rgba(255, 255, 255, .75)}.reel.svelte-5maid2 *{box-sizing:border-box;overscroll-behavior:contain}.reel.svelte-5maid2 iframe{pointer-events:none;z-index:0}.reel.svelte-5maid2 .modal{padding:0}.slider.svelte-5maid2{margin-top:calc(100vh - (100vh - 72px));height:calc(100vh - 72px);width:100%}.item.svelte-5maid2{position:relative;width:100dvw;height:calc(100vh - 152px);background:var(--playpilot-detail-background, var(--playpilot-light));border-bottom:1px solid var(--playpilot-reel-modal-item-border, var(--playpilot-content));overflow:hidden}.content.svelte-5maid2{--rail-margin: 32px;position:relative;display:flex;flex-direction:column;justify-content:space-between;height:100%;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;font-style:normal}.header.svelte-5maid2{z-index:2;position:relative;padding:var(--playpilot-reel-item-padding, 16px 32px 32px);font-size:var(--playpilot-reel-header-font-size, var(--playpilot-font-size-small))}.heading.svelte-5maid2{padding-right:24px;margin-bottom:8px;color:var(--playpilot-detail-title-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-title-font-family, inherit);font-weight:var(--playpilot-detail-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-detail-title-font-size, 20px);font-style:var(--playpilot-detail-title-font-style, var(--playpilot-normal));line-height:1.2}.details.svelte-5maid2{z-index:1;position:relative;padding:var(--playpilot-reel-item-padding, 32px);font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base))}.details.svelte-5maid2:before{z-index:-1;content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to bottom,transparent,var(--playpilot-detail-background, var(--playpilot-light)) 4rem);opacity:.85}.playlinks-heading.svelte-5maid2{margin:16px 0 8px;color:var(--playpilot-reel-playlinks-title-color, var(--playpilot-text-color-alt));font-family:var(--playpilot-reel-playlinks-title-font-family, inherit);font-weight:var(--playpilot-reel-playlinks-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-reel-playlinks-title-font-size, var(--playpilot-font-size-small));line-height:normal}.gradient.svelte-5maid2{z-index:1;position:absolute;top:0;left:0;width:100%;height:112px;background:linear-gradient(to bottom,rgba(0,0,0,.8),transparent)}@keyframes svelte-5maid2-wiggle{90%,to{transform:translate(-50%)}95%{transform:translate(-50%) translateY(8px)}}.arrow.svelte-5maid2{z-index:1;position:absolute;bottom:16px;left:50%;transform:translate(-50%);animation:svelte-5maid2-wiggle 5s infinite ease-out;color:var(--playpilot-detail-text-color, var(--playpilot-text-color))}p.svelte-1to4glm{font-weight:var(--playpilot-after-article-text-font-weight, var(--playpilot-normal))}span.svelte-1to4glm{display:block}button.svelte-1to4glm{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--playpilot-after-article-button-padding, 4px 12px);margin:var(--playpilot-after-article-button-margin, 4px 0 0);background:var(--playpilot-after-article-button-background, transparent);border:var(--playpilot-after-article-button-border, 2px solid currentColor);border-radius:var(--playpilot-after-article-button-border-radius, var(--playpilot-border-radius-large));color:var(--playpilot-after-article-button-text-color, inherit);font-weight:var(--playpilot-after-article-button-font-weight, var(--playpilot-bold));font-size:var(--playpilot-after-article-button-font-size, var(--playpilot-border-radius-large));cursor:pointer;transition:all 50ms}button.svelte-1to4glm:hover{background:var(--playpilot-after-article-button-background-hover, transparent);border:var(--playpilot-after-article-button-border-hover, 2px solid currentColor);color:var(--playpilot-after-article-button-text-color-hover, inherit);transform:var(--playpilot-after-article-button-transform-hover, var(--playpilot-scale(1.02)))}p.svelte-1epbbn0{position:var(--playpilot-in-text-disclaimer-position);top:var(--playpilot-in-text-disclaimer-top);transform:var(--playpilot-in-text-disclaimer-transform);margin:var(--playpilot-in-text-disclaimer-margin);padding:var(--playpilot-in-text-disclaimer-padding);font-size:var(--playpilot-in-text-disclaimer-font-size);font-weight:var(--playpilot-in-text-disclaimer-font-weight);font-style:var(--playpilot-in-text-disclaimer-font-style);color:var(--playpilot-in-text-disclaimer-text-color)}.widget.svelte-l6zazf{--rail-margin: 0;--playpilot-rails-arrow-background: black;--playpilot-detail-background-light: black;--playpilot-rail-title-text-color: currentColor;--playpilot-rail-text-color: currentColor;margin:16px 0}svg.svelte-abbsts{transition:transform .1s}.expanded.svelte-abbsts{transform:rotate(180deg)}.switch.svelte-1201akx{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;border:0;padding:0;background:transparent;cursor:pointer}.fullwidth.svelte-1201akx{width:100%;justify-content:space-between}.label.svelte-1201akx{display:flex;align-items:center;gap:8px;margin-right:8px;font-family:var(--playpilot-font-family);color:var(--playpilot-text-color-alt);font-size:12px}.switch.svelte-1201akx:hover .label:where(.svelte-1201akx){color:var(--playpilot-text-color)}.track.svelte-1201akx{position:relative;width:32px;height:20px;border-radius:16px;background:var(--playpilot-content);transition:background-color .1s}.active.svelte-1201akx .track:where(.svelte-1201akx){background:var(--playpilot-green)}.knob.svelte-1201akx{position:absolute;top:2px;left:2px;height:16px;width:16px;border-radius:50%;background:#fff;transition:left .1s}.active.svelte-1201akx .knob:where(.svelte-1201akx){left:14px}input.svelte-v3h1om{width:100%;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-lighter);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}input.svelte-v3h1om:focus{background:var(--playpilot-lighter);outline:1px solid white}input.svelte-v3h1om::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.alert.svelte-1v44877{padding:8px;border-radius:8px;border:1px solid var(--playpilot-error);background:var(--playpilot-error-dark);font-size:12px;font-family:var(--playpilot-font-family);color:#fff}.alert.warning.svelte-1v44877{border-color:var(--playpilot-warning);background:var(--playpilot-warning-dark)}.alert.fixed.svelte-1v44877{position:fixed;bottom:1rem;right:1rem;width:80%;max-width:25rem}.alert.svelte-1v44877 a{color:currentColor}.switches.svelte-1fv3ko3{display:flex;flex-direction:column;gap:12px}button.svelte-1fv3ko3{z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:32px;padding:8px;background:transparent;font-family:var(--playpilot-font-family);font-size:10.4px;color:var(--playpilot-text-color-alt);cursor:pointer}button.svelte-1fv3ko3:hover,button.active.svelte-1fv3ko3{color:var(--playpilot-text-color)}.group.svelte-1fv3ko3{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;padding:4px;border:0;border-radius:32px;background:var(--playpilot-light);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}.active-marker.svelte-1fv3ko3{z-index:0;position:absolute;width:calc(50% - 8px);height:calc(100% - 8px);left:4px;top:4px;border-radius:32px;background:var(--playpilot-content);transition:left .1s}.right.svelte-1fv3ko3{left:calc(50% + 4px)}.label.svelte-1fv3ko3{margin:10.8px 0 4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.alert.svelte-1fv3ko3{margin-top:8px}select.svelte-1yg5wso{background:var(--playpilot-content);padding:8px 16px;width:100%;border:0;border-radius:8px;color:var(--playpilot-text-color);font-family:inherit;font-size:13.6px}option.svelte-1yg5wso:hover,option.svelte-1yg5wso:active,option.svelte-1yg5wso:checked{background-color:var(--playpilot-content-light);font-weight:700}.form.svelte-1yg5wso{padding:32px;font-family:var(--playpilot-font-family);color:var(--playpilot-text-color)}.heading.svelte-1yg5wso{font-size:20px}.info.svelte-1yg5wso{margin:16px 0;font-size:13.6px;color:var(--playpilot-text-color-alt)}.info.svelte-1yg5wso strong:where(.svelte-1yg5wso){color:var(--playpilot-text-color)}.submit.svelte-1yg5wso{margin-top:16px;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-green);box-shadow:var(--playpilot-shadow);font-family:inherit;color:var(--playpilot-text-color);font-size:13.6px;cursor:pointer}.submit[disabled].svelte-1yg5wso{background:var(--playpilot-content);color:var(--playpilot-text-color-alt);box-shadow:none;opacity:.5;cursor:default}.sent.svelte-1yg5wso{margin-top:16px;padding:8px 0;color:var(--playpilot-green);font-size:13.6px}.item.svelte-tlh9c3{padding:16px 8px;border-bottom:1px solid var(--playpilot-lighter);transition:outline-offset .1s}.item.svelte-tlh9c3:hover,.item.highlighted.svelte-tlh9c3{border-radius:8px;border-color:transparent;outline:2px solid var(--playpilot-content);outline-offset:1px}.item.highlighted.svelte-tlh9c3{outline:2px solid var(--playpilot-primary)}.header.svelte-tlh9c3{display:flex;gap:16px;width:100%}.poster.svelte-tlh9c3{display:block;width:32px;height:48px;border-radius:4px;background:var(--playpilot-content)}.inactive.svelte-tlh9c3 .poster:where(.svelte-tlh9c3){opacity:.35}.placeholder-image.svelte-tlh9c3{flex:0 0 32px;width:32px;height:32px;border-radius:50%;background:var(--playpilot-content)}.title.svelte-tlh9c3{font-size:14px;word-break:break-word}.sentence.svelte-tlh9c3{font-size:.7em;line-height:150%;margin-right:-8px;color:var(--playpilot-text-color-alt);opacity:.75}.sentence.svelte-tlh9c3 em{color:var(--playpilot-text-color);font-weight:700}.expand-sentence.svelte-tlh9c3{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;margin:0;background:transparent;font-family:inherit;color:inherit;font-size:inherit;line-height:inherit;font-style:italic;text-decoration:underline}.expand-sentence.svelte-tlh9c3:hover{color:var(--playpilot-text-color)}.content.svelte-tlh9c3{padding-top:8px}.inactive.svelte-tlh9c3 .info:where(.svelte-tlh9c3){opacity:.35}.context-menu.svelte-tlh9c3{margin:0 -4px 0 auto}.context-menu-action.svelte-tlh9c3{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:8px 16px;width:100%;text-align:left;font-family:inherit;white-space:nowrap;color:var(--playpilot-text-color-alt);cursor:pointer}.context-menu-action.svelte-tlh9c3:hover{color:var(--playpilot-text-color);background-color:var(--playpilot-content-light)}.context-menu-action.svelte-tlh9c3:first-child{margin-top:8px}.context-menu-action.svelte-tlh9c3:last-child{margin-bottom:8px}.actions.svelte-tlh9c3{display:flex;align-items:center;justify-content:space-between;width:100%}.expand.svelte-tlh9c3{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;border-radius:50%;background:var(--playpilot-content);color:var(--playpilot-text-color);box-shadow:var(--playpilot-shadow);cursor:pointer}.expand.svelte-tlh9c3:hover{filter:brightness(1.2);outline:1px solid currentColor}.expanded.svelte-tlh9c3{padding-top:16px}.type-select.svelte-tlh9c3{margin-top:8px}.label.svelte-tlh9c3{margin-bottom:4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.offset.svelte-tlh9c3{margin-top:12px}.warning.svelte-tlh9c3{margin:0 auto 0 8px}.warning.svelte-tlh9c3 svg{display:block}.drag-handle.svelte-1fk5ijl{z-index:10;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:8px;left:30%;width:40%;height:16px;background:transparent;border:0;cursor:grab}.drag-handle.svelte-1fk5ijl:hover:before{opacity:.65;transform:scale(1.05)}.drag-handle.svelte-1fk5ijl:active:before{opacity:.9;transform:scale(.95)}.drag-handle.svelte-1fk5ijl:active{cursor:grabbing}.drag-handle.svelte-1fk5ijl:before{display:block;content:"";position:absolute;top:20%;right:0;bottom:60%;left:0;border-radius:16px;background:var(--playpilot-text-color);opacity:.15;transition:opacity .1s,transform 50ms}.resize-handle.svelte-iir57j{z-index:10;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:0;left:0;width:100%;height:8px;background:transparent;border:0;cursor:ns-resize}.resize-handle.svelte-iir57j:hover:before{opacity:.65;transform:scale(1.05)}.resize-handle.svelte-iir57j:active:before{opacity:.9;transform:scale(.95)}.resize-handle.svelte-iir57j:active{cursor:grabbing}.resize-handle.svelte-iir57j:before{display:block;content:"";position:absolute;top:0;right:20%;left:20%;bottom:80%;border-radius:0 0 16px 16px;background:var(--playpilot-text-color);opacity:.15;transition:opacity .1s,transform 50ms}.item.svelte-fntasr{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:flex-start;gap:16px;width:100%;background:transparent;border:0;padding:8px;border-bottom:1px solid var(--playpilot-content);color:var(--playpilot-text-color-alt);font-family:inherit;text-align:left;font-size:13.6px}.item.hoverable.svelte-fntasr{cursor:pointer}.item.hoverable.svelte-fntasr:hover{background:var(--playpilot-lighter)}.item.svelte-fntasr:last-child{border-bottom:0}.poster.svelte-fntasr{flex:0 0 auto;height:auto;width:28px;aspect-ratio:28/42;border-radius:4px;background:var(--playpilot-content)}.name.svelte-fntasr{color:var(--playpilot-text-color)}.meta.svelte-fntasr{display:flex;flex-wrap:wrap;gap:0 8px;font-size:12px}.imdb.svelte-fntasr{display:flex;align-items:center;gap:4px}.open-in-new-tab.svelte-fntasr{margin-left:auto;color:var(--playpilot-text-color-alt)}.open-in-new-tab.svelte-fntasr:hover{color:var(--playpilot-text-color)}.search.svelte-zmrqec{position:relative}.results.svelte-zmrqec{z-index:1;position:absolute;top:calc(100% + 8px);left:0;right:0;height:30vh;max-height:160px;border-radius:8px;background:var(--playpilot-lighter);scrollbar-width:thin;overflow:auto}.empty.svelte-zmrqec{padding:8px;font-size:12px;color:var(--playpilot-text-color-alt)}.selected.svelte-zmrqec{margin:8px 0;border-radius:.5rem;border:2px solid var(--playpilot-green)}p.svelte-12oucrc,label.svelte-12oucrc{font-size:12px;max-width:240px;color:var(--playpilot-text-color-alt)}label.svelte-12oucrc{display:block;margin-top:16px}.layout.svelte-12oucrc{height:100%;display:flex;flex-direction:column;margin:0}.header.svelte-12oucrc{display:flex;align-items:center;gap:8px;margin-bottom:16px}.heading.svelte-12oucrc{margin:0;color:var(--playpilot-text-color);font-size:16px;line-height:normal;font-weight:400}.error.svelte-12oucrc{margin-top:8px}.save.svelte-12oucrc{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;margin-top:auto;padding:8px;border:0;border-radius:32px;background:var(--playpilot-green);transition:opacity .1s;font-family:inherit;color:var(--playpilot-text-color)}.save.svelte-12oucrc:not([disabled]):hover{outline:2px solid currentColor}.save[disabled].svelte-12oucrc{cursor:default;background:var(--playpilot-lighter);opacity:.5;color:var(--playpilot-text-color-alt)}p.svelte-16jrr0h{margin:0 0 8px}.alert.svelte-16jrr0h{margin:0 8px}.button.svelte-16jrr0h{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:4px;border:0;border-radius:4px;background:var(--playpilot-warning);transition:opacity .1s;font-family:inherit;color:var(--playpilot-dark);font-size:.85rem;cursor:pointer}.button.svelte-16jrr0h:hover{background:#fff}p.svelte-1q9haus{margin:0}.ai-indicator.svelte-1q9haus{position:relative;margin:0 8px}.content.svelte-1q9haus{position:relative;display:flex;gap:8px;background:var(--playpilot-light);padding:8px;margin:2px;border-radius:.5rem;font-size:12px;line-height:1.5;z-index:1;color:var(--playpilot-text-color-alt);overflow:hidden}.message.svelte-1q9haus{display:flex;margin-top:4px;font-style:italic}.icon.svelte-1q9haus{color:var(--playpilot-green)}.border.svelte-1q9haus{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:.5rem;background:var(--playpilot-green);overflow:hidden;transition:background-color .5s}.running.svelte-1q9haus .border:where(.svelte-1q9haus){background:var(--playpilot-light)}@keyframes svelte-1q9haus-rotate{to{rotate:360deg}}.animator.svelte-1q9haus{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-1q9haus-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-1q9haus{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-1q9haus{height:.5em;border-radius:.25rem;background:var(--playpilot-lighter)}.loading-bar-fill.svelte-1q9haus{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-1q9haus{text-align:right}@keyframes svelte-1q9haus-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-1q9haus span:where(.svelte-1q9haus){animation:svelte-1q9haus-fade 2s infinite}.ellipses.svelte-1q9haus span:where(.svelte-1q9haus):nth-child(1){animation-delay:.2s}.ellipses.svelte-1q9haus span:where(.svelte-1q9haus):nth-child(2){animation-delay:.4s}.ellipses.svelte-1q9haus span:where(.svelte-1q9haus):nth-child(3){animation-delay:.6s}.dismiss.svelte-1q9haus{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:4px;padding:4px;border:2px solid var(--playpilot-content-light);border-radius:4px;background:var(--playpilot-light);font-family:inherit;color:var(--playpilot-text-color-alt);font-size:12px;line-height:1;cursor:pointer}.dismiss.svelte-1q9haus:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.editor.svelte-7r3240{z-index:2147483646;display:flex;flex-direction:column;position:fixed;bottom:16px;right:16px;width:100%;max-width:352px;height:min(70vh,640px);min-height:min(25rem,80vh);margin:0;padding:16px;border-radius:24px;background:var(--playpilot-dark);box-shadow:var(--playpilot-shadow-large);color:var(--playpilot-text-color);font-family:var(--playpilot-font-family);transition:border-radius .1s;overflow-y:auto;overflow-x:hidden;line-height:normal;scrollbar-color:var(--playpilot-content-light) transparent;scrollbar-width:thin}.editor.svelte-7r3240::-webkit-scrollbar{width:12px}.editor.svelte-7r3240::-webkit-scrollbar-track{background:var(--playpilot-light)}.editor.svelte-7r3240::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:transparent}.editor.svelte-7r3240::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.editor.svelte-7r3240::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}.panel-open.svelte-7r3240{overflow:hidden}.loading.svelte-7r3240{height:auto;min-height:0;border-radius:32px;margin-left:auto;padding-right:8px;color:var(--playpilot-text-color-alt);font-size:13.6px}.handles.svelte-7r3240,.header.svelte-7r3240{z-index:20;position:sticky;top:-16px;margin:-16px -16px 0}.handle.svelte-7r3240{opacity:0;transition:opacity .15s}.editor.svelte-7r3240:hover .handle:where(.svelte-7r3240){opacity:1}.header.svelte-7r3240{z-index:5;display:flex;align-items:center;padding:16px 16px 16px 24px;margin:0 -16px;border:0;background:var(--playpilot-dark)}.loading.svelte-7r3240 .header:where(.svelte-7r3240){margin:-16px}.heading.svelte-7r3240{margin:0 12px 0 0;color:var(--playpilot-text-color);font-size:20px;font-weight:400;line-height:normal}.bubble.svelte-7r3240{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:24px;height:24px;border:0;padding:0;margin-right:auto;border-radius:50%;background:var(--playpilot-green);line-height:24px;text-align:center;font-size:13.6px}.items.svelte-7r3240{padding-top:8px;margin-bottom:auto}.empty.svelte-7r3240{padding:8px;font-size:13.6px;font-style:italic;color:var(--playpilot-text-color-alt)}.save.svelte-7r3240{z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:sticky;bottom:0;left:0;width:100%;margin-top:16px;padding:8px;border:0;border-radius:32px;background:var(--playpilot-content);box-shadow:0 0 16px 16px var(--playpilot-dark);transition:opacity .1s;font-family:inherit;color:var(--playpilot-text-color-alt);font-size:13.6px;cursor:pointer}.save.svelte-7r3240:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.save[disabled].svelte-7r3240{opacity:.65;background:var(--playpilot-lighter)}.error.svelte-7r3240{margin-top:8px}.alert.svelte-7r3240{margin:8px 8px 0}.panel.svelte-7r3240{z-index:10;position:absolute;top:0;left:0;width:100%;height:100%;padding:24px;background:var(--playpilot-dark);overflow-y:auto;scrollbar-color:var(--playpilot-content-light) transparent;scrollbar-width:thin}.panel.svelte-7r3240::-webkit-scrollbar{width:12px}.panel.svelte-7r3240::-webkit-scrollbar-track{background:var(--playpilot-light)}.panel.svelte-7r3240::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:transparent}.panel.svelte-7r3240::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.panel.svelte-7r3240::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}.trigger.svelte-qpyyh0{position:fixed;bottom:16px;right:16px}.button.svelte-qpyyh0{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:48px;height:48px;border:0;padding:12px;border-radius:50%;background:var(--playpilot-light);box-shadow:var(--playpilot-shadow-large);transition:transform 50ms;line-height:24px;text-align:center;font-size:13.6px}.button.svelte-qpyyh0:hover{filter:brightness(1.1);transform:scale(1.05)}.button.svelte-qpyyh0 svg{width:100%}.close.svelte-qpyyh0{display:flex;text-align:center;justify-content:center;position:absolute;top:-8px;right:-8px;width:24px;height:24px;padding:4px;background:var(--playpilot-content);color:#fff}.close.svelte-qpyyh0 svg{width:12px}summary.svelte-1tp7i1s{color:var(--playpilot-primary);font-weight:700}hr.svelte-1tp7i1s{margin:8px 0;border-color:var(--playpilot-primary)}button.svelte-1tp7i1s{cursor:pointer;padding:8px;border:1px solid var(--playpilot-primary);background:transparent;color:var(--playpilot-primary);font-family:inherit;font-weight:700}button.svelte-1tp7i1s:hover{color:#000;background:var(--playpilot-primary)}input[type=text].svelte-1tp7i1s,select.svelte-1tp7i1s{padding:8px;border:1px solid var(--playpilot-primary);background:#000;font-size:16px;color:var(--playpilot-primary)}.debugger.svelte-1tp7i1s{z-index:2147483647;position:fixed;top:0;left:0;max-width:70dvw;max-height:80dvh;padding:16px;border:1px solid var(--playpilot-primary);background:#000;overflow:auto;color:#fff;font-family:Consolas,monospace;color:var(--playpilot-primary)}.item.svelte-1tp7i1s{white-space:nowrap;overflow-x:auto;scrollbar-width:thin}.form-group.svelte-1tp7i1s{display:flex;align-items:center;gap:8px}.data.svelte-1tp7i1s{color:gray}.error.svelte-1tp7i1s{color:red}:root{--playpilot-primary: #fa548a;--playpilot-dark: #101426;--playpilot-light: #1b2743;--playpilot-lighter: #233257;--playpilot-content: #354367;--playpilot-content-light: #4b5b82;--playpilot-green: #53bca0;--playpilot-error: #ea5a5a;--playpilot-error-dark: #442533;--playpilot-warning: #f7c74e;--playpilot-warning-dark: #413c23;--playpilot-text-color: #fff;--playpilot-text-color-alt: #c8d4de;--playpilot-border-radius-small: 4px;--playpilot-border-radius: 8px;--playpilot-border-radius-large: 16px;--playpilot-border-radius-huge: 24px;--playpilot-font-family: Poppins, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;--playpilot-font-size-small: 12px;--playpilot-font-size-base: 14px;--playpilot-font-size-large: 16px;--playpilot-font-bold: 500;--playpilot-underline: underline;--playpilot-shadow: 3.2px 2.4px 2.4px rgba(0, 0, 0, .2);--playpilot-shadow-large: 2.4px 2.4px 3.2px rgba(0, 0, 0, .05), 3.2px 5.6px 5.6px rgba(0, 0, 0, .1), 1.6px 1.6px 12px rgba(0, 0, 0, .25);--playpilot-hover-filter-brightness: 1.1}[data-playpilot-injection-key]{position:relative}.playpilot-injection-highlight{outline:4px solid var(--playpilot-primary)!important;outline-offset:8px!important;border-radius:.8px;scroll-margin:80px}.playpilot-modal-open{overflow-y:hidden!important}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight]{font-weight:var(--playpilot-injection-font-weight)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-color]{color:var(--playpilot-injection-text-color)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-color-hover]:hover{color:var(--playpilot-injection-text-color-hover)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-decoration]{text-decoration:var(--playpilot-injection-text-decoration)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-decoration-hover]:hover{text-decoration:var(--playpilot-injection-text-decoration-hover)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-background-color]{background-color:var(--playpilot-injection-background-color)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-background-color-hover]:hover{background-color:var(--playpilot-injection-background-color-hover)}h1 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h2 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h3 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h4 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h5 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]){font-weight:inherit}h1 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h2 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h3 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h4 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h5 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings]{font-weight:var(--playpilot-injection-font-weight-headings)}::view-transition-old(playpilot-title-content),::view-transition-new(playpilot-title-content){height:100%}@keyframes playpilot-poster-fly-in{0%{clip-path:inset(0 0 100% 0);transform:translate(-50%) translateY(100%)}to{clip-path:inset(0 0 0 0)}}@keyframes playpilot-poster-fly-out{to{opacity:0;transform:translate(-50%) translateY(.5rem)}}.playpilot-floating-poster{opacity:0;position:absolute;bottom:calc(100% + .15em);left:50%;transform:translate(-50%);width:40px;height:auto;margin:0!important;border-radius:var(--playpilot-border-radius-small);box-shadow:0 2px 4px #0000001a;transform-origin:bottom center}.playpilot-floating-poster.loaded{animation:playpilot-poster-fly-in .6s cubic-bezier(.35,1.75,.75,1);opacity:1}.playpilot-floating-poster.animating-out{animation:playpilot-poster-fly-out .15s forwards}.playpilot-link-injections.svelte-1uha8ag *,[data-playpilot-explore] *{box-sizing:border-box}.playpilot-link-injections.svelte-1uha8ag svg,[data-playpilot-explore] svg{fill:none}.playpilot-link-injections.svelte-1uha8ag a,.playpilot-link-injections.svelte-1uha8ag button,.playpilot-link-injections.svelte-1uha8ag input,[data-playpilot-explore] a,[data-playpilot-explore] button,[data-playpilot-explore] input{transition:outline-offset .1s}.playpilot-link-injections.svelte-1uha8ag a:focus-visible,.playpilot-link-injections.svelte-1uha8ag button:focus-visible,.playpilot-link-injections.svelte-1uha8ag input:focus-visible,[data-playpilot-explore] a:focus-visible,[data-playpilot-explore] button:focus-visible,[data-playpilot-explore] input:focus-visible{outline:2px solid white;outline-offset:2px}
2
- /*$vite$:1*/`,document.head.appendChild(Ae);const Me=!1;var He=Array.isArray,fn=Array.prototype.indexOf,tr=Array.prototype.includes,hn=Array.from,Sc=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,Rl=Object.getOwnPropertyDescriptors,Ec=Object.prototype,Tc=Array.prototype,ha=Object.getPrototypeOf,Ol=Object.isExtensible;function ir(t){return typeof t=="function"}const ft=()=>{};function Pc(t){return typeof(t==null?void 0:t.then)=="function"}function zc(t){return t()}function ga(t){for(var e=0;e<t.length;e++)t[e]()}function Nl(){var t,e,i=new Promise((r,n)=>{t=r,e=n});return{promise:i,resolve:t,reject:e}}function ma(t,e,i=!1){return t===void 0?i?e():e:t}function Oi(t,e){if(Array.isArray(t))return t;if(e===void 0||!(Symbol.iterator in t))return Array.from(t);const i=[];for(const r of t)if(i.push(r),i.length===e)break;return i}const Je=2,rr=4,Lr=8,ya=1<<24,_t=16,Mt=32,bi=64,ba=128,St=512,Ue=1024,Ke=2048,Vt=4096,lt=8192,Et=16384,wi=32768,wa=1<<25,Wt=65536,gn=1<<17,Cc=1<<18,nr=1<<19,Fl=1<<20,Ut=1<<25,Ni=65536,mn=1<<21,ar=1<<22,xi=1<<23,Gt=Symbol("$state"),Hl=Symbol("legacy props"),Ic=Symbol(""),yn=Symbol("attributes"),xa=Symbol("class"),ka=Symbol("style"),Mr=Symbol("text"),bn=Symbol("form reset"),wn=new class extends Error{constructor(){super(...arguments);st(this,"name","StaleReactionError");st(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},_a=!!((uc=globalThis.document)!=null&&uc.contentType)&&globalThis.document.contentType.includes("xml");function Sa(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function jc(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ac(t,e,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Lc(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mc(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dc(t){throw new Error("https://svelte.dev/e/effect_orphan")}function qc(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Rc(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Oc(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Nc(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Fc(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Hc(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Bc=1,Vc=2,Bl=4,Wc=8,Uc=16,Gc=1,Yc=2,Kc=4,Zc=8,Qc=16,Jc=1,Xc=2,$c=4,ed=1,td=2,Ve=Symbol(),Vl="http://www.w3.org/1999/xhtml",Wl="http://www.w3.org/2000/svg",id="http://www.w3.org/1998/Math/MathML",rd="@attach";function nd(){console.warn("https://svelte.dev/e/derived_inert")}function ad(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function ld(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ul(t){return t===this.v}function Gl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Yl(t){return!Gl(t,this.v)}let lr=!1,od=!1;function sd(){lr=!0}let ze=null;function or(t){ze=t}function Dr(t){return Kl().get(t)}function qr(t,e){return Kl().set(t,e),e}function ee(t,e=!1,i){ze={p:ze,i:!1,c:null,e:null,s:t,x:null,r:me,l:lr&&!e?{s:null,u:null,$:[]}:null}}function te(t){var e=ze,i=e.e;if(i!==null){e.e=null;for(var r of i)ko(r)}return t!==void 0&&(e.x=t),e.i=!0,ze=e.p,t??{}}function Fi(){return!lr||ze!==null&&ze.l===null}function Kl(t){return ze===null&&Sa(),ze.c??(ze.c=new Map(cd(ze)||void 0))}function cd(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let Hi=[];function Zl(){var t=Hi;Hi=[],ga(t)}function Dt(t){if(Hi.length===0&&!cr){var e=Hi;queueMicrotask(()=>{e===Hi&&Zl()})}Hi.push(t)}function dd(){for(;Hi.length>0;)Zl()}function Ql(t){var e=me;if(e===null)return we.f|=xi,t;if(!(e.f&wi)&&!(e.f&rr))throw t;ki(t,e)}function ki(t,e){for(;e!==null;){if(e.f&ba){if(!(e.f&wi))throw t;try{e.b.error(t);return}catch(i){t=i}}e=e.parent}throw t}const pd=-7169;function Re(t,e){t.f=t.f&pd|e}function Ea(t){t.f&St||t.deps===null?Re(t,Ue):Re(t,Vt)}function Jl(t){if(t!==null)for(const e of t)!(e.f&Je)||!(e.f&Ni)||(e.f^=Ni,Jl(e.deps))}function Xl(t,e,i){t.f&Ke?e.add(t):t.f&Vt&&i.add(t),Jl(t.deps),Re(t,Ue)}let xn=!1;function ud(t){var e=xn;try{return xn=!1,[t(),xn]}finally{xn=e}}let Ta=null,sr=null,de=null,Rr=null,Xe=null,Pa=null,cr=!1,za=!1,dr=null,kn=null;var $l=0,s1=new Set;let vd=1;const aa=class aa{constructor(){oe(this,Se);st(this,"id",vd++);oe(this,xr,!1);st(this,"linked",!0);oe(this,Li,null);oe(this,Qi,null);st(this,"async_deriveds",new Map);st(this,"current",new Map);st(this,"previous",new Map);st(this,"unblocked",new Set);oe(this,kr,new Set);oe(this,_r,new Set);oe(this,Ji,new Set);oe(this,Sr,0);oe(this,vi,new Map);oe(this,nn,null);oe(this,bt,[]);oe(this,an,[]);oe(this,Mi,new Set);oe(this,ti,new Set);oe(this,ii,new Map);oe(this,Er,new Set);st(this,"is_fork",!1);oe(this,Tr,!1)}skip_effect(e){z(this,ii).has(e)||z(this,ii).set(e,{d:[],m:[]}),z(this,Er).delete(e)}unskip_effect(e,i=r=>this.schedule(r)){var r=z(this,ii).get(e);if(r){z(this,ii).delete(e);for(var n of r.d)Re(n,Ke),i(n);for(n of r.m)Re(n,Vt),i(n)}z(this,Er).add(e)}capture(e,i,r=!1){e.v!==Ve&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&xi||(this.current.set(e,[i,r]),Xe==null||Xe.set(e,i)),this.is_fork||(e.v=i)}activate(){de=this}deactivate(){de=null,Xe=null}flush(){try{za=!0,de=this,be(this,Se,vn).call(this)}finally{$l=0,Pa=null,dr=null,kn=null,za=!1,de=null,Xe=null,Bi.clear()}}discard(){for(const e of z(this,_r))e(this);z(this,_r).clear(),z(this,Ji).clear(),be(this,Se,Ar).call(this)}register_created_effect(e){z(this,an).push(e)}increment(e,i){if(fe(this,Sr,z(this,Sr)+1),e){let r=z(this,vi).get(i)??0;z(this,vi).set(i,r+1)}}decrement(e,i){if(fe(this,Sr,z(this,Sr)-1),e){let r=z(this,vi).get(i)??0;r===1?z(this,vi).delete(i):z(this,vi).set(i,r-1)}z(this,Tr)||(fe(this,Tr,!0),Dt(()=>{fe(this,Tr,!1),this.linked&&this.flush()}))}transfer_effects(e,i){for(const r of e)z(this,Mi).add(r);for(const r of i)z(this,ti).add(r);e.clear(),i.clear()}oncommit(e){z(this,kr).add(e)}ondiscard(e){z(this,_r).add(e)}on_fork_commit(e){z(this,Ji).add(e)}run_fork_commit_callbacks(){for(const e of z(this,Ji))e(this);z(this,Ji).clear()}settled(){return(z(this,nn)??fe(this,nn,Nl())).promise}static ensure(){var e;if(de===null){const i=de=new aa;be(e=i,Se,Ll).call(e),!za&&!cr&&Dt(()=>{z(i,xr)||i.flush()})}return de}apply(){{Xe=null;return}}schedule(e){var n;if(Pa=e,(n=e.b)!=null&&n.is_pending&&e.f&(rr|Lr|ya)&&!(e.f&wi)){e.b.defer_effect(e);return}for(var i=e;i.parent!==null;){i=i.parent;var r=i.f;if(dr!==null&&i===me&&(we===null||!(we.f&Je)))return;if(r&(bi|Mt)){if(!(r&Ue))return;i.f^=Ue}}z(this,bt).push(i)}};xr=new WeakMap,Li=new WeakMap,Qi=new WeakMap,kr=new WeakMap,_r=new WeakMap,Ji=new WeakMap,Sr=new WeakMap,vi=new WeakMap,nn=new WeakMap,bt=new WeakMap,an=new WeakMap,Mi=new WeakMap,ti=new WeakMap,ii=new WeakMap,Er=new WeakMap,Tr=new WeakMap,Se=new WeakSet,jl=function(){if(this.is_fork)return!0;for(const r of z(this,vi).keys()){for(var e=r,i=!1;e.parent!==null;){if(z(this,ii).has(e)){i=!0;break}e=e.parent}if(!i)return!0}return!1},vn=function(){var s,d,u,v;if(fe(this,xr,!0),$l++>1e3&&(be(this,Se,Ar).call(this),fd()),!be(this,Se,jl).call(this)){for(const p of z(this,Mi))z(this,ti).delete(p),Re(p,Ke),this.schedule(p);for(const p of z(this,ti))Re(p,Vt),this.schedule(p)}const e=z(this,bt);fe(this,bt,[]),this.apply();var i=dr=[],r=[],n=kn=[];for(const p of e)try{be(this,Se,Al).call(this,p,i,r)}catch(m){throw no(p),m}if(de=null,n.length>0){var a=aa.ensure();for(const p of n)a.schedule(p)}if(dr=null,kn=null,be(this,Se,jl).call(this)){be(this,Se,ua).call(this,r),be(this,Se,ua).call(this,i);for(const[p,m]of z(this,ii))ro(p,m);n.length>0&&be(s=de,Se,vn).call(s);return}const o=be(this,Se,bc).call(this);if(o){be(d=o,Se,wc).call(d,this);return}z(this,Mi).clear(),z(this,ti).clear();for(const p of z(this,kr))p(this);z(this,kr).clear(),Rr=this,to(r),to(i),Rr=null,(u=z(this,nn))==null||u.resolve();var l=de;if(this.linked&&z(this,Sr)===0&&be(this,Se,Ar).call(this),z(this,bt).length>0){l===null&&(l=this,be(this,Se,Ll).call(this));const p=l;z(p,bt).push(...z(this,bt).filter(m=>!z(p,bt).includes(m)))}l!==null&&be(v=l,Se,vn).call(v)},Al=function(e,i,r){e.f^=Ue;for(var n=e.first;n!==null;){var a=n.f,o=(a&(Mt|bi))!==0,l=o&&(a&Ue)!==0,s=l||(a&lt)!==0||z(this,ii).has(n);if(!s&&n.fn!==null){o?n.f^=Ue:a&rr?i.push(n):Hr(n)&&(a&_t&&z(this,ti).add(n),ur(n));var d=n.first;if(d!==null){n=d;continue}}for(;n!==null;){var u=n.next;if(u!==null){n=u;break}n=n.parent}}},bc=function(){for(var e=z(this,Li);e!==null;){if(!e.is_fork){for(const[i,[,r]]of this.current)if(e.current.has(i)&&!r)return e}e=z(e,Li)}return null},wc=function(e){var r;for(const[n,a]of e.current)!this.previous.has(n)&&e.previous.has(n)&&this.previous.set(n,e.previous.get(n)),this.current.set(n,a);for(const[n,a]of e.async_deriveds){const o=this.async_deriveds.get(n);o&&a.promise.then(o.resolve)}const i=n=>{var a=n.reactions;if(a!==null)for(const s of a){var o=s.f;if(o&Je)i(s);else{var l=s;o&(ar|_t)&&!this.async_deriveds.has(l)&&(z(this,ti).delete(l),Re(l,Ke),this.schedule(l))}}};for(const n of this.current.keys())i(n);this.oncommit(()=>e.discard()),be(r=e,Se,Ar).call(r),de=this,be(this,Se,vn).call(this)},ua=function(e){for(var i=0;i<e.length;i+=1)Xl(e[i],z(this,Mi),z(this,ti))},n1=function(){var u;be(this,Se,Ar).call(this);for(let v=Ta;v!==null;v=z(v,Qi)){var e=v.id<this.id,i=[];for(const[p,[m,g]]of this.current){if(v.current.has(p)){var r=v.current.get(p)[0];if(e&&m!==r)v.current.set(p,[m,g]);else continue}i.push(p)}if(e)for(const[p,m]of this.async_deriveds){const g=v.async_deriveds.get(p);g&&m.promise.then(g.resolve)}if(z(v,xr)){var n=[...v.current.keys()].filter(p=>!this.current.has(p));if(n.length===0)e&&v.discard();else if(i.length>0){if(e)for(const p of z(this,Er))v.unskip_effect(p,m=>{var g;m.f&(_t|ar)?v.schedule(m):be(g=v,Se,ua).call(g,[m])});v.activate();var a=new Set,o=new Map;for(var l of i)io(l,n,a,o);o=new Map;var s=[...v.current.keys()].filter(p=>this.current.has(p)?this.current.get(p)[0]!==p.v:!0);if(s.length>0)for(const p of z(this,an))!(p.f&(Et|lt|gn))&&Ca(p,s,o)&&(p.f&(ar|_t)?(Re(p,Ke),v.schedule(p)):z(v,Mi).add(p));if(z(v,bt).length>0){v.apply();for(var d of z(v,bt))be(u=v,Se,Al).call(u,d,[],[]);fe(v,bt,[])}v.deactivate()}}}},Ll=function(){sr===null?Ta=sr=this:(fe(sr,Qi,this),fe(this,Li,sr)),sr=this},Ar=function(){var e=z(this,Li),i=z(this,Qi);e===null?Ta=i:fe(e,Qi,i),i===null?sr=e:fe(i,Li,e),this.linked=!1};let _i=aa;function eo(t){var e=cr;cr=!0;try{for(var i;;){if(dd(),de===null)return i;de.flush()}}finally{cr=e}}function fd(){try{qc()}catch(t){ki(t,Pa)}}let qt=null;function to(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var r=t[i++];if(!(r.f&(Et|lt))&&Hr(r)&&(qt=new Set,ur(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&To(r),(qt==null?void 0:qt.size)>0)){Bi.clear();for(const n of qt){if(n.f&(Et|lt))continue;const a=[n];let o=n.parent;for(;o!==null;)qt.has(o)&&(qt.delete(o),a.push(o)),o=o.parent;for(let l=a.length-1;l>=0;l--){const s=a[l];s.f&(Et|lt)||ur(s)}}qt.clear()}}qt=null}}function io(t,e,i,r){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const a=n.f;a&Je?io(n,e,i,r):a&(ar|_t)&&!(a&Ke)&&Ca(n,e,r)&&(Re(n,Ke),Ia(n))}}function Ca(t,e,i){const r=i.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const n of t.deps){if(tr.call(e,n))return!0;if(n.f&Je&&Ca(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function Ia(t){de.schedule(t)}function ro(t,e){if(!(t.f&Mt&&t.f&Ue)){t.f&Ke?e.d.push(t):t.f&Vt&&e.m.push(t),Re(t,Ue);for(var i=t.first;i!==null;)ro(i,e),i=i.next}}function no(t){Re(t,Ue);for(var e=t.first;e!==null;)no(e),e=e.next}function ao(t){let e=0,i=Yt(0),r;return()=>{Ma()&&(c(i),Tn(()=>(e===0&&(r=Jt(()=>t(()=>Si(i)))),e+=1,()=>{Dt(()=>{e-=1,e===0&&(r==null||r(),r=void 0,Si(i))})})))}}var hd=Wt|nr;function lo(t,e,i,r){new gd(t,e,i,r)}class gd{constructor(e,i,r,n){oe(this,Ne);st(this,"parent");st(this,"is_pending",!1);st(this,"transform_error");oe(this,jt);oe(this,Cl,null);oe(this,At);oe(this,Xi);oe(this,pt);oe(this,Lt,null);oe(this,ot,null);oe(this,wt,null);oe(this,fi,null);oe(this,$i,0);oe(this,Di,0);oe(this,Pr,!1);oe(this,ln,new Set);oe(this,on,new Set);oe(this,hi,null);oe(this,la,ao(()=>(fe(this,hi,Yt(z(this,$i))),()=>{fe(this,hi,null)})));var a;fe(this,jt,e),fe(this,At,i),fe(this,Xi,o=>{var l=me;l.b=this,l.f|=ba,r(o)}),this.parent=me.b,this.transform_error=n??((a=this.parent)==null?void 0:a.transform_error)??(o=>o),fe(this,pt,Ei(()=>{be(this,Ne,Ml).call(this)},hd))}defer_effect(e){Xl(e,z(this,ln),z(this,on))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!z(this,At).pending}update_pending_count(e,i){be(this,Ne,Dl).call(this,e,i),fe(this,$i,z(this,$i)+e),!(!z(this,hi)||z(this,Pr))&&(fe(this,Pr,!0),Dt(()=>{fe(this,Pr,!1),z(this,hi)&&ni(z(this,hi),z(this,$i))}))}get_effect_pending(){return z(this,la).call(this),c(z(this,hi))}error(e){if(!z(this,At).onerror&&!z(this,At).failed)throw e;de!=null&&de.is_fork?(z(this,Lt)&&de.skip_effect(z(this,Lt)),z(this,ot)&&de.skip_effect(z(this,ot)),z(this,wt)&&de.skip_effect(z(this,wt)),de.on_fork_commit(()=>{be(this,Ne,ql).call(this,e)})):be(this,Ne,ql).call(this,e)}}jt=new WeakMap,Cl=new WeakMap,At=new WeakMap,Xi=new WeakMap,pt=new WeakMap,Lt=new WeakMap,ot=new WeakMap,wt=new WeakMap,fi=new WeakMap,$i=new WeakMap,Di=new WeakMap,Pr=new WeakMap,ln=new WeakMap,on=new WeakMap,hi=new WeakMap,la=new WeakMap,Ne=new WeakSet,a1=function(){try{fe(this,Lt,ct(()=>z(this,Xi).call(this,z(this,jt))))}catch(e){this.error(e)}},l1=function(e){const i=z(this,At).failed;i&&fe(this,wt,ct(()=>{i(z(this,jt),()=>e,()=>()=>{})}))},o1=function(){const e=z(this,At).pending;e&&(this.is_pending=!0,fe(this,ot,ct(()=>e(z(this,jt)))),Dt(()=>{var i=fe(this,fi,document.createDocumentFragment()),r=Kt();i.append(r),fe(this,Lt,be(this,Ne,fa).call(this,()=>ct(()=>z(this,Xi).call(this,r)))),z(this,Di)===0&&(z(this,jt).before(i),fe(this,fi,null),Ui(z(this,ot),()=>{fe(this,ot,null)}),be(this,Ne,va).call(this,de))}))},Ml=function(){try{if(this.is_pending=this.has_pending_snippet(),fe(this,Di,0),fe(this,$i,0),fe(this,Lt,ct(()=>{z(this,Xi).call(this,z(this,jt))})),z(this,Di)>0){var e=fe(this,fi,document.createDocumentFragment());Ra(z(this,Lt),e);const i=z(this,At).pending;fe(this,ot,ct(()=>i(z(this,jt))))}else be(this,Ne,va).call(this,de)}catch(i){this.error(i)}},va=function(e){this.is_pending=!1,e.transfer_effects(z(this,ln),z(this,on))},fa=function(e){var i=me,r=we,n=ze;Qt(z(this,pt)),Tt(z(this,pt)),or(z(this,pt).ctx);try{return _i.ensure(),e()}catch(a){return Ql(a),null}finally{Qt(i),Tt(r),or(n)}},Dl=function(e,i){var r;if(!this.has_pending_snippet()){this.parent&&be(r=this.parent,Ne,Dl).call(r,e,i);return}fe(this,Di,z(this,Di)+e),z(this,Di)===0&&(be(this,Ne,va).call(this,i),z(this,ot)&&Ui(z(this,ot),()=>{fe(this,ot,null)}),z(this,fi)&&(z(this,jt).before(z(this,fi)),fe(this,fi,null)))},ql=function(e){z(this,Lt)&&($e(z(this,Lt)),fe(this,Lt,null)),z(this,ot)&&($e(z(this,ot)),fe(this,ot,null)),z(this,wt)&&($e(z(this,wt)),fe(this,wt,null));var i=z(this,At).onerror;let r=z(this,At).failed;var n=!1,a=!1;const o=()=>{if(n){ld();return}n=!0,a&&Hc(),z(this,wt)!==null&&Ui(z(this,wt),()=>{fe(this,wt,null)}),be(this,Ne,fa).call(this,()=>{be(this,Ne,Ml).call(this)})},l=s=>{try{a=!0,i==null||i(s,o),a=!1}catch(d){ki(d,z(this,pt)&&z(this,pt).parent)}r&&fe(this,wt,be(this,Ne,fa).call(this,()=>{try{return ct(()=>{var d=me;d.b=this,d.f|=ba,r(z(this,jt),()=>s,()=>o)})}catch(d){return ki(d,z(this,pt).parent),null}}))};Dt(()=>{var s;try{s=this.transform_error(e)}catch(d){ki(d,z(this,pt)&&z(this,pt).parent);return}s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(l,d=>ki(d,z(this,pt)&&z(this,pt).parent)):l(s)})};function oo(t,e,i,r){const n=Fi()?pr:Sn;var a=t.filter(p=>!p.settled);if(i.length===0&&a.length===0){r(e.map(n));return}var o=me,l=so(),s=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(p=>p.promise)):null;function d(p){if(!(o.f&Et)){l();try{r(p)}catch(m){ki(m,o)}Or()}}var u=co();if(i.length===0){s.then(()=>d(e.map(n))).finally(u);return}function v(){Promise.all(i.map(p=>md(p))).then(p=>d([...e.map(n),...p])).catch(p=>ki(p,o)).finally(u)}s?s.then(()=>{l(),v(),Or()}):v()}function so(){var t=me,e=we,i=ze,r=de;return function(a=!0){Qt(t),Tt(e),or(i),a&&!(t.f&Et)&&(r==null||r.activate(),r==null||r.apply())}}function Or(t=!0){Qt(null),Tt(null),or(null),t&&(de==null||de.deactivate())}function co(){var t=me,e=t.b,i=de,r=e.is_rendered();return e.update_pending_count(1,i),i.increment(r,t),()=>{e.update_pending_count(-1,i),i.decrement(r,t)}}function pr(t){var e=Je|Ke;return me!==null&&(me.f|=nr),{ctx:ze,deps:null,effects:null,equals:Ul,f:e,fn:t,reactions:null,rv:0,v:Ve,wv:0,parent:me,ac:null}}const _n=Symbol("obsolete");function md(t,e,i){let r=me;r===null&&jc();var n=void 0,a=Yt(Ve),o=!we,l=new Set;return jd(()=>{var m;var s=me,d=Nl();n=d.promise;try{Promise.resolve(t()).then(d.resolve,g=>{g!==wn&&d.reject(g)}).finally(Or)}catch(g){d.reject(g),Or()}var u=de;if(o){if(s.f&wi)var v=co();if(r.b.is_rendered())(m=u.async_deriveds.get(s))==null||m.reject(_n);else for(const g of l.values())g.reject(_n);l.add(d),u.async_deriveds.set(s,d)}const p=(g,h=void 0)=>{v==null||v(),l.delete(d),h!==_n&&(u.activate(),h?(a.f|=xi,ni(a,h)):(a.f&xi&&(a.f^=xi),ni(a,g)),u.deactivate())};d.promise.then(p,g=>p(null,g||"unknown"))}),Fr(()=>{for(const s of l)s.reject(_n)}),new Promise(s=>{function d(u){function v(){u===n?s(a):d(n)}u.then(v,v)}d(n)})}function B(t){const e=pr(t);return Io(e),e}function Sn(t){const e=pr(t);return e.equals=Yl,e}function yd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)$e(e[i])}}function ja(t){var e,i=me,r=t.parent;if(!ai&&r!==null&&r.f&(Et|lt))return nd(),t.v;Qt(r);try{t.f&=~Ni,yd(t),e=Do(t)}finally{Qt(i)}return e}function po(t){var e=ja(t);if(!t.equals(e)&&(t.wv=Lo(),(!(de!=null&&de.is_fork)||t.deps===null)&&(de!==null?(de.capture(t,e,!0),Rr==null||Rr.capture(t,e,!0)):t.v=e,t.deps===null))){Re(t,Ue);return}ai||(Xe!==null?(Ma()||de!=null&&de.is_fork)&&Xe.set(t,e):Ea(t))}function bd(t){var e,i;if(t.effects!==null)for(const r of t.effects)(r.teardown||r.ac)&&((e=r.teardown)==null||e.call(r),(i=r.ac)==null||i.abort(wn),r.teardown=ft,r.ac=null,Br(r,0),Da(r))}function uo(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&ur(e)}let En=new Set;const Bi=new Map;let vo=!1;function Yt(t,e){var i={f:0,v:t,reactions:null,equals:Ul,rv:0,wv:0};return i}function Y(t,e){const i=Yt(t);return Io(i),i}function Aa(t,e=!1,i=!0){var n;const r=Yt(t);return e||(r.equals=Yl),lr&&i&&ze!==null&&ze.l!==null&&((n=ze.l).s??(n.s=[])).push(r),r}function F(t,e,i=!1){we!==null&&(!Ot||we.f&gn)&&Fi()&&we.f&(Je|_t|ar|gn)&&(Pt===null||!tr.call(Pt,t))&&Fc();let r=i?De(e):e;return ni(t,r,kn)}function ni(t,e,i=null){if(!t.equals(e)){Bi.set(t,ai?e:t.v);var r=_i.ensure();if(r.capture(t,e),t.f&Je){const n=t;t.f&Ke&&ja(n),Xe===null&&Ea(n)}t.wv=Lo(),fo(t,Ke,i),Fi()&&me!==null&&me.f&Ue&&!(me.f&(Mt|bi))&&(zt===null?Ld([t]):zt.push(t)),!r.is_fork&&En.size>0&&!vo&&wd()}return e}function wd(){vo=!1;for(const t of En){t.f&Ue&&Re(t,Vt);let e;try{e=Hr(t)}catch{e=!0}e&&ur(t)}En.clear()}function Si(t){F(t,t.v+1)}function fo(t,e,i){var r=t.reactions;if(r!==null)for(var n=Fi(),a=r.length,o=0;o<a;o++){var l=r[o],s=l.f;if(!(!n&&l===me)){var d=(s&Ke)===0;if(d&&Re(l,e),s&gn)En.add(l);else if(s&Je){var u=l;Xe==null||Xe.delete(u),s&Ni||(s&St&&(me===null||!(me.f&mn))&&(l.f|=Ni),fo(u,Vt,i))}else if(d){var v=l;s&_t&&qt!==null&&qt.add(v),i!==null?i.push(v):Ia(v)}}}}function De(t){if(typeof t!="object"||t===null||Gt in t)return t;const e=ha(t);if(e!==Ec&&e!==Tc)return t;var i=new Map,r=He(t),n=Y(0),a=li,o=l=>{if(li===a)return l();var s=we,d=li;Tt(null),Ao(a);var u=l();return Tt(s),Ao(d),u};return r&&i.set("length",Y(t.length)),new Proxy(t,{defineProperty(l,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Oc();var u=i.get(s);return u===void 0?o(()=>{var v=Y(d.value);return i.set(s,v),v}):F(u,d.value,!0),!0},deleteProperty(l,s){var d=i.get(s);if(d===void 0){if(s in l){const u=o(()=>Y(Ve));i.set(s,u),Si(n)}}else F(d,Ve),Si(n);return!0},get(l,s,d){var m;if(s===Gt)return t;var u=i.get(s),v=s in l;if(u===void 0&&(!v||(m=yi(l,s))!=null&&m.writable)&&(u=o(()=>{var g=De(v?l[s]:Ve),h=Y(g);return h}),i.set(s,u)),u!==void 0){var p=c(u);return p===Ve?void 0:p}return Reflect.get(l,s,d)},getOwnPropertyDescriptor(l,s){var d=Reflect.getOwnPropertyDescriptor(l,s);if(d&&"value"in d){var u=i.get(s);u&&(d.value=c(u))}else if(d===void 0){var v=i.get(s),p=v==null?void 0:v.v;if(v!==void 0&&p!==Ve)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(l,s){var p;if(s===Gt)return!0;var d=i.get(s),u=d!==void 0&&d.v!==Ve||Reflect.has(l,s);if(d!==void 0||me!==null&&(!u||(p=yi(l,s))!=null&&p.writable)){d===void 0&&(d=o(()=>{var m=u?De(l[s]):Ve,g=Y(m);return g}),i.set(s,d));var v=c(d);if(v===Ve)return!1}return u},set(l,s,d,u){var k;var v=i.get(s),p=s in l;if(r&&s==="length")for(var m=d;m<v.v;m+=1){var g=i.get(m+"");g!==void 0?F(g,Ve):m in l&&(g=o(()=>Y(Ve)),i.set(m+"",g))}if(v===void 0)(!p||(k=yi(l,s))!=null&&k.writable)&&(v=o(()=>Y(void 0)),F(v,De(d)),i.set(s,v));else{p=v.v!==Ve;var h=o(()=>De(d));F(v,h)}var y=Reflect.getOwnPropertyDescriptor(l,s);if(y!=null&&y.set&&y.set.call(u,d),!p){if(r&&typeof s=="string"){var b=i.get("length"),_=Number(s);Number.isInteger(_)&&_>=b.v&&F(b,_+1)}Si(n)}return!0},ownKeys(l){c(n);var s=Reflect.ownKeys(l).filter(v=>{var p=i.get(v);return p===void 0||p.v!==Ve});for(var[d,u]of i)u.v!==Ve&&!(d in l)&&s.push(d);return s},setPrototypeOf(){Nc()}})}function ho(t){try{if(t!==null&&typeof t=="object"&&Gt in t)return t[Gt]}catch{}return t}function xd(t,e){return Object.is(ho(t),ho(e))}var Ie,go,mo,yo;function kd(){if(Ie===void 0){Ie=window,go=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;mo=yi(e,"firstChild").get,yo=yi(e,"nextSibling").get,Ol(t)&&(t[xa]=void 0,t[yn]=null,t[ka]=void 0,t.__e=void 0),Ol(i)&&(i[Mr]=void 0)}}function Kt(t=""){return document.createTextNode(t)}function Zt(t){return mo.call(t)}function Nr(t){return yo.call(t)}function S(t,e){return Zt(t)}function Z(t,e=!1){{var i=Zt(t);return i instanceof Comment&&i.data===""?Nr(i):i}}function j(t,e=1,i=!1){let r=t;for(;e--;)r=Nr(r);return r}function _d(t){t.textContent=""}function bo(){return!1}function La(t,e,i){return document.createElementNS(e??Vl,t,void 0)}function Sd(t,e){if(e){const i=document.body;t.autofocus=!0,Dt(()=>{document.activeElement===i&&t.focus()})}}let wo=!1;function Ed(){wo||(wo=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const i of t.target.elements)(e=i[bn])==null||e.call(i)})},{capture:!0}))}function Td(t,e,i,r=!0){r&&i();for(var n of e)t.addEventListener(n,i);Fr(()=>{for(var a of e)t.removeEventListener(a,i)})}function Vi(t){var e=we,i=me;Tt(null),Qt(null);try{return t()}finally{Tt(e),Qt(i)}}function Pd(t,e,i,r=i){t.addEventListener(e,()=>Vi(i));const n=t[bn];n?t[bn]=()=>{n(),r(!0)}:t[bn]=()=>r(!0),Ed()}function xo(t){me===null&&(we===null&&Dc(),Mc()),ai&&Lc()}function zd(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Rt(t,e){var i=me;i!==null&&i.f&lt&&(t|=lt);var r={ctx:ze,deps:null,nodes:null,f:t|Ke|St,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};de==null||de.register_created_effect(r);var n=r;if(t&rr)dr!==null?dr.push(r):_i.ensure().schedule(r);else if(e!==null){try{ur(r)}catch(o){throw $e(r),o}n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&!(n.f&nr)&&(n=n.first,t&_t&&t&Wt&&n!==null&&(n.f|=Wt))}if(n!==null&&(n.parent=i,i!==null&&zd(n,i),we!==null&&we.f&Je&&!(t&bi))){var a=we;(a.effects??(a.effects=[])).push(n)}return r}function Ma(){return we!==null&&!Ot}function Fr(t){const e=Rt(Lr,null);return Re(e,Ue),e.teardown=t,e}function Ge(t){xo();var e=me.f,i=!we&&(e&Mt)!==0&&(e&wi)===0;if(i){var r=ze;(r.e??(r.e=[])).push(t)}else return ko(t)}function ko(t){return Rt(rr|Fl,t)}function Cd(t){return xo(),Rt(Lr|Fl,t)}function Id(t){_i.ensure();const e=Rt(bi|nr,t);return(i={})=>new Promise(r=>{i.outro?Ui(e,()=>{$e(e),r(void 0)}):($e(e),r(void 0))})}function Wi(t){return Rt(rr,t)}function jd(t){return Rt(ar|nr,t)}function Tn(t,e=0){return Rt(Lr|e,t)}function H(t,e=[],i=[],r=[]){oo(r,e,i,n=>{Rt(Lr,()=>t(...n.map(c)))})}function Ei(t,e=0){var i=Rt(_t|e,t);return i}function _o(t,e=0){var i=Rt(ya|e,t);return i}function ct(t){return Rt(Mt|nr,t)}function So(t){var e=t.teardown;if(e!==null){const i=ai,r=we;Co(!0),Tt(null);try{e.call(null)}finally{Co(i),Tt(r)}}}function Da(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&Vi(()=>{n.abort(wn)});var r=i.next;i.f&bi?i.parent=null:$e(i,e),i=r}}function Ad(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Mt||$e(e),e=i}}function $e(t,e=!0){var i=!1;(e||t.f&Cc)&&t.nodes!==null&&t.nodes.end!==null&&(Eo(t.nodes.start,t.nodes.end),i=!0),Re(t,wa),Da(t,e&&!i),Br(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const a of r)a.stop();So(t),t.f^=wa,t.f|=Et;var n=t.parent;n!==null&&n.first!==null&&To(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Eo(t,e){for(;t!==null;){var i=t===e?null:Nr(t);t.remove(),t=i}}function To(t){var e=t.parent,i=t.prev,r=t.next;i!==null&&(i.next=r),r!==null&&(r.prev=i),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function Ui(t,e,i=!0){var r=[];Po(t,r,!0);var n=()=>{i&&$e(t),e&&e()},a=r.length;if(a>0){var o=()=>--a||n();for(var l of r)l.out(o)}else n()}function Po(t,e,i){if(!(t.f&lt)){t.f^=lt;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||i)&&e.push(l);for(var n=t.first;n!==null;){var a=n.next;if(!(n.f&bi)){var o=(n.f&Wt)!==0||(n.f&Mt)!==0&&(t.f&_t)!==0;Po(n,e,o?i:!1)}n=a}}}function qa(t){zo(t,!0)}function zo(t,e){if(t.f&lt){t.f^=lt,t.f&Ue||(Re(t,Ke),_i.ensure().schedule(t));for(var i=t.first;i!==null;){var r=i.next,n=(i.f&Wt)!==0||(i.f&Mt)!==0;zo(i,n?e:!1),i=r}var a=t.nodes&&t.nodes.t;if(a!==null)for(const o of a)(o.is_global||e)&&o.in()}}function Ra(t,e){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end;i!==null;){var n=i===r?null:Nr(i);e.append(i),i=n}}let Pn=!1,ai=!1;function Co(t){ai=t}let we=null,Ot=!1;function Tt(t){we=t}let me=null;function Qt(t){me=t}let Pt=null;function Io(t){we!==null&&(Pt===null?Pt=[t]:Pt.push(t))}let dt=null,ht=0,zt=null;function Ld(t){zt=t}let jo=1,Gi=0,li=Gi;function Ao(t){li=t}function Lo(){return++jo}function Hr(t){var e=t.f;if(e&Ke)return!0;if(e&Je&&(t.f&=~Ni),e&Vt){for(var i=t.deps,r=i.length,n=0;n<r;n++){var a=i[n];if(Hr(a)&&po(a),a.wv>t.wv)return!0}e&St&&Xe===null&&Re(t,Ue)}return!1}function Mo(t,e,i=!0){var r=t.reactions;if(r!==null&&!(Pt!==null&&tr.call(Pt,t)))for(var n=0;n<r.length;n++){var a=r[n];a.f&Je?Mo(a,e,!1):e===a&&(i?Re(a,Ke):a.f&Ue&&Re(a,Vt),Ia(a))}}function Do(t){var h;var e=dt,i=ht,r=zt,n=we,a=Pt,o=ze,l=Ot,s=li,d=t.f;dt=null,ht=0,zt=null,we=d&(Mt|bi)?null:t,Pt=null,or(t.ctx),Ot=!1,li=++Gi,t.ac!==null&&(Vi(()=>{t.ac.abort(wn)}),t.ac=null);try{t.f|=mn;var u=t.fn,v=u();t.f|=wi;var p=t.deps,m=de==null?void 0:de.is_fork;if(dt!==null){var g;if(m||Br(t,ht),p!==null&&ht>0)for(p.length=ht+dt.length,g=0;g<dt.length;g++)p[ht+g]=dt[g];else t.deps=p=dt;if(Ma()&&t.f&St)for(g=ht;g<p.length;g++)((h=p[g]).reactions??(h.reactions=[])).push(t)}else!m&&p!==null&&ht<p.length&&(Br(t,ht),p.length=ht);if(Fi()&&zt!==null&&!Ot&&p!==null&&!(t.f&(Je|Vt|Ke)))for(g=0;g<zt.length;g++)Mo(zt[g],t);if(n!==null&&n!==t){if(Gi++,n.deps!==null)for(let y=0;y<i;y+=1)n.deps[y].rv=Gi;if(e!==null)for(const y of e)y.rv=Gi;zt!==null&&(r===null?r=zt:r.push(...zt))}return t.f&xi&&(t.f^=xi),v}catch(y){return Ql(y)}finally{t.f^=mn,dt=e,ht=i,zt=r,we=n,Pt=a,or(o),Ot=l,li=s}}function Md(t,e){let i=e.reactions;if(i!==null){var r=fn.call(i,t);if(r!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[r]=i[n],i.pop())}}if(i===null&&e.f&Je&&(dt===null||!tr.call(dt,e))){var a=e;a.f&St&&(a.f^=St,a.f&=~Ni),a.v!==Ve&&Ea(a),bd(a),Br(a,0)}}function Br(t,e){var i=t.deps;if(i!==null)for(var r=e;r<i.length;r++)Md(t,i[r])}function ur(t){var e=t.f;if(!(e&Et)){Re(t,Ue);var i=me,r=Pn;me=t,Pn=!0;try{e&(_t|ya)?Ad(t):Da(t),So(t);var n=Do(t);t.teardown=typeof n=="function"?n:null,t.wv=jo;var a;Me&&od&&t.f&Ke&&t.deps}finally{Pn=r,me=i}}}async function Vr(){await Promise.resolve(),eo()}function c(t){var e=t.f,i=(e&Je)!==0;if(we!==null&&!Ot){var r=me!==null&&(me.f&Et)!==0;if(!r&&(Pt===null||!tr.call(Pt,t))){var n=we.deps;if(we.f&mn)t.rv<Gi&&(t.rv=Gi,dt===null&&n!==null&&n[ht]===t?ht++:dt===null?dt=[t]:dt.push(t));else{(we.deps??(we.deps=[])).push(t);var a=t.reactions;a===null?t.reactions=[we]:tr.call(a,we)||a.push(we)}}}if(ai&&Bi.has(t))return Bi.get(t);if(i){var o=t;if(ai){var l=o.v;return(!(o.f&Ue)&&o.reactions!==null||Ro(o))&&(l=ja(o)),Bi.set(o,l),l}var s=(o.f&St)===0&&!Ot&&we!==null&&(Pn||(we.f&St)!==0),d=(o.f&wi)===0;Hr(o)&&(s&&(o.f|=St),po(o)),s&&!d&&(uo(o),qo(o))}if(Xe!=null&&Xe.has(t))return Xe.get(t);if(t.f&xi)throw t.v;return t.v}function qo(t){if(t.f|=St,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Je&&!(e.f&St)&&(uo(e),qo(e))}function Ro(t){if(t.v===Ve)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Bi.has(e)||e.f&Je&&Ro(e))return!0;return!1}function Jt(t){var e=Ot;try{return Ot=!0,t()}finally{Ot=e}}function Oo(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Gt in t)Oa(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&Gt in i&&Oa(i)}}}function Oa(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 r in t)try{Oa(t[r],e)}catch{}const i=ha(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const r=Rl(i);for(let n in r){const a=r[n].get;if(a)try{a.call(t)}catch{}}}}}function Dd(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const qd=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Rd(t){return qd.includes(t)}const Od={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 Nd(t){return t=t.toLowerCase(),Od[t]??t}const Fd=["touchstart","touchmove"];function Hd(t){return Fd.includes(t)}const Yi=Symbol("events"),No=new Set,Na=new Set;function Fa(t,e,i,r={}){function n(a){if(r.capture||Ha.call(e,a),!a.cancelBubble)return Vi(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Dt(()=>{e.addEventListener(t,n,r)}):e.addEventListener(t,n,r),n}function Bd(t,e,i,r={}){var n=Fa(e,t,i,r);return()=>{t.removeEventListener(e,n,r)}}function xe(t,e,i,r,n){var a={capture:r,passive:n},o=Fa(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Fr(()=>{e.removeEventListener(t,o,a)})}function ae(t,e,i){(e[Yi]??(e[Yi]={}))[t]=i}function he(t){for(var e=0;e<t.length;e++)No.add(t[e]);for(var i of Na)i(t)}let Fo=null;function Ha(t){var y,b;var e=this,i=e.ownerDocument,r=t.type,n=((y=t.composedPath)==null?void 0:y.call(t))||[],a=n[0]||t.target;Fo=t;var o=0,l=Fo===t&&t[Yi];if(l){var s=n.indexOf(l);if(s!==-1&&(e===document||e===window)){t[Yi]=e;return}var d=n.indexOf(e);if(d===-1)return;s<=d&&(o=s)}if(a=n[o]||t.target,a!==e){Sc(t,"currentTarget",{configurable:!0,get(){return a||i}});var u=we,v=me;Tt(null),Qt(null);try{for(var p,m=[];a!==null;){var g=a.assignedSlot||a.parentNode||a.host||null;try{var h=(b=a[Yi])==null?void 0:b[r];h!=null&&(!a.disabled||t.target===a)&&h.call(a,t)}catch(_){p?m.push(_):p=_}if(t.cancelBubble||g===e||g===null)break;a=g}if(p){for(let _ of m)queueMicrotask(()=>{throw _});throw p}}finally{t[Yi]=e,delete t.currentTarget,Tt(u),Qt(v)}}}const Ba=((vc=globalThis==null?void 0:globalThis.window)==null?void 0:vc.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Vd(t){return(Ba==null?void 0:Ba.createHTML(t))??t}function Ho(t){var e=La("template");return e.innerHTML=Vd(t.replaceAll("<!>","<!---->")),e.content}function Ti(t,e){var i=me;i.nodes===null&&(i.nodes={start:t,end:e,a:null,t:null})}function C(t,e){var i=(e&ed)!==0,r=(e&td)!==0,n,a=!t.startsWith("<!>");return()=>{n===void 0&&(n=Ho(a?t:"<!>"+t),i||(n=Zt(n)));var o=r||go?document.importNode(n,!0):n.cloneNode(!0);if(i){var l=Zt(o),s=o.lastChild;Ti(l,s)}else Ti(o,o);return o}}function Wd(t,e,i="svg"){var r=!t.startsWith("<!>"),n=`<${i}>${r?t:"<!>"+t}</${i}>`,a;return()=>{if(!a){var o=Ho(n),l=Zt(o);a=Zt(l)}var s=a.cloneNode(!0);return Ti(s,s),s}}function et(t,e){return Wd(t,e,"svg")}function gt(t=""){{var e=Kt(t+"");return Ti(e,e),e}}function ge(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Kt();return t.append(e,i),Ti(e,i),t}function w(t,e){t!==null&&t.before(e)}let zn=!0;function Cn(t){zn=t}function Q(t,e){var i=e==null?"":typeof e=="object"?`${e}`:e;i!==(t[Mr]??(t[Mr]=t.nodeValue))&&(t[Mr]=i,t.nodeValue=`${i}`)}function Ct(t,e){return Ud(t,e)}const In=new Map;function Ud(t,{target:e,anchor:i,props:r={},events:n,context:a,intro:o=!0,transformError:l}){kd();var s=void 0,d=Id(()=>{var u=i??e.appendChild(Kt());lo(u,{pending:()=>{}},m=>{ee({});var g=ze;a&&(g.c=a),n&&(r.$$events=n),zn=o,s=t(m,r)||{},zn=!0,te()},l);var v=new Set,p=m=>{for(var g=0;g<m.length;g++){var h=m[g];if(!v.has(h)){v.add(h);var y=Hd(h);for(const k of[e,document]){var b=In.get(k);b===void 0&&(b=new Map,In.set(k,b));var _=b.get(h);_===void 0?(k.addEventListener(h,Ha,{passive:y}),b.set(h,1)):b.set(h,_+1)}}}};return p(hn(No)),Na.add(p),()=>{var y;for(var m of v)for(const b of[e,document]){var g=In.get(b),h=g.get(m);--h==0?(b.removeEventListener(m,Ha),g.delete(m),g.size===0&&In.delete(b)):g.set(m,h)}Na.delete(p),u!==i&&((y=u.parentNode)==null||y.removeChild(u))}});return Va.set(s,d),s}let Va=new WeakMap;function Ki(t,e){const i=Va.get(t);return i?(Va.delete(t),i(e)):Promise.resolve()}class vr{constructor(e,i=!0){st(this,"anchor");oe(this,Ht,new Map);oe(this,ri,new Map);oe(this,xt,new Map);oe(this,er,new Set);oe(this,sn,!0);oe(this,cn,e=>{if(z(this,Ht).has(e)){var i=z(this,Ht).get(e),r=z(this,ri).get(i);if(r)qa(r),z(this,er).delete(i);else{var n=z(this,xt).get(i);n&&(z(this,ri).set(i,n.effect),z(this,xt).delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),r=n.effect)}for(const[a,o]of z(this,Ht)){if(z(this,Ht).delete(a),a===e)break;const l=z(this,xt).get(o);l&&($e(l.effect),z(this,xt).delete(o))}for(const[a,o]of z(this,ri)){if(a===i||z(this,er).has(a))continue;const l=()=>{if(Array.from(z(this,Ht).values()).includes(a)){var d=document.createDocumentFragment();Ra(o,d),d.append(Kt()),z(this,xt).set(a,{effect:o,fragment:d})}else $e(o);z(this,er).delete(a),z(this,ri).delete(a)};z(this,sn)||!r?(z(this,er).add(a),Ui(o,l,!1)):l()}}});oe(this,oa,e=>{z(this,Ht).delete(e);const i=Array.from(z(this,Ht).values());for(const[r,n]of z(this,xt))i.includes(r)||($e(n.effect),z(this,xt).delete(r))});this.anchor=e,fe(this,sn,i)}ensure(e,i){var r=de,n=bo();if(i&&!z(this,ri).has(e)&&!z(this,xt).has(e))if(n){var a=document.createDocumentFragment(),o=Kt();a.append(o),z(this,xt).set(e,{effect:ct(()=>i(o)),fragment:a})}else z(this,ri).set(e,ct(()=>i(this.anchor)));if(z(this,Ht).set(r,e),n){for(const[l,s]of z(this,ri))l===e?r.unskip_effect(s):r.skip_effect(s);for(const[l,s]of z(this,xt))l===e?r.unskip_effect(s.effect):r.skip_effect(s.effect);r.oncommit(z(this,cn)),r.ondiscard(z(this,oa))}else z(this,cn).call(this,r)}}Ht=new WeakMap,ri=new WeakMap,xt=new WeakMap,er=new WeakMap,sn=new WeakMap,cn=new WeakMap,oa=new WeakMap;const Gd=0,Bo=1,Yd=2;function Pi(t,e,i,r,n){var a=Fi(),o=Ve,l=a?Yt(o):Aa(o,!1,!1),s=a?Yt(o):Aa(o,!1,!1),d=new vr(t);Ei(()=>{var u=de;u.deactivate();var v=e();u.activate();var p=!1;if(Pc(v)){var m=so(),g=!1;const h=y=>{if(!p){g=!0,m(!1),_i.ensure();try{y()}finally{Or(!1),cr||eo()}}};v.then(y=>{h(()=>{ni(l,y),d.ensure(Bo,r&&(b=>r(b,l)))})},y=>{h(()=>{if(ni(s,y),d.ensure(Yd,n&&(b=>n(b,s))),!n)throw s.v})}),Dt(()=>{g||h(()=>{d.ensure(Gd,i)})})}else ni(l,v),d.ensure(Bo,r&&(h=>r(h,l)));return()=>{p=!0}})}function W(t,e,i=!1){var r=new vr(t),n=i?Wt:0;function a(o,l){r.ensure(o,l)}Ei(()=>{var o=!1;e((l,s=0)=>{o=!0,a(s,l)}),o||a(-1,null)},n)}const Kd=Symbol("NaN");function Wr(t,e,i){var r=new vr(t),n=!Fi();Ei(()=>{var a=e();a!==a&&(a=Kd),n&&a!==null&&typeof a=="object"&&(a={}),r.ensure(a,i)})}function je(t,e){return e}function Zd(t,e,i){for(var r=[],n=e.length,a,o=e.length,l=0;l<n;l++){let v=e[l];Ui(v,()=>{if(a){if(a.pending.delete(v),a.done.add(v),a.pending.size===0){var p=t.outrogroups;Wa(t,hn(a.done)),p.delete(a),p.size===0&&(t.outrogroups=null)}}else o-=1},!1)}if(o===0){var s=r.length===0&&i!==null;if(s){var d=i,u=d.parentNode;_d(u),u.append(d),t.items.clear()}Wa(t,e,!s)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function Wa(t,e,i=!0){var r;if(t.pending.size>0){r=new Set;for(const o of t.pending.values())for(const l of o)r.add(t.items.get(l).e)}for(var n=0;n<e.length;n++){var a=e[n];if(r!=null&&r.has(a)){a.f|=Ut;const o=document.createDocumentFragment();Ra(a,o)}else $e(e[n],i)}}var Vo;function Ce(t,e,i,r,n,a=null){var o=t,l=new Map,s=(e&Bl)!==0;if(s){var d=t;o=d.appendChild(Kt())}var u=null,v=Sn(()=>{var k=i();return He(k)?k:k==null?[]:hn(k)}),p,m=new Map,g=!0;function h(k){_.effect.f&Et||(_.pending.delete(k),_.fallback=u,Qd(_,p,o,e,r),u!==null&&(p.length===0?u.f&Ut?(u.f^=Ut,Gr(u,null,o)):qa(u):Ui(u,()=>{u=null})))}function y(k){_.pending.delete(k)}var b=Ei(()=>{p=c(v);for(var k=p.length,I=new Set,E=de,L=bo(),P=0;P<k;P+=1){var R=p[P],M=r(R,P),N=g?null:l.get(M);N?(N.v&&ni(N.v,R),N.i&&ni(N.i,P),L&&E.unskip_effect(N.e)):(N=Jd(l,g?o:Vo??(Vo=Kt()),R,M,P,n,e,i),g||(N.e.f|=Ut),l.set(M,N)),I.add(M)}if(k===0&&a&&!u&&(g?u=ct(()=>a(o)):(u=ct(()=>a(Vo??(Vo=Kt()))),u.f|=Ut)),k>I.size&&Ac(),!g)if(m.set(E,I),L){for(const[O,T]of l)I.has(O)||E.skip_effect(T.e);E.oncommit(h),E.ondiscard(y)}else h(E);c(v)}),_={effect:b,items:l,pending:m,outrogroups:null,fallback:u};g=!1}function Ur(t){for(;t!==null&&!(t.f&Mt);)t=t.next;return t}function Qd(t,e,i,r,n){var N,O,T,x,A,q,U,G,J;var a=(r&Wc)!==0,o=e.length,l=t.items,s=Ur(t.effect.first),d,u=null,v,p=[],m=[],g,h,y,b;if(a)for(b=0;b<o;b+=1)g=e[b],h=n(g,b),y=l.get(h).e,y.f&Ut||((O=(N=y.nodes)==null?void 0:N.a)==null||O.measure(),(v??(v=new Set)).add(y));for(b=0;b<o;b+=1){if(g=e[b],h=n(g,b),y=l.get(h).e,t.outrogroups!==null)for(const V of t.outrogroups)V.pending.delete(y),V.done.delete(y);if(y.f&lt&&(qa(y),a&&((x=(T=y.nodes)==null?void 0:T.a)==null||x.unfix(),(v??(v=new Set)).delete(y))),y.f&Ut)if(y.f^=Ut,y===s)Gr(y,null,i);else{var _=u?u.next:s;y===t.effect.last&&(t.effect.last=y.prev),y.prev&&(y.prev.next=y.next),y.next&&(y.next.prev=y.prev),zi(t,u,y),zi(t,y,_),Gr(y,_,i),u=y,p=[],m=[],s=Ur(u.next);continue}if(y!==s){if(d!==void 0&&d.has(y)){if(p.length<m.length){var k=m[0],I;u=k.prev;var E=p[0],L=p[p.length-1];for(I=0;I<p.length;I+=1)Gr(p[I],k,i);for(I=0;I<m.length;I+=1)d.delete(m[I]);zi(t,E.prev,L.next),zi(t,u,E),zi(t,L,k),s=k,u=L,b-=1,p=[],m=[]}else d.delete(y),Gr(y,s,i),zi(t,y.prev,y.next),zi(t,y,u===null?t.effect.first:u.next),zi(t,u,y),u=y;continue}for(p=[],m=[];s!==null&&s!==y;)(d??(d=new Set)).add(s),m.push(s),s=Ur(s.next);if(s===null)continue}y.f&Ut||p.push(y),u=y,s=Ur(y.next)}if(t.outrogroups!==null){for(const V of t.outrogroups)V.pending.size===0&&(Wa(t,hn(V.done)),(A=t.outrogroups)==null||A.delete(V));t.outrogroups.size===0&&(t.outrogroups=null)}if(s!==null||d!==void 0){var P=[];if(d!==void 0)for(y of d)y.f&lt||P.push(y);for(;s!==null;)!(s.f&lt)&&s!==t.fallback&&P.push(s),s=Ur(s.next);var R=P.length;if(R>0){var M=r&Bl&&o===0?i:null;if(a){for(b=0;b<R;b+=1)(U=(q=P[b].nodes)==null?void 0:q.a)==null||U.measure();for(b=0;b<R;b+=1)(J=(G=P[b].nodes)==null?void 0:G.a)==null||J.fix()}Zd(t,P,M)}}a&&Dt(()=>{var V,K;if(v!==void 0)for(y of v)(K=(V=y.nodes)==null?void 0:V.a)==null||K.apply()})}function Jd(t,e,i,r,n,a,o,l){var s=o&Bc?o&Uc?Yt(i):Aa(i,!1,!1):null,d=o&Vc?Yt(n):null;return{v:s,i:d,e:ct(()=>(a(e,s??i,d??n,l),()=>{t.delete(r)}))}}function Gr(t,e,i){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end,a=e&&!(e.f&Ut)?e.nodes.start:i;r!==null;){var o=Nr(r);if(a.before(r),r===n)return;r=o}}function zi(t,e,i){e===null?t.effect.first=i:e.next=i,i===null?t.effect.last=e:i.prev=e}function Xd(t,e,i=!1,r=!1,n=!1,a=!1){var o=t,l="";if(i)var s=t;H(()=>{var d=me;if(l!==(l=e()??"")){if(i){d.nodes=null,s.innerHTML=l,l!==""&&Ti(Zt(s),s.lastChild);return}if(d.nodes!==null&&(Eo(d.nodes.start,d.nodes.end),d.nodes=null),l!==""){var u=r?Wl:n?id:void 0,v=La(r?"svg":n?"math":"template",u);v.innerHTML=l;var p=r||n?v:v.content;if(Ti(Zt(p),p.lastChild),r||n)for(;Zt(p);)o.before(Zt(p));else o.before(p)}}})}function We(t,e,...i){var r=new vr(t);Ei(()=>{const n=e()??null;r.ensure(n,n&&(a=>n(a,...i)))},Wt)}function jn(t,e,i){var r=new vr(t);Ei(()=>{var n=e()??null;r.ensure(n,n&&(a=>i(a,n)))},Wt)}const $d=()=>performance.now(),oi={tick:t=>requestAnimationFrame(t),now:()=>$d(),tasks:new Set};function Wo(){const t=oi.now();oi.tasks.forEach(e=>{e.c(t)||(oi.tasks.delete(e),e.f())}),oi.tasks.size!==0&&oi.tick(Wo)}function ep(t){let e;return oi.tasks.size===0&&oi.tick(Wo),{promise:new Promise(i=>{oi.tasks.add(e={c:t,f:i})}),abort(){oi.tasks.delete(e)}}}function An(t,e){Vi(()=>{t.dispatchEvent(new CustomEvent(e))})}function tp(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Uo(t){const e={},i=t.split(";");for(const r of i){const[n,a]=r.split(":");if(!n||a===void 0)break;const o=tp(n.trim());e[o]=a.trim()}return e}const ip=t=>t;let Go=null;function Yo(t){Go=t}function rp(t,e,i){var r=Go??me,n=r.nodes,a,o,l,s=null;n.a??(n.a={element:t,measure(){a=this.element.getBoundingClientRect()},apply(){if(l==null||l.abort(),o=this.element.getBoundingClientRect(),a.left!==o.left||a.right!==o.right||a.top!==o.top||a.bottom!==o.bottom){const d=e()(this.element,{from:a,to:o},i==null?void 0:i());l=Ln(this.element,d,void 0,1,()=>{},()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:d,width:u,height:v}=getComputedStyle(t);if(d!=="absolute"&&d!=="fixed"){var p=t.style;s={position:p.position,width:p.width,height:p.height,transform:p.transform},p.position="absolute",p.width=u,p.height=v;var m=t.getBoundingClientRect();if(a.left!==m.left||a.top!==m.top){var g=`translate(${a.left-m.left}px, ${a.top-m.top}px)`;p.transform=p.transform?`${p.transform} ${g}`:g}}}},unfix(){if(s){var d=t.style;d.position=s.position,d.width=s.width,d.height=s.height,d.transform=s.transform}}}),n.a.element=t}function Oe(t,e,i,r){var k;var n=(t&Jc)!==0,a=(t&Xc)!==0,o=n&&a,l=(t&$c)!==0,s=o?"both":n?"in":"out",d,u=e.inert,v=e.style.overflow,p,m;function g(){return Vi(()=>d??(d=i()(e,(r==null?void 0:r())??{},{direction:s})))}var h={is_global:l,in(){var I;if(e.inert=u,!n){m==null||m.abort(),(I=m==null?void 0:m.reset)==null||I.call(m);return}a||p==null||p.abort(),p=Ln(e,g(),m,1,()=>{An(e,"introstart")},()=>{An(e,"introend"),p==null||p.abort(),p=d=void 0,e.style.overflow=v})},out(I){if(!a){I==null||I(),d=void 0;return}e.inert=!0,m=Ln(e,g(),p,0,()=>{An(e,"outrostart")},()=>{An(e,"outroend"),I==null||I()})},stop:()=>{p==null||p.abort(),m==null||m.abort()}},y=me;if(((k=y.nodes).t??(k.t=[])).push(h),n&&zn){var b=l;if(!b){for(var _=y.parent;_&&_.f&Wt;)for(;(_=_.parent)&&!(_.f&_t););b=!_||(_.f&wi)!==0}b&&Wi(()=>{Jt(()=>h.in())})}}function Ln(t,e,i,r,n,a){var o=r===1;if(ir(e)){var l,s=!1;return Dt(()=>{if(!s){var b=e({direction:o?"in":"out"});l=Ln(t,b,i,r,n,a)}}),{abort:()=>{s=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration)&&!(e!=null&&e.delay))return n(),a(),{abort:ft,deactivate:ft,reset:ft,t:()=>r};const{delay:d=0,css:u,tick:v,easing:p=ip}=e;var m=[];if(o&&i===void 0&&(v&&v(0,1),u)){var g=Uo(u(0,1));m.push(g,g)}var h=()=>1-r,y=t.animate(m,{duration:d,fill:"forwards"});return y.onfinish=()=>{y.cancel(),n();var b=(i==null?void 0:i.t())??1-r;i==null||i.abort();var _=r-b,k=e.duration*Math.abs(_),I=[];if(k>0){var E=!1;if(u)for(var L=Math.ceil(k/16.666666666666668),P=0;P<=L;P+=1){var R=b+_*p(P/L),M=Uo(u(R,1-R));I.push(M),E||(E=M.overflow==="hidden")}E&&(t.style.overflow="hidden"),h=()=>{var N=y.currentTime;return b+_*p(N/k)},v&&ep(()=>{if(y.playState!=="running")return!1;var N=h();return v(N,1-N),!0})}y=t.animate(I,{duration:k,fill:"forwards"}),y.onfinish=()=>{h=()=>r,v==null||v(r,1-r),a()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ft)},deactivate:()=>{a=ft},reset:()=>{r===0&&(v==null||v(1,0))},t:()=>h()}}function Ko(t,e,i,r,n,a){var o=null,l=t,s=me,d=new vr(l,!1);Ei(()=>{const u=e()||null;var v=u==="svg"?Wl:void 0;if(u===null){d.ensure(null,null),Cn(!0);return}return d.ensure(u,p=>{if(u){if(o=La(u,v),Ti(o,o),r){var m=o.appendChild(Kt());Yo(s),r(o,m),Yo(null)}me.nodes.end=o,p.before(o)}}),Cn(!0),()=>{u&&Cn(!1)}},Wt),Fr(()=>{Cn(!0)})}function mt(t,e,i){Wi(()=>{var r=Jt(()=>e(t,i==null?void 0:i())||{});if(i&&(r!=null&&r.update)){var n=!1,a={};Tn(()=>{var o=i();Oo(o),n&&Gl(a,o)&&(a=o,r.update(o))}),n=!0}if(r!=null&&r.destroy)return()=>r.destroy()})}function Mn(t,e){var i=void 0,r;_o(()=>{i!==(i=e())&&(r&&($e(r),r=null),i&&(r=ct(()=>{Wi(()=>i(t))})))})}function Zo(t){var e,i,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Zo(t[e]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function np(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Zo(t))&&(r&&(r+=" "),r+=e);return r}function ap(t){return typeof t=="object"?np(t):t??""}const Qo=[...`
3
- \r\f \v\uFEFF`];function lp(t,e,i){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),i){for(var n of Object.keys(i))if(i[n])r=r?r+" "+n:n;else if(r.length)for(var a=n.length,o=0;(o=r.indexOf(n,o))>=0;){var l=o+a;(o===0||Qo.includes(r[o-1]))&&(l===r.length||Qo.includes(r[l]))?r=(o===0?"":r.substring(0,o))+r.substring(l+1):o=l}}return r===""?null:r}function Jo(t,e=!1){var i=e?" !important;":";",r="";for(var n of Object.keys(t)){var a=t[n];a!=null&&a!==""&&(r+=" "+n+": "+a+i)}return r}function Ua(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function op(t,e){if(e){var i="",r,n;if(Array.isArray(e)?(r=e[0],n=e[1]):r=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,o=0,l=!1,s=[];r&&s.push(...Object.keys(r).map(Ua)),n&&s.push(...Object.keys(n).map(Ua));var d=0,u=-1;const h=t.length;for(var v=0;v<h;v++){var p=t[v];if(l?p==="/"&&t[v-1]==="*"&&(l=!1):a?a===p&&(a=!1):p==="/"&&t[v+1]==="*"?l=!0:p==='"'||p==="'"?a=p:p==="("?o++:p===")"&&o--,!l&&a===!1&&o===0){if(p===":"&&u===-1)u=v;else if(p===";"||v===h-1){if(u!==-1){var m=Ua(t.substring(d,u).trim());if(!s.includes(m)){p!==";"&&v++;var g=t.substring(d,v).trim();i+=" "+g+";"}}d=v+1,u=-1}}}}return r&&(i+=Jo(r)),n&&(i+=Jo(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ye(t,e,i,r,n,a){var o=t[xa];if(o!==i||o===void 0){var l=lp(i,r,a);l==null?t.removeAttribute("class"):e?t.className=l:t.setAttribute("class",l),t[xa]=i}else if(a&&n!==a)for(var s in a){var d=!!a[s];(n==null||d!==!!n[s])&&t.classList.toggle(s,d)}return a}function Ga(t,e={},i,r){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,r))}}function Ye(t,e,i,r){var n=t[ka];if(n!==e){var a=op(e,r);a==null?t.removeAttribute("style"):t.style.cssText=a,t[ka]=e}else r&&(Array.isArray(r)?(Ga(t,i==null?void 0:i[0],r[0]),Ga(t,i==null?void 0:i[1],r[1],"important")):Ga(t,i,r));return r}function Ya(t,e,i=!1){if(t.multiple){if(e==null)return;if(!He(e))return ad();for(var r of t.options)r.selected=e.includes(Xo(r));return}for(r of t.options){var n=Xo(r);if(xd(n,e)){r.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function sp(t){var e=new MutationObserver(()=>{Ya(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Fr(()=>{e.disconnect()})}function Xo(t){return"__value"in t?t.__value:t.value}const fr=Symbol("class"),hr=Symbol("style"),$o=Symbol("is custom element"),es=Symbol("is html"),cp=_a?"option":"OPTION",dp=_a?"select":"SELECT",pp=_a?"progress":"PROGRESS";function up(t,e){var i=Ka(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==pp)||(t.value=e??"")}function ts(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ue(t,e,i,r){var n=Ka(t);n[e]!==(n[e]=i)&&(e==="loading"&&(t[Ic]=i),i==null?t.removeAttribute(e):typeof i!="string"&&ns(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function vp(t,e,i,r,n=!1,a=!1){var o=Ka(t),l=o[$o],s=!o[es],d=e||{},u=t.nodeName===cp;for(var v in e)v in i||(i[v]=null);i.class?i.class=ap(i.class):(r||i[fr])&&(i.class=null),i[hr]&&(i.style??(i.style=null));var p=ns(t);for(const k in i){let I=i[k];if(u&&k==="value"&&I==null){t.value=t.__value="",d[k]=I;continue}if(k==="class"){var m=t.namespaceURI==="http://www.w3.org/1999/xhtml";ye(t,m,I,r,e==null?void 0:e[fr],i[fr]),d[k]=I,d[fr]=i[fr];continue}if(k==="style"){Ye(t,I,e==null?void 0:e[hr],i[hr]),d[k]=I,d[hr]=i[hr];continue}var g=d[k];if(!(I===g&&!(I===void 0&&t.hasAttribute(k)))){d[k]=I;var h=k[0]+k[1];if(h!=="$$")if(h==="on"){const E={},L="$$"+k;let P=k.slice(2);var y=Rd(P);if(Dd(P)&&(P=P.slice(0,-7),E.capture=!0),!y&&g){if(I!=null)continue;t.removeEventListener(P,d[L],E),d[L]=null}if(y)ae(P,t,I),he([P]);else if(I!=null){let R=function(M){d[k].call(this,M)};d[L]=Fa(P,t,R,E)}}else if(k==="style")ue(t,k,I);else if(k==="autofocus")Sd(t,!!I);else if(!l&&(k==="__value"||k==="value"&&I!=null))t.value=t.__value=I;else if(k==="selected"&&u)ts(t,I);else{var b=k;s||(b=Nd(b));var _=b==="defaultValue"||b==="defaultChecked";if(I==null&&!l&&!_)if(o[k]=null,b==="value"||b==="checked"){let E=t;const L=e===void 0;if(b==="value"){let P=E.defaultValue;E.removeAttribute(b),E.defaultValue=P,E.value=E.__value=L?P:null}else{let P=E.defaultChecked;E.removeAttribute(b),E.defaultChecked=P,E.checked=L?P:!1}}else t.removeAttribute(k);else _||p.includes(b)&&(l||typeof I!="string")?(t[b]=I,b in o&&(o[b]=Ve)):typeof I!="function"&&ue(t,b,I)}}}return d}function is(t,e,i=[],r=[],n=[],a,o=!1,l=!1){oo(n,i,r,s=>{var d=void 0,u={},v=t.nodeName===dp,p=!1;if(_o(()=>{var g=e(...s.map(c)),h=vp(t,d,g,a,o,l);p&&v&&"value"in g&&Ya(t,g.value);for(let b of Object.getOwnPropertySymbols(u))g[b]||$e(u[b]);for(let b of Object.getOwnPropertySymbols(g)){var y=g[b];b.description===rd&&(!d||y!==d[b])&&(u[b]&&$e(u[b]),u[b]=ct(()=>Mn(t,()=>y))),h[b]=y}d=h}),v){var m=t;Wi(()=>{Ya(m,d.value,!0),sp(m)})}p=!0})}function Ka(t){return t[yn]??(t[yn]={[$o]:t.nodeName.includes("-"),[es]:t.namespaceURI===Vl})}var rs=new Map;function ns(t){var e=t.getAttribute("is")||t.nodeName,i=rs.get(e);if(i)return i;rs.set(e,i=[]);for(var r,n=t,a=Element.prototype;a!==n;){r=Rl(n);for(var o in r)r[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&i.push(o);n=ha(n)}return i}function Yr(t,e,i=e){var r=new WeakSet;Pd(t,"input",async n=>{var a=n?t.defaultValue:t.value;if(a=Za(t)?Qa(a):a,i(a),de!==null&&r.add(de),await Vr(),a!==(a=e())){var o=t.selectionStart,l=t.selectionEnd,s=t.value.length;if(t.value=a??"",l!==null){var d=t.value.length;o===l&&l===s&&d>s?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=o,t.selectionEnd=Math.min(l,d))}}}),Jt(e)==null&&t.value&&(i(Za(t)?Qa(t.value):t.value),de!==null&&r.add(de)),Tn(()=>{var n=e();if(t===document.activeElement){var a=de;if(r.has(a))return}Za(t)&&n===Qa(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function Za(t){var e=t.type;return e==="number"||e==="range"}function Qa(t){return t===""?null:+t}const ca=class ca{constructor(e){oe(this,sa);oe(this,qi,new WeakMap);oe(this,zr);oe(this,dn);fe(this,dn,e)}observe(e,i){var r=z(this,qi).get(e)||new Set;return r.add(i),z(this,qi).set(e,r),be(this,sa,xc).call(this).observe(e,z(this,dn)),()=>{var n=z(this,qi).get(e);n.delete(i),n.size===0&&(z(this,qi).delete(e),z(this,zr).unobserve(e))}}};qi=new WeakMap,zr=new WeakMap,dn=new WeakMap,sa=new WeakSet,xc=function(){return z(this,zr)??fe(this,zr,new ResizeObserver(e=>{for(var i of e){ca.entries.set(i.target,i);for(var r of z(this,qi).get(i.target)||[])r(i)}}))},st(ca,"entries",new WeakMap);let Ja=ca;var fp=new Ja({box:"border-box"});function It(t,e,i){var r=fp.observe(t,()=>i(t[e]));Wi(()=>(Jt(()=>i(t[e])),r))}function Xa(t,e){return t===e||(t==null?void 0:t[Gt])===e}function Ze(t={},e,i,r){var n=ze.r,a=me;return Wi(()=>{var o,l;return Tn(()=>{o=l,l=[],Jt(()=>{Xa(i(...l),t)||(e(t,...l),o&&Xa(i(...o),t)&&e(null,...o))})}),()=>{let s=a;for(;s!==n&&s.parent!==null&&s.parent.f&wa;)s=s.parent;const d=()=>{l&&Xa(i(...l),t)&&e(null,...l)},u=s.teardown;s.teardown=()=>{d(),u==null||u()}}}),t}function Kr(t,e){Td(window,["resize"],()=>Vi(()=>e(window[t])))}function $a(t=!1){const e=ze,i=e.l.u;if(!i)return;let r=()=>Oo(e.s);if(t){let n=0,a={};const o=pr(()=>{let l=!1;const s=e.s;for(const d in s)s[d]!==a[d]&&(a[d]=s[d],l=!0);return l&&n++,n});r=()=>c(o)}i.b.length&&Cd(()=>{as(e,r),ga(i.b)}),Ge(()=>{const n=Jt(()=>i.m.map(zc));return()=>{for(const a of n)typeof a=="function"&&a()}}),i.a.length&&Ge(()=>{as(e,r),ga(i.a)})}function as(t,e){if(t.l.s)for(const i of t.l.s)c(i);e()}const hp={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 Dn(t,e,i){return new Proxy({props:t,exclude:e},hp)}const gp={get(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(ir(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r)return r[e]}},set(t,e,i){let r=t.props.length;for(;r--;){let n=t.props[r];ir(n)&&(n=n());const a=yi(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(ir(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r){const n=yi(r,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Gt||e===Hl)return!1;for(let i of t.props)if(ir(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(ir(i)&&(i=i()),!!i){for(const r in i)e.includes(r)||e.push(r);for(const r of Object.getOwnPropertySymbols(i))e.includes(r)||e.push(r)}return e}};function Zr(...t){return new Proxy({props:t},gp)}function D(t,e,i,r){var I;var n=!lr||(i&Yc)!==0,a=(i&Zc)!==0,o=(i&Qc)!==0,l=r,s=!0,d=void 0,u=()=>o&&n?(d??(d=pr(r)),c(d)):(s&&(s=!1,l=o?Jt(r):r),l);let v;if(a){var p=Gt in t||Hl in t;v=((I=yi(t,e))==null?void 0:I.set)??(p&&e in t?E=>t[e]=E:void 0)}var m,g=!1;a?[m,g]=ud(()=>t[e]):m=t[e],m===void 0&&r!==void 0&&(m=u(),v&&(n&&Rc(),v(m)));var h;if(n?h=()=>{var E=t[e];return E===void 0?u():(s=!0,E)}:h=()=>{var E=t[e];return E!==void 0&&(l=void 0),E===void 0?l:E},n&&!(i&Kc))return h;if(v){var y=t.$$legacy;return function(E,L){return arguments.length>0?((!n||!L||y||g)&&v(L?h():E),E):h()}}var b=!1,_=(i&Gc?pr:Sn)(()=>(b=!1,h()));a&&c(_);var k=me;return function(E,L){if(arguments.length>0){const P=L?c(_):n&&a?De(E):E;return F(_,P),b=!0,l!==void 0&&(l=P),E}return ai&&b||k.f&Et?_.v:c(_)}}function tt(t){ze===null&&Sa(),lr&&ze.l!==null?mp(ze).m.push(t):Ge(()=>{const e=Jt(t);if(typeof e=="function")return e})}function qn(t){ze===null&&Sa(),tt(()=>()=>Jt(t))}function mp(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const yp="5";typeof window<"u"&&((fc=window.__svelte??(window.__svelte={})).v??(fc.v=new Set)).add(yp);function Ci(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const bp="https://www.playpilot.com",wp="https://partner-api.playpilot.tech/1.0",xp="https://img-external.playpilot.tech",kp="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.23.5",_p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Nt=600,el={};async function Xt(t,{headers:e={},method:i="GET",body:r=null,baseUrl:n=wp}={}){const a=!Rn()&&i==="GET";if(a&&t in el)return el[t];const o=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(n+t,{method:i,headers:new Headers({...o,...e}),body:r?JSON.stringify(r):null});if(!(l!=null&&l.ok))throw l;const s=await l.text();let d=s;try{s&&(d=JSON.parse(s))}catch{}return a&&(el[t]=d),d}const ls="EncryptedToken",os="articleReplacementEditToken",Sp="playpilot-editorial-mode";async function ss({href:t=window.location.href,throwError:e=!1}={}){try{const i=Ci();if(!i)throw new Error("No token was provided");const r=cs(t);if(!r)throw new Error("Could not be authenticated");return await Xt(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:r}}),Ep(r),!0}catch(i){if(console.error(i),e)throw i}finally{Tp()}return!1}function cs(t=""){var r,n;const e=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.editorial_token;if(e)return e;if(t){const a=new URL(t).searchParams.get(os);if(a)return decodeURI(a)}return((n=("; "+document.cookie).split(`; ${ls}=`).pop())==null?void 0:n.split(";")[0])||""}function Ep(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const r="expires="+e.toUTCString();document.cookie=ls+"="+t+";"+r+";path=/"}function Rn(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Sp)==="true"||!!t}function Tp(){const t=new URL(window.location.href);t.searchParams.delete(os),window.history.replaceState({},"",t)}function Pp(t){let e=0;for(let i=0;i<t.length;i++){const r=t.charCodeAt(i);e=e*31+r>>>0}return e.toString(16)}function On(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const f={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function gr(){var r,n;const t=(r=window.PlayPilotLinkInjections)==null?void 0:r.language,e=Object.values(f);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(n=document.querySelector("html"))==null?void 0:n.getAttribute("lang");if(i){if(e.includes(i))return i;const a=e.find(o=>o.toLowerCase().startsWith(i+"-"));if(a)return a}return f.English}function ds(t,e=""){const i=[],r=[t];for(;r.length>0;){const n=r.pop();if(i.includes(n)||e&&n.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(n.tagName)||n.offsetWidth<=1)continue;const a=Array.from(n.childNodes).some(s=>{var d;return s.nodeType===Node.TEXT_NODE&&((d=s.nodeValue)==null?void 0:d.trim())!==""});if(a&&n.tagName==="LI"){const s=n.closest("ul, ol");s&&!i.includes(s)&&i.push(s);continue}const o=n.tagName==="P"&&!!n.textContent;if(a||o){i.push(n);continue}const l=Array.from(n.children);for(let s=l.length-1;s>=0;s--)r.push(l[s])}return i}function tl(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const i=t.replace(/(:)/g,"\\$1"),r=document.querySelector(i);if(r)return r}return document.querySelector("article")||document.querySelector("main")||document.body}function ps(t){return t.map(e=>e.innerText).join(`
2
+ /*$vite$:1*/`,document.head.appendChild(Ae);const Me=!1;var He=Array.isArray,fn=Array.prototype.indexOf,tr=Array.prototype.includes,hn=Array.from,Sc=Object.defineProperty,yi=Object.getOwnPropertyDescriptor,Rl=Object.getOwnPropertyDescriptors,Ec=Object.prototype,Tc=Array.prototype,ha=Object.getPrototypeOf,Ol=Object.isExtensible;function ir(t){return typeof t=="function"}const ft=()=>{};function Pc(t){return typeof(t==null?void 0:t.then)=="function"}function zc(t){return t()}function ga(t){for(var e=0;e<t.length;e++)t[e]()}function Nl(){var t,e,i=new Promise((r,n)=>{t=r,e=n});return{promise:i,resolve:t,reject:e}}function ma(t,e,i=!1){return t===void 0?i?e():e:t}function Oi(t,e){if(Array.isArray(t))return t;if(e===void 0||!(Symbol.iterator in t))return Array.from(t);const i=[];for(const r of t)if(i.push(r),i.length===e)break;return i}const Je=2,rr=4,Lr=8,ya=1<<24,_t=16,Mt=32,bi=64,ba=128,St=512,Ue=1024,Ke=2048,Vt=4096,lt=8192,Et=16384,wi=32768,wa=1<<25,Wt=65536,gn=1<<17,Cc=1<<18,nr=1<<19,Fl=1<<20,Ut=1<<25,Ni=65536,mn=1<<21,ar=1<<22,xi=1<<23,Gt=Symbol("$state"),Hl=Symbol("legacy props"),Ic=Symbol(""),yn=Symbol("attributes"),xa=Symbol("class"),ka=Symbol("style"),Mr=Symbol("text"),bn=Symbol("form reset"),wn=new class extends Error{constructor(){super(...arguments);st(this,"name","StaleReactionError");st(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}},_a=!!((uc=globalThis.document)!=null&&uc.contentType)&&globalThis.document.contentType.includes("xml");function Sa(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function jc(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Ac(t,e,i){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Lc(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Mc(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Dc(t){throw new Error("https://svelte.dev/e/effect_orphan")}function qc(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Rc(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Oc(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Nc(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Fc(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Hc(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Bc=1,Vc=2,Bl=4,Wc=8,Uc=16,Gc=1,Yc=2,Kc=4,Zc=8,Qc=16,Jc=1,Xc=2,$c=4,ed=1,td=2,Ve=Symbol(),Vl="http://www.w3.org/1999/xhtml",Wl="http://www.w3.org/2000/svg",id="http://www.w3.org/1998/Math/MathML",rd="@attach";function nd(){console.warn("https://svelte.dev/e/derived_inert")}function ad(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function ld(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Ul(t){return t===this.v}function Gl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Yl(t){return!Gl(t,this.v)}let lr=!1,od=!1;function sd(){lr=!0}let ze=null;function or(t){ze=t}function Dr(t){return Kl().get(t)}function qr(t,e){return Kl().set(t,e),e}function te(t,e=!1,i){ze={p:ze,i:!1,c:null,e:null,s:t,x:null,r:me,l:lr&&!e?{s:null,u:null,$:[]}:null}}function ie(t){var e=ze,i=e.e;if(i!==null){e.e=null;for(var r of i)ko(r)}return t!==void 0&&(e.x=t),e.i=!0,ze=e.p,t??{}}function Fi(){return!lr||ze!==null&&ze.l===null}function Kl(t){return ze===null&&Sa(),ze.c??(ze.c=new Map(cd(ze)||void 0))}function cd(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let Hi=[];function Zl(){var t=Hi;Hi=[],ga(t)}function Dt(t){if(Hi.length===0&&!cr){var e=Hi;queueMicrotask(()=>{e===Hi&&Zl()})}Hi.push(t)}function dd(){for(;Hi.length>0;)Zl()}function Ql(t){var e=me;if(e===null)return we.f|=xi,t;if(!(e.f&wi)&&!(e.f&rr))throw t;ki(t,e)}function ki(t,e){for(;e!==null;){if(e.f&ba){if(!(e.f&wi))throw t;try{e.b.error(t);return}catch(i){t=i}}e=e.parent}throw t}const pd=-7169;function Re(t,e){t.f=t.f&pd|e}function Ea(t){t.f&St||t.deps===null?Re(t,Ue):Re(t,Vt)}function Jl(t){if(t!==null)for(const e of t)!(e.f&Je)||!(e.f&Ni)||(e.f^=Ni,Jl(e.deps))}function Xl(t,e,i){t.f&Ke?e.add(t):t.f&Vt&&i.add(t),Jl(t.deps),Re(t,Ue)}let xn=!1;function ud(t){var e=xn;try{return xn=!1,[t(),xn]}finally{xn=e}}let Ta=null,sr=null,de=null,Rr=null,Xe=null,Pa=null,cr=!1,za=!1,dr=null,kn=null;var $l=0,s1=new Set;let vd=1;const aa=class aa{constructor(){oe(this,Se);st(this,"id",vd++);oe(this,xr,!1);st(this,"linked",!0);oe(this,Li,null);oe(this,Qi,null);st(this,"async_deriveds",new Map);st(this,"current",new Map);st(this,"previous",new Map);st(this,"unblocked",new Set);oe(this,kr,new Set);oe(this,_r,new Set);oe(this,Ji,new Set);oe(this,Sr,0);oe(this,vi,new Map);oe(this,nn,null);oe(this,bt,[]);oe(this,an,[]);oe(this,Mi,new Set);oe(this,ti,new Set);oe(this,ii,new Map);oe(this,Er,new Set);st(this,"is_fork",!1);oe(this,Tr,!1)}skip_effect(e){z(this,ii).has(e)||z(this,ii).set(e,{d:[],m:[]}),z(this,Er).delete(e)}unskip_effect(e,i=r=>this.schedule(r)){var r=z(this,ii).get(e);if(r){z(this,ii).delete(e);for(var n of r.d)Re(n,Ke),i(n);for(n of r.m)Re(n,Vt),i(n)}z(this,Er).add(e)}capture(e,i,r=!1){e.v!==Ve&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&xi||(this.current.set(e,[i,r]),Xe==null||Xe.set(e,i)),this.is_fork||(e.v=i)}activate(){de=this}deactivate(){de=null,Xe=null}flush(){try{za=!0,de=this,be(this,Se,vn).call(this)}finally{$l=0,Pa=null,dr=null,kn=null,za=!1,de=null,Xe=null,Bi.clear()}}discard(){for(const e of z(this,_r))e(this);z(this,_r).clear(),z(this,Ji).clear(),be(this,Se,Ar).call(this)}register_created_effect(e){z(this,an).push(e)}increment(e,i){if(fe(this,Sr,z(this,Sr)+1),e){let r=z(this,vi).get(i)??0;z(this,vi).set(i,r+1)}}decrement(e,i){if(fe(this,Sr,z(this,Sr)-1),e){let r=z(this,vi).get(i)??0;r===1?z(this,vi).delete(i):z(this,vi).set(i,r-1)}z(this,Tr)||(fe(this,Tr,!0),Dt(()=>{fe(this,Tr,!1),this.linked&&this.flush()}))}transfer_effects(e,i){for(const r of e)z(this,Mi).add(r);for(const r of i)z(this,ti).add(r);e.clear(),i.clear()}oncommit(e){z(this,kr).add(e)}ondiscard(e){z(this,_r).add(e)}on_fork_commit(e){z(this,Ji).add(e)}run_fork_commit_callbacks(){for(const e of z(this,Ji))e(this);z(this,Ji).clear()}settled(){return(z(this,nn)??fe(this,nn,Nl())).promise}static ensure(){var e;if(de===null){const i=de=new aa;be(e=i,Se,Ll).call(e),!za&&!cr&&Dt(()=>{z(i,xr)||i.flush()})}return de}apply(){{Xe=null;return}}schedule(e){var n;if(Pa=e,(n=e.b)!=null&&n.is_pending&&e.f&(rr|Lr|ya)&&!(e.f&wi)){e.b.defer_effect(e);return}for(var i=e;i.parent!==null;){i=i.parent;var r=i.f;if(dr!==null&&i===me&&(we===null||!(we.f&Je)))return;if(r&(bi|Mt)){if(!(r&Ue))return;i.f^=Ue}}z(this,bt).push(i)}};xr=new WeakMap,Li=new WeakMap,Qi=new WeakMap,kr=new WeakMap,_r=new WeakMap,Ji=new WeakMap,Sr=new WeakMap,vi=new WeakMap,nn=new WeakMap,bt=new WeakMap,an=new WeakMap,Mi=new WeakMap,ti=new WeakMap,ii=new WeakMap,Er=new WeakMap,Tr=new WeakMap,Se=new WeakSet,jl=function(){if(this.is_fork)return!0;for(const r of z(this,vi).keys()){for(var e=r,i=!1;e.parent!==null;){if(z(this,ii).has(e)){i=!0;break}e=e.parent}if(!i)return!0}return!1},vn=function(){var s,d,u,v;if(fe(this,xr,!0),$l++>1e3&&(be(this,Se,Ar).call(this),fd()),!be(this,Se,jl).call(this)){for(const p of z(this,Mi))z(this,ti).delete(p),Re(p,Ke),this.schedule(p);for(const p of z(this,ti))Re(p,Vt),this.schedule(p)}const e=z(this,bt);fe(this,bt,[]),this.apply();var i=dr=[],r=[],n=kn=[];for(const p of e)try{be(this,Se,Al).call(this,p,i,r)}catch(m){throw no(p),m}if(de=null,n.length>0){var a=aa.ensure();for(const p of n)a.schedule(p)}if(dr=null,kn=null,be(this,Se,jl).call(this)){be(this,Se,ua).call(this,r),be(this,Se,ua).call(this,i);for(const[p,m]of z(this,ii))ro(p,m);n.length>0&&be(s=de,Se,vn).call(s);return}const o=be(this,Se,bc).call(this);if(o){be(d=o,Se,wc).call(d,this);return}z(this,Mi).clear(),z(this,ti).clear();for(const p of z(this,kr))p(this);z(this,kr).clear(),Rr=this,to(r),to(i),Rr=null,(u=z(this,nn))==null||u.resolve();var l=de;if(this.linked&&z(this,Sr)===0&&be(this,Se,Ar).call(this),z(this,bt).length>0){l===null&&(l=this,be(this,Se,Ll).call(this));const p=l;z(p,bt).push(...z(this,bt).filter(m=>!z(p,bt).includes(m)))}l!==null&&be(v=l,Se,vn).call(v)},Al=function(e,i,r){e.f^=Ue;for(var n=e.first;n!==null;){var a=n.f,o=(a&(Mt|bi))!==0,l=o&&(a&Ue)!==0,s=l||(a&lt)!==0||z(this,ii).has(n);if(!s&&n.fn!==null){o?n.f^=Ue:a&rr?i.push(n):Hr(n)&&(a&_t&&z(this,ti).add(n),ur(n));var d=n.first;if(d!==null){n=d;continue}}for(;n!==null;){var u=n.next;if(u!==null){n=u;break}n=n.parent}}},bc=function(){for(var e=z(this,Li);e!==null;){if(!e.is_fork){for(const[i,[,r]]of this.current)if(e.current.has(i)&&!r)return e}e=z(e,Li)}return null},wc=function(e){var r;for(const[n,a]of e.current)!this.previous.has(n)&&e.previous.has(n)&&this.previous.set(n,e.previous.get(n)),this.current.set(n,a);for(const[n,a]of e.async_deriveds){const o=this.async_deriveds.get(n);o&&a.promise.then(o.resolve)}const i=n=>{var a=n.reactions;if(a!==null)for(const s of a){var o=s.f;if(o&Je)i(s);else{var l=s;o&(ar|_t)&&!this.async_deriveds.has(l)&&(z(this,ti).delete(l),Re(l,Ke),this.schedule(l))}}};for(const n of this.current.keys())i(n);this.oncommit(()=>e.discard()),be(r=e,Se,Ar).call(r),de=this,be(this,Se,vn).call(this)},ua=function(e){for(var i=0;i<e.length;i+=1)Xl(e[i],z(this,Mi),z(this,ti))},n1=function(){var u;be(this,Se,Ar).call(this);for(let v=Ta;v!==null;v=z(v,Qi)){var e=v.id<this.id,i=[];for(const[p,[m,g]]of this.current){if(v.current.has(p)){var r=v.current.get(p)[0];if(e&&m!==r)v.current.set(p,[m,g]);else continue}i.push(p)}if(e)for(const[p,m]of this.async_deriveds){const g=v.async_deriveds.get(p);g&&m.promise.then(g.resolve)}if(z(v,xr)){var n=[...v.current.keys()].filter(p=>!this.current.has(p));if(n.length===0)e&&v.discard();else if(i.length>0){if(e)for(const p of z(this,Er))v.unskip_effect(p,m=>{var g;m.f&(_t|ar)?v.schedule(m):be(g=v,Se,ua).call(g,[m])});v.activate();var a=new Set,o=new Map;for(var l of i)io(l,n,a,o);o=new Map;var s=[...v.current.keys()].filter(p=>this.current.has(p)?this.current.get(p)[0]!==p.v:!0);if(s.length>0)for(const p of z(this,an))!(p.f&(Et|lt|gn))&&Ca(p,s,o)&&(p.f&(ar|_t)?(Re(p,Ke),v.schedule(p)):z(v,Mi).add(p));if(z(v,bt).length>0){v.apply();for(var d of z(v,bt))be(u=v,Se,Al).call(u,d,[],[]);fe(v,bt,[])}v.deactivate()}}}},Ll=function(){sr===null?Ta=sr=this:(fe(sr,Qi,this),fe(this,Li,sr)),sr=this},Ar=function(){var e=z(this,Li),i=z(this,Qi);e===null?Ta=i:fe(e,Qi,i),i===null?sr=e:fe(i,Li,e),this.linked=!1};let _i=aa;function eo(t){var e=cr;cr=!0;try{for(var i;;){if(dd(),de===null)return i;de.flush()}}finally{cr=e}}function fd(){try{qc()}catch(t){ki(t,Pa)}}let qt=null;function to(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var r=t[i++];if(!(r.f&(Et|lt))&&Hr(r)&&(qt=new Set,ur(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&To(r),(qt==null?void 0:qt.size)>0)){Bi.clear();for(const n of qt){if(n.f&(Et|lt))continue;const a=[n];let o=n.parent;for(;o!==null;)qt.has(o)&&(qt.delete(o),a.push(o)),o=o.parent;for(let l=a.length-1;l>=0;l--){const s=a[l];s.f&(Et|lt)||ur(s)}}qt.clear()}}qt=null}}function io(t,e,i,r){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const a=n.f;a&Je?io(n,e,i,r):a&(ar|_t)&&!(a&Ke)&&Ca(n,e,r)&&(Re(n,Ke),Ia(n))}}function Ca(t,e,i){const r=i.get(t);if(r!==void 0)return r;if(t.deps!==null)for(const n of t.deps){if(tr.call(e,n))return!0;if(n.f&Je&&Ca(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function Ia(t){de.schedule(t)}function ro(t,e){if(!(t.f&Mt&&t.f&Ue)){t.f&Ke?e.d.push(t):t.f&Vt&&e.m.push(t),Re(t,Ue);for(var i=t.first;i!==null;)ro(i,e),i=i.next}}function no(t){Re(t,Ue);for(var e=t.first;e!==null;)no(e),e=e.next}function ao(t){let e=0,i=Yt(0),r;return()=>{Ma()&&(c(i),Tn(()=>(e===0&&(r=Jt(()=>t(()=>Si(i)))),e+=1,()=>{Dt(()=>{e-=1,e===0&&(r==null||r(),r=void 0,Si(i))})})))}}var hd=Wt|nr;function lo(t,e,i,r){new gd(t,e,i,r)}class gd{constructor(e,i,r,n){oe(this,Ne);st(this,"parent");st(this,"is_pending",!1);st(this,"transform_error");oe(this,jt);oe(this,Cl,null);oe(this,At);oe(this,Xi);oe(this,pt);oe(this,Lt,null);oe(this,ot,null);oe(this,wt,null);oe(this,fi,null);oe(this,$i,0);oe(this,Di,0);oe(this,Pr,!1);oe(this,ln,new Set);oe(this,on,new Set);oe(this,hi,null);oe(this,la,ao(()=>(fe(this,hi,Yt(z(this,$i))),()=>{fe(this,hi,null)})));var a;fe(this,jt,e),fe(this,At,i),fe(this,Xi,o=>{var l=me;l.b=this,l.f|=ba,r(o)}),this.parent=me.b,this.transform_error=n??((a=this.parent)==null?void 0:a.transform_error)??(o=>o),fe(this,pt,Ei(()=>{be(this,Ne,Ml).call(this)},hd))}defer_effect(e){Xl(e,z(this,ln),z(this,on))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!z(this,At).pending}update_pending_count(e,i){be(this,Ne,Dl).call(this,e,i),fe(this,$i,z(this,$i)+e),!(!z(this,hi)||z(this,Pr))&&(fe(this,Pr,!0),Dt(()=>{fe(this,Pr,!1),z(this,hi)&&ni(z(this,hi),z(this,$i))}))}get_effect_pending(){return z(this,la).call(this),c(z(this,hi))}error(e){if(!z(this,At).onerror&&!z(this,At).failed)throw e;de!=null&&de.is_fork?(z(this,Lt)&&de.skip_effect(z(this,Lt)),z(this,ot)&&de.skip_effect(z(this,ot)),z(this,wt)&&de.skip_effect(z(this,wt)),de.on_fork_commit(()=>{be(this,Ne,ql).call(this,e)})):be(this,Ne,ql).call(this,e)}}jt=new WeakMap,Cl=new WeakMap,At=new WeakMap,Xi=new WeakMap,pt=new WeakMap,Lt=new WeakMap,ot=new WeakMap,wt=new WeakMap,fi=new WeakMap,$i=new WeakMap,Di=new WeakMap,Pr=new WeakMap,ln=new WeakMap,on=new WeakMap,hi=new WeakMap,la=new WeakMap,Ne=new WeakSet,a1=function(){try{fe(this,Lt,ct(()=>z(this,Xi).call(this,z(this,jt))))}catch(e){this.error(e)}},l1=function(e){const i=z(this,At).failed;i&&fe(this,wt,ct(()=>{i(z(this,jt),()=>e,()=>()=>{})}))},o1=function(){const e=z(this,At).pending;e&&(this.is_pending=!0,fe(this,ot,ct(()=>e(z(this,jt)))),Dt(()=>{var i=fe(this,fi,document.createDocumentFragment()),r=Kt();i.append(r),fe(this,Lt,be(this,Ne,fa).call(this,()=>ct(()=>z(this,Xi).call(this,r)))),z(this,Di)===0&&(z(this,jt).before(i),fe(this,fi,null),Ui(z(this,ot),()=>{fe(this,ot,null)}),be(this,Ne,va).call(this,de))}))},Ml=function(){try{if(this.is_pending=this.has_pending_snippet(),fe(this,Di,0),fe(this,$i,0),fe(this,Lt,ct(()=>{z(this,Xi).call(this,z(this,jt))})),z(this,Di)>0){var e=fe(this,fi,document.createDocumentFragment());Ra(z(this,Lt),e);const i=z(this,At).pending;fe(this,ot,ct(()=>i(z(this,jt))))}else be(this,Ne,va).call(this,de)}catch(i){this.error(i)}},va=function(e){this.is_pending=!1,e.transfer_effects(z(this,ln),z(this,on))},fa=function(e){var i=me,r=we,n=ze;Qt(z(this,pt)),Tt(z(this,pt)),or(z(this,pt).ctx);try{return _i.ensure(),e()}catch(a){return Ql(a),null}finally{Qt(i),Tt(r),or(n)}},Dl=function(e,i){var r;if(!this.has_pending_snippet()){this.parent&&be(r=this.parent,Ne,Dl).call(r,e,i);return}fe(this,Di,z(this,Di)+e),z(this,Di)===0&&(be(this,Ne,va).call(this,i),z(this,ot)&&Ui(z(this,ot),()=>{fe(this,ot,null)}),z(this,fi)&&(z(this,jt).before(z(this,fi)),fe(this,fi,null)))},ql=function(e){z(this,Lt)&&($e(z(this,Lt)),fe(this,Lt,null)),z(this,ot)&&($e(z(this,ot)),fe(this,ot,null)),z(this,wt)&&($e(z(this,wt)),fe(this,wt,null));var i=z(this,At).onerror;let r=z(this,At).failed;var n=!1,a=!1;const o=()=>{if(n){ld();return}n=!0,a&&Hc(),z(this,wt)!==null&&Ui(z(this,wt),()=>{fe(this,wt,null)}),be(this,Ne,fa).call(this,()=>{be(this,Ne,Ml).call(this)})},l=s=>{try{a=!0,i==null||i(s,o),a=!1}catch(d){ki(d,z(this,pt)&&z(this,pt).parent)}r&&fe(this,wt,be(this,Ne,fa).call(this,()=>{try{return ct(()=>{var d=me;d.b=this,d.f|=ba,r(z(this,jt),()=>s,()=>o)})}catch(d){return ki(d,z(this,pt).parent),null}}))};Dt(()=>{var s;try{s=this.transform_error(e)}catch(d){ki(d,z(this,pt)&&z(this,pt).parent);return}s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(l,d=>ki(d,z(this,pt)&&z(this,pt).parent)):l(s)})};function oo(t,e,i,r){const n=Fi()?pr:Sn;var a=t.filter(p=>!p.settled);if(i.length===0&&a.length===0){r(e.map(n));return}var o=me,l=so(),s=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(p=>p.promise)):null;function d(p){if(!(o.f&Et)){l();try{r(p)}catch(m){ki(m,o)}Or()}}var u=co();if(i.length===0){s.then(()=>d(e.map(n))).finally(u);return}function v(){Promise.all(i.map(p=>md(p))).then(p=>d([...e.map(n),...p])).catch(p=>ki(p,o)).finally(u)}s?s.then(()=>{l(),v(),Or()}):v()}function so(){var t=me,e=we,i=ze,r=de;return function(a=!0){Qt(t),Tt(e),or(i),a&&!(t.f&Et)&&(r==null||r.activate(),r==null||r.apply())}}function Or(t=!0){Qt(null),Tt(null),or(null),t&&(de==null||de.deactivate())}function co(){var t=me,e=t.b,i=de,r=e.is_rendered();return e.update_pending_count(1,i),i.increment(r,t),()=>{e.update_pending_count(-1,i),i.decrement(r,t)}}function pr(t){var e=Je|Ke;return me!==null&&(me.f|=nr),{ctx:ze,deps:null,effects:null,equals:Ul,f:e,fn:t,reactions:null,rv:0,v:Ve,wv:0,parent:me,ac:null}}const _n=Symbol("obsolete");function md(t,e,i){let r=me;r===null&&jc();var n=void 0,a=Yt(Ve),o=!we,l=new Set;return jd(()=>{var m;var s=me,d=Nl();n=d.promise;try{Promise.resolve(t()).then(d.resolve,g=>{g!==wn&&d.reject(g)}).finally(Or)}catch(g){d.reject(g),Or()}var u=de;if(o){if(s.f&wi)var v=co();if(r.b.is_rendered())(m=u.async_deriveds.get(s))==null||m.reject(_n);else for(const g of l.values())g.reject(_n);l.add(d),u.async_deriveds.set(s,d)}const p=(g,h=void 0)=>{v==null||v(),l.delete(d),h!==_n&&(u.activate(),h?(a.f|=xi,ni(a,h)):(a.f&xi&&(a.f^=xi),ni(a,g)),u.deactivate())};d.promise.then(p,g=>p(null,g||"unknown"))}),Fr(()=>{for(const s of l)s.reject(_n)}),new Promise(s=>{function d(u){function v(){u===n?s(a):d(n)}u.then(v,v)}d(n)})}function B(t){const e=pr(t);return Io(e),e}function Sn(t){const e=pr(t);return e.equals=Yl,e}function yd(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)$e(e[i])}}function ja(t){var e,i=me,r=t.parent;if(!ai&&r!==null&&r.f&(Et|lt))return nd(),t.v;Qt(r);try{t.f&=~Ni,yd(t),e=Do(t)}finally{Qt(i)}return e}function po(t){var e=ja(t);if(!t.equals(e)&&(t.wv=Lo(),(!(de!=null&&de.is_fork)||t.deps===null)&&(de!==null?(de.capture(t,e,!0),Rr==null||Rr.capture(t,e,!0)):t.v=e,t.deps===null))){Re(t,Ue);return}ai||(Xe!==null?(Ma()||de!=null&&de.is_fork)&&Xe.set(t,e):Ea(t))}function bd(t){var e,i;if(t.effects!==null)for(const r of t.effects)(r.teardown||r.ac)&&((e=r.teardown)==null||e.call(r),(i=r.ac)==null||i.abort(wn),r.teardown=ft,r.ac=null,Br(r,0),Da(r))}function uo(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&ur(e)}let En=new Set;const Bi=new Map;let vo=!1;function Yt(t,e){var i={f:0,v:t,reactions:null,equals:Ul,rv:0,wv:0};return i}function Y(t,e){const i=Yt(t);return Io(i),i}function Aa(t,e=!1,i=!0){var n;const r=Yt(t);return e||(r.equals=Yl),lr&&i&&ze!==null&&ze.l!==null&&((n=ze.l).s??(n.s=[])).push(r),r}function F(t,e,i=!1){we!==null&&(!Ot||we.f&gn)&&Fi()&&we.f&(Je|_t|ar|gn)&&(Pt===null||!tr.call(Pt,t))&&Fc();let r=i?De(e):e;return ni(t,r,kn)}function ni(t,e,i=null){if(!t.equals(e)){Bi.set(t,ai?e:t.v);var r=_i.ensure();if(r.capture(t,e),t.f&Je){const n=t;t.f&Ke&&ja(n),Xe===null&&Ea(n)}t.wv=Lo(),fo(t,Ke,i),Fi()&&me!==null&&me.f&Ue&&!(me.f&(Mt|bi))&&(zt===null?Ld([t]):zt.push(t)),!r.is_fork&&En.size>0&&!vo&&wd()}return e}function wd(){vo=!1;for(const t of En){t.f&Ue&&Re(t,Vt);let e;try{e=Hr(t)}catch{e=!0}e&&ur(t)}En.clear()}function Si(t){F(t,t.v+1)}function fo(t,e,i){var r=t.reactions;if(r!==null)for(var n=Fi(),a=r.length,o=0;o<a;o++){var l=r[o],s=l.f;if(!(!n&&l===me)){var d=(s&Ke)===0;if(d&&Re(l,e),s&gn)En.add(l);else if(s&Je){var u=l;Xe==null||Xe.delete(u),s&Ni||(s&St&&(me===null||!(me.f&mn))&&(l.f|=Ni),fo(u,Vt,i))}else if(d){var v=l;s&_t&&qt!==null&&qt.add(v),i!==null?i.push(v):Ia(v)}}}}function De(t){if(typeof t!="object"||t===null||Gt in t)return t;const e=ha(t);if(e!==Ec&&e!==Tc)return t;var i=new Map,r=He(t),n=Y(0),a=li,o=l=>{if(li===a)return l();var s=we,d=li;Tt(null),Ao(a);var u=l();return Tt(s),Ao(d),u};return r&&i.set("length",Y(t.length)),new Proxy(t,{defineProperty(l,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Oc();var u=i.get(s);return u===void 0?o(()=>{var v=Y(d.value);return i.set(s,v),v}):F(u,d.value,!0),!0},deleteProperty(l,s){var d=i.get(s);if(d===void 0){if(s in l){const u=o(()=>Y(Ve));i.set(s,u),Si(n)}}else F(d,Ve),Si(n);return!0},get(l,s,d){var m;if(s===Gt)return t;var u=i.get(s),v=s in l;if(u===void 0&&(!v||(m=yi(l,s))!=null&&m.writable)&&(u=o(()=>{var g=De(v?l[s]:Ve),h=Y(g);return h}),i.set(s,u)),u!==void 0){var p=c(u);return p===Ve?void 0:p}return Reflect.get(l,s,d)},getOwnPropertyDescriptor(l,s){var d=Reflect.getOwnPropertyDescriptor(l,s);if(d&&"value"in d){var u=i.get(s);u&&(d.value=c(u))}else if(d===void 0){var v=i.get(s),p=v==null?void 0:v.v;if(v!==void 0&&p!==Ve)return{enumerable:!0,configurable:!0,value:p,writable:!0}}return d},has(l,s){var p;if(s===Gt)return!0;var d=i.get(s),u=d!==void 0&&d.v!==Ve||Reflect.has(l,s);if(d!==void 0||me!==null&&(!u||(p=yi(l,s))!=null&&p.writable)){d===void 0&&(d=o(()=>{var m=u?De(l[s]):Ve,g=Y(m);return g}),i.set(s,d));var v=c(d);if(v===Ve)return!1}return u},set(l,s,d,u){var k;var v=i.get(s),p=s in l;if(r&&s==="length")for(var m=d;m<v.v;m+=1){var g=i.get(m+"");g!==void 0?F(g,Ve):m in l&&(g=o(()=>Y(Ve)),i.set(m+"",g))}if(v===void 0)(!p||(k=yi(l,s))!=null&&k.writable)&&(v=o(()=>Y(void 0)),F(v,De(d)),i.set(s,v));else{p=v.v!==Ve;var h=o(()=>De(d));F(v,h)}var y=Reflect.getOwnPropertyDescriptor(l,s);if(y!=null&&y.set&&y.set.call(u,d),!p){if(r&&typeof s=="string"){var b=i.get("length"),_=Number(s);Number.isInteger(_)&&_>=b.v&&F(b,_+1)}Si(n)}return!0},ownKeys(l){c(n);var s=Reflect.ownKeys(l).filter(v=>{var p=i.get(v);return p===void 0||p.v!==Ve});for(var[d,u]of i)u.v!==Ve&&!(d in l)&&s.push(d);return s},setPrototypeOf(){Nc()}})}function ho(t){try{if(t!==null&&typeof t=="object"&&Gt in t)return t[Gt]}catch{}return t}function xd(t,e){return Object.is(ho(t),ho(e))}var Ie,go,mo,yo;function kd(){if(Ie===void 0){Ie=window,go=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;mo=yi(e,"firstChild").get,yo=yi(e,"nextSibling").get,Ol(t)&&(t[xa]=void 0,t[yn]=null,t[ka]=void 0,t.__e=void 0),Ol(i)&&(i[Mr]=void 0)}}function Kt(t=""){return document.createTextNode(t)}function Zt(t){return mo.call(t)}function Nr(t){return yo.call(t)}function S(t,e){return Zt(t)}function Z(t,e=!1){{var i=Zt(t);return i instanceof Comment&&i.data===""?Nr(i):i}}function j(t,e=1,i=!1){let r=t;for(;e--;)r=Nr(r);return r}function _d(t){t.textContent=""}function bo(){return!1}function La(t,e,i){return document.createElementNS(e??Vl,t,void 0)}function Sd(t,e){if(e){const i=document.body;t.autofocus=!0,Dt(()=>{document.activeElement===i&&t.focus()})}}let wo=!1;function Ed(){wo||(wo=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const i of t.target.elements)(e=i[bn])==null||e.call(i)})},{capture:!0}))}function Td(t,e,i,r=!0){r&&i();for(var n of e)t.addEventListener(n,i);Fr(()=>{for(var a of e)t.removeEventListener(a,i)})}function Vi(t){var e=we,i=me;Tt(null),Qt(null);try{return t()}finally{Tt(e),Qt(i)}}function Pd(t,e,i,r=i){t.addEventListener(e,()=>Vi(i));const n=t[bn];n?t[bn]=()=>{n(),r(!0)}:t[bn]=()=>r(!0),Ed()}function xo(t){me===null&&(we===null&&Dc(),Mc()),ai&&Lc()}function zd(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function Rt(t,e){var i=me;i!==null&&i.f&lt&&(t|=lt);var r={ctx:ze,deps:null,nodes:null,f:t|Ke|St,first:null,fn:e,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};de==null||de.register_created_effect(r);var n=r;if(t&rr)dr!==null?dr.push(r):_i.ensure().schedule(r);else if(e!==null){try{ur(r)}catch(o){throw $e(r),o}n.deps===null&&n.teardown===null&&n.nodes===null&&n.first===n.last&&!(n.f&nr)&&(n=n.first,t&_t&&t&Wt&&n!==null&&(n.f|=Wt))}if(n!==null&&(n.parent=i,i!==null&&zd(n,i),we!==null&&we.f&Je&&!(t&bi))){var a=we;(a.effects??(a.effects=[])).push(n)}return r}function Ma(){return we!==null&&!Ot}function Fr(t){const e=Rt(Lr,null);return Re(e,Ue),e.teardown=t,e}function Ge(t){xo();var e=me.f,i=!we&&(e&Mt)!==0&&(e&wi)===0;if(i){var r=ze;(r.e??(r.e=[])).push(t)}else return ko(t)}function ko(t){return Rt(rr|Fl,t)}function Cd(t){return xo(),Rt(Lr|Fl,t)}function Id(t){_i.ensure();const e=Rt(bi|nr,t);return(i={})=>new Promise(r=>{i.outro?Ui(e,()=>{$e(e),r(void 0)}):($e(e),r(void 0))})}function Wi(t){return Rt(rr,t)}function jd(t){return Rt(ar|nr,t)}function Tn(t,e=0){return Rt(Lr|e,t)}function H(t,e=[],i=[],r=[]){oo(r,e,i,n=>{Rt(Lr,()=>t(...n.map(c)))})}function Ei(t,e=0){var i=Rt(_t|e,t);return i}function _o(t,e=0){var i=Rt(ya|e,t);return i}function ct(t){return Rt(Mt|nr,t)}function So(t){var e=t.teardown;if(e!==null){const i=ai,r=we;Co(!0),Tt(null);try{e.call(null)}finally{Co(i),Tt(r)}}}function Da(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&Vi(()=>{n.abort(wn)});var r=i.next;i.f&bi?i.parent=null:$e(i,e),i=r}}function Ad(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Mt||$e(e),e=i}}function $e(t,e=!0){var i=!1;(e||t.f&Cc)&&t.nodes!==null&&t.nodes.end!==null&&(Eo(t.nodes.start,t.nodes.end),i=!0),Re(t,wa),Da(t,e&&!i),Br(t,0);var r=t.nodes&&t.nodes.t;if(r!==null)for(const a of r)a.stop();So(t),t.f^=wa,t.f|=Et;var n=t.parent;n!==null&&n.first!==null&&To(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Eo(t,e){for(;t!==null;){var i=t===e?null:Nr(t);t.remove(),t=i}}function To(t){var e=t.parent,i=t.prev,r=t.next;i!==null&&(i.next=r),r!==null&&(r.prev=i),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=i))}function Ui(t,e,i=!0){var r=[];Po(t,r,!0);var n=()=>{i&&$e(t),e&&e()},a=r.length;if(a>0){var o=()=>--a||n();for(var l of r)l.out(o)}else n()}function Po(t,e,i){if(!(t.f&lt)){t.f^=lt;var r=t.nodes&&t.nodes.t;if(r!==null)for(const l of r)(l.is_global||i)&&e.push(l);for(var n=t.first;n!==null;){var a=n.next;if(!(n.f&bi)){var o=(n.f&Wt)!==0||(n.f&Mt)!==0&&(t.f&_t)!==0;Po(n,e,o?i:!1)}n=a}}}function qa(t){zo(t,!0)}function zo(t,e){if(t.f&lt){t.f^=lt,t.f&Ue||(Re(t,Ke),_i.ensure().schedule(t));for(var i=t.first;i!==null;){var r=i.next,n=(i.f&Wt)!==0||(i.f&Mt)!==0;zo(i,n?e:!1),i=r}var a=t.nodes&&t.nodes.t;if(a!==null)for(const o of a)(o.is_global||e)&&o.in()}}function Ra(t,e){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end;i!==null;){var n=i===r?null:Nr(i);e.append(i),i=n}}let Pn=!1,ai=!1;function Co(t){ai=t}let we=null,Ot=!1;function Tt(t){we=t}let me=null;function Qt(t){me=t}let Pt=null;function Io(t){we!==null&&(Pt===null?Pt=[t]:Pt.push(t))}let dt=null,ht=0,zt=null;function Ld(t){zt=t}let jo=1,Gi=0,li=Gi;function Ao(t){li=t}function Lo(){return++jo}function Hr(t){var e=t.f;if(e&Ke)return!0;if(e&Je&&(t.f&=~Ni),e&Vt){for(var i=t.deps,r=i.length,n=0;n<r;n++){var a=i[n];if(Hr(a)&&po(a),a.wv>t.wv)return!0}e&St&&Xe===null&&Re(t,Ue)}return!1}function Mo(t,e,i=!0){var r=t.reactions;if(r!==null&&!(Pt!==null&&tr.call(Pt,t)))for(var n=0;n<r.length;n++){var a=r[n];a.f&Je?Mo(a,e,!1):e===a&&(i?Re(a,Ke):a.f&Ue&&Re(a,Vt),Ia(a))}}function Do(t){var h;var e=dt,i=ht,r=zt,n=we,a=Pt,o=ze,l=Ot,s=li,d=t.f;dt=null,ht=0,zt=null,we=d&(Mt|bi)?null:t,Pt=null,or(t.ctx),Ot=!1,li=++Gi,t.ac!==null&&(Vi(()=>{t.ac.abort(wn)}),t.ac=null);try{t.f|=mn;var u=t.fn,v=u();t.f|=wi;var p=t.deps,m=de==null?void 0:de.is_fork;if(dt!==null){var g;if(m||Br(t,ht),p!==null&&ht>0)for(p.length=ht+dt.length,g=0;g<dt.length;g++)p[ht+g]=dt[g];else t.deps=p=dt;if(Ma()&&t.f&St)for(g=ht;g<p.length;g++)((h=p[g]).reactions??(h.reactions=[])).push(t)}else!m&&p!==null&&ht<p.length&&(Br(t,ht),p.length=ht);if(Fi()&&zt!==null&&!Ot&&p!==null&&!(t.f&(Je|Vt|Ke)))for(g=0;g<zt.length;g++)Mo(zt[g],t);if(n!==null&&n!==t){if(Gi++,n.deps!==null)for(let y=0;y<i;y+=1)n.deps[y].rv=Gi;if(e!==null)for(const y of e)y.rv=Gi;zt!==null&&(r===null?r=zt:r.push(...zt))}return t.f&xi&&(t.f^=xi),v}catch(y){return Ql(y)}finally{t.f^=mn,dt=e,ht=i,zt=r,we=n,Pt=a,or(o),Ot=l,li=s}}function Md(t,e){let i=e.reactions;if(i!==null){var r=fn.call(i,t);if(r!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[r]=i[n],i.pop())}}if(i===null&&e.f&Je&&(dt===null||!tr.call(dt,e))){var a=e;a.f&St&&(a.f^=St,a.f&=~Ni),a.v!==Ve&&Ea(a),bd(a),Br(a,0)}}function Br(t,e){var i=t.deps;if(i!==null)for(var r=e;r<i.length;r++)Md(t,i[r])}function ur(t){var e=t.f;if(!(e&Et)){Re(t,Ue);var i=me,r=Pn;me=t,Pn=!0;try{e&(_t|ya)?Ad(t):Da(t),So(t);var n=Do(t);t.teardown=typeof n=="function"?n:null,t.wv=jo;var a;Me&&od&&t.f&Ke&&t.deps}finally{Pn=r,me=i}}}async function Vr(){await Promise.resolve(),eo()}function c(t){var e=t.f,i=(e&Je)!==0;if(we!==null&&!Ot){var r=me!==null&&(me.f&Et)!==0;if(!r&&(Pt===null||!tr.call(Pt,t))){var n=we.deps;if(we.f&mn)t.rv<Gi&&(t.rv=Gi,dt===null&&n!==null&&n[ht]===t?ht++:dt===null?dt=[t]:dt.push(t));else{(we.deps??(we.deps=[])).push(t);var a=t.reactions;a===null?t.reactions=[we]:tr.call(a,we)||a.push(we)}}}if(ai&&Bi.has(t))return Bi.get(t);if(i){var o=t;if(ai){var l=o.v;return(!(o.f&Ue)&&o.reactions!==null||Ro(o))&&(l=ja(o)),Bi.set(o,l),l}var s=(o.f&St)===0&&!Ot&&we!==null&&(Pn||(we.f&St)!==0),d=(o.f&wi)===0;Hr(o)&&(s&&(o.f|=St),po(o)),s&&!d&&(uo(o),qo(o))}if(Xe!=null&&Xe.has(t))return Xe.get(t);if(t.f&xi)throw t.v;return t.v}function qo(t){if(t.f|=St,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Je&&!(e.f&St)&&(uo(e),qo(e))}function Ro(t){if(t.v===Ve)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Bi.has(e)||e.f&Je&&Ro(e))return!0;return!1}function Jt(t){var e=Ot;try{return Ot=!0,t()}finally{Ot=e}}function Oo(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Gt in t)Oa(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&Gt in i&&Oa(i)}}}function Oa(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 r in t)try{Oa(t[r],e)}catch{}const i=ha(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const r=Rl(i);for(let n in r){const a=r[n].get;if(a)try{a.call(t)}catch{}}}}}function Dd(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const qd=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Rd(t){return qd.includes(t)}const Od={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 Nd(t){return t=t.toLowerCase(),Od[t]??t}const Fd=["touchstart","touchmove"];function Hd(t){return Fd.includes(t)}const Yi=Symbol("events"),No=new Set,Na=new Set;function Fa(t,e,i,r={}){function n(a){if(r.capture||Ha.call(e,a),!a.cancelBubble)return Vi(()=>i==null?void 0:i.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Dt(()=>{e.addEventListener(t,n,r)}):e.addEventListener(t,n,r),n}function Bd(t,e,i,r={}){var n=Fa(e,t,i,r);return()=>{t.removeEventListener(e,n,r)}}function xe(t,e,i,r,n){var a={capture:r,passive:n},o=Fa(t,e,i,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Fr(()=>{e.removeEventListener(t,o,a)})}function ae(t,e,i){(e[Yi]??(e[Yi]={}))[t]=i}function he(t){for(var e=0;e<t.length;e++)No.add(t[e]);for(var i of Na)i(t)}let Fo=null;function Ha(t){var y,b;var e=this,i=e.ownerDocument,r=t.type,n=((y=t.composedPath)==null?void 0:y.call(t))||[],a=n[0]||t.target;Fo=t;var o=0,l=Fo===t&&t[Yi];if(l){var s=n.indexOf(l);if(s!==-1&&(e===document||e===window)){t[Yi]=e;return}var d=n.indexOf(e);if(d===-1)return;s<=d&&(o=s)}if(a=n[o]||t.target,a!==e){Sc(t,"currentTarget",{configurable:!0,get(){return a||i}});var u=we,v=me;Tt(null),Qt(null);try{for(var p,m=[];a!==null;){var g=a.assignedSlot||a.parentNode||a.host||null;try{var h=(b=a[Yi])==null?void 0:b[r];h!=null&&(!a.disabled||t.target===a)&&h.call(a,t)}catch(_){p?m.push(_):p=_}if(t.cancelBubble||g===e||g===null)break;a=g}if(p){for(let _ of m)queueMicrotask(()=>{throw _});throw p}}finally{t[Yi]=e,delete t.currentTarget,Tt(u),Qt(v)}}}const Ba=((vc=globalThis==null?void 0:globalThis.window)==null?void 0:vc.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Vd(t){return(Ba==null?void 0:Ba.createHTML(t))??t}function Ho(t){var e=La("template");return e.innerHTML=Vd(t.replaceAll("<!>","<!---->")),e.content}function Ti(t,e){var i=me;i.nodes===null&&(i.nodes={start:t,end:e,a:null,t:null})}function C(t,e){var i=(e&ed)!==0,r=(e&td)!==0,n,a=!t.startsWith("<!>");return()=>{n===void 0&&(n=Ho(a?t:"<!>"+t),i||(n=Zt(n)));var o=r||go?document.importNode(n,!0):n.cloneNode(!0);if(i){var l=Zt(o),s=o.lastChild;Ti(l,s)}else Ti(o,o);return o}}function Wd(t,e,i="svg"){var r=!t.startsWith("<!>"),n=`<${i}>${r?t:"<!>"+t}</${i}>`,a;return()=>{if(!a){var o=Ho(n),l=Zt(o);a=Zt(l)}var s=a.cloneNode(!0);return Ti(s,s),s}}function et(t,e){return Wd(t,e,"svg")}function gt(t=""){{var e=Kt(t+"");return Ti(e,e),e}}function ge(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Kt();return t.append(e,i),Ti(e,i),t}function w(t,e){t!==null&&t.before(e)}let zn=!0;function Cn(t){zn=t}function Q(t,e){var i=e==null?"":typeof e=="object"?`${e}`:e;i!==(t[Mr]??(t[Mr]=t.nodeValue))&&(t[Mr]=i,t.nodeValue=`${i}`)}function Ct(t,e){return Ud(t,e)}const In=new Map;function Ud(t,{target:e,anchor:i,props:r={},events:n,context:a,intro:o=!0,transformError:l}){kd();var s=void 0,d=Id(()=>{var u=i??e.appendChild(Kt());lo(u,{pending:()=>{}},m=>{te({});var g=ze;a&&(g.c=a),n&&(r.$$events=n),zn=o,s=t(m,r)||{},zn=!0,ie()},l);var v=new Set,p=m=>{for(var g=0;g<m.length;g++){var h=m[g];if(!v.has(h)){v.add(h);var y=Hd(h);for(const k of[e,document]){var b=In.get(k);b===void 0&&(b=new Map,In.set(k,b));var _=b.get(h);_===void 0?(k.addEventListener(h,Ha,{passive:y}),b.set(h,1)):b.set(h,_+1)}}}};return p(hn(No)),Na.add(p),()=>{var y;for(var m of v)for(const b of[e,document]){var g=In.get(b),h=g.get(m);--h==0?(b.removeEventListener(m,Ha),g.delete(m),g.size===0&&In.delete(b)):g.set(m,h)}Na.delete(p),u!==i&&((y=u.parentNode)==null||y.removeChild(u))}});return Va.set(s,d),s}let Va=new WeakMap;function Ki(t,e){const i=Va.get(t);return i?(Va.delete(t),i(e)):Promise.resolve()}class vr{constructor(e,i=!0){st(this,"anchor");oe(this,Ht,new Map);oe(this,ri,new Map);oe(this,xt,new Map);oe(this,er,new Set);oe(this,sn,!0);oe(this,cn,e=>{if(z(this,Ht).has(e)){var i=z(this,Ht).get(e),r=z(this,ri).get(i);if(r)qa(r),z(this,er).delete(i);else{var n=z(this,xt).get(i);n&&(z(this,ri).set(i,n.effect),z(this,xt).delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),r=n.effect)}for(const[a,o]of z(this,Ht)){if(z(this,Ht).delete(a),a===e)break;const l=z(this,xt).get(o);l&&($e(l.effect),z(this,xt).delete(o))}for(const[a,o]of z(this,ri)){if(a===i||z(this,er).has(a))continue;const l=()=>{if(Array.from(z(this,Ht).values()).includes(a)){var d=document.createDocumentFragment();Ra(o,d),d.append(Kt()),z(this,xt).set(a,{effect:o,fragment:d})}else $e(o);z(this,er).delete(a),z(this,ri).delete(a)};z(this,sn)||!r?(z(this,er).add(a),Ui(o,l,!1)):l()}}});oe(this,oa,e=>{z(this,Ht).delete(e);const i=Array.from(z(this,Ht).values());for(const[r,n]of z(this,xt))i.includes(r)||($e(n.effect),z(this,xt).delete(r))});this.anchor=e,fe(this,sn,i)}ensure(e,i){var r=de,n=bo();if(i&&!z(this,ri).has(e)&&!z(this,xt).has(e))if(n){var a=document.createDocumentFragment(),o=Kt();a.append(o),z(this,xt).set(e,{effect:ct(()=>i(o)),fragment:a})}else z(this,ri).set(e,ct(()=>i(this.anchor)));if(z(this,Ht).set(r,e),n){for(const[l,s]of z(this,ri))l===e?r.unskip_effect(s):r.skip_effect(s);for(const[l,s]of z(this,xt))l===e?r.unskip_effect(s.effect):r.skip_effect(s.effect);r.oncommit(z(this,cn)),r.ondiscard(z(this,oa))}else z(this,cn).call(this,r)}}Ht=new WeakMap,ri=new WeakMap,xt=new WeakMap,er=new WeakMap,sn=new WeakMap,cn=new WeakMap,oa=new WeakMap;const Gd=0,Bo=1,Yd=2;function Pi(t,e,i,r,n){var a=Fi(),o=Ve,l=a?Yt(o):Aa(o,!1,!1),s=a?Yt(o):Aa(o,!1,!1),d=new vr(t);Ei(()=>{var u=de;u.deactivate();var v=e();u.activate();var p=!1;if(Pc(v)){var m=so(),g=!1;const h=y=>{if(!p){g=!0,m(!1),_i.ensure();try{y()}finally{Or(!1),cr||eo()}}};v.then(y=>{h(()=>{ni(l,y),d.ensure(Bo,r&&(b=>r(b,l)))})},y=>{h(()=>{if(ni(s,y),d.ensure(Yd,n&&(b=>n(b,s))),!n)throw s.v})}),Dt(()=>{g||h(()=>{d.ensure(Gd,i)})})}else ni(l,v),d.ensure(Bo,r&&(h=>r(h,l)));return()=>{p=!0}})}function W(t,e,i=!1){var r=new vr(t),n=i?Wt:0;function a(o,l){r.ensure(o,l)}Ei(()=>{var o=!1;e((l,s=0)=>{o=!0,a(s,l)}),o||a(-1,null)},n)}const Kd=Symbol("NaN");function Wr(t,e,i){var r=new vr(t),n=!Fi();Ei(()=>{var a=e();a!==a&&(a=Kd),n&&a!==null&&typeof a=="object"&&(a={}),r.ensure(a,i)})}function je(t,e){return e}function Zd(t,e,i){for(var r=[],n=e.length,a,o=e.length,l=0;l<n;l++){let v=e[l];Ui(v,()=>{if(a){if(a.pending.delete(v),a.done.add(v),a.pending.size===0){var p=t.outrogroups;Wa(t,hn(a.done)),p.delete(a),p.size===0&&(t.outrogroups=null)}}else o-=1},!1)}if(o===0){var s=r.length===0&&i!==null;if(s){var d=i,u=d.parentNode;_d(u),u.append(d),t.items.clear()}Wa(t,e,!s)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function Wa(t,e,i=!0){var r;if(t.pending.size>0){r=new Set;for(const o of t.pending.values())for(const l of o)r.add(t.items.get(l).e)}for(var n=0;n<e.length;n++){var a=e[n];if(r!=null&&r.has(a)){a.f|=Ut;const o=document.createDocumentFragment();Ra(a,o)}else $e(e[n],i)}}var Vo;function Ce(t,e,i,r,n,a=null){var o=t,l=new Map,s=(e&Bl)!==0;if(s){var d=t;o=d.appendChild(Kt())}var u=null,v=Sn(()=>{var k=i();return He(k)?k:k==null?[]:hn(k)}),p,m=new Map,g=!0;function h(k){_.effect.f&Et||(_.pending.delete(k),_.fallback=u,Qd(_,p,o,e,r),u!==null&&(p.length===0?u.f&Ut?(u.f^=Ut,Gr(u,null,o)):qa(u):Ui(u,()=>{u=null})))}function y(k){_.pending.delete(k)}var b=Ei(()=>{p=c(v);for(var k=p.length,I=new Set,E=de,L=bo(),P=0;P<k;P+=1){var R=p[P],M=r(R,P),N=g?null:l.get(M);N?(N.v&&ni(N.v,R),N.i&&ni(N.i,P),L&&E.unskip_effect(N.e)):(N=Jd(l,g?o:Vo??(Vo=Kt()),R,M,P,n,e,i),g||(N.e.f|=Ut),l.set(M,N)),I.add(M)}if(k===0&&a&&!u&&(g?u=ct(()=>a(o)):(u=ct(()=>a(Vo??(Vo=Kt()))),u.f|=Ut)),k>I.size&&Ac(),!g)if(m.set(E,I),L){for(const[O,T]of l)I.has(O)||E.skip_effect(T.e);E.oncommit(h),E.ondiscard(y)}else h(E);c(v)}),_={effect:b,items:l,pending:m,outrogroups:null,fallback:u};g=!1}function Ur(t){for(;t!==null&&!(t.f&Mt);)t=t.next;return t}function Qd(t,e,i,r,n){var N,O,T,x,A,q,U,G,J;var a=(r&Wc)!==0,o=e.length,l=t.items,s=Ur(t.effect.first),d,u=null,v,p=[],m=[],g,h,y,b;if(a)for(b=0;b<o;b+=1)g=e[b],h=n(g,b),y=l.get(h).e,y.f&Ut||((O=(N=y.nodes)==null?void 0:N.a)==null||O.measure(),(v??(v=new Set)).add(y));for(b=0;b<o;b+=1){if(g=e[b],h=n(g,b),y=l.get(h).e,t.outrogroups!==null)for(const V of t.outrogroups)V.pending.delete(y),V.done.delete(y);if(y.f&lt&&(qa(y),a&&((x=(T=y.nodes)==null?void 0:T.a)==null||x.unfix(),(v??(v=new Set)).delete(y))),y.f&Ut)if(y.f^=Ut,y===s)Gr(y,null,i);else{var _=u?u.next:s;y===t.effect.last&&(t.effect.last=y.prev),y.prev&&(y.prev.next=y.next),y.next&&(y.next.prev=y.prev),zi(t,u,y),zi(t,y,_),Gr(y,_,i),u=y,p=[],m=[],s=Ur(u.next);continue}if(y!==s){if(d!==void 0&&d.has(y)){if(p.length<m.length){var k=m[0],I;u=k.prev;var E=p[0],L=p[p.length-1];for(I=0;I<p.length;I+=1)Gr(p[I],k,i);for(I=0;I<m.length;I+=1)d.delete(m[I]);zi(t,E.prev,L.next),zi(t,u,E),zi(t,L,k),s=k,u=L,b-=1,p=[],m=[]}else d.delete(y),Gr(y,s,i),zi(t,y.prev,y.next),zi(t,y,u===null?t.effect.first:u.next),zi(t,u,y),u=y;continue}for(p=[],m=[];s!==null&&s!==y;)(d??(d=new Set)).add(s),m.push(s),s=Ur(s.next);if(s===null)continue}y.f&Ut||p.push(y),u=y,s=Ur(y.next)}if(t.outrogroups!==null){for(const V of t.outrogroups)V.pending.size===0&&(Wa(t,hn(V.done)),(A=t.outrogroups)==null||A.delete(V));t.outrogroups.size===0&&(t.outrogroups=null)}if(s!==null||d!==void 0){var P=[];if(d!==void 0)for(y of d)y.f&lt||P.push(y);for(;s!==null;)!(s.f&lt)&&s!==t.fallback&&P.push(s),s=Ur(s.next);var R=P.length;if(R>0){var M=r&Bl&&o===0?i:null;if(a){for(b=0;b<R;b+=1)(U=(q=P[b].nodes)==null?void 0:q.a)==null||U.measure();for(b=0;b<R;b+=1)(J=(G=P[b].nodes)==null?void 0:G.a)==null||J.fix()}Zd(t,P,M)}}a&&Dt(()=>{var V,K;if(v!==void 0)for(y of v)(K=(V=y.nodes)==null?void 0:V.a)==null||K.apply()})}function Jd(t,e,i,r,n,a,o,l){var s=o&Bc?o&Uc?Yt(i):Aa(i,!1,!1):null,d=o&Vc?Yt(n):null;return{v:s,i:d,e:ct(()=>(a(e,s??i,d??n,l),()=>{t.delete(r)}))}}function Gr(t,e,i){if(t.nodes)for(var r=t.nodes.start,n=t.nodes.end,a=e&&!(e.f&Ut)?e.nodes.start:i;r!==null;){var o=Nr(r);if(a.before(r),r===n)return;r=o}}function zi(t,e,i){e===null?t.effect.first=i:e.next=i,i===null?t.effect.last=e:i.prev=e}function Xd(t,e,i=!1,r=!1,n=!1,a=!1){var o=t,l="";if(i)var s=t;H(()=>{var d=me;if(l!==(l=e()??"")){if(i){d.nodes=null,s.innerHTML=l,l!==""&&Ti(Zt(s),s.lastChild);return}if(d.nodes!==null&&(Eo(d.nodes.start,d.nodes.end),d.nodes=null),l!==""){var u=r?Wl:n?id:void 0,v=La(r?"svg":n?"math":"template",u);v.innerHTML=l;var p=r||n?v:v.content;if(Ti(Zt(p),p.lastChild),r||n)for(;Zt(p);)o.before(Zt(p));else o.before(p)}}})}function We(t,e,...i){var r=new vr(t);Ei(()=>{const n=e()??null;r.ensure(n,n&&(a=>n(a,...i)))},Wt)}function jn(t,e,i){var r=new vr(t);Ei(()=>{var n=e()??null;r.ensure(n,n&&(a=>i(a,n)))},Wt)}const $d=()=>performance.now(),oi={tick:t=>requestAnimationFrame(t),now:()=>$d(),tasks:new Set};function Wo(){const t=oi.now();oi.tasks.forEach(e=>{e.c(t)||(oi.tasks.delete(e),e.f())}),oi.tasks.size!==0&&oi.tick(Wo)}function ep(t){let e;return oi.tasks.size===0&&oi.tick(Wo),{promise:new Promise(i=>{oi.tasks.add(e={c:t,f:i})}),abort(){oi.tasks.delete(e)}}}function An(t,e){Vi(()=>{t.dispatchEvent(new CustomEvent(e))})}function tp(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Uo(t){const e={},i=t.split(";");for(const r of i){const[n,a]=r.split(":");if(!n||a===void 0)break;const o=tp(n.trim());e[o]=a.trim()}return e}const ip=t=>t;let Go=null;function Yo(t){Go=t}function rp(t,e,i){var r=Go??me,n=r.nodes,a,o,l,s=null;n.a??(n.a={element:t,measure(){a=this.element.getBoundingClientRect()},apply(){if(l==null||l.abort(),o=this.element.getBoundingClientRect(),a.left!==o.left||a.right!==o.right||a.top!==o.top||a.bottom!==o.bottom){const d=e()(this.element,{from:a,to:o},i==null?void 0:i());l=Ln(this.element,d,void 0,1,()=>{},()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:d,width:u,height:v}=getComputedStyle(t);if(d!=="absolute"&&d!=="fixed"){var p=t.style;s={position:p.position,width:p.width,height:p.height,transform:p.transform},p.position="absolute",p.width=u,p.height=v;var m=t.getBoundingClientRect();if(a.left!==m.left||a.top!==m.top){var g=`translate(${a.left-m.left}px, ${a.top-m.top}px)`;p.transform=p.transform?`${p.transform} ${g}`:g}}}},unfix(){if(s){var d=t.style;d.position=s.position,d.width=s.width,d.height=s.height,d.transform=s.transform}}}),n.a.element=t}function Oe(t,e,i,r){var k;var n=(t&Jc)!==0,a=(t&Xc)!==0,o=n&&a,l=(t&$c)!==0,s=o?"both":n?"in":"out",d,u=e.inert,v=e.style.overflow,p,m;function g(){return Vi(()=>d??(d=i()(e,(r==null?void 0:r())??{},{direction:s})))}var h={is_global:l,in(){var I;if(e.inert=u,!n){m==null||m.abort(),(I=m==null?void 0:m.reset)==null||I.call(m);return}a||p==null||p.abort(),p=Ln(e,g(),m,1,()=>{An(e,"introstart")},()=>{An(e,"introend"),p==null||p.abort(),p=d=void 0,e.style.overflow=v})},out(I){if(!a){I==null||I(),d=void 0;return}e.inert=!0,m=Ln(e,g(),p,0,()=>{An(e,"outrostart")},()=>{An(e,"outroend"),I==null||I()})},stop:()=>{p==null||p.abort(),m==null||m.abort()}},y=me;if(((k=y.nodes).t??(k.t=[])).push(h),n&&zn){var b=l;if(!b){for(var _=y.parent;_&&_.f&Wt;)for(;(_=_.parent)&&!(_.f&_t););b=!_||(_.f&wi)!==0}b&&Wi(()=>{Jt(()=>h.in())})}}function Ln(t,e,i,r,n,a){var o=r===1;if(ir(e)){var l,s=!1;return Dt(()=>{if(!s){var b=e({direction:o?"in":"out"});l=Ln(t,b,i,r,n,a)}}),{abort:()=>{s=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration)&&!(e!=null&&e.delay))return n(),a(),{abort:ft,deactivate:ft,reset:ft,t:()=>r};const{delay:d=0,css:u,tick:v,easing:p=ip}=e;var m=[];if(o&&i===void 0&&(v&&v(0,1),u)){var g=Uo(u(0,1));m.push(g,g)}var h=()=>1-r,y=t.animate(m,{duration:d,fill:"forwards"});return y.onfinish=()=>{y.cancel(),n();var b=(i==null?void 0:i.t())??1-r;i==null||i.abort();var _=r-b,k=e.duration*Math.abs(_),I=[];if(k>0){var E=!1;if(u)for(var L=Math.ceil(k/16.666666666666668),P=0;P<=L;P+=1){var R=b+_*p(P/L),M=Uo(u(R,1-R));I.push(M),E||(E=M.overflow==="hidden")}E&&(t.style.overflow="hidden"),h=()=>{var N=y.currentTime;return b+_*p(N/k)},v&&ep(()=>{if(y.playState!=="running")return!1;var N=h();return v(N,1-N),!0})}y=t.animate(I,{duration:k,fill:"forwards"}),y.onfinish=()=>{h=()=>r,v==null||v(r,1-r),a()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ft)},deactivate:()=>{a=ft},reset:()=>{r===0&&(v==null||v(1,0))},t:()=>h()}}function Ko(t,e,i,r,n,a){var o=null,l=t,s=me,d=new vr(l,!1);Ei(()=>{const u=e()||null;var v=u==="svg"?Wl:void 0;if(u===null){d.ensure(null,null),Cn(!0);return}return d.ensure(u,p=>{if(u){if(o=La(u,v),Ti(o,o),r){var m=o.appendChild(Kt());Yo(s),r(o,m),Yo(null)}me.nodes.end=o,p.before(o)}}),Cn(!0),()=>{u&&Cn(!1)}},Wt),Fr(()=>{Cn(!0)})}function mt(t,e,i){Wi(()=>{var r=Jt(()=>e(t,i==null?void 0:i())||{});if(i&&(r!=null&&r.update)){var n=!1,a={};Tn(()=>{var o=i();Oo(o),n&&Gl(a,o)&&(a=o,r.update(o))}),n=!0}if(r!=null&&r.destroy)return()=>r.destroy()})}function Mn(t,e){var i=void 0,r;_o(()=>{i!==(i=e())&&(r&&($e(r),r=null),i&&(r=ct(()=>{Wi(()=>i(t))})))})}function Zo(t){var e,i,r="";if(typeof t=="string"||typeof t=="number")r+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Zo(t[e]))&&(r&&(r+=" "),r+=i)}else for(i in t)t[i]&&(r&&(r+=" "),r+=i);return r}function np(){for(var t,e,i=0,r="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Zo(t))&&(r&&(r+=" "),r+=e);return r}function ap(t){return typeof t=="object"?np(t):t??""}const Qo=[...`
3
+ \r\f \v\uFEFF`];function lp(t,e,i){var r=t==null?"":""+t;if(e&&(r=r?r+" "+e:e),i){for(var n of Object.keys(i))if(i[n])r=r?r+" "+n:n;else if(r.length)for(var a=n.length,o=0;(o=r.indexOf(n,o))>=0;){var l=o+a;(o===0||Qo.includes(r[o-1]))&&(l===r.length||Qo.includes(r[l]))?r=(o===0?"":r.substring(0,o))+r.substring(l+1):o=l}}return r===""?null:r}function Jo(t,e=!1){var i=e?" !important;":";",r="";for(var n of Object.keys(t)){var a=t[n];a!=null&&a!==""&&(r+=" "+n+": "+a+i)}return r}function Ua(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function op(t,e){if(e){var i="",r,n;if(Array.isArray(e)?(r=e[0],n=e[1]):r=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,o=0,l=!1,s=[];r&&s.push(...Object.keys(r).map(Ua)),n&&s.push(...Object.keys(n).map(Ua));var d=0,u=-1;const h=t.length;for(var v=0;v<h;v++){var p=t[v];if(l?p==="/"&&t[v-1]==="*"&&(l=!1):a?a===p&&(a=!1):p==="/"&&t[v+1]==="*"?l=!0:p==='"'||p==="'"?a=p:p==="("?o++:p===")"&&o--,!l&&a===!1&&o===0){if(p===":"&&u===-1)u=v;else if(p===";"||v===h-1){if(u!==-1){var m=Ua(t.substring(d,u).trim());if(!s.includes(m)){p!==";"&&v++;var g=t.substring(d,v).trim();i+=" "+g+";"}}d=v+1,u=-1}}}}return r&&(i+=Jo(r)),n&&(i+=Jo(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function ye(t,e,i,r,n,a){var o=t[xa];if(o!==i||o===void 0){var l=lp(i,r,a);l==null?t.removeAttribute("class"):e?t.className=l:t.setAttribute("class",l),t[xa]=i}else if(a&&n!==a)for(var s in a){var d=!!a[s];(n==null||d!==!!n[s])&&t.classList.toggle(s,d)}return a}function Ga(t,e={},i,r){for(var n in i){var a=i[n];e[n]!==a&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,a,r))}}function Ye(t,e,i,r){var n=t[ka];if(n!==e){var a=op(e,r);a==null?t.removeAttribute("style"):t.style.cssText=a,t[ka]=e}else r&&(Array.isArray(r)?(Ga(t,i==null?void 0:i[0],r[0]),Ga(t,i==null?void 0:i[1],r[1],"important")):Ga(t,i,r));return r}function Ya(t,e,i=!1){if(t.multiple){if(e==null)return;if(!He(e))return ad();for(var r of t.options)r.selected=e.includes(Xo(r));return}for(r of t.options){var n=Xo(r);if(xd(n,e)){r.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function sp(t){var e=new MutationObserver(()=>{Ya(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Fr(()=>{e.disconnect()})}function Xo(t){return"__value"in t?t.__value:t.value}const fr=Symbol("class"),hr=Symbol("style"),$o=Symbol("is custom element"),es=Symbol("is html"),cp=_a?"option":"OPTION",dp=_a?"select":"SELECT",pp=_a?"progress":"PROGRESS";function up(t,e){var i=Ka(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==pp)||(t.value=e??"")}function ts(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ue(t,e,i,r){var n=Ka(t);n[e]!==(n[e]=i)&&(e==="loading"&&(t[Ic]=i),i==null?t.removeAttribute(e):typeof i!="string"&&ns(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function vp(t,e,i,r,n=!1,a=!1){var o=Ka(t),l=o[$o],s=!o[es],d=e||{},u=t.nodeName===cp;for(var v in e)v in i||(i[v]=null);i.class?i.class=ap(i.class):(r||i[fr])&&(i.class=null),i[hr]&&(i.style??(i.style=null));var p=ns(t);for(const k in i){let I=i[k];if(u&&k==="value"&&I==null){t.value=t.__value="",d[k]=I;continue}if(k==="class"){var m=t.namespaceURI==="http://www.w3.org/1999/xhtml";ye(t,m,I,r,e==null?void 0:e[fr],i[fr]),d[k]=I,d[fr]=i[fr];continue}if(k==="style"){Ye(t,I,e==null?void 0:e[hr],i[hr]),d[k]=I,d[hr]=i[hr];continue}var g=d[k];if(!(I===g&&!(I===void 0&&t.hasAttribute(k)))){d[k]=I;var h=k[0]+k[1];if(h!=="$$")if(h==="on"){const E={},L="$$"+k;let P=k.slice(2);var y=Rd(P);if(Dd(P)&&(P=P.slice(0,-7),E.capture=!0),!y&&g){if(I!=null)continue;t.removeEventListener(P,d[L],E),d[L]=null}if(y)ae(P,t,I),he([P]);else if(I!=null){let R=function(M){d[k].call(this,M)};d[L]=Fa(P,t,R,E)}}else if(k==="style")ue(t,k,I);else if(k==="autofocus")Sd(t,!!I);else if(!l&&(k==="__value"||k==="value"&&I!=null))t.value=t.__value=I;else if(k==="selected"&&u)ts(t,I);else{var b=k;s||(b=Nd(b));var _=b==="defaultValue"||b==="defaultChecked";if(I==null&&!l&&!_)if(o[k]=null,b==="value"||b==="checked"){let E=t;const L=e===void 0;if(b==="value"){let P=E.defaultValue;E.removeAttribute(b),E.defaultValue=P,E.value=E.__value=L?P:null}else{let P=E.defaultChecked;E.removeAttribute(b),E.defaultChecked=P,E.checked=L?P:!1}}else t.removeAttribute(k);else _||p.includes(b)&&(l||typeof I!="string")?(t[b]=I,b in o&&(o[b]=Ve)):typeof I!="function"&&ue(t,b,I)}}}return d}function is(t,e,i=[],r=[],n=[],a,o=!1,l=!1){oo(n,i,r,s=>{var d=void 0,u={},v=t.nodeName===dp,p=!1;if(_o(()=>{var g=e(...s.map(c)),h=vp(t,d,g,a,o,l);p&&v&&"value"in g&&Ya(t,g.value);for(let b of Object.getOwnPropertySymbols(u))g[b]||$e(u[b]);for(let b of Object.getOwnPropertySymbols(g)){var y=g[b];b.description===rd&&(!d||y!==d[b])&&(u[b]&&$e(u[b]),u[b]=ct(()=>Mn(t,()=>y))),h[b]=y}d=h}),v){var m=t;Wi(()=>{Ya(m,d.value,!0),sp(m)})}p=!0})}function Ka(t){return t[yn]??(t[yn]={[$o]:t.nodeName.includes("-"),[es]:t.namespaceURI===Vl})}var rs=new Map;function ns(t){var e=t.getAttribute("is")||t.nodeName,i=rs.get(e);if(i)return i;rs.set(e,i=[]);for(var r,n=t,a=Element.prototype;a!==n;){r=Rl(n);for(var o in r)r[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&i.push(o);n=ha(n)}return i}function Yr(t,e,i=e){var r=new WeakSet;Pd(t,"input",async n=>{var a=n?t.defaultValue:t.value;if(a=Za(t)?Qa(a):a,i(a),de!==null&&r.add(de),await Vr(),a!==(a=e())){var o=t.selectionStart,l=t.selectionEnd,s=t.value.length;if(t.value=a??"",l!==null){var d=t.value.length;o===l&&l===s&&d>s?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=o,t.selectionEnd=Math.min(l,d))}}}),Jt(e)==null&&t.value&&(i(Za(t)?Qa(t.value):t.value),de!==null&&r.add(de)),Tn(()=>{var n=e();if(t===document.activeElement){var a=de;if(r.has(a))return}Za(t)&&n===Qa(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function Za(t){var e=t.type;return e==="number"||e==="range"}function Qa(t){return t===""?null:+t}const ca=class ca{constructor(e){oe(this,sa);oe(this,qi,new WeakMap);oe(this,zr);oe(this,dn);fe(this,dn,e)}observe(e,i){var r=z(this,qi).get(e)||new Set;return r.add(i),z(this,qi).set(e,r),be(this,sa,xc).call(this).observe(e,z(this,dn)),()=>{var n=z(this,qi).get(e);n.delete(i),n.size===0&&(z(this,qi).delete(e),z(this,zr).unobserve(e))}}};qi=new WeakMap,zr=new WeakMap,dn=new WeakMap,sa=new WeakSet,xc=function(){return z(this,zr)??fe(this,zr,new ResizeObserver(e=>{for(var i of e){ca.entries.set(i.target,i);for(var r of z(this,qi).get(i.target)||[])r(i)}}))},st(ca,"entries",new WeakMap);let Ja=ca;var fp=new Ja({box:"border-box"});function It(t,e,i){var r=fp.observe(t,()=>i(t[e]));Wi(()=>(Jt(()=>i(t[e])),r))}function Xa(t,e){return t===e||(t==null?void 0:t[Gt])===e}function Ze(t={},e,i,r){var n=ze.r,a=me;return Wi(()=>{var o,l;return Tn(()=>{o=l,l=[],Jt(()=>{Xa(i(...l),t)||(e(t,...l),o&&Xa(i(...o),t)&&e(null,...o))})}),()=>{let s=a;for(;s!==n&&s.parent!==null&&s.parent.f&wa;)s=s.parent;const d=()=>{l&&Xa(i(...l),t)&&e(null,...l)},u=s.teardown;s.teardown=()=>{d(),u==null||u()}}}),t}function Kr(t,e){Td(window,["resize"],()=>Vi(()=>e(window[t])))}function $a(t=!1){const e=ze,i=e.l.u;if(!i)return;let r=()=>Oo(e.s);if(t){let n=0,a={};const o=pr(()=>{let l=!1;const s=e.s;for(const d in s)s[d]!==a[d]&&(a[d]=s[d],l=!0);return l&&n++,n});r=()=>c(o)}i.b.length&&Cd(()=>{as(e,r),ga(i.b)}),Ge(()=>{const n=Jt(()=>i.m.map(zc));return()=>{for(const a of n)typeof a=="function"&&a()}}),i.a.length&&Ge(()=>{as(e,r),ga(i.a)})}function as(t,e){if(t.l.s)for(const i of t.l.s)c(i);e()}const hp={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 Dn(t,e,i){return new Proxy({props:t,exclude:e},hp)}const gp={get(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(ir(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r)return r[e]}},set(t,e,i){let r=t.props.length;for(;r--;){let n=t.props[r];ir(n)&&(n=n());const a=yi(n,e);if(a&&a.set)return a.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let r=t.props[i];if(ir(r)&&(r=r()),typeof r=="object"&&r!==null&&e in r){const n=yi(r,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===Gt||e===Hl)return!1;for(let i of t.props)if(ir(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(ir(i)&&(i=i()),!!i){for(const r in i)e.includes(r)||e.push(r);for(const r of Object.getOwnPropertySymbols(i))e.includes(r)||e.push(r)}return e}};function Zr(...t){return new Proxy({props:t},gp)}function D(t,e,i,r){var I;var n=!lr||(i&Yc)!==0,a=(i&Zc)!==0,o=(i&Qc)!==0,l=r,s=!0,d=void 0,u=()=>o&&n?(d??(d=pr(r)),c(d)):(s&&(s=!1,l=o?Jt(r):r),l);let v;if(a){var p=Gt in t||Hl in t;v=((I=yi(t,e))==null?void 0:I.set)??(p&&e in t?E=>t[e]=E:void 0)}var m,g=!1;a?[m,g]=ud(()=>t[e]):m=t[e],m===void 0&&r!==void 0&&(m=u(),v&&(n&&Rc(),v(m)));var h;if(n?h=()=>{var E=t[e];return E===void 0?u():(s=!0,E)}:h=()=>{var E=t[e];return E!==void 0&&(l=void 0),E===void 0?l:E},n&&!(i&Kc))return h;if(v){var y=t.$$legacy;return function(E,L){return arguments.length>0?((!n||!L||y||g)&&v(L?h():E),E):h()}}var b=!1,_=(i&Gc?pr:Sn)(()=>(b=!1,h()));a&&c(_);var k=me;return function(E,L){if(arguments.length>0){const P=L?c(_):n&&a?De(E):E;return F(_,P),b=!0,l!==void 0&&(l=P),E}return ai&&b||k.f&Et?_.v:c(_)}}function tt(t){ze===null&&Sa(),lr&&ze.l!==null?mp(ze).m.push(t):Ge(()=>{const e=Jt(t);if(typeof e=="function")return e})}function qn(t){ze===null&&Sa(),tt(()=>()=>Jt(t))}function mp(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const yp="5";typeof window<"u"&&((fc=window.__svelte??(window.__svelte={})).v??(fc.v=new Set)).add(yp);function Ci(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const bp="https://www.playpilot.com",wp="https://partner-api.playpilot.tech/1.0",xp="https://img-external.playpilot.tech",kp="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.24.0",_p="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Nt=600,el={};async function Xt(t,{headers:e={},method:i="GET",body:r=null,baseUrl:n=wp}={}){const a=!Rn()&&i==="GET";if(a&&t in el)return el[t];const o=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(n+t,{method:i,headers:new Headers({...o,...e}),body:r?JSON.stringify(r):null});if(!(l!=null&&l.ok))throw l;const s=await l.text();let d=s;try{s&&(d=JSON.parse(s))}catch{}return a&&(el[t]=d),d}const ls="EncryptedToken",os="articleReplacementEditToken",Sp="playpilot-editorial-mode";async function ss({href:t=window.location.href,throwError:e=!1}={}){try{const i=Ci();if(!i)throw new Error("No token was provided");const r=cs(t);if(!r)throw new Error("Could not be authenticated");return await Xt(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:r}}),Ep(r),!0}catch(i){if(console.error(i),e)throw i}finally{Tp()}return!1}function cs(t=""){var r,n;const e=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.editorial_token;if(e)return e;if(t){const a=new URL(t).searchParams.get(os);if(a)return decodeURI(a)}return((n=("; "+document.cookie).split(`; ${ls}=`).pop())==null?void 0:n.split(";")[0])||""}function Ep(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const r="expires="+e.toUTCString();document.cookie=ls+"="+t+";"+r+";path=/"}function Rn(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Sp)==="true"||!!t}function Tp(){const t=new URL(window.location.href);t.searchParams.delete(os),window.history.replaceState({},"",t)}function Pp(t){let e=0;for(let i=0;i<t.length;i++){const r=t.charCodeAt(i);e=e*31+r>>>0}return e.toString(16)}function On(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const f={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function gr(){var r,n;const t=(r=window.PlayPilotLinkInjections)==null?void 0:r.language,e=Object.values(f);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(n=document.querySelector("html"))==null?void 0:n.getAttribute("lang");if(i){if(e.includes(i))return i;const a=e.find(o=>o.toLowerCase().startsWith(i+"-"));if(a)return a}return f.English}function ds(t,e=""){const i=[],r=[t];for(;r.length>0;){const n=r.pop();if(i.includes(n)||e&&n.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(n.tagName)||n.offsetWidth<=1)continue;const a=Array.from(n.childNodes).some(s=>{var d;return s.nodeType===Node.TEXT_NODE&&((d=s.nodeValue)==null?void 0:d.trim())!==""});if(a&&n.tagName==="LI"){const s=n.closest("ul, ol");s&&!i.includes(s)&&i.push(s);continue}const o=n.tagName==="P"&&!!n.textContent;if(a||o){i.push(n);continue}const l=Array.from(n.children);for(let s=l.length-1;s>=0;s--)r.push(l[s])}return i}function tl(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const i=t.replace(/(:)/g,"\\$1"),r=document.querySelector(i);if(r)return r}return document.querySelector("article")||document.querySelector("main")||document.body}function ps(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function Qr(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const i=tl(),r=ds(i,(t==null?void 0:t.exclude_elements_selector)||""),n=ps(r);return{parentElement:i,elements:r,pageText:n}}function us(){const t=tl();return{content_heading:zp(t),content_modified_time:Cp(t),content_published_time:Ip(t)}}function zp(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Cp(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=vs().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?il(i):null}function Ip(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=vs().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?il(i):null}function il(t){try{return new Date(t).toISOString()}catch{return null}}function vs(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(i=>i.textContent.includes("dateModified")||i.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function Zi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function jp(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function rl(t){return Object.entries(t).filter(([i,r])=>r!=null&&r!=="").map(([i,r])=>`${i}=${r}`).join("&")}function Ap(t){return!!(t.exclude_urls_pattern&&Zi().match(new RegExp(t.exclude_urls_pattern)))}let nl=null;async function Nn({url:t=Zi(),params:e={},method:i="GET"}={}){const r=Ci(),n=Rn()?await ss():!1,a=gr();if(!r)throw new Error("No token was provided");const o=`/external-pages/?api-token=${r}&include_title_details=true${n?"&editorial_mode_enabled=true":""}&language=${a}`;let l;if(i==="POST"){const{pageText:s}=Qr();e.run_ai&&(e.hash=Pp(s||""),e.page_text=s),e.url=t,e.metadata=us(),l=await Xt(o,{method:"POST",body:e})}else l=await Xt(o+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=l,l}async function fs({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:i=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let a=0;nl&&clearTimeout(nl);const o=async(l,s)=>{let d;try{try{d=await Nn()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(d=await Nn({method:"POST"}),d.ai_enabled&&(d=await Nn({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:u}=Qr();if(d&&e&&(d=await Lp(u,d)),t&&d.ai_enabled&&d.ai_running)throw new Error;d.manual_injections=hs(d.manual_injections||[]),d.ai_injections=hs(d.ai_injections||[]),l(d);return}catch{if(a++,a>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),l();return}d&&n(d),nl=setTimeout(()=>o(l),i)}};return new Promise(o)}async function Lp(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=us().content_modified_time,r=e.content_modified_time?il(e.content_modified_time):null,n=i&&r===i;return e.ai_last_run&&n||new Date(i||0)<=new Date(r||0)?e:await Nn({params:{run_ai:!0},method:"POST"})}function hs(t){return t.map(e=>({...e,key:Mp(e.sid)}))}function Mp(t){return t+"-"+On()}function Dp(t,e,i){return t.filter(r=>i.every(n=>r[n]===e[n])).length}function qp(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Rp(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function al(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function gs(t,e,i=[]){var a,o;const r=document.createTreeWalker(e);let n;for(;(n=r.nextNode())&&!((a=n.nodeValue)!=null&&a.includes(t)&&!i.includes(((o=n.parentNode)==null?void 0:o.nodeName)||"")););return n}function ms(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Op(t,e,i,r){const n=Rp(e),a=al(e),o=t.slice(0,r),l=t.slice(r),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${a.replace(s,"\\$&")}|${n.replace(s,"\\$&")}`),u=l.replace(d,i);return o+u}function Np(t,e,i,r){return t.substring(0,i)+e+t.substring(r)}function Ii(t){return al(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Fp(t,e,i){const r=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!r||!t.textContent)return{before:"",after:""};const n=Math.max(r.innerText.indexOf(t.textContent),0),a=ys(r.innerText.slice(0,e+n)),o=r.innerText.slice(i+n),l=ys(bs(a,2)),s=bs(o,2);return{before:l,after:s}}function ys(t){return t.split("").reverse().join("")}function bs(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function Fn(t,e){let i=0,r=0;for(;(r=t.indexOf(e,r))!==-1;)i++,r+=e.length;return i}function Hp(t,e,i){const r=[];let n=0;for(;n<=t.length;){const a=e?t.indexOf(e,n):n;if(a===-1&&e)break;const o=e?a+e.length:a,l=i?t.indexOf(i,o):t.length;if(i&&l===-1)break;const s=t.slice(o,l);r.push({match:s,index:o}),n=i?l+i.length:t.length+1}return r}function Bp(t,e,i,r){const a=Hp(t,i,r).filter(({match:l})=>al(l).includes(e));return a.length?a.reduce((l,s)=>!l||s.match.length<l.match.length?s:l):null}function Vp(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function Wp(t,e,i=0){const r=e.innerHTML,n=[],a=Up(e);let o=r.indexOf(t);for(;o!==-1;)qp(o,a)&&n.push(o),o=r.indexOf(t,o+t.length);return n[i]??-1}function Up(t){const e=[],i=t.innerHTML;let r=!1,n=!1,a=!1,o=0;for(let l=0;l<i.length;l++){const s=i[l];if(!n&&!r&&s==="<"){r=!0,a&&(e.push({start:o,end:l}),a=!1);continue}if(r&&s==='"'&&(n=!n),r&&!n&&s===">"){r=!1;continue}!r&&!n&&!a&&(o=l,a=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function Gp(t,e){const i=[" ",".",",","<",">"];try{const r=i.map(l=>"\\"+l).join(""),n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`([${r}])${n}([${r}])`),o=e.match(a);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function ws(t){return t.ctrlKey||t.metaKey||t.button!==0}const se={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",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",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",ExploreTitleReelSetIndex:"venus_title_reel_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Ft={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},ji={Card:"tpi_card",Link:"tpi_link"};function Yp(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function $t(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Hn(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const Bn=[{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 Kp(t=[]){return t.map(e=>{var i;return((i=Bn.find(r=>r.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const ll="playpilot_user_id",ol="playpilot_session_id";function xs(){if(!sl())return null;try{const t=localStorage.getItem(ll);return t||(localStorage.setItem(ll,On(16)),localStorage.getItem(ll))}catch{return null}}function Zp(){if(!sl())return null;try{const t=sessionStorage.getItem(ol);return t||(sessionStorage.setItem(ol,On(16)),sessionStorage.getItem(ol))}catch{return null}}function sl(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&$t("tracking")}const Qp="https://insights.playpilot.net";async function ce(t,e=null,i={}){var n,a,o,l,s,d;if(Hn())return;if(!$t("tracking")){Xp(t,e,i);return}if((((n=window.PlayPilotLinkInjections.tracked_events)==null?void 0:n.length)||0)>500)return;const r=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Kp(e.genres),providers:[...new Set(((a=e.providers)==null?void 0:a.map(u=>u.name))||[])],...i}),sl()&&(i.user_id=xs(),i.session_id=Zp(),i.region=window.PlayPilotLinkInjections.region),i.version="8.23.5",i.time_since_initialize=(o=window.PlayPilotLinkInjections)!=null&&o.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Zi(),i.url_params=jp(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Nt?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((d=screen.orientation)==null?void 0:d.type)||"undefined"},fetch(Qp,{headers:r,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Jp({event:t,payload:i})}function Jp(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function ks({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Xp(t,e=null,i={}){var r;(r=window.PlayPilotLinkInjections).queued_tracking_events||(r.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function $p(){if($t("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ce(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function _s(){if(!$t("ads"))return[];const t=Ci();if(!t)throw new Error("No token was provided");try{return await Xt(`/ads/browse/?api-token=${t}`)}catch(e){throw ce(se.AdsFetchFailed,null,{status:e.status}),e}}function Jr(t){var e;return!$t("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function eu(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 tu={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"},Ss="playpilot_retargeting_user_id",Es="playpilot_retargeting_region",iu=500,Ts=[];let cl=[],dl=null;function ei(t,e={}){var s;const i=window[Ss]||null,r=window[Es]||null,n=((s=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:s[1])||null,a=window.location.href,o={event:t,url:a,user_id:i,client_id:n,region:r,params:e},l=JSON.stringify(o);Ts.includes(l)||(cl.push(o),Ts.push(l),dl&&clearTimeout(dl),dl=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(cl)}),cl=[]},iu))}function Ps(t,e={}){return()=>{Ge(()=>ei(t,e))}}function ru(t,e={}){return i=>{const r=()=>ei(t,e);Ge(()=>(i.addEventListener("click",r),()=>i.removeEventListener("click",r)))}}async function mr(t=5e3){var i,r,n,a;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const l=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(r=l==null?void 0:l.country)==null?void 0:r.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),nu(s),s}catch(o){return ce(se.RegionRequestFailed,null,{message:o.message}),((a=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:a.fallback_region)||""}}async function zs(t=""){try{return t||(t=await mr()),!t||Object.values(tu).some(e=>e===t)}catch{return!0}}function nu(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[Es]=t)}async function Vn(t={}){const e=Ci();if(!e)throw new Error("No token was provided");if(t={...t,language:gr(),include_count:"false"},t.region!==null){let i=t.region||await mr();await zs(i)||(i="gl"),t.region=i}return await Xt(`/titles/browse?api-token=${e}&`+rl(t))}async function Cs(t){return(await Vn({related_to_sid:t.sid})).results}async function Is(t){const i=(await Vn({sids:t,no_region_filter:!0})).results[0];if(!i)throw new Error("No title was returned for sid: "+t);return i}const au={"Where To Stream Online":{[f.English]:"Where to stream online",[f.Swedish]:"Var kan man streama online",[f.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[f.English]:"We may earn a commission from purchases made through some of the links below.",[f.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[f.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[f.English]:"An error occurred",[f.Swedish]:"Ett fel inträffade",[f.Danish]:"Der opstod en fejl"},Loading:{[f.English]:"Loading",[f.Swedish]:"Laddar",[f.Danish]:"Indlæser"},"Title Unavailable":{[f.English]:"This title is not currently available to stream.",[f.Swedish]:"Den här titeln går inte att streama just nu.",[f.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[f.English]:"is not currently available to stream.",[f.Swedish]:"går inte att streama just nu.",[f.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[f.English]:"is available to stream on",[f.Swedish]:"finns att streama på",[f.Danish]:"kan streames på"},"Is Available To Stream":{[f.English]:"is available to stream.",[f.Swedish]:"finns att streama.",[f.Danish]:"kan streames."},"View Streaming Options":{[f.English]:"View streaming options",[f.Swedish]:"Se streamingalternativ",[f.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[f.English]:"and",[f.Swedish]:"och",[f.Danish]:"og"},Minutes:{[f.English]:"minutes",[f.Swedish]:"minuter",[f.Danish]:"minutter"},"Type: movie":{[f.English]:"Movie",[f.Swedish]:"Film",[f.Danish]:"Film"},"Type: series":{[f.English]:"Series",[f.Swedish]:"Serie",[f.Danish]:"Serie"},Stream:{[f.English]:"Stream",[f.Swedish]:"Streama",[f.Danish]:"Stream"},Buy:{[f.English]:"Buy",[f.Swedish]:"Köp",[f.Danish]:"Køb"},Rent:{[f.English]:"Rent",[f.Swedish]:"Hyr",[f.Danish]:"Lej"},"Rent Or Buy":{[f.English]:"Rent or Buy",[f.Swedish]:"Hyr/köp",[f.Danish]:"Lej eller køb"},Watch:{[f.English]:"Watch",[f.Swedish]:"Titta nu",[f.Danish]:"Se nu"},"Category: AVOD":{[f.English]:"Stream for free",[f.Swedish]:"Streama gratis",[f.Danish]:"Stream gratis"},"Category: SVOD":{[f.English]:"Streaming services",[f.Swedish]:"Streamingtjänster",[f.Danish]:"Streamingtjenester"},"Category: RENT":{[f.English]:"Rent it",[f.Swedish]:"Hyr den",[f.Danish]:"Lej den"},"Category: BUY":{[f.English]:"Buy it",[f.Swedish]:"Köp den",[f.Danish]:"Køb den"},"Category: Other":{[f.English]:"Other",[f.Swedish]:"Annat",[f.Danish]:"Andet"},Share:{[f.English]:"Share",[f.Swedish]:"Dela",[f.Danish]:"Del"},"Copy URL":{[f.English]:"Copy URL",[f.Swedish]:"Kopiera URL",[f.Danish]:"Kopiér URL"},Email:{[f.English]:"Email",[f.Swedish]:"E-post",[f.Danish]:"E-mail"},"Show More":{[f.English]:"Show more",[f.Swedish]:"Visa mer",[f.Danish]:"Vis mere"},"Show Less":{[f.English]:"Show less",[f.Swedish]:"Visa mindre",[f.Danish]:"Vis mindre"},Cast:{[f.English]:"Cast",[f.Swedish]:"Rollista",[f.Danish]:"Skuespillere"},"Similar Titles":{[f.English]:"Similar movies & shows",[f.Swedish]:"Liknande filmer och serier",[f.Danish]:"Lignende film og serier"},"Watch Trailer":{[f.English]:"Watch trailer",[f.Swedish]:"Se trailer",[f.Danish]:"Se trailer"},"Streaming Guide":{[f.English]:"Streaming Guide",[f.Swedish]:"Streaming Guide",[f.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[f.English]:"Discover and search all movies and TV shows",[f.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[f.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[f.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[f.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[f.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"Streaming Guide Description":{[f.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[f.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[f.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":{[f.English]:"Search movies and shows",[f.Swedish]:"Sök filmer och serier",[f.Danish]:"Søg film og serier"},Services:{[f.English]:"Services",[f.Swedish]:"Tjänster",[f.Danish]:"Tjenester"},Genres:{[f.English]:"Genres",[f.Swedish]:"Genrer",[f.Danish]:"Genrer"},IMDb:{[f.English]:"IMDb",[f.Swedish]:"IMDb",[f.Danish]:"IMDb"},Year:{[f.English]:"Year",[f.Swedish]:"År",[f.Danish]:"År"},Runtime:{[f.English]:"Runtime",[f.Swedish]:"Speltid",[f.Danish]:"Spilletid"},Countries:{[f.English]:"Countries",[f.Swedish]:"Länder",[f.Danish]:"Lande"},"All Filters":{[f.English]:"All filters",[f.Swedish]:"Alla filter",[f.Danish]:"Alle filtre"},"Sort By":{[f.English]:"Sort by",[f.Swedish]:"Sortera efter",[f.Danish]:"Sortér efter"},Popularity:{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},New:{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"Top Rated":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},"-popularity":{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},"-new":{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"-best":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},Search:{[f.English]:"Search",[f.Swedish]:"Sök",[f.Danish]:"Søg"},"Born On":{[f.English]:"Born on",[f.Swedish]:"Född den",[f.Danish]:"Født den"},"Died On":{[f.English]:"Died on",[f.Swedish]:"Död den",[f.Danish]:"Død den"},Credits:{[f.English]:"Credits",[f.Swedish]:"Medverkande",[f.Danish]:"Medvirkende"},Home:{[f.English]:"Home",[f.Swedish]:"Hem",[f.Danish]:"Hjem"},Explore:{[f.English]:"Explore",[f.Swedish]:"Utforska",[f.Danish]:"Udforsk"},"Page Not Found":{[f.English]:"Page not found",[f.Swedish]:"Sidan hittades inte",[f.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[f.English]:"Mentioned in this article",[f.Swedish]:"Nämnda i den här artikeln",[f.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[f.English]:"Sorry, your region is not supported",[f.Swedish]:"Tyvärr stöds inte din region",[f.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[f.English]:"Show [[count]] more",[f.Swedish]:"Visa [[count]] till",[f.Danish]:"Vis [[count]] mere"},"List: Trending":{[f.English]:"Trending Movies & Shows",[f.Swedish]:"Trendande Titlar",[f.Danish]:"Populære film og serier"},"List: Upcoming":{[f.English]:"Upcoming Releases",[f.Swedish]:"Kommande Premiärer",[f.Danish]:"Mest ventede film"},"List: New":{[f.English]:"New Releases",[f.Swedish]:"Nya Filmer & Serier",[f.Danish]:"Nye film og serier"},"List: Demand":{[f.English]:"Always in Demand",[f.Swedish]:"Tidlösa Favoriter",[f.Danish]:"Tidløse favoritter"},"List: Cinema":{[f.English]:"Coming to Cinemas",[f.Swedish]:"Snart på Bio",[f.Danish]:"Kommende film"},"Explore All Movies And Shows":{[f.English]:"Explore all movies and TV shows",[f.Swedish]:"Utforska alla filmer och tv-serier",[f.Danish]:"Udforsk alle film og tv-serier"},All:{[f.English]:"All",[f.Swedish]:"Alla",[f.Danish]:"Alle"},Unscripted:{[f.English]:"Unscripted",[f.Swedish]:"Oscripterat",[f.Danish]:"Umanuskriptet"},Independent:{[f.English]:"Independent",[f.Swedish]:"Indie",[f.Danish]:"Indie"},"Game Show":{[f.English]:"Game Show",[f.Swedish]:"Gameshow",[f.Danish]:"Quizshow"},"Film Noir":{[f.English]:"Film Noir",[f.Swedish]:"Film noir",[f.Danish]:"Film noir"},Entertainment:{[f.English]:"Entertainment",[f.Swedish]:"Underhållning",[f.Danish]:"Underholdning"},News:{[f.English]:"News",[f.Swedish]:"Nyheter",[f.Danish]:"Nyheder"},Short:{[f.English]:"Short",[f.Swedish]:"Kortfilm",[f.Danish]:"Kortfilm"},Bollywood:{[f.English]:"Bollywood",[f.Swedish]:"Bollywood",[f.Danish]:"Bollywood"},Concert:{[f.English]:"Concert",[f.Swedish]:"Konsert",[f.Danish]:"Koncert"},Arthouse:{[f.English]:"Arthouse",[f.Swedish]:"Arthouse",[f.Danish]:"Arthouse"},"Alternate Version":{[f.English]:"Alternate Version",[f.Swedish]:"Alternativ version",[f.Danish]:"Alternativ version"},"Reality TV":{[f.English]:"Reality TV",[f.Swedish]:"Reality-TV",[f.Danish]:"Reality-TV"},Culture:{[f.English]:"Culture",[f.Swedish]:"Kultur",[f.Danish]:"Kultur"},Drama:{[f.English]:"Drama",[f.Swedish]:"Drama",[f.Danish]:"Drama"},Crime:{[f.English]:"Crime",[f.Swedish]:"Kriminal",[f.Danish]:"Krimi"},Western:{[f.English]:"Western",[f.Swedish]:"Western",[f.Danish]:"Western"},Thriller:{[f.English]:"Thriller",[f.Swedish]:"Thriller",[f.Danish]:"Thriller"},Animation:{[f.English]:"Animation",[f.Swedish]:"Animerat",[f.Danish]:"Animation"},Mystery:{[f.English]:"Mystery",[f.Swedish]:"Mysterium",[f.Danish]:"Mysterium"},Science:{[f.English]:"Science",[f.Swedish]:"Vetenskap",[f.Danish]:"Videnskab"},Nature:{[f.English]:"Nature",[f.Swedish]:"Natur",[f.Danish]:"Natur"},War:{[f.English]:"War",[f.Swedish]:"Krig",[f.Danish]:"Krig"},"Sci-Fi":{[f.English]:"Sci-Fi",[f.Swedish]:"Sci-fi",[f.Danish]:"Sci-fi"},Documentary:{[f.English]:"Documentary",[f.Swedish]:"Dokumentär",[f.Danish]:"Dokumentar"},"Stand-up":{[f.English]:"Stand-up",[f.Swedish]:"Standup",[f.Danish]:"Stand-up"},"Talk Show":{[f.English]:"Talk Show",[f.Swedish]:"Talkshow",[f.Danish]:"Talkshow"},Fantasy:{[f.English]:"Fantasy",[f.Swedish]:"Fantasy",[f.Danish]:"Fantasy"},History:{[f.English]:"History",[f.Swedish]:"Historia",[f.Danish]:"Historie"},Adventure:{[f.English]:"Adventure",[f.Swedish]:"Äventyr",[f.Danish]:"Eventyr"},Action:{[f.English]:"Action",[f.Swedish]:"Action",[f.Danish]:"Action"},Horror:{[f.English]:"Horror",[f.Swedish]:"Skräck",[f.Danish]:"Gyser"},Comedy:{[f.English]:"Comedy",[f.Swedish]:"Komedi",[f.Danish]:"Komedie"},Biography:{[f.English]:"Biography",[f.Swedish]:"Biografi",[f.Danish]:"Biografi"},Music:{[f.English]:"Music",[f.Swedish]:"Musik",[f.Danish]:"Musik"},Sport:{[f.English]:"Sport",[f.Swedish]:"Sport",[f.Danish]:"Sport"},Romance:{[f.English]:"Romance",[f.Swedish]:"Romantik",[f.Danish]:"Romantik"},Kids:{[f.English]:"Kids",[f.Swedish]:"Barn",[f.Danish]:"Børn"},Lifestyle:{[f.English]:"Lifestyle",[f.Swedish]:"Livsstil",[f.Danish]:"Livsstil"},Musical:{[f.English]:"Musical",[f.Swedish]:"Musikal",[f.Danish]:"Musical"},Anime:{[f.English]:"Anime",[f.Swedish]:"Anime",[f.Danish]:"Anime"},Family:{[f.English]:"Family",[f.Swedish]:"Familj",[f.Danish]:"Familie"}};function ie(t,e=gr()){var i;return((i=au[t])==null?void 0:i[e])||t}const lu=t=>t;function js(t){const e=t-1;return e*e*e+1}function As(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function si(t,{delay:e=0,duration:i=400,easing:r=lu}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:r,css:a=>`opacity: ${a*n}`}}function Xr(t,{delay:e=0,duration:i=400,easing:r=js,x:n=0,y:a=0,opacity:o=0}={}){const l=getComputedStyle(t),s=+l.opacity,d=l.transform==="none"?"":l.transform,u=s*(1-o),[v,p]=As(n),[m,g]=As(a);return{delay:e,duration:i,easing:r,css:(h,y)=>`
5
+ `)}function Qr(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const i=tl(),r=ds(i,(t==null?void 0:t.exclude_elements_selector)||""),n=ps(r);return{parentElement:i,elements:r,pageText:n}}function us(){const t=tl();return{content_heading:zp(t),content_modified_time:Cp(t),content_published_time:Ip(t)}}function zp(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Cp(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=vs().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?il(i):null}function Ip(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=vs().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?il(i):null}function il(t){try{return new Date(t).toISOString()}catch{return null}}function vs(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(i=>i.textContent.includes("dateModified")||i.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function Zi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function jp(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function rl(t){return Object.entries(t).filter(([i,r])=>r!=null&&r!=="").map(([i,r])=>`${i}=${r}`).join("&")}function Ap(t){return!!(t.exclude_urls_pattern&&Zi().match(new RegExp(t.exclude_urls_pattern)))}let nl=null;async function Nn({url:t=Zi(),params:e={},method:i="GET"}={}){const r=Ci(),n=Rn()?await ss():!1,a=gr();if(!r)throw new Error("No token was provided");const o=`/external-pages/?api-token=${r}&include_title_details=true${n?"&editorial_mode_enabled=true":""}&language=${a}`;let l;if(i==="POST"){const{pageText:s}=Qr();e.run_ai&&(e.hash=Pp(s||""),e.page_text=s),e.url=t,e.metadata=us(),l=await Xt(o,{method:"POST",body:e})}else l=await Xt(o+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=l,l}async function fs({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:i=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let a=0;nl&&clearTimeout(nl);const o=async(l,s)=>{let d;try{try{d=await Nn()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(d=await Nn({method:"POST"}),d.ai_enabled&&(d=await Nn({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:u}=Qr();if(d&&e&&(d=await Lp(u,d)),t&&d.ai_enabled&&d.ai_running)throw new Error;d.manual_injections=hs(d.manual_injections||[]),d.ai_injections=hs(d.ai_injections||[]),l(d);return}catch{if(a++,a>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),l();return}d&&n(d),nl=setTimeout(()=>o(l),i)}};return new Promise(o)}async function Lp(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=us().content_modified_time,r=e.content_modified_time?il(e.content_modified_time):null,n=i&&r===i;return e.ai_last_run&&n||new Date(i||0)<=new Date(r||0)?e:await Nn({params:{run_ai:!0},method:"POST"})}function hs(t){return t.map(e=>({...e,key:Mp(e.sid)}))}function Mp(t){return t+"-"+On()}function Dp(t,e,i){return t.filter(r=>i.every(n=>r[n]===e[n])).length}function qp(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Rp(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function al(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function gs(t,e,i=[]){var a,o;const r=document.createTreeWalker(e);let n;for(;(n=r.nextNode())&&!((a=n.nodeValue)!=null&&a.includes(t)&&!i.includes(((o=n.parentNode)==null?void 0:o.nodeName)||"")););return n}function ms(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Op(t,e,i,r){const n=Rp(e),a=al(e),o=t.slice(0,r),l=t.slice(r),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${a.replace(s,"\\$&")}|${n.replace(s,"\\$&")}`),u=l.replace(d,i);return o+u}function Np(t,e,i,r){return t.substring(0,i)+e+t.substring(r)}function Ii(t){return al(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Fp(t,e,i){const r=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!r||!t.textContent)return{before:"",after:""};const n=Math.max(r.innerText.indexOf(t.textContent),0),a=ys(r.innerText.slice(0,e+n)),o=r.innerText.slice(i+n),l=ys(bs(a,2)),s=bs(o,2);return{before:l,after:s}}function ys(t){return t.split("").reverse().join("")}function bs(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function Fn(t,e){let i=0,r=0;for(;(r=t.indexOf(e,r))!==-1;)i++,r+=e.length;return i}function Hp(t,e,i){const r=[];let n=0;for(;n<=t.length;){const a=e?t.indexOf(e,n):n;if(a===-1&&e)break;const o=e?a+e.length:a,l=i?t.indexOf(i,o):t.length;if(i&&l===-1)break;const s=t.slice(o,l);r.push({match:s,index:o}),n=i?l+i.length:t.length+1}return r}function Bp(t,e,i,r){const a=Hp(t,i,r).filter(({match:l})=>al(l).includes(e));return a.length?a.reduce((l,s)=>!l||s.match.length<l.match.length?s:l):null}function Vp(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function Wp(t,e,i=0){const r=e.innerHTML,n=[],a=Up(e);let o=r.indexOf(t);for(;o!==-1;)qp(o,a)&&n.push(o),o=r.indexOf(t,o+t.length);return n[i]??-1}function Up(t){const e=[],i=t.innerHTML;let r=!1,n=!1,a=!1,o=0;for(let l=0;l<i.length;l++){const s=i[l];if(!n&&!r&&s==="<"){r=!0,a&&(e.push({start:o,end:l}),a=!1);continue}if(r&&s==='"'&&(n=!n),r&&!n&&s===">"){r=!1;continue}!r&&!n&&!a&&(o=l,a=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function Gp(t,e){const i=[" ",".",",","<",">"];try{const r=i.map(l=>"\\"+l).join(""),n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`([${r}])${n}([${r}])`),o=e.match(a);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function ws(t){return t.ctrlKey||t.metaKey||t.button!==0}const se={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",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",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",ExploreTitleReelSetIndex:"venus_title_reel_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Ft={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},ji={Card:"tpi_card",Link:"tpi_link"};function Yp(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function $t(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Hn(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const Bn=[{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 Kp(t=[]){return t.map(e=>{var i;return((i=Bn.find(r=>r.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const ll="playpilot_user_id",ol="playpilot_session_id";function xs(){if(!sl())return null;try{const t=localStorage.getItem(ll);return t||(localStorage.setItem(ll,On(16)),localStorage.getItem(ll))}catch{return null}}function Zp(){if(!sl())return null;try{const t=sessionStorage.getItem(ol);return t||(sessionStorage.setItem(ol,On(16)),sessionStorage.getItem(ol))}catch{return null}}function sl(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&$t("tracking")}const Qp="https://insights.playpilot.net";async function ce(t,e=null,i={}){var n,a,o,l,s,d;if(Hn())return;if(!$t("tracking")){Xp(t,e,i);return}if((((n=window.PlayPilotLinkInjections.tracked_events)==null?void 0:n.length)||0)>500)return;const r=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Kp(e.genres),providers:[...new Set(((a=e.providers)==null?void 0:a.map(u=>u.name))||[])],...i}),sl()&&(i.user_id=xs(),i.session_id=Zp(),i.region=window.PlayPilotLinkInjections.region),i.version="8.24.0",i.time_since_initialize=(o=window.PlayPilotLinkInjections)!=null&&o.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=Zi(),i.url_params=jp(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Nt?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((d=screen.orientation)==null?void 0:d.type)||"undefined"},fetch(Qp,{headers:r,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Jp({event:t,payload:i})}function Jp(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function ks({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Xp(t,e=null,i={}){var r;(r=window.PlayPilotLinkInjections).queued_tracking_events||(r.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function $p(){if($t("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ce(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function _s(){if(!$t("ads"))return[];const t=Ci();if(!t)throw new Error("No token was provided");try{return await Xt(`/ads/browse/?api-token=${t}`)}catch(e){throw ce(se.AdsFetchFailed,null,{status:e.status}),e}}function Jr(t){var e;return!$t("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function eu(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 tu={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"},Ss="playpilot_retargeting_user_id",Es="playpilot_retargeting_region",iu=500,Ts=[];let cl=[],dl=null;function ei(t,e={}){var s;const i=window[Ss]||null,r=window[Es]||null,n=((s=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:s[1])||null,a=window.location.href,o={event:t,url:a,user_id:i,client_id:n,region:r,params:e},l=JSON.stringify(o);Ts.includes(l)||(cl.push(o),Ts.push(l),dl&&clearTimeout(dl),dl=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(cl)}),cl=[]},iu))}function Ps(t,e={}){return()=>{Ge(()=>ei(t,e))}}function ru(t,e={}){return i=>{const r=()=>ei(t,e);Ge(()=>(i.addEventListener("click",r),()=>i.removeEventListener("click",r)))}}async function mr(t=5e3){var i,r,n,a;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const l=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(r=l==null?void 0:l.country)==null?void 0:r.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),nu(s),s}catch(o){return ce(se.RegionRequestFailed,null,{message:o.message}),((a=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:a.fallback_region)||""}}async function zs(t=""){try{return t||(t=await mr()),!t||Object.values(tu).some(e=>e===t)}catch{return!0}}function nu(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[Es]=t)}async function Vn(t={}){const e=Ci();if(!e)throw new Error("No token was provided");if(t={...t,language:gr(),include_count:"false"},t.region!==null){let i=t.region||await mr();await zs(i)||(i="gl"),t.region=i}return await Xt(`/titles/browse?api-token=${e}&`+rl(t))}async function Cs(t){return(await Vn({related_to_sid:t.sid})).results}async function Is(t){const i=(await Vn({sids:t,no_region_filter:!0})).results[0];if(!i)throw new Error("No title was returned for sid: "+t);return i}const au={"Where To Stream Online":{[f.English]:"Where to stream online",[f.Swedish]:"Var kan man streama online",[f.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[f.English]:"We may earn a commission from purchases made through some of the links below.",[f.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[f.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[f.English]:"An error occurred",[f.Swedish]:"Ett fel inträffade",[f.Danish]:"Der opstod en fejl"},Loading:{[f.English]:"Loading",[f.Swedish]:"Laddar",[f.Danish]:"Indlæser"},"Title Unavailable":{[f.English]:"This title is not currently available to stream.",[f.Swedish]:"Den här titeln går inte att streama just nu.",[f.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[f.English]:"is not currently available to stream.",[f.Swedish]:"går inte att streama just nu.",[f.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[f.English]:"is available to stream on",[f.Swedish]:"finns att streama på",[f.Danish]:"kan streames på"},"Is Available To Stream":{[f.English]:"is available to stream.",[f.Swedish]:"finns att streama.",[f.Danish]:"kan streames."},"View Streaming Options":{[f.English]:"View streaming options",[f.Swedish]:"Se streamingalternativ",[f.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[f.English]:"and",[f.Swedish]:"och",[f.Danish]:"og"},Minutes:{[f.English]:"minutes",[f.Swedish]:"minuter",[f.Danish]:"minutter"},"Type: movie":{[f.English]:"Movie",[f.Swedish]:"Film",[f.Danish]:"Film"},"Type: series":{[f.English]:"Series",[f.Swedish]:"Serie",[f.Danish]:"Serie"},Stream:{[f.English]:"Stream",[f.Swedish]:"Streama",[f.Danish]:"Stream"},Buy:{[f.English]:"Buy",[f.Swedish]:"Köp",[f.Danish]:"Køb"},Rent:{[f.English]:"Rent",[f.Swedish]:"Hyr",[f.Danish]:"Lej"},"Rent Or Buy":{[f.English]:"Rent or Buy",[f.Swedish]:"Hyr/köp",[f.Danish]:"Lej eller køb"},Watch:{[f.English]:"Watch",[f.Swedish]:"Titta nu",[f.Danish]:"Se nu"},"Category: AVOD":{[f.English]:"Stream for free",[f.Swedish]:"Streama gratis",[f.Danish]:"Stream gratis"},"Category: SVOD":{[f.English]:"Streaming services",[f.Swedish]:"Streamingtjänster",[f.Danish]:"Streamingtjenester"},"Category: RENT":{[f.English]:"Rent it",[f.Swedish]:"Hyr den",[f.Danish]:"Lej den"},"Category: BUY":{[f.English]:"Buy it",[f.Swedish]:"Köp den",[f.Danish]:"Køb den"},"Category: Other":{[f.English]:"Other",[f.Swedish]:"Annat",[f.Danish]:"Andet"},Share:{[f.English]:"Share",[f.Swedish]:"Dela",[f.Danish]:"Del"},"Copy URL":{[f.English]:"Copy URL",[f.Swedish]:"Kopiera URL",[f.Danish]:"Kopiér URL"},Email:{[f.English]:"Email",[f.Swedish]:"E-post",[f.Danish]:"E-mail"},"Show More":{[f.English]:"Show more",[f.Swedish]:"Visa mer",[f.Danish]:"Vis mere"},"Show Less":{[f.English]:"Show less",[f.Swedish]:"Visa mindre",[f.Danish]:"Vis mindre"},Cast:{[f.English]:"Cast",[f.Swedish]:"Rollista",[f.Danish]:"Skuespillere"},"Similar Titles":{[f.English]:"Similar movies & shows",[f.Swedish]:"Liknande filmer och serier",[f.Danish]:"Lignende film og serier"},"Watch Trailer":{[f.English]:"Watch trailer",[f.Swedish]:"Se trailer",[f.Danish]:"Se trailer"},"Streaming Guide":{[f.English]:"Streaming Guide",[f.Swedish]:"Streaming Guide",[f.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[f.English]:"Discover and search all movies and TV shows",[f.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[f.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[f.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[f.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[f.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"Streaming Guide Description":{[f.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[f.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[f.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":{[f.English]:"Search movies and shows",[f.Swedish]:"Sök filmer och serier",[f.Danish]:"Søg film og serier"},Services:{[f.English]:"Services",[f.Swedish]:"Tjänster",[f.Danish]:"Tjenester"},Genres:{[f.English]:"Genres",[f.Swedish]:"Genrer",[f.Danish]:"Genrer"},IMDb:{[f.English]:"IMDb",[f.Swedish]:"IMDb",[f.Danish]:"IMDb"},Year:{[f.English]:"Year",[f.Swedish]:"År",[f.Danish]:"År"},Runtime:{[f.English]:"Runtime",[f.Swedish]:"Speltid",[f.Danish]:"Spilletid"},Countries:{[f.English]:"Countries",[f.Swedish]:"Länder",[f.Danish]:"Lande"},"All Filters":{[f.English]:"All filters",[f.Swedish]:"Alla filter",[f.Danish]:"Alle filtre"},"Sort By":{[f.English]:"Sort by",[f.Swedish]:"Sortera efter",[f.Danish]:"Sortér efter"},Popularity:{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},New:{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"Top Rated":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},"-popularity":{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},"-new":{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"-best":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},Search:{[f.English]:"Search",[f.Swedish]:"Sök",[f.Danish]:"Søg"},"Born On":{[f.English]:"Born on",[f.Swedish]:"Född den",[f.Danish]:"Født den"},"Died On":{[f.English]:"Died on",[f.Swedish]:"Död den",[f.Danish]:"Død den"},Credits:{[f.English]:"Credits",[f.Swedish]:"Medverkande",[f.Danish]:"Medvirkende"},Home:{[f.English]:"Home",[f.Swedish]:"Hem",[f.Danish]:"Hjem"},Explore:{[f.English]:"Explore",[f.Swedish]:"Utforska",[f.Danish]:"Udforsk"},"Page Not Found":{[f.English]:"Page not found",[f.Swedish]:"Sidan hittades inte",[f.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[f.English]:"Mentioned in this article",[f.Swedish]:"Nämnda i den här artikeln",[f.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[f.English]:"Sorry, your region is not supported",[f.Swedish]:"Tyvärr stöds inte din region",[f.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[f.English]:"Show [[count]] more",[f.Swedish]:"Visa [[count]] till",[f.Danish]:"Vis [[count]] mere"},Movies:{[f.English]:"Movies",[f.Swedish]:"Filmer",[f.Danish]:"Film"},Shows:{[f.English]:"Shows",[f.Swedish]:"Serier",[f.Danish]:"Serier"},Documentaries:{[f.English]:"Documentaries",[f.Swedish]:"Dokumentärer",[f.Danish]:"Dokumentarer"},"List: Trending":{[f.English]:"Trending Movies & Shows",[f.Swedish]:"Trendande Titlar",[f.Danish]:"Populære film og serier"},"List: Upcoming":{[f.English]:"Upcoming Releases",[f.Swedish]:"Kommande Premiärer",[f.Danish]:"Mest ventede film"},"List: New":{[f.English]:"New Releases",[f.Swedish]:"Nya Filmer & Serier",[f.Danish]:"Nye film og serier"},"List: Demand":{[f.English]:"Always in Demand",[f.Swedish]:"Tidlösa Favoriter",[f.Danish]:"Tidløse favoritter"},"List: Cinema":{[f.English]:"Coming to Cinemas",[f.Swedish]:"Snart på Bio",[f.Danish]:"Kommende film"},"Explore All Movies And Shows":{[f.English]:"Explore all movies and TV shows",[f.Swedish]:"Utforska alla filmer och tv-serier",[f.Danish]:"Udforsk alle film og tv-serier"},All:{[f.English]:"All",[f.Swedish]:"Alla",[f.Danish]:"Alle"},Unscripted:{[f.English]:"Unscripted",[f.Swedish]:"Oscripterat",[f.Danish]:"Umanuskriptet"},Independent:{[f.English]:"Independent",[f.Swedish]:"Indie",[f.Danish]:"Indie"},"Game Show":{[f.English]:"Game Show",[f.Swedish]:"Gameshow",[f.Danish]:"Quizshow"},"Film Noir":{[f.English]:"Film Noir",[f.Swedish]:"Film noir",[f.Danish]:"Film noir"},Entertainment:{[f.English]:"Entertainment",[f.Swedish]:"Underhållning",[f.Danish]:"Underholdning"},News:{[f.English]:"News",[f.Swedish]:"Nyheter",[f.Danish]:"Nyheder"},Short:{[f.English]:"Short",[f.Swedish]:"Kortfilm",[f.Danish]:"Kortfilm"},Bollywood:{[f.English]:"Bollywood",[f.Swedish]:"Bollywood",[f.Danish]:"Bollywood"},Concert:{[f.English]:"Concert",[f.Swedish]:"Konsert",[f.Danish]:"Koncert"},Arthouse:{[f.English]:"Arthouse",[f.Swedish]:"Arthouse",[f.Danish]:"Arthouse"},"Alternate Version":{[f.English]:"Alternate Version",[f.Swedish]:"Alternativ version",[f.Danish]:"Alternativ version"},"Reality TV":{[f.English]:"Reality TV",[f.Swedish]:"Reality-TV",[f.Danish]:"Reality-TV"},Culture:{[f.English]:"Culture",[f.Swedish]:"Kultur",[f.Danish]:"Kultur"},Drama:{[f.English]:"Drama",[f.Swedish]:"Drama",[f.Danish]:"Drama"},Crime:{[f.English]:"Crime",[f.Swedish]:"Kriminal",[f.Danish]:"Krimi"},Western:{[f.English]:"Western",[f.Swedish]:"Western",[f.Danish]:"Western"},Thriller:{[f.English]:"Thriller",[f.Swedish]:"Thriller",[f.Danish]:"Thriller"},Animation:{[f.English]:"Animation",[f.Swedish]:"Animerat",[f.Danish]:"Animation"},Mystery:{[f.English]:"Mystery",[f.Swedish]:"Mysterium",[f.Danish]:"Mysterium"},Science:{[f.English]:"Science",[f.Swedish]:"Vetenskap",[f.Danish]:"Videnskab"},Nature:{[f.English]:"Nature",[f.Swedish]:"Natur",[f.Danish]:"Natur"},War:{[f.English]:"War",[f.Swedish]:"Krig",[f.Danish]:"Krig"},"Sci-Fi":{[f.English]:"Sci-Fi",[f.Swedish]:"Sci-fi",[f.Danish]:"Sci-fi"},Documentary:{[f.English]:"Documentary",[f.Swedish]:"Dokumentär",[f.Danish]:"Dokumentar"},"Stand-up":{[f.English]:"Stand-up",[f.Swedish]:"Standup",[f.Danish]:"Stand-up"},"Talk Show":{[f.English]:"Talk Show",[f.Swedish]:"Talkshow",[f.Danish]:"Talkshow"},Fantasy:{[f.English]:"Fantasy",[f.Swedish]:"Fantasy",[f.Danish]:"Fantasy"},History:{[f.English]:"History",[f.Swedish]:"Historia",[f.Danish]:"Historie"},Adventure:{[f.English]:"Adventure",[f.Swedish]:"Äventyr",[f.Danish]:"Eventyr"},Action:{[f.English]:"Action",[f.Swedish]:"Action",[f.Danish]:"Action"},Horror:{[f.English]:"Horror",[f.Swedish]:"Skräck",[f.Danish]:"Gyser"},Comedy:{[f.English]:"Comedy",[f.Swedish]:"Komedi",[f.Danish]:"Komedie"},Biography:{[f.English]:"Biography",[f.Swedish]:"Biografi",[f.Danish]:"Biografi"},Music:{[f.English]:"Music",[f.Swedish]:"Musik",[f.Danish]:"Musik"},Sport:{[f.English]:"Sport",[f.Swedish]:"Sport",[f.Danish]:"Sport"},Romance:{[f.English]:"Romance",[f.Swedish]:"Romantik",[f.Danish]:"Romantik"},Kids:{[f.English]:"Kids",[f.Swedish]:"Barn",[f.Danish]:"Børn"},Lifestyle:{[f.English]:"Lifestyle",[f.Swedish]:"Livsstil",[f.Danish]:"Livsstil"},Musical:{[f.English]:"Musical",[f.Swedish]:"Musikal",[f.Danish]:"Musical"},Anime:{[f.English]:"Anime",[f.Swedish]:"Anime",[f.Danish]:"Anime"},Family:{[f.English]:"Family",[f.Swedish]:"Familj",[f.Danish]:"Familie"}};function $(t,e=gr()){var i;return((i=au[t])==null?void 0:i[e])||t}const lu=t=>t;function js(t){const e=t-1;return e*e*e+1}function As(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function si(t,{delay:e=0,duration:i=400,easing:r=lu}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:r,css:a=>`opacity: ${a*n}`}}function Xr(t,{delay:e=0,duration:i=400,easing:r=js,x:n=0,y:a=0,opacity:o=0}={}){const l=getComputedStyle(t),s=+l.opacity,d=l.transform==="none"?"":l.transform,u=s*(1-o),[v,p]=As(n),[m,g]=As(a);return{delay:e,duration:i,easing:r,css:(h,y)=>`
6
6
  transform: ${d} translate(${(1-h)*v}${p}, ${(1-h)*m}${g});
7
7
  opacity: ${s-u*y}`}}function yr(t,{delay:e=0,duration:i=400,easing:r=js,start:n=0,opacity:a=0}={}){const o=getComputedStyle(t),l=+o.opacity,s=o.transform==="none"?"":o.transform,d=1-n,u=l*(1-a);return{delay:e,duration:i,easing:r,css:(v,p)=>`
8
8
  transform: ${s} scale(${1-d*p});
9
9
  opacity: ${l-u*p}
10
- `}}function Wn(t){return t?t.replace("/src/img",""):null}function Ls(t,e=null){return t!=null&&t.length?`${xp}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var ou=C('<img class="svelte-p6g2a"/>');function Un(t,e){ee(e,!0);const i=D(e,"width",3,96),r=D(e,"height",3,144),n=D(e,"lazy",3,!0),a=D(e,"onload",3,()=>null);var o=ou();H(l=>{ue(o,"src",l),ue(o,"alt",`Movie poster for '${e.title.title??""}'`),ue(o,"width",i()),ue(o,"height",r()),ue(o,"loading",n()?"lazy":null)},[()=>Wn(e.title.standing_poster)]),xe("error",o,({target:l})=>l.src=_p),xe("load",o,function(...l){var s;(s=a())==null||s.apply(this,l)}),w(t,o),te()}var su=et('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Gn(t,e){const i=D(e,"size",3,16);var r=su();H(()=>{ue(r,"width",i()),ue(r,"height",i())}),w(t,r)}var cu=C('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function du(t,e){const i=D(e,"embeddable_url",3,"");var r=cu(),n=S(r);ul(n,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var a=j(n,2),o=j(a,2),l=S(o);Gn(l,{size:24}),ae("click",a,function(...s){var d;(d=e.onclose)==null||d.apply(this,s)}),ae("click",o,function(...s){var d;(d=e.onclose)==null||d.apply(this,s)}),Oe(3,r,()=>si,()=>({duration:100})),w(t,r)}he(["click"]);const pu="https://youtube-availability.playpilot.workers.dev";async function Ms(t){var i,r,n;const e=(i=await mr())==null?void 0:i.toUpperCase();if(!e)return!0;try{const a=await fetch(`${pu}/?video_id=${t}`);if(!a.ok)throw new Error("Response was not ok");const o=await a.json();return!((r=o.blocked)!=null&&r[e]||!o.blocked&&o.allowed&&!((n=o.allowed)!=null&&n.includes(e)))}catch{return!1}}let Yn={};function uu(t){const e=zl(),i={onclose:vu,embeddable_url:t.embeddable_url||""};Yn=Ct(du,{target:e,props:i})}function vu(){Yn&&(Ki(Yn,{outro:!0}),Yn=null)}function pl(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function fu(t,e=3){let i=0,r=null;for(;i<e&&!r;){const n=t[i],a=(n==null?void 0:n.embeddable_url)&&pl(n.embeddable_url);try{a&&await Ms(a)&&(r=n)}catch{}i++}return r}var hu=et('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),gu=et('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),mu=et('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function yu(t,e){const i=D(e,"muted",3,!1);var r=mu(),n=S(r);{var a=l=>{var s=hu();w(l,s)},o=l=>{var s=gu();w(l,s)};W(n,l=>{i()?l(a):l(o,-1)})}w(t,r)}var bu=C('<button class="mute svelte-1ivh34t" aria-label="Mute"><!></button>'),wu=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function ul(t,e){var P;ee(e,!0);const i=D(e,"embeddable_url",3,""),r=D(e,"controls",19,()=>[]),n=D(e,"muted",3,!1),a=D(e,"loop",3,!1),o=D(e,"captions",3,!1),l=D(e,"autoplay",3,!0),s=D(e,"showMuteControls",3,!1),d=D(e,"fallbackStartTime",3,0),u=B(()=>pl(i())),v=B(()=>{var R,M;return(((M=(R=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:R.video_playtimes)==null?void 0:M[c(u)||""])||d()+1)-1}),p=((P=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:P.replace("#",""))||"fa548a";let m=Y(null),g=Y(De(n()));tt(()=>{if(!c(u))return;window.PlayPilotLinkInjections.video_playtimes||(window.PlayPilotLinkInjections.video_playtimes={});let R=c(v);const M=setInterval(()=>{R++,window.PlayPilotLinkInjections.video_playtimes[c(u)]=R},1e3);return()=>clearInterval(M)});function h(R=!c(g)){var M,N;c(g)!=R&&((N=(M=c(m))==null?void 0:M.contentWindow)==null||N.postMessage("mute","*")),F(g,R,!0)}function y(R){var M,N;R.detail===i()&&((N=(M=c(m))==null?void 0:M.contentWindow)==null||N.postMessage("play","*"))}function b(R){var M,N;R.detail===i()&&((N=(M=c(m))==null?void 0:M.contentWindow)==null||N.postMessage("pause","*"))}var _={toggleMute:h,play:y,pause:b},k=ge();xe("playembed",Ie,y),xe("pauseembed",Ie,b);var I=Z(k);{var E=R=>{var M=wu(),N=Z(M);Ze(N,x=>F(m,x),()=>c(m));var O=j(N,2);{var T=x=>{var A=bu(),q=S(A);yu(q,{get muted(){return c(g)}}),ae("click",A,()=>h()),w(x,A)};W(O,x=>{s()&&x(T)})}H(x=>ue(N,"src",`https://video.playpilot.net/?video_id=${c(u)??""}&color=${p??""}&muted=${n()??""}&loop=${a()??""}&captions=${o()??""}&controls=${x??""}&start_time=${c(v)??""}&autoplay=${l()??""}&playsinline=true`),[()=>r().join(",")]),w(R,M)},L=R=>{var M=gt("Something went wrong");w(R,M)};W(I,R=>{c(u)?R(E):R(L,-1)})}return w(t,k),te(_)}he(["click"]);var xu=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function vl(t,e){ee(e,!0);let i=D(e,"gap",3,"0"),r=D(e,"fill",3,!0),n=D(e,"vertical",3,!1),a=D(e,"transitionDuration",3,300),o=D(e,"threshold",3,30),l=D(e,"moveThreshold",3,0),s=D(e,"currentIndex",15,0),d=D(e,"shown",31,()=>De([])),u=D(e,"sliderWidth",15,0),v=D(e,"sliderHeight",15,0),p=D(e,"currentScrollPosition",15,0),m=D(e,"maxWidth",15,0),g=D(e,"maxHeight",15,0),h=D(e,"reachedEnd",15,!1),y=D(e,"distanceToEnd",15,0),b=D(e,"passedThreshold",15,!1),_=D(e,"passedMoveThreshold",15,!1),k=D(e,"allowWheel",3,!1),I=D(e,"end",3,()=>null),E=D(e,"change",3,re=>null),L=D(e,"onend",19,I),P=D(e,"onchange",19,E),R=D(e,"onresize",3,()=>null),M=Y(!1),N=Y(!1),O=0,T=0,x=Y(void 0),A=Y(void 0),q=null,U=null;Ge(()=>{c(A)&&Fe(),c(A)&&y((n()?g():m())-p()-(n()?v():u()))}),tt(()=>(ke(),()=>q==null?void 0:q.disconnect()));function G(re){const Ee=c(A).children.length,_e=Math.max(0,Math.min(re,Ee-1));le({setIndex:_e}),Fe()}function J(){F(N,!0),G(s()),requestAnimationFrame(()=>F(N,!1))}function V(re){rt(re.target)&&(re.preventDefault(),O=Be(re),F(M,!0))}function K(){if(c(M)){if(!b())le({setIndex:s()});else{const re=p()-T,Ee=re>0?1:-1;re!=0&&le({direction:Ee})}F(M,!1),b(!1)}}function X(re){if(!c(M))return;const Ee=Be(re),_e=T+(O-Ee),at=O-Ee;_(Math.abs(at)>l()),b(Math.abs(p()-T)>o()),_()&&(Pe(_e-l()*(at>0?1:-1)),Fe())}function pe(re){if(!k())return;const{deltaX:Ee,deltaY:_e}=re;if(Math.abs(Ee)<Math.abs(_e))return;re.preventDefault();const at=20,Le=n()?_e:Ee,vt=p()+Le*at*.02;Pe(vt),Fe(),U&&clearTimeout(U),U=setTimeout(()=>{le({direction:Le>0?1:-1})},100)}function $(re){rt(document.activeElement)&&(re.key=="ArrowLeft"&&G(s()-1),re.key=="ArrowRight"&&G(s()+1))}function le({setIndex:re=-1,direction:Ee=1}={}){const _e=ve(),at=s();s(0);let Le;for(Le=0;Le<_e.length;Le++)if(re!=-1){if(Le>=re)break}else if(Ee>0&&_e[Le]>p()||Ee<0&&_e[Le+1]>p())break;s(Math.min(Le,ne().length-1)),Pe(_e[s()],!0),T=p(),P()&&s()!=at&&P()(s())}function Pe(re,Ee=!1){p(re);const _e=n()?g():m(),at=n()?v():u(),Le=_e-at,vt=n()?"clientHeight":"clientWidth";h(p()>=Le),h()&&(L()&&L()(),r()&&Ee&&p(c(A)[vt]<at?0:Le))}function Fe(){const re=ve();Array.from(re).forEach((Ee,_e)=>{p()+u()<Ee||d().includes(_e)||d([...d(),_e])})}function Be(re){var _e,at;const Ee=n()?"pageY":"pageX";return re[Ee]??((at=(_e=re.touches)==null?void 0:_e[0])==null?void 0:at[Ee])}function ve(){return ne().map(re=>n()?re.offsetTop:re.offsetLeft)}function ne(){return Array.from(c(A).children).filter(re=>re instanceof HTMLElement).filter(re=>re.src!="about:blank")}function ke(){q=new ResizeObserver(re=>{for(const Ee of re){const _e=Array.isArray(Ee.contentBoxSize)?Ee.contentBoxSize[0]:Ee.contentBoxSize;m(_e.inlineSize),g(_e.blockSize)}R()()}),q.observe(c(A))}function rt(re){return re===c(x)||(re==null?void 0:re.closest(".slider"))===c(x)}var kt={setIndex:G,reposition:J},ut=xu();xe("mousedown",Ie,V),xe("mouseup",Ie,K),xe("mousemove",Ie,X),xe("touchstart",Ie,V,void 0,!0),xe("touchend",Ie,K),xe("touchmove",Ie,X,void 0,!0),xe("keydown",Ie,$),xe("resize",Ie,J);var nt=Z(ut);let gi;var mi=S(nt);let jr;var Qe=S(mi);We(Qe,()=>e.children??ft,()=>({sliderWidth:u(),sliderHeight:v(),shown:d(),currentIndex:s(),setIndex:G,currentScrollPosition:p(),maxWidth:m(),reachedEnd:h(),distanceToEnd:y()})),Ze(mi,re=>F(A,re),()=>c(A)),Ze(nt,re=>F(x,re),()=>c(x));var qe=j(nt,2);return We(qe,()=>e.controls??ft,()=>({sliderWidth:u(),sliderHeight:v(),shown:d(),currentIndex:s(),setIndex:G,currentScrollPosition:p(),maxWidth:m(),reachedEnd:h(),distanceToEnd:y()})),H(re=>{gi=ye(nt,1,"slider svelte-1gs8ha8",null,gi,{dragging:c(M),"passed-threshold":b(),vertical:n()}),jr=Ye(mi,"",jr,re)},[()=>({transform:`translate${n()?"Y":"X"}(${p()*-1}px)`,"transition-duration":`${(c(M)||c(N)?0:a())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),xe("wheel",nt,pe),It(nt,"clientWidth",u),It(nt,"clientHeight",v),w(t,ut),te(kt)}var ku=et("<title> </title>"),_u=et('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function yt(t,e){const i=D(e,"direction",3,"right"),r=D(e,"title",3,""),n=D(e,"size",3,16);var a=_u(),o=S(a);{var l=s=>{var d=ku(),u=S(d);H(()=>Q(u,r())),w(s,d)};W(o,s=>{r()&&s(l)})}H(()=>{ye(a,0,i(),"svelte-1m6nwwy"),ue(a,"width",`${n()??""}px`),ue(a,"height",`${n()??""}px`)}),w(t,a)}function Te(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Su=C('<div class="heading svelte-1ayf7b5"> </div>'),Eu=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Tu=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Pu=C("<!> <!>",1),zu=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function Kn(t,e){ee(e,!0);let i=D(e,"heading",3,""),r=D(e,"onchange",3,()=>null),n=D(e,"onresize",3,()=>null),a=D(e,"slider",15);var o=zu(),l=Z(o);{var s=v=>{var p=Su(),m=S(p);mt(p,(g,h)=>Te==null?void 0:Te(g,h),()=>2),H(()=>Q(m,i())),w(v,p)};W(l,v=>{i()&&v(s)})}var d=j(l,2),u=S(d);Ze(vl(u,{get onchange(){return r()},get onresize(){return n()},allowWheel:!0,controls:(p,m)=>{let g=()=>(m==null?void 0:m()).setIndex,h=()=>(m==null?void 0:m()).currentIndex,y=()=>(m==null?void 0:m()).reachedEnd;var b=Pu(),_=Z(b);{var k=L=>{var P=Eu(),R=S(P);yt(R,{direction:"left",title:"Previous"}),ae("click",P,()=>g()(h()-1)),w(L,P)};W(_,L=>{h()>0&&L(k)})}var I=j(_,2);{var E=L=>{var P=Tu(),R=S(P);yt(R,{title:"Next"}),ae("click",P,()=>g()(h()+1)),w(L,P)};W(I,L=>{y()||L(E)})}w(p,b)},children:(p,m)=>{var g=ge(),h=Z(g);We(h,()=>e.children),w(p,g)},$$slots:{controls:!0,default:!0}}),p=>a(p),()=>a()),w(t,o),te()}he(["click"]);function Ds(t){return`${bp}/${t.type}/${t.slug}/`}function qs(t){var e,i;return((i=(e=window.PlayPilotLinkInjections)==null?void 0:e.config)==null?void 0:i.explore_navigation_path)+`?route=modal&sid=${t.sid}`}var Cu=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),Iu=C('<div class="video svelte-12ph9f6"><div class="video-overlay svelte-12ph9f6" title=""></div> <!></div>'),ju=C('<div class="poster svelte-12ph9f6"><!></div>'),Au=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),Lu=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <span class="heading svelte-12ph9f6" data-testid="heading"> </span> <!></div>'),Mu=C('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),Du=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),qu=C('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),Ru=C("<div><!></div>");function Zn(t,e){ee(e,!0);let i=D(e,"minimumLength",3,1),r=D(e,"heading",3,""),n=D(e,"size",3,"small"),a=D(e,"aside",3,!1),o=D(e,"expandable",3,!1),l=D(e,"navigateToExplore",3,!1),s=D(e,"expandedTitle",15,null),d=D(e,"expandedRailKey",15,null),u=D(e,"onclick",3,()=>null),v=D(e,"onexpand",3,()=>null);const p=On(),g=Dr("scope")==="popover"?Dr("title"):null;let h=Y(null),y=Y(null),b=Y(null),_=!1;tt(()=>{o()&&L()});function k(T,x,A){var U,G,J,V,K;T==null||T.preventDefault();const q=x[A];if(o()&&!P(q)){const X=(U=c(h))==null?void 0:U.querySelectorAll(".title")[A],le=(((G=c(h))==null?void 0:G.getBoundingClientRect().right)||0)-X.getBoundingClientRect().right>X.clientWidth*2;_=!0,setTimeout(()=>_=!1,500),n()==="flexible"&&!le?(J=c(y))==null||J.setIndex(A-2):n()==="huge"&&!le&&((V=c(y))==null||V.setIndex(A)),E(q),T&&v()(q);return}if(T){if((K=c(b))==null||K.toggleMute(!0),u()(q),l()){window.location.href=qs(q);return}br()?di({event:T,type:"titles-rail",data:x,returnToTitle:g,props:{initialIndex:A}}):di({event:T,data:q,returnToTitle:g})}}async function I(){const T=await e.titles,x=await fu(T);x&&(s()||d()&&d()!==p||E(x))}function E(T){d(p),s(T)}function L(){d()===p||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(q=>q.getBoundingClientRect().top>=0).sort((q,U)=>q.getBoundingClientRect().top-U.getBoundingClientRect().top)[0]!==c(h)||(s(null),d(null),I())}function P(T){var x;return d()===p&&T.sid===((x=s())==null?void 0:x.sid)}function R(T,x){o()&&(_||setTimeout(()=>k(null,T,x),250))}var M=Ru();xe("scroll",Ie,L);let N;var O=S(M);Pi(O,()=>e.titles,T=>{Kn(T,{get heading(){return r()},children:(x,A)=>{var q=ge(),U=Z(q);Ce(U,16,()=>({length:12}),je,(G,J)=>{var V=qu(),K=j(S(V),4);{var X=pe=>{var $=Du(),le=S($);Ce(le,20,()=>({length:3}),je,(Pe,Fe)=>{var Be=Mu();w(Pe,Be)}),w(pe,$)};W(K,pe=>{a()&&pe(X)})}w(G,V)}),w(x,q)},$$slots:{default:!0}})},(T,x)=>{var A=ge(),q=Z(A);{var U=G=>{Kn(G,{get heading(){return r()},onchange:J=>R(c(x),J),onresize:()=>{var J;return(J=c(y))==null?void 0:J.reposition()},get slider(){return c(y)},set slider(J){F(y,J,!0)},children:(J,V)=>{var K=ge(),X=Z(K);Ce(X,17,()=>c(x),je,(pe,$,le,Pe)=>{const Fe=B(()=>P(c($))),Be=B(()=>Qe=>k(Qe,c(x),le));var ve=Lu();let ne;var ke=S(ve),rt=S(ke);{var kt=Qe=>{var qe=Iu(),re=S(qe),Ee=j(re,2);{var _e=Le=>{Ze(ul(Le,{get embeddable_url(){return c($).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),vt=>F(b,vt,!0),()=>c(b))},at=Le=>{var vt=Cu();H(()=>ue(vt,"src",c($).medium_poster)),w(Le,vt)};W(Ee,Le=>{c($).embeddable_url?Le(_e):Le(at,-1)})}ae("click",re,function(...Le){var vt;(vt=c(Be))==null||vt.apply(this,Le)}),Oe(2,qe,()=>si,()=>({delay:200,duration:200})),w(Qe,qe)},ut=Qe=>{var qe=ju(),re=S(qe);Un(re,{get title(){return c($)},width:96,height:144}),ae("click",qe,function(...Ee){var _e;(_e=c(Be))==null||_e.apply(this,Ee)}),w(Qe,qe)};W(rt,Qe=>{c(Fe)?Qe(kt):Qe(ut,-1)})}var nt=j(ke,2),gi=S(nt),mi=j(nt,2);{var jr=Qe=>{var qe=Au(),re=S(qe);H(()=>Q(re,c($).description)),ae("click",qe,function(...Ee){var _e;(_e=c(Be))==null||_e.apply(this,Ee)}),w(Qe,qe)};W(mi,Qe=>{a()&&Qe(jr)})}H(()=>{ne=ye(ve,1,"title svelte-12ph9f6",null,ne,{expanded:c(Fe)}),Q(gi,c($).title)}),ae("click",nt,function(...Qe){var qe;(qe=c(Be))==null||qe.apply(this,Qe)}),w(pe,ve)}),w(J,K)},$$slots:{default:!0}})};W(q,G=>{var J;((J=c(x))==null?void 0:J.length)>=i()&&G(U)})}w(T,A)}),Ze(M,T=>F(h,T),()=>c(h)),H(()=>{N=ye(M,1,`titles ${n()??""}`,"svelte-12ph9f6",N,{"with-aside":a()}),ue(M,"data-role",o()?"expandable-rail":null)}),w(t,M),te()}he(["click"]);var Ou=C('<div class="rail svelte-1b834ry"><!></div>'),Nu=C('<div class="rail svelte-1b834ry"><!></div>'),Fu=C('<div data-testid="explore-home"></div> <!>',1);function Rs(t,e){ee(e,!0);let i=Y(null),r=Y(null),n=Y(De(window.innerWidth));async function a(){return await Xt("/streaming-guide/rails",{baseUrl:"https://partner.playpilot.net/api"})}async function o(d={}){var u;try{return(u=await Vn(d))==null?void 0:u.results}catch(v){throw console.log(v),ce(se.ExploreHomeRailError,null,{message:v.message||v.status.toString()||"",params:d}),new Error(v)}}var l=Fu();xe("scroll",Ie,onscroll);var s=j(Z(l),2);Pi(s,a,d=>{var u=ge(),v=Z(u);Ce(v,16,()=>({length:3}),je,(p,m)=>{var g=Nu(),h=S(g);{let y=B(()=>c(n)>=Nt?"flexible":"huge");Zn(h,{titles:new Promise(b=>setTimeout(b,1e4)),get size(){return c(y)}})}w(p,g)}),w(d,u)},(d,u)=>{var v=ge(),p=Z(v);Ce(p,17,()=>c(u),je,(m,g)=>{let h=()=>c(g).headings,y=()=>c(g).params,b=()=>c(g).properties;const _=B(()=>h()[gr()]);var k=Ou(),I=S(k);{let E=B(()=>o(y())),L=B(()=>c(n)>=Nt?b().size||"flexible":"huge");Zn(I,Zr({get heading(){return c(_)},get titles(){return c(E)},get size(){return c(L)},minimumLength:7},b,{onclick:()=>ce(se.ExploreTitleRailModalView,null,{rail:h()}),onexpand:P=>ce(se.ExploreTitleRailExpandClick,P,{rail:h()}),get expandedTitle(){return c(i)},set expandedTitle(P){F(i,P,!0)},get expandedRailKey(){return c(r)},set expandedRailKey(P){F(r,P,!0)}}))}w(m,k)}),w(d,v)},d=>{var u=gt();H(v=>Q(u,v),[()=>ie("An Error Occurred")]),w(d,u)}),Kr("innerWidth",d=>F(n,d,!0)),w(t,l),te()}var Hu=C("<button><!></button>");function ci(t,e){const i=D(e,"variant",3,"filled"),r=D(e,"size",3,"base"),n=D(e,"label",3,null),a=D(e,"active",3,!1);var o=Hu();let l;var s=S(o);We(s,()=>e.children??ft),H(()=>{l=ye(o,1,`button ${i()??""} ${r()??""}`,"svelte-5bqh67",l,{active:a()}),ue(o,"aria-label",n())}),ae("click",o,function(...d){var u;(u=e.onclick)==null||u.apply(this,d)}),w(t,o)}he(["click"]);var Bu=et('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function fl(t,e){const i=D(e,"size",3,14);var r=Bu();H(()=>{ue(r,"width",i()),ue(r,"height",i())}),w(t,r)}function Os(t){const e=t.filter(r=>!!r.logo_url);let i=[];for(const r of e){let n=r;const a=i.find(s=>s.name===n.name),o=a==null?void 0:a.extra_info.category,l=n.extra_info.category;(o==="RENT"&&l==="BUY"||o==="BUY"&&l==="RENT")&&(i=i.filter(s=>s.name!==n.name),n={...n,extra_info:{...n.extra_info,category:"TVOD"}}),i.push(n)}return i}var Vu=C('<img alt="" data-playpilot-pixel="" class="svelte-ico4xd"/>');function hl(t,e){ee(e,!0);let i=Y(De(Math.random()));var r=ge();xe("updateconsent",Ie,()=>F(i,Math.random(),!0));var n=Z(r);Wr(n,()=>c(i),a=>{var o=ge(),l=Z(o);{var s=u=>{var v=ge(),p=Z(v);Ce(p,17,()=>e.pixels,je,(m,g)=>{var h=Vu();H(()=>ue(h,"src",c(g))),w(m,h)}),w(u,v)},d=B(()=>$t("pixels"));W(l,u=>{c(d)&&u(s)})}w(a,o)}),w(t,r),te()}var Wu=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Uu(t,e){ee(e,!0);const i=D(e,"size",3,30),r=D(e,"onclick",3,()=>null),n=B(()=>e.playlink.name),a=B(()=>e.playlink.url),o=B(()=>e.playlink.logo_url),l=B(()=>e.playlink.pixels);var s=Wu();let d;var u=S(s),v=j(u,2);{var p=m=>{hl(m,{get pixels(){return c(l)}})};W(v,m=>{var g;(g=c(l))!=null&&g.length&&m(p)})}H(m=>{ue(s,"href",c(a)),ue(s,"data-playlink",c(n)),d=Ye(s,"",d,{"--size":`${i()??""}px`}),ue(u,"src",m),ue(u,"alt",c(n)),ue(u,"height",i()),ue(u,"width",i())},[()=>Wn(c(o))]),ae("click",s,function(...m){var g;(g=r())==null||g.apply(this,m)}),w(t,s),te()}he(["click"]);var Gu=C('<button class="button more svelte-1plv45z"> </button>'),Yu=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Ku=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function gl(t,e){ee(e,!0);const i=D(e,"size",3,30);let r=Y(3);const n=Os(e.playlinks),a=B(()=>n.slice(0,c(r)));function o(g){g.stopPropagation()}function l(){F(r,n.length,!0)}var s=Ku(),d=S(s);Ce(d,17,()=>c(a),je,(g,h)=>{Uu(g,{get playlink(){return c(h)},onclick:o,get size(){return i()}})});var u=j(d,2);{var v=g=>{var h=Gu(),y=S(h);H(()=>Q(y,`+${n.length-c(r)}`)),ae("click",h,l),w(g,h)};W(u,g=>{n.length>c(r)&&g(v)})}var p=j(u,2);{var m=g=>{var h=Yu();w(g,h)};W(p,g=>{n.length||g(m)})}w(t,s),te()}he(["click"]);var Zu=C("<div>Series</div>"),Qu=C("<div> </div>"),Ju=C('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Xu(t,e){ee(e,!0);const i=D(e,"onclick",3,()=>null);var r=Ju(),n=S(r),a=S(n);Un(a,{get title(){return e.title},width:120,height:213,lazy:!0});var o=j(a,2),l=S(o),s=S(l);fl(s,{size:12});var d=j(s),u=j(l,2);{var v=_=>{var k=Zu();w(_,k)};W(u,_=>{e.title.type==="series"&&_(v)})}var p=j(u,2);{var m=_=>{var k=Qu(),I=S(k);H(()=>Q(I,`${e.title.length??""} min`)),w(_,k)};W(p,_=>{e.title.length&&_(m)})}var g=j(n,2),h=S(g),y=S(h),b=j(h,2);gl(b,{get playlinks(){return e.title.providers},size:20}),H(()=>{Q(d,` ${(e.title.imdb_score||"-")??""}`),Q(y,e.title.title)}),ae("click",r,function(..._){var k;(k=i())==null||k.apply(this,_)}),w(t,r),te()}he(["click"]),sd();var $u=C('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function ev(t){var e=$u(),i=j(S(e),2),r=S(i);Ye(r,"",{},{width:"60%"}),w(t,e)}var tv=C('<div class="svelte-pkkpyl"> </div>'),iv=C("<div> </div>"),rv=C('<button data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <!> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Ns(t,e){var T;ee(e,!0);const i=D(e,"compact",3,!1),r=D(e,"onclick",3,()=>null),n=!!((T=window.PlayPilotLinkInjections)!=null&&T.no_affiliate);var a=rv();let o;var l=S(a),s=S(l);Un(s,{get title(){return e.title},width:30,height:43,lazy:!0});var d=j(l,2),u=S(d),v=S(u),p=j(u,2),m=S(p),g=S(m);fl(g,{size:11});var h=j(g),y=j(m,2),b=S(y),_=j(y,2),k=S(_),I=j(_,2);{var E=x=>{var A=tv(),q=S(A);H(()=>Q(q,`${e.title.length??""} min`)),w(x,A)};W(I,x=>{e.title.length&&x(E)})}var L=j(p,2);{var P=x=>{var A=iv();let q;var U=S(A);H(()=>{q=ye(A,1,"description svelte-pkkpyl",null,q,{large:n}),Q(U,e.title.description)}),w(x,A)};W(L,x=>{i()||x(P)})}var R=j(L,2);{var M=x=>{{let A=B(()=>i()?24:30);gl(x,{get playlinks(){return e.title.providers},get size(){return c(A)}})}};W(R,x=>{n||x(M)})}var N=j(d,2),O=S(N);yt(O,{}),H(x=>{o=ye(a,1,"title svelte-pkkpyl",null,o,{compact:i()}),Q(v,e.title.title),Q(h,` ${(e.title.imdb_score||"-")??""}`),Q(b,e.title.year),Q(k,x)},[()=>ie(`Type: ${e.title.type}`)]),ae("click",a,function(...x){var A;(A=r())==null||A.apply(this,x)}),w(t,a),te()}he(["click"]);var nv=C('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function av(t){var e=nv(),i=j(S(e),2),r=S(i);Ye(r,"",{},{width:"40%"});var n=j(r,2);Ye(n,"",{},{width:"60%"});var a=j(n,2);Ye(a,"",{},{width:"80%"}),w(t,e)}var lv=C(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function ov(t){var e=lv();w(t,e)}var sv=C("<div><!></div>"),cv=C("<!> <!>",1),dv=C("<p>Something went wrong</p>"),pv=C('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function uv(t,e){ee(e,!0);const i=D(e,"searchQuery",3,""),r=D(e,"filter",19,()=>({}));let n=1,a=Y(De([])),o=null,l=0,s=JSON.stringify(r())+i(),d=Y(De(h())),u=Y(0);const v=B(()=>c(u)>500),p=B(()=>c(u)>1400?8:c(u)>900?6:c(u)>600?4:3),m=B(()=>c(v)?Xu:Ns),g=B(()=>c(v)?ev:av);Ge(()=>{(i()||l!=0)&&y(i())}),Ge(()=>{r()&&b()}),qn(()=>{_()});async function h(){l+=1;const A=l,q={page_size:24,page:n};i()&&(q.search=i()),Object.entries(r()).forEach(([U,{type:G,value:J}])=>{if(G==="string")q[U]=J;else if(G==="array")q[U]=J.join(",");else if(G==="range"){const[V,K]=J;q[U+"_min"]=V,q[U+"_max"]=K}});try{const U=await Vn(q)||{next:null,previous:null,results:[]};return A===l&&F(a,[...c(a),...U.results],!0),U}catch(U){throw console.log(U.status),ce(se.ExploreResultsError,null,{message:U.message||U.status.toString()||"",params:q}),new Error(U)}}async function y(A){L()&&(o&&clearTimeout(o),o=setTimeout(()=>{k(),F(d,h(),!0),A&&(ce(se.ExploreSearch,null,{query:A}),$t("pixels")&&ei(Ft.SearchQuery,{query:A}))},100))}function b(){L()&&(k(),F(d,h(),!0))}function _(){for(const A of Object.keys(r()))delete r()[A]}function k(){n=1,F(a,[],!0)}function I(){n++,F(d,h(),!0),ce(se.ExploreShowMore,null,{page:n})}function E(A,q){di({event:A,data:q}),ce(se.ExploreTitleClick,q)}function L(){const A=JSON.stringify(r())+i();return A===s?!1:(s=A,!0)}var P=pv(),R=Z(P);let M,N;var O=S(R);Ce(O,17,()=>c(a),je,(A,q)=>{var U=ge(),G=Z(U);Wr(G,()=>c(q).sid,J=>{var V=ge(),K=Z(V);jn(K,()=>c(m),(X,pe)=>{pe(X,{get title(){return c(q)},onclick:$=>E($,c(q))})}),w(J,V)}),w(A,U)});var T=j(O,2);Pi(T,()=>c(d),A=>{var q=ge(),U=Z(q);Ce(U,16,()=>({length:24}),je,(G,J)=>{var V=ge(),K=Z(V);jn(K,()=>c(g),(X,pe)=>{pe(X,{})}),w(G,V)}),w(A,q)},void 0,A=>{});var x=j(R,2);Pi(x,()=>c(d),null,(A,q)=>{var U=B(()=>{var{next:$}=c(q);return{next:$}}),G=B(()=>c(U).next),J=cv(),V=Z(J);{var K=$=>{var le=sv();let Pe;var Fe=S(le);ci(Fe,{size:"large",onclick:I,children:(Be,ve)=>{var ne=gt();H(ke=>Q(ne,ke),[()=>ie("Show More")]),w(Be,ne)},$$slots:{default:!0}}),H(()=>Pe=ye(le,1,"show-more svelte-qc99of",null,Pe,{grid:c(v)})),w($,le)};W(V,$=>{c(G)&&$(K)})}var X=j(V,2);{var pe=$=>{ov($)};W(X,$=>{var le;!((le=c(a))!=null&&le.length)&&n===1&&$(pe)})}w(A,J)},A=>{var q=dv();w(A,q)}),H(()=>{M=ye(R,1,"titles svelte-qc99of",null,M,{grid:c(v)}),N=Ye(R,"",N,{"--grid-columns":c(p)})}),It(R,"clientWidth",A=>F(u,A)),w(t,P),te()}var vv=et('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function fv(t){var e=vv();w(t,e)}var hv=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function gv(t,e){ee(e,!0);let i=Y("");var r=hv(),n=S(r),a=S(n);fv(a);var o=j(n,2);H(l=>ue(o,"placeholder",l),[()=>ie("Search Movies And Shows")]),ae("input",o,()=>e.oninput(c(i))),Yr(o,()=>c(i),l=>F(i,l)),w(t,r),te()}he(["input"]);async function mv(){const t=Ci();if(!t)throw new Error("No token was provided");const e={region:await mr(),page:1,include_count:"false"};return await Xt(`/providers/?api-token=${t}&`+rl(e))}function yv(t){const e=t-1;return e*e*e+1}function bv(t,{from:e,to:i},r={}){var{delay:n=0,duration:a=L=>Math.sqrt(L)*120,easing:o=yv}=r,l=getComputedStyle(t),s=l.transform==="none"?"":l.transform,[d,u]=l.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var v=wv(t),p=t.clientWidth/i.width/v,m=t.clientHeight/i.height/v,g=e.left+e.width*d,h=e.top+e.height*u,y=i.left+i.width*d,b=i.top+i.height*u,_=(g-y)*p,k=(h-b)*m,I=e.width/i.width,E=e.height/i.height;return{delay:n,duration:typeof a=="function"?a(Math.sqrt(_*_+k*k)):a,easing:o,css:(L,P)=>{var R=P*_,M=P*k,N=L+P*I,O=L+P*E;return`transform: ${s} translate(${R}px, ${M}px) scale(${N}, ${O});`}}}function wv(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var xv=et('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function kv(t){var e=xv();w(t,e)}var _v=et('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function Sv(t){var e=_v();w(t,e)}var Ev=C('<div class="icon svelte-dfwzqz"><!></div>'),Tv=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),Pv=C('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function zv(t,e){ee(e,!0);let i=D(e,"options",19,()=>[{label:"Label",value:"Value"}]),r=D(e,"selected",23,()=>[]),n=D(e,"placeholder",19,()=>`${ie("Search")}...`),a=D(e,"onchange",3,()=>null),o=Y("");const l=B(s);function s(){var g;return(g=i())!=null&&g.length?c(o)?i().filter(({label:h})=>h.toLowerCase().indexOf(c(o).toLowerCase())!==-1):i():[]}function d(g){const h=r().find(y=>y===g);r(h?r().filter(y=>y!==g):[...r(),g]),a()(r())}var u=Pv(),v=Z(u),p=S(v),m=j(v,2);Ce(m,29,()=>c(l)||[],({label:g,value:h})=>h,(g,h)=>{let y=()=>c(h).label,b=()=>c(h).value;const _=B(()=>!!r().find(M=>M===b()));var k=Tv(),I=S(k);let E;var L=S(I),P=j(L),R=S(P);Wr(R,()=>c(_),M=>{var N=Ev(),O=S(N);{var T=A=>{kv(A)},x=A=>{Sv(A)};W(O,A=>{c(_)?A(T):A(x,-1)})}Oe(3,N,()=>yr,()=>({start:.25,duration:100})),w(M,N)}),H(()=>{E=ye(I,1,"option svelte-dfwzqz",null,E,{active:c(_)}),Q(L,`${y()??""} `)}),ae("click",I,()=>d(b())),rp(k,()=>bv,()=>({duration:150})),w(g,k)}),H(()=>ue(p,"placeholder",n())),Yr(p,()=>c(o),g=>F(o,g)),w(t,u),te()}he(["click"]);var Cv=C('<div class="content svelte-fg0dzp"><!></div>'),Iv=C("<div><!> <!></div>");function Fs(t,e){ee(e,!0);let i=Y(!1),r=Y(null),n=Y(null),a=Y("left"),o=Y(0),l=Y(0);function s(h){const y=h.target;y&&y.closest(".dropdown")!==c(r)&&F(i,!1)}function d(h){F(i,!c(i)),c(i)&&(F(l,0),F(o,0),u(h.target))}async function u(h){if(await Vr(),!c(n))return;const y=16,b=200,_=window.innerHeight,k=window.innerWidth,{top:I}=c(n).getBoundingClientRect(),{left:E}=h.getBoundingClientRect();F(a,E<window.innerWidth/2?"left":"right",!0),F(o,Math.max(Math.min(window.innerHeight-I-y,_*.6),b),!0),await Vr();const{left:L,right:P}=c(n).getBoundingClientRect(),R=k-P;L-y<0?F(l,R):R-y<0&&F(l,R-y)}var v=Iv();xe("click",Ie,s);var p=S(v);We(p,()=>e.button,()=>({toggle:d}));var m=j(p,2);{var g=h=>{var y=Cv();let b;var _=S(y);We(_,()=>e.content),Ze(y,k=>F(n,k),()=>c(n)),H(()=>b=Ye(y,"",b,{"--max-height":c(o)?`${c(o)}px`:null,"--offset":c(l)?`${c(l)}px`:null})),Oe(3,y,()=>yr,()=>({start:.85,duration:100})),w(h,y)};W(m,h=>{c(i)&&h(g)})}Ze(v,h=>F(r,h),()=>c(r)),H(()=>ye(v,1,`dropdown ${c(a)??""}`,"svelte-fg0dzp")),w(t,v),te()}var jv=C('<span class="label svelte-1mfj6k7"> </span>'),Av=C('<div class="active-line svelte-1mfj6k7"></div>'),Lv=C('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function Mv(t,e){ee(e,!0);const i=D(e,"range",19,()=>[0,100]),r=D(e,"value",19,i),n=D(e,"label",3,""),a=D(e,"valueAppend",3,""),o=D(e,"formatFunction",3,G=>G.toString()),l=D(e,"onchange",3,()=>null);let s=i(),d=B(()=>Oi(s,2)),u=Y(De(c(d)[0])),v=Y(De(c(d)[1]));const p=B(()=>c(u)!==i()[0]||c(v)!==i()[1]),m=B(()=>100/(i()[1]-i()[0])*(c(u)-i()[0])),g=B(()=>100+100/(i()[1]-i()[0])*(c(v)-i()[1])-c(m)),h=B(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(c(u)-c(v))<5);Ge(()=>{y(r())}),Ge(()=>{F(v,Math.max(c(v),c(u)+1),!0),F(v,Math.min(c(v),i()[1]),!0),F(u,Math.min(c(u),c(v)-1),!0),F(u,Math.max(c(u),i()[0]),!0)});function y(G){(J=>{var V=Oi(J,2);F(u,V[0],!0),F(v,V[1],!0)})(G)}function b(){requestAnimationFrame(()=>l()([c(u),c(v)]))}var _=Lv(),k=S(_);{var I=G=>{var J=jv(),V=S(J);H((K,X)=>Q(V,`${n()??""}: ${K??""}—${X??""} ${a()??""}`),[()=>o()(c(u)),()=>o()(c(v))]),w(G,J)};W(k,G=>{n()&&G(I)})}var E=j(k,2);let L;var P=S(E);let R;var M=j(P,2);let N;var O=j(M,2),T=S(O),x=j(O,2),A=S(x),q=j(x,2);{var U=G=>{var J=Av();let V;H(()=>V=Ye(J,"",V,{left:c(m)+"%","--width":c(g)+"%"})),w(G,J)};W(q,G=>{c(p)&&G(U)})}H(()=>{L=ye(E,1,"range svelte-1mfj6k7",null,L,{halved:c(h)}),ue(P,"min",i()[0]),ue(P,"max",i()[1]),R=ye(P,1,"svelte-1mfj6k7",null,R,{active:c(p)}),ue(M,"min",i()[0]),ue(M,"max",i()[1]),N=ye(M,1,"svelte-1mfj6k7",null,N,{active:c(p)}),Q(T,c(u)),Q(A,c(v))}),ae("mouseup",P,b),ae("touchend",P,b),ae("input",P,function(...G){}),Yr(P,()=>c(u),G=>F(u,G)),ae("mouseup",M,b),ae("touchend",M,b),ae("input",M,function(...G){}),Yr(M,()=>c(v),G=>F(v,G)),w(t,_),te()}he(["mouseup","touchend","input"]);function ml(t,e){if(!t)return!1;const{type:i,value:r}=t;return!(i==="array"&&!r.length||i==="range"&&JSON.stringify(r)===JSON.stringify(e))}var Dv=C(" <!>",1),qv=C('<p class="loading"> </p>'),Rv=C('<p class="error"> </p>'),Ov=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),Nv=C('<div data-testid="filter-item"><!></div>');function Fv(t,e){ee(e,!0);let i=D(e,"filter",7),r=D(e,"onchange",3,()=>null),n=D(e,"data",7,null),a=D(e,"fetchData",3,null),o=D(e,"range",3,null),l=D(e,"valueAppend",3,"");const s=B(()=>ml(i()[e.param],o()));let d=Y(!!a());Ge(()=>{!n()&&a()&&u()});async function u(){try{F(d,!0),n(await a()())}catch{ce(se.ExploreFetchProvidersFailed)}finally{F(d,!1)}}function v(h,y){if(ce(se.ExploreSetFilter,null,{key:e.param,value:h,total_filter:i()}),!h){delete i()[e.param];return}i()[e.param]={type:y,value:h},r()()}var p=Nv();let m;var g=S(p);Fs(g,{button:(b,_)=>{let k=()=>(_==null?void 0:_()).toggle;ci(b,{variant:"border",size:"large",get active(){return c(s)},get onclick(){return k()},children:(I,E)=>{var L=Dv(),P=Z(L),R=j(P);yt(R,{direction:"down"}),H(()=>Q(P,`${e.label??""} `)),w(I,L)},$$slots:{default:!0}})},content:b=>{var _=Ov(),k=S(_);{var I=M=>{var N=qv(),O=S(N);H(T=>Q(O,`${T??""}...`),[()=>ie("Loading")]),w(M,N)},E=M=>{var N=Rv(),O=S(N);H(T=>Q(O,T),[()=>ie("An Error Occurred")]),w(M,N)};W(k,M=>{c(d)?M(I):a()&&!n()&&M(E,1)})}var L=j(k,2);{var P=M=>{const N=B(()=>{var O;return(O=i()[e.param])==null?void 0:O.value});zv(M,{get options(){return n()},get selected(){return c(N)},onchange:O=>v(O,"array")})},R=M=>{const N=B(()=>{var O;return(O=i()[e.param])==null?void 0:O.value});Mv(M,{get range(){return o()},get value(){return c(N)},get label(){return e.label},get valueAppend(){return l()},onchange:O=>v(O,"range")})};W(L,M=>{n()?M(P):o()&&M(R,1)})}w(b,_)},$$slots:{button:!0,content:!0}}),H(()=>m=ye(p,1,"filter-item svelte-er0ukh",null,m,{active:c(s)})),w(t,p),te()}const yl=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"});var Hv=C(" <!>",1),Bv=C("<button> </button>"),Vv=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function Wv(t,e){ee(e,!0);const i=D(e,"filter",7),r=D(e,"onchange",3,()=>null),n="ordering",a=[{label:"Popularity",value:yl.Popular},{label:"New",value:yl.New},{label:"Top Rated",value:yl.Best}],o=B(()=>{var s;return((s=a.find(({value:d})=>{var u;return d===((u=i()[n])==null?void 0:u.value)}))==null?void 0:s.label)||"Sort By"});function l(s){s?i()[n]={type:"string",value:s}:delete i()[n],r()()}Fs(t,{button:(u,v)=>{let p=()=>(v==null?void 0:v()).toggle;ci(u,{variant:"link",get onclick(){return p()},children:(m,g)=>{var h=Hv(),y=Z(h),b=j(y);yt(b,{direction:"down"}),H(_=>Q(y,`${_??""} `),[()=>ie(c(o))]),w(m,h)},$$slots:{default:!0}})},content:u=>{var v=Vv();Ce(v,21,()=>a,je,(p,m,g,h)=>{let y=()=>c(m).label,b=()=>c(m).value;const _=B(()=>{var L;return b()===((L=i()[n])==null?void 0:L.value)});var k=Bv();let I;var E=S(k);H(L=>{I=ye(k,1,"option svelte-1ibt2k4",null,I,{active:c(_)}),Q(E,L)},[()=>ie(y())]),ae("click",k,()=>l(b())),w(p,k)}),w(u,v)},$$slots:{button:!0,content:!0}}),te()}he(["click"]);var Uv=et('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function Gv(t){var e=Uv();w(t,e)}var Yv=C('<button class="item svelte-cwy6fi"><!> <!></button>'),Kv=C('<div class="active-filter svelte-cwy6fi"></div>');function Zv(t,e){ee(e,!0);function i(a){delete e.filter[a]}function r(a){let o=a.slice(0,30).trim();return a.length>o.length&&(o+="..."),o}var n=Kv();Ce(n,21,()=>Object.entries(e.filter),je,(a,o)=>{var l=B(()=>Oi(c(o),2));let s=()=>c(l)[0],d=()=>c(l)[1];const u=B(()=>{const{label:h,range:y,data:b,fetchData:_}=e.items.find(k=>s()===k.param)||{};return{label:h,range:y,data:b,fetchData:_}});var v=ge(),p=Z(v);{var m=h=>{var y=Yv(),b=S(y);{var _=L=>{var P=ge(),R=Z(P);Pi(R,()=>{var M,N;return((N=(M=c(u)).fetchData)==null?void 0:N.call(M))||c(u).data},null,(M,N)=>{var O=gt();H(T=>Q(O,T),[()=>{var T;return r((T=c(N))==null?void 0:T.filter(x=>d().value.includes(x.value)).map(x=>x.label).join(" + "))}]),w(M,O)}),w(L,P)},k=L=>{var P=gt();H(R=>Q(P,`${c(u).label??""}: ${R??""}`),[()=>d().value.join(" - ")]),w(L,P)},I=L=>{var P=gt();H(R=>Q(P,R),[()=>ie(d().value)]),w(L,P)};W(b,L=>{d().type==="array"?L(_):d().type==="range"?L(k,1):L(I,-1)})}var E=j(b,2);Gn(E,{size:8}),ae("click",y,()=>i(s())),w(h,y)},g=B(()=>ml(d(),c(u).range));W(p,h=>{c(g)&&h(m)})}w(a,v)}),w(t,n),te()}he(["click"]);var Qv=C("<div><!></div>"),Jv=C("<!> <!>",1),Xv=C('<div class="sorting svelte-11dg01g"><!></div>'),$v=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function ef(t,e){ee(e,!0);const i=D(e,"limit",3,!0),r=D(e,"showSorting",3,!0),n=D(e,"searchQuery",3,""),a=D(e,"onchange",3,()=>null),o=D(e,"onempty",3,()=>null),l=3,s=[{label:ie("Services"),param:"providers",fetchData:async()=>(await mv()).map(E=>({label:E.name,value:E.slug}))},{label:ie("Genres"),param:"genres",data:Bn.filter(E=>parseInt(E.slug)<900).map(E=>({label:ie(E.name),value:E.slug}))},{label:ie("IMDb"),param:"imdb_score",range:[0,10]},{label:ie("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:ie("Runtime"),param:"length",range:[0,180],valueAppend:ie("Minutes")},{label:ie("Countries"),param:"country_codes",fetchData:async()=>(await fetch(`${kp}/src/lib/data/countries.json`)).json()}];let d=Y(De(i())),u=!1;Ge(()=>{Object.keys(e.filter).some(L=>{const{range:P}=s.find(R=>L===R.param)||{};return ml(e.filter[L],P)})||n()?u=!0:u&&(u=!1,o()())});var v=$v(),p=Z(v);let m;var g=S(p);Ce(g,21,()=>c(d)?s.slice(0,l):s,je,(E,L)=>{var P=Qv(),R=S(P);Fv(R,Zr({get filter(){return e.filter},get onchange(){return a()}},()=>c(L))),Oe(3,P,()=>yr,()=>({start:.75,duration:100})),w(E,P)});var h=j(g,2),y=S(h);{var b=E=>{ci(E,{variant:"link",onclick:()=>F(d,!c(d)),children:(L,P)=>{var R=Jv(),M=Z(R);Gv(M);var N=j(M),O=j(N);{let T=B(()=>c(d)?"down":"up");yt(O,{get direction(){return c(T)}})}H(T=>Q(N,` ${T??""} `),[()=>ie("All Filters")]),w(L,R)},$$slots:{default:!0}})};W(y,E=>{i()&&E(b)})}var _=j(y,2);{var k=E=>{var L=Xv(),P=S(L);Wv(P,{get filter(){return e.filter},get onchange(){return a()}}),Oe(3,L,()=>Xr,()=>({x:5,duration:100})),w(E,L)};W(_,E=>{r()&&E(k)})}var I=j(p,2);Zv(I,{get filter(){return e.filter},get items(){return s}}),H(()=>m=ye(p,1,"filter svelte-11dg01g",null,m,{limit:i()})),w(t,v),te()}function tf(t,e){ee(e,!0);const i=D(e,"trackingEvent",19,()=>se.ExploreAnyClick);function r(o){var k;const l=o.target,s=l.parentElement;if(l===document.body)return;const d=`${s==null?void 0:s.nodeName.toLowerCase()}${n(s)}`,u=`${l==null?void 0:l.nodeName.toLowerCase()}${n(l)}`,v=`${d} > ${u}`,p=l.closest("a, button"),m=a(l)||a(s)||p&&a(p),g=m?(k=m.textContent)==null?void 0:k.slice(0,30):"",h=l.getAttribute("aria-label")||(p==null?void 0:p.getAttribute("aria-label"))||(s==null?void 0:s.getAttribute("aria-label")),y=l.placeholder,b=l.alt,_=(g||h||y||b||"").trim();ce(i(),null,{selector:v,text:_})}function n(o){if(!o)return"";const l=Array.from(o.classList).filter(s=>!s.startsWith("s-"));return l.length?"."+l.join("."):""}function a(o){var l;return(l=o==null?void 0:o.childNodes)!=null&&l.length&&Array.from(o.childNodes).find(s=>{var d;return s.nodeName==="#text"&&!!((d=s.textContent)!=null&&d.trim())})||null}xe("click",Ie,r),te()}function rf(t,e){ee(e,!0);const i=D(e,"trackingEvent",19,()=>se.ExploreScrollDistance),r={25:!1,50:!1,75:!1,100:!1};function n(){const a=window.scrollY,o=window.innerHeight,d=100/(e.element.clientHeight+a+e.element.getBoundingClientRect().top)*(a+o);for(const u in r)r[u]||d<parseInt(u)||(r[u]=!0,ce(i(),null,{scroll_percentage:u+"%"}))}xe("scroll",Ie,n),te()}var nf=C('<p class="description svelte-l2apr8"> </p>'),af=C('<div class="filter svelte-l2apr8"><!></div>'),lf=C('<div class="unsupported-region svelte-l2apr8"> </div>'),of=C('<div class="explore svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <div class="subheading svelte-l2apr8"> </div> <p class="disclaimer svelte-l2apr8"></p> <!></div></div> <!> <!> <!> <!></div> <!> <!>',1);function sf(t,e){ee(e,!0);let i=D(e,"navigate",3,()=>null),r=D(e,"searchQuery",15,""),n=D(e,"filter",27,()=>De({})),a=null,o=Y(null),l=Y(De(window.innerWidth));Ge(()=>{var x;F(o,((x=a==null?void 0:a.closest(wl))==null?void 0:x.style.height)||null,!0)}),tt(async()=>{var x;ce(se.ExplorePageView),(x=window.PlayPilotLinkInjections.ads)!=null&&x.length||(window.PlayPilotLinkInjections.ads=await _s())});var s=of(),d=Z(s);let u;var v=S(d),p=S(v),m=j(S(p),2),g=S(m);mt(m,x=>Te==null?void 0:Te(x));var h=j(m,2),y=S(h);mt(h,(x,A)=>Te==null?void 0:Te(x,A),()=>2);var b=j(h,2);Xd(b,()=>ie("Streaming Guide Disclaimer"),!0);var _=j(b,2);{var k=x=>{var A=nf(),q=S(A);H(U=>Q(q,U),[()=>ie("Streaming Guide Description")]),w(x,A)},I=B(()=>!br());W(_,x=>{c(I)&&x(k)})}var E=j(v,2);gv(E,{oninput:x=>r(x)});var L=j(E,2);{var P=x=>{var A=af(),q=S(A);{let U=B(()=>c(l)<500),G=B(()=>!r());ef(q,{get filter(){return n()},get searchQuery(){return r()},get limit(){return c(U)},get showSorting(){return c(G)},onchange:()=>i()("results"),onempty:()=>i()("home")})}w(x,A)},R=B(()=>br());W(L,x=>{c(R)&&x(P)})}var M=j(L,2);Pi(M,zs,null,(x,A)=>{var q=ge(),U=Z(q);{var G=J=>{var V=lf(),K=S(V);H(X=>Q(K,X),[()=>ie("Sorry Region Not Supported")]),w(J,V)};W(U,J=>{c(A)||J(G)})}w(x,q)});var N=j(M,2);We(N,()=>e.children),Ze(d,x=>a=x,()=>a);var O=j(d,2);tf(O,{});var T=j(O,2);rf(T,{get element(){return a}}),H((x,A)=>{u=Ye(d,"",u,{height:c(o),"--playpilot-explore-width":`${c(l)??""}px`}),Q(g,x),Q(y,A)},[()=>ie("Streaming Guide"),()=>ie("Streaming Guide Subheading")]),It(d,"clientWidth",x=>F(l,x)),w(t,s),te()}var cf=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),df=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function bl(t,e){const i=D(e,"small",3,!1);let r=Y(!1);function n(u){u.preventDefault(),u.stopPropagation(),F(r,!c(r))}var a=df(),o=S(a);let l;var s=j(o,2);{var d=u=>{var v=cf(),p=S(v);H(()=>Q(p,e.disclaimer)),Oe(3,v,()=>si,()=>({duration:50})),w(u,v)};W(s,u=>{c(r)&&u(d)})}H(()=>l=ye(o,1,"disclaimer svelte-1ldthr7",null,l,{small:i()})),ae("click",a,n),w(t,a)}he(["click"]);function $r(){var t;return!((t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels)||!$t("pixels")?!1:(window[Ss]=xs(),!0)}var pf=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),uf=C('<span class="cta svelte-13ka2ap"> </span>'),vf=C('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Hs(t,e){ee(e,!0);const i=D(e,"disclaimer",3,""),r=D(e,"hideCategory",3,!1),n=D(e,"onclick",3,()=>null),a=B(()=>e.playlink.name),o=B(()=>e.playlink.url),l=B(()=>e.playlink.logo_url),s=B(()=>e.playlink.highlighted),d=B(()=>e.playlink.cta_text),u=B(()=>e.playlink.action_text),v=B(()=>e.playlink.pixels),p=B(()=>e.playlink.extra_info.category),m=B(()=>$r()&&!c(s)),g={AVOD:ie("Stream"),SVOD:ie("Stream"),BUY:ie("Buy"),RENT:ie("Rent"),TVOD:ie("Rent Or Buy")};let h=Y(0);var y=ge(),b=Z(y);Ko(b,()=>{var _,k;return!((k=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&k.require_affiliate_consent)||$t("affiliate")?"a":"span"},!1,(_,k)=>{Mn(_,()=>c(m)?Ps(Ft.ProviderInterest,{provider:e.playlink.slug,source:ji.Card}):null),Mn(_,()=>c(m)?ru(Ft.ProviderClick,{provider:e.playlink.slug}):null),is(_,()=>({onclick:n(),href:c(o),target:"_blank",class:"playlink","data-playlink":c(a),rel:"sponsored",[fr]:{highlighted:c(s),"no-category":r(),"no-subtext":!c(d)&&r()}}),void 0,void 0,void 0,"svelte-13ka2ap");var I=vf(),E=Z(I);let L;var P=S(E),R=j(P,2),M=S(R),N=j(R,2);{var O=K=>{var X=pf(),pe=S(X);H($=>Q(pe,$),[()=>g[c(p)]||ie("Stream")]),w(K,X)};W(N,K=>{r()||K(O)})}var T=j(N,2);{var x=K=>{var X=uf(),pe=S(X);H(()=>Q(pe,c(d))),w(K,X)};W(T,K=>{c(d)&&K(x)})}var A=j(T,2),q=S(A),U=j(A,2);{var G=K=>{bl(K,{get disclaimer(){return i()},small:!0})};W(U,K=>{i()&&K(G)})}var J=j(E,2);{var V=K=>{hl(K,{get pixels(){return c(v)}})};W(J,K=>{var X;(X=c(v))!=null&&X.length&&K(V)})}H((K,X)=>{L=Ye(E,"",L,{"--action-width":c(h)?`${c(h)}px`:null}),ue(P,"src",K),Q(M,c(a)),Q(q,X)},[()=>Wn(c(l)),()=>c(u)||ie("Watch")]),It(A,"clientWidth",K=>F(h,K)),w(k,I)}),w(t,y),te()}var ff=C('<div class="disclaimer svelte-1v1053" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1v1053">PlayPilot.com</a></div>'),hf=C('<div class="empty svelte-1v1053" data-testid="playlinks-empty"> </div>');function Bs(t,e){ee(e,!0);var i=ge(),r=Z(i);{var n=o=>{var l=ff(),s=S(l);H(d=>Q(s,`${d??""} `),[()=>{var d,u;return((u=(d=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:u.playlinks_disclaimer_text)||ie("Commission Disclaimer")}]),w(o,l)},a=o=>{var l=hf(),s=S(l);H(d=>Q(s,d),[()=>ie("Title Unavailable")]),w(o,l)};W(r,o=>{e.playlinks.length?o(n):o(a,-1)})}w(t,i),te()}var gf=C('<div class="heading category svelte-1fykz2q"> </div>'),mf=C("<!> <!>",1),yf=C('<div class="show-more svelte-1fykz2q" data-testid="show-more"><!></div>'),bf=C("<!> <div></div> <!>",1),wf=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function xf(t,e){var E,L;ee(e,!0);const i=D(e,"limit",3,3),r=Dr("scope")==="modal",n=Dr("type"),a=Jr("card"),o=!!((L=(E=window.PlayPilotLinkInjections)==null?void 0:E.config)!=null&&L.categorize_playlinks);let l=Y(0),s=Y(!o);const d=B(()=>Os(e.playlinks)),u=B(()=>g(e.playlinks)),v=B(()=>o?h(c(u)):[["",c(d)]]),p=B(()=>c(l)<500||!!a||c(d).length===1);function m(P){ce(r?se.TitleModalPlaylinkClick:se.InjectionPopoverPlaylinkClick,e.title,{playlink:P,type:n})}function g(P){const R={};for(const M of P){const{category:N}=M.extra_info;N in R||(R[N]=[]),R[N].push(M)}return R}function h(P){const R=["AVOD","SVOD","RENT","BUY"],M=[];for(const O of R)P[O]&&M.push([O,P[O]]);const N=[];for(const O of Object.values(P))for(const T of O)R.includes(T.extra_info.category)||N.push(T);return[...M,["Other",N]]}var y=wf(),b=Z(y),_=S(b);mt(b,(P,R)=>Te==null?void 0:Te(P,R),()=>3);var k=j(b,2);Bs(k,{get playlinks(){return c(d)}});var I=j(k,2);Ce(I,17,()=>c(v),je,(P,R,M,N)=>{var O=B(()=>Oi(c(R),2));let T=()=>c(O)[0],x=()=>c(O)[1];var A=bf(),q=Z(A);{var U=X=>{var pe=gf(),$=S(pe);mt(pe,(le,Pe)=>Te==null?void 0:Te(le,Pe),()=>4),H(le=>Q($,le),[()=>ie(`Category: ${T()}`)]),w(X,pe)};W(q,X=>{T()&&x().length&&X(U)})}var G=j(q,2);let J;Ce(G,21,()=>x().slice(0,c(s)?i():x().length),je,(X,pe,$)=>{var le=mf(),Pe=Z(le);Hs(Pe,{get playlink(){return c(pe)},onclick:()=>m(c(pe).name)});var Fe=j(Pe,2);{var Be=ve=>{{let ne=B(()=>eu(a)),ke=B(()=>a.disclaimer||"");Hs(ve,{get playlink(){return c(ne)},onclick:()=>ce(se.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return c(ke)}})}};W(Fe,ve=>{a&&$===0&&ve(Be)})}w(X,le)});var V=j(G,2);{var K=X=>{var pe=yf(),$=S(pe);ci($,{onclick:()=>F(s,!c(s)),size:"large",children:(le,Pe)=>{var Fe=gt();H(Be=>Q(Fe,Be),[()=>ie("Show Count More").replace("[[count]]",(x().length-i()).toString())]),w(le,Fe)},$$slots:{default:!0}}),w(X,pe)};W(V,X=>{x().length>i()&&c(s)&&X(K)})}H(()=>{J=ye(G,1,"playlinks svelte-1fykz2q",null,J,{list:c(p)}),ue(G,"data-testid",`category-${T()??""}`)}),It(G,"clientWidth",X=>F(l,X)),w(P,A)}),H(P=>Q(_,P),[()=>ie("Where To Stream Online")]),w(t,y),te()}var kf=C('<button class="toggle svelte-7itcht"> </button>'),_f=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),Sf=C('<button class="toggle svelte-7itcht"> </button>'),Ef=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div> <!>',1);function Vs(t,e){ee(e,!0);const i=D(e,"blurb",3,""),r=D(e,"limit",3,200),n=D(e,"onclick",3,()=>null);let a=Y(!1);const o=B(()=>e.text.slice(0,r()));function l(){F(a,!c(a)),n()()}var s=Ef(),d=Z(s),u=S(d),v=S(u),p=j(v);{var m=I=>{var E=gt("...");w(I,E)};W(p,I=>{!c(a)&&e.text.length>r()&&I(m)})}var g=j(p,2);{var h=I=>{var E=kf(),L=S(E);H(P=>Q(L,P),[()=>ie("Show More")]),ae("click",E,l),w(I,E)};W(g,I=>{!c(a)&&(e.text.length>r()||i())&&I(h)})}var y=j(u,2);{var b=I=>{var E=_f(),L=S(E);H(()=>Q(L,i())),w(I,E)};W(y,I=>{c(a)&&I(b)})}var _=j(d,2);{var k=I=>{var E=Sf(),L=S(E);H(P=>Q(L,P),[()=>ie("Show Less")]),ae("click",E,l),w(I,E)};W(_,I=>{c(a)&&I(k)})}H(()=>Q(v,c(a)?e.text:c(o))),w(t,s),te()}he(["click"]);async function Tf(t,{page:e=1}={}){const i={language:gr(),region:await mr(),include_count:"false",participant_sid:t.sid,page:e};return(await Xt(`/titles/browse?api-token=${Ci()}&${rl(i)}`)).results}async function Pf(t){return(await Xt(`/participants/browse?api-token=${Ci()}&title_sid=${t.sid}`)).results}var zf=C('<div class="character truncate svelte-zy7e3f"> </div>'),Cf=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),If=C('<div class="participant svelte-zy7e3f"></div>');function jf(t,e){ee(e,!0);const i=D(e,"heading",19,()=>ie("Cast"));function r(l){const s=Ii(ps(ds(tl()))),d={};for(const v of l){const p=Fn(s,Ii(v.name));d[v.sid]={participant:v,count:p}}return Object.values(d).sort((v,p)=>p.count-v.count).map(({participant:v})=>v)}function n(l,s){di({event:l,type:"participant",data:s}),ce(se.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var a=ge(),o=Z(a);Pi(o,()=>Pf(e.title),l=>{Kn(l,{get heading(){return i()},children:(s,d)=>{var u=ge(),v=Z(u);Ce(v,16,()=>({length:5}),je,(p,m)=>{var g=If();w(p,g)}),w(s,u)},$$slots:{default:!0}})},(l,s)=>{var d=ge(),u=Z(d);{var v=p=>{Kn(p,{get heading(){return i()},children:(m,g)=>{var h=ge(),y=Z(h);Ce(y,17,()=>r(c(s)).slice(0,15),je,(b,_)=>{var k=Cf(),I=S(k),E=S(I),L=j(I,2);{var P=R=>{var M=zf(),N=S(M);H(()=>Q(N,c(_).character)),w(R,M)};W(L,R=>{c(_).character&&R(P)})}H(()=>Q(E,c(_).name)),ae("click",k,R=>n(R,c(_))),w(b,k)}),w(m,h)},$$slots:{default:!0}})};W(u,p=>{var m;(m=c(s))!=null&&m.length&&p(v)})}w(l,d)}),w(t,a),te()}he(["click"]);function Af(t,e){ee(e,!0);const i=Cs(e.title);{let r=B(()=>ie("Similar Titles"));Zn(t,{get titles(){return i},get heading(){return c(r)},onclick:n=>ce(se.SimilarTitleClick,n,{title_source:e.title.original_title||e.title.title})})}te()}function Lf(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var Mf=et('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function Df(t){var e=Mf();w(t,e)}var qf=et('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function Rf(t){var e=qf();w(t,e)}var Of=et('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function Nf(t){var e=Of();w(t,e)}var Ff=et('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Hf(t){var e=Ff();w(t,e)}var Bf=C('<button class="svelte-827qd7"><!></button>'),Vf=C('<div class="content svelte-827qd7"><!></div>'),Wf=C("<div><!> <!></div>");function Uf(t,e){const i=D(e,"label",3,""),r=D(e,"align",3,"right");let n=Y(!1),a=Y(null);function o(m){var h;m.currentTarget===((h=c(a))==null?void 0:h.querySelector("button"))&&m.stopPropagation(),F(n,!c(n))}var l=Wf();xe("click",Ie,()=>F(n,!1));var s=S(l);{var d=m=>{var g=ge(),h=Z(g);We(h,()=>e.button,()=>({toggle:o})),w(m,g)},u=m=>{var g=Bf(),h=S(g);Hf(h),H(()=>{ue(g,"aria-label",i()),ue(g,"aria-expanded",c(n))}),ae("click",g,o),w(m,g)};W(s,m=>{e.button?m(d):m(u,-1)})}var v=j(s,2);{var p=m=>{var g=Vf(),h=S(g);We(h,()=>e.children),Oe(1,g,()=>yr,()=>({duration:50,start:.85})),w(m,g)};W(v,m=>{c(n)&&m(p)})}Ze(l,m=>F(a,m),()=>c(a)),H(()=>ye(l,1,`context-menu ${r()??""}`,"svelte-827qd7")),w(t,l)}he(["click"]);var Gf=C("<!> ",1),Yf=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Kf(t,e){ee(e,!0);let i=D(e,"url",7);const n=window.innerWidth<Nt&&typeof navigator.share<"u";tt(()=>{i(i()+"?utm_source=tpi")});function a(s,d){if(!n){d(s);return}ce(se.ShareTitle,null,{title:e.title,url:Zi(),method:"native"}),navigator.share({title:e.title,url:i()})}function o(){ce(se.ShareTitle,null,{title:e.title,url:Zi(),method:"copy"}),Lf(i())}function l(){ce(se.ShareTitle,null,{title:e.title,url:Zi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Uf(t,{button:(d,u)=>{let v=()=>(u==null?void 0:u()).toggle;ci(d,{onclick:p=>a(p,v()),children:(p,m)=>{var g=Gf(),h=Z(g);Df(h);var y=j(h);H(b=>Q(y,` ${b??""}`),[()=>ie("Share")]),w(p,g)},$$slots:{default:!0}})},children:(d,u)=>{var v=Yf(),p=Z(v),m=S(p);Rf(m);var g=j(m),h=j(p,2),y=S(h);Nf(y);var b=j(y);H((_,k)=>{Q(g,` ${_??""}`),Q(b,` ${k??""}`)},[()=>ie("Copy URL"),()=>ie("Email")]),ae("click",p,o),ae("click",h,l),w(d,v)},$$slots:{button:!0,default:!0}}),te()}he(["click"]);var Zf=et('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Qf(t){var e=Zf();w(t,e)}var Jf=C("<!> ",1);function Xf(t,e){ee(e,!0);function i(){uu(e.title),ce(se.TrailerClick,e.title)}ci(t,{onclick:i,children:(r,n)=>{var a=Jf(),o=Z(a);Qf(o);var l=j(o);H(s=>Q(l,` ${s??""}`),[()=>ie("Watch Trailer")]),w(r,a)},$$slots:{default:!0}}),te()}var $f=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function eh(t,e){const i=D(e,"embeddable_url",3,""),r=D(e,"autoplay",3,!0);let n=Y(0),a=Y(0);const o=B(()=>Math.max(c(n),c(a)));var l=$f(),s=S(l);ul(s,{get embeddable_url(){return i()},get autoplay(){return r()},fallbackStartTime:5,muted:!0,loop:!0,showMuteControls:!0}),H(()=>Ye(l,`--height: ${c(o)??""}px; --width: ${c(n)??""}px;`)),It(l,"clientWidth",d=>F(n,d)),It(l,"clientHeight",d=>F(a,d)),w(t,l)}var th=C('<img alt=""/>'),ih=C("<div><!></div>");function Ws(t,e){ee(e,!0);const i=D(e,"small",3,!1),r=D(e,"offsetMute",3,!1),n=D(e,"useVideoBackground",3,!0),a=D(e,"autoplay",3,!0),o=D(e,"inline",3,!1);let l=Y(!1),s=Y(!1),d=Y(!1);Ge(()=>{n()&&e.title.embeddable_url&&Ms(pl(e.title.embeddable_url)).then(h=>{F(d,h,!0)})});var u=ih();let v;var p=S(u);{var m=h=>{eh(h,{get embeddable_url(){return e.title.embeddable_url},get autoplay(){return a()}})},g=h=>{var y=ge(),b=Z(y);Wr(b,()=>c(s),_=>{var k=th();let I;H(E=>{ue(k,"src",E),I=ye(k,1,"svelte-1h1ov71",null,I,{loaded:c(l),blur:c(s)})},[()=>Wn(c(s)?e.title.standing_poster:e.title.medium_poster)]),xe("load",k,()=>F(l,!0)),xe("error",k,()=>F(s,!0)),w(_,k)}),w(h,y)};W(p,h=>{n()&&c(d)?h(m):h(g,-1)})}H(()=>v=ye(u,1,"background svelte-1h1ov71",null,v,{small:i(),inline:o(),"offset-mute":r()})),w(t,u),te()}var rh=C('<div class="genre svelte-1mphbln"> </div>'),nh=C('<button class="genre expand svelte-1mphbln"> </button>'),ah=C("<!> <!>",1);function lh(t,e){ee(e,!0);let i=Y(!1);const r=B(()=>c(i)?e.genres:[e.genres[0]]);var n=ah(),a=Z(n);Ce(a,17,()=>c(r),je,(s,d)=>{const u=B(()=>{var g;return(g=Bn.find(h=>h.slug===c(d)))==null?void 0:g.name});var v=ge(),p=Z(v);{var m=g=>{var h=rh(),y=S(h);Mn(h,()=>$r()?Ps(Ft.GenreInterest,{genre:c(u),source:ji.Card}):null),H(b=>Q(y,b),[()=>ie(c(u))]),w(g,h)};W(p,g=>{c(u)&&g(m)})}w(s,v)});var o=j(a,2);{var l=s=>{var d=nh(),u=S(d);H(()=>Q(u,`+${e.genres.length-1}`)),ae("click",d,()=>F(i,!0)),w(s,d)};W(o,s=>{!c(i)&&e.genres.length>1&&s(l)})}w(t,n),te()}he(["click"]);var oh=C("<div> </div>"),sh=C('<div><div class="imdb svelte-13b1w31"><!> </div> <!> <div> </div> <div class="capitalize svelte-13b1w31"> </div> <!></div>');function Us(t,e){ee(e,!0);const i=D(e,"small",3,!1);var r=sh();let n;var a=S(r),o=S(a);fl(o,{});var l=j(o),s=j(a,2);lh(s,{get genres(){return e.title.genres}});var d=j(s,2),u=S(d),v=j(d,2),p=S(v),m=j(v,2);{var g=h=>{var y=oh(),b=S(y);H(_=>Q(b,`${e.title.length??""} ${_??""}`),[()=>ie("Minutes")]),w(h,y)};W(m,h=>{!i()&&e.title.length&&h(g)})}H(h=>{n=ye(r,1,"info svelte-13b1w31",null,n,{small:i()}),Q(l,` ${e.title.imdb_score??""}`),Q(u,e.title.year),Q(p,h)},[()=>ie(`Type: ${e.title.type}`)]),w(t,r),te()}var ch=C('<div><div class="header svelte-16ajinh"><div><!></div> <div id="heading"> </div> <!> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main svelte-16ajinh"><!> <!> <!> <!></div></div> <!>',1);function Qn(t,e){var q;ee(e,!0);const i=D(e,"small",3,!1),r=D(e,"useVideoBackground",3,!0),n=!!((q=window.PlayPilotLinkInjections)!=null&&q.no_affiliate);qr("title",e.title);const a=Dr("modal"),o=B(()=>(!i()||n)&&e.title.description);let l=Y(!1);var s=ch(),d=Z(s);let u;var v=S(d),p=S(v);let m;var g=S(p);Un(g,{get title(){return e.title},onload:()=>F(l,!0),lazy:!1});var h=j(p,2);let y;var b=S(h);mt(h,(U,G)=>Te==null?void 0:Te(U,G),()=>2);var _=j(h,2);Us(_,{get title(){return e.title},get small(){return i()}});var k=j(_,2),I=S(k);{var E=U=>{Xf(U,{get title(){return e.title}})};W(I,U=>{e.title.embeddable_url&&U(E)})}var L=j(I,2);{let U=B(()=>Ds(e.title));Kf(L,{get title(){return e.title.title},get url(){return c(U)}})}var P=j(v,2),R=S(P);{var M=U=>{Vs(U,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>ce(se.ExpandTitleDescription,e.title)})};W(R,U=>{c(o)&&U(M)})}var N=j(R,2);{var O=U=>{xf(U,{get playlinks(){return e.title.providers},get title(){return e.title}})};W(N,U=>{n||U(O)})}var T=j(N,2);jf(T,{get title(){return e.title}});var x=j(T,2);Af(x,{get title(){return e.title}});var A=j(d,2);{let U=B(()=>a==="title");Ws(A,{get title(){return e.title},get small(){return i()},get useVideoBackground(){return r()},get offsetMute(){return c(U)}})}H(()=>{u=ye(d,1,"content svelte-16ajinh",null,u,{small:i()}),m=ye(p,1,"poster svelte-16ajinh",null,m,{loaded:c(l)}),y=ye(h,1,"heading svelte-16ajinh",null,y,{truncate:i()}),Q(b,e.title.title)}),w(t,s),te()}var dh=C('<!> <p class="empty svelte-1nq44zr"> </p>',1),ph=C("<!> ",1),uh=C("<div><!></div>"),vh=C('<!> <div class="title svelte-1nq44zr" data-testid="title"><!></div>',1),fh=C("<!> Loading...",1);function hh(t,e){ee(e,!0);const i=p=>{var m=dh(),g=Z(m);r(g);var h=j(g,2),y=S(h);H(b=>Q(y,b),[()=>ie("Page Not Found")]),w(p,m)},r=(p,m)=>{let g=Sn(()=>ma(m==null?void 0:m(),!1));var h=uh();let y;var b=S(h);ci(b,{variant:"link",onclick:()=>{n()("home")},children:(_,k)=>{var I=ph(),E=Z(I);yt(E,{direction:"left"});var L=j(E);H(P=>Q(L,` ${P??""}`),[()=>ie("Home")]),w(_,I)},$$slots:{default:!0}}),H(()=>y=ye(h,1,"back svelte-1nq44zr",null,y,{offset:c(g)})),w(p,h)},n=D(e,"navigate",3,()=>null);let a=Y(De(window.innerWidth));const o=B(()=>c(a)<Nt),l=new URL(document.location.toString()).searchParams.get("sid");var s=ge(),d=Z(s);{var u=p=>{var m=ge(),g=Z(m);Pi(g,()=>Is(l),h=>{var y=fh(),b=Z(y);r(b),w(h,y)},(h,y)=>{var b=vh(),_=Z(b);r(_,()=>!0);var k=j(_,2),I=S(k);Qn(I,{get title(){return c(y)},get useVideoBackground(){return c(o)}}),w(h,b)},h=>{i(h)}),w(p,m)},v=p=>{i(p)};W(d,p=>{l?p(u):p(v,-1)})}Kr("innerWidth",p=>F(a,p,!0)),w(t,s),te()}const en={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]},Reels:{key:"reels",numberOfVariants:2,variantNames:["Default","Reel"]}},Gs="playpilot_split_test_";function gh({key:t}){var n,a,o;const e=(a=(n=window.PlayPilotLinkInjections)==null?void 0:n.split_test_identifiers)==null?void 0:a[t];if(e!==void 0)return e;(o=window.PlayPilotLinkInjections)!=null&&o.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});let i=sessionStorage.getItem(Gs+t);if(!i){const l=(Math.floor(Math.random()*100)/100).toString();sessionStorage.setItem(Gs+t,l),i=l}const r=parseFloat(i);return window.PlayPilotLinkInjections.split_test_identifiers[t]=r,r}function Ys(t){const e=gh(t);return Math.floor(e*t.numberOfVariants)}function Ks(t){var i;const e=Ys(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function mh(t,e=1){return Ys(t)===e}function Zs(t){const e=Ks(t);ce(se.SplitTestView,null,{key:t.key,variant:e})}function yh(t,e){ee(e,!0);const i=D(e,"navigate",3,()=>null);r();async function r(){const a=new URL(document.location.toString()).searchParams.get("sid");if(!a)return;const o=window.innerWidth<Nt,l=o&&Ks(en.Reels)==="Reel",s=o&&l?"titles-reel":"titles-rail";o&&Zs(en.Reels);try{const[d,u]=(await Promise.allSettled([Is(a),Cs({sid:a})])).map(v=>v.status==="fulfilled"?v.value:null);di({type:s,data:[d,...u],props:{onclose:()=>i()("home"),pushState:!1}})}catch{i()("home")}}te()}var bh=C("<p>An error occurred.</p>"),wh=C("<!> <!>",1);function xh(t,e){ee(e,!0);const i=[{key:"results",component:uv}];br()&&(i.unshift({key:"home",component:Rs}),i.push({key:"title",component:hh}),i.push({key:"modal",component:Rs,appendComponent:yh}));const r=u()||i[0].key;let n=Y(De(i.find(({key:g})=>g===r)||i[0])),a=Y(""),o=Y(De({}));const l=B(()=>c(n).component),s=B(()=>c(n).appendComponent);Ge(()=>{c(a)&&F(n,i.find(g=>g.key==="results"),!0)});function d(g,h=!0){F(n,i.find(b=>b.key===g)||i[0],!0);const y=new URL(document.location.toString());g!=="title"&&g!=="modal"&&y.searchParams.delete("sid"),g===i[0].key?y.searchParams.delete("route"):y.searchParams.set("route",c(n).key),h&&history.pushState({},"",y),ce(se.ExploreNavigate,null,{route:c(n).key})}function u(){return new URL(document.location.toString()).searchParams.get("route")||i[0].key}function v(){d(u(),!1)}var p=ge();xe("popstate",Ie,v);var m=Z(p);lo(m,{onerror:h=>console.error(h),failed:h=>{var y=bh();w(h,y)}},h=>{sf(h,{navigate:d,get searchQuery(){return c(a)},set searchQuery(y){F(a,y,!0)},get filter(){return c(o)},set filter(y){F(o,y,!0)},children:(y,b)=>{var _=wh(),k=Z(_);jn(k,()=>c(l),(E,L)=>{L(E,{get searchQuery(){return c(a)},get filter(){return c(o)},navigate:d})});var I=j(k,2);jn(I,()=>c(s),(E,L)=>{L(E,{navigate:d})}),w(y,_)},$$slots:{default:!0}})}),w(t,p),te()}const wl="[data-playpilot-explore]",kh="[data-playpilot-pre-consent-explore]",Qs="playpilot-explore-custom-style";let Jn=null;function Xn(){var e;const t=document.querySelector(wl);t&&($n(),(e=document.querySelector(kh))==null||e.remove(),t.innerHTML="",Jn=Ct(xh,{target:t}),Sh())}function $n(){var t;Jn&&(Ki(Jn),Jn=null,(t=document.querySelector("#"+Qs))==null||t.remove())}function _h(){var s;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:r,explore_navigation_insert_position:n}=t;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const a=document.querySelector(e);if(!a)return!1;const o=a.cloneNode(!0),l=o.nodeName==="A"?o:o.querySelector("a");return l.classList.remove("active"),l.innerText=i||"Streaming Guide",l.href=r,o.dataset.playpilotExploreNavigationElement="true",a.insertAdjacentElement(n||"afterend",o),!0}function Sh(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Qs,document.body.appendChild(e)}function br(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function xl(t,e){ee(e,!0);const i=D(e,"size",3,"32px"),r=D(e,"onclick",3,()=>null),n=Dn(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var a=ge(),o=Z(a);Ko(o,()=>e.href?"a":"button",!1,(l,s)=>{is(l,()=>({role:e.href?"link":"button",onclick:r(),class:"button",...n,[hr]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=ge(),u=Z(d);We(u,()=>e.children??ft),w(s,d)}),w(t,a),te()}var Eh=C("<div></div>");function Th(t,e){ee(e,!0);let i=D(e,"threshold",3,100),r=D(e,"isDragging",15,!1),n=D(e,"passedThreshold",15,!1),a=D(e,"onpassed",3,()=>null),o=Y(0),l=Y(0),s=Y(null),d=Y(!1);const u=B(()=>Math.max(c(l)-c(o),0));Ge(()=>{n(c(u)>i())});function v(b){if(b){r(!0),F(d,!0),F(o,b.touches[0].pageY,!0);for(const _ of e.targets)_.style.transitionDuration="0ms"}}function p(b){if(b&&r()){b.preventDefault(),F(l,b.touches[0].pageY,!0),c(s).style.transform=`translateY(${c(u)}px)`;for(const _ of e.targets)_.style.top=`${c(u)}px`}}function m(){if(r()){if(r(!1),n())a()();else{c(s).removeAttribute("style");for(const b of e.targets)b.style.removeProperty("transition"),requestAnimationFrame(()=>b.style.top="0px")}F(o,0),F(l,0)}}var g={start:v,move:p,end:m},h=Eh();xe("touchmove",Ie,p,void 0,!0),xe("touchend",Ie,m);let y;return Ze(h,b=>F(s,b),()=>c(s)),H(()=>y=ye(h,1,"handle svelte-1xqgdsn",null,y,{dragging:r(),dragged:c(d)})),ae("touchstart",h,v),w(t,h),te(g)}he(["touchstart"]);var Ph=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],zh=["difference","intersection","symmetricDifference","union"],Js=!1;const pa=class pa extends Set{constructor(i){super();oe(this,Ir);oe(this,Cr,new Map);oe(this,Bt,Y(0));oe(this,Ri,Y(0));oe(this,da,li||-1);if(i){for(var r of i)super.add(r);z(this,Ri).v=super.size}Js||be(this,Ir,_c).call(this)}has(i){var r=super.has(i),n=z(this,Cr),a=n.get(i);if(a===void 0){if(!r)return c(z(this,Bt)),!1;a=be(this,Ir,kc).call(this,!0),n.set(i,a)}return c(a),r}add(i){return super.has(i)||(super.add(i),F(z(this,Ri),super.size),Si(z(this,Bt))),this}delete(i){var r=super.delete(i),n=z(this,Cr),a=n.get(i);return a!==void 0&&(n.delete(i),F(a,!1)),r&&(F(z(this,Ri),super.size),Si(z(this,Bt))),r}clear(){if(super.size!==0){super.clear();var i=z(this,Cr);for(var r of i.values())F(r,!1);i.clear(),F(z(this,Ri),0),Si(z(this,Bt))}}keys(){return this.values()}values(){return c(z(this,Bt)),super.values()}entries(){return c(z(this,Bt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return c(z(this,Ri))}};Cr=new WeakMap,Bt=new WeakMap,Ri=new WeakMap,da=new WeakMap,Ir=new WeakSet,kc=function(i){return li===z(this,da)?Y(i):Yt(i)},_c=function(){Js=!0;var i=pa.prototype,r=Set.prototype;for(const n of Ph)i[n]=function(...a){return c(z(this,Bt)),r[n].apply(this,a)};for(const n of zh)i[n]=function(...a){c(z(this,Bt));var o=r[n].apply(this,a);return new pa(o)}};let ea=pa;class Ch{constructor(e,i){oe(this,pn);oe(this,un);fe(this,pn,e),fe(this,un,ao(i))}get current(){return z(this,un).call(this),z(this,pn).call(this)}}pn=new WeakMap,un=new WeakMap;const Ih=/\(.+\)/,jh=new Set(["all","print","screen","and","or","not","only"]);class Ah extends Ch{constructor(e,i){let r=Ih.test(e)||e.split(/[\s,]+/).some(a=>jh.has(a.trim()))?e:`(${e})`;const n=window.matchMedia(r);super(()=>n.matches,a=>Bd(n,"change",a))}}const kl=new Ah("(prefers-reduced-motion: reduce)");function _l(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(a){if(a.key!=="Tab")return;const o=document.activeElement;if(!o)return;const l=e();if(!l.length)return;const[s]=l,d=l[l.length-1];a.shiftKey&&o===s&&(d.focus(),a.preventDefault()),!a.shiftKey&&o===d&&(s.focus(),a.preventDefault())}const r=document.activeElement,[n]=e();return r!=null&&r.matches(":focus-visible")&&(n==null||n.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),r==null||r.focus()}}}function Lh(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Mh=C("<div><!></div>"),Dh=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),qh=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Rh=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Oh=C("<div><!></div>"),Nh=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Fh=C('<div data-testid="modal"><!> <!> <!> <!></div>');function ta(t,e){ee(e,!0);const i=V=>{var K=Mh(),X=S(K);xl(X,{onclick:E,"aria-label":"Close",children:(pe,$)=>{Gn(pe,{})},$$slots:{default:!0}}),Ze(K,pe=>F(h,pe),()=>c(h)),H(()=>ye(K,1,`close ${o()??""}`,"svelte-1rbidhv")),Oe(7,K,()=>I),w(V,K)},r=D(e,"tall",3,!1),n=D(e,"wide",3,!1),a=D(e,"blur",3,!1),o=D(e,"closeButtonStyle",3,"shadow"),l=D(e,"initialScrollPosition",3,0),s=D(e,"pushState",3,!0),d=D(e,"onscroll",3,()=>null),u=D(e,"onclose",3,()=>null),v="#playpilot";let p=Y(0),m=Y(null),g=Y(null),h=Y(null),y=Y(0),b=Y(!1);const _=B(()=>c(p)<Nt);Ge(()=>{var V;c(p)&&F(y,((V=c(g))==null?void 0:V.offsetTop)||0,!0)}),Ge(()=>{setTimeout(()=>{var V;return F(y,((V=c(g))==null?void 0:V.offsetTop)||0,!0)})}),qr("scope","modal"),tt(()=>{const V=Lh();return V.classList.add("playpilot-modal-open"),F(b,!!ac()),s()&&!c(b)&&window.history.pushState({modal:!0},"",v),requestAnimationFrame(k),()=>{var K;V.classList.remove("playpilot-modal-open"),!ac()&&((K=history.state)!=null&&K.modal)&&history.back()}});function k(){const V=window.innerWidth>Nt?c(m):c(g);V==null||V.scrollTo(0,l())}function I(V){return kl.current?si(V,{duration:0}):c(_)?Xr(V,{duration:250,y:window.innerHeight,opacity:1}):yr(V,{duration:150,start:.85})}function E(){u()(),na()}function L(V){V.target===c(m)&&E()}var P=Fh();xe("keydown",Ie,({key:V})=>{V==="Escape"&&E()}),xe("hashchange",Ie,E);let R,M;var N=S(P);{var O=V=>{var K=Dh(),X=S(K);We(X,()=>e.prepend),Oe(7,K,()=>I),w(V,K)};W(N,V=>{e.prepend&&V(O)})}var T=j(N,2);{var x=V=>{var K=qh(),X=S(K);We(X,()=>e.bubble),Oe(7,K,()=>I),w(V,K)};W(T,V=>{e.bubble&&V(x)})}var A=j(T,2);{var q=V=>{var K=Rh(),X=S(K);{var pe=$=>{{let le=B(()=>[c(g),c(h)]);Th($,{get targets(){return c(le)},onpassed:E})}};W(X,$=>{c(g)&&c(h)&&$(pe)})}Oe(7,K,()=>I),w(V,K)};W(A,V=>{c(_)&&V(q)})}var U=j(A,2);{var G=V=>{var K=ge(),X=Z(K);We(X,()=>e.dialog),w(V,K)},J=V=>{var K=Nh(),X=Z(K),pe=S(X);{var $=ne=>{var ke=Oh(),rt=S(ke);xl(rt,{onclick:()=>Zg(),"aria-label":"Back",children:(kt,ut)=>{yt(kt,{direction:"left"})},$$slots:{default:!0}}),H(()=>ye(ke,1,`close back ${o()??""}`,"svelte-1rbidhv")),w(ne,ke)};W(pe,ne=>{c(b)&&ne($)})}var le=j(pe,2);We(le,()=>e.children??ft);var Pe=j(le,2);{var Fe=ne=>{i(ne)};W(Pe,ne=>{c(_)||ne(Fe)})}Ze(X,ne=>F(g,ne),()=>c(g));var Be=j(X,2);{var ve=ne=>{i(ne)};W(Be,ne=>{c(_)&&ne(ve)})}xe("scroll",X,function(...ne){var ke;(ke=d())==null||ke.apply(this,ne)}),Oe(7,X,()=>I),w(V,K)};W(U,V=>{e.dialog?V(G):V(J,-1)})}Ze(P,V=>F(m,V),()=>c(m)),mt(P,V=>_l==null?void 0:_l(V)),H(()=>{R=ye(P,1,"modal svelte-1rbidhv",null,R,{wide:n(),tall:r(),"background-blur":a(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),M=Ye(P,"",M,{"--dialog-offset":`${c(y)??""}px`})}),Kr("innerWidth",V=>F(p,V,!0)),ae("click",P,L),Oe(5,P,()=>si,()=>({duration:150})),Oe(6,P,()=>si,()=>({duration:150,delay:100})),w(t,P),te()}he(["click"]);function wr(t,e){const{onclick:i}=e;function r(n){return n.button!==1?null:(i(n),n)}return t.addEventListener("mouseup",r),{destroy(){t.removeEventListener("mouseup",r)}}}const Xs={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"};var Hh=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Bh=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Vh=C('<button class="button svelte-1mt6g1y"> </button>'),Wh=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),Uh=C('<div class="background svelte-1mt6g1y"></div>'),Gh=C("<!> <!>",1),Yh=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function $s(t,e){ee(e,!0),ce(se.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),Zs(en.TopScrollFormat);const i=B(()=>e.campaign.disclaimer),r=B(()=>e.campaign.content),n=B(()=>e.campaign.cta),a=B(()=>c(r).format),o=B(()=>c(r).header),l=B(()=>c(r).header_logo),s=B(()=>c(r).image_uuid),d=B(()=>c(n).header),u=B(()=>c(n).url),v=B(()=>c(a)==="large"),p=B(()=>Ls(c(s),Xs.TopScrollBackground)),m=B(()=>Ls(c(s),Xs.TopScrollContent));let g=Y(0);function h(){ce(se.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var y=Yh();let b,_;var k=S(y),I=S(k);{var E=M=>{var N=Hh();H(()=>{ue(N,"src",c(m)),ue(N,"alt",c(o))}),w(M,N)},L=M=>{var N=Wh(),O=Z(N);{var T=G=>{var J=Bh();H(()=>ue(J,"src",c(l))),w(G,J)};W(O,G=>{c(l)&&G(T)})}var x=j(O,2),A=S(x),q=j(x,2);{var U=G=>{var J=Vh(),V=S(J);H(()=>Q(V,c(d))),w(G,J)};W(q,G=>{c(d)&&G(U)})}H(()=>Q(A,c(o))),w(M,N)};W(I,M=>{c(v)?M(E):M(L,-1)})}var P=j(k,2);{var R=M=>{var N=Gh(),O=Z(N);{var T=q=>{var U=Uh();let G;H(()=>G=Ye(U,"",G,{"--background":`url('${c(p)??""}')`})),w(q,U)};W(O,q=>{c(s)&&q(T)})}var x=j(O,2);{var A=q=>{bl(q,{get disclaimer(){return c(i)}})};W(x,q=>{c(i)&&q(A)})}w(M,N)};W(P,M=>{c(v)||M(R)})}mt(y,(M,N)=>wr==null?void 0:wr(M,N),()=>({onclick:h})),Wi(()=>It(y,"clientWidth",M=>F(g,M))),H(()=>{ue(y,"href",c(u)),b=ye(y,1,"top-scroll svelte-1mt6g1y",null,b,{simple:c(v)}),_=Ye(y,"",_,{"--width":`${c(g)??""}px`})}),ae("click",y,h),w(t,y),te()}he(["click"]);var Kh=C('<div class="content svelte-r7ubzi"><!></div>'),Zh=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function Qh(t,e){let i=Y(!1);var r=Zh(),n=S(r);We(n,()=>e.children);var a=j(n,2);{var o=l=>{var s=Kh(),d=S(s);We(d,()=>e.content),Oe(1,s,()=>si,()=>({duration:100})),w(l,s)};W(a,l=>{c(i)&&l(o)})}ae("touchstart",r,()=>F(i,!c(i))),xe("mouseenter",r,()=>F(i,!0)),xe("mouseleave",r,()=>F(i,!1)),w(t,r)}he(["touchstart"]);var Jh=C('<div class="info svelte-qcpiki"><!></div>'),Xh=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),$h=C('<span class="name svelte-qcpiki"> </span>'),eg=C('<div class="subheader svelte-qcpiki"> </div>'),tg=C('<div class="action svelte-qcpiki"> </div>'),ig=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),rg=C('<img class="background svelte-qcpiki" alt=""/>'),ng=C('<video class="background svelte-qcpiki" autoplay="" playsinline="" loop=""><source type="video/mp4"/> <track kind="captions"/></video>',2),ag=C('<div class="disclaimer svelte-qcpiki"><!></div>'),lg=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function ec(t,e){ee(e,!0);const i=D(e,"compact",3,!1),r=B(()=>e.campaign.disclaimer),n=B(()=>e.campaign.content),a=B(()=>e.campaign.cta),o=B(()=>e.campaign.campaign_type),l=B(()=>c(n).header),s=B(()=>c(n).subheader),d=B(()=>c(n).header_logo),u=B(()=>c(n).image),v=B(()=>c(n).video),p=B(()=>c(a).header),m=B(()=>c(a).url),g=B(()=>c(a).subheader);let h=Y(0);ce(se.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function y(){ce(se.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var b=lg();let _;var k=S(b);{var I=T=>{var x=Jh(),A=S(x);{var q=G=>{Qh(G,{content:V=>{var K=gt();H(()=>Q(K,c(g))),w(V,K)},children:(V,K)=>{var X=gt("Ad");w(V,X)}})},U=G=>{var J=gt();H(()=>Q(J,c(g))),w(G,J)};W(A,G=>{i()?G(q):G(U,-1)})}w(T,x)};W(k,T=>{c(g)&&T(I)})}var E=j(k,2);{var L=T=>{var x=ig(),A=S(x);{var q=$=>{var le=Xh();H(()=>ue(le,"src",c(d))),w($,le)};W(A,$=>{c(d)&&$(q)})}var U=j(A,2),G=S(U);{var J=$=>{var le=$h(),Pe=S(le);H(()=>Q(Pe,c(l))),w($,le)};W(G,$=>{c(l)&&$(J)})}var V=j(G,2);{var K=$=>{var le=eg(),Pe=S(le);H(()=>Q(Pe,c(s))),w($,le)};W(V,$=>{c(s)&&$(K)})}var X=j(U,2);{var pe=$=>{var le=tg(),Pe=S(le);H(()=>Q(Pe,c(p))),w($,le)};W(X,$=>{c(p)&&$(pe)})}It(x,"clientHeight",$=>F(h,$)),w(T,x)};W(E,T=>{(c(d)||c(l)||c(s)||c(p))&&T(L)})}var P=j(E,2);{var R=T=>{var x=rg();H(()=>ue(x,"src",c(u))),w(T,x)},M=T=>{var x=ng();x.muted=!0;var A=S(x);H(()=>ue(A,"src",c(v))),w(T,x)};W(P,T=>{c(o)==="image"&&c(u)?T(R):c(o)==="video"&&c(v)&&T(M,1)})}var N=j(P,2);{var O=T=>{var x=ag();let A;var q=S(x);bl(q,{get disclaimer(){return c(r)}}),H(()=>A=Ye(x,"",A,{"--offset":`${c(h)??""}px`})),w(T,x)};W(N,T=>{c(r)&&T(O)})}mt(b,(T,x)=>wr==null?void 0:wr(T,x),()=>({onclick:y})),H(()=>{ue(b,"href",c(m)),_=ye(b,1,"display svelte-qcpiki",null,_,{compact:i()})}),ae("click",b,y),w(t,b),te()}he(["click"]);var og=C('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function sg(t,e){var s,d;ee(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",r=(d=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:d.explore_navigation_path;$a();var n=og(),a=S(n);ue(a,"src",i);var o=j(a,4),l=S(o);yt(l,{}),H(()=>ue(n,"href",r)),ae("click",n,()=>ce(se.CardToExploreCta)),w(t,n),te()}he(["click"]);function cg(t,e){var p,m;ee(e,!0);const i=g=>{var h=ge(),y=Z(h);{var b=k=>{$s(k,{get campaign(){return o}})},_=k=>{sg(k,{})};W(y,k=>{o?k(b):k(_,-1)})}w(g,h)},r=g=>{var h=ge(),y=Z(h);{var b=_=>{ec(_,{get campaign(){return l}})};W(y,_=>{l&&_(b)})}w(g,h)},n=D(e,"initialScrollPosition",3,0),a=Dn(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]);qr("modal","title");const o=Jr("top_scroll"),l=Jr("card"),s=(m=(p=window.PlayPilotLinkInjections)==null?void 0:p.config)==null?void 0:m.explore_insert_cta_in_tpi,d=!!o||s&&!document.querySelector(wl);let u=!1;ce(se.TitleModalView,e.title),$r()&&ei(Ft.TitleInterest,{title:e.title.title,source:ji.Card}),tt(()=>{const g=Date.now();return()=>ce(se.TitleModalClose,e.title,{time_spent:Date.now()-g})});function v(){u||(ce(se.TitleModalScroll,e.title),u=!0)}{let g=B(()=>d?i:null),h=B(()=>l?r:null);ta(t,{onscroll:v,get initialScrollPosition(){return n()},get bubble(){return c(g)},get prepend(){return c(h)},tall:!0,children:(y,b)=>{Qn(y,Zr({get title(){return e.title}},()=>a))},$$slots:{default:!0}})}te()}var dg=C(" <strong> </strong>",1),pg=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),ug=C('<div class="heading subheading svelte-ke01cs" id="credits"> </div>'),vg=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),fg=C('<button class="more svelte-ke01cs"> </button>'),hg=C('<div><div class="heading svelte-ke01cs" id="heading"> </div> <!></div> <div class="content svelte-ke01cs"><!> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function tc(t,e){ee(e,!0);const i=D(e,"small",3,!1),r=B(()=>e.participant.name),n=B(()=>e.participant.birth_date),a=B(()=>e.participant.death_date),o=30;let l=Y(De([])),s=Y(1),d=Y(!0),u=Y(!0);tt(p),$t("pixels")&&ei(Ft.ParticipantView,{participant:e.participant.name});function v(T){return new Date(T).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function p(){F(u,!0);try{const T=await Tf(e.participant,{page:c(s)});F(l,[...c(l),...T],!0),F(d,(T==null?void 0:T.length)>=o)}catch{F(d,!1)}finally{F(u,!1),F(s,c(s)+1)}}var m=hg(),g=Z(m);let h;var y=S(g),b=S(y);mt(y,(T,x)=>Te==null?void 0:Te(T,x),()=>2);var _=j(y,2);{var k=T=>{var x=pg(),A=S(x),q=j(A),U=S(q),G=j(q);{var J=V=>{var K=dg(),X=Z(K),pe=j(X),$=S(pe);H((le,Pe)=>{Q(X,`, ${le??""} `),Q($,Pe)},[()=>ie("Died On"),()=>v(c(a))]),w(V,K)};W(G,V=>{c(a)&&V(J)})}H((V,K)=>{Q(A,`${V??""} `),Q(U,K)},[()=>ie("Born On"),()=>v(c(n))]),w(T,x)};W(_,T=>{c(n)&&T(k)})}var I=j(g,2),E=S(I);{var L=T=>{var x=ug(),A=S(x);mt(x,(q,U)=>Te==null?void 0:Te(q,U),()=>3),H(q=>Q(A,q),[()=>ie("Credits")]),w(T,x)};W(E,T=>{i()||T(L)})}var P=j(E,2),R=S(P);Ce(R,17,()=>c(l),je,(T,x)=>{Ns(T,{get title(){return c(x)},get compact(){return i()},onclick:A=>di({event:A,data:c(x)})})});var M=j(R,2);{var N=T=>{var x=ge(),A=Z(x);Ce(A,16,()=>({length:6}),je,(q,U)=>{var G=vg();w(q,G)}),w(T,x)},O=T=>{var x=fg(),A=S(x);H(q=>Q(A,q),[()=>ie("Show More")]),ae("click",x,p),w(T,x)};W(M,T=>{c(u)?T(N):c(d)&&T(O,1)})}H(()=>{h=ye(g,1,"header svelte-ke01cs",null,h,{small:i()}),Q(b,c(r))}),w(t,m),te()}he(["click"]);function gg(t,e){ee(e,!0);const i=D(e,"initialScrollPosition",3,0);let r=Y(0);ce(se.ParticipantModalView,null,{participant:e.participant.name}),tt(()=>{const n=Date.now();return()=>ce(se.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-n})}),ta(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(n,a)=>{tc(n,{get participant(){return e.participant}})},$$slots:{default:!0}}),Kr("innerWidth",n=>F(r,n,!0)),te()}function mg(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(n=>{n.style.viewTransitionName=n.dataset.viewTransitionNew||""})})}var yg=et('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function bg(t){var e=yg();w(t,e)}var wg=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),xg=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),kg=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),_g=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function Sg(t,e){ee(e,!0),qr("scope","popover");const i=e.bubble&&mh(en.TopScrollFormat,1),r=B(()=>({duration:kl.current?0:100,y:10}));let n=Y(null),a=Y(!1),o=Y(!0),l=Y(!1),s=Y(0),d=Y(0),u=Y(0);tt(async()=>{await Vr(),v(),await m(),e.append&&requestAnimationFrame(()=>{p(),m()}),await Vr(),h()});function v(){if(!c(n))return;const{top:O,right:T,bottom:x,height:A}=c(n).getBoundingClientRect(),q=g();F(a,O-q<0&&window.innerHeight-x>O+A,!0);const U=window.innerWidth-T-q;T+q>window.innerWidth&&(c(n).style.left=`${U}px`)}function p(){F(o,c(s)>450)}async function m(){if(F(u,0),await new Promise(G=>requestAnimationFrame(G)),!c(n))return;const{top:O,height:T}=c(n).getBoundingClientRect(),x=g(),A=e.append?parseInt(window.getComputedStyle(c(n)).gap):0,q=c(o)?c(d)+A:0,U=c(a)?window.innerHeight-O-x-q:O+T-q-x;F(u,Math.min(U,window.innerHeight*.8),!0)}function g(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function h(){var q;if(!((q=c(n))!=null&&q.firstChild))return;const O=c(n).firstChild,{offsetHeight:T,scrollHeight:x,scrollTop:A}=O;x<=T?F(l,!1):F(l,A+T<x)}var y=_g();let b,_;var k=S(y),I=S(k);We(I,()=>e.children);var E=j(I,2);{var L=O=>{var T=wg(),x=S(T),A=S(x);bg(A),Oe(3,T,()=>si,()=>({duration:100})),w(O,T)};W(E,O=>{c(l)&&O(L)})}var P=j(k,2);{var R=O=>{var T=xg(),x=S(T);We(x,()=>e.bubble),Oe(7,T,()=>Xr,()=>c(r)),w(O,T)};W(P,O=>{e.bubble&&O(R)})}var M=j(P,2);{var N=O=>{var T=kg(),x=S(T);We(x,()=>e.append),Oe(7,T,()=>Xr,()=>c(r)),It(T,"clientHeight",A=>F(d,A)),w(O,T)};W(M,O=>{e.append&&c(o)&&O(N)})}Ze(y,O=>F(n,O),()=>c(n)),H(()=>{b=ye(y,1,"popover svelte-wxwoko",null,b,{flip:c(a),inline:i,"has-bubble":!!e.bubble&&i}),_=Ye(y,"",_,{"--max-height":c(u)?c(u)+"px":null})}),xe("scroll",k,h),Oe(7,k,()=>Xr,()=>c(r)),It(y,"clientHeight",O=>F(s,O)),w(t,y),te()}var Eg=C('<div class="injection-popover svelte-1laomht" data-playpilot-injection-popover="" role="region" aria-labelledby="heading"><!></div>');function ic(t,e){ee(e,!0);const i=v=>{var p=ge(),m=Z(p);{var g=h=>{$s(h,{get campaign(){return a}})};W(m,h=>{a&&h(g)})}w(v,p)},r=v=>{var p=ge(),m=Z(p);{var g=h=>{ec(h,{get campaign(){return o},compact:!0})};W(m,h=>{o&&h(g)})}w(v,p)},n=D(e,"type",3,"title");qr("type",n());const a=Jr("top_scroll"),o=Jr("card");let l=Y(null);n()==="title"&&ce(se.InjectionPopoverView,e.data,{type:n()}),n()==="participant"&&ce(se.InjectionPopoverView,null,{type:n(),participant:e.data.name}),$r()&&n()==="title"&&ei(Ft.TitleInterest,{title:e.data.title,source:ji.Card}),tt(()=>{s();const v=Date.now();return()=>{const p=Date.now()-v;n()==="title"&&ce(se.InjectionPopoverClose,e.data,{type:n(),time_spent:p}),n()==="participant"&&ce(se.InjectionPopoverClose,null,{type:n(),participant:e.data.name,time_spent:p})}});function s(){const v=e.event.target;if(!(v!=null&&v.getClientRects))return;const p=Array.from(v.getClientRects()),g=p.map(y=>y.x).map(y=>Math.abs(y-e.event.clientX)),h=p[g.indexOf(Math.min(...g))];c(l).style.top=h.top+window.scrollY+"px",c(l).style.left=h.left+window.scrollX+"px",c(l).style.height=h.height+"px"}var d=Eg(),u=S(d);{let v=B(()=>o?r:null),p=B(()=>a?i:null);Sg(u,{get append(){return c(v)},get bubble(){return c(p)},children:(m,g)=>{var h=ge(),y=Z(h);{var b=k=>{Qn(k,{get title(){return e.data},small:!0})},_=k=>{tc(k,{get participant(){return e.data},small:!0})};W(y,k=>{n()==="title"?k(b):n()==="participant"&&k(_,1)})}w(m,h)},$$slots:{default:!0}})}Ze(d,v=>F(l,v),()=>c(l)),w(t,d),te()}let ia=null,Ai=null;function Tg(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Ai&&ra();const i=t.currentTarget;ia=i,setTimeout(()=>{if(ia!==i)return;const r=zl();e.type==="title"?Ai=Ct(ic,{target:r,props:{event:t,type:"title",data:e.title_details}}):e.type==="participant"&&(Ai=Ct(ic,{target:r,props:{event:t,type:"participant",data:e.participant_details}}))},100)}async function ra(t=!0){if(Ai){const e=Ki(Ai,{outro:t});ia=null,Ai=null,await e}document.querySelectorAll("[data-playpilot-injection-popover]").forEach(e=>e.remove())}function Pg(t){if(!Ai)return;const e=t.target;e.hasAttribute("data-playpilot-injection-popover")||e.closest("[data-playpilot-injection-popover]")||e.hasAttribute(pi)||e.closest(ui)||ra()}function zg(){ia=null}function Cg(){return!!Ai}var Ig=C("<!> ",1),jg=C('<div class="back svelte-29uorr"><!></div>'),Ag=C('<!> <div class="close svelte-29uorr"><!></div>',1);function rc(t,e){ee(e,!0);const i=D(e,"label",3,""),r=D(e,"onclose",3,()=>null);var n=Ag(),a=Z(n);{var o=d=>{var u=jg(),v=S(u);ci(v,{variant:"link",onclick:()=>{r()(),na()},children:(p,m)=>{var g=Ig(),h=Z(g);yt(h,{direction:"left"});var y=j(h);H(()=>Q(y,` ${i()??""}`)),w(p,g)},$$slots:{default:!0}}),w(d,u)};W(a,d=>{i()&&d(o)})}var l=j(a,2),s=S(l);xl(s,{size:"42px",onclick:()=>{r()(),na()},"aria-label":"Close",children:(d,u)=>{Gn(d,{size:24})},$$slots:{default:!0}}),Oe(7,l,()=>yr),w(t,n),te()}var Lg=C('<div class="content svelte-c2erhr"><!></div>'),Mg=C("<div><!></div>"),Dg=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),qg=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Rg=C("<!> <!>",1),Og=C('<div><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Ng(t,e){ee(e,!0);const i=D(e,"initialIndex",3,0),r=D(e,"onchange",3,()=>null),n=D(e,"onclose",3,()=>null),a=Dn(e,["$$slots","$$events","$$legacy","items","initialIndex","onchange","onclose","each"]),o=300;let l,s=Y(!1);tt(()=>{requestAnimationFrame(()=>{i()!==0&&(l==null||l.setIndex(i())),requestAnimationFrame(()=>{l==null||l.reposition(),F(s,!0)})})});function d(u){r()(u),l.setIndex(u)}ta(t,Zr({blur:!0,get onclose(){return n()}},()=>a,{dialog:v=>{var p=Og(),m=Z(p);let g;Ye(m,"",{},{"--transition-duration":"300ms"});var h=S(m);{const _=(E,L)=>{let P=()=>(L==null?void 0:L()).currentIndex;var R=ge(),M=Z(R);Ce(M,17,()=>e.items,je,(N,O,T)=>{var x=Mg();let A;var q=S(x);{var U=J=>{var V=Lg(),K=S(V);We(K,()=>e.each,()=>c(O),P),Oe(3,V,()=>si,()=>({duration:c(s)?o:0})),w(J,V)},G=B(()=>Math.abs(T-P())===1||P()===T);W(q,J=>{c(G)&&J(U)})}H(()=>A=ye(x,1,"item svelte-c2erhr",null,A,{active:T===P()})),ae("click",x,()=>d(T)),w(N,x)}),w(E,R)},k=(E,L)=>{let P=()=>(L==null?void 0:L()).currentIndex,R=()=>(L==null?void 0:L()).reachedEnd;var M=Rg(),N=Z(M);{var O=A=>{var q=Dg(),U=S(q);yt(U,{size:21,direction:"left",title:"Previous"}),ae("click",q,()=>d(P()-1)),w(A,q)};W(N,A=>{P()>0&&A(O)})}var T=j(N,2);{var x=A=>{var q=qg(),U=S(q);yt(U,{size:21,title:"Next"}),ae("click",q,()=>d(P()+1)),w(A,q)};W(T,A=>{R()||A(x)})}w(E,M)};let I=B(()=>c(s)?o:0);Ze(vl(h,{threshold:40,moveThreshold:40,get transitionDuration(){return c(I)},children:_,controls:k,$$slots:{default:!0,controls:!0}}),E=>l=E,()=>l)}var y=j(m,2),b=S(y);{let _=B(()=>window.location.href.includes("route=modal")?ie("Explore All Movies And Shows"):"");rc(b,{get onclose(){return n()},get label(){return c(_)}})}H(()=>g=ye(m,1,"rail-modal svelte-c2erhr",null,g,{initialized:c(s)})),w(v,p)},$$slots:{dialog:!0}})),te()}he(["click"]);function Fg(t,e){ee(e,!0);const i=D(e,"initialIndex",3,0),r=D(e,"onclose",3,()=>null),n=Dn(e,["$$slots","$$events","$$legacy","titles","initialIndex","onclose"]);Ng(t,Zr({get items(){return e.titles},get initialIndex(){return i()},get onclose(){return r()},onchange:o=>ce(se.ExploreTitleRailSetIndex,e.titles[o],{index:o})},()=>n,{each:(o,l=ft,s=ft)=>{{let d=B(()=>{var u;return l().sid===((u=e.titles[s()])==null?void 0:u.sid)});Qn(o,{get title(){return l()},get useVideoBackground(){return c(d)}})}},$$slots:{each:!0}})),te()}var Hg=C('<div class="arrow svelte-5maid2"><!></div>'),Bg=C('<div class="content svelte-5maid2"><div class="header svelte-5maid2"><div class="heading svelte-5maid2"> </div> <!></div> <div class="details svelte-5maid2"><!> <div class="playlinks-heading svelte-5maid2"> </div> <!> <!></div></div> <!> <div class="gradient svelte-5maid2"></div> <!>',1),Vg=C('<div class="item svelte-5maid2"><!></div>'),Wg=C('<div class="slider svelte-5maid2"><!></div> <!>',1),Ug=C('<div class="reel svelte-5maid2"><!></div>');function Gg(t,e){ee(e,!0);const i=D(e,"onclose",3,()=>null);let r=null;tt(()=>(a(0),()=>{r&&clearInterval(r)}));function n(s){a(s),ce(se.ExploreTitleReelSetIndex,e.titles[s],{index:s})}function a(s){[e.titles[s-1],e.titles[s+1]].forEach(u=>{window.dispatchEvent(new CustomEvent("pauseembed",{detail:u==null?void 0:u.embeddable_url}))});const d=e.titles[s];r&&clearInterval(r),r=setInterval(()=>{window.dispatchEvent(new CustomEvent("playembed",{detail:d==null?void 0:d.embeddable_url}))},500)}var o=Ug(),l=S(o);ta(l,{dialog:d=>{var u=Wg(),v=Z(u),p=S(v);vl(p,{vertical:!0,threshold:50,moveThreshold:10,onchange:n,children:(h,y)=>{let b=()=>(y==null?void 0:y()).currentIndex,_=()=>(y==null?void 0:y()).setIndex;var k=ge(),I=Z(k);Ce(I,17,()=>e.titles,je,(E,L,P)=>{var R=Vg(),M=S(R);{var N=T=>{var x=Bg(),A=Z(x),q=S(A),U=S(q),G=S(U);mt(U,(ne,ke)=>Te==null?void 0:Te(ne,ke),()=>2);var J=j(U,2);Us(J,{get title(){return c(L)}});var V=j(q,2),K=S(V);{var X=ne=>{Vs(ne,{get text(){return c(L).description},get blurb(){return c(L).blurb},limit:80})};W(K,ne=>{c(L).description&&ne(X)})}var pe=j(K,2),$=S(pe);mt(pe,(ne,ke)=>Te==null?void 0:Te(ne,ke),()=>3);var le=j(pe,2);gl(le,{get playlinks(){return c(L).providers},size:24});var Pe=j(le,2);Bs(Pe,{get playlinks(){return c(L).providers}});var Fe=j(A,2);Ws(Fe,{get title(){return c(L)},useVideoBackground:!0,autoplay:!1,inline:!0});var Be=j(Fe,4);{var ve=ne=>{var ke=Hg(),rt=S(ke);yt(rt,{direction:"down",size:24}),w(ne,ke)};W(Be,ne=>{P===0&&b()===0&&ne(ve)})}H(ne=>{Q(G,c(L).title),Q($,ne)},[()=>ie("Where To Stream Online")]),w(T,x)},O=B(()=>Math.abs(P-b())<=2||b()===P);W(M,T=>{c(O)&&T(N)})}ae("click",R,()=>_()(P)),w(E,R)}),w(h,k)},$$slots:{default:!0}});var m=j(v,2);{let g=B(()=>ie("Explore All Movies And Shows"));rc(m,{get onclose(){return i()},get label(){return c(g)}})}w(d,u)},$$slots:{dialog:!0}}),w(t,o),te()}he(["click"]);const it=[];function di({type:t="title",event:e=null,injection:i=null,data:r=null,scrollPosition:n=0,returnToTitle:a=null,props:o={}}={}){if(e&&ws(e))return;e==null||e.preventDefault(),it!=null&&it.length&&Sl();const l=zl(),s={initialScrollPosition:n,...o},d=Yg({type:t,target:l,data:r,props:s});a&&nc({type:t,injection:i,data:a}),nc({type:t,injection:i,data:r,scrollPosition:n,component:d})}function Yg({type:t="title",target:e,data:i,props:r={}}){return t==="participant"?Ct(gg,{target:e,props:{participant:i,...r}}):t==="titles-rail"?Ct(Fg,{target:e,props:{titles:i,...r}}):t==="titles-reel"?Ct(Gg,{target:e,props:{titles:i,...r}}):Ct(cg,{target:e,props:{title:i,...r}})}function nc({type:t="title",injection:e=null,data:i,scrollPosition:r=0,component:n}){it.push({type:t,injection:e,data:i,scrollPosition:r,component:n})}function Sl(t=!0){it.length&&(Qg(),Ki(it[it.length-1].component,{outro:t}))}function Kg(t=!0){Sl(t),it.pop()}function na(t=!0){for(Sl(t);it.length>0;)it.pop()}function ac(){return it[it.length-2]||null}function Zg(){if(it.length<2)return;Kg();const t=it.pop();t&&di({...t})}function Qg(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Nt?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(it[it.length-1].scrollPosition=e.scrollTop)}function Jg(t,e){if(ws(t))return;let i=t.target;if(!i||(i.hasAttribute(pi)||(i=i.closest(ui)),!i))return;const r=i.getAttribute(pi);if(!r)return;const n=e.find(a=>r===a.key);n&&(t.preventDefault(),mg(()=>{const a=n.title_details||n.participant_details;ra(!1),di({event:t,injection:n,data:a,type:n.type})},!kl.current&&window.innerWidth>=Nt&&!window.matchMedia("(pointer: coarse)").matches))}var Xg=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),$g=C('<!> <a target="_blank"> </a>',1),em=C(" <!>.",1),tm=C("<!> <br/>",1),im=C(" <br/>",1),rm=C('<span class="svelte-1to4glm"><!></span>'),nm=C('<p class="svelte-1to4glm"></p>');function am(t,e){ee(e,!0);const i=D(e,"onclickmodal",3,()=>null);function r(s,d){ce(se.AfterArticlePlaylinkClick,s,{playlink:d})}function n(s,d,u){ce(se.AfterArticleModalButtonClick,d),i()(s,u)}var a=ge(),o=Z(a);{var l=s=>{var d=nm();Ce(d,21,()=>e.linkInjections,je,(u,v)=>{const p=B(()=>{const{key:_,title:k,title_details:I,after_article_style:E}=c(v);return{key:_,title:k,title_details:I,after_article_style:E}}),m=B(()=>{var _;return((_=c(p).title_details)==null?void 0:_.providers)||[]});var g=rm(),h=S(g);{var y=_=>{var k=tm(),I=Z(k);{var E=P=>{var R=Xg(),M=Z(R),N=j(M),O=S(N),T=S(O);H((x,A)=>{Q(M,`"${c(p).title??""}" ${x??""} `),Q(T,A)},[()=>ie("Is Available To Stream"),()=>ie("View Streaming Options")]),ae("click",N,x=>x.stopPropagation()),ae("click",O,x=>n(x,c(p).title_details,c(v))),w(P,R)},L=P=>{var R=em(),M=Z(R),N=j(M);Ce(N,17,()=>c(m),je,(O,T,x)=>{let A=()=>c(T).name,q=()=>c(T).url;var U=$g(),G=Z(U);{var J=X=>{var pe=gt();H($=>Q(pe,$),[()=>x===c(m).length-1?`, ${ie("And")}`:","]),w(X,pe)};W(G,X=>{x&&X(J)})}var V=j(G,2),K=S(V);H(()=>{ue(V,"href",q()),Q(K,A())}),ae("click",V,()=>r(c(p).title_details,A())),w(O,U)}),H(O=>Q(M,`"${c(p).title??""}" ${O??""} `),[()=>ie("Is Available To Stream On")]),w(P,R)};W(I,P=>{c(p).after_article_style==="modal_button"?P(E):P(L,-1)})}w(_,k)},b=_=>{var k=im(),I=Z(k);H(E=>Q(I,`"${c(p).title??""}" ${E??""} `),[()=>ie("Title Unavailable Suffix")]),w(_,k)};W(h,_=>{c(m).length?_(y):_(b,-1)})}H(()=>ue(g,"data-playpilot-injection-key",c(p).key)),w(u,g)}),w(s,d)};W(o,s=>{e.linkInjections.length&&s(l)})}w(t,a),te()}he(["click"]);let tn=null;function lm(t,e){var o,l;if(tn||!e.length)return;const i=document.createElement("div"),r=(o=window.PlayPilotLinkInjections)==null?void 0:o.after_article_selector,n=(r?document.querySelector(r):null)||t[t.length-1],a=((l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",n.insertAdjacentElement(a,i),tn=Ct(am,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>di({event:s,injection:d,data:d.title_details})}})}function om(){var t;tn&&(Ki(tn),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),tn=null)}var sm=C('<p class="svelte-1epbbn0"> </p>');function cm(t,e){ee(e,!1),$a();var i=sm(),r=S(i);H(n=>Q(r,n),[()=>{var n,a;return((a=(n=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:a.in_text_disclaimer_text)||ie("In-Text Disclaimer")}]),w(t,i),te()}let rn=null;function dm(t){var a,o,l,s,d,u;if(!((o=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)!=null&&o.in_text_disclaimer_enabled)||rn)return;const e=document.createElement("div"),i=(s=(l=window.PlayPilotLinkInjections)==null?void 0:l.config)==null?void 0:s.in_text_disclaimer_selector,r=(i?document.querySelector(i):null)||t[0],n=((u=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:u.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",r.insertAdjacentElement(n,e),rn=Ct(cm,{target:e})}function pm(){var t;rn&&(Ki(rn),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),rn=null)}var um=C('<div class="widget svelte-l6zazf" data-testid="widget"><!></div>');function vm(t,e){ee(e,!0);let i=Y(null);const r=B(()=>{var s,d;return((d=(s=c(i))==null?void 0:s.parentNode)==null?void 0:d.dataset.heading)||ie("Mentioned In This Article")}),n=B(()=>{const s=[];return e.linkInjections.forEach(d=>{const u=d.title_details;u&&(s.some(v=>v.sid===u.sid)||s.push(u))}),s});var a=ge(),o=Z(a);{var l=s=>{var v,p;var d=um(),u=S(d);Zn(u,{get titles(){return c(n)},get heading(){return c(r)},navigateToExplore:!!((p=(v=window.PlayPilotLinkInjections)==null?void 0:v.config)!=null&&p.open_tpi_links_in_explore),onclick:m=>ce(se.WidgetArticleRailTitleClick,m)}),Ze(d,m=>F(i,m),()=>c(i)),w(s,d)};W(o,s=>{c(n).length&&s(l)})}w(t,a),te()}const fm={"tpi-rail":vm},hm="[data-playpilot-widget]";let El=[];function gm(t){if(lc(),!t.length)return;document.querySelectorAll(hm).forEach(i=>{const r=i.dataset.playpilotWidget||"",n=fm[r];if(!n)return;const a=Ct(n,{target:i,props:{linkInjections:t}});El.push(a)})}function lc(){El.forEach(t=>Ki(t)),document.querySelectorAll("[data-playpilot-widget]").forEach(t=>t.innerHTML=""),El=[]}const pi="data-playpilot-injection-key",ui=`[${pi}]`;function mm(t,e={aiInjections:[],manualInjections:[]}){Pl(),_m();const i=Sm(e);if(!i.length)return[];const r=Ii(t.map(d=>d.innerText).join(" ")),a=Tm(i).filter(d=>r.includes(Ii(d.sentence))),o={};let l=-1;for(const d of zm(a)){l++;const u=t.findIndex(I=>Ii(I.innerText).includes(Ii(d.sentence))),v=t[u];if(!v)continue;const p=gs(d.title,v,["A"]);if(!(p!=null&&p.nodeValue)||ms(p)){const I=gs(d.title,v);if(I&&ms(I)){o[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:m,linkElement:g}=ym(d);let h=-1,y=!1;Fn(v.innerHTML,d.title)===1&&(h=v.innerHTML.indexOf(d.title));const{phrase_before:_,phrase_after:k}=bm(v,d);if(h===-1&&(_||k)){const I=[_,d.title,k].filter(Boolean).join(" ");if(h=v.innerHTML.indexOf(I),h===-1){const E=Bp(v.innerHTML,d.title,_||"",k||"");if(E){const{leadingSpaces:L,trailingSpaces:P}=Vp(E.match);g.innerHTML=E.match.trim();const R=E.index+L,M=E.index+E.match.length-P;if(v.innerHTML.slice(R,M).includes("href="))continue;Tl(v.innerHTML,d.title,v,m,R,M)&&(h=E.index,y=!0)}}}if(h===-1&&(p!=null&&p.nodeValue)){const I=v.innerHTML.indexOf(p.nodeValue),E=v.innerHTML.indexOf(d.sentence),L=E===-1?v.innerHTML.indexOf(d.sentence.slice(0,20)):-1,P=d.sentence.split(" ")[0],M=Fn(v.innerHTML,P)===1?v.innerHTML.indexOf(P):-1,N=Dp(a.slice(0,l+1),d,["title","sentence"])-1,O=Wp(p.nodeValue,v,N);h=Math.max(I,L,O,M,E,0)}if(h!==-1&&!y&&!Tl(v.innerHTML,d.title,v,m,h)){const I=Gp(d.title,v.innerHTML);I>-1?Tl(v.innerHTML,d.title,v,m,I):o[d.key]="Injection would have lead to broken HTML."}}xm(a),wm();const s=Pm(i);return s.length&&lm(t,s),document.querySelector(ui)&&dm(t),gm(a),i.filter(d=>pc(d)).map((d,u)=>{const v=!d.manual&&Cm(d,u,i),p=d.duplicate??v;p&&(o[d.key]=v?"Injection was manually removed.":"Injection was marked as duplicate.");const m=document.querySelector(`[${pi}="${d.key}"]`),g=sc(d)&&!d.inactive&&!d.removed&&!d.after_article&&!m,h=a.find(b=>b.key===d.key),y=g?o[d.key]||(h?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:p,failed:g,failed_message:y,matchingElement:m}})}function ym(t){var a,o,l;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=!!((o=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)!=null&&o.open_tpi_links_in_explore),r=i?qs(t.title_details):Ds(t.title_details),n=document.createElement("a");return n.dataset.playpilotPosterUrl=(l=t.title_details)==null?void 0:l.standing_poster,n.innerText=t.title,n.href=r,n.target=i?"":"_blank",n.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",n),{injectionElement:e,linkElement:n}}function Tl(t,e,i,r,n,a=-1){const o=u=>Array.from(u.querySelectorAll(`a, ${ui}`)).filter(v=>!v.innerText).length,l=document.createElement("div");l.innerHTML=t;const s=o(l),d=l.innerText;return a>0?l.innerHTML=Np(t,r.outerHTML,n,a):l.innerHTML=Op(t,e,r.outerHTML,n),Math.abs(l.innerText.length-d.length)>1||s!=o(l)?!1:(i.innerHTML=l.innerHTML,!0)}function bm(t,e){const{phrase_before:i,phrase_after:r}=e;if(i||r)return{phrase_before:i,phrase_after:r};if(Fn(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const a=t.innerText.indexOf(e.title),o=Fp(t,a,a+e.title.length);return{phrase_before:o.before,phrase_after:o.after}}function wm(){const t=Array.from(document.querySelectorAll(`${ui} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const r=getComputedStyle(i);for(const n of e)r.getPropertyValue(n)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${n}`)}}function xm(t){window.addEventListener("mousemove",Pg),window.addEventListener("click",i=>{var r,n;(n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)!=null&&n.open_tpi_links_in_explore||Jg(i,t)}),document.querySelectorAll(ui).forEach(i=>{const r=i.dataset.playpilotInjectionKey,n=t.find(a=>r===a.key);n&&(i.addEventListener("mouseenter",a=>{Cg()||Tg(a,n)}),i.addEventListener("mouseleave",zg))})}function Pl(){document.querySelectorAll(ui).forEach(e=>km(e.getAttribute(pi)||"")),om(),pm(),lc(),na(!1),ra(!1)}function km(t){var n;const e=document.querySelector(`[${pi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(a=>a.remove());const r=(n=e.querySelector("a"))==null?void 0:n.innerHTML;e.outerHTML=r||""}function _m(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ui)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function Sm({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Em(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function oc(t){return!t.inactive&&!t.removed&&!t.duplicate&&pc(t)&&sc(t)}function sc(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function Tm(t){return cc(t).filter(e=>e.in_text!==!1&&oc(e))}function Pm(t){return cc(t).filter(e=>e.after_article===!0&&oc(e))}function cc(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&dc(i,e)))}function zm(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const r=i.title.length-e.title.length;return r!==0?r:0})}function Cm(t,e,i){return i.some((r,n)=>e!==n&&r.manual&&dc(r,t))}function dc(t,e){return t.title===e.title&&Ii(t.sentence)===Ii(e.sentence)}function pc(t){return!!(t.type==="title"&&t.title_details||t.type==="participant"&&t.participant_details)}function zl(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Im(){const t=Ci();if(!t)throw new Error("No token was provided");try{return await await Xt(`/domains/config?api-token=${t}`)||null}catch{return null}}he(["click"]),he(["input"]),he(["click"]),he(["click"]),he(["click"]),he(["mousedown","touchstart"]),he(["mousedown","touchstart"]),he(["click"]),he(["click"]),he(["click"]),he(["click"]),he(["click"]),he(["click"]);function jm(t,e){ee(e,!0),tt(()=>{if(!$r())return;const r=new IntersectionObserver(n=>{n.forEach(a=>{if(!a.isIntersecting)return;r.unobserve(a.target);const o=a.target.getAttribute(pi),l=e.linkInjections.find(d=>d.key===o),s=l==null?void 0:l.title_details;!o||!l||!s||i(s)})});return e.linkInjections.forEach(n=>{n.matchingElement&&r.observe(n.matchingElement)}),()=>r.disconnect()});function i({genres:r,participants:n,providers:a,title:o}){ei(Ft.TitleInterest,{title:o,source:ji.Link}),r.slice(0,3).forEach(l=>{var s;ei(Ft.GenreInterest,{genre:(s=Bn.find(d=>d.slug===l))==null?void 0:s.name,source:ji.Link})}),n==null||n.slice(0,5).forEach(l=>{ei(Ft.ParticipantInterest,{participant:l.name,source:ji.Link})}),a==null||a.forEach(l=>{ei(Ft.ProviderInterest,{provider:l.name,source:ji.Link})})}te()}function Am(t,e){ee(e,!1);const i=Array.from(document.querySelectorAll(ui)),r=[],n=Date.now();let a=!1,o=null;tt(()=>{if(!Rn())return l(),()=>{var v;return(v=o==null?void 0:o.disconnect)==null?void 0:v.call(o)}});function l(){o=new IntersectionObserver(s),i.forEach(v=>{o.observe(v)})}function s(v){v.forEach(p=>{if(!p.isIntersecting)return;const m=p.target.getAttribute(pi);m&&r.push(m),o.unobserve(p.target)})}function d(){const{scrollHeight:v,scrollTop:p,clientHeight:m}=document.documentElement;return p/(v-m)*100}function u(){var p,m;if(a||document.visibilityState!=="hidden")return;a=!0;const v=Date.now();ce(se.UserLeft,null,{time_start:n,time_end:v,time_spent:v-n,existing_injections_count:i.length,shown_injections_count:r.length,fired_events:((m=(p=window.PlayPilotLinkInjections)==null?void 0:p.tracked_events)==null?void 0:m.map(g=>g.event))||[],scroll_percentage:d()})}$a(),xe("visibilitychange",Ie,u),te()}function Lm(t,e){ee(e,!0);const i=100;let r=1;n();function n(){if(window.PlayPilotLinkInjections.require_consent===!1){a();return}if(!window.__tcfapi){r<i&&setTimeout(n,100),r++;return}window.__tcfapi("addEventListener",2,(o,l)=>{if(!l)return;const{purpose:s,eventStatus:d}=o;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const u=v=>s.consents[v]===!0;Yp({ads:u(1),pixels:u(1)&&u(7),split_tests:u(9)&&u(10),tracking:u(7)&&u(8),affiliate:u(1)&&u(7)}),a()})}function a(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}te()}var Mm=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Dm=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),qm=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Rm=C('<button class="svelte-1tp7i1s"></button>'),Om=C("<small>You are using the beta version of TPI</small>"),Nm=C('<button class="svelte-1tp7i1s">Use beta script</button>'),Fm=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Hm=C("<option> </option>"),Bm=C('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function Vm(t,e){ee(e,!0);const i=["tpidebug","debugtpi"],r=[],n=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let a=Y(De(d())),o=Y(!1),l=null,s=Y(184);qn(()=>{l&&clearInterval(l)});function d(){var E,L,P,R,M,N;const b=window.PlayPilotLinkInjections,_=((E=b.evaluated_link_injections)==null?void 0:E.filter(O=>!O.failed))||[],k=((L=b.evaluated_link_injections)==null?void 0:L.filter(O=>O.failed))||[],I=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:b.domain_sid},{label:"Organization",data:b.organization_sid},{label:"HTML selector",data:b.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([O,T])=>({label:O,data:T})),[`Succesful injections (${_.length})`]:_.map(O=>({label:O.title,data:O.sentence})),[`Failed injections (${k.length})`]:k.map(O=>({label:O.title,data:`Reason: ${O.failed_message} | Sentence: ${O.sentence}`})),[`Fetched ads (${((P=b.ads)==null?void 0:P.length)||0})`]:(R=b.ads)==null?void 0:R.map(O=>({label:O.campaign_name,data:O})),[`Tracking events (${((M=b.tracked_events)==null?void 0:M.length)||0})`]:(N=b.tracked_events)==null?void 0:N.map(O=>({label:O.event,data:O.payload})),[`Visible pixels (${I.length})`]:I.map((O,T)=>({label:T+1,data:O.src}))}}function u(b){c(o)||(r.push(b.key),F(o,i.some(_=>r.slice(r.length-_.length,r.length).join("")===_),!0),l=setInterval(()=>F(a,d(),!0),200))}function v(b){window.PlayPilotLinkInjections.ads.unshift({campaign_format:b,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function p(b){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(en).forEach(({key:_,numberOfVariants:k})=>{const I=1/k;window.PlayPilotLinkInjections.split_test_identifiers[_]=Math.min(I*b,1)})}function m(){var k,I;const b=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!b)return;(I=(k=window.PlayPilotLinkInjections)==null?void 0:k.destroy)==null||I.call(k);const _=document.createElement("script");for(const E of b.attributes)_.setAttribute(E.name,E.value);_.getAttribute("onload")||_.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),_.src=b.src.replace("link-injection","link-injection@next"),b.insertAdjacentElement("afterend",_),b.remove()}var g=ge();xe("keydown",Ie,u);var h=Z(g);{var y=b=>{var _=Bm(),k=j(S(_),4);{var I=ve=>{var ne=Mm();w(ve,ne)},E=B(()=>{var ve,ne,ke;return!!((ve=window.PlayPilotLinkInjections.config)!=null&&ve.exclude_urls_pattern&&Zi().match((ke=(ne=window.PlayPilotLinkInjections)==null?void 0:ne.config)==null?void 0:ke.exclude_urls_pattern))});W(k,ve=>{c(E)&&ve(I)})}var L=j(k,2);Ce(L,17,()=>Object.entries(c(a)),je,(ve,ne)=>{var ke=B(()=>Oi(c(ne),2));let rt=()=>c(ke)[0],kt=()=>c(ke)[1];var ut=qm(),nt=S(ut),gi=S(nt),mi=j(nt,2);{var jr=qe=>{var re=ge(),Ee=Z(re);{var _e=Le=>{var vt=ge(),Km=Z(vt);Ce(Km,17,kt,je,(Zm,hc,c1,d1)=>{let Qm=()=>c(hc).label,Jm=()=>c(hc).data;var gc=Dm(),mc=S(gc),Xm=S(mc),$m=j(mc,2),e1=S($m);H(t1=>{Q(Xm,Qm()),Q(e1,t1)},[()=>JSON.stringify(Jm())]),w(Zm,gc)}),w(Le,vt)},at=B(()=>Array.isArray(kt()));W(Ee,Le=>{c(at)&&Le(_e)})}w(qe,re)},Qe=qe=>{var re=gt("No data");w(qe,re)};W(mi,qe=>{var re;(re=kt())!=null&&re.length?qe(jr):qe(Qe,-1)})}H(()=>Q(gi,rt())),w(ve,ut)});var P=j(L,4),R=j(P,2),M=j(R,6);Ce(M,16,()=>({length:4}),je,(ve,ne,ke)=>{var rt=Rm();rt.textContent=ke,ae("click",rt,()=>p(ke)),w(ve,rt)});var N=j(M,4),O=j(N,2),T=j(O,4),x=j(T,2);{var A=ve=>{var ne=Om();w(ve,ne)},q=ve=>{var ne=Nm();ae("click",ne,m),w(ve,ne)};W(x,ve=>{n?ve(A):ve(q,-1)})}var U=j(x,2);{var G=ve=>{var ne=Fm();ae("click",ne,()=>{$n(),window.PlayPilotLinkInjections.config.explore_use_router=!br(),Xn()}),w(ve,ne)},J=B(()=>!br());W(U,ve=>{c(J)&&ve(G)})}var V=j(U,4),K=j(S(V),2);up(K,window.PlayPilotLinkInjections.region);var X=j(V,2),pe=j(S(X),2);Ce(pe,21,()=>Object.entries(f),je,(ve,ne)=>{var ke=B(()=>Oi(c(ne),2));let rt=()=>c(ke)[0],kt=()=>c(ke)[1];var ut=Hm(),nt=S(ut),gi={};H(mi=>{ts(ut,mi),Q(nt,rt()),gi!==(gi=kt())&&(ut.value=(ut.__value=kt())??"")},[()=>kt()===gr()]),w(ve,ut)});var $=j(X,4),le=j(S($),2);ue(le,"min",80),ue(le,"max",240),ue(le,"step",8);var Pe=j(le,2),Fe=S(Pe),Be=j($,4);H(()=>Q(Fe,c(s))),ae("click",P,()=>v("card")),ae("click",R,()=>v("top_scroll")),ae("click",N,()=>console.log(Qr(window.PlayPilotLinkInjections.config))),ae("click",O,()=>console.log(Qr(window.PlayPilotLinkInjections.config).pageText)),ae("click",T,function(...ve){var ne;(ne=e.onrerender)==null||ne.apply(this,ve)}),ae("change",K,ve=>{$n(),window.PlayPilotLinkInjections.region=ve.target.value,Xn()}),ae("change",pe,ve=>{$n(),window.PlayPilotLinkInjections.language=ve.target.value,Xn()}),ae("input",le,()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${c(s)}px`)),Yr(le,()=>c(s),ve=>F(s,ve)),ae("click",Be,()=>F(o,!1)),w(b,_)};W(h,b=>{c(o)&&b(y)})}w(t,g),te()}he(["click","change","input"]);function Wm(t,e){ee(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),r=new ea,n=.7,a="[data-playpilot-poster]";let o=Y(0),l={},s=null;const d=B(()=>c(o)<Nt);qn(m);function u(){var k,I;if((I=(k=window.PlayPilotLinkInjections)==null?void 0:k.config)!=null&&I.disable_scroll_reveal_posters||!c(d))return;g();const h=window.innerHeight,y=new ea,b=h*n,_=h-b;for(const E of i){const{top:L}=E.getBoundingClientRect();L<b&&L>_&&y.add(E)}for(const E of y){if(r.has(E))continue;const L=E.dataset.playpilotPosterUrl;L in l&&l[L]!==E||(v(E,L),r.add(E),l[L]=E)}}function v(h,y){const b=document.createElement("img");b.classList.add("playpilot-floating-poster"),b.dataset.playpilotPoster="",b.src=y,b.alt="",b.onload=()=>b.classList.add("loaded"),h.insertAdjacentElement("afterbegin",b)}function p(h){const y=h.querySelector(a);y&&(y.classList.add("animating-out"),setTimeout(()=>y.remove(),500))}function m(){for(const h of Array.from(document.querySelectorAll(a)))h.remove()}function g(){s&&clearTimeout(s),s=setTimeout(()=>{for(const h of r)p(h),r.delete(h),l={}},1e3)}xe("scroll",Ie,u),Kr("innerWidth",h=>F(o,h,!0)),te()}var Um=C("<!> <!>",1),Gm=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!> <!>',1);function Ym(t,e){ee(e,!0);let i=Y(null),r=Y(De(Rn()));cs();let n=Y(!1),a=Y(!0),o=Y(!0),l=Y(De([]));const s=B(()=>c(i)||{}),d=B(()=>ma(c(s).ai_injections,()=>[],!0)),u=B(()=>ma(c(s).manual_injections,()=>[],!0)),v=m();Ge(()=>{c(r)&&!c(a)&&g()}),Xn(),qn(Pl);async function p(){Hn()||(await v,$p(),ce(se.ArticlePageView),!(!c(d).length&&!c(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await _s())))}async function m(){var T;F(a,!0);try{c(r)&&F(n,await ss({throwError:!0}),!0)}catch{ce(se.AuthFailed)}try{const x=window.PlayPilotLinkInjections.config||await Im()||{};if(window.PlayPilotLinkInjections.config=x,x!=null&&x.custom_style&&y(x.custom_style||""),x!=null&&x.explore_navigation_selector&&_h(),x!=null&&x.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),x!=null&&x.domain_sid&&ks({organizationSid:x.organization_sid,domainSid:x.domain_sid}),F(o,Ap(x),!0),c(o))return;x!=null&&x.html_selector&&(window.PlayPilotLinkInjections.selector=x==null?void 0:x.html_selector)}catch(x){ce(se.FetchingConfigFailed),console.error("TPI Config failed to fetch",x);return}try{if(await(async x=>{var A=Oi(x,1);F(i,A[0],!0)})(await Promise.all([await(window.PlayPilotLinkInjections.initial_link_injections_promise||fs({maxTries:1,runAiWhenRelevant:!Hn()})),await mr()])),F(a,!1),!c(i)||(T=window.PlayPilotLinkInjections.config)!=null&&T.disable_public_injections&&!(c(r)&&c(n)))return;if(ks({organizationSid:c(i).organization_sid,domainSid:c(i).domain_sid}),!c(i).ai_running||!c(i).ai_enabled){h({aiInjections:c(d),manualInjections:c(u)});return}if(!c(r)||Hn())return;F(i,await fs({requireCompletedResult:!0,onpoll:x=>F(i,x,!0)}),!0),h({aiInjections:c(d),manualInjections:c(u)})}catch(x){console.error(x),ce(se.InjectionError,null,{message:x.message})}}function g(){h(Em(c(l)))}function h(T={aiInjections:c(d),manualInjections:c(u)}){const{elements:x}=Qr(),A=mm(x,T);JSON.stringify(A)!==JSON.stringify(c(l))&&(F(l,A,!0),window.PlayPilotLinkInjections.evaluated_link_injections=A),c(r)||b(A)}function y(T){const x="playpilot-custom-style",A=document.getElementById(x),q=A||document.createElement("style");q.textContent=`body { ${T} }`,q.id=x,A||document.body.appendChild(q)}function b(T){const x=T.filter(q=>!q.failed),A=T.filter(q=>q.failed);if(x.length&&ce(se.ArticleInjected,null,{manual:x.filter(q=>q.manual).length,ai:x.filter(q=>!q.manual).length}),A.length){const q=U=>A.filter(({failed_message:G})=>G==null?void 0:G.includes(U)).length;ce(se.FailedInjectionsCount,null,{total:A.length,sentence_not_found:q("sentence was not found"),already_linked:q("already inside of a link"),broken_html:q("broken HTML"),duplicate:q("duplicate"),unknown:q("unknown reasons")})}}var _=Gm(),k=Z(_),I=S(k);W(I,T=>{});var E=j(I,2);Vm(E,{onrerender:g});var L=j(k,2);{var P=T=>{hl(T,{get pixels(){return c(i).pixels}})};W(L,T=>{var x,A;(A=(x=c(i))==null?void 0:x.pixels)!=null&&A.length&&T(P)})}var R=j(L,2);{var M=T=>{jm(T,{get linkInjections(){return c(l)}})};W(R,T=>{c(l).length&&T(M)})}var N=j(R,2);Wr(N,()=>c(l),T=>{var x=Um(),A=Z(x);Am(A,{});var q=j(A,2);Wm(q,{}),w(T,x)});var O=j(N,2);Lm(O,{onchange:p}),w(t,_),te()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Ct(Ym,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),Pl()}}})();
10
+ `}}function Wn(t){return t?t.replace("/src/img",""):null}function Ls(t,e=null){return t!=null&&t.length?`${xp}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var ou=C('<img class="svelte-p6g2a"/>');function Un(t,e){te(e,!0);const i=D(e,"width",3,96),r=D(e,"height",3,144),n=D(e,"lazy",3,!0),a=D(e,"onload",3,()=>null);var o=ou();H(l=>{ue(o,"loading",n()?"lazy":null),ue(o,"src",l),ue(o,"alt",`Movie poster for '${e.title.title??""}'`),ue(o,"width",i()),ue(o,"height",r())},[()=>Wn(e.title.standing_poster)]),xe("error",o,({target:l})=>l.src=_p),xe("load",o,function(...l){var s;(s=a())==null||s.apply(this,l)}),w(t,o),ie()}var su=et('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Gn(t,e){const i=D(e,"size",3,16);var r=su();H(()=>{ue(r,"width",i()),ue(r,"height",i())}),w(t,r)}var cu=C('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function du(t,e){const i=D(e,"embeddable_url",3,"");var r=cu(),n=S(r);ul(n,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var a=j(n,2),o=j(a,2),l=S(o);Gn(l,{size:24}),ae("click",a,function(...s){var d;(d=e.onclose)==null||d.apply(this,s)}),ae("click",o,function(...s){var d;(d=e.onclose)==null||d.apply(this,s)}),Oe(3,r,()=>si,()=>({duration:100})),w(t,r)}he(["click"]);const pu="https://youtube-availability.playpilot.workers.dev";async function Ms(t){var i,r,n;const e=(i=await mr())==null?void 0:i.toUpperCase();if(!e)return!0;try{const a=await fetch(`${pu}/?video_id=${t}`);if(!a.ok)throw new Error("Response was not ok");const o=await a.json();return!((r=o.blocked)!=null&&r[e]||!o.blocked&&o.allowed&&!((n=o.allowed)!=null&&n.includes(e)))}catch{return!1}}let Yn={};function uu(t){const e=zl(),i={onclose:vu,embeddable_url:t.embeddable_url||""};Yn=Ct(du,{target:e,props:i})}function vu(){Yn&&(Ki(Yn,{outro:!0}),Yn=null)}function pl(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function fu(t,e=3){let i=0,r=null;for(;i<e&&!r;){const n=t[i],a=(n==null?void 0:n.embeddable_url)&&pl(n.embeddable_url);try{a&&await Ms(a)&&(r=n)}catch{}i++}return r}var hu=et('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),gu=et('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),mu=et('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function yu(t,e){const i=D(e,"muted",3,!1);var r=mu(),n=S(r);{var a=l=>{var s=hu();w(l,s)},o=l=>{var s=gu();w(l,s)};W(n,l=>{i()?l(a):l(o,-1)})}w(t,r)}var bu=C('<button class="mute svelte-1ivh34t" aria-label="Mute"><!></button>'),wu=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function ul(t,e){var P;te(e,!0);const i=D(e,"embeddable_url",3,""),r=D(e,"controls",19,()=>[]),n=D(e,"muted",3,!1),a=D(e,"loop",3,!1),o=D(e,"captions",3,!1),l=D(e,"autoplay",3,!0),s=D(e,"showMuteControls",3,!1),d=D(e,"fallbackStartTime",3,0),u=B(()=>pl(i())),v=B(()=>{var R,M;return(((M=(R=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:R.video_playtimes)==null?void 0:M[c(u)||""])||d()+1)-1}),p=((P=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:P.replace("#",""))||"fa548a";let m=Y(null),g=Y(De(n()));tt(()=>{if(!c(u))return;window.PlayPilotLinkInjections.video_playtimes||(window.PlayPilotLinkInjections.video_playtimes={});let R=c(v);const M=setInterval(()=>{R++,window.PlayPilotLinkInjections.video_playtimes[c(u)]=R},1e3);return()=>clearInterval(M)});function h(R=!c(g)){var M,N;c(g)!=R&&((N=(M=c(m))==null?void 0:M.contentWindow)==null||N.postMessage("mute","*")),F(g,R,!0)}function y(R){var M,N;R.detail===i()&&((N=(M=c(m))==null?void 0:M.contentWindow)==null||N.postMessage("play","*"))}function b(R){var M,N;R.detail===i()&&((N=(M=c(m))==null?void 0:M.contentWindow)==null||N.postMessage("pause","*"))}var _={toggleMute:h,play:y,pause:b},k=ge();xe("playembed",Ie,y),xe("pauseembed",Ie,b);var I=Z(k);{var E=R=>{var M=wu(),N=Z(M);Ze(N,x=>F(m,x),()=>c(m));var O=j(N,2);{var T=x=>{var A=bu(),q=S(A);yu(q,{get muted(){return c(g)}}),ae("click",A,()=>h()),w(x,A)};W(O,x=>{s()&&x(T)})}H(x=>ue(N,"src",`https://video.playpilot.net/?video_id=${c(u)??""}&color=${p??""}&muted=${n()??""}&loop=${a()??""}&captions=${o()??""}&controls=${x??""}&start_time=${c(v)??""}&autoplay=${l()??""}&playsinline=true`),[()=>r().join(",")]),w(R,M)},L=R=>{var M=gt("Something went wrong");w(R,M)};W(I,R=>{c(u)?R(E):R(L,-1)})}return w(t,k),ie(_)}he(["click"]);var xu=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function vl(t,e){te(e,!0);let i=D(e,"gap",3,"0"),r=D(e,"fill",3,!0),n=D(e,"vertical",3,!1),a=D(e,"transitionDuration",3,300),o=D(e,"threshold",3,30),l=D(e,"moveThreshold",3,0),s=D(e,"currentIndex",15,0),d=D(e,"shown",31,()=>De([])),u=D(e,"sliderWidth",15,0),v=D(e,"sliderHeight",15,0),p=D(e,"currentScrollPosition",15,0),m=D(e,"maxWidth",15,0),g=D(e,"maxHeight",15,0),h=D(e,"reachedEnd",15,!1),y=D(e,"distanceToEnd",15,0),b=D(e,"passedThreshold",15,!1),_=D(e,"passedMoveThreshold",15,!1),k=D(e,"allowWheel",3,!1),I=D(e,"end",3,()=>null),E=D(e,"change",3,re=>null),L=D(e,"onend",19,I),P=D(e,"onchange",19,E),R=D(e,"onresize",3,()=>null),M=Y(!1),N=Y(!1),O=0,T=0,x=Y(void 0),A=Y(void 0),q=null,U=null;Ge(()=>{c(A)&&Fe(),c(A)&&y((n()?g():m())-p()-(n()?v():u()))}),tt(()=>(ke(),()=>q==null?void 0:q.disconnect()));function G(re){const Ee=c(A).children.length,_e=Math.max(0,Math.min(re,Ee-1));le({setIndex:_e}),Fe()}function J(){F(N,!0),G(s()),requestAnimationFrame(()=>F(N,!1))}function V(re){rt(re.target)&&(re.preventDefault(),O=Be(re),F(M,!0))}function K(){if(c(M)){if(!b())le({setIndex:s()});else{const re=p()-T,Ee=re>0?1:-1;re!=0&&le({direction:Ee})}F(M,!1),b(!1)}}function X(re){if(!c(M))return;const Ee=Be(re),_e=T+(O-Ee),at=O-Ee;_(Math.abs(at)>l()),b(Math.abs(p()-T)>o()),_()&&(Pe(_e-l()*(at>0?1:-1)),Fe())}function pe(re){if(!k())return;const{deltaX:Ee,deltaY:_e}=re;if(Math.abs(Ee)<Math.abs(_e))return;re.preventDefault();const at=20,Le=n()?_e:Ee,vt=p()+Le*at*.02;Pe(vt),Fe(),U&&clearTimeout(U),U=setTimeout(()=>{le({direction:Le>0?1:-1})},100)}function ee(re){rt(document.activeElement)&&(re.key=="ArrowLeft"&&G(s()-1),re.key=="ArrowRight"&&G(s()+1))}function le({setIndex:re=-1,direction:Ee=1}={}){const _e=ve(),at=s();s(0);let Le;for(Le=0;Le<_e.length;Le++)if(re!=-1){if(Le>=re)break}else if(Ee>0&&_e[Le]>p()||Ee<0&&_e[Le+1]>p())break;s(Math.min(Le,ne().length-1)),Pe(_e[s()],!0),T=p(),P()&&s()!=at&&P()(s())}function Pe(re,Ee=!1){p(re);const _e=n()?g():m(),at=n()?v():u(),Le=_e-at,vt=n()?"clientHeight":"clientWidth";h(p()>=Le),h()&&(L()&&L()(),r()&&Ee&&p(c(A)[vt]<at?0:Le))}function Fe(){const re=ve();Array.from(re).forEach((Ee,_e)=>{p()+u()<Ee||d().includes(_e)||d([...d(),_e])})}function Be(re){var _e,at;const Ee=n()?"pageY":"pageX";return re[Ee]??((at=(_e=re.touches)==null?void 0:_e[0])==null?void 0:at[Ee])}function ve(){return ne().map(re=>n()?re.offsetTop:re.offsetLeft)}function ne(){return Array.from(c(A).children).filter(re=>re instanceof HTMLElement).filter(re=>re.src!="about:blank")}function ke(){q=new ResizeObserver(re=>{for(const Ee of re){const _e=Array.isArray(Ee.contentBoxSize)?Ee.contentBoxSize[0]:Ee.contentBoxSize;m(_e.inlineSize),g(_e.blockSize)}R()()}),q.observe(c(A))}function rt(re){return re===c(x)||(re==null?void 0:re.closest(".slider"))===c(x)}var kt={setIndex:G,reposition:J},ut=xu();xe("mousedown",Ie,V),xe("mouseup",Ie,K),xe("mousemove",Ie,X),xe("touchstart",Ie,V,void 0,!0),xe("touchend",Ie,K),xe("touchmove",Ie,X,void 0,!0),xe("keydown",Ie,ee),xe("resize",Ie,J);var nt=Z(ut);let gi;var mi=S(nt);let jr;var Qe=S(mi);We(Qe,()=>e.children??ft,()=>({sliderWidth:u(),sliderHeight:v(),shown:d(),currentIndex:s(),setIndex:G,currentScrollPosition:p(),maxWidth:m(),reachedEnd:h(),distanceToEnd:y()})),Ze(mi,re=>F(A,re),()=>c(A)),Ze(nt,re=>F(x,re),()=>c(x));var qe=j(nt,2);return We(qe,()=>e.controls??ft,()=>({sliderWidth:u(),sliderHeight:v(),shown:d(),currentIndex:s(),setIndex:G,currentScrollPosition:p(),maxWidth:m(),reachedEnd:h(),distanceToEnd:y()})),H(re=>{gi=ye(nt,1,"slider svelte-1gs8ha8",null,gi,{dragging:c(M),"passed-threshold":b(),vertical:n()}),jr=Ye(mi,"",jr,re)},[()=>({transform:`translate${n()?"Y":"X"}(${p()*-1}px)`,"transition-duration":`${(c(M)||c(N)?0:a())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),xe("wheel",nt,pe),It(nt,"clientWidth",u),It(nt,"clientHeight",v),w(t,ut),ie(kt)}var ku=et("<title> </title>"),_u=et('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function yt(t,e){const i=D(e,"direction",3,"right"),r=D(e,"title",3,""),n=D(e,"size",3,16);var a=_u(),o=S(a);{var l=s=>{var d=ku(),u=S(d);H(()=>Q(u,r())),w(s,d)};W(o,s=>{r()&&s(l)})}H(()=>{ye(a,0,i(),"svelte-1m6nwwy"),ue(a,"width",`${n()??""}px`),ue(a,"height",`${n()??""}px`)}),w(t,a)}function Te(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Su=C('<div class="heading svelte-1ayf7b5"> </div>'),Eu=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Tu=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Pu=C("<!> <!>",1),zu=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function Kn(t,e){te(e,!0);let i=D(e,"heading",3,""),r=D(e,"onchange",3,()=>null),n=D(e,"onresize",3,()=>null),a=D(e,"slider",15);var o=zu(),l=Z(o);{var s=v=>{var p=Su(),m=S(p);mt(p,(g,h)=>Te==null?void 0:Te(g,h),()=>2),H(()=>Q(m,i())),w(v,p)};W(l,v=>{i()&&v(s)})}var d=j(l,2),u=S(d);Ze(vl(u,{get onchange(){return r()},get onresize(){return n()},allowWheel:!0,controls:(p,m)=>{let g=()=>(m==null?void 0:m()).setIndex,h=()=>(m==null?void 0:m()).currentIndex,y=()=>(m==null?void 0:m()).reachedEnd;var b=Pu(),_=Z(b);{var k=L=>{var P=Eu(),R=S(P);yt(R,{direction:"left",title:"Previous"}),ae("click",P,()=>g()(h()-1)),w(L,P)};W(_,L=>{h()>0&&L(k)})}var I=j(_,2);{var E=L=>{var P=Tu(),R=S(P);yt(R,{title:"Next"}),ae("click",P,()=>g()(h()+1)),w(L,P)};W(I,L=>{y()||L(E)})}w(p,b)},children:(p,m)=>{var g=ge(),h=Z(g);We(h,()=>e.children),w(p,g)},$$slots:{controls:!0,default:!0}}),p=>a(p),()=>a()),w(t,o),ie()}he(["click"]);function Ds(t){return`${bp}/${t.type}/${t.slug}/`}function qs(t){var e,i;return((i=(e=window.PlayPilotLinkInjections)==null?void 0:e.config)==null?void 0:i.explore_navigation_path)+`?route=modal&sid=${t.sid}`}var Cu=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),Iu=C('<div class="video svelte-12ph9f6"><div class="video-overlay svelte-12ph9f6" title=""></div> <!></div>'),ju=C('<div class="poster svelte-12ph9f6"><!></div>'),Au=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),Lu=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <span class="heading svelte-12ph9f6" data-testid="heading"> </span> <!></div>'),Mu=C('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),Du=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),qu=C('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),Ru=C("<div><!></div>");function Zn(t,e){te(e,!0);let i=D(e,"minimumLength",3,1),r=D(e,"heading",3,""),n=D(e,"size",3,"small"),a=D(e,"aside",3,!1),o=D(e,"expandable",3,!1),l=D(e,"navigateToExplore",3,!1),s=D(e,"expandedTitle",15,null),d=D(e,"expandedRailKey",15,null),u=D(e,"onclick",3,()=>null),v=D(e,"onexpand",3,()=>null);const p=On(),g=Dr("scope")==="popover"?Dr("title"):null;let h=Y(null),y=Y(null),b=Y(null),_=!1;tt(()=>{o()&&L()});function k(T,x,A){var U,G,J,V,K;T==null||T.preventDefault();const q=x[A];if(o()&&!P(q)){const X=(U=c(h))==null?void 0:U.querySelectorAll(".title")[A],le=(((G=c(h))==null?void 0:G.getBoundingClientRect().right)||0)-X.getBoundingClientRect().right>X.clientWidth*2;_=!0,setTimeout(()=>_=!1,500),n()==="flexible"&&!le?(J=c(y))==null||J.setIndex(A-2):n()==="huge"&&!le&&((V=c(y))==null||V.setIndex(A)),E(q),T&&v()(q);return}if(T){if((K=c(b))==null||K.toggleMute(!0),u()(q),l()){window.location.href=qs(q);return}br()?di({event:T,type:"titles-rail",data:x,returnToTitle:g,props:{initialIndex:A}}):di({event:T,data:q,returnToTitle:g})}}async function I(){const T=await e.titles,x=await fu(T);x&&(s()||d()&&d()!==p||E(x))}function E(T){d(p),s(T)}function L(){d()===p||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(q=>q.getBoundingClientRect().top>=0).sort((q,U)=>q.getBoundingClientRect().top-U.getBoundingClientRect().top)[0]!==c(h)||(s(null),d(null),I())}function P(T){var x;return d()===p&&T.sid===((x=s())==null?void 0:x.sid)}function R(T,x){o()&&(_||setTimeout(()=>k(null,T,x),250))}var M=Ru();xe("scroll",Ie,L);let N;var O=S(M);Pi(O,()=>e.titles,T=>{Kn(T,{get heading(){return r()},children:(x,A)=>{var q=ge(),U=Z(q);Ce(U,16,()=>({length:12}),je,(G,J)=>{var V=qu(),K=j(S(V),4);{var X=pe=>{var ee=Du(),le=S(ee);Ce(le,20,()=>({length:3}),je,(Pe,Fe)=>{var Be=Mu();w(Pe,Be)}),w(pe,ee)};W(K,pe=>{a()&&pe(X)})}w(G,V)}),w(x,q)},$$slots:{default:!0}})},(T,x)=>{var A=ge(),q=Z(A);{var U=G=>{Kn(G,{get heading(){return r()},onchange:J=>R(c(x),J),onresize:()=>{var J;return(J=c(y))==null?void 0:J.reposition()},get slider(){return c(y)},set slider(J){F(y,J,!0)},children:(J,V)=>{var K=ge(),X=Z(K);Ce(X,17,()=>c(x),je,(pe,ee,le,Pe)=>{const Fe=B(()=>P(c(ee))),Be=B(()=>Qe=>k(Qe,c(x),le));var ve=Lu();let ne;var ke=S(ve),rt=S(ke);{var kt=Qe=>{var qe=Iu(),re=S(qe),Ee=j(re,2);{var _e=Le=>{Ze(ul(Le,{get embeddable_url(){return c(ee).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),vt=>F(b,vt,!0),()=>c(b))},at=Le=>{var vt=Cu();H(()=>ue(vt,"src",c(ee).medium_poster)),w(Le,vt)};W(Ee,Le=>{c(ee).embeddable_url?Le(_e):Le(at,-1)})}ae("click",re,function(...Le){var vt;(vt=c(Be))==null||vt.apply(this,Le)}),Oe(2,qe,()=>si,()=>({delay:200,duration:200})),w(Qe,qe)},ut=Qe=>{var qe=ju(),re=S(qe);Un(re,{get title(){return c(ee)},width:96,height:144}),ae("click",qe,function(...Ee){var _e;(_e=c(Be))==null||_e.apply(this,Ee)}),w(Qe,qe)};W(rt,Qe=>{c(Fe)?Qe(kt):Qe(ut,-1)})}var nt=j(ke,2),gi=S(nt),mi=j(nt,2);{var jr=Qe=>{var qe=Au(),re=S(qe);H(()=>Q(re,c(ee).description)),ae("click",qe,function(...Ee){var _e;(_e=c(Be))==null||_e.apply(this,Ee)}),w(Qe,qe)};W(mi,Qe=>{a()&&Qe(jr)})}H(()=>{ne=ye(ve,1,"title svelte-12ph9f6",null,ne,{expanded:c(Fe)}),Q(gi,c(ee).title)}),ae("click",nt,function(...Qe){var qe;(qe=c(Be))==null||qe.apply(this,Qe)}),w(pe,ve)}),w(J,K)},$$slots:{default:!0}})};W(q,G=>{var J;((J=c(x))==null?void 0:J.length)>=i()&&G(U)})}w(T,A)}),Ze(M,T=>F(h,T),()=>c(h)),H(()=>{N=ye(M,1,`titles ${n()??""}`,"svelte-12ph9f6",N,{"with-aside":a()}),ue(M,"data-role",o()?"expandable-rail":null)}),w(t,M),ie()}he(["click"]);var Ou=C('<div class="rail svelte-1b834ry"><!></div>'),Nu=C('<div class="rail svelte-1b834ry"><!></div>'),Fu=C('<div data-testid="explore-home"></div> <!>',1);function Rs(t,e){te(e,!0);let i=Y(null),r=Y(null),n=Y(De(window.innerWidth));async function a(){return await Xt("/streaming-guide/rails",{baseUrl:"https://partner.playpilot.net/api"})}async function o(d={}){var u;try{return(u=await Vn(d))==null?void 0:u.results}catch(v){throw console.log(v),ce(se.ExploreHomeRailError,null,{message:v.message||v.status.toString()||"",params:d}),new Error(v)}}var l=Fu();xe("scroll",Ie,onscroll);var s=j(Z(l),2);Pi(s,a,d=>{var u=ge(),v=Z(u);Ce(v,16,()=>({length:3}),je,(p,m)=>{var g=Nu(),h=S(g);{let y=B(()=>c(n)>=Nt?"flexible":"huge");Zn(h,{titles:new Promise(b=>setTimeout(b,1e4)),get size(){return c(y)}})}w(p,g)}),w(d,u)},(d,u)=>{var v=ge(),p=Z(v);Ce(p,17,()=>c(u),je,(m,g)=>{let h=()=>c(g).headings,y=()=>c(g).params,b=()=>c(g).properties;const _=B(()=>h()[gr()]);var k=Ou(),I=S(k);{let E=B(()=>o(y())),L=B(()=>c(n)>=Nt?b().size||"flexible":"huge");Zn(I,Zr({get heading(){return c(_)},get titles(){return c(E)},get size(){return c(L)},minimumLength:7},b,{onclick:()=>ce(se.ExploreTitleRailModalView,null,{rail:h()}),onexpand:P=>ce(se.ExploreTitleRailExpandClick,P,{rail:h()}),get expandedTitle(){return c(i)},set expandedTitle(P){F(i,P,!0)},get expandedRailKey(){return c(r)},set expandedRailKey(P){F(r,P,!0)}}))}w(m,k)}),w(d,v)},d=>{var u=gt();H(v=>Q(u,v),[()=>$("An Error Occurred")]),w(d,u)}),Kr("innerWidth",d=>F(n,d,!0)),w(t,l),ie()}var Hu=C("<button><!></button>");function ci(t,e){const i=D(e,"variant",3,"filled"),r=D(e,"size",3,"base"),n=D(e,"label",3,null),a=D(e,"active",3,!1);var o=Hu();let l;var s=S(o);We(s,()=>e.children??ft),H(()=>{l=ye(o,1,`button ${i()??""} ${r()??""}`,"svelte-5bqh67",l,{active:a()}),ue(o,"aria-label",n())}),ae("click",o,function(...d){var u;(u=e.onclick)==null||u.apply(this,d)}),w(t,o)}he(["click"]);var Bu=et('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function fl(t,e){const i=D(e,"size",3,14);var r=Bu();H(()=>{ue(r,"width",i()),ue(r,"height",i())}),w(t,r)}function Os(t){const e=t.filter(r=>!!r.logo_url);let i=[];for(const r of e){let n=r;const a=i.find(s=>s.name===n.name),o=a==null?void 0:a.extra_info.category,l=n.extra_info.category;(o==="RENT"&&l==="BUY"||o==="BUY"&&l==="RENT")&&(i=i.filter(s=>s.name!==n.name),n={...n,extra_info:{...n.extra_info,category:"TVOD"}}),i.push(n)}return i}var Vu=C('<img alt="" data-playpilot-pixel="" class="svelte-ico4xd"/>');function hl(t,e){te(e,!0);let i=Y(De(Math.random()));var r=ge();xe("updateconsent",Ie,()=>F(i,Math.random(),!0));var n=Z(r);Wr(n,()=>c(i),a=>{var o=ge(),l=Z(o);{var s=u=>{var v=ge(),p=Z(v);Ce(p,17,()=>e.pixels,je,(m,g)=>{var h=Vu();H(()=>ue(h,"src",c(g))),w(m,h)}),w(u,v)},d=B(()=>$t("pixels"));W(l,u=>{c(d)&&u(s)})}w(a,o)}),w(t,r),ie()}var Wu=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Uu(t,e){te(e,!0);const i=D(e,"size",3,30),r=D(e,"onclick",3,()=>null),n=B(()=>e.playlink.name),a=B(()=>e.playlink.url),o=B(()=>e.playlink.logo_url),l=B(()=>e.playlink.pixels);var s=Wu();let d;var u=S(s),v=j(u,2);{var p=m=>{hl(m,{get pixels(){return c(l)}})};W(v,m=>{var g;(g=c(l))!=null&&g.length&&m(p)})}H(m=>{ue(s,"href",c(a)),ue(s,"data-playlink",c(n)),d=Ye(s,"",d,{"--size":`${i()??""}px`}),ue(u,"src",m),ue(u,"alt",c(n)),ue(u,"height",i()),ue(u,"width",i())},[()=>Wn(c(o))]),ae("click",s,function(...m){var g;(g=r())==null||g.apply(this,m)}),w(t,s),ie()}he(["click"]);var Gu=C('<button class="button more svelte-1plv45z"> </button>'),Yu=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Ku=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function gl(t,e){te(e,!0);const i=D(e,"size",3,30);let r=Y(3);const n=Os(e.playlinks),a=B(()=>n.slice(0,c(r)));function o(g){g.stopPropagation()}function l(){F(r,n.length,!0)}var s=Ku(),d=S(s);Ce(d,17,()=>c(a),je,(g,h)=>{Uu(g,{get playlink(){return c(h)},onclick:o,get size(){return i()}})});var u=j(d,2);{var v=g=>{var h=Gu(),y=S(h);H(()=>Q(y,`+${n.length-c(r)}`)),ae("click",h,l),w(g,h)};W(u,g=>{n.length>c(r)&&g(v)})}var p=j(u,2);{var m=g=>{var h=Yu();w(g,h)};W(p,g=>{n.length||g(m)})}w(t,s),ie()}he(["click"]);var Zu=C("<div>Series</div>"),Qu=C("<div> </div>"),Ju=C('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Xu(t,e){te(e,!0);const i=D(e,"onclick",3,()=>null);var r=Ju(),n=S(r),a=S(n);Un(a,{get title(){return e.title},width:120,height:213,lazy:!0});var o=j(a,2),l=S(o),s=S(l);fl(s,{size:12});var d=j(s),u=j(l,2);{var v=_=>{var k=Zu();w(_,k)};W(u,_=>{e.title.type==="series"&&_(v)})}var p=j(u,2);{var m=_=>{var k=Qu(),I=S(k);H(()=>Q(I,`${e.title.length??""} min`)),w(_,k)};W(p,_=>{e.title.length&&_(m)})}var g=j(n,2),h=S(g),y=S(h),b=j(h,2);gl(b,{get playlinks(){return e.title.providers},size:20}),H(()=>{Q(d,` ${(e.title.imdb_score||"-")??""}`),Q(y,e.title.title)}),ae("click",r,function(..._){var k;(k=i())==null||k.apply(this,_)}),w(t,r),ie()}he(["click"]),sd();var $u=C('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function ev(t){var e=$u(),i=j(S(e),2),r=S(i);Ye(r,"",{},{width:"60%"}),w(t,e)}var tv=C('<div class="svelte-pkkpyl"> </div>'),iv=C("<div> </div>"),rv=C('<button data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <!> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Ns(t,e){var T;te(e,!0);const i=D(e,"compact",3,!1),r=D(e,"onclick",3,()=>null),n=!!((T=window.PlayPilotLinkInjections)!=null&&T.no_affiliate);var a=rv();let o;var l=S(a),s=S(l);Un(s,{get title(){return e.title},width:30,height:43,lazy:!0});var d=j(l,2),u=S(d),v=S(u),p=j(u,2),m=S(p),g=S(m);fl(g,{size:11});var h=j(g),y=j(m,2),b=S(y),_=j(y,2),k=S(_),I=j(_,2);{var E=x=>{var A=tv(),q=S(A);H(()=>Q(q,`${e.title.length??""} min`)),w(x,A)};W(I,x=>{e.title.length&&x(E)})}var L=j(p,2);{var P=x=>{var A=iv();let q;var U=S(A);H(()=>{q=ye(A,1,"description svelte-pkkpyl",null,q,{large:n}),Q(U,e.title.description)}),w(x,A)};W(L,x=>{i()||x(P)})}var R=j(L,2);{var M=x=>{{let A=B(()=>i()?24:30);gl(x,{get playlinks(){return e.title.providers},get size(){return c(A)}})}};W(R,x=>{n||x(M)})}var N=j(d,2),O=S(N);yt(O,{}),H(x=>{o=ye(a,1,"title svelte-pkkpyl",null,o,{compact:i()}),Q(v,e.title.title),Q(h,` ${(e.title.imdb_score||"-")??""}`),Q(b,e.title.year),Q(k,x)},[()=>$(`Type: ${e.title.type}`)]),ae("click",a,function(...x){var A;(A=r())==null||A.apply(this,x)}),w(t,a),ie()}he(["click"]);var nv=C('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function av(t){var e=nv(),i=j(S(e),2),r=S(i);Ye(r,"",{},{width:"40%"});var n=j(r,2);Ye(n,"",{},{width:"60%"});var a=j(n,2);Ye(a,"",{},{width:"80%"}),w(t,e)}var lv=C(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function ov(t){var e=lv();w(t,e)}var sv=C("<div><!></div>"),cv=C("<!> <!>",1),dv=C("<p>Something went wrong</p>"),pv=C('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function uv(t,e){te(e,!0);const i=D(e,"searchQuery",3,""),r=D(e,"filter",19,()=>({}));let n=1,a=Y(De([])),o=null,l=0,s=JSON.stringify(r())+i(),d=Y(De(h())),u=Y(0);const v=B(()=>c(u)>500),p=B(()=>c(u)>1400?8:c(u)>900?6:c(u)>600?4:3),m=B(()=>c(v)?Xu:Ns),g=B(()=>c(v)?ev:av);Ge(()=>{(i()||l!=0)&&y(i())}),Ge(()=>{r()&&b()}),qn(()=>{_()});async function h(){l+=1;const A=l,q={page_size:24,page:n};i()&&(q.search=i()),Object.entries(r()).forEach(([U,{type:G,value:J}])=>{if(G==="string")q[U]=J;else if(G==="array")q[U]=J.join(",");else if(G==="range"){const[V,K]=J;q[U+"_min"]=V,q[U+"_max"]=K}});try{const U=await Vn(q)||{next:null,previous:null,results:[]};return A===l&&F(a,[...c(a),...U.results],!0),U}catch(U){throw console.log(U.status),ce(se.ExploreResultsError,null,{message:U.message||U.status.toString()||"",params:q}),new Error(U)}}async function y(A){L()&&(o&&clearTimeout(o),o=setTimeout(()=>{k(),F(d,h(),!0),A&&(ce(se.ExploreSearch,null,{query:A}),$t("pixels")&&ei(Ft.SearchQuery,{query:A}))},100))}function b(){L()&&(k(),F(d,h(),!0))}function _(){for(const A of Object.keys(r()))delete r()[A]}function k(){n=1,F(a,[],!0)}function I(){n++,F(d,h(),!0),ce(se.ExploreShowMore,null,{page:n})}function E(A,q){di({event:A,data:q}),ce(se.ExploreTitleClick,q)}function L(){const A=JSON.stringify(r())+i();return A===s?!1:(s=A,!0)}var P=pv(),R=Z(P);let M,N;var O=S(R);Ce(O,17,()=>c(a),je,(A,q)=>{var U=ge(),G=Z(U);Wr(G,()=>c(q).sid,J=>{var V=ge(),K=Z(V);jn(K,()=>c(m),(X,pe)=>{pe(X,{get title(){return c(q)},onclick:ee=>E(ee,c(q))})}),w(J,V)}),w(A,U)});var T=j(O,2);Pi(T,()=>c(d),A=>{var q=ge(),U=Z(q);Ce(U,16,()=>({length:24}),je,(G,J)=>{var V=ge(),K=Z(V);jn(K,()=>c(g),(X,pe)=>{pe(X,{})}),w(G,V)}),w(A,q)},void 0,A=>{});var x=j(R,2);Pi(x,()=>c(d),null,(A,q)=>{var U=B(()=>{var{next:ee}=c(q);return{next:ee}}),G=B(()=>c(U).next),J=cv(),V=Z(J);{var K=ee=>{var le=sv();let Pe;var Fe=S(le);ci(Fe,{size:"large",onclick:I,children:(Be,ve)=>{var ne=gt();H(ke=>Q(ne,ke),[()=>$("Show More")]),w(Be,ne)},$$slots:{default:!0}}),H(()=>Pe=ye(le,1,"show-more svelte-qc99of",null,Pe,{grid:c(v)})),w(ee,le)};W(V,ee=>{c(G)&&ee(K)})}var X=j(V,2);{var pe=ee=>{ov(ee)};W(X,ee=>{var le;!((le=c(a))!=null&&le.length)&&n===1&&ee(pe)})}w(A,J)},A=>{var q=dv();w(A,q)}),H(()=>{M=ye(R,1,"titles svelte-qc99of",null,M,{grid:c(v)}),N=Ye(R,"",N,{"--grid-columns":c(p)})}),It(R,"clientWidth",A=>F(u,A)),w(t,P),ie()}var vv=et('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function fv(t){var e=vv();w(t,e)}var hv=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function gv(t,e){te(e,!0);let i=Y("");var r=hv(),n=S(r),a=S(n);fv(a);var o=j(n,2);H(l=>ue(o,"placeholder",l),[()=>$("Search Movies And Shows")]),ae("input",o,()=>e.oninput(c(i))),Yr(o,()=>c(i),l=>F(i,l)),w(t,r),ie()}he(["input"]);async function mv(){const t=Ci();if(!t)throw new Error("No token was provided");const e={region:await mr(),page:1,include_count:"false"};return await Xt(`/providers/?api-token=${t}&`+rl(e))}function yv(t){const e=t-1;return e*e*e+1}function bv(t,{from:e,to:i},r={}){var{delay:n=0,duration:a=L=>Math.sqrt(L)*120,easing:o=yv}=r,l=getComputedStyle(t),s=l.transform==="none"?"":l.transform,[d,u]=l.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,u/=t.clientHeight;var v=wv(t),p=t.clientWidth/i.width/v,m=t.clientHeight/i.height/v,g=e.left+e.width*d,h=e.top+e.height*u,y=i.left+i.width*d,b=i.top+i.height*u,_=(g-y)*p,k=(h-b)*m,I=e.width/i.width,E=e.height/i.height;return{delay:n,duration:typeof a=="function"?a(Math.sqrt(_*_+k*k)):a,easing:o,css:(L,P)=>{var R=P*_,M=P*k,N=L+P*I,O=L+P*E;return`transform: ${s} translate(${R}px, ${M}px) scale(${N}, ${O});`}}}function wv(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var xv=et('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function kv(t){var e=xv();w(t,e)}var _v=et('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function Sv(t){var e=_v();w(t,e)}var Ev=C('<div class="icon svelte-dfwzqz"><!></div>'),Tv=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),Pv=C('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function zv(t,e){te(e,!0);let i=D(e,"options",19,()=>[{label:"Label",value:"Value"}]),r=D(e,"selected",23,()=>[]),n=D(e,"placeholder",19,()=>`${$("Search")}...`),a=D(e,"onchange",3,()=>null),o=Y("");const l=B(s);function s(){var g;return(g=i())!=null&&g.length?c(o)?i().filter(({label:h})=>h.toLowerCase().indexOf(c(o).toLowerCase())!==-1):i():[]}function d(g){const h=r().find(y=>y===g);r(h?r().filter(y=>y!==g):[...r(),g]),a()(r())}var u=Pv(),v=Z(u),p=S(v),m=j(v,2);Ce(m,29,()=>c(l)||[],({label:g,value:h})=>h,(g,h)=>{let y=()=>c(h).label,b=()=>c(h).value;const _=B(()=>!!r().find(M=>M===b()));var k=Tv(),I=S(k);let E;var L=S(I),P=j(L),R=S(P);Wr(R,()=>c(_),M=>{var N=Ev(),O=S(N);{var T=A=>{kv(A)},x=A=>{Sv(A)};W(O,A=>{c(_)?A(T):A(x,-1)})}Oe(3,N,()=>yr,()=>({start:.25,duration:100})),w(M,N)}),H(()=>{E=ye(I,1,"option svelte-dfwzqz",null,E,{active:c(_)}),Q(L,`${y()??""} `)}),ae("click",I,()=>d(b())),rp(k,()=>bv,()=>({duration:150})),w(g,k)}),H(()=>ue(p,"placeholder",n())),Yr(p,()=>c(o),g=>F(o,g)),w(t,u),ie()}he(["click"]);var Cv=C('<div class="content svelte-fg0dzp"><!></div>'),Iv=C("<div><!> <!></div>");function Fs(t,e){te(e,!0);let i=Y(!1),r=Y(null),n=Y(null),a=Y("left"),o=Y(0),l=Y(0);function s(h){const y=h.target;y&&y.closest(".dropdown")!==c(r)&&F(i,!1)}function d(h){F(i,!c(i)),c(i)&&(F(l,0),F(o,0),u(h.target))}async function u(h){if(await Vr(),!c(n))return;const y=16,b=200,_=window.innerHeight,k=window.innerWidth,{top:I}=c(n).getBoundingClientRect(),{left:E}=h.getBoundingClientRect();F(a,E<window.innerWidth/2?"left":"right",!0),F(o,Math.max(Math.min(window.innerHeight-I-y,_*.6),b),!0),await Vr();const{left:L,right:P}=c(n).getBoundingClientRect(),R=k-P;L-y<0?F(l,R):R-y<0&&F(l,R-y)}var v=Iv();xe("click",Ie,s);var p=S(v);We(p,()=>e.button,()=>({toggle:d}));var m=j(p,2);{var g=h=>{var y=Cv();let b;var _=S(y);We(_,()=>e.content),Ze(y,k=>F(n,k),()=>c(n)),H(()=>b=Ye(y,"",b,{"--max-height":c(o)?`${c(o)}px`:null,"--offset":c(l)?`${c(l)}px`:null})),Oe(3,y,()=>yr,()=>({start:.85,duration:100})),w(h,y)};W(m,h=>{c(i)&&h(g)})}Ze(v,h=>F(r,h),()=>c(r)),H(()=>ye(v,1,`dropdown ${c(a)??""}`,"svelte-fg0dzp")),w(t,v),ie()}var jv=C('<span class="label svelte-1mfj6k7"> </span>'),Av=C('<div class="active-line svelte-1mfj6k7"></div>'),Lv=C('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function Mv(t,e){te(e,!0);const i=D(e,"range",19,()=>[0,100]),r=D(e,"value",19,i),n=D(e,"label",3,""),a=D(e,"valueAppend",3,""),o=D(e,"formatFunction",3,G=>G.toString()),l=D(e,"onchange",3,()=>null);let s=i(),d=B(()=>Oi(s,2)),u=Y(De(c(d)[0])),v=Y(De(c(d)[1]));const p=B(()=>c(u)!==i()[0]||c(v)!==i()[1]),m=B(()=>100/(i()[1]-i()[0])*(c(u)-i()[0])),g=B(()=>100+100/(i()[1]-i()[0])*(c(v)-i()[1])-c(m)),h=B(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(c(u)-c(v))<5);Ge(()=>{y(r())}),Ge(()=>{F(v,Math.max(c(v),c(u)+1),!0),F(v,Math.min(c(v),i()[1]),!0),F(u,Math.min(c(u),c(v)-1),!0),F(u,Math.max(c(u),i()[0]),!0)});function y(G){(J=>{var V=Oi(J,2);F(u,V[0],!0),F(v,V[1],!0)})(G)}function b(){requestAnimationFrame(()=>l()([c(u),c(v)]))}var _=Lv(),k=S(_);{var I=G=>{var J=jv(),V=S(J);H((K,X)=>Q(V,`${n()??""}: ${K??""}—${X??""} ${a()??""}`),[()=>o()(c(u)),()=>o()(c(v))]),w(G,J)};W(k,G=>{n()&&G(I)})}var E=j(k,2);let L;var P=S(E);let R;var M=j(P,2);let N;var O=j(M,2),T=S(O),x=j(O,2),A=S(x),q=j(x,2);{var U=G=>{var J=Av();let V;H(()=>V=Ye(J,"",V,{left:c(m)+"%","--width":c(g)+"%"})),w(G,J)};W(q,G=>{c(p)&&G(U)})}H(()=>{L=ye(E,1,"range svelte-1mfj6k7",null,L,{halved:c(h)}),ue(P,"min",i()[0]),ue(P,"max",i()[1]),R=ye(P,1,"svelte-1mfj6k7",null,R,{active:c(p)}),ue(M,"min",i()[0]),ue(M,"max",i()[1]),N=ye(M,1,"svelte-1mfj6k7",null,N,{active:c(p)}),Q(T,c(u)),Q(A,c(v))}),ae("mouseup",P,b),ae("touchend",P,b),ae("input",P,function(...G){}),Yr(P,()=>c(u),G=>F(u,G)),ae("mouseup",M,b),ae("touchend",M,b),ae("input",M,function(...G){}),Yr(M,()=>c(v),G=>F(v,G)),w(t,_),ie()}he(["mouseup","touchend","input"]);function ml(t,e){if(!t)return!1;const{type:i,value:r}=t;return!(i==="array"&&!r.length||i==="range"&&JSON.stringify(r)===JSON.stringify(e))}var Dv=C(" <!>",1),qv=C('<p class="loading"> </p>'),Rv=C('<p class="error"> </p>'),Ov=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),Nv=C('<div data-testid="filter-item"><!></div>');function Fv(t,e){te(e,!0);let i=D(e,"filter",7),r=D(e,"onchange",3,()=>null),n=D(e,"data",7,null),a=D(e,"fetchData",3,null),o=D(e,"range",3,null),l=D(e,"valueAppend",3,"");const s=B(()=>ml(i()[e.param],o()));let d=Y(!!a());Ge(()=>{!n()&&a()&&u()});async function u(){try{F(d,!0),n(await a()())}catch{ce(se.ExploreFetchProvidersFailed)}finally{F(d,!1)}}function v(h,y){if(ce(se.ExploreSetFilter,null,{key:e.param,value:h,total_filter:i()}),!h){delete i()[e.param];return}i()[e.param]={type:y,value:h},r()()}var p=Nv();let m;var g=S(p);Fs(g,{button:(b,_)=>{let k=()=>(_==null?void 0:_()).toggle;ci(b,{variant:"border",size:"large",get active(){return c(s)},get onclick(){return k()},children:(I,E)=>{var L=Dv(),P=Z(L),R=j(P);yt(R,{direction:"down"}),H(()=>Q(P,`${e.label??""} `)),w(I,L)},$$slots:{default:!0}})},content:b=>{var _=Ov(),k=S(_);{var I=M=>{var N=qv(),O=S(N);H(T=>Q(O,`${T??""}...`),[()=>$("Loading")]),w(M,N)},E=M=>{var N=Rv(),O=S(N);H(T=>Q(O,T),[()=>$("An Error Occurred")]),w(M,N)};W(k,M=>{c(d)?M(I):a()&&!n()&&M(E,1)})}var L=j(k,2);{var P=M=>{const N=B(()=>{var O;return(O=i()[e.param])==null?void 0:O.value});zv(M,{get options(){return n()},get selected(){return c(N)},onchange:O=>v(O,"array")})},R=M=>{const N=B(()=>{var O;return(O=i()[e.param])==null?void 0:O.value});Mv(M,{get range(){return o()},get value(){return c(N)},get label(){return e.label},get valueAppend(){return l()},onchange:O=>v(O,"range")})};W(L,M=>{n()?M(P):o()&&M(R,1)})}w(b,_)},$$slots:{button:!0,content:!0}}),H(()=>m=ye(p,1,"filter-item svelte-er0ukh",null,m,{active:c(s)})),w(t,p),ie()}const yl=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"});var Hv=C(" <!>",1),Bv=C("<button> </button>"),Vv=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function Wv(t,e){te(e,!0);const i=D(e,"filter",7),r=D(e,"onchange",3,()=>null),n="ordering",a=[{label:"Popularity",value:yl.Popular},{label:"New",value:yl.New},{label:"Top Rated",value:yl.Best}],o=B(()=>{var s;return((s=a.find(({value:d})=>{var u;return d===((u=i()[n])==null?void 0:u.value)}))==null?void 0:s.label)||"Sort By"});function l(s){s?i()[n]={type:"string",value:s}:delete i()[n],r()()}Fs(t,{button:(u,v)=>{let p=()=>(v==null?void 0:v()).toggle;ci(u,{variant:"link",get onclick(){return p()},children:(m,g)=>{var h=Hv(),y=Z(h),b=j(y);yt(b,{direction:"down"}),H(_=>Q(y,`${_??""} `),[()=>$(c(o))]),w(m,h)},$$slots:{default:!0}})},content:u=>{var v=Vv();Ce(v,21,()=>a,je,(p,m,g,h)=>{let y=()=>c(m).label,b=()=>c(m).value;const _=B(()=>{var L;return b()===((L=i()[n])==null?void 0:L.value)});var k=Bv();let I;var E=S(k);H(L=>{I=ye(k,1,"option svelte-1ibt2k4",null,I,{active:c(_)}),Q(E,L)},[()=>$(y())]),ae("click",k,()=>l(b())),w(p,k)}),w(u,v)},$$slots:{button:!0,content:!0}}),ie()}he(["click"]);var Uv=et('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function Gv(t){var e=Uv();w(t,e)}var Yv=C('<button class="item svelte-cwy6fi"><!> <!></button>'),Kv=C('<div class="active-filter svelte-cwy6fi"></div>');function Zv(t,e){te(e,!0);function i(a){delete e.filter[a]}function r(a){let o=a.slice(0,30).trim();return a.length>o.length&&(o+="..."),o}var n=Kv();Ce(n,21,()=>Object.entries(e.filter),je,(a,o)=>{var l=B(()=>Oi(c(o),2));let s=()=>c(l)[0],d=()=>c(l)[1];const u=B(()=>{const{label:h,range:y,data:b,fetchData:_}=e.items.find(k=>s()===k.param)||{};return{label:h,range:y,data:b,fetchData:_}});var v=ge(),p=Z(v);{var m=h=>{var y=Yv(),b=S(y);{var _=L=>{var P=ge(),R=Z(P);Pi(R,()=>{var M,N;return((N=(M=c(u)).fetchData)==null?void 0:N.call(M))||c(u).data},null,(M,N)=>{var O=gt();H(T=>Q(O,T),[()=>{var T;return r((T=c(N))==null?void 0:T.filter(x=>d().value.includes(x.value)).map(x=>x.label).join(" + "))}]),w(M,O)}),w(L,P)},k=L=>{var P=gt();H(R=>Q(P,`${c(u).label??""}: ${R??""}`),[()=>d().value.join(" - ")]),w(L,P)},I=L=>{var P=gt();H(R=>Q(P,R),[()=>$(d().value)]),w(L,P)};W(b,L=>{d().type==="array"?L(_):d().type==="range"?L(k,1):L(I,-1)})}var E=j(b,2);Gn(E,{size:8}),ae("click",y,()=>i(s())),w(h,y)},g=B(()=>ml(d(),c(u).range));W(p,h=>{c(g)&&h(m)})}w(a,v)}),w(t,n),ie()}he(["click"]);var Qv=C("<div><!></div>"),Jv=C("<!> <!>",1),Xv=C('<div class="sorting svelte-11dg01g"><!></div>'),$v=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function ef(t,e){te(e,!0);const i=D(e,"limit",3,!0),r=D(e,"showSorting",3,!0),n=D(e,"searchQuery",3,""),a=D(e,"onchange",3,()=>null),o=D(e,"onempty",3,()=>null),l=3,s=[{label:$("Services"),param:"providers",fetchData:async()=>(await mv()).map(E=>({label:E.name,value:E.slug}))},{label:$("Genres"),param:"genres",data:Bn.filter(E=>parseInt(E.slug)<900).map(E=>({label:$(E.name),value:E.slug}))},{label:$("IMDb"),param:"imdb_score",range:[0,10]},{label:$("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:$("Runtime"),param:"length",range:[0,180],valueAppend:$("Minutes")},{label:$("Countries"),param:"country_codes",fetchData:async()=>(await fetch(`${kp}/src/lib/data/countries.json`)).json()},{label:$("Category"),param:"category",data:[{label:$("Movies"),value:"movie"},{label:$("Shows"),value:"series"},{label:$("Kids"),value:"kids"},{label:$("Documentary"),value:"documentary"}]}];let d=Y(De(i())),u=!1;Ge(()=>{Object.keys(e.filter).some(L=>{const{range:P}=s.find(R=>L===R.param)||{};return ml(e.filter[L],P)})||n()?u=!0:u&&(u=!1,o()())});var v=$v(),p=Z(v);let m;var g=S(p);Ce(g,21,()=>c(d)?s.slice(0,l):s,je,(E,L)=>{var P=Qv(),R=S(P);Fv(R,Zr({get filter(){return e.filter},get onchange(){return a()}},()=>c(L))),Oe(3,P,()=>yr,()=>({start:.75,duration:100})),w(E,P)});var h=j(g,2),y=S(h);{var b=E=>{ci(E,{variant:"link",onclick:()=>F(d,!c(d)),children:(L,P)=>{var R=Jv(),M=Z(R);Gv(M);var N=j(M),O=j(N);{let T=B(()=>c(d)?"down":"up");yt(O,{get direction(){return c(T)}})}H(T=>Q(N,` ${T??""} `),[()=>$("All Filters")]),w(L,R)},$$slots:{default:!0}})};W(y,E=>{i()&&E(b)})}var _=j(y,2);{var k=E=>{var L=Xv(),P=S(L);Wv(P,{get filter(){return e.filter},get onchange(){return a()}}),Oe(3,L,()=>Xr,()=>({x:5,duration:100})),w(E,L)};W(_,E=>{r()&&E(k)})}var I=j(p,2);Zv(I,{get filter(){return e.filter},get items(){return s}}),H(()=>m=ye(p,1,"filter svelte-11dg01g",null,m,{limit:i()})),w(t,v),ie()}function tf(t,e){te(e,!0);const i=D(e,"trackingEvent",19,()=>se.ExploreAnyClick);function r(o){var k;const l=o.target,s=l.parentElement;if(l===document.body)return;const d=`${s==null?void 0:s.nodeName.toLowerCase()}${n(s)}`,u=`${l==null?void 0:l.nodeName.toLowerCase()}${n(l)}`,v=`${d} > ${u}`,p=l.closest("a, button"),m=a(l)||a(s)||p&&a(p),g=m?(k=m.textContent)==null?void 0:k.slice(0,30):"",h=l.getAttribute("aria-label")||(p==null?void 0:p.getAttribute("aria-label"))||(s==null?void 0:s.getAttribute("aria-label")),y=l.placeholder,b=l.alt,_=(g||h||y||b||"").trim();ce(i(),null,{selector:v,text:_})}function n(o){if(!o)return"";const l=Array.from(o.classList).filter(s=>!s.startsWith("s-"));return l.length?"."+l.join("."):""}function a(o){var l;return(l=o==null?void 0:o.childNodes)!=null&&l.length&&Array.from(o.childNodes).find(s=>{var d;return s.nodeName==="#text"&&!!((d=s.textContent)!=null&&d.trim())})||null}xe("click",Ie,r),ie()}function rf(t,e){te(e,!0);const i=D(e,"trackingEvent",19,()=>se.ExploreScrollDistance),r={25:!1,50:!1,75:!1,100:!1};function n(){const a=window.scrollY,o=window.innerHeight,d=100/(e.element.clientHeight+a+e.element.getBoundingClientRect().top)*(a+o);for(const u in r)r[u]||d<parseInt(u)||(r[u]=!0,ce(i(),null,{scroll_percentage:u+"%"}))}xe("scroll",Ie,n),ie()}var nf=C('<p class="description svelte-l2apr8"> </p>'),af=C('<div class="filter svelte-l2apr8"><!></div>'),lf=C('<div class="unsupported-region svelte-l2apr8"> </div>'),of=C('<div class="explore svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <div class="subheading svelte-l2apr8"> </div> <p class="disclaimer svelte-l2apr8"></p> <!></div></div> <!> <!> <!> <!></div> <!> <!>',1);function sf(t,e){te(e,!0);let i=D(e,"navigate",3,()=>null),r=D(e,"searchQuery",15,""),n=D(e,"filter",27,()=>De({})),a=null,o=Y(null),l=Y(De(window.innerWidth));Ge(()=>{var x;F(o,((x=a==null?void 0:a.closest(wl))==null?void 0:x.style.height)||null,!0)}),tt(async()=>{var x;ce(se.ExplorePageView),(x=window.PlayPilotLinkInjections.ads)!=null&&x.length||(window.PlayPilotLinkInjections.ads=await _s())});var s=of(),d=Z(s);let u;var v=S(d),p=S(v),m=j(S(p),2),g=S(m);mt(m,x=>Te==null?void 0:Te(x));var h=j(m,2),y=S(h);mt(h,(x,A)=>Te==null?void 0:Te(x,A),()=>2);var b=j(h,2);Xd(b,()=>$("Streaming Guide Disclaimer"),!0);var _=j(b,2);{var k=x=>{var A=nf(),q=S(A);H(U=>Q(q,U),[()=>$("Streaming Guide Description")]),w(x,A)},I=B(()=>!br());W(_,x=>{c(I)&&x(k)})}var E=j(v,2);gv(E,{oninput:x=>r(x)});var L=j(E,2);{var P=x=>{var A=af(),q=S(A);{let U=B(()=>c(l)<500),G=B(()=>!r());ef(q,{get filter(){return n()},get searchQuery(){return r()},get limit(){return c(U)},get showSorting(){return c(G)},onchange:()=>i()("results"),onempty:()=>i()("home")})}w(x,A)},R=B(()=>br());W(L,x=>{c(R)&&x(P)})}var M=j(L,2);Pi(M,zs,null,(x,A)=>{var q=ge(),U=Z(q);{var G=J=>{var V=lf(),K=S(V);H(X=>Q(K,X),[()=>$("Sorry Region Not Supported")]),w(J,V)};W(U,J=>{c(A)||J(G)})}w(x,q)});var N=j(M,2);We(N,()=>e.children),Ze(d,x=>a=x,()=>a);var O=j(d,2);tf(O,{});var T=j(O,2);rf(T,{get element(){return a}}),H((x,A)=>{u=Ye(d,"",u,{height:c(o),"--playpilot-explore-width":`${c(l)??""}px`}),Q(g,x),Q(y,A)},[()=>$("Streaming Guide"),()=>$("Streaming Guide Subheading")]),It(d,"clientWidth",x=>F(l,x)),w(t,s),ie()}var cf=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),df=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function bl(t,e){const i=D(e,"small",3,!1);let r=Y(!1);function n(u){u.preventDefault(),u.stopPropagation(),F(r,!c(r))}var a=df(),o=S(a);let l;var s=j(o,2);{var d=u=>{var v=cf(),p=S(v);H(()=>Q(p,e.disclaimer)),Oe(3,v,()=>si,()=>({duration:50})),w(u,v)};W(s,u=>{c(r)&&u(d)})}H(()=>l=ye(o,1,"disclaimer svelte-1ldthr7",null,l,{small:i()})),ae("click",a,n),w(t,a)}he(["click"]);function $r(){var t;return!((t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels)||!$t("pixels")?!1:(window[Ss]=xs(),!0)}var pf=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),uf=C('<span class="cta svelte-13ka2ap"> </span>'),vf=C('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Hs(t,e){te(e,!0);const i=D(e,"disclaimer",3,""),r=D(e,"hideCategory",3,!1),n=D(e,"onclick",3,()=>null),a=B(()=>e.playlink.name),o=B(()=>e.playlink.url),l=B(()=>e.playlink.logo_url),s=B(()=>e.playlink.highlighted),d=B(()=>e.playlink.cta_text),u=B(()=>e.playlink.action_text),v=B(()=>e.playlink.pixels),p=B(()=>e.playlink.extra_info.category),m=B(()=>$r()&&!c(s)),g={AVOD:$("Stream"),SVOD:$("Stream"),BUY:$("Buy"),RENT:$("Rent"),TVOD:$("Rent Or Buy")};let h=Y(0);var y=ge(),b=Z(y);Ko(b,()=>{var _,k;return!((k=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&k.require_affiliate_consent)||$t("affiliate")?"a":"span"},!1,(_,k)=>{Mn(_,()=>c(m)?Ps(Ft.ProviderInterest,{provider:e.playlink.slug,source:ji.Card}):null),Mn(_,()=>c(m)?ru(Ft.ProviderClick,{provider:e.playlink.slug}):null),is(_,()=>({onclick:n(),href:c(o),target:"_blank",class:"playlink","data-playlink":c(a),rel:"sponsored",[fr]:{highlighted:c(s),"no-category":r(),"no-subtext":!c(d)&&r()}}),void 0,void 0,void 0,"svelte-13ka2ap");var I=vf(),E=Z(I);let L;var P=S(E),R=j(P,2),M=S(R),N=j(R,2);{var O=K=>{var X=pf(),pe=S(X);H(ee=>Q(pe,ee),[()=>g[c(p)]||$("Stream")]),w(K,X)};W(N,K=>{r()||K(O)})}var T=j(N,2);{var x=K=>{var X=uf(),pe=S(X);H(()=>Q(pe,c(d))),w(K,X)};W(T,K=>{c(d)&&K(x)})}var A=j(T,2),q=S(A),U=j(A,2);{var G=K=>{bl(K,{get disclaimer(){return i()},small:!0})};W(U,K=>{i()&&K(G)})}var J=j(E,2);{var V=K=>{hl(K,{get pixels(){return c(v)}})};W(J,K=>{var X;(X=c(v))!=null&&X.length&&K(V)})}H((K,X)=>{L=Ye(E,"",L,{"--action-width":c(h)?`${c(h)}px`:null}),ue(P,"src",K),Q(M,c(a)),Q(q,X)},[()=>Wn(c(l)),()=>c(u)||$("Watch")]),It(A,"clientWidth",K=>F(h,K)),w(k,I)}),w(t,y),ie()}var ff=C('<div class="disclaimer svelte-1v1053" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1v1053">PlayPilot.com</a></div>'),hf=C('<div class="empty svelte-1v1053" data-testid="playlinks-empty"> </div>');function Bs(t,e){te(e,!0);var i=ge(),r=Z(i);{var n=o=>{var l=ff(),s=S(l);H(d=>Q(s,`${d??""} `),[()=>{var d,u;return((u=(d=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:u.playlinks_disclaimer_text)||$("Commission Disclaimer")}]),w(o,l)},a=o=>{var l=hf(),s=S(l);H(d=>Q(s,d),[()=>$("Title Unavailable")]),w(o,l)};W(r,o=>{e.playlinks.length?o(n):o(a,-1)})}w(t,i),ie()}var gf=C('<div class="heading category svelte-1fykz2q"> </div>'),mf=C("<!> <!>",1),yf=C('<div class="show-more svelte-1fykz2q" data-testid="show-more"><!></div>'),bf=C("<!> <div></div> <!>",1),wf=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function xf(t,e){var E,L;te(e,!0);const i=D(e,"limit",3,3),r=Dr("scope")==="modal",n=Dr("type"),a=Jr("card"),o=!!((L=(E=window.PlayPilotLinkInjections)==null?void 0:E.config)!=null&&L.categorize_playlinks);let l=Y(0),s=Y(!o);const d=B(()=>Os(e.playlinks)),u=B(()=>g(e.playlinks)),v=B(()=>o?h(c(u)):[["",c(d)]]),p=B(()=>c(l)<500||!!a||c(d).length===1);function m(P){ce(r?se.TitleModalPlaylinkClick:se.InjectionPopoverPlaylinkClick,e.title,{playlink:P,type:n})}function g(P){const R={};for(const M of P){const{category:N}=M.extra_info;N in R||(R[N]=[]),R[N].push(M)}return R}function h(P){const R=["AVOD","SVOD","RENT","BUY"],M=[];for(const O of R)P[O]&&M.push([O,P[O]]);const N=[];for(const O of Object.values(P))for(const T of O)R.includes(T.extra_info.category)||N.push(T);return[...M,["Other",N]]}var y=wf(),b=Z(y),_=S(b);mt(b,(P,R)=>Te==null?void 0:Te(P,R),()=>3);var k=j(b,2);Bs(k,{get playlinks(){return c(d)}});var I=j(k,2);Ce(I,17,()=>c(v),je,(P,R,M,N)=>{var O=B(()=>Oi(c(R),2));let T=()=>c(O)[0],x=()=>c(O)[1];var A=bf(),q=Z(A);{var U=X=>{var pe=gf(),ee=S(pe);mt(pe,(le,Pe)=>Te==null?void 0:Te(le,Pe),()=>4),H(le=>Q(ee,le),[()=>$(`Category: ${T()}`)]),w(X,pe)};W(q,X=>{T()&&x().length&&X(U)})}var G=j(q,2);let J;Ce(G,21,()=>x().slice(0,c(s)?i():x().length),je,(X,pe,ee)=>{var le=mf(),Pe=Z(le);Hs(Pe,{get playlink(){return c(pe)},onclick:()=>m(c(pe).name)});var Fe=j(Pe,2);{var Be=ve=>{{let ne=B(()=>eu(a)),ke=B(()=>a.disclaimer||"");Hs(ve,{get playlink(){return c(ne)},onclick:()=>ce(se.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return c(ke)}})}};W(Fe,ve=>{a&&ee===0&&ve(Be)})}w(X,le)});var V=j(G,2);{var K=X=>{var pe=yf(),ee=S(pe);ci(ee,{onclick:()=>F(s,!c(s)),size:"large",children:(le,Pe)=>{var Fe=gt();H(Be=>Q(Fe,Be),[()=>$("Show Count More").replace("[[count]]",(x().length-i()).toString())]),w(le,Fe)},$$slots:{default:!0}}),w(X,pe)};W(V,X=>{x().length>i()&&c(s)&&X(K)})}H(()=>{J=ye(G,1,"playlinks svelte-1fykz2q",null,J,{list:c(p)}),ue(G,"data-testid",`category-${T()??""}`)}),It(G,"clientWidth",X=>F(l,X)),w(P,A)}),H(P=>Q(_,P),[()=>$("Where To Stream Online")]),w(t,y),ie()}var kf=C('<button class="toggle svelte-7itcht"> </button>'),_f=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),Sf=C('<button class="toggle svelte-7itcht"> </button>'),Ef=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div> <!>',1);function Vs(t,e){te(e,!0);const i=D(e,"blurb",3,""),r=D(e,"limit",3,200),n=D(e,"onclick",3,()=>null);let a=Y(!1);const o=B(()=>e.text.slice(0,r()));function l(){F(a,!c(a)),n()()}var s=Ef(),d=Z(s),u=S(d),v=S(u),p=j(v);{var m=I=>{var E=gt("...");w(I,E)};W(p,I=>{!c(a)&&e.text.length>r()&&I(m)})}var g=j(p,2);{var h=I=>{var E=kf(),L=S(E);H(P=>Q(L,P),[()=>$("Show More")]),ae("click",E,l),w(I,E)};W(g,I=>{!c(a)&&(e.text.length>r()||i())&&I(h)})}var y=j(u,2);{var b=I=>{var E=_f(),L=S(E);H(()=>Q(L,i())),w(I,E)};W(y,I=>{c(a)&&I(b)})}var _=j(d,2);{var k=I=>{var E=Sf(),L=S(E);H(P=>Q(L,P),[()=>$("Show Less")]),ae("click",E,l),w(I,E)};W(_,I=>{c(a)&&I(k)})}H(()=>Q(v,c(a)?e.text:c(o))),w(t,s),ie()}he(["click"]);async function Tf(t,{page:e=1}={}){const i={language:gr(),region:await mr(),include_count:"false",participant_sid:t.sid,page:e};return(await Xt(`/titles/browse?api-token=${Ci()}&${rl(i)}`)).results}async function Pf(t){return(await Xt(`/participants/browse?api-token=${Ci()}&title_sid=${t.sid}`)).results}var zf=C('<div class="character truncate svelte-zy7e3f"> </div>'),Cf=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),If=C('<div class="participant svelte-zy7e3f"></div>');function jf(t,e){te(e,!0);const i=D(e,"heading",19,()=>$("Cast"));function r(l){const s=Ii(ps(ds(tl()))),d={};for(const v of l){const p=Fn(s,Ii(v.name));d[v.sid]={participant:v,count:p}}return Object.values(d).sort((v,p)=>p.count-v.count).map(({participant:v})=>v)}function n(l,s){di({event:l,type:"participant",data:s}),ce(se.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var a=ge(),o=Z(a);Pi(o,()=>Pf(e.title),l=>{Kn(l,{get heading(){return i()},children:(s,d)=>{var u=ge(),v=Z(u);Ce(v,16,()=>({length:5}),je,(p,m)=>{var g=If();w(p,g)}),w(s,u)},$$slots:{default:!0}})},(l,s)=>{var d=ge(),u=Z(d);{var v=p=>{Kn(p,{get heading(){return i()},children:(m,g)=>{var h=ge(),y=Z(h);Ce(y,17,()=>r(c(s)).slice(0,15),je,(b,_)=>{var k=Cf(),I=S(k),E=S(I),L=j(I,2);{var P=R=>{var M=zf(),N=S(M);H(()=>Q(N,c(_).character)),w(R,M)};W(L,R=>{c(_).character&&R(P)})}H(()=>Q(E,c(_).name)),ae("click",k,R=>n(R,c(_))),w(b,k)}),w(m,h)},$$slots:{default:!0}})};W(u,p=>{var m;(m=c(s))!=null&&m.length&&p(v)})}w(l,d)}),w(t,a),ie()}he(["click"]);function Af(t,e){te(e,!0);const i=Cs(e.title);{let r=B(()=>$("Similar Titles"));Zn(t,{get titles(){return i},get heading(){return c(r)},onclick:n=>ce(se.SimilarTitleClick,n,{title_source:e.title.original_title||e.title.title})})}ie()}function Lf(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var Mf=et('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function Df(t){var e=Mf();w(t,e)}var qf=et('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function Rf(t){var e=qf();w(t,e)}var Of=et('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function Nf(t){var e=Of();w(t,e)}var Ff=et('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Hf(t){var e=Ff();w(t,e)}var Bf=C('<button class="svelte-827qd7"><!></button>'),Vf=C('<div class="content svelte-827qd7"><!></div>'),Wf=C("<div><!> <!></div>");function Uf(t,e){const i=D(e,"label",3,""),r=D(e,"align",3,"right");let n=Y(!1),a=Y(null);function o(m){var h;m.currentTarget===((h=c(a))==null?void 0:h.querySelector("button"))&&m.stopPropagation(),F(n,!c(n))}var l=Wf();xe("click",Ie,()=>F(n,!1));var s=S(l);{var d=m=>{var g=ge(),h=Z(g);We(h,()=>e.button,()=>({toggle:o})),w(m,g)},u=m=>{var g=Bf(),h=S(g);Hf(h),H(()=>{ue(g,"aria-label",i()),ue(g,"aria-expanded",c(n))}),ae("click",g,o),w(m,g)};W(s,m=>{e.button?m(d):m(u,-1)})}var v=j(s,2);{var p=m=>{var g=Vf(),h=S(g);We(h,()=>e.children),Oe(1,g,()=>yr,()=>({duration:50,start:.85})),w(m,g)};W(v,m=>{c(n)&&m(p)})}Ze(l,m=>F(a,m),()=>c(a)),H(()=>ye(l,1,`context-menu ${r()??""}`,"svelte-827qd7")),w(t,l)}he(["click"]);var Gf=C("<!> ",1),Yf=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Kf(t,e){te(e,!0);let i=D(e,"url",7);const n=window.innerWidth<Nt&&typeof navigator.share<"u";tt(()=>{i(i()+"?utm_source=tpi")});function a(s,d){if(!n){d(s);return}ce(se.ShareTitle,null,{title:e.title,url:Zi(),method:"native"}),navigator.share({title:e.title,url:i()})}function o(){ce(se.ShareTitle,null,{title:e.title,url:Zi(),method:"copy"}),Lf(i())}function l(){ce(se.ShareTitle,null,{title:e.title,url:Zi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Uf(t,{button:(d,u)=>{let v=()=>(u==null?void 0:u()).toggle;ci(d,{onclick:p=>a(p,v()),children:(p,m)=>{var g=Gf(),h=Z(g);Df(h);var y=j(h);H(b=>Q(y,` ${b??""}`),[()=>$("Share")]),w(p,g)},$$slots:{default:!0}})},children:(d,u)=>{var v=Yf(),p=Z(v),m=S(p);Rf(m);var g=j(m),h=j(p,2),y=S(h);Nf(y);var b=j(y);H((_,k)=>{Q(g,` ${_??""}`),Q(b,` ${k??""}`)},[()=>$("Copy URL"),()=>$("Email")]),ae("click",p,o),ae("click",h,l),w(d,v)},$$slots:{button:!0,default:!0}}),ie()}he(["click"]);var Zf=et('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Qf(t){var e=Zf();w(t,e)}var Jf=C("<!> ",1);function Xf(t,e){te(e,!0);function i(){uu(e.title),ce(se.TrailerClick,e.title)}ci(t,{onclick:i,children:(r,n)=>{var a=Jf(),o=Z(a);Qf(o);var l=j(o);H(s=>Q(l,` ${s??""}`),[()=>$("Watch Trailer")]),w(r,a)},$$slots:{default:!0}}),ie()}var $f=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function eh(t,e){const i=D(e,"embeddable_url",3,""),r=D(e,"autoplay",3,!0);let n=Y(0),a=Y(0);const o=B(()=>Math.max(c(n),c(a)));var l=$f(),s=S(l);ul(s,{get embeddable_url(){return i()},get autoplay(){return r()},fallbackStartTime:5,muted:!0,loop:!0,showMuteControls:!0}),H(()=>Ye(l,`--height: ${c(o)??""}px; --width: ${c(n)??""}px;`)),It(l,"clientWidth",d=>F(n,d)),It(l,"clientHeight",d=>F(a,d)),w(t,l)}var th=C('<img alt=""/>'),ih=C("<div><!></div>");function Ws(t,e){te(e,!0);const i=D(e,"small",3,!1),r=D(e,"offsetMute",3,!1),n=D(e,"useVideoBackground",3,!0),a=D(e,"autoplay",3,!0),o=D(e,"inline",3,!1);let l=Y(!1),s=Y(!1),d=Y(!1);Ge(()=>{n()&&e.title.embeddable_url&&Ms(pl(e.title.embeddable_url)).then(h=>{F(d,h,!0)})});var u=ih();let v;var p=S(u);{var m=h=>{eh(h,{get embeddable_url(){return e.title.embeddable_url},get autoplay(){return a()}})},g=h=>{var y=ge(),b=Z(y);Wr(b,()=>c(s),_=>{var k=th();let I;H(E=>{ue(k,"src",E),I=ye(k,1,"svelte-1h1ov71",null,I,{loaded:c(l),blur:c(s)})},[()=>Wn(c(s)?e.title.standing_poster:e.title.medium_poster)]),xe("load",k,()=>F(l,!0)),xe("error",k,()=>F(s,!0)),w(_,k)}),w(h,y)};W(p,h=>{n()&&c(d)?h(m):h(g,-1)})}H(()=>v=ye(u,1,"background svelte-1h1ov71",null,v,{small:i(),inline:o(),"offset-mute":r()})),w(t,u),ie()}var rh=C('<div class="genre svelte-1mphbln"> </div>'),nh=C('<button class="genre expand svelte-1mphbln"> </button>'),ah=C("<!> <!>",1);function lh(t,e){te(e,!0);let i=Y(!1);const r=B(()=>c(i)?e.genres:[e.genres[0]]);var n=ah(),a=Z(n);Ce(a,17,()=>c(r),je,(s,d)=>{const u=B(()=>{var g;return(g=Bn.find(h=>h.slug===c(d)))==null?void 0:g.name});var v=ge(),p=Z(v);{var m=g=>{var h=rh(),y=S(h);Mn(h,()=>$r()?Ps(Ft.GenreInterest,{genre:c(u),source:ji.Card}):null),H(b=>Q(y,b),[()=>$(c(u))]),w(g,h)};W(p,g=>{c(u)&&g(m)})}w(s,v)});var o=j(a,2);{var l=s=>{var d=nh(),u=S(d);H(()=>Q(u,`+${e.genres.length-1}`)),ae("click",d,()=>F(i,!0)),w(s,d)};W(o,s=>{!c(i)&&e.genres.length>1&&s(l)})}w(t,n),ie()}he(["click"]);var oh=C("<div> </div>"),sh=C('<div><div class="imdb svelte-13b1w31"><!> </div> <!> <div> </div> <div class="capitalize svelte-13b1w31"> </div> <!></div>');function Us(t,e){te(e,!0);const i=D(e,"small",3,!1);var r=sh();let n;var a=S(r),o=S(a);fl(o,{});var l=j(o),s=j(a,2);lh(s,{get genres(){return e.title.genres}});var d=j(s,2),u=S(d),v=j(d,2),p=S(v),m=j(v,2);{var g=h=>{var y=oh(),b=S(y);H(_=>Q(b,`${e.title.length??""} ${_??""}`),[()=>$("Minutes")]),w(h,y)};W(m,h=>{!i()&&e.title.length&&h(g)})}H(h=>{n=ye(r,1,"info svelte-13b1w31",null,n,{small:i()}),Q(l,` ${e.title.imdb_score??""}`),Q(u,e.title.year),Q(p,h)},[()=>$(`Type: ${e.title.type}`)]),w(t,r),ie()}var ch=C('<div><div class="header svelte-16ajinh"><div><!></div> <div id="heading"> </div> <!> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main svelte-16ajinh"><!> <!> <!> <!></div></div> <!>',1);function Qn(t,e){var q;te(e,!0);const i=D(e,"small",3,!1),r=D(e,"useVideoBackground",3,!0),n=!!((q=window.PlayPilotLinkInjections)!=null&&q.no_affiliate);qr("title",e.title);const a=Dr("modal"),o=B(()=>(!i()||n)&&e.title.description);let l=Y(!1);var s=ch(),d=Z(s);let u;var v=S(d),p=S(v);let m;var g=S(p);Un(g,{get title(){return e.title},onload:()=>F(l,!0),lazy:!1});var h=j(p,2);let y;var b=S(h);mt(h,(U,G)=>Te==null?void 0:Te(U,G),()=>2);var _=j(h,2);Us(_,{get title(){return e.title},get small(){return i()}});var k=j(_,2),I=S(k);{var E=U=>{Xf(U,{get title(){return e.title}})};W(I,U=>{e.title.embeddable_url&&U(E)})}var L=j(I,2);{let U=B(()=>Ds(e.title));Kf(L,{get title(){return e.title.title},get url(){return c(U)}})}var P=j(v,2),R=S(P);{var M=U=>{Vs(U,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>ce(se.ExpandTitleDescription,e.title)})};W(R,U=>{c(o)&&U(M)})}var N=j(R,2);{var O=U=>{xf(U,{get playlinks(){return e.title.providers},get title(){return e.title}})};W(N,U=>{n||U(O)})}var T=j(N,2);jf(T,{get title(){return e.title}});var x=j(T,2);Af(x,{get title(){return e.title}});var A=j(d,2);{let U=B(()=>a==="title");Ws(A,{get title(){return e.title},get small(){return i()},get useVideoBackground(){return r()},get offsetMute(){return c(U)}})}H(()=>{u=ye(d,1,"content svelte-16ajinh",null,u,{small:i()}),m=ye(p,1,"poster svelte-16ajinh",null,m,{loaded:c(l)}),y=ye(h,1,"heading svelte-16ajinh",null,y,{truncate:i()}),Q(b,e.title.title)}),w(t,s),ie()}var dh=C('<!> <p class="empty svelte-1nq44zr"> </p>',1),ph=C("<!> ",1),uh=C("<div><!></div>"),vh=C('<!> <div class="title svelte-1nq44zr" data-testid="title"><!></div>',1),fh=C("<!> Loading...",1);function hh(t,e){te(e,!0);const i=p=>{var m=dh(),g=Z(m);r(g);var h=j(g,2),y=S(h);H(b=>Q(y,b),[()=>$("Page Not Found")]),w(p,m)},r=(p,m)=>{let g=Sn(()=>ma(m==null?void 0:m(),!1));var h=uh();let y;var b=S(h);ci(b,{variant:"link",onclick:()=>{n()("home")},children:(_,k)=>{var I=ph(),E=Z(I);yt(E,{direction:"left"});var L=j(E);H(P=>Q(L,` ${P??""}`),[()=>$("Home")]),w(_,I)},$$slots:{default:!0}}),H(()=>y=ye(h,1,"back svelte-1nq44zr",null,y,{offset:c(g)})),w(p,h)},n=D(e,"navigate",3,()=>null);let a=Y(De(window.innerWidth));const o=B(()=>c(a)<Nt),l=new URL(document.location.toString()).searchParams.get("sid");var s=ge(),d=Z(s);{var u=p=>{var m=ge(),g=Z(m);Pi(g,()=>Is(l),h=>{var y=fh(),b=Z(y);r(b),w(h,y)},(h,y)=>{var b=vh(),_=Z(b);r(_,()=>!0);var k=j(_,2),I=S(k);Qn(I,{get title(){return c(y)},get useVideoBackground(){return c(o)}}),w(h,b)},h=>{i(h)}),w(p,m)},v=p=>{i(p)};W(d,p=>{l?p(u):p(v,-1)})}Kr("innerWidth",p=>F(a,p,!0)),w(t,s),ie()}const en={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]},Reels:{key:"reels",numberOfVariants:2,variantNames:["Default","Reel"]}},Gs="playpilot_split_test_";function gh({key:t}){var n,a,o;const e=(a=(n=window.PlayPilotLinkInjections)==null?void 0:n.split_test_identifiers)==null?void 0:a[t];if(e!==void 0)return e;(o=window.PlayPilotLinkInjections)!=null&&o.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});let i=sessionStorage.getItem(Gs+t);if(!i){const l=(Math.floor(Math.random()*100)/100).toString();sessionStorage.setItem(Gs+t,l),i=l}const r=parseFloat(i);return window.PlayPilotLinkInjections.split_test_identifiers[t]=r,r}function Ys(t){const e=gh(t);return Math.floor(e*t.numberOfVariants)}function Ks(t){var i;const e=Ys(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function mh(t,e=1){return Ys(t)===e}function Zs(t){const e=Ks(t);ce(se.SplitTestView,null,{key:t.key,variant:e})}function yh(t,e){te(e,!0);const i=D(e,"navigate",3,()=>null);r();async function r(){const a=new URL(document.location.toString()).searchParams.get("sid");if(!a)return;const o=window.innerWidth<Nt,l=o&&Ks(en.Reels)==="Reel",s=o&&l?"titles-reel":"titles-rail";o&&Zs(en.Reels);try{const[d,u]=(await Promise.allSettled([Is(a),Cs({sid:a})])).map(v=>v.status==="fulfilled"?v.value:null);di({type:s,data:[d,...u],props:{onclose:()=>i()("home"),pushState:!1}})}catch{i()("home")}}ie()}var bh=C("<p>An error occurred.</p>"),wh=C("<!> <!>",1);function xh(t,e){te(e,!0);const i=[{key:"results",component:uv}];br()&&(i.unshift({key:"home",component:Rs}),i.push({key:"title",component:hh}),i.push({key:"modal",component:Rs,appendComponent:yh}));const r=u()||i[0].key;let n=Y(De(i.find(({key:g})=>g===r)||i[0])),a=Y(""),o=Y(De({}));const l=B(()=>c(n).component),s=B(()=>c(n).appendComponent);Ge(()=>{c(a)&&F(n,i.find(g=>g.key==="results"),!0)});function d(g,h=!0){F(n,i.find(b=>b.key===g)||i[0],!0);const y=new URL(document.location.toString());g!=="title"&&g!=="modal"&&y.searchParams.delete("sid"),g===i[0].key?y.searchParams.delete("route"):y.searchParams.set("route",c(n).key),h&&history.pushState({},"",y),ce(se.ExploreNavigate,null,{route:c(n).key})}function u(){return new URL(document.location.toString()).searchParams.get("route")||i[0].key}function v(){d(u(),!1)}var p=ge();xe("popstate",Ie,v);var m=Z(p);lo(m,{onerror:h=>console.error(h),failed:h=>{var y=bh();w(h,y)}},h=>{sf(h,{navigate:d,get searchQuery(){return c(a)},set searchQuery(y){F(a,y,!0)},get filter(){return c(o)},set filter(y){F(o,y,!0)},children:(y,b)=>{var _=wh(),k=Z(_);jn(k,()=>c(l),(E,L)=>{L(E,{get searchQuery(){return c(a)},get filter(){return c(o)},navigate:d})});var I=j(k,2);jn(I,()=>c(s),(E,L)=>{L(E,{navigate:d})}),w(y,_)},$$slots:{default:!0}})}),w(t,p),ie()}const wl="[data-playpilot-explore]",kh="[data-playpilot-pre-consent-explore]",Qs="playpilot-explore-custom-style";let Jn=null;function Xn(){var e;const t=document.querySelector(wl);t&&($n(),(e=document.querySelector(kh))==null||e.remove(),t.innerHTML="",Jn=Ct(xh,{target:t}),Sh())}function $n(){var t;Jn&&(Ki(Jn),Jn=null,(t=document.querySelector("#"+Qs))==null||t.remove())}function _h(){var s;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:r,explore_navigation_insert_position:n}=t;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const a=document.querySelector(e);if(!a)return!1;const o=a.cloneNode(!0),l=o.nodeName==="A"?o:o.querySelector("a");return l.classList.remove("active"),l.innerText=i||"Streaming Guide",l.href=r,o.dataset.playpilotExploreNavigationElement="true",a.insertAdjacentElement(n||"afterend",o),!0}function Sh(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Qs,document.body.appendChild(e)}function br(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function xl(t,e){te(e,!0);const i=D(e,"size",3,"32px"),r=D(e,"onclick",3,()=>null),n=Dn(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var a=ge(),o=Z(a);Ko(o,()=>e.href?"a":"button",!1,(l,s)=>{is(l,()=>({role:e.href?"link":"button",onclick:r(),class:"button",...n,[hr]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=ge(),u=Z(d);We(u,()=>e.children??ft),w(s,d)}),w(t,a),ie()}var Eh=C("<div></div>");function Th(t,e){te(e,!0);let i=D(e,"threshold",3,100),r=D(e,"isDragging",15,!1),n=D(e,"passedThreshold",15,!1),a=D(e,"onpassed",3,()=>null),o=Y(0),l=Y(0),s=Y(null),d=Y(!1);const u=B(()=>Math.max(c(l)-c(o),0));Ge(()=>{n(c(u)>i())});function v(b){if(b){r(!0),F(d,!0),F(o,b.touches[0].pageY,!0);for(const _ of e.targets)_.style.transitionDuration="0ms"}}function p(b){if(b&&r()){b.preventDefault(),F(l,b.touches[0].pageY,!0),c(s).style.transform=`translateY(${c(u)}px)`;for(const _ of e.targets)_.style.top=`${c(u)}px`}}function m(){if(r()){if(r(!1),n())a()();else{c(s).removeAttribute("style");for(const b of e.targets)b.style.removeProperty("transition"),requestAnimationFrame(()=>b.style.top="0px")}F(o,0),F(l,0)}}var g={start:v,move:p,end:m},h=Eh();xe("touchmove",Ie,p,void 0,!0),xe("touchend",Ie,m);let y;return Ze(h,b=>F(s,b),()=>c(s)),H(()=>y=ye(h,1,"handle svelte-1xqgdsn",null,y,{dragging:r(),dragged:c(d)})),ae("touchstart",h,v),w(t,h),ie(g)}he(["touchstart"]);var Ph=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],zh=["difference","intersection","symmetricDifference","union"],Js=!1;const pa=class pa extends Set{constructor(i){super();oe(this,Ir);oe(this,Cr,new Map);oe(this,Bt,Y(0));oe(this,Ri,Y(0));oe(this,da,li||-1);if(i){for(var r of i)super.add(r);z(this,Ri).v=super.size}Js||be(this,Ir,_c).call(this)}has(i){var r=super.has(i),n=z(this,Cr),a=n.get(i);if(a===void 0){if(!r)return c(z(this,Bt)),!1;a=be(this,Ir,kc).call(this,!0),n.set(i,a)}return c(a),r}add(i){return super.has(i)||(super.add(i),F(z(this,Ri),super.size),Si(z(this,Bt))),this}delete(i){var r=super.delete(i),n=z(this,Cr),a=n.get(i);return a!==void 0&&(n.delete(i),F(a,!1)),r&&(F(z(this,Ri),super.size),Si(z(this,Bt))),r}clear(){if(super.size!==0){super.clear();var i=z(this,Cr);for(var r of i.values())F(r,!1);i.clear(),F(z(this,Ri),0),Si(z(this,Bt))}}keys(){return this.values()}values(){return c(z(this,Bt)),super.values()}entries(){return c(z(this,Bt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return c(z(this,Ri))}};Cr=new WeakMap,Bt=new WeakMap,Ri=new WeakMap,da=new WeakMap,Ir=new WeakSet,kc=function(i){return li===z(this,da)?Y(i):Yt(i)},_c=function(){Js=!0;var i=pa.prototype,r=Set.prototype;for(const n of Ph)i[n]=function(...a){return c(z(this,Bt)),r[n].apply(this,a)};for(const n of zh)i[n]=function(...a){c(z(this,Bt));var o=r[n].apply(this,a);return new pa(o)}};let ea=pa;class Ch{constructor(e,i){oe(this,pn);oe(this,un);fe(this,pn,e),fe(this,un,ao(i))}get current(){return z(this,un).call(this),z(this,pn).call(this)}}pn=new WeakMap,un=new WeakMap;const Ih=/\(.+\)/,jh=new Set(["all","print","screen","and","or","not","only"]);class Ah extends Ch{constructor(e,i){let r=Ih.test(e)||e.split(/[\s,]+/).some(a=>jh.has(a.trim()))?e:`(${e})`;const n=window.matchMedia(r);super(()=>n.matches,a=>Bd(n,"change",a))}}const kl=new Ah("(prefers-reduced-motion: reduce)");function _l(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(a){if(a.key!=="Tab")return;const o=document.activeElement;if(!o)return;const l=e();if(!l.length)return;const[s]=l,d=l[l.length-1];a.shiftKey&&o===s&&(d.focus(),a.preventDefault()),!a.shiftKey&&o===d&&(s.focus(),a.preventDefault())}const r=document.activeElement,[n]=e();return r!=null&&r.matches(":focus-visible")&&(n==null||n.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),r==null||r.focus()}}}function Lh(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Mh=C("<div><!></div>"),Dh=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),qh=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Rh=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Oh=C("<div><!></div>"),Nh=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Fh=C('<div data-testid="modal"><!> <!> <!> <!></div>');function ta(t,e){te(e,!0);const i=V=>{var K=Mh(),X=S(K);xl(X,{onclick:E,"aria-label":"Close",children:(pe,ee)=>{Gn(pe,{})},$$slots:{default:!0}}),Ze(K,pe=>F(h,pe),()=>c(h)),H(()=>ye(K,1,`close ${o()??""}`,"svelte-1rbidhv")),Oe(7,K,()=>I),w(V,K)},r=D(e,"tall",3,!1),n=D(e,"wide",3,!1),a=D(e,"blur",3,!1),o=D(e,"closeButtonStyle",3,"shadow"),l=D(e,"initialScrollPosition",3,0),s=D(e,"pushState",3,!0),d=D(e,"onscroll",3,()=>null),u=D(e,"onclose",3,()=>null),v="#playpilot";let p=Y(0),m=Y(null),g=Y(null),h=Y(null),y=Y(0),b=Y(!1);const _=B(()=>c(p)<Nt);Ge(()=>{var V;c(p)&&F(y,((V=c(g))==null?void 0:V.offsetTop)||0,!0)}),Ge(()=>{setTimeout(()=>{var V;return F(y,((V=c(g))==null?void 0:V.offsetTop)||0,!0)})}),qr("scope","modal"),tt(()=>{const V=Lh();return V.classList.add("playpilot-modal-open"),F(b,!!ac()),s()&&!c(b)&&window.history.pushState({modal:!0},"",v),requestAnimationFrame(k),()=>{var K;V.classList.remove("playpilot-modal-open"),!ac()&&((K=history.state)!=null&&K.modal)&&history.back()}});function k(){const V=window.innerWidth>Nt?c(m):c(g);V==null||V.scrollTo(0,l())}function I(V){return kl.current?si(V,{duration:0}):c(_)?Xr(V,{duration:250,y:window.innerHeight,opacity:1}):yr(V,{duration:150,start:.85})}function E(){u()(),na()}function L(V){V.target===c(m)&&E()}var P=Fh();xe("keydown",Ie,({key:V})=>{V==="Escape"&&E()}),xe("hashchange",Ie,E);let R,M;var N=S(P);{var O=V=>{var K=Dh(),X=S(K);We(X,()=>e.prepend),Oe(7,K,()=>I),w(V,K)};W(N,V=>{e.prepend&&V(O)})}var T=j(N,2);{var x=V=>{var K=qh(),X=S(K);We(X,()=>e.bubble),Oe(7,K,()=>I),w(V,K)};W(T,V=>{e.bubble&&V(x)})}var A=j(T,2);{var q=V=>{var K=Rh(),X=S(K);{var pe=ee=>{{let le=B(()=>[c(g),c(h)]);Th(ee,{get targets(){return c(le)},onpassed:E})}};W(X,ee=>{c(g)&&c(h)&&ee(pe)})}Oe(7,K,()=>I),w(V,K)};W(A,V=>{c(_)&&V(q)})}var U=j(A,2);{var G=V=>{var K=ge(),X=Z(K);We(X,()=>e.dialog),w(V,K)},J=V=>{var K=Nh(),X=Z(K),pe=S(X);{var ee=ne=>{var ke=Oh(),rt=S(ke);xl(rt,{onclick:()=>Zg(),"aria-label":"Back",children:(kt,ut)=>{yt(kt,{direction:"left"})},$$slots:{default:!0}}),H(()=>ye(ke,1,`close back ${o()??""}`,"svelte-1rbidhv")),w(ne,ke)};W(pe,ne=>{c(b)&&ne(ee)})}var le=j(pe,2);We(le,()=>e.children??ft);var Pe=j(le,2);{var Fe=ne=>{i(ne)};W(Pe,ne=>{c(_)||ne(Fe)})}Ze(X,ne=>F(g,ne),()=>c(g));var Be=j(X,2);{var ve=ne=>{i(ne)};W(Be,ne=>{c(_)&&ne(ve)})}xe("scroll",X,function(...ne){var ke;(ke=d())==null||ke.apply(this,ne)}),Oe(7,X,()=>I),w(V,K)};W(U,V=>{e.dialog?V(G):V(J,-1)})}Ze(P,V=>F(m,V),()=>c(m)),mt(P,V=>_l==null?void 0:_l(V)),H(()=>{R=ye(P,1,"modal svelte-1rbidhv",null,R,{wide:n(),tall:r(),"background-blur":a(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),M=Ye(P,"",M,{"--dialog-offset":`${c(y)??""}px`})}),Kr("innerWidth",V=>F(p,V,!0)),ae("click",P,L),Oe(5,P,()=>si,()=>({duration:150})),Oe(6,P,()=>si,()=>({duration:150,delay:100})),w(t,P),ie()}he(["click"]);function wr(t,e){const{onclick:i}=e;function r(n){return n.button!==1?null:(i(n),n)}return t.addEventListener("mouseup",r),{destroy(){t.removeEventListener("mouseup",r)}}}const Xs={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"};var Hh=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Bh=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Vh=C('<button class="button svelte-1mt6g1y"> </button>'),Wh=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),Uh=C('<div class="background svelte-1mt6g1y"></div>'),Gh=C("<!> <!>",1),Yh=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function $s(t,e){te(e,!0),ce(se.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),Zs(en.TopScrollFormat);const i=B(()=>e.campaign.disclaimer),r=B(()=>e.campaign.content),n=B(()=>e.campaign.cta),a=B(()=>c(r).format),o=B(()=>c(r).header),l=B(()=>c(r).header_logo),s=B(()=>c(r).image_uuid),d=B(()=>c(n).header),u=B(()=>c(n).url),v=B(()=>c(a)==="large"),p=B(()=>Ls(c(s),Xs.TopScrollBackground)),m=B(()=>Ls(c(s),Xs.TopScrollContent));let g=Y(0);function h(){ce(se.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var y=Yh();let b,_;var k=S(y),I=S(k);{var E=M=>{var N=Hh();H(()=>{ue(N,"src",c(m)),ue(N,"alt",c(o))}),w(M,N)},L=M=>{var N=Wh(),O=Z(N);{var T=G=>{var J=Bh();H(()=>ue(J,"src",c(l))),w(G,J)};W(O,G=>{c(l)&&G(T)})}var x=j(O,2),A=S(x),q=j(x,2);{var U=G=>{var J=Vh(),V=S(J);H(()=>Q(V,c(d))),w(G,J)};W(q,G=>{c(d)&&G(U)})}H(()=>Q(A,c(o))),w(M,N)};W(I,M=>{c(v)?M(E):M(L,-1)})}var P=j(k,2);{var R=M=>{var N=Gh(),O=Z(N);{var T=q=>{var U=Uh();let G;H(()=>G=Ye(U,"",G,{"--background":`url('${c(p)??""}')`})),w(q,U)};W(O,q=>{c(s)&&q(T)})}var x=j(O,2);{var A=q=>{bl(q,{get disclaimer(){return c(i)}})};W(x,q=>{c(i)&&q(A)})}w(M,N)};W(P,M=>{c(v)||M(R)})}mt(y,(M,N)=>wr==null?void 0:wr(M,N),()=>({onclick:h})),Wi(()=>It(y,"clientWidth",M=>F(g,M))),H(()=>{ue(y,"href",c(u)),b=ye(y,1,"top-scroll svelte-1mt6g1y",null,b,{simple:c(v)}),_=Ye(y,"",_,{"--width":`${c(g)??""}px`})}),ae("click",y,h),w(t,y),ie()}he(["click"]);var Kh=C('<div class="content svelte-r7ubzi"><!></div>'),Zh=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function Qh(t,e){let i=Y(!1);var r=Zh(),n=S(r);We(n,()=>e.children);var a=j(n,2);{var o=l=>{var s=Kh(),d=S(s);We(d,()=>e.content),Oe(1,s,()=>si,()=>({duration:100})),w(l,s)};W(a,l=>{c(i)&&l(o)})}ae("touchstart",r,()=>F(i,!c(i))),xe("mouseenter",r,()=>F(i,!0)),xe("mouseleave",r,()=>F(i,!1)),w(t,r)}he(["touchstart"]);var Jh=C('<div class="info svelte-qcpiki"><!></div>'),Xh=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),$h=C('<span class="name svelte-qcpiki"> </span>'),eg=C('<div class="subheader svelte-qcpiki"> </div>'),tg=C('<div class="action svelte-qcpiki"> </div>'),ig=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),rg=C('<img class="background svelte-qcpiki" alt=""/>'),ng=C('<video class="background svelte-qcpiki" autoplay="" playsinline="" loop=""><source type="video/mp4"/> <track kind="captions"/></video>',2),ag=C('<div class="disclaimer svelte-qcpiki"><!></div>'),lg=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function ec(t,e){te(e,!0);const i=D(e,"compact",3,!1),r=B(()=>e.campaign.disclaimer),n=B(()=>e.campaign.content),a=B(()=>e.campaign.cta),o=B(()=>e.campaign.campaign_type),l=B(()=>c(n).header),s=B(()=>c(n).subheader),d=B(()=>c(n).header_logo),u=B(()=>c(n).image),v=B(()=>c(n).video),p=B(()=>c(a).header),m=B(()=>c(a).url),g=B(()=>c(a).subheader);let h=Y(0);ce(se.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function y(){ce(se.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var b=lg();let _;var k=S(b);{var I=T=>{var x=Jh(),A=S(x);{var q=G=>{Qh(G,{content:V=>{var K=gt();H(()=>Q(K,c(g))),w(V,K)},children:(V,K)=>{var X=gt("Ad");w(V,X)}})},U=G=>{var J=gt();H(()=>Q(J,c(g))),w(G,J)};W(A,G=>{i()?G(q):G(U,-1)})}w(T,x)};W(k,T=>{c(g)&&T(I)})}var E=j(k,2);{var L=T=>{var x=ig(),A=S(x);{var q=ee=>{var le=Xh();H(()=>ue(le,"src",c(d))),w(ee,le)};W(A,ee=>{c(d)&&ee(q)})}var U=j(A,2),G=S(U);{var J=ee=>{var le=$h(),Pe=S(le);H(()=>Q(Pe,c(l))),w(ee,le)};W(G,ee=>{c(l)&&ee(J)})}var V=j(G,2);{var K=ee=>{var le=eg(),Pe=S(le);H(()=>Q(Pe,c(s))),w(ee,le)};W(V,ee=>{c(s)&&ee(K)})}var X=j(U,2);{var pe=ee=>{var le=tg(),Pe=S(le);H(()=>Q(Pe,c(p))),w(ee,le)};W(X,ee=>{c(p)&&ee(pe)})}It(x,"clientHeight",ee=>F(h,ee)),w(T,x)};W(E,T=>{(c(d)||c(l)||c(s)||c(p))&&T(L)})}var P=j(E,2);{var R=T=>{var x=rg();H(()=>ue(x,"src",c(u))),w(T,x)},M=T=>{var x=ng();x.muted=!0;var A=S(x);H(()=>ue(A,"src",c(v))),w(T,x)};W(P,T=>{c(o)==="image"&&c(u)?T(R):c(o)==="video"&&c(v)&&T(M,1)})}var N=j(P,2);{var O=T=>{var x=ag();let A;var q=S(x);bl(q,{get disclaimer(){return c(r)}}),H(()=>A=Ye(x,"",A,{"--offset":`${c(h)??""}px`})),w(T,x)};W(N,T=>{c(r)&&T(O)})}mt(b,(T,x)=>wr==null?void 0:wr(T,x),()=>({onclick:y})),H(()=>{ue(b,"href",c(m)),_=ye(b,1,"display svelte-qcpiki",null,_,{compact:i()})}),ae("click",b,y),w(t,b),ie()}he(["click"]);var og=C('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function sg(t,e){var s,d;te(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",r=(d=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:d.explore_navigation_path;$a();var n=og(),a=S(n);ue(a,"src",i);var o=j(a,4),l=S(o);yt(l,{}),H(()=>ue(n,"href",r)),ae("click",n,()=>ce(se.CardToExploreCta)),w(t,n),ie()}he(["click"]);function cg(t,e){var p,m;te(e,!0);const i=g=>{var h=ge(),y=Z(h);{var b=k=>{$s(k,{get campaign(){return o}})},_=k=>{sg(k,{})};W(y,k=>{o?k(b):k(_,-1)})}w(g,h)},r=g=>{var h=ge(),y=Z(h);{var b=_=>{ec(_,{get campaign(){return l}})};W(y,_=>{l&&_(b)})}w(g,h)},n=D(e,"initialScrollPosition",3,0),a=Dn(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]);qr("modal","title");const o=Jr("top_scroll"),l=Jr("card"),s=(m=(p=window.PlayPilotLinkInjections)==null?void 0:p.config)==null?void 0:m.explore_insert_cta_in_tpi,d=!!o||s&&!document.querySelector(wl);let u=!1;ce(se.TitleModalView,e.title),$r()&&ei(Ft.TitleInterest,{title:e.title.title,source:ji.Card}),tt(()=>{const g=Date.now();return()=>ce(se.TitleModalClose,e.title,{time_spent:Date.now()-g})});function v(){u||(ce(se.TitleModalScroll,e.title),u=!0)}{let g=B(()=>d?i:null),h=B(()=>l?r:null);ta(t,{onscroll:v,get initialScrollPosition(){return n()},get bubble(){return c(g)},get prepend(){return c(h)},tall:!0,children:(y,b)=>{Qn(y,Zr({get title(){return e.title}},()=>a))},$$slots:{default:!0}})}ie()}var dg=C(" <strong> </strong>",1),pg=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),ug=C('<div class="heading subheading svelte-ke01cs" id="credits"> </div>'),vg=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),fg=C('<button class="more svelte-ke01cs"> </button>'),hg=C('<div><div class="heading svelte-ke01cs" id="heading"> </div> <!></div> <div class="content svelte-ke01cs"><!> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function tc(t,e){te(e,!0);const i=D(e,"small",3,!1),r=B(()=>e.participant.name),n=B(()=>e.participant.birth_date),a=B(()=>e.participant.death_date),o=30;let l=Y(De([])),s=Y(1),d=Y(!0),u=Y(!0);tt(p),$t("pixels")&&ei(Ft.ParticipantView,{participant:e.participant.name});function v(T){return new Date(T).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function p(){F(u,!0);try{const T=await Tf(e.participant,{page:c(s)});F(l,[...c(l),...T],!0),F(d,(T==null?void 0:T.length)>=o)}catch{F(d,!1)}finally{F(u,!1),F(s,c(s)+1)}}var m=hg(),g=Z(m);let h;var y=S(g),b=S(y);mt(y,(T,x)=>Te==null?void 0:Te(T,x),()=>2);var _=j(y,2);{var k=T=>{var x=pg(),A=S(x),q=j(A),U=S(q),G=j(q);{var J=V=>{var K=dg(),X=Z(K),pe=j(X),ee=S(pe);H((le,Pe)=>{Q(X,`, ${le??""} `),Q(ee,Pe)},[()=>$("Died On"),()=>v(c(a))]),w(V,K)};W(G,V=>{c(a)&&V(J)})}H((V,K)=>{Q(A,`${V??""} `),Q(U,K)},[()=>$("Born On"),()=>v(c(n))]),w(T,x)};W(_,T=>{c(n)&&T(k)})}var I=j(g,2),E=S(I);{var L=T=>{var x=ug(),A=S(x);mt(x,(q,U)=>Te==null?void 0:Te(q,U),()=>3),H(q=>Q(A,q),[()=>$("Credits")]),w(T,x)};W(E,T=>{i()||T(L)})}var P=j(E,2),R=S(P);Ce(R,17,()=>c(l),je,(T,x)=>{Ns(T,{get title(){return c(x)},get compact(){return i()},onclick:A=>di({event:A,data:c(x)})})});var M=j(R,2);{var N=T=>{var x=ge(),A=Z(x);Ce(A,16,()=>({length:6}),je,(q,U)=>{var G=vg();w(q,G)}),w(T,x)},O=T=>{var x=fg(),A=S(x);H(q=>Q(A,q),[()=>$("Show More")]),ae("click",x,p),w(T,x)};W(M,T=>{c(u)?T(N):c(d)&&T(O,1)})}H(()=>{h=ye(g,1,"header svelte-ke01cs",null,h,{small:i()}),Q(b,c(r))}),w(t,m),ie()}he(["click"]);function gg(t,e){te(e,!0);const i=D(e,"initialScrollPosition",3,0);let r=Y(0);ce(se.ParticipantModalView,null,{participant:e.participant.name}),tt(()=>{const n=Date.now();return()=>ce(se.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-n})}),ta(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(n,a)=>{tc(n,{get participant(){return e.participant}})},$$slots:{default:!0}}),Kr("innerWidth",n=>F(r,n,!0)),ie()}function mg(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(n=>{n.style.viewTransitionName=n.dataset.viewTransitionNew||""})})}var yg=et('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function bg(t){var e=yg();w(t,e)}var wg=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),xg=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),kg=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),_g=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function Sg(t,e){te(e,!0),qr("scope","popover");const i=e.bubble&&mh(en.TopScrollFormat,1),r=B(()=>({duration:kl.current?0:100,y:10}));let n=Y(null),a=Y(!1),o=Y(!0),l=Y(!1),s=Y(0),d=Y(0),u=Y(0);tt(async()=>{await Vr(),v(),await m(),e.append&&requestAnimationFrame(()=>{p(),m()}),await Vr(),h()});function v(){if(!c(n))return;const{top:O,right:T,bottom:x,height:A}=c(n).getBoundingClientRect(),q=g();F(a,O-q<0&&window.innerHeight-x>O+A,!0);const U=window.innerWidth-T-q;T+q>window.innerWidth&&(c(n).style.left=`${U}px`)}function p(){F(o,c(s)>450)}async function m(){if(F(u,0),await new Promise(G=>requestAnimationFrame(G)),!c(n))return;const{top:O,height:T}=c(n).getBoundingClientRect(),x=g(),A=e.append?parseInt(window.getComputedStyle(c(n)).gap):0,q=c(o)?c(d)+A:0,U=c(a)?window.innerHeight-O-x-q:O+T-q-x;F(u,Math.min(U,window.innerHeight*.8),!0)}function g(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function h(){var q;if(!((q=c(n))!=null&&q.firstChild))return;const O=c(n).firstChild,{offsetHeight:T,scrollHeight:x,scrollTop:A}=O;x<=T?F(l,!1):F(l,A+T<x)}var y=_g();let b,_;var k=S(y),I=S(k);We(I,()=>e.children);var E=j(I,2);{var L=O=>{var T=wg(),x=S(T),A=S(x);bg(A),Oe(3,T,()=>si,()=>({duration:100})),w(O,T)};W(E,O=>{c(l)&&O(L)})}var P=j(k,2);{var R=O=>{var T=xg(),x=S(T);We(x,()=>e.bubble),Oe(7,T,()=>Xr,()=>c(r)),w(O,T)};W(P,O=>{e.bubble&&O(R)})}var M=j(P,2);{var N=O=>{var T=kg(),x=S(T);We(x,()=>e.append),Oe(7,T,()=>Xr,()=>c(r)),It(T,"clientHeight",A=>F(d,A)),w(O,T)};W(M,O=>{e.append&&c(o)&&O(N)})}Ze(y,O=>F(n,O),()=>c(n)),H(()=>{b=ye(y,1,"popover svelte-wxwoko",null,b,{flip:c(a),inline:i,"has-bubble":!!e.bubble&&i}),_=Ye(y,"",_,{"--max-height":c(u)?c(u)+"px":null})}),xe("scroll",k,h),Oe(7,k,()=>Xr,()=>c(r)),It(y,"clientHeight",O=>F(s,O)),w(t,y),ie()}var Eg=C('<div class="injection-popover svelte-1laomht" data-playpilot-injection-popover="" role="region" aria-labelledby="heading"><!></div>');function ic(t,e){te(e,!0);const i=v=>{var p=ge(),m=Z(p);{var g=h=>{$s(h,{get campaign(){return a}})};W(m,h=>{a&&h(g)})}w(v,p)},r=v=>{var p=ge(),m=Z(p);{var g=h=>{ec(h,{get campaign(){return o},compact:!0})};W(m,h=>{o&&h(g)})}w(v,p)},n=D(e,"type",3,"title");qr("type",n());const a=Jr("top_scroll"),o=Jr("card");let l=Y(null);n()==="title"&&ce(se.InjectionPopoverView,e.data,{type:n()}),n()==="participant"&&ce(se.InjectionPopoverView,null,{type:n(),participant:e.data.name}),$r()&&n()==="title"&&ei(Ft.TitleInterest,{title:e.data.title,source:ji.Card}),tt(()=>{s();const v=Date.now();return()=>{const p=Date.now()-v;n()==="title"&&ce(se.InjectionPopoverClose,e.data,{type:n(),time_spent:p}),n()==="participant"&&ce(se.InjectionPopoverClose,null,{type:n(),participant:e.data.name,time_spent:p})}});function s(){const v=e.event.target;if(!(v!=null&&v.getClientRects))return;const p=Array.from(v.getClientRects()),g=p.map(y=>y.x).map(y=>Math.abs(y-e.event.clientX)),h=p[g.indexOf(Math.min(...g))];c(l).style.top=h.top+window.scrollY+"px",c(l).style.left=h.left+window.scrollX+"px",c(l).style.height=h.height+"px"}var d=Eg(),u=S(d);{let v=B(()=>o?r:null),p=B(()=>a?i:null);Sg(u,{get append(){return c(v)},get bubble(){return c(p)},children:(m,g)=>{var h=ge(),y=Z(h);{var b=k=>{Qn(k,{get title(){return e.data},small:!0})},_=k=>{tc(k,{get participant(){return e.data},small:!0})};W(y,k=>{n()==="title"?k(b):n()==="participant"&&k(_,1)})}w(m,h)},$$slots:{default:!0}})}Ze(d,v=>F(l,v),()=>c(l)),w(t,d),ie()}let ia=null,Ai=null;function Tg(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Ai&&ra();const i=t.currentTarget;ia=i,setTimeout(()=>{if(ia!==i)return;const r=zl();e.type==="title"?Ai=Ct(ic,{target:r,props:{event:t,type:"title",data:e.title_details}}):e.type==="participant"&&(Ai=Ct(ic,{target:r,props:{event:t,type:"participant",data:e.participant_details}}))},100)}async function ra(t=!0){if(Ai){const e=Ki(Ai,{outro:t});ia=null,Ai=null,await e}document.querySelectorAll("[data-playpilot-injection-popover]").forEach(e=>e.remove())}function Pg(t){if(!Ai)return;const e=t.target;e.hasAttribute("data-playpilot-injection-popover")||e.closest("[data-playpilot-injection-popover]")||e.hasAttribute(pi)||e.closest(ui)||ra()}function zg(){ia=null}function Cg(){return!!Ai}var Ig=C("<!> ",1),jg=C('<div class="back svelte-29uorr"><!></div>'),Ag=C('<!> <div class="close svelte-29uorr"><!></div>',1);function rc(t,e){te(e,!0);const i=D(e,"label",3,""),r=D(e,"onclose",3,()=>null);var n=Ag(),a=Z(n);{var o=d=>{var u=jg(),v=S(u);ci(v,{variant:"link",onclick:()=>{r()(),na()},children:(p,m)=>{var g=Ig(),h=Z(g);yt(h,{direction:"left"});var y=j(h);H(()=>Q(y,` ${i()??""}`)),w(p,g)},$$slots:{default:!0}}),w(d,u)};W(a,d=>{i()&&d(o)})}var l=j(a,2),s=S(l);xl(s,{size:"42px",onclick:()=>{r()(),na()},"aria-label":"Close",children:(d,u)=>{Gn(d,{size:24})},$$slots:{default:!0}}),Oe(7,l,()=>yr),w(t,n),ie()}var Lg=C('<div class="content svelte-c2erhr"><!></div>'),Mg=C("<div><!></div>"),Dg=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),qg=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Rg=C("<!> <!>",1),Og=C('<div><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Ng(t,e){te(e,!0);const i=D(e,"initialIndex",3,0),r=D(e,"onchange",3,()=>null),n=D(e,"onclose",3,()=>null),a=Dn(e,["$$slots","$$events","$$legacy","items","initialIndex","onchange","onclose","each"]),o=300;let l,s=Y(!1);tt(()=>{requestAnimationFrame(()=>{i()!==0&&(l==null||l.setIndex(i())),requestAnimationFrame(()=>{l==null||l.reposition(),F(s,!0)})})});function d(u){r()(u),l.setIndex(u)}ta(t,Zr({blur:!0,get onclose(){return n()}},()=>a,{dialog:v=>{var p=Og(),m=Z(p);let g;Ye(m,"",{},{"--transition-duration":"300ms"});var h=S(m);{const _=(E,L)=>{let P=()=>(L==null?void 0:L()).currentIndex;var R=ge(),M=Z(R);Ce(M,17,()=>e.items,je,(N,O,T)=>{var x=Mg();let A;var q=S(x);{var U=J=>{var V=Lg(),K=S(V);We(K,()=>e.each,()=>c(O),P),Oe(3,V,()=>si,()=>({duration:c(s)?o:0})),w(J,V)},G=B(()=>Math.abs(T-P())===1||P()===T);W(q,J=>{c(G)&&J(U)})}H(()=>A=ye(x,1,"item svelte-c2erhr",null,A,{active:T===P()})),ae("click",x,()=>d(T)),w(N,x)}),w(E,R)},k=(E,L)=>{let P=()=>(L==null?void 0:L()).currentIndex,R=()=>(L==null?void 0:L()).reachedEnd;var M=Rg(),N=Z(M);{var O=A=>{var q=Dg(),U=S(q);yt(U,{size:21,direction:"left",title:"Previous"}),ae("click",q,()=>d(P()-1)),w(A,q)};W(N,A=>{P()>0&&A(O)})}var T=j(N,2);{var x=A=>{var q=qg(),U=S(q);yt(U,{size:21,title:"Next"}),ae("click",q,()=>d(P()+1)),w(A,q)};W(T,A=>{R()||A(x)})}w(E,M)};let I=B(()=>c(s)?o:0);Ze(vl(h,{threshold:40,moveThreshold:40,get transitionDuration(){return c(I)},children:_,controls:k,$$slots:{default:!0,controls:!0}}),E=>l=E,()=>l)}var y=j(m,2),b=S(y);{let _=B(()=>window.location.href.includes("route=modal")?$("Explore All Movies And Shows"):"");rc(b,{get onclose(){return n()},get label(){return c(_)}})}H(()=>g=ye(m,1,"rail-modal svelte-c2erhr",null,g,{initialized:c(s)})),w(v,p)},$$slots:{dialog:!0}})),ie()}he(["click"]);function Fg(t,e){te(e,!0);const i=D(e,"initialIndex",3,0),r=D(e,"onclose",3,()=>null),n=Dn(e,["$$slots","$$events","$$legacy","titles","initialIndex","onclose"]);Ng(t,Zr({get items(){return e.titles},get initialIndex(){return i()},get onclose(){return r()},onchange:o=>ce(se.ExploreTitleRailSetIndex,e.titles[o],{index:o})},()=>n,{each:(o,l=ft,s=ft)=>{{let d=B(()=>{var u;return l().sid===((u=e.titles[s()])==null?void 0:u.sid)});Qn(o,{get title(){return l()},get useVideoBackground(){return c(d)}})}},$$slots:{each:!0}})),ie()}var Hg=C('<div class="arrow svelte-5maid2"><!></div>'),Bg=C('<div class="content svelte-5maid2"><div class="header svelte-5maid2"><div class="heading svelte-5maid2"> </div> <!></div> <div class="details svelte-5maid2"><!> <div class="playlinks-heading svelte-5maid2"> </div> <!> <!></div></div> <!> <div class="gradient svelte-5maid2"></div> <!>',1),Vg=C('<div class="item svelte-5maid2"><!></div>'),Wg=C('<div class="slider svelte-5maid2"><!></div> <!>',1),Ug=C('<div class="reel svelte-5maid2"><!></div>');function Gg(t,e){te(e,!0);const i=D(e,"onclose",3,()=>null);let r=null;tt(()=>(a(0),()=>{r&&clearInterval(r)}));function n(s){a(s),ce(se.ExploreTitleReelSetIndex,e.titles[s],{index:s})}function a(s){[e.titles[s-1],e.titles[s+1]].forEach(u=>{window.dispatchEvent(new CustomEvent("pauseembed",{detail:u==null?void 0:u.embeddable_url}))});const d=e.titles[s];r&&clearInterval(r),r=setInterval(()=>{window.dispatchEvent(new CustomEvent("playembed",{detail:d==null?void 0:d.embeddable_url}))},500)}var o=Ug(),l=S(o);ta(l,{dialog:d=>{var u=Wg(),v=Z(u),p=S(v);vl(p,{vertical:!0,threshold:50,moveThreshold:10,onchange:n,children:(h,y)=>{let b=()=>(y==null?void 0:y()).currentIndex,_=()=>(y==null?void 0:y()).setIndex;var k=ge(),I=Z(k);Ce(I,17,()=>e.titles,je,(E,L,P)=>{var R=Vg(),M=S(R);{var N=T=>{var x=Bg(),A=Z(x),q=S(A),U=S(q),G=S(U);mt(U,(ne,ke)=>Te==null?void 0:Te(ne,ke),()=>2);var J=j(U,2);Us(J,{get title(){return c(L)}});var V=j(q,2),K=S(V);{var X=ne=>{Vs(ne,{get text(){return c(L).description},get blurb(){return c(L).blurb},limit:80})};W(K,ne=>{c(L).description&&ne(X)})}var pe=j(K,2),ee=S(pe);mt(pe,(ne,ke)=>Te==null?void 0:Te(ne,ke),()=>3);var le=j(pe,2);gl(le,{get playlinks(){return c(L).providers},size:24});var Pe=j(le,2);Bs(Pe,{get playlinks(){return c(L).providers}});var Fe=j(A,2);Ws(Fe,{get title(){return c(L)},useVideoBackground:!0,autoplay:!1,inline:!0});var Be=j(Fe,4);{var ve=ne=>{var ke=Hg(),rt=S(ke);yt(rt,{direction:"down",size:24}),w(ne,ke)};W(Be,ne=>{P===0&&b()===0&&ne(ve)})}H(ne=>{Q(G,c(L).title),Q(ee,ne)},[()=>$("Where To Stream Online")]),w(T,x)},O=B(()=>Math.abs(P-b())<=2||b()===P);W(M,T=>{c(O)&&T(N)})}ae("click",R,()=>_()(P)),w(E,R)}),w(h,k)},$$slots:{default:!0}});var m=j(v,2);{let g=B(()=>$("Explore All Movies And Shows"));rc(m,{get onclose(){return i()},get label(){return c(g)}})}w(d,u)},$$slots:{dialog:!0}}),w(t,o),ie()}he(["click"]);const it=[];function di({type:t="title",event:e=null,injection:i=null,data:r=null,scrollPosition:n=0,returnToTitle:a=null,props:o={}}={}){if(e&&ws(e))return;e==null||e.preventDefault(),it!=null&&it.length&&Sl();const l=zl(),s={initialScrollPosition:n,...o},d=Yg({type:t,target:l,data:r,props:s});a&&nc({type:t,injection:i,data:a}),nc({type:t,injection:i,data:r,scrollPosition:n,component:d})}function Yg({type:t="title",target:e,data:i,props:r={}}){return t==="participant"?Ct(gg,{target:e,props:{participant:i,...r}}):t==="titles-rail"?Ct(Fg,{target:e,props:{titles:i,...r}}):t==="titles-reel"?Ct(Gg,{target:e,props:{titles:i,...r}}):Ct(cg,{target:e,props:{title:i,...r}})}function nc({type:t="title",injection:e=null,data:i,scrollPosition:r=0,component:n}){it.push({type:t,injection:e,data:i,scrollPosition:r,component:n})}function Sl(t=!0){it.length&&(Qg(),Ki(it[it.length-1].component,{outro:t}))}function Kg(t=!0){Sl(t),it.pop()}function na(t=!0){for(Sl(t);it.length>0;)it.pop()}function ac(){return it[it.length-2]||null}function Zg(){if(it.length<2)return;Kg();const t=it.pop();t&&di({...t})}function Qg(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Nt?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(it[it.length-1].scrollPosition=e.scrollTop)}function Jg(t,e){if(ws(t))return;let i=t.target;if(!i||(i.hasAttribute(pi)||(i=i.closest(ui)),!i))return;const r=i.getAttribute(pi);if(!r)return;const n=e.find(a=>r===a.key);n&&(t.preventDefault(),mg(()=>{const a=n.title_details||n.participant_details;ra(!1),di({event:t,injection:n,data:a,type:n.type})},!kl.current&&window.innerWidth>=Nt&&!window.matchMedia("(pointer: coarse)").matches))}var Xg=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),$g=C('<!> <a target="_blank"> </a>',1),em=C(" <!>.",1),tm=C("<!> <br/>",1),im=C(" <br/>",1),rm=C('<span class="svelte-1to4glm"><!></span>'),nm=C('<p class="svelte-1to4glm"></p>');function am(t,e){te(e,!0);const i=D(e,"onclickmodal",3,()=>null);function r(s,d){ce(se.AfterArticlePlaylinkClick,s,{playlink:d})}function n(s,d,u){ce(se.AfterArticleModalButtonClick,d),i()(s,u)}var a=ge(),o=Z(a);{var l=s=>{var d=nm();Ce(d,21,()=>e.linkInjections,je,(u,v)=>{const p=B(()=>{const{key:_,title:k,title_details:I,after_article_style:E}=c(v);return{key:_,title:k,title_details:I,after_article_style:E}}),m=B(()=>{var _;return((_=c(p).title_details)==null?void 0:_.providers)||[]});var g=rm(),h=S(g);{var y=_=>{var k=tm(),I=Z(k);{var E=P=>{var R=Xg(),M=Z(R),N=j(M),O=S(N),T=S(O);H((x,A)=>{Q(M,`"${c(p).title??""}" ${x??""} `),Q(T,A)},[()=>$("Is Available To Stream"),()=>$("View Streaming Options")]),ae("click",N,x=>x.stopPropagation()),ae("click",O,x=>n(x,c(p).title_details,c(v))),w(P,R)},L=P=>{var R=em(),M=Z(R),N=j(M);Ce(N,17,()=>c(m),je,(O,T,x)=>{let A=()=>c(T).name,q=()=>c(T).url;var U=$g(),G=Z(U);{var J=X=>{var pe=gt();H(ee=>Q(pe,ee),[()=>x===c(m).length-1?`, ${$("And")}`:","]),w(X,pe)};W(G,X=>{x&&X(J)})}var V=j(G,2),K=S(V);H(()=>{ue(V,"href",q()),Q(K,A())}),ae("click",V,()=>r(c(p).title_details,A())),w(O,U)}),H(O=>Q(M,`"${c(p).title??""}" ${O??""} `),[()=>$("Is Available To Stream On")]),w(P,R)};W(I,P=>{c(p).after_article_style==="modal_button"?P(E):P(L,-1)})}w(_,k)},b=_=>{var k=im(),I=Z(k);H(E=>Q(I,`"${c(p).title??""}" ${E??""} `),[()=>$("Title Unavailable Suffix")]),w(_,k)};W(h,_=>{c(m).length?_(y):_(b,-1)})}H(()=>ue(g,"data-playpilot-injection-key",c(p).key)),w(u,g)}),w(s,d)};W(o,s=>{e.linkInjections.length&&s(l)})}w(t,a),ie()}he(["click"]);let tn=null;function lm(t,e){var o,l;if(tn||!e.length)return;const i=document.createElement("div"),r=(o=window.PlayPilotLinkInjections)==null?void 0:o.after_article_selector,n=(r?document.querySelector(r):null)||t[t.length-1],a=((l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",n.insertAdjacentElement(a,i),tn=Ct(am,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>di({event:s,injection:d,data:d.title_details})}})}function om(){var t;tn&&(Ki(tn),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),tn=null)}var sm=C('<p class="svelte-1epbbn0"> </p>');function cm(t,e){te(e,!1),$a();var i=sm(),r=S(i);H(n=>Q(r,n),[()=>{var n,a;return((a=(n=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:a.in_text_disclaimer_text)||$("In-Text Disclaimer")}]),w(t,i),ie()}let rn=null;function dm(t){var a,o,l,s,d,u;if(!((o=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)!=null&&o.in_text_disclaimer_enabled)||rn)return;const e=document.createElement("div"),i=(s=(l=window.PlayPilotLinkInjections)==null?void 0:l.config)==null?void 0:s.in_text_disclaimer_selector,r=(i?document.querySelector(i):null)||t[0],n=((u=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:u.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",r.insertAdjacentElement(n,e),rn=Ct(cm,{target:e})}function pm(){var t;rn&&(Ki(rn),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),rn=null)}var um=C('<div class="widget svelte-l6zazf" data-testid="widget"><!></div>');function vm(t,e){te(e,!0);let i=Y(null);const r=B(()=>{var s,d;return((d=(s=c(i))==null?void 0:s.parentNode)==null?void 0:d.dataset.heading)||$("Mentioned In This Article")}),n=B(()=>{const s=[];return e.linkInjections.forEach(d=>{const u=d.title_details;u&&(s.some(v=>v.sid===u.sid)||s.push(u))}),s});var a=ge(),o=Z(a);{var l=s=>{var v,p;var d=um(),u=S(d);Zn(u,{get titles(){return c(n)},get heading(){return c(r)},navigateToExplore:!!((p=(v=window.PlayPilotLinkInjections)==null?void 0:v.config)!=null&&p.open_tpi_links_in_explore),onclick:m=>ce(se.WidgetArticleRailTitleClick,m)}),Ze(d,m=>F(i,m),()=>c(i)),w(s,d)};W(o,s=>{c(n).length&&s(l)})}w(t,a),ie()}const fm={"tpi-rail":vm},hm="[data-playpilot-widget]";let El=[];function gm(t){if(lc(),!t.length)return;document.querySelectorAll(hm).forEach(i=>{const r=i.dataset.playpilotWidget||"",n=fm[r];if(!n)return;const a=Ct(n,{target:i,props:{linkInjections:t}});El.push(a)})}function lc(){El.forEach(t=>Ki(t)),document.querySelectorAll("[data-playpilot-widget]").forEach(t=>t.innerHTML=""),El=[]}const pi="data-playpilot-injection-key",ui=`[${pi}]`;function mm(t,e={aiInjections:[],manualInjections:[]}){Pl(),_m();const i=Sm(e);if(!i.length)return[];const r=Ii(t.map(d=>d.innerText).join(" ")),a=Tm(i).filter(d=>r.includes(Ii(d.sentence))),o={};let l=-1;for(const d of zm(a)){l++;const u=t.findIndex(I=>Ii(I.innerText).includes(Ii(d.sentence))),v=t[u];if(!v)continue;const p=gs(d.title,v,["A"]);if(!(p!=null&&p.nodeValue)||ms(p)){const I=gs(d.title,v);if(I&&ms(I)){o[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:m,linkElement:g}=ym(d);let h=-1,y=!1;Fn(v.innerHTML,d.title)===1&&(h=v.innerHTML.indexOf(d.title));const{phrase_before:_,phrase_after:k}=bm(v,d);if(h===-1&&(_||k)){const I=[_,d.title,k].filter(Boolean).join(" ");if(h=v.innerHTML.indexOf(I),h===-1){const E=Bp(v.innerHTML,d.title,_||"",k||"");if(E){const{leadingSpaces:L,trailingSpaces:P}=Vp(E.match);g.innerHTML=E.match.trim();const R=E.index+L,M=E.index+E.match.length-P;if(v.innerHTML.slice(R,M).includes("href="))continue;Tl(v.innerHTML,d.title,v,m,R,M)&&(h=E.index,y=!0)}}}if(h===-1&&(p!=null&&p.nodeValue)){const I=v.innerHTML.indexOf(p.nodeValue),E=v.innerHTML.indexOf(d.sentence),L=E===-1?v.innerHTML.indexOf(d.sentence.slice(0,20)):-1,P=d.sentence.split(" ")[0],M=Fn(v.innerHTML,P)===1?v.innerHTML.indexOf(P):-1,N=Dp(a.slice(0,l+1),d,["title","sentence"])-1,O=Wp(p.nodeValue,v,N);h=Math.max(I,L,O,M,E,0)}if(h!==-1&&!y&&!Tl(v.innerHTML,d.title,v,m,h)){const I=Gp(d.title,v.innerHTML);I>-1?Tl(v.innerHTML,d.title,v,m,I):o[d.key]="Injection would have lead to broken HTML."}}xm(a),wm();const s=Pm(i);return s.length&&lm(t,s),document.querySelector(ui)&&dm(t),gm(a),i.filter(d=>pc(d)).map((d,u)=>{const v=!d.manual&&Cm(d,u,i),p=d.duplicate??v;p&&(o[d.key]=v?"Injection was manually removed.":"Injection was marked as duplicate.");const m=document.querySelector(`[${pi}="${d.key}"]`),g=sc(d)&&!d.inactive&&!d.removed&&!d.after_article&&!m,h=a.find(b=>b.key===d.key),y=g?o[d.key]||(h?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:p,failed:g,failed_message:y,matchingElement:m}})}function ym(t){var a,o,l;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=!!((o=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)!=null&&o.open_tpi_links_in_explore),r=i?qs(t.title_details):Ds(t.title_details),n=document.createElement("a");return n.dataset.playpilotPosterUrl=(l=t.title_details)==null?void 0:l.standing_poster,n.innerText=t.title,n.href=r,n.target=i?"":"_blank",n.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",n),{injectionElement:e,linkElement:n}}function Tl(t,e,i,r,n,a=-1){const o=u=>Array.from(u.querySelectorAll(`a, ${ui}`)).filter(v=>!v.innerText).length,l=document.createElement("div");l.innerHTML=t;const s=o(l),d=l.innerText;return a>0?l.innerHTML=Np(t,r.outerHTML,n,a):l.innerHTML=Op(t,e,r.outerHTML,n),Math.abs(l.innerText.length-d.length)>1||s!=o(l)?!1:(i.innerHTML=l.innerHTML,!0)}function bm(t,e){const{phrase_before:i,phrase_after:r}=e;if(i||r)return{phrase_before:i,phrase_after:r};if(Fn(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const a=t.innerText.indexOf(e.title),o=Fp(t,a,a+e.title.length);return{phrase_before:o.before,phrase_after:o.after}}function wm(){const t=Array.from(document.querySelectorAll(`${ui} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const r=getComputedStyle(i);for(const n of e)r.getPropertyValue(n)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${n}`)}}function xm(t){window.addEventListener("mousemove",Pg),window.addEventListener("click",i=>{var r,n;(n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)!=null&&n.open_tpi_links_in_explore||Jg(i,t)}),document.querySelectorAll(ui).forEach(i=>{const r=i.dataset.playpilotInjectionKey,n=t.find(a=>r===a.key);n&&(i.addEventListener("mouseenter",a=>{Cg()||Tg(a,n)}),i.addEventListener("mouseleave",zg))})}function Pl(){document.querySelectorAll(ui).forEach(e=>km(e.getAttribute(pi)||"")),om(),pm(),lc(),na(!1),ra(!1)}function km(t){var n;const e=document.querySelector(`[${pi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(a=>a.remove());const r=(n=e.querySelector("a"))==null?void 0:n.innerHTML;e.outerHTML=r||""}function _m(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ui)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function Sm({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Em(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function oc(t){return!t.inactive&&!t.removed&&!t.duplicate&&pc(t)&&sc(t)}function sc(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function Tm(t){return cc(t).filter(e=>e.in_text!==!1&&oc(e))}function Pm(t){return cc(t).filter(e=>e.after_article===!0&&oc(e))}function cc(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&dc(i,e)))}function zm(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const r=i.title.length-e.title.length;return r!==0?r:0})}function Cm(t,e,i){return i.some((r,n)=>e!==n&&r.manual&&dc(r,t))}function dc(t,e){return t.title===e.title&&Ii(t.sentence)===Ii(e.sentence)}function pc(t){return!!(t.type==="title"&&t.title_details||t.type==="participant"&&t.participant_details)}function zl(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Im(){const t=Ci();if(!t)throw new Error("No token was provided");try{return await await Xt(`/domains/config?api-token=${t}`)||null}catch{return null}}he(["click"]),he(["input"]),he(["click"]),he(["click"]),he(["click"]),he(["mousedown","touchstart"]),he(["mousedown","touchstart"]),he(["click"]),he(["click"]),he(["click"]),he(["click"]),he(["click"]),he(["click"]);function jm(t,e){te(e,!0),tt(()=>{if(!$r())return;const r=new IntersectionObserver(n=>{n.forEach(a=>{if(!a.isIntersecting)return;r.unobserve(a.target);const o=a.target.getAttribute(pi),l=e.linkInjections.find(d=>d.key===o),s=l==null?void 0:l.title_details;!o||!l||!s||i(s)})});return e.linkInjections.forEach(n=>{n.matchingElement&&r.observe(n.matchingElement)}),()=>r.disconnect()});function i({genres:r,participants:n,providers:a,title:o}){ei(Ft.TitleInterest,{title:o,source:ji.Link}),r.slice(0,3).forEach(l=>{var s;ei(Ft.GenreInterest,{genre:(s=Bn.find(d=>d.slug===l))==null?void 0:s.name,source:ji.Link})}),n==null||n.slice(0,5).forEach(l=>{ei(Ft.ParticipantInterest,{participant:l.name,source:ji.Link})}),a==null||a.forEach(l=>{ei(Ft.ProviderInterest,{provider:l.name,source:ji.Link})})}ie()}function Am(t,e){te(e,!1);const i=Array.from(document.querySelectorAll(ui)),r=[],n=Date.now();let a=!1,o=null;tt(()=>{if(!Rn())return l(),()=>{var v;return(v=o==null?void 0:o.disconnect)==null?void 0:v.call(o)}});function l(){o=new IntersectionObserver(s),i.forEach(v=>{o.observe(v)})}function s(v){v.forEach(p=>{if(!p.isIntersecting)return;const m=p.target.getAttribute(pi);m&&r.push(m),o.unobserve(p.target)})}function d(){const{scrollHeight:v,scrollTop:p,clientHeight:m}=document.documentElement;return p/(v-m)*100}function u(){var p,m;if(a||document.visibilityState!=="hidden")return;a=!0;const v=Date.now();ce(se.UserLeft,null,{time_start:n,time_end:v,time_spent:v-n,existing_injections_count:i.length,shown_injections_count:r.length,fired_events:((m=(p=window.PlayPilotLinkInjections)==null?void 0:p.tracked_events)==null?void 0:m.map(g=>g.event))||[],scroll_percentage:d()})}$a(),xe("visibilitychange",Ie,u),ie()}function Lm(t,e){te(e,!0);const i=100;let r=1;n();function n(){if(window.PlayPilotLinkInjections.require_consent===!1){a();return}if(!window.__tcfapi){r<i&&setTimeout(n,100),r++;return}window.__tcfapi("addEventListener",2,(o,l)=>{if(!l)return;const{purpose:s,eventStatus:d}=o;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const u=v=>s.consents[v]===!0;Yp({ads:u(1),pixels:u(1)&&u(7),split_tests:u(9)&&u(10),tracking:u(7)&&u(8),affiliate:u(1)&&u(7)}),a()})}function a(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ie()}var Mm=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Dm=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),qm=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Rm=C('<button class="svelte-1tp7i1s"></button>'),Om=C("<small>You are using the beta version of TPI</small>"),Nm=C('<button class="svelte-1tp7i1s">Use beta script</button>'),Fm=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Hm=C("<option> </option>"),Bm=C('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function Vm(t,e){te(e,!0);const i=["tpidebug","debugtpi"],r=[],n=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let a=Y(De(d())),o=Y(!1),l=null,s=Y(184);qn(()=>{l&&clearInterval(l)});function d(){var E,L,P,R,M,N;const b=window.PlayPilotLinkInjections,_=((E=b.evaluated_link_injections)==null?void 0:E.filter(O=>!O.failed))||[],k=((L=b.evaluated_link_injections)==null?void 0:L.filter(O=>O.failed))||[],I=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:b.domain_sid},{label:"Organization",data:b.organization_sid},{label:"HTML selector",data:b.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([O,T])=>({label:O,data:T})),[`Succesful injections (${_.length})`]:_.map(O=>({label:O.title,data:O.sentence})),[`Failed injections (${k.length})`]:k.map(O=>({label:O.title,data:`Reason: ${O.failed_message} | Sentence: ${O.sentence}`})),[`Fetched ads (${((P=b.ads)==null?void 0:P.length)||0})`]:(R=b.ads)==null?void 0:R.map(O=>({label:O.campaign_name,data:O})),[`Tracking events (${((M=b.tracked_events)==null?void 0:M.length)||0})`]:(N=b.tracked_events)==null?void 0:N.map(O=>({label:O.event,data:O.payload})),[`Visible pixels (${I.length})`]:I.map((O,T)=>({label:T+1,data:O.src}))}}function u(b){c(o)||(r.push(b.key),F(o,i.some(_=>r.slice(r.length-_.length,r.length).join("")===_),!0),l=setInterval(()=>F(a,d(),!0),200))}function v(b){window.PlayPilotLinkInjections.ads.unshift({campaign_format:b,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function p(b){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(en).forEach(({key:_,numberOfVariants:k})=>{const I=1/k;window.PlayPilotLinkInjections.split_test_identifiers[_]=Math.min(I*b,1)})}function m(){var k,I;const b=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!b)return;(I=(k=window.PlayPilotLinkInjections)==null?void 0:k.destroy)==null||I.call(k);const _=document.createElement("script");for(const E of b.attributes)_.setAttribute(E.name,E.value);_.getAttribute("onload")||_.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),_.src=b.src.replace("link-injection","link-injection@next"),b.insertAdjacentElement("afterend",_),b.remove()}var g=ge();xe("keydown",Ie,u);var h=Z(g);{var y=b=>{var _=Bm(),k=j(S(_),4);{var I=ve=>{var ne=Mm();w(ve,ne)},E=B(()=>{var ve,ne,ke;return!!((ve=window.PlayPilotLinkInjections.config)!=null&&ve.exclude_urls_pattern&&Zi().match((ke=(ne=window.PlayPilotLinkInjections)==null?void 0:ne.config)==null?void 0:ke.exclude_urls_pattern))});W(k,ve=>{c(E)&&ve(I)})}var L=j(k,2);Ce(L,17,()=>Object.entries(c(a)),je,(ve,ne)=>{var ke=B(()=>Oi(c(ne),2));let rt=()=>c(ke)[0],kt=()=>c(ke)[1];var ut=qm(),nt=S(ut),gi=S(nt),mi=j(nt,2);{var jr=qe=>{var re=ge(),Ee=Z(re);{var _e=Le=>{var vt=ge(),Km=Z(vt);Ce(Km,17,kt,je,(Zm,hc,c1,d1)=>{let Qm=()=>c(hc).label,Jm=()=>c(hc).data;var gc=Dm(),mc=S(gc),Xm=S(mc),$m=j(mc,2),e1=S($m);H(t1=>{Q(Xm,Qm()),Q(e1,t1)},[()=>JSON.stringify(Jm())]),w(Zm,gc)}),w(Le,vt)},at=B(()=>Array.isArray(kt()));W(Ee,Le=>{c(at)&&Le(_e)})}w(qe,re)},Qe=qe=>{var re=gt("No data");w(qe,re)};W(mi,qe=>{var re;(re=kt())!=null&&re.length?qe(jr):qe(Qe,-1)})}H(()=>Q(gi,rt())),w(ve,ut)});var P=j(L,4),R=j(P,2),M=j(R,6);Ce(M,16,()=>({length:4}),je,(ve,ne,ke)=>{var rt=Rm();rt.textContent=ke,ae("click",rt,()=>p(ke)),w(ve,rt)});var N=j(M,4),O=j(N,2),T=j(O,4),x=j(T,2);{var A=ve=>{var ne=Om();w(ve,ne)},q=ve=>{var ne=Nm();ae("click",ne,m),w(ve,ne)};W(x,ve=>{n?ve(A):ve(q,-1)})}var U=j(x,2);{var G=ve=>{var ne=Fm();ae("click",ne,()=>{$n(),window.PlayPilotLinkInjections.config.explore_use_router=!br(),Xn()}),w(ve,ne)},J=B(()=>!br());W(U,ve=>{c(J)&&ve(G)})}var V=j(U,4),K=j(S(V),2);up(K,window.PlayPilotLinkInjections.region);var X=j(V,2),pe=j(S(X),2);Ce(pe,21,()=>Object.entries(f),je,(ve,ne)=>{var ke=B(()=>Oi(c(ne),2));let rt=()=>c(ke)[0],kt=()=>c(ke)[1];var ut=Hm(),nt=S(ut),gi={};H(mi=>{ts(ut,mi),Q(nt,rt()),gi!==(gi=kt())&&(ut.value=(ut.__value=kt())??"")},[()=>kt()===gr()]),w(ve,ut)});var ee=j(X,4),le=j(S(ee),2);ue(le,"min",80),ue(le,"max",240),ue(le,"step",8);var Pe=j(le,2),Fe=S(Pe),Be=j(ee,4);H(()=>Q(Fe,c(s))),ae("click",P,()=>v("card")),ae("click",R,()=>v("top_scroll")),ae("click",N,()=>console.log(Qr(window.PlayPilotLinkInjections.config))),ae("click",O,()=>console.log(Qr(window.PlayPilotLinkInjections.config).pageText)),ae("click",T,function(...ve){var ne;(ne=e.onrerender)==null||ne.apply(this,ve)}),ae("change",K,ve=>{$n(),window.PlayPilotLinkInjections.region=ve.target.value,Xn()}),ae("change",pe,ve=>{$n(),window.PlayPilotLinkInjections.language=ve.target.value,Xn()}),ae("input",le,()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${c(s)}px`)),Yr(le,()=>c(s),ve=>F(s,ve)),ae("click",Be,()=>F(o,!1)),w(b,_)};W(h,b=>{c(o)&&b(y)})}w(t,g),ie()}he(["click","change","input"]);function Wm(t,e){te(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),r=new ea,n=.7,a="[data-playpilot-poster]";let o=Y(0),l={},s=null;const d=B(()=>c(o)<Nt);qn(m);function u(){var k,I;if((I=(k=window.PlayPilotLinkInjections)==null?void 0:k.config)!=null&&I.disable_scroll_reveal_posters||!c(d))return;g();const h=window.innerHeight,y=new ea,b=h*n,_=h-b;for(const E of i){const{top:L}=E.getBoundingClientRect();L<b&&L>_&&y.add(E)}for(const E of y){if(r.has(E))continue;const L=E.dataset.playpilotPosterUrl;L in l&&l[L]!==E||(v(E,L),r.add(E),l[L]=E)}}function v(h,y){const b=document.createElement("img");b.classList.add("playpilot-floating-poster"),b.dataset.playpilotPoster="",b.src=y,b.alt="",b.onload=()=>b.classList.add("loaded"),h.insertAdjacentElement("afterbegin",b)}function p(h){const y=h.querySelector(a);y&&(y.classList.add("animating-out"),setTimeout(()=>y.remove(),500))}function m(){for(const h of Array.from(document.querySelectorAll(a)))h.remove()}function g(){s&&clearTimeout(s),s=setTimeout(()=>{for(const h of r)p(h),r.delete(h),l={}},1e3)}xe("scroll",Ie,u),Kr("innerWidth",h=>F(o,h,!0)),ie()}var Um=C("<!> <!>",1),Gm=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!> <!>',1);function Ym(t,e){te(e,!0);let i=Y(null),r=Y(De(Rn()));cs();let n=Y(!1),a=Y(!0),o=Y(!0),l=Y(De([]));const s=B(()=>c(i)||{}),d=B(()=>ma(c(s).ai_injections,()=>[],!0)),u=B(()=>ma(c(s).manual_injections,()=>[],!0)),v=m();Ge(()=>{c(r)&&!c(a)&&g()}),Xn(),qn(Pl);async function p(){Hn()||(await v,$p(),ce(se.ArticlePageView),!(!c(d).length&&!c(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await _s())))}async function m(){var T;F(a,!0);try{c(r)&&F(n,await ss({throwError:!0}),!0)}catch{ce(se.AuthFailed)}try{const x=window.PlayPilotLinkInjections.config||await Im()||{};if(window.PlayPilotLinkInjections.config=x,x!=null&&x.custom_style&&y(x.custom_style||""),x!=null&&x.explore_navigation_selector&&_h(),x!=null&&x.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),x!=null&&x.domain_sid&&ks({organizationSid:x.organization_sid,domainSid:x.domain_sid}),F(o,Ap(x),!0),c(o))return;x!=null&&x.html_selector&&(window.PlayPilotLinkInjections.selector=x==null?void 0:x.html_selector)}catch(x){ce(se.FetchingConfigFailed),console.error("TPI Config failed to fetch",x);return}try{if(await(async x=>{var A=Oi(x,1);F(i,A[0],!0)})(await Promise.all([await(window.PlayPilotLinkInjections.initial_link_injections_promise||fs({maxTries:1,runAiWhenRelevant:!Hn()})),await mr()])),F(a,!1),!c(i)||(T=window.PlayPilotLinkInjections.config)!=null&&T.disable_public_injections&&!(c(r)&&c(n)))return;if(ks({organizationSid:c(i).organization_sid,domainSid:c(i).domain_sid}),!c(i).ai_running||!c(i).ai_enabled){h({aiInjections:c(d),manualInjections:c(u)});return}if(!c(r)||Hn())return;F(i,await fs({requireCompletedResult:!0,onpoll:x=>F(i,x,!0)}),!0),h({aiInjections:c(d),manualInjections:c(u)})}catch(x){console.error(x),ce(se.InjectionError,null,{message:x.message})}}function g(){h(Em(c(l)))}function h(T={aiInjections:c(d),manualInjections:c(u)}){const{elements:x}=Qr(),A=mm(x,T);JSON.stringify(A)!==JSON.stringify(c(l))&&(F(l,A,!0),window.PlayPilotLinkInjections.evaluated_link_injections=A),c(r)||b(A)}function y(T){const x="playpilot-custom-style",A=document.getElementById(x),q=A||document.createElement("style");q.textContent=`body { ${T} }`,q.id=x,A||document.body.appendChild(q)}function b(T){const x=T.filter(q=>!q.failed),A=T.filter(q=>q.failed);if(x.length&&ce(se.ArticleInjected,null,{manual:x.filter(q=>q.manual).length,ai:x.filter(q=>!q.manual).length}),A.length){const q=U=>A.filter(({failed_message:G})=>G==null?void 0:G.includes(U)).length;ce(se.FailedInjectionsCount,null,{total:A.length,sentence_not_found:q("sentence was not found"),already_linked:q("already inside of a link"),broken_html:q("broken HTML"),duplicate:q("duplicate"),unknown:q("unknown reasons")})}}var _=Gm(),k=Z(_),I=S(k);W(I,T=>{});var E=j(I,2);Vm(E,{onrerender:g});var L=j(k,2);{var P=T=>{hl(T,{get pixels(){return c(i).pixels}})};W(L,T=>{var x,A;(A=(x=c(i))==null?void 0:x.pixels)!=null&&A.length&&T(P)})}var R=j(L,2);{var M=T=>{jm(T,{get linkInjections(){return c(l)}})};W(R,T=>{c(l).length&&T(M)})}var N=j(R,2);Wr(N,()=>c(l),T=>{var x=Um(),A=Z(x);Am(A,{});var q=j(A,2);Wm(q,{}),w(T,x)});var O=j(N,2);Lm(O,{onchange:p}),w(t,_),ie()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Ct(Ym,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),Pl()}}})();