an.tv Open in urlscan Pro
110.239.64.56  Public Scan

URL: https://an.tv/_next/static/chunks/446-21303ba5492833799eaa.js
Submission: On November 21 via api from US — Scanned from GB

Form analysis 0 forms found in the DOM

Text Content

"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[446],{4561:function(e,t,r){var n=r(7294),o=function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};var l=function(e){var t=e.animate,r=e.animateBegin,l=e.backgroundColor,i=e.backgroundOpacity,a=e.baseUrl,u=e.children,c=e.foregroundColor,s=e.foregroundOpacity,d=e.gradientRatio,f=e.gradientDirection,p=e.uniqueKey,m=e.interval,g=e.rtl,h=e.speed,v=e.style,y=e.title,E=e.beforeMask,b=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["animate","animateBegin","backgroundColor","backgroundOpacity","baseUrl","children","foregroundColor","foregroundOpacity","gradientRatio","gradientDirection","uniqueKey","interval","rtl","speed","style","title","beforeMask"]),w=p||Math.random().toString(36).substring(6),C=w+"-diff",T=w+"-animated-diff",P=w+"-aria",k=g?{transform:"scaleX(-1)"}:null,R="0; "+m+"; 1",D=h+"s",O="top-bottom"===f?"rotate(90)":void 0;return(0,n.createElement)("svg",o({"aria-labelledby":P,role:"img",style:o(o({},v),k)},b),y?(0,n.createElement)("title",{id:P},y):null,E&&(0,n.isValidElement)(E)?E:null,(0,n.createElement)("rect",{role:"presentation",x:"0",y:"0",width:"100%",height:"100%",clipPath:"url("+a+"#"+C+")",style:{fill:"url("+a+"#"+T+")"}}),(0,n.createElement)("defs",null,(0,n.createElement)("clipPath",{id:C},u),(0,n.createElement)("linearGradient",{id:T,gradientTransform:O},(0,n.createElement)("stop",{offset:"0%",stopColor:l,stopOpacity:i},t&&(0,n.createElement)("animate",{attributeName:"offset",values:-d+"; "+-d+"; 1",keyTimes:R,dur:D,repeatCount:"indefinite",begin:r})),(0,n.createElement)("stop",{offset:"50%",stopColor:c,stopOpacity:s},t&&(0,n.createElement)("animate",{attributeName:"offset",values:-d/2+"; "+-d/2+"; "+(1+d/2),keyTimes:R,dur:D,repeatCount:"indefinite",begin:r})),(0,n.createElement)("stop",{offset:"100%",stopColor:l,stopOpacity:i},t&&(0,n.createElement)("animate",{attributeName:"offset",values:"0; 0; "+(1+d),keyTimes:R,dur:D,repeatCount:"indefinite",begin:r})))))};l.defaultProps={animate:!0,backgroundColor:"#f5f6f7",backgroundOpacity:1,baseUrl:"",foregroundColor:"#eee",foregroundOpacity:1,gradientRatio:2,gradientDirection:"left-right",id:null,interval:.25,rtl:!1,speed:1.2,style:{},title:"Loading...",beforeMask:null};var i=function(e){return e.children?(0,n.createElement)(l,o({},e)):(0,n.createElement)(a,o({},e))},a=function(e){return(0,n.createElement)(i,o({viewBox:"0 0 476 124"},e),(0,n.createElement)("rect",{x:"48",y:"8",width:"88",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"48",y:"26",width:"52",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"56",width:"410",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"72",width:"380",height:"6",rx:"3"}),(0,n.createElement)("rect",{x:"0",y:"88",width:"178",height:"6",rx:"3"}),(0,n.createElement)("circle",{cx:"20",cy:"20",r:"20"}))};t.ZP=i},8313:function(e,t,r){r.d(t,{V:function(){return se}});var n=r(7294),o=r(2984),l=r(2351),i=r(3784),a=r(1363),u=r(4103),c=r(9946),s=r(2180),d=r(6045),f=r(4575),p=r(3781),m=r(7815),g=(e=>(e[e.Forwards=0]="Forwards",e[e.Backwards=1]="Backwards",e))(g||{});var h=r(4879),v=r(1074),y=r(3855);function E(e,t,r,o){let l=(0,y.E)(r);(0,n.useEffect)((()=>{function r(e){l.current(e)}return(e=null!=e?e:window).addEventListener(t,r,o),()=>e.removeEventListener(t,r,o)}),[e,t,o])}var b=r(1021);function w(e,t){let r=(0,n.useRef)([]),o=(0,p.z)(e);(0,n.useEffect)((()=>{for(let[e,n]of t.entries())if(r.current[e]!==n){let e=o(t);return r.current=t,e}}),[o,...t])}var C,T=((C=T||{})[C.None=1]="None",C[C.InitialFocus=2]="InitialFocus",C[C.TabLock=4]="TabLock",C[C.FocusLock=8]="FocusLock",C[C.RestoreFocus=16]="RestoreFocus",C[C.All=30]="All",C);let P=Object.assign((0,l.yV)((function(e,t){let r=(0,n.useRef)(null),a=(0,i.T)(r,t),{initialFocus:u,containers:c,features:h=30,...y}=e;(0,s.H)()||(h=1);let E=(0,v.i)(r);k({ownerDocument:E},Boolean(16&h));let b=function({ownerDocument:e,container:t,initialFocus:r},o){let l=(0,n.useRef)(null);return w((()=>{if(!o)return;let n=t.current;if(!n)return;let i=null==e?void 0:e.activeElement;if(null!=r&&r.current){if((null==r?void 0:r.current)===i)return void(l.current=i)}else if(n.contains(i))return void(l.current=i);null!=r&&r.current?(0,f.C5)(r.current):(0,f.jA)(n,f.TO.First)===f.fE.Error&&console.warn("There are no focusable elements inside the <FocusTrap />"),l.current=null==e?void 0:e.activeElement}),[o]),l}({ownerDocument:E,container:r,initialFocus:u},Boolean(2&h));R({ownerDocument:E,container:r,containers:c,previousActiveElement:b},Boolean(8&h));let C=function(){let e=(0,n.useRef)(0);return(0,m.s)("keydown",(t=>{"Tab"===t.key&&(e.current=t.shiftKey?1:0)}),!0),e}(),T=(0,p.z)((()=>{let e=r.current;!e||(0,o.E)(C.current,{[g.Forwards]:()=>(0,f.jA)(e,f.TO.First),[g.Backwards]:()=>(0,f.jA)(e,f.TO.Last)})})),P={ref:a};return n.createElement(n.Fragment,null,Boolean(4&h)&&n.createElement(d._,{as:"button",type:"button",onFocus:T,features:d.A.Focusable}),(0,l.sY)({ourProps:P,theirProps:y,defaultTag:"div",name:"FocusTrap"}),Boolean(4&h)&&n.createElement(d._,{as:"button",type:"button",onFocus:T,features:d.A.Focusable}))})),{features:T});function k({ownerDocument:e},t){let r=(0,n.useRef)(null);E(null==e?void 0:e.defaultView,"focusout",(e=>{!t||r.current||(r.current=e.target)}),!0),w((()=>{t||((0,f.C5)(r.current),r.current=null)}),[t]);let o=(0,n.useRef)(!1);(0,n.useEffect)((()=>(o.current=!1,()=>{o.current=!0,(0,b.Y)((()=>{!o.current||((0,f.C5)(r.current),r.current=null)}))})),[])}function R({ownerDocument:e,container:t,containers:r,previousActiveElement:n},o){let l=(0,h.t)();E(null==e?void 0:e.defaultView,"focus",(e=>{if(!o||!l.current)return;let i=new Set(null==r?void 0:r.current);i.add(t);let a=n.current;if(!a)return;let u=e.target;u&&u instanceof HTMLElement?function(e,t){var r;for(let n of e)if(null!=(r=n.current)&&r.contains(t))return!0;return!1}(i,u)?(n.current=u,(0,f.C5)(u)):(e.preventDefault(),e.stopPropagation(),(0,f.C5)(a)):(0,f.C5)(n.current)}),!0)}var D=r(5466),O=r(6723);let x=new Set,A=new Map;function F(e){e.setAttribute("aria-hidden","true"),e.inert=!0}function S(e){let t=A.get(e);!t||(null===t["aria-hidden"]?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",t["aria-hidden"]),e.inert=t.inert)}function M(e,t=!0){(0,O.e)((()=>{if(!t||!e.current)return;let r=e.current,n=(0,D.r)(r);if(n){x.add(r);for(let e of A.keys())e.contains(r)&&(S(e),A.delete(e));return n.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement){for(let t of x)if(e.contains(t))return;1===x.size&&(A.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),F(e))}})),()=>{if(x.delete(r),x.size>0)n.querySelectorAll("body > *").forEach((e=>{if(e instanceof HTMLElement&&!A.has(e)){for(let t of x)if(e.contains(t))return;A.set(e,{"aria-hidden":e.getAttribute("aria-hidden"),inert:e.inert}),F(e)}}));else for(let e of A.keys())S(e),A.delete(e)}}}),[t])}var Y=r(3935);let B=(0,n.createContext)(!1);function V(){return(0,n.useContext)(B)}function I(e){return n.createElement(B.Provider,{value:e.force},e.children)}let N=n.Fragment,j=(0,l.yV)((function(e,t){let r=e,o=(0,n.useRef)(null),a=(0,i.T)((0,i.h)((e=>{o.current=e})),t),u=(0,v.i)(o),c=function(e){let t=V(),r=(0,n.useContext)(H),o=(0,v.i)(e),[l,i]=(0,n.useState)((()=>{if(!t&&null!==r||"undefined"==typeof window)return null;let e=null==o?void 0:o.getElementById("headlessui-portal-root");if(e)return e;if(null===o)return null;let n=o.createElement("div");return n.setAttribute("id","headlessui-portal-root"),o.body.appendChild(n)}));return(0,n.useEffect)((()=>{null!==l&&(null!=o&&o.body.contains(l)||null==o||o.body.appendChild(l))}),[l,o]),(0,n.useEffect)((()=>{t||null!==r&&i(r.current)}),[r,i,t]),l}(o),[d]=(0,n.useState)((()=>{var e;return"undefined"==typeof window?null:null!=(e=null==u?void 0:u.createElement("div"))?e:null})),f=(0,s.H)(),p=(0,n.useRef)(!1);return(0,O.e)((()=>{if(p.current=!1,c&&d)return c.contains(d)||c.appendChild(d),()=>{p.current=!0,(0,b.Y)((()=>{var e;!p.current||!c||!d||(c.removeChild(d),c.childNodes.length<=0&&(null==(e=c.parentElement)||e.removeChild(c)))}))}}),[c,d]),f&&c&&d?(0,Y.createPortal)((0,l.sY)({ourProps:{ref:a},theirProps:r,defaultTag:N,name:"Portal"}),d):null})),L=n.Fragment,H=(0,n.createContext)(null),z=(0,l.yV)((function(e,t){let{target:r,...o}=e,a={ref:(0,i.T)(t)};return n.createElement(H.Provider,{value:r},(0,l.sY)({ourProps:a,theirProps:o,defaultTag:L,name:"Popover.Group"}))})),$=Object.assign(j,{Group:z}),_=(0,n.createContext)(null);function q(){let e=(0,n.useContext)(_);if(null===e){let e=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(e,q),e}return e}let U=(0,l.yV)((function(e,t){let r=q(),n=`headlessui-description-${(0,c.M)()}`,o=(0,i.T)(t);(0,O.e)((()=>r.register(n)),[n,r.register]);let a=e,u={ref:o,...r.props,id:n};return(0,l.sY)({ourProps:u,theirProps:a,slot:r.slot||{},defaultTag:"p",name:r.name||"Description"})}));var W=r(6567);let G=(0,n.createContext)((()=>{}));G.displayName="StackContext";var K=(e=>(e[e.Add=0]="Add",e[e.Remove=1]="Remove",e))(K||{});function Z({children:e,onUpdate:t,type:r,element:o}){let l=(0,n.useContext)(G),i=(0,p.z)(((...e)=>{null==t||t(...e),l(...e)}));return(0,O.e)((()=>(i(0,r,o),()=>i(1,r,o))),[i,r,o]),n.createElement(G.Provider,{value:i},e)}var J=r(292),X=(e=>(e[e.Open=0]="Open",e[e.Closed=1]="Closed",e))(X||{}),Q=(e=>(e[e.SetTitleId=0]="SetTitleId",e))(Q||{});let ee={0:(e,t)=>e.titleId===t.id?e:{...e,titleId:t.id}},te=(0,n.createContext)(null);function re(e){let t=(0,n.useContext)(te);if(null===t){let t=new Error(`<${e} /> is missing a parent <Dialog /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,re),t}return t}function ne(e,t){return(0,o.E)(t.type,ee,e,t)}te.displayName="DialogContext";let oe=l.AN.RenderStrategy|l.AN.Static,le=(0,l.yV)((function(e,t){let{open:r,onClose:u,initialFocus:f,__demoMode:m=!1,...g}=e,[h,y]=(0,n.useState)(0),b=(0,W.oJ)();void 0===r&&null!==b&&(r=(0,o.E)(b,{[W.ZM.Open]:!0,[W.ZM.Closed]:!1}));let w=(0,n.useRef)(new Set),C=(0,n.useRef)(null),T=(0,i.T)(C,t),k=(0,n.useRef)(null),R=(0,v.i)(C),O=e.hasOwnProperty("open")||null!==b,x=e.hasOwnProperty("onClose");if(!O&&!x)throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");if(!O)throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");if(!x)throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");if("boolean"!=typeof r)throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${r}`);if("function"!=typeof u)throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${u}`);let A=r?0:1,[F,S]=(0,n.useReducer)(ne,{titleId:null,descriptionId:null,panelRef:(0,n.createRef)()}),Y=(0,p.z)((()=>u(!1))),B=(0,p.z)((e=>S({type:0,id:e}))),V=!!(0,s.H)()&&(!m&&0===A),N=h>1,j=null!==(0,n.useContext)(te),L=N?"parent":"leaf";M(C,!!N&&V),(0,J.O)((()=>{var e,t;return[...Array.from(null!=(e=null==R?void 0:R.querySelectorAll("body > *"))?e:[]).filter((e=>!(!(e instanceof HTMLElement)||e.contains(k.current)||F.panelRef.current&&e.contains(F.panelRef.current)))),null!=(t=F.panelRef.current)?t:C.current]}),(()=>{0===A&&(N||Y())}),J.A.IgnoreScrollbars),E(null==R?void 0:R.defaultView,"keydown",(e=>{e.defaultPrevented||e.key===a.R.Escape&&0===A&&(N||(e.preventDefault(),e.stopPropagation(),Y()))})),(0,n.useEffect)((()=>{var e;if(0!==A||j)return;let t=(0,D.r)(C);if(!t)return;let r=t.documentElement,n=null!=(e=t.defaultView)?e:window,o=r.style.overflow,l=r.style.paddingRight,i=n.innerWidth-r.clientWidth;if(r.style.overflow="hidden",i>0){let e=i-(r.clientWidth-r.offsetWidth);r.style.paddingRight=`${e}px`}return()=>{r.style.overflow=o,r.style.paddingRight=l}}),[A,j]),(0,n.useEffect)((()=>{if(0!==A||!C.current)return;let e=new IntersectionObserver((e=>{for(let t of e)0===t.boundingClientRect.x&&0===t.boundingClientRect.y&&0===t.boundingClientRect.width&&0===t.boundingClientRect.height&&Y()}));return e.observe(C.current),()=>e.disconnect()}),[A,C,Y]);let[H,z]=function(){let[e,t]=(0,n.useState)([]);return[e.length>0?e.join(" "):void 0,(0,n.useMemo)((()=>function(e){let r=(0,p.z)((e=>(t((t=>[...t,e])),()=>t((t=>{let r=t.slice(),n=r.indexOf(e);return-1!==n&&r.splice(n,1),r}))))),o=(0,n.useMemo)((()=>({register:r,slot:e.slot,name:e.name,props:e.props})),[r,e.slot,e.name,e.props]);return n.createElement(_.Provider,{value:o},e.children)}),[t])]}(),q=`headlessui-dialog-${(0,c.M)()}`,U=(0,n.useMemo)((()=>[{dialogState:A,close:Y,setTitleId:B},F]),[A,F,Y,B]),G=(0,n.useMemo)((()=>({open:0===A})),[A]),X={ref:T,id:q,role:"dialog","aria-modal":0===A||void 0,"aria-labelledby":F.titleId,"aria-describedby":H,onClick(e){e.stopPropagation()}};return n.createElement(Z,{type:"Dialog",element:C,onUpdate:(0,p.z)(((e,t,r)=>{"Dialog"===t&&(0,o.E)(e,{[K.Add](){w.current.add(r),y((e=>e+1))},[K.Remove](){w.current.add(r),y((e=>e-1))}})}))},n.createElement(I,{force:!0},n.createElement($,null,n.createElement(te.Provider,{value:U},n.createElement($.Group,{target:C},n.createElement(I,{force:!1},n.createElement(z,{slot:G,name:"Dialog.Description"},n.createElement(P,{initialFocus:f,containers:w,features:V?(0,o.E)(L,{parent:P.features.RestoreFocus,leaf:P.features.All&~P.features.FocusLock}):P.features.None},(0,l.sY)({ourProps:X,theirProps:g,slot:G,defaultTag:"div",features:oe,visible:0===A,name:"Dialog"})))))))),n.createElement(d._,{features:d.A.Hidden,ref:k}))})),ie=(0,l.yV)((function(e,t){let[{dialogState:r,close:o}]=re("Dialog.Overlay"),a=(0,i.T)(t),s=`headlessui-dialog-overlay-${(0,c.M)()}`,d=(0,p.z)((e=>{if(e.target===e.currentTarget){if((0,u.P)(e.currentTarget))return e.preventDefault();e.preventDefault(),e.stopPropagation(),o()}})),f=(0,n.useMemo)((()=>({open:0===r})),[r]);return(0,l.sY)({ourProps:{ref:a,id:s,"aria-hidden":!0,onClick:d},theirProps:e,slot:f,defaultTag:"div",name:"Dialog.Overlay"})})),ae=(0,l.yV)((function(e,t){let[{dialogState:r},o]=re("Dialog.Backdrop"),a=(0,i.T)(t),u=`headlessui-dialog-backdrop-${(0,c.M)()}`;(0,n.useEffect)((()=>{if(null===o.panelRef.current)throw new Error("A <Dialog.Backdrop /> component is being used, but a <Dialog.Panel /> component is missing.")}),[o.panelRef]);let s=(0,n.useMemo)((()=>({open:0===r})),[r]);return n.createElement(I,{force:!0},n.createElement($,null,(0,l.sY)({ourProps:{ref:a,id:u,"aria-hidden":!0},theirProps:e,slot:s,defaultTag:"div",name:"Dialog.Backdrop"})))})),ue=(0,l.yV)((function(e,t){let[{dialogState:r},o]=re("Dialog.Panel"),a=(0,i.T)(t,o.panelRef),u=`headlessui-dialog-panel-${(0,c.M)()}`,s=(0,n.useMemo)((()=>({open:0===r})),[r]);return(0,l.sY)({ourProps:{ref:a,id:u},theirProps:e,slot:s,defaultTag:"div",name:"Dialog.Panel"})})),ce=(0,l.yV)((function(e,t){let[{dialogState:r,setTitleId:o}]=re("Dialog.Title"),a=`headlessui-dialog-title-${(0,c.M)()}`,u=(0,i.T)(t);(0,n.useEffect)((()=>(o(a),()=>o(null))),[a,o]);let s=(0,n.useMemo)((()=>({open:0===r})),[r]);return(0,l.sY)({ourProps:{ref:u,id:a},theirProps:e,slot:s,defaultTag:"h2",name:"Dialog.Title"})})),se=Object.assign(le,{Backdrop:ae,Panel:ue,Overlay:ie,Title:ce,Description:U})},6045:function(e,t,r){r.d(t,{A:function(){return l},_:function(){return i}});var n=r(2351);var o,l=((o=l||{})[o.None=1]="None",o[o.Focusable=2]="Focusable",o[o.Hidden=4]="Hidden",o);let i=(0,n.yV)((function(e,t){let{features:r=1,...o}=e,l={ref:t,"aria-hidden":2===(2&r)||void 0,style:{position:"absolute",width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...4===(4&r)&&2!==(2&r)&&{display:"none"}}};return(0,n.sY)({ourProps:l,theirProps:o,slot:{},defaultTag:"div",name:"Hidden"})}))}}]);