1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3970],{53970:function(e,t,n){n.r(t);var s=n(85893),o=n(67294),a=n(26495),i=n(23148);i.kL.register(i.ZL,i.uw,i.f$,i.u,i.Dx);let l=o.memo(e=>{let{episodes:t}=e;(0,o.useEffect)(()=>()=>{var e;null===(e=document.getElementById("chartjs-tooltip"))||void 0===e||e.remove()},[]);let n=(0,o.useMemo)(()=>t.slice().sort((e,t)=>e.season_number!==t.season_number?e.season_number-t.season_number:e.episode_number-t.episode_number),[t]),{labels:i,data:l,backgroundColors:d}=(0,o.useMemo)(()=>{let e=n.map(e=>e.episode_title?e.episode_title:"S".concat(e.season_number,"E").concat(e.episode_number)),t=n.map(e=>e.episode_rating),s=n.map(e=>{let t=e.episode_rating;return t>=9?"#2f855a":t>=8?"#48bb78":t>=7?"#f6e05e":t>=6?"#dd6b20":"#c53030"});return{labels:e,data:t,backgroundColors:s}},[n]),r=(0,o.useMemo)(()=>({labels:i,datasets:[{label:"Episode Rating",data:l,backgroundColor:d,borderRadius:4,borderSkipped:!1}]}),[i,l,d]),c=(0,o.useMemo)(()=>({responsive:!0,maintainAspectRatio:!1,plugins:{tooltip:{enabled:!1,position:"nearest",external:e=>{let t=document.getElementById("chartjs-tooltip");t||((t=document.createElement("div")).id="chartjs-tooltip",t.innerHTML="<div></div>",document.body.appendChild(t));let s=e.tooltip;if(0===s.opacity){t.style.opacity=0;return}if(s.body){let e=s.title[0]||"",o=s.dataPoints[0],a=n[o.dataIndex],i=o.raw,l=a.episode_votes,d='\n <div class="bg-custom-gray text-white p-4 rounded-lg shadow-md">\n <p class="text-lg font-semibold">'.concat(e,'</p>\n <div class="mt-2">\n <p class="text-sm text-gray-300">\n Season ').concat(a.season_number," Episode ").concat(a.episode_number,'\n </p>\n </div>\n <div class="mt-2 flex items-center">\n <div class="bg-custom-gray-light p-2 rounded inline-flex items-center">\n <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="fill-yellow-400 mr-1">\n <path d="M12 17.27l4.15 2.51c.76.46 1.69-.22 1.49-1.08l-1.10-4.72 3.67-3.18c.67-.58.31-1.68-.57-1.75l-4.83-.41-1.89-4.46c-.34-.81-1.5-.81-1.84 0L9.19 8.63l-4.83.41c-.88.07-1.24 1.17-.57 1.75l3.67 3.18-1.10 4.72c-.20.86.73 1.54 1.49 1.08l4.15-2.5z"></path>\n </svg>\n <p class="text-sm text-gray-300">').concat(i," - ").concat(l," Votes</p>\n </div>\n </div>\n </div>\n ");t.querySelector("div").innerHTML=d}let o=t.getBoundingClientRect(),a=e.chart.canvas.getBoundingClientRect(),i=a.left+window.pageXOffset+s.caretX,l=a.top+window.pageYOffset+s.caretY,d=window.innerWidth;window.innerHeight,i+o.width>d&&(i-=o.width+20),t.style.opacity=1,t.style.position="absolute",t.style.left="".concat(i,"px"),t.style.top="".concat(l,"px"),t.style.pointerEvents="none",t.style.transition="all 0.1s ease"},backgroundColor:"transparent",borderColor:"transparent",shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:"transparent"},legend:{display:!1},title:{display:!1}},scales:{x:{grid:{display:!1},ticks:{display:!1}},y:{display:!1}}}),[n]);return(0,s.jsx)("div",{className:"container mx-auto h-32 relative",children:(0,s.jsx)(a.$Q,{data:r,options:c})})});l.displayName="SeriesChart",t.default=l}}]);
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.