PageSourceSearch

https://www.justwatch.com/appassets/C0olZdfh.js

js justwatch.com collected 2026-09-24 08:01:40 UTC 5,417 bytes, 2 lines download raw bytes

1import{w as V,c as h,a as _,x as B,y as L,b as N,l as T,s as X,t as z,e as P,d as E,f as D,g as R,h as F}from"./D6jxaWmX.js";import{aP as j,bb as G,ba as O,aT as I,aU as $,b4 as C,b5 as W}from"./DqUoKSZT.js";import"./D6ib26MG.js";import"./COl0qh72.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};o.SENTRY_RELEASE={id:"5e0fb5f8cfa644e65037bca5f9960ea76b3077d0"};var n=new o.Error().stack;n&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[n]="13c389d5-598e-40f0-8dca-892ecad7b063",o._sentryDebugIdIdentifier="sentry-dbid-13c389d5-598e-40f0-8dca-892ecad7b063")}catch{}})();function q(o,n,i){var y=null,v=h(!0),x=null,b=_,s=null,S=V(r);o=typeof o=="function"?o:o===void 0?B:h(+o),n=typeof n=="function"?n:n===void 0?h(0):h(+n),i=typeof i=="function"?i:i===void 0?L:h(+i);function r(t){var a,c,f,l=(t=N(t)).length,p,m=!1,M,d=new Array(l),k=new Array(l);for(x==null&&(s=b(M=S())),a=0;a<=l;++a){if(!(a<l&&v(p=t[a],a,t))===m)if(m=!m)c=a,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=a-1;f>=c;--f)s.point(d[f],k[f]);s.lineEnd(),s.areaEnd()}m&&(d[a]=+o(p,a,t),k[a]=+n(p,a,t),s.point(y?+y(p,a,t):d[a],i?+i(p,a,t):k[a]))}if(M)return s=null,M+""||null}function w(){return T().defined(v).curve(b).context(x)}return r.x=function(t){return arguments.length?(o=typeof t=="function"?t:h(+t),y=null,r):o},r.x0=function(t){return arguments.length?(o=typeof t=="function"?t:h(+t),r):o},r.x1=function(t){return arguments.length?(y=t==null?null:typeof t=="function"?t:h(+t),r):y},r.y=function(t){return arguments.length?(n=typeof t=="function"?t:h(+t),i=null,r):n},r.y0=function(t){return arguments.length?(n=typeof t=="function"?t:h(+t),r):n},r.y1=function(t){return arguments.length?(i=t==null?null:typeof t=="function"?t:h(+t),r):i},r.lineX0=r.lineY0=function(){return w().x(o).y(n)},r.lineY1=function(){return w().x(o).y(i)},r.lineX1=function(){return w().x(y).y(n)},r.defined=function(t){return arguments.length?(v=typeof t=="function"?t:h(!!t),r):v},r.curve=function(t){return arguments.length?(b=t,x!=null&&(s=b(x)),r):b},r.context=function(t){return arguments.length?(t==null?x=s=null:s=b(x=t),r):x},r}const H=j({__name:"lineChart",props:{data:{},formatX:{type:Function},formatY:{type:Function},minY:{},maxY:{}},setup(o){const n=o;G(()=>{w()}),O(()=>n.data,()=>{X(i.value).selectAll("*").remove(),w()});const i=C(null),y=C(null),v=function(a){a.target.setAttribute("r","8"),X("#tooltip-graph").style("opacity",1)},x=function(a){a.target.setAttribute("r","6"),X("#tooltip-graph").transition().duration(200).style("opacity",0)},b=function(a,c,f){const l=a.target.__data__;X("#tooltip-graph").html(s(l.x,c,f)+" - "+(n.formatY?n.formatY(l.y):l.y)).style("opacity",1).style("left",a.pageX+10+"px").style("top",a.pageY+10+"px")},s=(a,c,f)=>n.formatX?n.formatX(a,c,f):new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short"}).format(a),S=a=>new Intl.NumberFormat("en-US").format(a),r=a=>{const c=Math.floor(Math.max(...a.map(l=>l.y)));return(Math.floor(c/Math.pow(10,Math.floor(Math.log10(c))))+1)*M
1ath.pow(10,Math.floor(Math.log10(c)))},w=()=>{const a=y.value?.offsetWidth,c=t(a,n.data[0].data.length),f=400,l={top:10,right:50,bottom:40,left:50},p=X(i.value).attr("width",a).attr("height",f),m=n.data.map(e=>e.data).flat(),M=typeof m[0].x!="number",d=M?z().domain(P(m,e=>e.x)).range([l.left,a-l.right]):E().domain([Math.min(...m.map(e=>e.x)),Math.max(...m.map(e=>e.x))]).range([l.left,a-l.right]),k=n.maxY||r(m),Y=E().domain([n.minY||0,k]).range([f-l.bottom,l.top]),U=q().x(e=>d(e.x)).y0(f-l.bottom).y1(e=>Y(e.y)).curve(D);p.append("g").attr("transform",`translate(${l.left}, 0)`).call(R(Y).tickFormat(e=>n.formatY?n.formatY(e):S(e))).selectAll("text").attr("class","yAxis-text"),p.append("g").attr("transform",`translate(0, ${f-l.bottom})`).call(M?F(d).tickValues(c?m.map(e=>e.x):[d.domain()[0],d.domain()[1]]).tickFormat((e,g)=>s(e,g,m)):F(d).tickValues(c?m.map(e=>e.x):[d.domain()[0],d.domain()[1]]).tickFormat((e,g)=>n.formatX?n.formatX(e,g,m):e.toString())).selectAll("text").attr("class","xAxis-text"),[...n.data].sort((e,g)=>Math.max(...g.data.map(A=>A.y))-Math.max(...e.data.map(A=>A.y))).forEach((e,g)=>{const A=Math.random()*1e3;p.append("linearGradient").attr("id",`gradient-${A}-${g}`).attr("gradientUnits","userSpaceOnUse").attr("x1",0).attr("y1",Y(0)).attr("x2",0).attr("y2",Y(Math.max(...e.data.map(u=>u.y)))).selectAll("stop").data([{offset:"0%",color:"rgba(2, 62, 227, 0.00)"},{offset:"100%",color:e.color}]).enter().append("stop").attr("offset",u=>u.offset).attr("stop-color",u=>u.color),p.append("path").datum(e.data).attr("class","area").attr("d",U).attr("fill",`url(#gradient-${A}-${g})`).attr("fill-opacity",.3),p.append("path").datum(e.data).attr("fill","none").attr("stroke",e.color).attr("stroke-width",2).attr("d",T().x(u=>d(u.x)).y(u=>Y(u.y)).curve(D)),p.selectAll(`circle${g}`).data(e.data).enter().append("circle").attr("class",`${g}`).attr("cx",u=>d(u.x)).attr("cy",u=>Y(u.y)).attr("r",5).attr("fill",e.color).style("cursor","pointer").on("mouseover",v).on("mousemove",u=>b(u,g,e.data)).on("mouseleave",x)})},t=(a,c)=>c>=10?a>1100:a>700;return(a,c)=>(I(),$("div",{class:"line-chart-container",ref_key:"chartContainer",ref:y},[(I(),$("svg",{ref_key:"chart",ref:i},null,512))],512))}}),tt=W(H,[["__scopeId","data-v-df382487"]]);export{tt as default};
2//# sourceMappingURL=C0olZdfh.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.