1"use strict";(self.__LOADABLE_LOADED_CHUNKS__=self.__LOADABLE_LOADED_CHUNKS__||[]).push([[7876],{81374:function(t,n,e){var r=e(66078),i=(0,e(12668).R_)(function(){return{sendSLIStartBeaconToTracker:r.mo,sendSLIEndBeaconToTracker:r.PC,sendSLIFailureBeaconToTracker:r.gK}});e.d(n,{e:function(){return i}})},91588:function(t,n,e){var r=e(34025);function i(t){return Object.values(r.w).includes(t)}e.d(n,{l:function(){return i}})},82335:function(t,n,e){var r=e(80914),i=e(6222),o=e(13571),a=e(75523),u=e(44065),l="next",s="prev";function c(t){var n,e=(0,a.eU)(t),c=(0,a.eU)([]),d=(0,a.eU)(function(t){var n;return null!=(n=t(c)[t(c).length-1])?n:null}),m=(0,a.eU)(function(t){var n;return null!=(n=t(c)[0])?n:null}),f=(0,u.t_)(function(t){return{direction:l,pageParams:[t(e).initialPageParam]}}),p=(0,a.eU)(function(t){var n=t(e).getNextPageParam,r=t(d),i=t(c),o=t(f).pageParams;return null!=r&&null!=n(r,i,o[o.length-1])}),g=(0,a.eU)(function(t){var n=t(e).getPreviousPageParam,r=t(m),i=t(c),o=t(f).pageParams;return null!=n&&null!=r&&null!=n(r,i,o[0])}),h=(0,a.eU)(function(t){var n=t(c),e=t(f).pageParams;return n.length!==e.length}),T=(0,a.eU)(function(t){var n=t(h),e=t(f).direction;return n&&e===l}),v=(0,a.eU)(function(t){var n=t(h),e=t(f).direction;return n&&e===s}),S=(0,a.eU)(function(t){var n=t(e).queryFn,r=t(f),i=r.direction,o=r.pageParams;return n({pageParam:i===l?o[o.length-1]:o[0]})}),N=(0,a.eU)(null,function(t,n,e){var r=t(c);t(f).direction===l?n(c,(0,i._)(r).concat([e])):n(c,[e].concat((0,i._)(r)))}),y=(n=(0,a.eU)({promise:null}),(0,a.eU)(function(t,e){var r,i=e.signal,o=e.setSelf,a=t(n),u=t(S);return a.promise!==u&&u.then(function(t){i.aborted||o({promise:u,page:t})}).catch(function(){i.aborted||o({promise:u,page:null})}),null!=(r=a.promise)?r:u},function(t,e,r){var i=r.promise,o=r.page;e(n,{promise:i}),null!=o&&e(N,o)}));return(0,a.eU)(function(t){return(0,r._)(function(){var n,e,r,i;return(0,o._)(this,function(o){switch(o.label){case 0:return[4,t(y)];case 1:return o.sent(),n=t(c),e=t(f).pageParams,r=t(p),i=t(g),[2,{pages:n,pageParams:e,hasNextPage:r,hasPreviousPage:i,isFetchingNextPage:t(T),isFetchingPreviousPage:t(v)}]}})})()},function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,o=t(e),a=o.getNextPageParam,u=o.getPreviousPageParam,p=t(c),g=t(f).pageParams;if(r===l){var h=t(d),T=p.length!==g.length;if(null==h||T)return;var v=a(h,p,g[g.length-1]);if(null==v)return;n(f,{direction:l,pageParams:(0,i._)(g).concat([v])})}else{if(null==u)return;var S=t(m),N=p.length!==g.length;if(null==S||N)return;var y=u(S,p,g[0]);if(null==y)return;n(f,{direction:s,pageParams:[y].concat((0,i._)(g))})}})}e.d(n,{A:function(){return c}})},58395:function(t,n,e){var r={ADD_TO_MYLIST:"ADD_TO_MYLIST",DELETE_FROM_MYLIST:"DELETE_FROM_MYLIST"};e.d(n,{X:function(){return r}})},34025:function(t,n,e){var r={UNKNOWN:"CONTENT_TYPE_UNKNOWN",PROGRAM:"CONTENT_TYPE_PROGRAM",SERIES:"CONTENT_TYPE_SERIES",SLOT:"CONTENT_TYPE_SLOT",SLOT_GROUP:"CONTENT_TYPE_SLOT_GROUP",LIVE_EVENT:"CONTENT_TYPE_LIVE_EVENT"};e.d(n,{w:function(){return r}})},87948:function(t,n,e){var r=e(5019);function i(t){switch(t){case r.cM.CONTENT_TYPE_PROGRAM:case r.cM.CONTENT_TYPE_SERIES:case r.cM.CONTENT_TYPE_SLOT:case r.cM.CONTENT_TYPE_SLOT_GROUP:case r.cM.CONTENT_TYPE_LIVE_EVENT:return!0;case r.cM.CONTENT_TYPE_UNKNOWN:case r.cM.UNRECOGNIZED:default:return!1}}e.d(n,{C:function(){return i}})},82799:function(t,n,e){e.d(n,{t:function(){return Y}});var r=e(80914),i=e(75730),o=e(13571),a=e(7621),u=e(83771),l=e(81374),s=e(26479),c=e(82335),d=e(58395),m="DELETED",f="ADDED",p=e(54114),g=e(91588),h=e(87948),T=function(t){var n=t.allMylist,e=t.updatedMylistSetAfterFetch,r=new Set,i=!0,o=!1,a=void 0;try{for(var u,l=n[Symbol.iterator]();!(i=(u=l.next()).done);i=!0){var s=u.value;(0,g.l)(s.contentType)&&(0,h.C)(s.contentType)&&r.add("".concat(s.contentType,"-").concat(s.contentId))}}catch(t){o=!0,a=t}finally{try{i||null==l.return||l.return()}finally{if(o)throw a}}var c=!0,d=!1,T=void 0;try{for(var v,S=e.entries()[Symbol.iterator]();!(c=(v=S.next()).done);c=!0){var N=(0,p._)(v.value,2),y=N[0],O=N[1];O===f&&r.add(y),O===m&&r.delete(y)}}catch(t){d=!0,T=t}finally{try{c||null==S.return||S.return()}finally{if(d)throw T}}return r},v=e(5019),S=e(74284),N=e(68746),y=e(46060),O=e(29441),b=e(80213),_=e(93099),E=e(99536),A=e(43312),C=e(31874),I="/v1/mylist/:contentType/:contentId",P=(0,A.R_)(function(t){var n=t(b.l),e=t(y.Y),i=t(_.N);return function(t){var a=t.contentType,u=t.contentId;return(0,r._)(function(){return(0,o._)(this,function(t){return[2,i({queryKey:["DELET
1E",I,a,u],queryFn:function(){return(0,r._)(function(){var t,r,i,l;return(0,o._)(this,function(o){switch(o.label){case 0:return[4,n.get(O.Z.ABEMA_ACCESS_TOKEN,{allowNull:!1})];case 1:if(!(t=o.sent()).ok)return[2,(0,E.KC)(t.err)];return r=(0,N.lI)(a),i=new URL((0,C.W)(I,{contentType:r,contentId:u}),S.FH.apiOrigin),[4,e.delete({url:i.toString(),payload:null,headers:{accept:"application/json",authorization:"Bearer ".concat(t.val)},options:{}})];case 2:if(!(l=o.sent()).ok)return[2,(0,E.KC)(l.err)];return[2,(0,E.TC)(v.ZD.fromJSON(l.val))]}})})()}})]})})()}}),J=e(92548),L="/v1/mylist",w=(0,A.R_)(function(t){var n=t(b.l),e=t(y.Y),i=t(_.N);return function(t){var a=t.limit,u=t.next;return(0,r._)(function(){return(0,o._)(this,function(t){return[2,i({queryKey:[L,a,u],queryFn:function(){return(0,r._)(function(){var t,r,i;return(0,o._)(this,function(o){switch(o.label){case 0:return[4,n.get(O.Z.ABEMA_ACCESS_TOKEN,{allowNull:!1})];case 1:if(!(t=o.sent()).ok)return[2,(0,E.KC)(t.err)];return(r=new URL(L,S.FH.apiOrigin)).searchParams.set("limit",String(a)),null!=u&&r.searchParams.set("next",u),r.searchParams.set("include","liveEvent"),[4,e.get({url:r.toString(),headers:{accept:"application/json",authorization:"Bearer ".concat(t.val)},options:{}})];case 2:if(!(i=o.sent()).ok)return[2,(0,E.KC)(i.err)];return[2,(0,E.TC)(J.Zj.fromJSON(i.val))]}})})()}})]})})()}}),M="/v1/mylist/:contentType/:contentId",U=(0,A.R_)(function(t){var n=t(b.l),e=t(y.Y),i=t(_.N);return function(t){var a=t.contentType,u=t.contentId;return(0,r._)(function(){return(0,o._)(this,function(t){return[2,i({queryKey:["PUT",M,a,u],queryFn:function(){return(0,r._)(function(){var t,r,i,l;return(0,o._)(this,function(o){switch(o.label){case 0:return[4,n.get(O.Z.ABEMA_ACCESS_TOKEN,{allowNull:!1})];case 1:if(!(t=o.sent()).ok)return[2,(0,E.KC)(t.err)];return r=(0,N.lI)(a),i=new URL((0,C.W)(M,{contentType:r,contentId:u}),S.FH.apiOrigin),[4,e.put({url:i.toString(),payload:null,headers:{accept:"application/json","content-type":"application/json",authorization:"Bearer ".concat(t.val)},options:{}})];case 2:if(!(l=o.sent()).ok)return[2,(0,E.KC)(l.err)];return[2,(0,E.TC)(v.DH.fromJSON(l.val))]}})})()}})]})})()}}),D=e(51189),x=e(56248),F=e(50093),R=e(76891),G=e(64704),k=e(75523),K=e(11654),Y=(0,A.R_)(function(t){var n=t(F.A),e=t(D.w),i=t(l.e),s=i.sendSLIEndBeaconToTracker,p=i.sendSLIFailureBeaconToTracker,g=i.sendSLIStartBeaconToTracker,h=t(w),v=t(U),S=t(P),N=(0,k.eU)(new Map),y=(0,k.eU)(function(t){return t(N)},function(t,n,e){var r=e.updateType,i=e.contentId,o=e.contentType,a=t(N),u="".concat(o,"-").concat(i),l=new Map(a);l.set(u,r),n(N,l)}),O=(0,k.eU)(function(t){return t(n),g(G.pL),(0,c.A)(function(){return{queryFn:function(t){var n=t.pageParam.next;return(0,r._)(function(){var t,r;return(0,o._)(this,function(i){switch(i.label){case 0:return[4,h({limit:100,next:n})];case 1:if(r=i.sent(),(0,E.ys)(r))return p({name:G.pL,error:r.err}),e.onOpen({timeoutCount:u.U,kind:a.I.MyListFailedToFetchMore}),[2,{mylist:[],dataSet:void 0,paging:void 0}];return((null==(t=r.val.paging)?void 0:t.next)==null||""===r.val.paging.next)&&s(G.pL),[2,r.val]}})})()},getNextPageParam:function(t){var n;return(null==(n=t.paging)?void 0:n.next)==null||""===t.paging.next?null:{next:t.paging.next}},initialPageParam:{next:null}}})}),b=(0,K.$)(function(t,n){var e=setTimeout(function(){return(0,r._)(function(){return(0,o._)(this,function(e){switch(e.label){case 0:return[4,t(t(O))];case 1:return e.sent(),n(t(O)),[2]}})})()});return function(){clearTimeout(e)}});return(0,R.E)((0,k.eU)(function(t){return(0,r._)(function(){return(0,o._)(this,function(n){switch(n.label){case 0:return t(b),[4,t(t(O))];case 1:return[2,T({allMylist:n.sent().pages.map(function(t){return t.mylist}).flat(),updatedMylistSetAfterFetch:t(y)})]}})})()},function(t,n,i){return(0,r._)(function(){var t,r,l;return(0,o._)(this,function(o){switch(o.label){case 0:switch(i.actionType){case d.X.ADD_TO_MYLIST:return[3,1];case d.X.DELETE_FROM_MYLIST:return[3,3]}return[3,5];case 1:return g(G.GK),[4,v({contentType:i.contentType,contentId:i.contentId})];case 2:if(t=o.sent(),(0,E.ys)(t))return p({name:G.GK,error:t.err}),r=B(t.err),e.onOpen({timeoutCount:u.U,kind:r}),[2];return s(G.GK),e.onOpen({timeoutCount:u.U,kind:a.I.MyListSucceededToAdd}),n(y,{updateType:f,contentId:i.contentId,contentType:i.contentType}),[3,6];case 3:return g(G.CH),[4,S({contentType:i.contentType,contentId:i.contentId})];case 4:if(l=o.sent(),(0,E.ys)(l))return p({name:G.CH,error:l.err}),e.onOpen({timeoutCount:u.U,kind:a.I.MyListFailedToDelete}),[2];return s(G.CH),n(y,{updateType:m,contentId:i.contentId,contentType:i.contentType}),e.onOpen({timeoutCount:u.U,kind:a.I.MyListSucceededToDelete}),[3,6];case 5:return i.actionType,[2];case 6:return[2]}})})()}))}),B=function(t){switch(!0){case(0,i._)(t,s.s)&&403===t.statusCode:try{if
1(1===JSON.parse(t.body).code)return a.I.MyListFailedToAddForExpired}catch(t){}return a.I.MyListFailedToAdd;case(0,i._)(t,s.s)&&400===t.statusCode:case(0,i._)(t,s.s)&&404===t.statusCode:case(0,i._)(t,s.s)&&500===t.statusCode:case(0,i._)(t,x.d):case(0,i._)(t,Error):default:return a.I.MyListFailedToAdd}}},92548:function(t,n,e){var r=e(71142),i=e(64935),o=e(90380),a=e(13470),u=e(8954),l=e(91060),s=function(t){var n,e={};return""!==t.contentId&&(e.contentId=t.contentId),""!==t.contentType&&(e.contentType=t.contentType),""!==t.slotGroupId&&(e.slotGroupId=t.slotGroupId),(null==(n=t.slotIds)?void 0:n.length)&&(e.slotIds=t.slotIds),e},c=function(t){var n={};return""!==t.next&&(n.next=t.next),n},d=function(t){var n,e,r,i,o,a={};return(null==(n=t.series)?void 0:n.length)&&(a.series=t.series.map(function(t){return m.toJSON(t)})),(null==(e=t.programs)?void 0:e.length)&&(a.programs=t.programs.map(function(t){return f.toJSON(t)})),(null==(r=t.slots)?void 0:r.length)&&(a.slots=t.slots.map(function(t){return p.toJSON(t)})),(null==(i=t.slotGroups)?void 0:i.length)&&(a.slotGroups=t.slotGroups.map(function(t){return g.toJSON(t)})),(null==(o=t.liveEvents)?void 0:o.length)&&(a.liveEvents=t.liveEvents.map(function(t){return h.toJSON(t)})),a},m={fromJSON:function(t){return{id:v(t.id)?globalThis.String(t.id):"",title:v(t.title)?globalThis.String(t.title):"",onDemandTypes:globalThis.Array.isArray(null==t?void 0:t.onDemandTypes)?t.onDemandTypes.map(function(t){return(0,l.sN)(t)}):[],label:v(t.label)?l.zx.fromJSON(t.label):void 0,thumbComponent:v(t.thumbComponent)?i.h.fromJSON(t.thumbComponent):void 0,freeBenefitTag:v(t.freeBenefitTag)?globalThis.String(t.freeBenefitTag):"",newestProgramIds:globalThis.Array.isArray(null==t?void 0:t.newestProgramIds)?t.newestProgramIds.map(function(t){return globalThis.String(t)}):[],contentLabels:globalThis.Array.isArray(null==t?void 0:t.contentLabels)?t.contentLabels.map(function(t){return r.ug.fromJSON(t)}):[]}},toJSON:function(t){var n,e,o,a={};return""!==t.id&&(a.id=t.id),""!==t.title&&(a.title=t.title),(null==(n=t.onDemandTypes)?void 0:n.length)&&(a.onDemandTypes=t.onDemandTypes.map(function(t){return(0,l.Vo)(t)})),void 0!==t.label&&(a.label=l.zx.toJSON(t.label)),void 0!==t.thumbComponent&&(a.thumbComponent=i.h.toJSON(t.thumbComponent)),""!==t.freeBenefitTag&&(a.freeBenefitTag=t.freeBenefitTag),(null==(e=t.newestProgramIds)?void 0:e.length)&&(a.newestProgramIds=t.newestProgramIds),(null==(o=t.contentLabels)?void 0:o.length)&&(a.contentLabels=t.contentLabels.map(function(t){return r.ug.toJSON(t)})),a}},f={fromJSON:function(t){return{id:v(t.id)?globalThis.String(t.id):"",title:v(t.title)?globalThis.String(t.title):"",thumbComponent:v(t.thumbComponent)?i.h.fromJSON(t.thumbComponent):void 0,series:v(t.series)?l.Ru.fromJSON(t.series):void 0,season:v(t.season)?l.ZO.fromJSON(t.season):void 0,terms:globalThis.Array.isArray(null==t?void 0:t.terms)?t.terms.map(function(t){return l.II.fromJSON(t)}):[],mediaStatus:v(t.mediaStatus)?l.CP.fromJSON(t.mediaStatus):void 0,partnerContentViewingAuthorities:globalThis.Array.isArray(null==t?void 0:t.partnerContentViewingAuthorities)?t.partnerContentViewingAuthorities.map(function(t){return l.co.fromJSON(t)}):[],duration:v(t.duration)?globalThis.Number(t.duration):0,label:v(t.label)?l.ev.fromJSON(t.label):void 0}},toJSON:function(t){var n,e,r={};return""!==t.id&&(r.id=t.id),""!==t.title&&(r.title=t.title),void 0!==t.thumbComponent&&(r.thumbComponent=i.h.toJSON(t.thumbComponent)),void 0!==t.series&&(r.series=l.Ru.toJSON(t.series)),void 0!==t.season&&(r.season=l.ZO.toJSON(t.season)),(null==(n=t.terms)?void 0:n.length)&&(r.terms=t.terms.map(function(t){return l.II.toJSON(t)})),void 0!==t.mediaStatus&&(r.mediaStatus=l.CP.toJSON(t.mediaStatus)),(null==(e=t.partnerContentViewingAuthorities)?void 0:e.length)&&(r.partnerContentViewingAuthorities=t.partnerContentViewingAuthorities.map(function(t){return l.co.toJSON(t)})),0!==t.duration&&(r.duration=Math.round(t.duration)),void 0!==t.label&&(r.label=l.ev.toJSON(t.label)),r}},p={fromJSON:function(t){return{id:v(t.id)?globalThis.String(t.id):"",title:v(t.title)?globalThis.String(t.title):"",channelId:v(t.channelId)?globalThis.String(t.channelId):"",startAt:v(t.startAt)?globalThis.Number(t.startAt):0,endAt
1:v(t.endAt)?globalThis.Number(t.endAt):0,timeshiftEndAt:v(t.timeshiftEndAt)?globalThis.Number(t.timeshiftEndAt):0,timeshiftFreeEndAt:v(t.timeshiftFreeEndAt)?globalThis.Number(t.timeshiftFreeEndAt):0,flags:v(t.flags)?a.GC.fromJSON(t.flags):void 0,thumbComponent:v(t.thumbComponent)?i.h.fromJSON(t.thumbComponent):void 0,mark:v(t.mark)?a.io.fromJSON(t.mark):void 0,payperview:v(t.payperview)?u.x8.fromJSON(t.payperview):void 0,duration:v(t.duration)?globalThis.Number(t.duration):0}},toJSON:function(t){var n={};return""!==t.id&&(n.id=t.id),""!==t.title&&(n.title=t.title),""!==t.channelId&&(n.channelId=t.channelId),0!==t.startAt&&(n.startAt=Math.round(t.startAt)),0!==t.endAt&&(n.endAt=Math.round(t.endAt)),0!==t.timeshiftEndAt&&(n.timeshiftEndAt=Math.round(t.timeshiftEndAt)),0!==t.timeshiftFreeEndAt&&(n.timeshiftFreeEndAt=Math.round(t.timeshiftFreeEndAt)),void 0!==t.flags&&(n.flags=a.GC.toJSON(t.flags)),void 0!==t.thumbComponent&&(n.thumbComponent=i.h.toJSON(t.thumbComponent)),void 0!==t.mark&&(n.mark=a.io.toJSON(t.mark)),void 0!==t.payperview&&(n.payperview=u.x8.toJSON(t.payperview)),0!==t.duration&&(n.duration=Math.round(t.duration)),n}},g={fromJSON:function(t){return{id:v(t.id)?globalThis.String(t.id):"",title:v(t.title)?globalThis.String(t.title):"",thumbComponent:v(t.thumbComponent)?i.h.fromJSON(t.thumbComponent):void 0}},toJSON:function(t){var n={};return""!==t.id&&(n.id=t.id),""!==t.title&&(n.title=t.title),void 0!==t.thumbComponent&&(n.thumbComponent=i.h.toJSON(t.thumbComponent)),n}},h={fromJSON:function(t){return{id:v(t.id)?globalThis.String(t.id):"",title:v(t.title)?globalThis.String(t.title):"",thumbComponent:v(t.thumbComponent)?i.h.fromJSON(t.thumbComponent):void 0,realTime:v(t.realTime)?o.yU.fromJSON(t.realTime):void 0,timeshift:v(t.timeshift)?o.gd.fromJSON(t.timeshift):void 0,alias:v(t.alias)?globalThis.String(t.alias):"",partnerContentViewingAuthorities:globalThis.Array.isArray(null==t?void 0:t.partnerContentViewingAuthorities)?t.partnerContentViewingAuthorities.map(function(t){return l.co.fromJSON(t)}):[]}},toJSON:function(t){var n,e={};return""!==t.id&&(e.id=t.id),""!==t.title&&(e.title=t.title),void 0!==t.thumbComponent&&(e.thumbComponent=i.h.toJSON(t.thumbComponent)),void 0!==t.realTime&&(e.realTime=o.yU.toJSON(t.realTime)),void 0!==t.timeshift&&(e.timeshift=o.gd.toJSON(t.timeshift)),""!==t.alias&&(e.alias=t.alias),(null==(n=t.partnerContentViewingAuthorities)?void 0:n.length)&&(e.partnerContentViewingAuthorities=t.partnerContentViewingAuthorities.map(function(t){return l.co.toJSON(t)})),e}},T={fromJSON:function(t){var n,e;return{mylist:globalThis.Array.isArray(null==t?void 0:t.mylist)?t.mylist.map(function(t){var n;return{contentId:v((n=t).contentId)?globalThis.String(n.contentId):"",contentType:v(n.contentType)?globalThis.String(n.contentType):"",slotGroupId:v(n.slotGroupId)?globalThis.String(n.slotGroupId):"",slotIds:globalThis.Array.isArray(null==n?void 0:n.slotIds)?n.slotIds.map(function(t){return globalThis.String(t)}):[]}}):[],dataSet:v(t.dataSet)?(n=t.dataSet,{series:globalThis.Array.isArray(null==n?void 0:n.series)?n.series.map(function(t){return m.fromJSON(t)}):[],programs:globalThis.Array.isArray(null==n?void 0:n.programs)?n.programs.map(function(t){return f.fromJSON(t)}):[],slots:globalThis.Array.isArray(null==n?void 0:n.slots)?n.slots.map(function(t){return p.fromJSON(t)}):[],slotGroups:globalThis.Array.isArray(null==n?void 0:n.slotGroups)?n.slotGroups.map(function(t){return g.fromJSON(t)}):[],liveEvents:globalThis.Array.isArray(null==n?void 0:n.liveEvents)?n.liveEvents.map(function(t){return h.fromJSON(t)}):[]}):void 0,paging:v(t.paging)?{next:v((e=t.paging).next)?globalThis.String(e.next):""}:void 0}},toJSON:function(t){var n,e={};return(null==(n=t.mylist)?void 0:n.length)&&(e.mylist=t.mylist.map(function(t){return s(t)})),void 0!==t.dataSet&&(e.dataSet=d(t.dataSet)),void 0!==t.paging&&(e.paging=c(t.paging)),e}};function v(t){return null!=t}e.d(n,{Zj:function(){return T}})}}]);
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.