PageSourceSearch

https://pivotmedia.co.jp/_next/static/chunks/6526-cc5bb16af038182a.js

js pivotmedia.co.jp collected 2026-10-02 03:18:34 UTC 279,273 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6526],{7070:e=>{function t(e){var t=Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=()=>[],t.resolve=t,t.id=7070,e.exports=t},56343:(e,t,n)=>{"use strict";n.d(t,{bn:()=>y,VY:()=>g,Jt:()=>h,jT:()=>p,TB:()=>d});var o=n(80492),r=n(83665),i=n(37919),s=n(87840),l=n(86430),a=n(89320);a.util.Long=void 0,a.configure();let c=async(e,t)=>{(0,r.iD)()||await o.l.refresh();let n=()=>{let e=(0,r.iD)();return{...t,headers:{...t.headers,...e?{Authorization:"Bearer ".concat(e)}:{}}}},i=await fetch(e,n());return 401===i.status&&await o.l.refresh()?fetch(e,n()):i};async function u(e){try{let t=await e.arrayBuffer(),n=l.Xt.Error.decode(new Uint8Array(t));return{statusCode:n.statusCode,message:n.message,reason:n.reason}}catch(e){return{statusCode:500,message:"Internal Server Error",reason:"INVALID_SERVER_RESPONSE"}}}async function p(e,t,n){let o=await c(e,{method:"POST",credentials:"include",body:t});return o.ok?{data:JSON.parse(JSON.stringify(n(new Uint8Array(await o.arrayBuffer())))),error:null}:{data:null,error:await u(o)}}async function d(e,t,n){let o=await fetch(e,{method:"POST",credentials:"include",headers:{...(()=>{let e=(0,r.iD)();return e?{Authorization:"Bearer ".concat(e)}:{}})(),"content-type":"application/json"},body:JSON.stringify(t)});return o.ok?{data:JSON.parse(JSON.stringify(n(new Uint8Array(await o.arrayBuffer())))),error:null}:{data:null,error:await u(o)}}async function h(e,t){let n=await c(e,{method:"GET",credentials:"include"});return n.ok?{data:JSON.parse(JSON.stringify(t(new Uint8Array(await n.arrayBuffer())))),error:null}:{data:null,error:await u(n)}}let g=(e,t,n)=>{let o="".concat((0,i.h)(n),"/api").concat("/v1"),r=Object.entries(t||{}).map(e=>e[1]?"".concat(e[0],"=").concat(e[1]):void 0).filter(e=>e).join("&");return"".concat(o).concat(e).concat(r?"?".concat(r):"")},f=async()=>{let{data:e,error:t}=await h(g("/account/withdraw"),l.Xt.AccountDeletionView.decode);if(t||!e){var n;throw Error(null!=(n=null==t?void 0:t.message)?n:"退会情報の取得に失敗しました")}return e},y=()=>(0,s.j)({queryKey:["getAccountDeletionView"],queryFn:f})},86430:(e,t,n)=>{"use strict";n.d(t,{Xt:()=>a});var o=n(89320);let r=o.Reader,i=o.Writer,s=o.util,l=o.roots.default||(o.roots.default={}),a=l.Proto=(()=>{let e={};return e.EpisodePublicationType=function(){let e={},t=Object.create(e);return t[e[0]="PUBLICATION_TYPE_NONE"]=0,t[e[1]="PUBLICATION_TYPE_FREE"]=1,t[e[2]="PUBLICATION_TYPE_PREMIUM"]=2,t[e[3]="PUBLICATION_TYPE_PREMIUM_ONLY"]=3,t}(),e.ImagePreset=function(){let e={},t=Object.create(e);return t[e[0]="IMAGE_PRESET_UNSPECIFIED"]=0,t[e[1]="IMAGE_PRESET_WIDE_XS"]=1,t[e[2]="IMAGE_PRESET_WIDE_SM"]=2,t[e[3]="IMAGE_PRESET_WIDE_MD"]=3,t[e[4]="IMAGE_PRESET_WIDE_LG"]=4,t[e[5]="IMAGE_PRESET_WIDE_XL"]=5,t[e[10]="IMAGE_PRESET_PORTRAIT_SM"]=10,t[e[11]="IMAGE_PRESET_PORTRAIT_MD"]=11,t[e[20]="IMAGE_PRESET_SQUARE_SM"]=20,t[e[21]="IMAGE_PRESET_SQUARE_MD"]=21,t[e[30]="IMAGE_PRESET_AVATAR_SM"]=30,t[e[31]="IMAGE_PRESET_AVATAR_MD"]=31,t[e[32]="IMAGE_PRESET_AVATAR_LG"]=32,t[e[50]="IMAGE_PRESET_ORIGINAL"]=50,t}(),e.ImageAspect=function(){let e={},t=Object.create(e);return t[e[0]="IMAGE_ASPECT_UNSPECIFIED"]=0,t[e[1]="IMAGE_ASPECT_WIDE"]=1,t[e[2]="IMAGE_ASPECT_PORTRAIT"]=2,t[e[3]="IMAGE_ASPECT_SQUARE"]=3,t[e[4]="IMAGE_ASPECT_AVATAR"]=4,t}(),e.Model=function(){let e={};return e.AudioStream=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.audioUrl="",e.prototype.bandwidth=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.audioUrl&&Object.hasOwnProperty.call(e,"audioUrl")&&t.uint32(10).string(e.audioUrl),null!=e.bandwidth&&Object.hasOwnProperty.call(e,"bandwidth")&&t.uint32(16).uint32(e.bandwidth),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.AudioStream;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.audioUrl=e.string();break;case 2:o.bandwidth=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.Benefit=function(){function e(e){if(this.notes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.code="",e.prototype.thumbnailUrl="",e.prototype.name="",e.prototype.description="",e.prototype.notes=s.emptyArray,e.prototype.requiredPoint=0,e.prototype.isSubscriptionOffer=!1,e.prototype.hasUsePermission=!1,e.prototype.numberOfWinners=0,e.prototype.numberOfEntries=0,e.prototype.lotteryMultiplier=0,e.prototype.isPublishEnded=!1,e.encode=function(e,t){if(t||(t=i.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(10).string(e.code),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(18).string(e.thumbnailUrl),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(34).string(e.description),null!=e.notes&&e.notes.length)for(let n=0;n<e.notes.length;++n)t.uint32(42).string(e.notes[n]);return null!=e.requiredPoint&&Object.hasOwnProperty.call(e,"requiredPoint")&&t.uint32(48).uint32(e.requiredPoint),null!=e.isSubscriptionOffer&&Object.hasOwnProperty.call(e,"isSubscriptionOffer")&&t.uint32(56).bool(e.isSubscriptionOffer),null!=e.hasUsePermission&&Object.hasOwnProperty.call(e,"hasUsePermission")&&t.uint32(64).bool(e.hasUsePermission),null!=e.numberOfWinners&&Object.hasOwnProperty.call(e,"numberOfWinners")&&t.uint32(80).uint32(e.numberOfWinners),null!=e.numberOfEntries&&Object.hasOwnProperty.call(e,"numberOfEntries")&&t.uint32(88).uint32(e.numberOfEntries),null!=e.lotteryMultiplier&&Object.hasOwnProperty.call(e,"lotteryMultiplier")&&t.uint32(101).float(e.lotteryMultiplier),null!=e.isPublishEnded&&Object.hasOwnProperty.call(e,"isPublishEnded")&&t.uint32(104).bool(e.isPublishEnded),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Benefit;for(;e.pos<n;){let t=e.uint32();switch(t>>>
13){case 1:o.code=e.string();break;case 2:o.thumbnailUrl=e.string();break;case 3:o.name=e.string();break;case 4:o.description=e.string();break;case 5:o.notes&&o.notes.length||(o.notes=[]),o.notes.push(e.string());break;case 6:o.requiredPoint=e.uint32();break;case 7:o.isSubscriptionOffer=e.bool();break;case 8:o.hasUsePermission=e.bool();break;case 10:o.numberOfWinners=e.uint32();break;case 11:o.numberOfEntries=e.uint32();break;case 12:o.lotteryMultiplier=e.float();break;case 13:o.isPublishEnded=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e.CommonCategory=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.code="",e.prototype.name="",e.encode=function(e,t){return t||(t=i.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(10).string(e.code),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.CommonCategory;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.code=e.string();break;case 2:o.name=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Home=function(){let e={};return e.Cache=function(){let e={};return e.CategoryTabList=function(){function e(e){if(this.categoryTabs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.categoryTabs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.categoryTabs&&e.categoryTabs.length)for(let n=0;n<e.categoryTabs.length;++n)l.Proto.Model.Home.CategoryTab.encode(e.categoryTabs[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Home.Cache.CategoryTabList;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.categoryTabs&&o.categoryTabs.length||(o.categoryTabs=[]),o.categoryTabs.push(l.Proto.Model.Home.CategoryTab.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e.EpisodeAsProgramList=function(){function e(e){if(this.list=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.list=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.list&&e.list.length)for(let n=0;n<e.list.length;++n)l.Proto.Model.Home.Cache.EpisodeAsProgram.encode(e.list[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Home.Cache.EpisodeAsProgramList;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.list&&o.list.length||(o.list=[]),o.list.push(l.Proto.Model.Home.Cache.EpisodeAsProgram.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e.EpisodeAsProgram=function(){function e(e){if(this.videoStreams=[],this.categoryCodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.logoBannerUrl="",e.prototype.episodeId=0,e.prototype.episodeName="",e.prototype.videoUrl="",e.prototype.videoStreams=s.emptyArray,e.prototype.thumbnailUrl="",e.prototype.logoMainUrl="",e.prototype.description="",e.prototype.categoryCodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.logoBannerUrl&&Object.hasOwnProperty.call(e,"logoBannerUrl")&&t.uint32(10).string(e.logoBannerUrl),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(16).uint32(e.episodeId),null!=e.episodeName&&Object.hasOwnProperty.call(e,"episodeName")&&t.uint32(26).string(e.episodeName),null!=e.videoUrl&&Object.hasOwnProperty.call(e,"videoUrl")&&t.uint32(34).string(e.videoUrl),null!=e.videoStreams&&e.videoStreams.length)for(let n=0;n<e.videoStreams.length;++n)l.Proto.VideoStream.encode(e.videoStreams[n],t.uint32(42).fork()).ldelim();if(null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(50).string(e.thumbnailUrl),null!=e.logoMainUrl&&Object.hasOwnProperty.call(e,"logoMainUrl")&&t.uint32(58).string(e.logoMainUrl),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(66).string(e.description),null!=e.categoryCodes&&e.categoryCodes.length)for(let n=0;n<e.categoryCodes.length;++n)t.uint32(74).string(e.categoryCodes[n]);return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Home.Cache.EpisodeAsProgram;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.logoBannerUrl=e.string();break;case 2:o.episodeId=e.uint32();break;case 3:o.episodeName=e.string();break;case 4:o.videoUrl=e.string();break;case 5:o.videoStreams&&o.videoStreams.length||(o.videoStreams=[]),o.videoStreams.push(l.Proto.VideoStream.decode(e,e.uint32()));break;case 6:o.thumbnailUrl=e.string();break;case 7:o.logoMainUrl=e.string();break;case 8:o.description=e.string();break;case 9:o.categoryCodes&&o.categoryCodes.length||(o.categoryCodes=[]),o.categoryCodes.push(e.string());break;default:e.skipType(7&t)}}return o},e}(),e.MovieSectionList=function(){function e(e){if(this.movieSections=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.movieSections=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.movieSections&&e.movieSections.length)for(let n=0;n<e.movieSections.length;++n)l.Proto.Model.Home.Cache.MovieSection.encode(e.movieSections[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Home.Cache.MovieSectionList;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.movieSections&&o.movieSections.length||(o.movieSections=[]),o.mov
1ieSections.push(l.Proto.Model.Home.Cache.MovieSection.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e.MovieSection=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.mediaType=0,e.prototype.chapters=s.emptyArray,e.prototype.tagId=0,e.prototype.destination=0,e.prototype.sectionType=0,e.encode=function(e,t){if(t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.mediaType&&Object.hasOwnProperty.call(e,"mediaType")&&t.uint32(16).int32(e.mediaType),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(26).fork()).ldelim();return null!=e.tagId&&Object.hasOwnProperty.call(e,"tagId")&&t.uint32(32).uint32(e.tagId),null!=e.destination&&Object.hasOwnProperty.call(e,"destination")&&t.uint32(40).int32(e.destination),null!=e.sectionType&&Object.hasOwnProperty.call(e,"sectionType")&&t.uint32(48).int32(e.sectionType),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Home.Cache.MovieSection;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.title=e.string();break;case 2:o.mediaType=e.int32();break;case 3:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;case 4:o.tagId=e.uint32();break;case 5:o.destination=e.int32();break;case 6:o.sectionType=e.int32();break;default:e.skipType(7&t)}}return o},e}(),e.Destination=function(){let e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="RANKING"]=1,t[e[2]="FEATURE"]=2,t}(),e.SectionType=function(){let e={},t=Object.create(e);return t[e[0]="SECTION_TYPE_UNSPECIFIED"]=0,t[e[1]="SECTION_TYPE_SERIES_RANKING"]=1,t[e[2]="SECTION_TYPE_NEW_ARRIVAL"]=2,t[e[3]="SECTION_TYPE_SERIES_TAG"]=3,t[e[4]="SECTION_TYPE_CHAPTER_TAG"]=4,t[e[5]="SECTION_TYPE_EPISODE_RECOMMENDATION"]=5,t[e[6]="SECTION_TYPE_VIEWING_PROGRESS"]=6,t}(),e}(),e.CategoryTab=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.category=null,e.prototype.ordering=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.category&&Object.hasOwnProperty.call(e,"category")&&l.Proto.Model.CommonCategory.encode(e.category,t.uint32(10).fork()).ldelim(),null!=e.ordering&&Object.hasOwnProperty.call(e,"ordering")&&t.uint32(16).uint32(e.ordering),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Home.CategoryTab;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.category=l.Proto.Model.CommonCategory.decode(e,e.uint32());break;case 2:o.ordering=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.RankingType=function(){let e={},t=Object.create(e);return t[e[0]="RANKING_TYPE_UNSPECIFIED"]=0,t[e[1]="RANKING_TYPE_DAILY"]=1,t[e[2]="RANKING_TYPE_WEEKLY"]=2,t[e[3]="RANKING_TYPE_MONTHLY"]=3,t[e[4]="RANKING_TYPE_YEARLY"]=4,t}(),e}(),e.Movie=function(){let e={};return e.Cache=function(){let e={};return e.MovieViewer=function(){function e(e){if(this.seriesEpisodes=[],this.tags=[],this.subtitles=[],this.casts=[],this.mcs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episode=null,e.prototype.seriesName="",e.prototype.externalSiteItem=null,e.prototype.sns=null,e.prototype.program=null,e.prototype.seriesEpisodes=s.emptyArray,e.prototype.articleUrl="",e.prototype.ulizaContentId="",e.prototype.adjustLinkToken="",e.prototype.castNames="",e.prototype.tags=s.emptyArray,e.prototype.commentCount=0,e.prototype.subtitles=s.emptyArray,e.prototype.casts=s.emptyArray,e.prototype.mcs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episode&&Object.hasOwnProperty.call(e,"episode")&&l.Proto.Episode.encode(e.episode,t.uint32(10).fork()).ldelim(),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(18).string(e.seriesName),null!=e.externalSiteItem&&Object.hasOwnProperty.call(e,"externalSiteItem")&&l.Proto.Model.Movie.Cache.MovieViewer.ExternalSiteItem.encode(e.externalSiteItem,t.uint32(26).fork()).ldelim(),null!=e.sns&&Object.hasOwnProperty.call(e,"sns")&&l.Proto.Sns.encode(e.sns,t.uint32(34).fork()).ldelim(),null!=e.program&&Object.hasOwnProperty.call(e,"program")&&l.Proto.Program.encode(e.program,t.uint32(42).fork()).ldelim(),null!=e.seriesEpisodes&&e.seriesEpisodes.length)for(let n=0;n<e.seriesEpisodes.length;++n)l.Proto.Episode.encode(e.seriesEpisodes[n],t.uint32(50).fork()).ldelim();if(null!=e.articleUrl&&Object.hasOwnProperty.call(e,"articleUrl")&&t.uint32(58).string(e.articleUrl),null!=e.ulizaContentId&&Object.hasOwnProperty.call(e,"ulizaContentId")&&t.uint32(66).string(e.ulizaContentId),null!=e.adjustLinkToken&&Object.hasOwnProperty.call(e,"adjustLinkToken")&&t.uint32(74).string(e.adjustLinkToken),null!=e.castNames&&Object.hasOwnProperty.call(e,"castNames")&&t.uint32(82).string(e.castNames),null!=e.tags&&e.tags.length)for(let n=0;n<e.tags.length;++n)l.Proto.CommonTag.encode(e.tags[n],t.uint32(90).fork()).ldelim();if(null!=e.commentCount&&Object.hasOwnProperty.call(e,"commentCount")&&t.uint32(96).uint32(e.commentCount),null!=e.subt
1itles&&e.subtitles.length)for(let n=0;n<e.subtitles.length;++n)l.Proto.Model.Movie.Cache.MovieViewer.Subtitle.encode(e.subtitles[n],t.uint32(106).fork()).ldelim();if(null!=e.casts&&e.casts.length)for(let n=0;n<e.casts.length;++n)l.Proto.Cast.encode(e.casts[n],t.uint32(114).fork()).ldelim();if(null!=e.mcs&&e.mcs.length)for(let n=0;n<e.mcs.length;++n)l.Proto.MC.encode(e.mcs[n],t.uint32(122).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Movie.Cache.MovieViewer;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episode=l.Proto.Episode.decode(e,e.uint32());break;case 2:o.seriesName=e.string();break;case 3:o.externalSiteItem=l.Proto.Model.Movie.Cache.MovieViewer.ExternalSiteItem.decode(e,e.uint32());break;case 4:o.sns=l.Proto.Sns.decode(e,e.uint32());break;case 5:o.program=l.Proto.Program.decode(e,e.uint32());break;case 6:o.seriesEpisodes&&o.seriesEpisodes.length||(o.seriesEpisodes=[]),o.seriesEpisodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 7:o.articleUrl=e.string();break;case 8:o.ulizaContentId=e.string();break;case 9:o.adjustLinkToken=e.string();break;case 10:o.castNames=e.string();break;case 11:o.tags&&o.tags.length||(o.tags=[]),o.tags.push(l.Proto.CommonTag.decode(e,e.uint32()));break;case 12:o.commentCount=e.uint32();break;case 13:o.subtitles&&o.subtitles.length||(o.subtitles=[]),o.subtitles.push(l.Proto.Model.Movie.Cache.MovieViewer.Subtitle.decode(e,e.uint32()));break;case 14:o.casts&&o.casts.length||(o.casts=[]),o.casts.push(l.Proto.Cast.decode(e,e.uint32()));break;case 15:o.mcs&&o.mcs.length||(o.mcs=[]),o.mcs.push(l.Proto.MC.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.ExternalSiteItem=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.description="",e.prototype.transitionUrl="",e.encode=function(e,t){return t||(t=i.create()),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(10).string(e.description),null!=e.transitionUrl&&Object.hasOwnProperty.call(e,"transitionUrl")&&t.uint32(18).string(e.transitionUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Movie.Cache.MovieViewer.ExternalSiteItem;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.description=e.string();break;case 2:o.transitionUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Subtitle=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.format=0,e.prototype.language="",e.prototype.label="",e.prototype.url="",e.encode=function(e,t){return t||(t=i.create()),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(8).int32(e.format),null!=e.language&&Object.hasOwnProperty.call(e,"language")&&t.uint32(18).string(e.language),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(26).string(e.label),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(34).string(e.url),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Movie.Cache.MovieViewer.Subtitle;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.format=e.int32();break;case 2:o.language=e.string();break;case 3:o.label=e.string();break;case 4:o.url=e.string();break;default:e.skipType(7&t)}}return o},e.Format=function(){let e={},t=Object.create(e);return t[e[0]="SUBTITLE_FORMAT_UNKNOWN"]=0,t[e[1]="SUBTITLE_FORMAT_WEBVTT"]=1,t[e[2]="SUBTITLE_FORMAT_SRT"]=2,t[e[3]="SUBTITLE_FORMAT_TTML"]=3,t[e[4]="SUBTITLE_FORMAT_JSON"]=4,t}(),e}(),e}(),e}(),e.CategoryEpisode=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.category=null,e.prototype.episodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.category&&Object.hasOwnProperty.call(e,"category")&&l.Proto.Model.CommonCategory.encode(e.category,t.uint32(10).fork()).ldelim(),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Episode.encode(e.episodes[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Movie.CategoryEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.category=l.Proto.Model.CommonCategory.decode(e,e.uint32());break;case 2:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Episode.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.RankingEpisode=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.rankingType=0,e.prototype.episodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.rankingType&&Object.hasOwnProperty.call(e,"rankingType")&&t.uint32(8).int32(e.rankingType),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Episode.encode(e.episodes[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.Movie.RankingEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.rankingType=e.int32();break;case 2:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Episode.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e}(),e.UlizaAnalyticsInfo=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userId="",e.prototype.contentTitle="",e.prototype.contentCategory="",e.prototype.contentFormat=0,e.prototype.contentType=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(10).string(e.userId),null!=e.contentTitle&&Object.hasOwnProperty.call(e,"contentTitle")&&t.uint32(18).string(e.contentTitle),null!=e.contentCategory&&Object.hasOwnProperty.call(e,"contentCategory")&&t.uint32(26).string(e.contentCategory),null!=e.contentFormat&&Object.hasOwnProperty.call(e,"contentFormat")&&t.uint32(32).int32(e.contentFormat),null!=e.contentType&&Object.hasOwnProperty.call(e,"contentType")&&t.uint32(40).int32(e.contentType),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Model.UlizaAnalyticsInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.userId=e.string();break;case 2:o.contentTitle=e.string();break;case 3:o.contentCategory=e.string();break;case 4:o.contentFormat=e.int32();break;case 5:o.contentType=e.int32();break;default:e.skipType(7&t)}}return o},e}(),e.UlizaContentFormat=function(){let e={},t=Object.create(e);return t[e[0]="ULIZA_CONTENT_FORMAT_NONE"]=0,t[e[1]="ULIZA_CONTENT_FORMAT_DASH"]=1,t[e[2]="ULIZA_CONTENT_FORMAT_HLS"]=2,t[e[3]="ULIZA_CONTENT_FORMAT_MP4"]=3,t[e[4]="ULIZA_CONTENT_FORMAT_OTHER"]=4,t}(),e.UlizaContentType=function(){let e={},t=Object.create(e);return t[e[0]="ULIZA_CONTENT_TYPE_NONE"]=0,t[e[1]="ULIZA_CONTENT_TYPE_DVR"]=1,t[e[2]="ULIZA_CONTENT_TYPE_LIVE"]=2,t[e[3]="ULIZA_CONTENT_TYPE_VOD"]=3,t}(),e}(),e.OidcUser=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userId=0,e.prototype.providerType=0,e.prototype.email="",e.encode=function(e,t){return t||(t=i.create()),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(8).uint32(e.userId),null!=e.providerType&&Object.hasOwnProperty.call(e,"providerType")&&t.uint32(16).int32(e.providerType),null!=e.email&&Object.hasOwnProperty.call(e,"email")&&t.uint32(26).string(e.email),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.OidcUser;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.userId=e.uint32();break;case 2:o.providerType=e.int32();break;case 3:o.email=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.ProviderType=function(){let e={},t=Object.create(e);return t[e[0]="PROVIDER_TYPE_UNSPECIFIED"]=0,t[e[1]="PROVIDER_TYPE_GOOGLE"]=1,t[e[2]="PROVIDER_TYPE_APPLE"]=2,t}(),e.Banner=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.imageUrl="",e.prototype.seriesName="",e.prototype.seriesCopy="",e.prototype.seriesDescription="",e.prototype.transitionUrl="",e.prototype.seriesId=0,e.prototype.type=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(10).string(e.imageUrl),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(18).string(e.seriesName),null!=e.seriesCopy&&Object.hasOwnProperty.call(e,"seriesCopy")&&t.uint32(26).string(e.seriesCopy),null!=e.seriesDescription&&Object.hasOwnProperty.call(e,"seriesDescription")&&t.uint32(34).string(e.seriesDescription),null!=e.transitionUrl&&Object.hasOwnProperty.call(e,"transitionUrl")&&t.uint32(42).string(e.transitionUrl),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(48).uint32(e.seriesId),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(56).int32(e.type),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Banner;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.imageUrl=e.string();break;case 2:o.seriesName=e.string();break;case 3:o.seriesCopy=e.string();break;case 4:o.seriesDescription=e.string();break;case 5:o.transitionUrl=e.string();break;case 6:o.seriesId=e.uint32();break;case 7:o.type=e.int32();break;default:e.skipType(7&t)}}return o},e}(),e.BillingItem=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.item=null,e.prototype.bargain=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.item&&Object.hasOwnProperty.call(e,"item")&&l.Proto.UserPoint.encode(e.item,t.uint32(18).fork()).ldelim(),null!=e.bargain&&Object.hasOwnProperty.call(e,"bargain")&&t.uint32(24).uint32(e.bargain),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.BillingItem;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.string();break;case 2:o.item=l.Proto.UserPoint.decode(e,e.uint32());break;case 3:o.bargain=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.Cast=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.castId=0,e.prototype.name="",e.encode=function(e,t){return t||(t=i.create()),null!=e.castId&&Object.hasOwnProperty.call(e,"castId")&&t.uint32(8).uint32(e.castId),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Cast;
1for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.castId=e.uint32();break;case 2:o.name=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Category=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=0,e.prototype.nameEiji="",e.prototype.nameKana="",e.prototype.chapterCount=0,e.prototype.imageUrl="",e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),null!=e.nameEiji&&Object.hasOwnProperty.call(e,"nameEiji")&&t.uint32(18).string(e.nameEiji),null!=e.nameKana&&Object.hasOwnProperty.call(e,"nameKana")&&t.uint32(26).string(e.nameKana),null!=e.chapterCount&&Object.hasOwnProperty.call(e,"chapterCount")&&t.uint32(32).uint32(e.chapterCount),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(42).string(e.imageUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Category;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint32();break;case 2:o.nameEiji=e.string();break;case 3:o.nameKana=e.string();break;case 4:o.chapterCount=e.uint32();break;case 5:o.imageUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Chapter=function(){function e(e){if(this.highlights=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seriesName="",e.prototype.numberOfHighlights=0,e.prototype.numberAndName="",e.prototype.seriesAndAuthor="",e.prototype.seriesId=0,e.prototype.id=0,e.prototype.type=0,e.prototype.name="",e.prototype.number="",e.prototype.authorName="",e.prototype.imageUrl="",e.prototype.movieImageUrl="",e.prototype.badge=0,e.prototype.alreadyViewed=!1,e.prototype.ranking=0,e.prototype.pointConsumption=null,e.prototype.remainingRentalTime=0,e.prototype.chargeStatus=0,e.prototype.highlights=s.emptyArray,e.prototype.series=null,e.prototype.isNewArrival=!1,e.prototype.publishedAt=null,e.prototype.publicationType=0,e.prototype.isExpired=!1,e.prototype.expiresDetail=null,e.prototype.durationSeconds=0,e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(26).string(e.number),null!=e.authorName&&Object.hasOwnProperty.call(e,"authorName")&&t.uint32(34).string(e.authorName),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(42).string(e.seriesName),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(50).string(e.imageUrl),null!=e.pointConsumption&&Object.hasOwnProperty.call(e,"pointConsumption")&&l.Proto.PointConsumption.encode(e.pointConsumption,t.uint32(58).fork()).ldelim(),null!=e.remainingRentalTime&&Object.hasOwnProperty.call(e,"remainingRentalTime")&&t.uint32(64).uint32(e.remainingRentalTime),null!=e.numberOfHighlights&&Object.hasOwnProperty.call(e,"numberOfHighlights")&&t.uint32(72).uint32(e.numberOfHighlights),null!=e.badge&&Object.hasOwnProperty.call(e,"badge")&&t.uint32(80).int32(e.badge),null!=e.alreadyViewed&&Object.hasOwnProperty.call(e,"alreadyViewed")&&t.uint32(88).bool(e.alreadyViewed),null!=e.numberAndName&&Object.hasOwnProperty.call(e,"numberAndName")&&t.uint32(98).string(e.numberAndName),null!=e.seriesAndAuthor&&Object.hasOwnProperty.call(e,"seriesAndAuthor")&&t.uint32(106).string(e.seriesAndAuthor),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(112).uint32(e.seriesId),null!=e.chargeStatus&&Object.hasOwnProperty.call(e,"chargeStatus")&&t.uint32(120).int32(e.chargeStatus),null!=e.ranking&&Object.hasOwnProperty.call(e,"ranking")&&t.uint32(128).uint32(e.ranking),null!=e.highlights&&e.highlights.length)for(let n=0;n<e.highlights.length;++n)l.Proto.Highlight.encode(e.highlights[n],t.uint32(138).fork()).ldelim();return null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(144).int32(e.type),null!=e.movieImageUrl&&Object.hasOwnProperty.call(e,"movieImageUrl")&&t.uint32(154).string(e.movieImageUrl),null!=e.series&&Object.hasOwnProperty.call(e,"series")&&l.Proto.Series.encode(e.series,t.uint32(162).fork()).ldelim(),null!=e.isNewArrival&&Object.hasOwnProperty.call(e,"isNewArrival")&&t.uint32(168).bool(e.isNewArrival),null!=e.publishedAt&&Object.hasOwnProperty.call(e,"publishedAt")&&l.google.protobuf.Timestamp.encode(e.publishedAt,t.uint32(178).fork()).ldelim(),null!=e.publicationType&&Object.hasOwnProperty.call(e,"publicationType")&&t.uint32(184).int32(e.publicationType),null!=e.isExpired&&Object.hasOwnProperty.call(e,"isExpired")&&t.uint32(192).bool(e.isExpired),null!=e.expiresDetail&&Object.hasOwnProperty.call(e,"expiresDetail")&&l.Proto.ExpiresDetail.encode(e.expiresDetail,t.uint32(202).fork()).ldelim(),null!=e.durationSeconds&&Object.hasOwnProperty.call(e,"durationSeconds")&&t.uint32(208).uint32(e.durationSeconds),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Chapter;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 5:o.seriesName=e.string();break;case 9:o.numberOfHighlights=e.uint32();break;case 12:o.numberAndName=e.string();break;case 13:o.seriesAndAuthor=e.string();break;case 14:o.seriesId=e.uint32();break;case 1:o.id=e.uint32();break;case 18:o.type=e.int32();break;case 2:o.name=e.string();break;case 3:o.number=e.string();break;case 4:o.authorName=e.string();break;case 6:o.imageUrl=e.string();break;case 19:o.movieImageUrl=e.string();break;case 10:o.badge=e.int32();break;case 11:o.alreadyViewed=e.bool();break;case 16:o.ranking=e.uint32();break;case 7:o.pointConsumption=l.Proto.PointConsumption.decode(e,e.uint32());break;case 8:o.remainingRentalTime=e.uint32();break;case 15:o.chargeStatus=e.int32();break;case 17:o.highlights&&o.highlights.length||(o.highlights=[]),o.highlights.push(l.Proto.Highlight.decode(e,e.uint32()));break;case 20:o.series=l.Proto.Series.decode(e,e.uint32());break;case 21:o.isNewArrival=e.bool();break;case 22:o.publishedAt=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 23:o.publicationType=e.int32();break;case 24:o.isExpired=e.bool();break;case 25:o.expiresDetail=l.Proto.ExpiresDetail.decode(e,e.uint32());break;case 26:o.durationSeconds=e.uint32();break;default:e.skipType(7&t)}}return o},e.Badge=function(){let e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="UPDATE"]=1,t[e[2]="RANKING"]=2,t}(),e.ChargeStatus=function(){let e={},t=Object.create(e);return t[e[0]="FREE"]=0,t[e[1]="PAID"]=1,t[e[2]="WAIT"]=2,t[e[3]="PURCHASED"]=3,t[e[4]="IN_RENTAL"]=4,t}(),e}(),e.ChapterGroup=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.imageUrl="",e.prototype.seriesName="",e.prototype.authorName="",e.prototype.chapters=s.emptyArray,e.prototype.nameAndAuthor="",e.prototype.seriesId=0,e.encode=function(e,t){if(t||(t=i.create()),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(10).string(e.imageUrl),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(18).string(e.seriesName),null!=e.authorName&&Object.hasOwnProperty.call(e,"authorName")&&t.uint32(26).string(e.authorName),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(34).fork()).ldelim();return null!=e.nameAndAuthor&&Object.hasOwnProperty.call(e,"nameAndAuthor")&&t.uint32(42).string(e.nameAndAuthor),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(48).uint32(e.seriesId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ChapterGroup;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.imageUrl=e.string();break;case 2:o.seriesName=e.string();break;case 3:o.authorName=e.string();break;case 4:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;case 5:o.nameAndAuthor=e.string();break;case 6:o.seriesId=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.ChapterV2=function(){function e(e){if(this.highlights=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seriesName="",e.prototype.numberOfHighlights=0,e.prototype.numberAndName="",e.prototype.seriesAndAuthor="",e.prototype.seriesId=0,e.prototype.id=0,e.prototype.type=0,e.prototype.name="",e.prototype.number="",e.prototype.authorName="",e.prototype.imageUrl="",e.prototype.movieImageUrl="",e.prototype.badge=0,e.prototype.alreadyViewed=!1,e.prototype.ranking=0,e.prototype.pointConsumption=null,e.prototype.remainingRentalTime=0,e.prototype.chargeStatus=0,e.prototype.highlights=s.emptyArray,e.prototype.series=null,e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.number&&Object.hasOwnProperty.call(e,"number")&&t.uint32(26).string(e.number),null!=e.authorName&&Object.hasOwnProperty.call(e,"authorName")&&t.uint32(34).string(e.authorName),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(42).string(e.seriesName),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(50).string(e.imageUrl),null!=e.pointConsumption&&Object.hasOwnProperty.call(e,"pointConsumption")&&l.Proto.PointConsumption.encode(e.pointConsumption,t.uint32(58).fork()).ldelim(),null!=e.remainingRentalTime&&Object.hasOwnProperty.call(e,"remainingRentalTime")&&t.uint32(64).uint32(e.remainingRentalTime),null!=e.numberOfHighlights&&Object.hasOwnProperty.call(e,"numberOfHighlights")&&t.uint32(72).uint32(e.numberOfHighlights),null!=e.badge&&Object.hasOwnProperty.call(e,"badge")&&t.uint32(80).int32(e.badge),null!=e.alreadyViewed&&Object.hasOwnProperty.call(e,"alreadyViewed")&&t.uint32(88).bool(e.alreadyViewed),null!=e.numberAndName&&Object.hasOwnProperty.call(e,"numberAndName")&&t.uint32(98).string(e.numberAndName),null!=e.seriesAndAuthor&&Object.hasOwnProperty.call(e,"seriesAndAuthor")&&t.uint32(106).string(e.seriesAndAuthor),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(112).uint32(e.seriesId),null!=e.chargeStatus&&Object.hasOwnProperty.call(e,"chargeStatus")&&t.uint32(120).int32(e.chargeStatus),null!=e.ranking&&Object.hasOwnProperty.call(e,"ranking")&&t.uint32(128).uint32(e.ranking),null!=e.highlights&&e.highlights.length)for(let n=0;n<e.highlights.length;++n)l.Proto.Highlight.encode(e.highlights[n],t.uint32(138).fork()).ldelim();return null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(144).int32(e.type),null!=e.movieImageUrl&&Object.hasOwnProperty.call(e,"movieImageUrl")&&t.uint32(154).string(e.movieImageUrl),null!=e.series&&Object.hasOwnProperty.call(e,"series")&&l.Proto.Series.encode(e.series,t.uint32(162).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ChapterV2;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 5:o.seriesName=e.string();break;case 9:o.numberOfHighlights=e.uint32();break;case 12:o.numberAndName=e.string();break;case 13:o.seriesAndAuthor=e.string();break;case 14:o.seriesId=e.uint32();break;case 1:o.id=e.uint32();break;case 18:o.type=e.int32();break;case 2:o.name=e.string();break;case 3:o.number=e.string();break;case 4:o.authorName=e.string();break;case 6:o.imageUrl=e.string();break;case 19:o.movieImageUrl=e.string();break;case 10:o.badge=e.int32();break;case 11:o.alreadyViewed=e.bool();break;case 16:o.ranking=e.uint32();break;case 7:o.pointConsumption=l.Proto.PointConsumption.decode(e,e.uint32());break;case 8:o.remainingRentalTime=e.uint32();break;case 15:o.chargeStatus=e.int32();break;case 17:o.highlights&&o.highlights.length||(o.highlights=[]),o.highlights.push(l.Proto.Highlight.decode(e,e.uint32()));break;case 20:o.series=l.Proto.Series.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.Badge=function(){let e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="UPDATE"]=1,t[e[2]="RANKING"]=2,t}(),e.ChargeStatus=function(){let e={},t=Object.create(e);return t[e[0]="FREE"]=0,t[e[1]="PAID"]=1,t[e[2]="WAIT"]=2,t[e[3]="PURCHASED"]=3,t[e[4]="IN_RENTAL"]=4,t}(),e}(),e.CoinConsumptionHistory=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.date="",e.prototype.consumption=0,e.prototype.chapters=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.date&&Object.hasOwnProperty.call(e,"date")&&t.uint32(10).string(e.date),null!=e.consumption&&Object.hasOwnProperty.call(e,"consumption")&&t.uint32(16).uint32(e.consumption),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CoinConsumptionHistory;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.date=e.string();break;case 2:o.consumption=e.uint32();break;case 3:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.CoinPurchaseHistory=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.date="",e.prototype.price=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.date&&Object.hasOwnProperty.call(e,"date")&&t.uint32(10).string(e.date),null!=e.price&&Object.hasOwnProperty.call(e,"price")&&t.uint32(16).uint32(e.price),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CoinPurchaseHistory;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.date=e.string();break;case 2:o.price=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.CommonTag=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.code="",e.prototype.name="",e.encode=function(e,t){return t||(t=i.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(10).string(e.code),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CommonTag;for(;e.pos<n;){let t=e.uint32();switch(t>>>
13){case 1:o.code=e.string();break;case 2:o.name=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Episode=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=0,e.prototype.name="",e.prototype.thumbnailUrl="",e.prototype.isNewArrival=!1,e.prototype.description="",e.prototype.playbackPositionSeconds=0,e.prototype.publishedAt=null,e.prototype.cast="",e.prototype.durationSeconds=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(26).string(e.thumbnailUrl),null!=e.isNewArrival&&Object.hasOwnProperty.call(e,"isNewArrival")&&t.uint32(32).bool(e.isNewArrival),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(42).string(e.description),null!=e.playbackPositionSeconds&&Object.hasOwnProperty.call(e,"playbackPositionSeconds")&&t.uint32(48).uint32(e.playbackPositionSeconds),null!=e.publishedAt&&Object.hasOwnProperty.call(e,"publishedAt")&&l.google.protobuf.Timestamp.encode(e.publishedAt,t.uint32(58).fork()).ldelim(),null!=e.cast&&Object.hasOwnProperty.call(e,"cast")&&t.uint32(66).string(e.cast),null!=e.durationSeconds&&Object.hasOwnProperty.call(e,"durationSeconds")&&t.uint32(72).uint32(e.durationSeconds),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Episode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint32();break;case 2:o.name=e.string();break;case 3:o.thumbnailUrl=e.string();break;case 4:o.isNewArrival=e.bool();break;case 5:o.description=e.string();break;case 6:o.playbackPositionSeconds=e.uint32();break;case 7:o.publishedAt=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 8:o.cast=e.string();break;case 9:o.durationSeconds=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.EventCoinExpiration=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.date="",e.prototype.event=0,e.prototype.expirationDate="",e.prototype.isExpireSoon=!1,e.encode=function(e,t){return t||(t=i.create()),null!=e.date&&Object.hasOwnProperty.call(e,"date")&&t.uint32(10).string(e.date),null!=e.event&&Object.hasOwnProperty.call(e,"event")&&t.uint32(16).uint32(e.event),null!=e.expirationDate&&Object.hasOwnProperty.call(e,"expirationDate")&&t.uint32(26).string(e.expirationDate),null!=e.isExpireSoon&&Object.hasOwnProperty.call(e,"isExpireSoon")&&t.uint32(32).bool(e.isExpireSoon),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.EventCoinExpiration;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.date=e.string();break;case 2:o.event=e.uint32();break;case 3:o.expirationDate=e.string();break;case 4:o.isExpireSoon=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e.Highlight=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.imageUrl="",e.prototype.quotes="",e.prototype.highlight="",e.prototype.date="",e.prototype.seriesId=0,e.prototype.seriesName="",e.prototype.chapterId=0,e.prototype.chapterName="",e.prototype.chapterNumber="",e.prototype.id=0,e.prototype.isMyHighlight=!1,e.encode=function(e,t){return t||(t=i.create()),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(10).string(e.imageUrl),null!=e.quotes&&Object.hasOwnProperty.call(e,"quotes")&&t.uint32(18).string(e.quotes),null!=e.highlight&&Object.hasOwnProperty.call(e,"highlight")&&t.uint32(26).string(e.highlight),null!=e.date&&Object.hasOwnProperty.call(e,"date")&&t.uint32(34).string(e.date),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(40).uint32(e.seriesId),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(50).string(e.seriesName),null!=e.chapterId&&Object.hasOwnProperty.call(e,"chapterId")&&t.uint32(56).uint32(e.chapterId),null!=e.chapterName&&Object.hasOwnProperty.call(e,"chapterName")&&t.uint32(66).string(e.chapterName),null!=e.chapterNumber&&Object.hasOwnProperty.call(e,"chapterNumber")&&t.uint32(74).string(e.chapterNumber),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(80).uint32(e.id),null!=e.isMyHighlight&&Object.hasOwnProperty.call(e,"isMyHighlight")&&t.uint32(88).bool(e.isMyHighlight),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Highlight;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.imageUrl=e.string();break;case 2:o.quotes=e.string();break;case 3:o.highlight=e.string();break;case 4:o.date=e.string();break;case 5:o.seriesId=e.uint32();break;case 6:o.seriesName=e.string();break;case 7:o.chapterId=e.uint32();break;case 8:o.chapterName=e.string();break;case 9:o.chapterNumber=e.string();break;case 10:o.id=e.uint32();break;case 11:o.isMyHighlight=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e.HighlightGroup=function(){function e(e){if(this.highlights=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.header="",e.prototype.highlights=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.header&&Object.hasOwnProperty.call(e,"header")&&t.uint32(18).string(e.header),null!=e.highlights&&e.highlights.length)for(let n=0;n<e.highlights.length;++n)l.Proto.Highlight.encode(e.highlights[n],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HighlightGroup;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 2:o.header=e.string();break;case 3:o.highlights&&o.highlights.length||(o.highlights=[]),o.highlights.push(l.Proto.Highlight.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.MC=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=0,e.prototype.name="",e.prototype.description="",e.prototype.avatarUrl="",e.prototype.isEnded=!1,e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(26).string(e.description),null!=e.avatarUrl&&Object.hasOwnProperty.call(e,"avatarUrl")&&t.uint32(34).string(e.avatarUrl),null!=e.isEnded&&Object.hasOwnProperty.call(e,"isEnded")&&t.uint32(40).bool(e.isEnded),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MC;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint32();break;case 2:o.name=e.string();break;case 3:o.description=e.string();break;case 4:o.avatarUrl=e.string();break;case 5:o.isEnded=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e.MediaType=function(){let e={},t=Object.create(e);return t[e[0]="ARTICLE"]=0,t[e[1]="MOVIE"]=1,t[e[2]="MUSIC"]=2,t[e[3]="COMIC"]=3,t}(),e.Membership=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.membershipRank=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint64(e.id),null!=e.membershipRank&&Object.hasOwnProperty.call(e,"membershipRank")&&t.uint32(16).int32(e.membershipRank),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Membership;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint64();break;case 2:o.membershipRank=e.int32();break;default:e.skipType(7&t)}}return o},e.MembershipRank=function(){let e={},t=Object.create(e);return t[e[0]="MEMBERSHIP_RANK_NONE"]=0,t[e[1]="MEMBERSHIP_RANK_ANONYMOUS"]=1,t[e[2]="MEMBERSHIP_RANK_FREE"]=2,t[e[3]="MEMBERSHIP_RANK_PREMIUM"]=3,t}(),e}(),e.ExpiresDetail=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.daysUntilExpiration=0,e.prototype.freeAccessDurationDays=0,e.prototype.freeSubsTrialDurationDays=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.daysUntilExpiration&&Object.hasOwnProperty.call(e,"daysUntilExpiration")&&t.uint32(8).uint32(e.daysUntilExpiration),null!=e.freeAccessDurationDays&&Object.hasOwnProperty.call(e,"freeAccessDurationDays")&&t.uint32(16).uint32(e.freeAccessDurationDays),null!=e.freeSubsTrialDurationDays&&Object.hasOwnProperty.call(e,"freeSubsTrialDurationDays")&&t.uint32(24).uint32(e.freeSubsTrialDurationDays),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ExpiresDetail;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.daysUntilExpiration=e.uint32();break;case 2:o.freeAccessDurationDays=e.uint32();break;case 3:o.freeSubsTrialDurationDays=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.MovieChapter=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=0,e.prototype.seriesId=0,e.prototype.chapterTitle="",e.prototype.seriesTitle="",e.prototype.imageUrl="",e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),null!=e.chapterTitle&&Object.hasOwnProperty.call(e,"chapterTitle")&&t.uint32(18).string(e.chapterTitle),null!=e.seriesTitle&&Object.hasOwnProperty.call(e,"seriesTitle")&&t.uint32(26).string(e.seriesTitle),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(50).string(e.imageUrl),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(112).uint32(e.seriesId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieChapter;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint32();break;case 14:o.seriesId=e.uint32();break;case 2:o.chapterTitle=e.string();break;case 3:o.seriesTitle=e.string();break;case 6:o.imageUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Pagination=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.totalItems=0,e.prototype.totalPages=0,e.prototype.currentPage=0,e.prototype.perPage=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.totalItems&&Object.hasOwnProperty.call(e,"totalItems")&&t.uint32(8).uint32(e.totalItems),null!=e.totalPages&&Object.hasOwnProperty.call(e,"totalPages")&&t.uint32(16).uint32(e.totalPages),null!=e.currentPage&&Object.hasOwnProperty.call(e,"currentPage")&&t.uint32(24).uint32(e.currentPage),null!=e.perPage&&Object.hasOwnProperty.call(e,"perPage")&&t.uint32(32).uint32(e.perPage),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Pagination;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.totalItems=e.uint32();break;case 2:o.totalPages=e.uint32();break;case 3:o.currentPage=e.uint32();break;case 4:o.perPage=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.PaymentMethod=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.paymentMethodType=0,e.prototype.creditCard=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.paymentMethodType&&Object.hasOwnProperty.call(e,"paymentMethodType")&&t.uint32(8).int32(e.paymentMethodType),null!=e.creditCard&&Object.hasOwnProperty.call(e,"credit
1Card")&&l.Proto.PaymentMethod.CreditCard.encode(e.creditCard,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PaymentMethod;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.paymentMethodType=e.int32();break;case 2:o.creditCard=l.Proto.PaymentMethod.CreditCard.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.PaymentMethodType=function(){let e={},t=Object.create(e);return t[e[0]="PAYMENT_METHOD_TYPE_NONE"]=0,t[e[1]="PAYMENT_METHOD_TYPE_APP_STORE"]=1,t[e[2]="PAYMENT_METHOD_TYPE_PLAY_STORE"]=2,t[e[3]="PAYMENT_METHOD_TYPE_CREDIT_CARD"]=3,t}(),e.CreditCard=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.expiryYear=0,e.prototype.expiryMonth=0,e.prototype.last4="",e.encode=function(e,t){return t||(t=i.create()),null!=e.expiryYear&&Object.hasOwnProperty.call(e,"expiryYear")&&t.uint32(8).uint32(e.expiryYear),null!=e.expiryMonth&&Object.hasOwnProperty.call(e,"expiryMonth")&&t.uint32(16).uint32(e.expiryMonth),null!=e.last4&&Object.hasOwnProperty.call(e,"last4")&&t.uint32(26).string(e.last4),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PaymentMethod.CreditCard;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.expiryYear=e.uint32();break;case 2:o.expiryMonth=e.uint32();break;case 3:o.last4=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.Pickup=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.imageUrl="",e.prototype.url="",e.prototype.type=0,e.prototype.seriesId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(10).string(e.imageUrl),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(24).int32(e.type),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(32).uint32(e.seriesId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Pickup;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.imageUrl=e.string();break;case 2:o.url=e.string();break;case 3:o.type=e.int32();break;case 4:o.seriesId=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.PlanListInfo=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.freeMembershipPlan=null,e.prototype.premiumMembershipPlan=null,e.prototype.premiumMembershipPlanDetail=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.freeMembershipPlan&&Object.hasOwnProperty.call(e,"freeMembershipPlan")&&l.Proto.FreeMembershipPlan.encode(e.freeMembershipPlan,t.uint32(10).fork()).ldelim(),null!=e.premiumMembershipPlan&&Object.hasOwnProperty.call(e,"premiumMembershipPlan")&&l.Proto.PremiumMembershipPlan.encode(e.premiumMembershipPlan,t.uint32(18).fork()).ldelim(),null!=e.premiumMembershipPlanDetail&&Object.hasOwnProperty.call(e,"premiumMembershipPlanDetail")&&l.Proto.PremiumMembershipPlanDetail.encode(e.premiumMembershipPlanDetail,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PlanListInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.freeMembershipPlan=l.Proto.FreeMembershipPlan.decode(e,e.uint32());break;case 2:o.premiumMembershipPlan=l.Proto.PremiumMembershipPlan.decode(e,e.uint32());break;case 3:o.premiumMembershipPlanDetail=l.Proto.PremiumMembershipPlanDetail.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e.FreeMembershipPlan=function(){function e(e){if(this.standardBenefits=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.standardBenefits=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.standardBenefits&&e.standardBenefits.length)for(let n=0;n<e.standardBenefits.length;++n)t.uint32(10).string(e.standardBenefits[n]);return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.FreeMembershipPlan;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.standardBenefits&&o.standardBenefits.length||(o.standardBenefits=[]),o.standardBenefits.push(e.string())):e.ski
1pType(7&t)}return o},e}(),e.PremiumMembershipPlan=function(){function e(e){if(this.standardBenefits=[],this.premiumBenefits=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.standardBenefits=s.emptyArray,e.prototype.price=0,e.prototype.premiumBenefits=s.emptyArray,e.prototype.landingPageUrl="",e.encode=function(e,t){if(t||(t=i.create()),null!=e.standardBenefits&&e.standardBenefits.length)for(let n=0;n<e.standardBenefits.length;++n)t.uint32(10).string(e.standardBenefits[n]);if(null!=e.price&&Object.hasOwnProperty.call(e,"price")&&t.uint32(16).uint32(e.price),null!=e.premiumBenefits&&e.premiumBenefits.length)for(let n=0;n<e.premiumBenefits.length;++n)t.uint32(26).string(e.premiumBenefits[n]);return null!=e.landingPageUrl&&Object.hasOwnProperty.call(e,"landingPageUrl")&&t.uint32(34).string(e.landingPageUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PremiumMembershipPlan;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.standardBenefits&&o.standardBenefits.length||(o.standardBenefits=[]),o.standardBenefits.push(e.string());break;case 2:o.price=e.uint32();break;case 3:o.premiumBenefits&&o.premiumBenefits.length||(o.premiumBenefits=[]),o.premiumBenefits.push(e.string());break;case 4:o.landingPageUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.PremiumMembershipPlanDetail=function(){function e(e){if(this.contents=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.contents=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.contents&&e.contents.length)for(let n=0;n<e.contents.length;++n)l.Proto.PremiumMembershipPlanDetail.Content.encode(e.contents[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PremiumMembershipPlanDetail;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.contents&&o.contents.length||(o.contents=[]),o.contents.push(l.Proto.PremiumMembershipPlanDetail.Content.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.Content=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.heading="",e.prototype.description="",e.prototype.imageUrl="",e.encode=function(e,t){return t||(t=i.create()),null!=e.heading&&Object.hasOwnProperty.call(e,"heading")&&t.uint32(10).string(e.heading),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(18).string(e.description),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(26).string(e.imageUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PremiumMembershipPlanDetail.Content;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.heading=e.string();break;case 2:o.description=e.string();break;case 3:o.imageUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.PointConsumption=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.type=0,e.prototype.amount=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(8).int32(e.type),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).uint32(e.amount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PointConsumption;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.type=e.int32();break;case 2:o.amount=e.uint32();break;default:e.skipType(7&t)}}return o},e.Type=function(){let e={},t=Object.create(e);return t[e[0]="ANY_ITEMS"]=0,t[e[1]="EVENT_OR_PAID"]=1,t}(),e}(),e.PointHistory=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.date="",e.prototype.generalDescription="",e.prototype.detailedDescription="",e.prototype.point=0,e.prototype.type=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.date&&Object.hasOwnProperty.call(e,"date")&&t.uint32(10).string(e.date),null!=e.generalDescription&&Object.hasOwnProperty.call(e,"generalDescription")&&t.uint32(18).string(e.generalDescription),null!=e.detailedDescription&&Object.hasOwnProperty.call(e,"detailedDescription")&&t.uint32(26).string(e.detailedDescription),null!=e.point&&Object.hasOwnProperty.call(e,"point")&&t.uint32(32).uint32(e.point),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(40).int32(e.type),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PointHistory;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.date=e.string();break;case 2:o.generalDescription=e.string();break;case 3:o.detailedDescription=e.string();break;case 4:o.point=e.uint32();break;case 5:o.type=e.int32();break;default:e.skipType(7&t)}}return o},e.PointHistoryType=function(){let e={},t=Object.create(e);
1return t[e[0]="ACQUIRED"]=0,t[e[1]="USED_OR_EXPIRED"]=1,t}(),e}(),e.Popup=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.message="",e.prototype.imageUrl="",e.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(26).string(e.imageUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Popup;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.title=e.string();break;case 2:o.message=e.string();break;case 3:o.imageUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Program=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.name="",e.prototype.description="",e.prototype.thumbnailUrl="",e.prototype.episodes=s.emptyArray,e.prototype.logoMainUrl="",e.prototype.isSponsored=!1,e.prototype.thumbnailUrlPortrait="",e.prototype.logoBannerUrl="",e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint64(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(26).string(e.description),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(34).string(e.thumbnailUrl),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Episode.encode(e.episodes[n],t.uint32(42).fork()).ldelim();return null!=e.logoMainUrl&&Object.hasOwnProperty.call(e,"logoMainUrl")&&t.uint32(50).string(e.logoMainUrl),null!=e.isSponsored&&Object.hasOwnProperty.call(e,"isSponsored")&&t.uint32(56).bool(e.isSponsored),null!=e.thumbnailUrlPortrait&&Object.hasOwnProperty.call(e,"thumbnailUrlPortrait")&&t.uint32(66).string(e.thumbnailUrlPortrait),null!=e.logoBannerUrl&&Object.hasOwnProperty.call(e,"logoBannerUrl")&&t.uint32(74).string(e.logoBannerUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Program;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint64();break;case 2:o.name=e.string();break;case 3:o.description=e.string();break;case 4:o.thumbnailUrl=e.string();break;case 5:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 6:o.logoMainUrl=e.string();break;case 7:o.isSponsored=e.bool();break;case 8:o.thumbnailUrlPortrait=e.string();break;case 9:o.logoBannerUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.ProgramEpisode=function(){function e(e){if(this.casts=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodeId=0,e.prototype.name="",e.prototype.description="",e.prototype.publishTime=null,e.prototype.casts=s.emptyArray,e.prototype.thumbnailUrl="",e.prototype.isArticleAvailable=!1,e.prototype.durationSeconds=0,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(8).uint32(e.episodeId),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(26).string(e.description),null!=e.publishTime&&Object.hasOwnProperty.call(e,"publishTime")&&l.google.protobuf.Timestamp.encode(e.publishTime,t.uint32(34).fork()).ldelim(),null!=e.casts&&e.casts.length)for(let n=0;n<e.casts.length;++n)t.uint32(42).string(e.casts[n]);return null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(50).string(e.thumbnailUrl),null!=e.isArticleAvailable&&Object.hasOwnProperty.call(e,"isArticleAvailable")&&t.uint32(56).bool(e.isArticleAvailable),null!=e.durationSeconds&&Object.hasOwnProperty.call(e,"durationSeconds")&&t.uint32(64).uint32(e.durationSeconds),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ProgramEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodeId=e.uint32();break;case 2:o.name=e.string();break;case 3:o.description=e.string();break;case 4:o.publishTime=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:o.casts&&o.casts.length||(o.casts=[]),o.casts.push(e.string());break;case 6:o.thumbnailUrl=e.string();break;case 7:o.isArticleAvailable=e.bool();break;case 8:o.durationSeconds=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.Section=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.panel=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.panel&&Object.hasOwnProperty.call(e,"panel")&&l.Proto.Section.Panel.encode(e.panel,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Section;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.title=e.string();break;case 2:o.panel=l.Proto.Section.Panel.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.Panel=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodes=s.emptyArray,e.prototype.tagId=0,e.prototype.destination=0,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Episode.encode(e.episodes[n],t.uint32(10).fork()).ldelim();return null!=e.tagId&&Object.hasOwnProperty.call(e,"tagId")&&t.uint32(16).uint32(e.tagId),null!=e.destination&&Object.hasOwnProperty.call(e,"destination")&&t.uint32(24).int32(e.destination),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Section.Panel;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 2:o.tagId=e.uint32();break;case 3:o.destination=e.int32();break;default:e.skipType(7&t)}}return o},e}(),e.Destination=function(){let e={},t=Object.create(e);return t[e[0]="DESTINATION_NONE"]=0,t[e[1]="DESTINATION_RANKING"]=1,t[e[2]="DESTINATION_FEATURE"]=2,t}(),e}(),e.Series=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.numberOfArticles="",e.prototype.nameAndAuthor="",e.prototype.shortDe
1scription="",e.prototype.id=0,e.prototype.type=0,e.prototype.seriesName="",e.prototype.authorName="",e.prototype.imageUrl="",e.prototype.isBookmarked=!1,e.prototype.badge=0,e.prototype.remainingChargeTime=0,e.prototype.chargeTime=0,e.prototype.ranking=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(16).int32(e.type),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(26).string(e.seriesName),null!=e.authorName&&Object.hasOwnProperty.call(e,"authorName")&&t.uint32(34).string(e.authorName),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(42).string(e.imageUrl),null!=e.shortDescription&&Object.hasOwnProperty.call(e,"shortDescription")&&t.uint32(50).string(e.shortDescription),null!=e.isBookmarked&&Object.hasOwnProperty.call(e,"isBookmarked")&&t.uint32(56).bool(e.isBookmarked),null!=e.badge&&Object.hasOwnProperty.call(e,"badge")&&t.uint32(64).int32(e.badge),null!=e.remainingChargeTime&&Object.hasOwnProperty.call(e,"remainingChargeTime")&&t.uint32(72).uint32(e.remainingChargeTime),null!=e.chargeTime&&Object.hasOwnProperty.call(e,"chargeTime")&&t.uint32(80).uint32(e.chargeTime),null!=e.numberOfArticles&&Object.hasOwnProperty.call(e,"numberOfArticles")&&t.uint32(90).string(e.numberOfArticles),null!=e.nameAndAuthor&&Object.hasOwnProperty.call(e,"nameAndAuthor")&&t.uint32(98).string(e.nameAndAuthor),null!=e.ranking&&Object.hasOwnProperty.call(e,"ranking")&&t.uint32(104).uint32(e.ranking),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Series;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 11:o.numberOfArticles=e.string();break;case 12:o.nameAndAuthor=e.string();break;case 6:o.shortDescription=e.string();break;case 1:o.id=e.uint32();break;case 2:o.type=e.int32();break;case 3:o.seriesName=e.string();break;case 4:o.authorName=e.string();break;case 5:o.imageUrl=e.string();break;case 7:o.isBookmarked=e.bool();break;case 8:o.badge=e.int32();break;case 9:o.remainingChargeTime=e.uint32();break;case 10:o.chargeTime=e.uint32();break;case 13:o.ranking=e.uint32();break;default:e.skipType(7&t)}}return o},e.Badge=function(){let e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="NEW"]=1,t[e[2]="UPDATE"]=2,t[e[3]="RANKING"]=3,t}(),e}(),e.SignUpBenefit=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.amount=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).uint32(e.amount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SignUpBenefit;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.amount=e.uint32():e.skipType(7&t)}return o},e}(),e.Sns=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.body="",e.prototype.url="",e.encode=function(e,t){return t||(t=i.create()),null!=e.body&&Object.hasOwnProperty.call(e,"body")&&t.uint32(10).string(e.body),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Sns;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.body=e.string();break;case 2:o.url=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Square=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.imageUrl="",e.prototype.url="",e.prototype.type=0,e.prototype.seriesName="",e.prototype.chapterNumber="",e.prototype.chapterName="",e.prototype.authorName="",e.prototype.rank="",e.encode=function(e,t){return t||(t=i.create()),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(10).string(e.imageUrl),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),null!=e.type&&Object.hasOwnProperty.call(e,"type")&&t.uint32(24).int32(e.type),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(34).string(e.seriesName),null!=e.chapterNumber&&Object.hasOwnProperty.call(e,"chapterNumber")&&t.uint32(42).string(e.chapterNumber),null!=e.chapterName&&Object.hasOwnProperty.call(e,"chapterName")&&t.uint32(50).string(e.chapterName),null!=e.authorName&&Object.hasOwnProperty.call(e,"authorName")&&t.uint32(58).string(e.authorName),null!=e.rank&&Object.hasOwnProperty.call(e,"rank")&&t.uint32(66).string(e.rank),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Square;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.imageUrl=e.string();break;case 2:o.url=e.string();break;case 3:o.type=e.int32();break;case 4:o.seriesName=e.string();break;case 5:o.chapterNumber=e.string();break;case 6:o.chapterName=e.string();break;case 7:o.authorName=e.string();break;case 8:o.rank=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Tag=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.name="",e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Tag;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.string();break;case 2:o.name=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.TagEpisode=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tag=null,e.prototype.episodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.tag&&Object.hasOwnProperty.call(e,"tag")&&l.Proto.CommonTag.encode(e.tag,t.uint32(10).fork()).ldelim(),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Episode.encode(e.episodes[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.TagEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.tag=l.Proto.CommonTag.decode(e,e.uint32());break;case 2:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Episode.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.TicketStatus=function(){let e={},t=Object.create(e);return t[e[0]="RECOVERED"]=0,t[e[1]="CHARGING"]=1,t[e[2]="DISABLED"]=2,t}(),e.Topic=function(){function e(e){if(this.contents=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.subject="",e.prototype.contents=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.subject&&Object.hasOwnProperty.call(e,"subject")&&t.uint32(10).string(e.subject),null!=e.contents&&e.contents.length)for(let n=0;n<e.contents.length;++n)l.Proto.Topic.Content.encode(e.contents[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Topic;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.subject=e.string();break;case 2:o.contents&&o.contents.length||(o.contents=[]),o.contents.push(l.Proto.Topic.Content.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.Content=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.imageUrl="",e.prototype.urlScheme="",e.encode=function(e,t){return t||(t=i.create()),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(10).string(e.imageUrl),null!=e.urlScheme&&Object.hasOwnProperty.call(e,"urlScheme")&&t.uint32(18).string(e.urlScheme),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Topic.Content;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.imageUrl=e.string();break;case 2:o.urlScheme=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.UserInfo=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.isLogin=!1,e.prototype.isEmailReceived=!1,e.prototype.gender="",e.prototype.birthYear="",e.prototype.emailAddress="",e.prototype.isRegister=!1,e.prototype.userId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.isLogin&&Object.hasOwnProperty.call(e,"isLogin")&&t.uint32(8).bool(e.isLogin),null!=e.isEmailReceived&&Object.hasOwnProperty.call(e,"isEmailReceived")&&t.uint32(16).bool(e.isEmailReceived),null!=e.gender&&Object.hasOwnProperty.call(e,"gender")&&t.uint32(26).string(e.gender),null!=e.birthYear&&Object.hasOwnProperty.call(e,"birthYear")&&t.uint32(34).string(e.birthYear),null!=e.emailAddress&&Object.hasOwnProperty.call(e,"emailAddress")&&t.uint32(42).string(e.emailAddress),null!=e.isRegister&&Object.hasOwnProperty.call(e,"isRegister")&&t.uint32(48).bool(e.isRegister),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(56).uint32(e.userId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.UserInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.isLogin=e.bool();break;case 2:o.isEmailReceived=e.bool();break;case 3:o.gender=e.string();break;case 4:o.birthYear=e.string();break;case 5:o.emailAddress=e.string();break;case 6:o.isRegister=e.bool();break;case 7:o.userId=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.UserPoint=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.event=0,e.prototype.paid=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.event&&Object.hasOwnProperty.call(e,"event")&&t.uint32(16).uint32(e.event),null!=e.paid&&Object.hasOwnProperty.call(e,"paid")&&t.uint32(24).uint32(e.paid),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.UserPoint;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 2:o.event=e.uint32();break;case 3:o.paid=e.uint32();break;default:e.skipType(7&t)}}return o},e}
1(),e.VideoStream=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.videoUrl="",e.prototype.bandwidth=0,e.prototype.title="",e.prototype.videoQuality=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.videoUrl&&Object.hasOwnProperty.call(e,"videoUrl")&&t.uint32(10).string(e.videoUrl),null!=e.bandwidth&&Object.hasOwnProperty.call(e,"bandwidth")&&t.uint32(16).uint32(e.bandwidth),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(26).string(e.title),null!=e.videoQuality&&Object.hasOwnProperty.call(e,"videoQuality")&&t.uint32(32).int32(e.videoQuality),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.VideoStream;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.videoUrl=e.string();break;case 2:o.bandwidth=e.uint32();break;case 3:o.title=e.string();break;case 4:o.videoQuality=e.int32();break;default:e.skipType(7&t)}}return o},e}(),e.VideoQuality=function(){let e={},t=Object.create(e);return t[e[0]="VIDEO_QUALITY_NONE"]=0,t[e[1]="VIDEO_QUALITY_HIGHEST"]=1,t[e[2]="VIDEO_QUALITY_HIGH"]=2,t[e[3]="VIDEO_QUALITY_MEDIUM"]=3,t[e[4]="VIDEO_QUALITY_LOW"]=4,t[e[5]="VIDEO_QUALITY_LOWEST"]=5,t}(),e.Wallet=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.amount=s.Long?s.Long.fromBits(0,0,!1):0,e.encode=function(e,t){return t||(t=i.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).int64(e.amount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Wallet;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.amount=e.int64():e.skipType(7&t)}return o},e}(),e.AuthResponse=function(){function e(e){if(this.listItems=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.hasPassword=!1,e.prototype.listItems=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.hasPassword&&Object.hasOwnProperty.call(e,"hasPassword")&&t.uint32(8).bool(e.hasPassword),null!=e.listItems&&e.listItems.length)for(let n=0;n<e.listItems.length;++n)l.Proto.AuthResponse.ListItem.encode(e.listItems[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.AuthResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.hasPassword=e.bool();break;case 2:o.listItems&&o.listItems.length||(o.listItems=[]),o.listItems.push(l.Proto.AuthResponse.ListItem.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.ListItem=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.isLinked=!1,e.prototype.oidcUser=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.isLinked&&Object.hasOwnProperty.call(e,"isLinked")&&t.uint32(8).bool(e.isLinked),null!=e.oidcUser&&Object.hasOwnProperty.call(e,"oidcUser")&&l.Proto.OidcUser.encode(e.oidcUser,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.AuthResponse.ListItem;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.isLinked=e.bool();break;case 2:o.oidcUser=l.Proto.OidcUser.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e}(),e.CreateOidcLinkingResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CreateOidcLinkingResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.DeleteOidcLinkingResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.DeleteOidcLinkingResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.OidcLoginResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.secret="",e.prototype.userId=0,e.prototype.membership=null,e.prototype.accessToken="",e.prototype.refreshToken="",e.prototype.sessionId="",e.encode=function(e,t){return t||(t=i.create()),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(10).string(e.secret),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(16).uint32(e.userId),null!=e.membership&&Object.hasOwnProperty.call(e,"membership")&&l.Proto.Membership.encode(e.membership,t.uint32(26).fork()).ldelim(),null!=e.accessToken&&Object.hasOwnProperty.call(e,"accessToken")&&t.uint32(34).string(e.accessToken),null!=e.refreshToken&&Object.hasOwnProperty.call(e,"refreshToken")&&t.uint32(42).string(e.refreshToken),null!=e.sessionId&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.OidcLoginResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.secret=e.string();break;case 2:o.userId=e.uint32();break;case 3:o.membership=l.Proto.Membership.decode(e,e.uint32());break;case 4:o.accessToken=e.string();break;case 5:o.refreshToken=e.string();break;case 6:o.sessionId=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.OidcSignupResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.secret="",e.prototype.url="",e.prototype.userId=0,e.prototype.isSignup=!1,e.prototype.accessToken="",e.prototype.refreshToken="",e.prototype.sessionId="",e.encode=function(e,t){return t||(t=i.create()),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(10).string(e.secret),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(24).uint32(e.userId),null!=e.isSignup&&Object.hasOwnProperty.call(e,"isSignup")&&t.uint32(32).bool(e.isSignup),null!=e.accessToken&&Object.hasOwnProperty.call(e,"accessToken")&&t.uint32(42).string(e.accessToken),null!=e.refreshToken&&Object.hasOwnProperty.call(e,"refreshToken")&&t.uint32(50).string(e.refreshToken),null!=e.sessionId&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(58).string(e.sessionId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.OidcSignupResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.secret=e.string();break;case 2:o.url=e.string();break;case 3:o.userId=e.uint32();break;case 4:o.isSignup=e.bool();break;case 5:o.accessToken=e.string();break;case 6:o.refreshToken=e.string();break;case 7:o.sessionId=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Response=function(){let e={};return e.Account=function(){let e={};return e.HideAllViewingProgressesResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Account.HideAllViewingProgressesResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.HideViewingProgressResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Account.HideViewingProgressResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e}(),e.Chapter=function(){let e={};return e.GetRatingSummaryResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodeId=0,e.prototype.averageRating=0,e.prototype.ratingCount=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(8).uint32(e.episodeId),null!=e.averageRating&&Object.hasOwnProperty.call(e,"averageRating")&&t.uint32(21).float(e.averageRating),null!=e.ratingCount&&Object.hasOwnProperty.call(e,"ratingCount")&&t.uint32(24).uint32(e.ratingCount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.GetRatingSummaryResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodeId=e.uint32();break;case 2:o.averageRating=e.float();break;case 3:o.ratingCount=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.GetUserRatingResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodeId=0,e.prototype.rating=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(8).uint32(e.episodeId),null!=e.rating&&Object.hasOwnProperty.call(e,"rating")&&l.Proto.Response.Chapter.GetUserRatingResponse.Rating.encode(e.rating,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.GetUserRatingResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodeId=e.uint32();break;case 2:o.rating=l.Proto.Response.Chapter.GetUserRatingResponse.Rating.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.Rating=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.value=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(8).uint32(e.value),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.GetUserRatingResponse.Rating;for(;e.pos<n;){let t=e.uint32();t>>>
13==1?o.value=e.uint32():e.skipType(7&t)}return o},e}(),e}(),e.ListChaptersResponse=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodes=s.emptyArray,e.prototype.pagination=null,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Response.Chapter.ListChaptersResponse.Content.encode(e.episodes[n],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&l.Proto.Pagination.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.ListChaptersResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Response.Chapter.ListChaptersResponse.Content.decode(e,e.uint32()));break;case 2:o.pagination=l.Proto.Pagination.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.Content=function(){function e(e){if(this.casts=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodeId=0,e.prototype.name="",e.prototype.description="",e.prototype.publishTime=null,e.prototype.casts=s.emptyArray,e.prototype.thumbnailUrl="",e.prototype.isArticleAvailable=!1,e.prototype.durationSeconds=0,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(8).uint32(e.episodeId),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(26).string(e.description),null!=e.publishTime&&Object.hasOwnProperty.call(e,"publishTime")&&l.google.protobuf.Timestamp.encode(e.publishTime,t.uint32(34).fork()).ldelim(),null!=e.casts&&e.casts.length)for(let n=0;n<e.casts.length;++n)t.uint32(42).string(e.casts[n]);return null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(50).string(e.thumbnailUrl),null!=e.isArticleAvailable&&Object.hasOwnProperty.call(e,"isArticleAvailable")&&t.uint32(56).bool(e.isArticleAvailable),null!=e.durationSeconds&&Object.hasOwnProperty.call(e,"durationSeconds")&&t.uint32(64).uint32(e.durationSeconds),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.ListChaptersResponse.Content;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodeId=e.uint32();break;case 2:o.name=e.string();break;case 3:o.description=e.string();break;case 4:o.publishTime=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 5:o.casts&&o.casts.length||(o.casts=[]),o.casts.push(e.string());break;case 6:o.thumbnailUrl=e.string();break;case 7:o.isArticleAvailable=e.bool();break;case 8:o.durationSeconds=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.ListEpisodesByTagResponse=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodes=s.emptyArray,e.prototype.pagination=null,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Episode.encode(e.episodes[n],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&l.Proto.Pagination.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.ListEpisodesByTagResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 2:o.pagination=l.Proto.Pagination.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e.Movie=function(){let e={};return e.GetCategoryNewArrivalResponse=function(){function e(e){if(this.categoryEpisodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.categoryEpisodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.categoryEpisodes&&e.categoryEpisodes.length)for(let n=0;n<e.categoryEpisodes.length;++n)l.Proto.Response.Chapter.Movie.GetCategoryNewArrivalResponse.CategoryEpisode.encode(e.categoryEpisodes[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetCategoryNewArrivalResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.categoryEpisodes&&o.categoryEpisodes.length||(o.categoryEpisodes=[]),o.categoryEpisodes.push(l.Proto.Response.Chapter.Movie.GetCategoryNewArrivalResponse.CategoryEpisode.decode(e,e.uint32()))):e.ski
1pType(7&t)}return o},e.CategoryEpisode=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.categoryEpisode=null,e.prototype.hasMoreContent=!1,e.encode=function(e,t){return t||(t=i.create()),null!=e.categoryEpisode&&Object.hasOwnProperty.call(e,"categoryEpisode")&&l.Proto.Model.Movie.CategoryEpisode.encode(e.categoryEpisode,t.uint32(10).fork()).ldelim(),null!=e.hasMoreContent&&Object.hasOwnProperty.call(e,"hasMoreContent")&&t.uint32(16).bool(e.hasMoreContent),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetCategoryNewArrivalResponse.CategoryEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.categoryEpisode=l.Proto.Model.Movie.CategoryEpisode.decode(e,e.uint32());break;case 2:o.hasMoreContent=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.GetCategoryRankingResponse=function(){function e(e){if(this.categoryRankings=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.categoryRankings=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.categoryRankings&&e.categoryRankings.length)for(let n=0;n<e.categoryRankings.length;++n)l.Proto.Response.Chapter.Movie.GetCategoryRankingResponse.CategoryRanking.encode(e.categoryRankings[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetCategoryRankingResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.categoryRankings&&o.categoryRankings.length||(o.categoryRankings=[]),o.categoryRankings.push(l.Proto.Response.Chapter.Movie.GetCategoryRankingResponse.CategoryRanking.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.CategoryRanking=function(){function e(e){if(this.rankings=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.category=null,e.prototype.rankings=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.category&&Object.hasOwnProperty.call(e,"category")&&l.Proto.Model.CommonCategory.encode(e.category,t.uint32(10).fork()).ldelim(),null!=e.rankings&&e.rankings.length)for(let n=0;n<e.rankings.length;++n)l.Proto.Response.Chapter.Movie.GetCategoryRankingResponse.Ranking.encode(e.rankings[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetCategoryRankingResponse.CategoryRanking;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.category=l.Proto.Model.CommonCategory.decode(e,e.uint32());break;case 2:o.rankings&&o.rankings.length||(o.rankings=[]),o.rankings.push(l.Proto.Response.Chapter.Movie.GetCategoryRankingResponse.Ranking.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.Ranking=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.rankingEpisode=null,e.prototype.hasMoreContent=!1,e.prototype.rankingLabel="",e.encode=function(e,t){return t||(t=i.create()),null!=e.rankingEpisode&&Object.hasOwnProperty.call(e,"rankingEpisode")&&l.Proto.Model.Movie.RankingEpisode.encode(e.rankingEpisode,t.uint32(18).fork()).ldelim(),null!=e.hasMoreContent&&Object.hasOwnProperty.call(e,"hasMoreContent")&&t.uint32(24).bool(e.hasMoreContent),null!=e.rankingLabel&&Object.hasOwnProperty.call(e,"rankingLabel")&&t.uint32(34).string(e.rankingLabel),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetCategoryRankingResponse.Ranking;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 2:o.rankingEpisode=l.Proto.Model.Movie.RankingEpisode.decode(e,e.uint32());break;case 3:o.hasMoreContent=e.bool();break;case 4:o.rankingLabel=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.GetCuratedRelatedTagResponse=function(){function e(e){if(this.relatedTagEpisodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.relatedTagEpisodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.relatedTagEpisodes&&e.relatedTagEpisodes.length)for(let n=0;n<e.relatedTagEpisodes.length;++n)l.Proto.Response.Chapter.Movie.GetCuratedRelatedTagResponse.RelatedTagEpisode.encode(e.relatedTagEpisodes[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetCuratedRelatedTagResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.relatedTagEpisodes&&o.relatedTagEpisodes.length||(o.relatedTagEpisodes=[]),o.relatedTagEpisodes.push(l.Proto.Response.Chapter.Movie.GetCuratedRelatedTagResponse.RelatedTagEpisode.decode(e,e.uint32()))):e.ski
1pType(7&t)}return o},e.RelatedTagEpisode=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tagEpisodes=null,e.prototype.hasMoreContent=!1,e.encode=function(e,t){return t||(t=i.create()),null!=e.tagEpisodes&&Object.hasOwnProperty.call(e,"tagEpisodes")&&l.Proto.TagEpisode.encode(e.tagEpisodes,t.uint32(10).fork()).ldelim(),null!=e.hasMoreContent&&Object.hasOwnProperty.call(e,"hasMoreContent")&&t.uint32(16).bool(e.hasMoreContent),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetCuratedRelatedTagResponse.RelatedTagEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.tagEpisodes=l.Proto.TagEpisode.decode(e,e.uint32());break;case 2:o.hasMoreContent=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.GetNewArrivalResponse=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodes=s.emptyArray,e.prototype.hasMoreContent=!1,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Episode.encode(e.episodes[n],t.uint32(10).fork()).ldelim();return null!=e.hasMoreContent&&Object.hasOwnProperty.call(e,"hasMoreContent")&&t.uint32(16).bool(e.hasMoreContent),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetNewArrivalResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 2:o.hasMoreContent=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e.GetProgramNewArrivalResponse=function(){function e(e){if(this.programEpisodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.programEpisodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.programEpisodes&&e.programEpisodes.length)for(let n=0;n<e.programEpisodes.length;++n)l.Proto.Response.Chapter.Movie.GetProgramNewArrivalResponse.ProgramEpisode.encode(e.programEpisodes[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetProgramNewArrivalResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.programEpisodes&&o.programEpisodes.length||(o.programEpisodes=[]),o.programEpisodes.push(l.Proto.Response.Chapter.Movie.GetProgramNewArrivalResponse.ProgramEpisode.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.ProgramEpisode=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.program=null,e.prototype.episodes=s.emptyArray,e.prototype.hasMoreContent=!1,e.encode=function(e,t){if(t||(t=i.create()),null!=e.program&&Object.hasOwnProperty.call(e,"program")&&l.Proto.Program.encode(e.program,t.uint32(10).fork()).ldelim(),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Episode.encode(e.episodes[n],t.uint32(18).fork()).ldelim();return null!=e.hasMoreContent&&Object.hasOwnProperty.call(e,"hasMoreContent")&&t.uint32(24).bool(e.hasMoreContent),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetProgramNewArrivalResponse.ProgramEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.program=l.Proto.Program.decode(e,e.uint32());break;case 2:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 3:o.hasMoreContent=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.GetRankingResponse=function(){function e(e){if(this.rankings=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.rankings=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.rankings&&e.rankings.length)for(let n=0;n<e.rankings.length;++n)l.Proto.Response.Chapter.Movie.GetRankingResponse.Ranking.encode(e.rankings[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetRankingResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.rankings&&o.rankings.length||(o.rankings=[]),o.rankings.push(l.Proto.Response.Chapter.Movie.GetRankingResponse.Ranking.decode(e,e.uint32()))):e.ski
1pType(7&t)}return o},e.Ranking=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.rankingEpisode=null,e.prototype.hasMoreContent=!1,e.prototype.rankingLabel="",e.encode=function(e,t){return t||(t=i.create()),null!=e.rankingEpisode&&Object.hasOwnProperty.call(e,"rankingEpisode")&&l.Proto.Model.Movie.RankingEpisode.encode(e.rankingEpisode,t.uint32(10).fork()).ldelim(),null!=e.hasMoreContent&&Object.hasOwnProperty.call(e,"hasMoreContent")&&t.uint32(16).bool(e.hasMoreContent),null!=e.rankingLabel&&Object.hasOwnProperty.call(e,"rankingLabel")&&t.uint32(26).string(e.rankingLabel),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetRankingResponse.Ranking;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.rankingEpisode=l.Proto.Model.Movie.RankingEpisode.decode(e,e.uint32());break;case 2:o.hasMoreContent=e.bool();break;case 3:o.rankingLabel=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.GetRecommendedEpisodeResponse=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodes=s.emptyArray,e.prototype.hasMoreContent=!1,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.Episode.encode(e.episodes[n],t.uint32(10).fork()).ldelim();return null!=e.hasMoreContent&&Object.hasOwnProperty.call(e,"hasMoreContent")&&t.uint32(16).bool(e.hasMoreContent),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.GetRecommendedEpisodeResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 2:o.hasMoreContent=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e.ViewingProgressResponse=function(){function e(e){if(this.viewingProgresses=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.viewingProgresses=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.viewingProgresses&&e.viewingProgresses.length)for(let n=0;n<e.viewingProgresses.length;++n)l.Proto.Response.Chapter.Movie.ViewingProgressResponse.ViewingProgress.encode(e.viewingProgresses[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.ViewingProgressResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.viewingProgresses&&o.viewingProgresses.length||(o.viewingProgresses=[]),o.viewingProgresses.push(l.Proto.Response.Chapter.Movie.ViewingProgressResponse.ViewingProgress.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.ViewingProgress=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodeId=0,e.prototype.playbackPositionSeconds=0,e.prototype.playPercent=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(8).uint32(e.episodeId),null!=e.playbackPositionSeconds&&Object.hasOwnProperty.call(e,"playbackPositionSeconds")&&t.uint32(16).uint32(e.playbackPositionSeconds),null!=e.playPercent&&Object.hasOwnProperty.call(e,"playPercent")&&t.uint32(24).uint32(e.playPercent),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.Movie.ViewingProgressResponse.ViewingProgress;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodeId=e.uint32();break;case 2:o.playbackPositionSeconds=e.uint32();break;case 3:o.playPercent=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e}(),e}(),e.RegisterUserRatingResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Chapter.RegisterUserRatingResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e}(),e.ListDailyActionsResponse=function(){function e(e){if(this.dailyActions=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.dailyActions=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.dailyActions&&e.dailyActions.length)for(let n=0;n<e.dailyActions.length;++n)l.Proto.Response.ListDailyActionsResponse.DailyAction.encode(e.dailyActions[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.ListDailyActionsResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.dailyActions&&o.dailyActions.length||(o.dailyActions=[]),o.dailyActions.push(l.Proto.Response.ListDailyActionsResponse.DailyAction.decode(e,e.uint32()))):e.ski
1pType(7&t)}return o},e.DailyActionStatus=function(){let e={},t=Object.create(e);return t[e[0]="DAILY_ACTION_STATUS_UNSPECIFIED"]=0,t[e[1]="DAILY_ACTION_STATUS_INCOMPLETE"]=1,t[e[2]="DAILY_ACTION_STATUS_COMPLETED"]=2,t}(),e.DailyAction=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.code="",e.prototype.name="",e.prototype.amount=0,e.prototype.progressCount=0,e.prototype.requiredCount=0,e.prototype.status=0,e.prototype.cooldownEndTime=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(10).string(e.code),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).uint32(e.amount),null!=e.progressCount&&Object.hasOwnProperty.call(e,"progressCount")&&t.uint32(32).uint32(e.progressCount),null!=e.requiredCount&&Object.hasOwnProperty.call(e,"requiredCount")&&t.uint32(40).uint32(e.requiredCount),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(48).int32(e.status),null!=e.cooldownEndTime&&Object.hasOwnProperty.call(e,"cooldownEndTime")&&l.google.protobuf.Timestamp.encode(e.cooldownEndTime,t.uint32(58).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.ListDailyActionsResponse.DailyAction;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.code=e.string();break;case 2:o.name=e.string();break;case 3:o.amount=e.uint32();break;case 4:o.progressCount=e.uint32();break;case 5:o.requiredCount=e.uint32();break;case 6:o.status=e.int32();break;case 7:o.cooldownEndTime=l.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e}(),e.ListOnlyOnceActionsResponse=function(){function e(e){if(this.onlyOnceActions=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.onlyOnceActions=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.onlyOnceActions&&e.onlyOnceActions.length)for(let n=0;n<e.onlyOnceActions.length;++n)l.Proto.Response.ListOnlyOnceActionsResponse.OnlyOnceAction.encode(e.onlyOnceActions[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.ListOnlyOnceActionsResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.onlyOnceActions&&o.onlyOnceActions.length||(o.onlyOnceActions=[]),o.onlyOnceActions.push(l.Proto.Response.ListOnlyOnceActionsResponse.OnlyOnceAction.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.OnlyOnceActionStatus=function(){let e={},t=Object.create(e);return t[e[0]="ONLY_ONCE_ACTION_STATUS_UNSPECIFIED"]=0,t[e[1]="ONLY_ONCE_ACTION_STATUS_INCOMPLETE"]=1,t[e[2]="ONLY_ONCE_ACTION_STATUS_COMPLETED"]=2,t}(),e.OnlyOnceAction=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.code="",e.prototype.name="",e.prototype.amount=0,e.prototype.status=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(10).string(e.code),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).uint32(e.amount),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(32).int32(e.status),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.ListOnlyOnceActionsResponse.OnlyOnceAction;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.code=e.string();break;case 2:o.name=e.string();break;case 3:o.amount=e.uint32();break;case 4:o.status=e.int32();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.Program=function(){let e={};return e.DeleteFollowResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.DeleteFollowResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.GetProgramUserStatesResponse=function(){function e(e){if(this.states=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.states=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.states&&e.states.length)for(let n=0;n<e.states.length;++n)l.Proto.Response.Program.GetProgramUserStatesResponse.State.encode(e.states[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.GetProgramUserStatesResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.states&&o.states.length||(o.states=[]),o.states.push(l.Proto.Response.Program.GetProgramUserStatesResponse.State.decode(e,e.uint32()))):e.ski
1pType(7&t)}return o},e.State=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.programId=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.isFollowing=!1,e.prototype.watchedEpisodeCount=0,e.prototype.totalEpisodeCount=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.programId&&Object.hasOwnProperty.call(e,"programId")&&t.uint32(8).uint64(e.programId),null!=e.isFollowing&&Object.hasOwnProperty.call(e,"isFollowing")&&t.uint32(16).bool(e.isFollowing),null!=e.watchedEpisodeCount&&Object.hasOwnProperty.call(e,"watchedEpisodeCount")&&t.uint32(24).uint32(e.watchedEpisodeCount),null!=e.totalEpisodeCount&&Object.hasOwnProperty.call(e,"totalEpisodeCount")&&t.uint32(32).uint32(e.totalEpisodeCount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.GetProgramUserStatesResponse.State;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.programId=e.uint64();break;case 2:o.isFollowing=e.bool();break;case 3:o.watchedEpisodeCount=e.uint32();break;case 4:o.totalEpisodeCount=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.ListProgramFollowingResponse=function(){function e(e){if(this.programs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.programs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.programs&&e.programs.length)for(let n=0;n<e.programs.length;++n)l.Proto.Response.Program.ListProgramFollowingResponse.Program.encode(e.programs[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.ListProgramFollowingResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.programs&&o.programs.length||(o.programs=[]),o.programs.push(l.Proto.Response.Program.ListProgramFollowingResponse.Program.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.Program=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.name="",e.prototype.description="",e.prototype.thumbnailUrl="",e.prototype.logoMainUrl="",e.prototype.totalEpisodeCount=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.isSponsored=!1,e.prototype.thumbnailUrlPortrait="",e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint64(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(26).string(e.description),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(34).string(e.thumbnailUrl),null!=e.logoMainUrl&&Object.hasOwnProperty.call(e,"logoMainUrl")&&t.uint32(42).string(e.logoMainUrl),null!=e.totalEpisodeCount&&Object.hasOwnProperty.call(e,"totalEpisodeCount")&&t.uint32(48).uint64(e.totalEpisodeCount),null!=e.isSponsored&&Object.hasOwnProperty.call(e,"isSponsored")&&t.uint32(56).bool(e.isSponsored),null!=e.thumbnailUrlPortrait&&Object.hasOwnProperty.call(e,"thumbnailUrlPortrait")&&t.uint32(66).string(e.thumbnailUrlPortrait),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.ListProgramFollowingResponse.Program;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint64();break;case 2:o.name=e.string();break;case 3:o.description=e.string();break;case 4:o.thumbnailUrl=e.string();break;case 5:o.logoMainUrl=e.string();break;case 6:o.totalEpisodeCount=e.uint64();break;case 7:o.isSponsored=e.bool();break;case 8:o.thumbnailUrlPortrait=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.ListFollowingProgramEpisodesResponse=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.ProgramEpisode.encode(e.episodes[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.ListFollowingProgramEpisodesResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.ProgramEpisode.decode(e,e.uint32()))):e.ski
1pType(7&t)}return o},e}(),e.ListProgramEpisodesResponse=function(){function e(e){if(this.episodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodes=s.emptyArray,e.prototype.pagination=null,e.encode=function(e,t){if(t||(t=i.create()),null!=e.episodes&&e.episodes.length)for(let n=0;n<e.episodes.length;++n)l.Proto.ProgramEpisode.encode(e.episodes[n],t.uint32(10).fork()).ldelim();return null!=e.pagination&&Object.hasOwnProperty.call(e,"pagination")&&l.Proto.Pagination.encode(e.pagination,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.ListProgramEpisodesResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodes&&o.episodes.length||(o.episodes=[]),o.episodes.push(l.Proto.ProgramEpisode.decode(e,e.uint32()));break;case 2:o.pagination=l.Proto.Pagination.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e.ListProgramsResponse=function(){function e(e){if(this.programs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.programs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.programs&&e.programs.length)for(let n=0;n<e.programs.length;++n)l.Proto.Response.Program.ListProgramsResponse.Program.encode(e.programs[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.ListProgramsResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.programs&&o.programs.length||(o.programs=[]),o.programs.push(l.Proto.Response.Program.ListProgramsResponse.Program.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.Program=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.name="",e.prototype.description="",e.prototype.thumbnailUrl="",e.prototype.logoMainUrl="",e.prototype.totalEpisodeCount=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.isSponsored=!1,e.prototype.thumbnailUrlPortrait="",e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint64(e.id),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(26).string(e.description),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(34).string(e.thumbnailUrl),null!=e.logoMainUrl&&Object.hasOwnProperty.call(e,"logoMainUrl")&&t.uint32(42).string(e.logoMainUrl),null!=e.totalEpisodeCount&&Object.hasOwnProperty.call(e,"totalEpisodeCount")&&t.uint32(48).uint64(e.totalEpisodeCount),null!=e.isSponsored&&Object.hasOwnProperty.call(e,"isSponsored")&&t.uint32(56).bool(e.isSponsored),null!=e.thumbnailUrlPortrait&&Object.hasOwnProperty.call(e,"thumbnailUrlPortrait")&&t.uint32(66).string(e.thumbnailUrlPortrait),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.ListProgramsResponse.Program;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint64();break;case 2:o.name=e.string();break;case 3:o.description=e.string();break;case 4:o.thumbnailUrl=e.string();break;case 5:o.logoMainUrl=e.string();break;case 6:o.totalEpisodeCount=e.uint64();break;case 7:o.isSponsored=e.bool();break;case 8:o.thumbnailUrlPortrait=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.RegisterFollowResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Program.RegisterFollowResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e}(),e.RecordDailyActionProgressResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.status=0,e.prototype.acquiredMileAmount=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(8).int32(e.status),null!=e.acquiredMileAmount&&Object.hasOwnProperty.call(e,"acquiredMileAmount")&&t.uint32(16).uint32(e.acquiredMileAmount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.RecordDailyActionProgressResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.status=e.int32();break;case 2:o.acquiredMileAmount=e.uint32();break;default:e.skipType(7&t)}}return o},e.RecordDailyActionProgressStatus=function(){let e={},t=Object.create(e);return t[e[0]="STATUS_UNSPECIFIED"]=0,t[e[1]="STATUS_IN_PROGRESS"]=1,t[e[2]="STATUS_COMPLETED_BY_THIS_REQUEST"]=2,t[e[3]="STATUS_ALREADY_COMPLETED"]=3,t}(),e}(),e.RecordOnlyOnceActionProgressResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.status=0,e.prototype.acquiredMileAmount=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(8).int32(e.status),null!=e.acquiredMileAmount&&Object.hasOwnProperty.call(e,"acquiredMileAmount")&&t.uint32(16).uint32(e.acquiredMileAmount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.RecordOnlyOnceActionProgressResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.status=e.int32();break;case 2:o.acquiredMileAmount=e.uint32();break;default:e.skipType(7&t)}}return o},e.RecordOnlyOnceActionProgressStatus=function(){let e={},t=Object.create(e);return t[e[0]="STATUS_UNSPECIFIED"]=0,t[e[1]="STATUS_COMPLETED_BY_THIS_REQUEST"]=1,t[e[2]="STATUS_ALREADY_COMPLETED"]=2,t}(),e}(),e.RegisterWebResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.secret="",e.prototype.userId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(10).string(e.secret),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(16).uint32(e.userId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.RegisterWebResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.secret=e.string();break;case 2:o.userId=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.Search=function(){let e={};return e.GetRelatedTagsResponse=function(){function e(e){if(this.relatedTags=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.relatedTags=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.relatedTags&&e.relatedTags.length)for(let n=0;n<e.relatedTags.length;++n)l.Proto.CommonTag.encode(e.relatedTags[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Response.Search.GetRelatedTagsResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.relatedTags&&o.relatedTags.length||(o.relatedTags=[]),o.relatedTags.push(l.Proto.CommonTag.decode(e,e.uint32()))):e.ski
1pType(7&t)}return o},e}(),e}(),e}(),e.ActivateDeviceResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ActivateDeviceResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.IssueOidcTransactionResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.oidcTransactionId="",e.encode=function(e,t){return t||(t=i.create()),null!=e.oidcTransactionId&&Object.hasOwnProperty.call(e,"oidcTransactionId")&&t.uint32(10).string(e.oidcTransactionId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.IssueOidcTransactionResponse;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.oidcTransactionId=e.string():e.skipType(7&t)}return o},e}(),e.SaveOidcTransactionResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SaveOidcTransactionResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.CheckDeviceActivationResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.isSuccess=!1,e.prototype.userId=0,e.prototype.membership=null,e.prototype.auth=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.isSuccess&&Object.hasOwnProperty.call(e,"isSuccess")&&t.uint32(8).bool(e.isSuccess),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(16).uint32(e.userId),null!=e.membership&&Object.hasOwnProperty.call(e,"membership")&&l.Proto.Membership.encode(e.membership,t.uint32(26).fork()).ldelim(),null!=e.auth&&Object.hasOwnProperty.call(e,"auth")&&l.Proto.CheckDeviceActivationResponse.AuthTokens.encode(e.auth,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CheckDeviceActivationResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.isSuccess=e.bool();break;case 2:o.userId=e.uint32();break;case 3:o.membership=l.Proto.Membership.decode(e,e.uint32());break;case 4:o.auth=l.Proto.CheckDeviceActivationResponse.AuthTokens.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.AuthTokens=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.accessToken="",e.prototype.refreshToken="",e.prototype.tokenType="",e.prototype.sessionId="",e.prototype.anonymousToken="",e.encode=function(e,t){return t||(t=i.create()),null!=e.accessToken&&Object.hasOwnProperty.call(e,"accessToken")&&t.uint32(10).string(e.accessToken),null!=e.refreshToken&&Object.hasOwnProperty.call(e,"refreshToken")&&t.uint32(18).string(e.refreshToken),null!=e.tokenType&&Object.hasOwnProperty.call(e,"tokenType")&&t.uint32(26).string(e.tokenType),null!=e.sessionId&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),null!=e.anonymousToken&&Object.hasOwnProperty.call(e,"anonymousToken")&&t.uint32(58).string(e.anonymousToken),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CheckDeviceActivationResponse.AuthTokens;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.accessToken=e.string();break;case 2:o.refreshToken=e.string();break;case 3:o.tokenType=e.string();break;case 6:o.sessionId=e.string();break;case 7:o.anonymousToken=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.DeleteAllBookmarksResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.DeleteAllBookmarksResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.DeleteAllSearchWordLogsResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.DeleteAllSearchWordLogsResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.DeleteBookmarksResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.DeleteBookmarksResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.DeleteSearchWordLogsResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.DeleteSearchWordLogsResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.IssueActivationCodeResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.activationCode="",e.prototype.activationToken="",e.prototype.expireTime=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.activationCode&&Ob
1ject.hasOwnProperty.call(e,"activationCode")&&t.uint32(10).string(e.activationCode),null!=e.activationToken&&Object.hasOwnProperty.call(e,"activationToken")&&t.uint32(18).string(e.activationToken),null!=e.expireTime&&Object.hasOwnProperty.call(e,"expireTime")&&l.google.protobuf.Timestamp.encode(e.expireTime,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.IssueActivationCodeResponse;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.activationCode=e.string();break;case 2:o.activationToken=e.string();break;case 3:o.expireTime=l.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e.AccountService=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.statusCode=0,e.prototype.errorMessage="",e.prototype.secret="",e.prototype.url="",e.prototype.userId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.statusCode&&Object.hasOwnProperty.call(e,"statusCode")&&t.uint32(8).uint32(e.statusCode),null!=e.errorMessage&&Object.hasOwnProperty.call(e,"errorMessage")&&t.uint32(18).string(e.errorMessage),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(26).string(e.secret),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(34).string(e.url),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(40).uint32(e.userId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.AccountService;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.statusCode=e.uint32();break;case 2:o.errorMessage=e.string();break;case 3:o.secret=e.string();break;case 4:o.url=e.string();break;case 5:o.userId=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.IabCustomer=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.obfuscatedExternalAccountId="",e.encode=function(e,t){return t||(t=i.create()),null!=e.obfuscatedExternalAccountId&&Object.hasOwnProperty.call(e,"obfuscatedExternalAccountId")&&t.uint32(10).string(e.obfuscatedExternalAccountId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.IabCustomer;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.obfuscatedExternalAccountId=e.string():e.skipType(7&t)}return o},e}(),e.ResendCouponResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ResendCouponResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.Error=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.statusCode=0,e.prototype.message="",e.prototype.reason="",e.encode=function(e,t){return t||(t=i.create()),null!=e.statusCode&&Object.hasOwnProperty.call(e,"statusCode")&&t.uint32(8).int32(e.statusCode),null!=e.message&&Object.hasOwnProperty.call(e,"message")&&t.uint32(18).string(e.message),null!=e.reason&&Object.hasOwnProperty.call(e,"reason")&&t.uint32(26).string(e.reason),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Error;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.statusCode=e.int32();break;case 2:o.message=e.string();break;case 3:o.reason=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.HighlightService=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HighlightService;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.id=e.uint32():e.skipType(7&t)}return o},e}(),e.HomeService=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.popup=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.popup&&Object.hasOwnProperty.call(e,"popup")&&l.Proto.Popup.encode(e.popup,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HomeService;for(;e.pos<n;){let t=e.uint32();t>>>
13==1?o.popup=l.Proto.Popup.decode(e,e.uint32()):e.skipType(7&t)}return o},e}(),e.IapCustomer=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.appAccountToken="",e.encode=function(e,t){return t||(t=i.create()),null!=e.appAccountToken&&Object.hasOwnProperty.call(e,"appAccountToken")&&t.uint32(10).string(e.appAccountToken),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.IapCustomer;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.appAccountToken=e.string():e.skipType(7&t)}return o},e}(),e.SetupPaymentMethod=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientSecret="",e.prototype.stripeCustomerId="",e.encode=function(e,t){return t||(t=i.create()),null!=e.clientSecret&&Object.hasOwnProperty.call(e,"clientSecret")&&t.uint32(10).string(e.clientSecret),null!=e.stripeCustomerId&&Object.hasOwnProperty.call(e,"stripeCustomerId")&&t.uint32(18).string(e.stripeCustomerId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SetupPaymentMethod;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.clientSecret=e.string();break;case 2:o.stripeCustomerId=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.SubscriptionCancellation=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.error=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&l.Proto.Error.encode(e.error,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SubscriptionCancellation;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.error=l.Proto.Error.decode(e,e.uint32()):e.skipType(7&t)}return o},e}(),e.SubscriptionFeeAllocation=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.error=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.error&&Object.hasOwnProperty.call(e,"error")&&l.Proto.Error.encode(e.error,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SubscriptionFeeAllocation;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.error=l.Proto.Error.decode(e,e.uint32()):e.skipType(7&t)}return o},e}(),e.UpdatePaymentMethodResponse=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.UpdatePaymentMethodResponse;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.WebInitialPremiumContract=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.subscriptionId="",e.encode=function(e,t){return t||(t=i.create()),null!=e.subscriptionId&&Object.hasOwnProperty.call(e,"subscriptionId")&&t.uint32(10).string(e.subscriptionId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebInitialPremiumContract;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.subscriptionId=e.string():e.skipType(7&t)}return o},e}(),e.WebPremiumContract=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.clientSecret="",e.encode=function(e,t){return t||(t=i.create()),null!=e.clientSecret&&Object.hasOwnProperty.call(e,"clientSecret")&&t.uint32(10).string(e.clientSecret),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebPremiumContract;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.clientSecret=e.string():e.skipType(7&t)}return o},e}(),e.AccountDeletionView=function(){function e(e){if(this.recommendEpisodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.recommendEpisodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.recommendEpisodes&&e.recommendEpisodes.length)for(let n=0;n<e.recommendEpisodes.length;
1++n)l.Proto.AccountDeletionView.RecommendEpisode.encode(e.recommendEpisodes[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.AccountDeletionView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.recommendEpisodes&&o.recommendEpisodes.length||(o.recommendEpisodes=[]),o.recommendEpisodes.push(l.Proto.AccountDeletionView.RecommendEpisode.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.RecommendEpisode=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.thumbnailUrl="",e.prototype.episodeId=0,e.prototype.seriesName="",e.encode=function(e,t){return t||(t=i.create()),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(10).string(e.thumbnailUrl),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(16).uint32(e.episodeId),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(26).string(e.seriesName),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.AccountDeletionView.RecommendEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.thumbnailUrl=e.string();break;case 2:o.episodeId=e.uint32();break;case 3:o.seriesName=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.AccountWithdrawView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.ticket="",e.encode=function(e,t){return t||(t=i.create()),null!=e.ticket&&Object.hasOwnProperty.call(e,"ticket")&&t.uint32(10).string(e.ticket),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.AccountWithdrawView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.ticket=e.string():e.skipType(7&t)}return o},e}(),e.AuthPasswordView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(8).uint32(e.userId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.AuthPasswordView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.userId=e.uint32():e.skipType(7&t)}return o},e}(),e.ChangeEmailView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ChangeEmailView;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.LoginView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.secret="",e.prototype.userId=0,e.prototype.membership=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(10).string(e.secret),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(16).uint32(e.userId),null!=e.membership&&Object.hasOwnProperty.call(e,"membership")&&l.Proto.Membership.encode(e.membership,t.uint32(26).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.LoginView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.secret=e.string();break;case 2:o.userId=e.uint32();break;case 3:o.membership=l.Proto.Membership.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e.LogoutView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.LogoutView;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.MyAccountView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userInfo=null,e.prototype.membership=null,e.prototype.currentPlan=null,e.prototype.point=null,e.prototype.planListInfo=null,e.prototype.paymentMethod=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.userInfo&&Object.hasOwnProperty.call(e,"userInfo")&&l.Proto.UserInfo.encode(e.userInfo,t.uint32(10).fork()).ldelim(),null!=e.membership&&Object.hasOwnProperty.call(e,"membership")&&l.Proto.Membership.encode(e.membership,t.uint32(18).fork()).ldelim(),null!=e.currentPlan&&Object.hasOwnProperty.call(e,"currentPlan")&&l.Proto.CurrentPlan.encode(e.currentPlan,t.uint32(26).fork()).ldelim(),null!=e.point&&Object.hasOwnProperty.call(e,"point")&&l.Proto.Point.encode(e.point,t.uint32(34).fork()).ldelim(),null!=e.planListInfo&&Object.hasOwnProperty.call(e,"planListInfo")&&l.Proto.PlanListInfo.encode(e.planListInfo,t.uint32(42).fork()).ldelim(),null!=e.paymentMethod&&Object.hasOwnProperty.call(e,"paymentMethod")&&l.Proto.PaymentMethod.encode(e.paymentMethod,t.uint32(50).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MyAccountView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.userInfo=l.Proto.UserInfo.decode(e,e.uint32());break;case 2:o.membership=l.Proto.Membership.decode(e,e.uint32());break;case 3:o.currentPlan=l.Proto.CurrentPlan.decode(e,e.uint32());break;case 4:o.point=l.Proto.Point.decode(e,e.uint32());break;case 5:o.planListInfo=l.Proto.PlanListInfo.decode(e,e.uint32());break;case 6:o.paymentMethod=l.Proto.PaymentMethod.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e.CurrentPlan=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.monthlyFee=0,e.prototype.contractStartedAt=null,e.prototype.contractEndedAt=null,e.prototype.paymentPlatform=0,e.prototype.isTrial=!1,e.prototype.isCancelled=!1,e.prototype.isUsingSubscriptionOffer=!1,e.encode=function(e,t){return t||(t=i.create()),null!=e.monthlyFee&&Object.hasOwnProperty.call(e,"monthlyFee")&&t.uint32(8).uint32(e.monthlyFee),null!=e.contractStartedAt&&Object.hasOwnProperty.call(e,"contractStartedAt")&&l.google.protobuf.Timestamp.encode(e.contractStartedAt,t.uint32(18).fork()).ldelim(),null!=e.contractEndedAt&&Object.hasOwnProperty.call(e,"contractEndedAt")&&l.google.protobuf.Timestamp.encode(e.contractEndedAt,t.uint32(26).fork()).ldelim(),null!=e.paymentPlatform&&Object.hasOwnProperty.call(e,"paymentPlatform")&&t.uint32(32).int32(e.paymentPlatform),null!=e.isTrial&&Object.hasOwnProperty.call(e,"isTrial")&&t.uint32(40).bool(e.isTrial),null!=e.isCancelled&&Object.hasOwnProperty.call(e,"isCancelled")&&t.uint32(48).bool(e.isCancelled),null!=e.isUsingSubscriptionOffer&&Object.hasOwnProperty.call(e,"isUsingSubscriptionOffer")&&t.uint32(56).bool(e.isUsingSubscriptionOffer),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CurrentPlan;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.monthlyFee=e.uint32();break;case 2:o.contractStartedAt=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 3:o.contractEndedAt=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 4:o.paymentPlatform=e.int32();break;case 5:o.isTrial=e.bool();break;case 6:o.isCancelled=e.bool();break;case 7:o.isUsingSubscriptionOffer=e.bool();break;default:e.skipType(7&t)}}return o},e.PaymentPlatform=function(){let e={},t=Object.create(e);return t[e[0]="PAYMENT_PLATFORM_NONE"]=0,t[e[1]="PAYMENT_PLATFORM_APPLE"]=1,t[e[2]="PAYMENT_PLATFORM_GOOGLE"]=2,t[e[3]="PAYMENT_PLATFORM_STRIPE"]=3,t}(),e}(),e.Point=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.amount=s.Long?s.Long.fromBits(0,0,!0):0,e.encode=function(e,t){return t||(t=i.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).uint64(e.amount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Point;for(;e.pos<n;){let t=e.uint32();t>>>
13==1?o.amount=e.uint64():e.skipType(7&t)}return o},e}(),e.ResetPasswordView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(8).uint32(e.userId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ResetPasswordView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.userId=e.uint32():e.skipType(7&t)}return o},e}(),e.SendRegisterEmailView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SendRegisterEmailView;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.SendResetPasswordEmailView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SendResetPasswordEmailView;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.SetPasswordView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.secret="",e.prototype.url="",e.prototype.userId=0,e.prototype.auth=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.secret&&Object.hasOwnProperty.call(e,"secret")&&t.uint32(10).string(e.secret),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(18).string(e.url),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(24).uint32(e.userId),null!=e.auth&&Object.hasOwnProperty.call(e,"auth")&&l.Proto.SetPasswordView.AuthTokens.encode(e.auth,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SetPasswordView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.secret=e.string();break;case 2:o.url=e.string();break;case 3:o.userId=e.uint32();break;case 4:o.auth=l.Proto.SetPasswordView.AuthTokens.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.AuthTokens=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.accessToken="",e.prototype.refreshToken="",e.prototype.tokenType="",e.prototype.sessionId="",e.prototype.anonymousToken="",e.encode=function(e,t){return t||(t=i.create()),null!=e.accessToken&&Object.hasOwnProperty.call(e,"accessToken")&&t.uint32(10).string(e.accessToken),null!=e.refreshToken&&Object.hasOwnProperty.call(e,"refreshToken")&&t.uint32(18).string(e.refreshToken),null!=e.tokenType&&Object.hasOwnProperty.call(e,"tokenType")&&t.uint32(26).string(e.tokenType),null!=e.sessionId&&Object.hasOwnProperty.call(e,"sessionId")&&t.uint32(50).string(e.sessionId),null!=e.anonymousToken&&Object.hasOwnProperty.call(e,"anonymousToken")&&t.uint32(58).string(e.anonymousToken),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SetPasswordView.AuthTokens;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.accessToken=e.string();break;case 2:o.refreshToken=e.string();break;case 3:o.tokenType=e.string();break;case 6:o.sessionId=e.string();break;case 7:o.anonymousToken=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.ArticleViewerView=function(){function e(e){if(this.recommends=[],this.paragraphs=[],this.topics=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seriesName="",e.prototype.seriesNumber="",e.prototype.chapterName="",e.prototype.recommends=s.emptyArray,e.prototype.estimatedReadingTime=0,e.prototype.wordCount=0,e.prototype.showHighlightDialog=!1,e.prototype.navigationBarTitle="",e.prototype.thumbnailUrl="",e.prototype.date="",e.prototype.readingTime="",e.prototype.highlightCount=0,e.prototype.chapterTitle="",e.prototype.authorNames="",e.prototype.leadText="",e.prototype.paragraphs=s.emptyArray,e.prototype.sns=null,e.prototype.nextChapter=null,e.prototype.topics=s.emptyArray,e.prototype.isBookmarked=!1,e.prototype.userPoint=null,e.prototype.ticketStatus=0,e.prototype.remainingChargeTime=0,e.prototype.popup=null,e.encode=function(e,t){if(t||(t=i.create()),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(10).string(e.seriesName),null!=e.seriesNumber&&Object.hasOwnProperty.call(e,"seriesNumber")&&t.uint32(18).string(e.seriesNumber),null!=e.chapterName&&Object.hasOwnProperty.call(e,"chapterName")&&t.uint32(26).string(e.chapterName),null!=e.date&&Object.hasOwnProperty.call(e,"date")&&t.uint32(34).string(e.date),null!=e.readingTime&&Object.hasOwnProperty.call(e,"readingTime")&&t.uint32(42).string(e.readingTime),null!=e.highlightCount&&Object.hasOwnProperty.call(e,"highlightCount")&&t.uint32(48).uint32(e.highlightCount),null!=e.authorNames&&Object.hasOwnProperty.call(e,"authorNames")&&t.uint32(58).string(e.authorNames),null!=e.paragraphs&&e.paragraphs.length)for(let n=0;n<e.paragraphs.length;++n)l.Proto.ArticleViewerView.Paragraph.encode(e.paragraphs[n],t.uint32(66).fork()).ldelim();if(null!=e.nextChapter&&Object.hasOwnProperty.call(e,"nextChapter")&&l.Proto.Chapter.encode(e.nextChapter,t.uint32(74).fork()).ldelim(),null!=e.recommends&&e.recommends.length)for(let n=0;n<e.recommends.length;++n)l.Proto.Pickup.encode(e.recommends[n],t.uint32(82).fork()).ldelim();if(null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(90).string(e.thumbnailUrl),null!=e.sns&&Object.hasOwnProperty.call(e,"sns")&&l.Proto.Sns.encode(e.sns,t.uint32(98).fork()).ldelim(),null!=e.userPoint&&Object.hasOwnProperty.call(e,"userPoint")&&l.Proto.UserPoint.encode(e.userPoint,t.uint32(106).fork()).ldelim(),null!=e.ticketStatus&&Object.hasOwnProperty.call(e,"ticketStatus")&&t.uint32(112).int32(e.ticketStatus),null!=e.remainingChargeTime&&Object.hasOwnProperty.call(e,"remainingChargeTime")&&t.uint32(120).uint32(e.remainingChargeTime),null!=e.showHighlightDialog&&Object.hasOwnProperty.call(e,"showHighlightDialog")&&t.uint32(128).bool(e.showHighlightDialog),null!=e.estimatedReadingTime&&Object.hasOwnProperty.call(e,"estimatedReadingTime")&&t.uint32(136).uint32(e.estimatedReadingTime),null!=e.wordCount&&Object.hasOwnProperty.call(e,"wordCount")&&t.uint32(144).uint32(e.wordCount),null!=e.navigationBarTitle&&Object.hasOwnProperty.call(e,"navigationBarTitle")&&t.uint32(154).string(e.navigationBarTitle),null!=e.chapterTitle&&Object.hasOwnProperty.call(e,"chapterTitle")&&t.uint32(162).string(e.chapterTitle),null!=e.leadText&&Object.hasOwnProperty.call(e,"leadText")&&t.uint32(170).string(e.leadText),null!=e.topics&&e.topics.length)for(let n=0;n<e.topics.length;++n)l.Proto.Topic.encode(e.topics[n],t.uint32(178).fork()).ldelim();return null!=e.popup&&Object.hasOwnProperty.call(e,"popup")&&l.Proto.Popup.encode(e.popup,t.uint32(186).fork()).ldelim(),null!=e.isBookmarked&&Object.hasOwnProperty.call(e,"isBookmarked")&&t.uint32(192).bool(e.isBookmarked),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ArticleViewerView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.seriesName=e.string();break;case 2:o.seriesNumber=e.string();break;case 3:o.chapterName=e.string();break;case 10:o.recommends&&o.recommends.length||(o.recommends=[]),o.recommends.push(l.Proto.Pickup.decode(e,e.uint32()));break;case 17:o.estimatedReadingTime=e.uint32();break;case 18:o.wordCount=e.uint32();break;case 16:o.showHighlightDialog=e.bool();break;case 19:o.navigationBarTitle=e.string();break;case 11:o.thumbnailUrl=e.string();break;case 4:o.date=e.string();break;case 5:o.readingTime=e.string();break;case 6:o.highlightCount=e.uint32();break;case 20:o.chapterTitle=e.string();break;case 7:o.authorNames=e.string();break;case 21:o.leadText=e.string();break;case 8:o.paragraphs&&o.paragraphs.length||(o.paragraphs=[]),o.paragraphs.push(l.Proto.ArticleViewerView.Paragraph.decode(e,e.uint32()));break;case 12:o.sns=l.Proto.Sns.decode(e,e.uint32());break;case 9:o.nextChapter=l.Proto.Chapter.decode(e,e.uint32());break;case 22:o.topics&&o.topics.length||(o.topics=[]),o.topics.push(l.Proto.Topic.decode(e,e.uint32()));break;case 24:o.isBookmarked=e.bool();break;case 13:o.userPoint=l.Proto.UserPoint.decode(e,e.uint32());break;case 14:o.ticketStatus=e.int32();break;case 15:o.remainingChargeTime=e.uint32();break;case 23:o.popup=l.Proto.Popup.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.Paragraph=function(){let e;function t(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return t.prototype.htmlHeading=null,t.prototype.htmlText=null,t.prototype.htmlImage=null,t.prototype.leadText=null,Object.defineProperty(t.prototype,"contents",{get:s.oneOfGetter(e=["htmlHeading","htmlText","htmlImage","leadText"]),set:s.oneOfSetter(e)}),t.encode=function(e,t){return t||(t=i.create()),null!=e.htmlHeading&&Object.hasOwnProperty.call(e,"htmlHeading")&&t.uint32(10).string(e.htmlHeading),null!=e.htmlText&&Object.hasOwnProperty.call(e,"htmlText")&&l.Proto.ArticleViewerView.HtmlText.encode(e.htmlText,t.uint32(18).fork()).ldelim(),null!=e.htmlImage&&Object.hasOwnProperty.call(e,"htmlImage")&&l.Proto.ArticleViewerView.HtmlImage.encode(e.htmlImage,t.uint32(26).fork()).ldelim(),null!=e.leadText&&Object.hasOwnProperty.call(e,"leadText")&&t.uint32(34).string(e.leadText),t},t.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ArticleViewerView.Paragraph;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.htmlHeading=e.string();break;case 2:o.htmlText=l.Proto.ArticleViewerView.HtmlText.decode(e,e.uint32());break;case 3:o.htmlImage=l.Proto.ArticleViewerView.HtmlImage.decode(e,e.uint32());break;case 4:o.leadText=e.string();break;default:e.skipType(7&t)}}return o},t}(),e.HtmlText=function(){function e(e){if(this.highlights=[],this.popularHighlights=[],this.sentenceRange=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=0,e.prototype.htmlText="",e.prototype.highlights=s.emptyArray,e.prototype.popularHighlights=s.emptyArray,e.prototype.sentenceRange=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),null!=e.htmlText&&Object.hasOwnProperty.call(e,"htmlText")&&t.uint32(18).string(e.htmlText),null!=e.highlights&&e.highlights.length)for(let n=0;n<e.highlights.length;++n)l.Proto.ArticleViewerView.HtmlText.HIGHLIGHT.encode(e.highlights[n],t.uint32(26).fork()).ldelim();if(null!=e.popularHighlights&&e.popularHighlights.length)for(let n=0;n<e.popularHighlights.length;++n)l.Proto.ArticleViewerView.HtmlText.POPULAR_HIGHLIGHT.encode(e.popularHighlights[n],t.uint32(34).fork()).ldelim();if(null!=e.sentenceRange&&e.sentenceRange.length)for(let n=0;n<e.sentenceRange.length;++n)l.Proto.ArticleViewerView.HtmlText.SENTENCE.encode(e.sentenceRange[n],t.uint32(42).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ArticleViewerView.HtmlText;
1for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint32();break;case 2:o.htmlText=e.string();break;case 3:o.highlights&&o.highlights.length||(o.highlights=[]),o.highlights.push(l.Proto.ArticleViewerView.HtmlText.HIGHLIGHT.decode(e,e.uint32()));break;case 4:o.popularHighlights&&o.popularHighlights.length||(o.popularHighlights=[]),o.popularHighlights.push(l.Proto.ArticleViewerView.HtmlText.POPULAR_HIGHLIGHT.decode(e,e.uint32()));break;case 5:o.sentenceRange&&o.sentenceRange.length||(o.sentenceRange=[]),o.sentenceRange.push(l.Proto.ArticleViewerView.HtmlText.SENTENCE.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.HIGHLIGHT=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=0,e.prototype.rangeStart=0,e.prototype.rangeLength=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint32(e.id),null!=e.rangeStart&&Object.hasOwnProperty.call(e,"rangeStart")&&t.uint32(16).uint32(e.rangeStart),null!=e.rangeLength&&Object.hasOwnProperty.call(e,"rangeLength")&&t.uint32(24).uint32(e.rangeLength),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ArticleViewerView.HtmlText.HIGHLIGHT;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint32();break;case 2:o.rangeStart=e.uint32();break;case 3:o.rangeLength=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.POPULAR_HIGHLIGHT=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.rangeStart=0,e.prototype.rangeLength=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.rangeStart&&Object.hasOwnProperty.call(e,"rangeStart")&&t.uint32(8).uint32(e.rangeStart),null!=e.rangeLength&&Object.hasOwnProperty.call(e,"rangeLength")&&t.uint32(16).uint32(e.rangeLength),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ArticleViewerView.HtmlText.POPULAR_HIGHLIGHT;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.rangeStart=e.uint32();break;case 2:o.rangeLength=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.SENTENCE=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.rangeStart=0,e.prototype.rangeLength=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.rangeStart&&Object.hasOwnProperty.call(e,"rangeStart")&&t.uint32(8).uint32(e.rangeStart),null!=e.rangeLength&&Object.hasOwnProperty.call(e,"rangeLength")&&t.uint32(16).uint32(e.rangeLength),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ArticleViewerView.HtmlText.SENTENCE;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.rangeStart=e.uint32();break;case 2:o.rangeLength=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.HtmlImage=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.url="",e.prototype.caption="",e.prototype.width=0,e.prototype.height=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(10).string(e.url),null!=e.caption&&Object.hasOwnProperty.call(e,"caption")&&t.uint32(18).string(e.caption),null!=e.width&&Object.hasOwnProperty.call(e,"width")&&t.uint32(24).uint32(e.width),null!=e.height&&Object.hasOwnProperty.call(e,"height")&&t.uint32(32).uint32(e.height),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ArticleViewerView.HtmlImage;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.url=e.string();break;case 2:o.caption=e.string();break;case 3:o.width=e.uint32();break;case 4:o.height=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.IapSubscription=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.appAccountToken="",e.prototype.promotionalOffer=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.appAccountToken&&Object.hasOwnProperty.call(e,"appAccountToken")&&t.uint32(10).string(e.appAccountToken),null!=e.promotionalOffer&&Object.hasOwnProperty.call(e,"promotionalOffer")&&l.Proto.IapSub
1scription.PromotionalOffer.encode(e.promotionalOffer,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.IapSubscription;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.appAccountToken=e.string();break;case 2:o.promotionalOffer=l.Proto.IapSubscription.PromotionalOffer.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.PromotionalOffer=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id="",e.prototype.signature="",e.prototype.keyId="",e.prototype.nonce="",e.prototype.timestamp=s.Long?s.Long.fromBits(0,0,!0):0,e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(10).string(e.id),null!=e.signature&&Object.hasOwnProperty.call(e,"signature")&&t.uint32(18).string(e.signature),null!=e.keyId&&Object.hasOwnProperty.call(e,"keyId")&&t.uint32(26).string(e.keyId),null!=e.nonce&&Object.hasOwnProperty.call(e,"nonce")&&t.uint32(34).string(e.nonce),null!=e.timestamp&&Object.hasOwnProperty.call(e,"timestamp")&&t.uint32(40).uint64(e.timestamp),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.IapSubscription.PromotionalOffer;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.string();break;case 2:o.signature=e.string();break;case 3:o.keyId=e.string();break;case 4:o.nonce=e.string();break;case 5:o.timestamp=e.uint64();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.BillingItemListView=function(){function e(e){if(this.billingItems=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userPoint=null,e.prototype.billingItems=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.userPoint&&Object.hasOwnProperty.call(e,"userPoint")&&l.Proto.UserPoint.encode(e.userPoint,t.uint32(10).fork()).ldelim(),null!=e.billingItems&&e.billingItems.length)for(let n=0;n<e.billingItems.length;++n)l.Proto.BillingItem.encode(e.billingItems[n],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.BillingItemListView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.userPoint=l.Proto.UserPoint.decode(e,e.uint32());break;case 3:o.billingItems&&o.billingItems.length||(o.billingItems=[]),o.billingItems.push(l.Proto.BillingItem.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.ChapterGroupListView=function(){function e(e){if(this.chapterGroups=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.chapterGroups=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.chapterGroups&&e.chapterGroups.length)for(let n=0;n<e.chapterGroups.length;++n)l.Proto.ChapterGroup.encode(e.chapterGroups[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ChapterGroupListView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.chapterGroups&&o.chapterGroups.length||(o.chapterGroups=[]),o.chapterGroups.push(l.Proto.ChapterGroup.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e.ChapterListView=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.chapters=s.emptyArray,e.prototype.date="",e.encode=function(e,t){if(t||(t=i.create()),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(10).fork()).ldelim();return null!=e.date&&Object.hasOwnProperty.call(e,"date")&&t.uint32(18).string(e.date),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ChapterListView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;case 2:o.date=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.ChapterRankingView=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.period="",e.prototype.chapters=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.period&&Object.hasOwnProperty.call(e,"period")&&t.uint32(10).string(e.period),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ChapterRankingView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.period=e.string();break;case 2:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.CoinConsumptionHistoryView=function(){function e(e){if(this.logs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.logs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.logs&&e.logs.length)for(let n=0;n<e.logs.length;++n)l.Proto.CoinConsumptionHistory.encode(e.logs[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CoinConsumptionHistoryView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.logs&&o.logs.length||(o.logs=[]),o.logs.push(l.Proto.CoinConsumptionHistory.decode(e,e.uint32()))):e.ski
1pType(7&t)}return o},e}(),e.CoinPurchaseHistoryView=function(){function e(e){if(this.logs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.logs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.logs&&e.logs.length)for(let n=0;n<e.logs.length;++n)l.Proto.CoinPurchaseHistory.encode(e.logs[n],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CoinPurchaseHistoryView;for(;e.pos<n;){let t=e.uint32();t>>>3==3?(o.logs&&o.logs.length||(o.logs=[]),o.logs.push(l.Proto.CoinPurchaseHistory.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e.CollectViewedChapterView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.CollectViewedChapterView;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.EventCoinExpirationView=function(){function e(e){if(this.logs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.logs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.logs&&e.logs.length)for(let n=0;n<e.logs.length;++n)l.Proto.EventCoinExpiration.encode(e.logs[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.EventCoinExpirationView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.logs&&o.logs.length||(o.logs=[]),o.logs.push(l.Proto.EventCoinExpiration.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e.ExitSurveyView=function(){function e(e){if(this.reasons=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.reasons=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.reasons&&e.reasons.length)for(let n=0;n<e.reasons.length;++n)l.Proto.ExitSurveyView.ExitSurveyReason.encode(e.reasons[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ExitSurveyView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.reasons&&o.reasons.length||(o.reasons=[]),o.reasons.push(l.Proto.ExitSurveyView.ExitSurveyReason.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.ExitSurveyReason=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.code="",e.prototype.name="",e.encode=function(e,t){return t||(t=i.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(10).string(e.code),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ExitSurveyView.ExitSurveyReason;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.code=e.string();break;case 2:o.name=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.FeatureListView=function(){function e(e){if(this.seriesList=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seriesList=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.seriesList&&e.seriesList.length)for(let n=0;n<e.seriesList.length;++n)l.Proto.Series.encode(e.seriesList[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.FeatureListView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.seriesList&&o.seriesList.length||(o.seriesList=[]),o.seriesList.push(l.Proto.Series.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e.HighlightDetailView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.highlight=null,e.prototype.chapter=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.highlight&&Object.hasOwnProperty.call(e,"highlight")&&l.Proto.Highlight.encode(e.highlight,t.uint32(10).fork()).ldelim(),null!=e.chapter&&Object.hasOwnProperty.call(e,"chapter")&&l.Proto.Chapter.encode(e.chapter,t.uint32(18).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));
1let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HighlightDetailView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.highlight=l.Proto.Highlight.decode(e,e.uint32());break;case 2:o.chapter=l.Proto.Chapter.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e.HighlightShareView=function(){function e(e){if(this.styleImageUrls=[],this.styleListImageUrls=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.highlight="",e.prototype.seriesName="",e.prototype.styleImageUrls=s.emptyArray,e.prototype.styleListImageUrls=s.emptyArray,e.prototype.sns=null,e.encode=function(e,t){if(t||(t=i.create()),null!=e.highlight&&Object.hasOwnProperty.call(e,"highlight")&&t.uint32(10).string(e.highlight),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(18).string(e.seriesName),null!=e.styleImageUrls&&e.styleImageUrls.length)for(let n=0;n<e.styleImageUrls.length;++n)t.uint32(26).string(e.styleImageUrls[n]);if(null!=e.styleListImageUrls&&e.styleListImageUrls.length)for(let n=0;n<e.styleListImageUrls.length;++n)t.uint32(34).string(e.styleListImageUrls[n]);return null!=e.sns&&Object.hasOwnProperty.call(e,"sns")&&l.Proto.Sns.encode(e.sns,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HighlightShareView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.highlight=e.string();break;case 2:o.seriesName=e.string();break;case 3:o.styleImageUrls&&o.styleImageUrls.length||(o.styleImageUrls=[]),o.styleImageUrls.push(e.string());break;case 4:o.styleListImageUrls&&o.styleListImageUrls.length||(o.styleListImageUrls=[]),o.styleListImageUrls.push(e.string());break;case 5:o.sns=l.Proto.Sns.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e.HighlightView=function(){function e(e){if(this.myHighlights=[],this.trendings=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.myHighlights=s.emptyArray,e.prototype.trendings=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.myHighlights&&e.myHighlights.length)for(let n=0;n<e.myHighlights.length;++n)l.Proto.Highlight.encode(e.myHighlights[n],t.uint32(10).fork()).ldelim();if(null!=e.trendings&&e.trendings.length)for(let n=0;n<e.trendings.length;++n)l.Proto.Highlight.encode(e.trendings[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HighlightView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.myHighlights&&o.myHighlights.length||(o.myHighlights=[]),o.myHighlights.push(l.Proto.Highlight.decode(e,e.uint32()));break;case 2:o.trendings&&o.trendings.length||(o.trendings=[]),o.trendings.push(l.Proto.Highlight.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.HomeView=function(){function e(e){if(this.topBanners=[],this.sections=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.topBanners=s.emptyArray,e.prototype.sections=s.emptyArray,e.prototype.showReview=!1,e.encode=function(e,t){if(t||(t=i.create()),null!=e.topBanners&&e.topBanners.length)for(let n=0;n<e.topBanners.length;++n)l.Proto.Banner.encode(e.topBanners[n],t.uint32(10).fork()).ldelim();if(null!=e.sections&&e.sections.length)for(let n=0;n<e.sections.length;++n)l.Proto.HomeView.Section.encode(e.sections[n],t.uint32(18).fork()).ldelim();return null!=e.showReview&&Object.hasOwnProperty.call(e,"showReview")&&t.uint32(24).bool(e.showReview),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HomeView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.topBanners&&o.topBanners.length||(o.topBanners=[]),o.topBanners.push(l.Proto.Banner.decode(e,e.uint32()));break;case 2:o.sections&&o.sections.length||(o.sections=[]),o.sections.push(l.Proto.HomeView.Section.decode(e,e.uint32()));break;case 3:o.showReview=e.bool();break;default:e.skipType(7&t)}}return o},e.Section=function(){let e;function t(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return t.prototype.title="",t.prototype.series=null,t.prototype.chapter=null,t.prototype.highlight=null,Object.defineProperty(t.prototype,"contents",{get:s.oneOfGetter(e=["series","chapter","highlight"]),set:s.oneOfSetter(e)}),t.encode=function(e,t){return t||(t=i.create()),null!=e.series&&Object.hasOwnProperty.call(e,"series")&&l.Proto.HomeView.SeriesList.encode(e.series,t.uint32(10).fork()).ldelim(),null!=e.chapter&&Object.hasOwnProperty.call(e,"chapter")&&l.Proto.HomeView.Chapter
1List.encode(e.chapter,t.uint32(18).fork()).ldelim(),null!=e.highlight&&Object.hasOwnProperty.call(e,"highlight")&&l.Proto.HomeView.HighlightList.encode(e.highlight,t.uint32(26).fork()).ldelim(),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(34).string(e.title),t},t.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HomeView.Section;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 4:o.title=e.string();break;case 1:o.series=l.Proto.HomeView.SeriesList.decode(e,e.uint32());break;case 2:o.chapter=l.Proto.HomeView.ChapterList.decode(e,e.uint32());break;case 3:o.highlight=l.Proto.HomeView.HighlightList.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},t}(),e.SeriesList=function(){function e(e){if(this.series=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.series=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.series&&e.series.length)for(let n=0;n<e.series.length;++n)l.Proto.Series.encode(e.series[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HomeView.SeriesList;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.series&&o.series.length||(o.series=[]),o.series.push(l.Proto.Series.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e.ChapterList=function(){function e(e){if(this.chapter=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.chapter=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.chapter&&e.chapter.length)for(let n=0;n<e.chapter.length;++n)l.Proto.Chapter.encode(e.chapter[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HomeView.ChapterList;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.chapter&&o.chapter.length||(o.chapter=[]),o.chapter.push(l.Proto.Chapter.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e.HighlightList=function(){function e(e){if(this.highlight=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.highlight=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.highlight&&e.highlight.length)for(let n=0;n<e.highlight.length;++n)l.Proto.Highlight.encode(e.highlight[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.HomeView.HighlightList;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.highlight&&o.highlight.length||(o.highlight=[]),o.highlight.push(l.Proto.Highlight.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),e}(),e.LibraryView=function(){function e(e){if(this.myLists=[],this.bookmarkLists=[],this.historyLists=[],this.purchasedLists=[],this.myListChapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.myLists=s.emptyArray,e.prototype.bookmarkLists=s.emptyArray,e.prototype.historyLists=s.emptyArray,e.prototype.purchasedLists=s.emptyArray,e.prototype.isLogin=!1,e.prototype.myListChapters=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.myLists&&e.myLists.length)for(let n=0;n<e.myLists.length;++n)l.Proto.Series.encode(e.myLists[n],t.uint32(10).fork()).ldelim();if(null!=e.historyLists&&e.historyLists.length)for(let n=0;n<e.historyLists.length;++n)l.Proto.Chapter.encode(e.historyLists[n],t.uint32(18).fork()).ldelim();if(null!=e.purchasedLists&&e.purchasedLists.length)for(let n=0;n<e.purchasedLists.length;++n)l.Proto.ChapterGroup.encode(e.purchasedLists[n],t.uint32(26).fork()).ldelim();if(null!=e.isLogin&&Object.hasOwnProperty.call(e,"isLogin")&&t.uint32(32).bool(e.isLogin),null!=e.bookmarkLists&&e.bookmarkLists.length)for(let n=0;n<e.bookmarkLists.length;++n)l.Proto.Chapter.encode(e.bookmarkLists[n],t.uint32(42).fork()).ldelim();if(null!=e.myListChapters&&e.myListChapters.length)for(let n=0;n<e.myListChapters.length;++n)l.Proto.Chapter.encode(e.myListChapters[n],t.uint32(50).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.LibraryView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.myLists&&o.myLists.length||(o.myLists=[]),o.myLists.push(l.Proto.Series.decode(e,e.uint32()));break;case 5:o.bookmarkLists&&o.bookmarkLists.length||(o.bookmarkLists=[]),o.bookmarkLists.push(l.Proto.Chapter.decode(e,e.uint32()));break;case 2:o.historyLists&&o.historyLists.length||(o.historyLists=[]),o.historyLists.push(l.Proto.Chapter.decode(e,e.uint32()));break;case 3:o.purchasedLists&&o.purchasedLists.length||(o.purchasedLists=[]),o.purchasedLists.push(l.Proto.ChapterGroup.decode(e,e.uint32()));break;case 4:o.isLogin=e.bool();break;case 6:o.myListChapters&&o.myListChapters.length||(o.myListChapters=[]),o.myListChapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.ProfileView=function(){function e(e){if(this.profileFields=[],this.personalProfileFields=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.profileFields=s.emptyArray,e.prototype.membership=null,e.prototype.personalProfileFields=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.profileFields&&e.profileFields.length)for(let n=0;n<e.profileFields.length;++n)l.Proto.ProfileView.ProfileField.encode(e.profileFields[n],t.uint32(10).fork()).ldelim();if(null!=e.membership&&Object.hasOwnProperty.call(e,"membership")&&l.Proto.Membership.encode(e.membership,t.uint32(18).fork()).ldelim(),null!=e.personalProfileFields&&e.personalProfileFields.length)for(let n=0;n<e.personalProfileFields.length;++n)l.Proto.ProfileView.ProfileField.encode(e.personalProfileFields[n],t.uint32(26).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ProfileView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.profileFields&&o.profileFields.length||(o.profileFields=[]),o.profileFields.push(l.Proto.ProfileView.ProfileField.decode(e,e.uint32()));break;case 2:o.membership=l.Proto.Membership.decode(e,e.uint32());break;case 3:o.personalProfileFields&&o.personalProfileFields.length||(o.personalProfileFields=[]),o.personalProfileFields.push(l.Proto.ProfileView.ProfileField.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.ProfileField=function(){function e(e){if(this.options=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.code="",e.prototype.name="",e.prototype.description="",e.prototype.isSelection=!1,e.prototype.options=s.emptyArray,e.prototype.minLength=0,e.prototype.maxLength=0,e.prototype.isRequired=!1,e.prototype.savedValue=null,e.encode=function(e,t){if(t||(t=i.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(10).string(e.code),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(18).string(e.name),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(26).string(e.description),null!=e.isSelection&&Object.hasOwnProperty.call(e,"isSelection")&&t.uint32(32).bool(e.isSelection),null!=e.options&&e.options.length)for(let n=0;n<e.options.length;++n)l.Proto.ProfileView.ProfileField.Option.encode(e.options[n],t.uint32(42).fork()).ldelim();return null!=e.minLength&&Object.hasOwnProperty.call(e,"minLength")&&t.uint32(48).uint32(e.minLength),null!=e.maxLength&&Object.hasOwnProperty.call(e,"maxLength")&&t.uint32(56).uint32(e.maxLength),null!=e.isRequired&&Object.hasOwnProperty.call(e,"isRequired")&&t.uint32(64).bool(e.isRequired),null!=e.savedValue&&Object.hasOwnProperty.call(e,"savedValue")&&l.Proto.ProfileView.ProfileField.SavedValue.encode(e.savedValue,t.uint32(74).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ProfileView.ProfileField;for(;e.pos<n;){let t=e.uint32();switch(t>>>
13){case 1:o.code=e.string();break;case 2:o.name=e.string();break;case 3:o.description=e.string();break;case 4:o.isSelection=e.bool();break;case 5:o.options&&o.options.length||(o.options=[]),o.options.push(l.Proto.ProfileView.ProfileField.Option.decode(e,e.uint32()));break;case 6:o.minLength=e.uint32();break;case 7:o.maxLength=e.uint32();break;case 8:o.isRequired=e.bool();break;case 9:o.savedValue=l.Proto.ProfileView.ProfileField.SavedValue.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.Option=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.id=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.value="",e.encode=function(e,t){return t||(t=i.create()),null!=e.id&&Object.hasOwnProperty.call(e,"id")&&t.uint32(8).uint64(e.id),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ProfileView.ProfileField.Option;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.id=e.uint64();break;case 2:o.value=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.SavedValue=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.optionId=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.value="",e.encode=function(e,t){return t||(t=i.create()),null!=e.optionId&&Object.hasOwnProperty.call(e,"optionId")&&t.uint32(8).uint64(e.optionId),null!=e.value&&Object.hasOwnProperty.call(e,"value")&&t.uint32(18).string(e.value),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ProfileView.ProfileField.SavedValue;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.optionId=e.uint64();break;case 2:o.value=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e}(),e.SendProfileView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SendProfileView;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.MileHistoryView=function(){function e(e){if(this.expiringMiles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.totalMiles=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.landingPageUrl="",e.prototype.acquiredInfo=null,e.prototype.consumptionInfo=null,e.prototype.hasExpiringMiles=!1,e.prototype.expiringMiles=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.totalMiles&&Object.hasOwnProperty.call(e,"totalMiles")&&t.uint32(8).int64(e.totalMiles),null!=e.landingPageUrl&&Object.hasOwnProperty.call(e,"landingPageUrl")&&t.uint32(18).string(e.landingPageUrl),null!=e.acquiredInfo&&Object.hasOwnProperty.call(e,"acquiredInfo")&&l.Proto.AcquiredInfo.encode(e.acquiredInfo,t.uint32(26).fork()).ldelim(),null!=e.consumptionInfo&&Object.hasOwnProperty.call(e,"consumptionInfo")&&l.Proto.ConsumptionInfo.encode(e.consumptionInfo,t.uint32(34).fork()).ldelim(),null!=e.hasExpiringMiles&&Object.hasOwnProperty.call(e,"hasExpiringMiles")&&t.uint32(40).bool(e.hasExpiringMiles),null!=e.expiringMiles&&e.expiringMiles.length)for(let n=0;n<e.expiringMiles.length;++n)l.Proto.ExpiringMile.encode(e.expiringMiles[n],t.uint32(50).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MileHistoryView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.totalMiles=e.int64();break;case 2:o.landingPageUrl=e.string();break;case 3:o.acquiredInfo=l.Proto.AcquiredInfo.decode(e,e.uint32());break;case 4:o.consumptionInfo=l.Proto.ConsumptionInfo.decode(e,e.uint32());break;case 5:o.hasExpiringMiles=e.bool();break;case 6:o.expiringMiles&&o.expiringMiles.length||(o.expiringMiles=[]),o.expiringMiles.push(l.Proto.ExpiringMile.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.ExpiringMile=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.date=null,e.prototype.amount=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.date&&Object.hasOwnProperty.call(e,"date")&&l.google.protobuf.Timestamp.encode(e.date,t.uint32(10).fork()).ldelim(),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(16).uint32(e.amount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ExpiringMile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.date=l.google.protobuf.Timestamp.decode(e,e.uint32());break;case 2:o.amount=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.AcquiredInfo=function(){function e(e){if(this.acquiredMiles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.acquiredMiles=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.acquiredMiles&&e.acquiredMiles.length)for(let n=0;n<e.acquiredMiles.length;++n)l.Proto.AcquiredInfo.AcquiredMile.encode(e.acquiredMiles[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.AcquiredInfo;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.acquiredMiles&&o.acquiredMiles.length||(o.acquiredMiles=[]),o.acquiredMiles.push(l.Proto.AcquiredInfo.AcquiredMile.decode(e,e.uint32()))):e.ski
1pType(7&t)}return o},e.AcquiredMile=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.transactedOn="",e.prototype.amount=0,e.prototype.expiryDate=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.transactedOn&&Object.hasOwnProperty.call(e,"transactedOn")&&t.uint32(18).string(e.transactedOn),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).int32(e.amount),null!=e.expiryDate&&Object.hasOwnProperty.call(e,"expiryDate")&&l.google.protobuf.Timestamp.encode(e.expiryDate,t.uint32(34).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.AcquiredInfo.AcquiredMile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.title=e.string();break;case 2:o.transactedOn=e.string();break;case 3:o.amount=e.int32();break;case 4:o.expiryDate=l.google.protobuf.Timestamp.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e}(),e}(),e.ConsumptionInfo=function(){function e(e){if(this.consumptionMiles=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.consumptionMiles=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.consumptionMiles&&e.consumptionMiles.length)for(let n=0;n<e.consumptionMiles.length;++n)l.Proto.ConsumptionInfo.ConsumptionMile.encode(e.consumptionMiles[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ConsumptionInfo;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.consumptionMiles&&o.consumptionMiles.length||(o.consumptionMiles=[]),o.consumptionMiles.push(l.Proto.ConsumptionInfo.ConsumptionMile.decode(e,e.uint32()))):e.skipType(7&t)}return o},e.ConsumptionMile=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.transactedOn="",e.prototype.amount=0,e.prototype.canResendBenefitEmail=!1,e.prototype.resendBenefitEmailInfo=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.transactedOn&&Object.hasOwnProperty.call(e,"transactedOn")&&t.uint32(18).string(e.transactedOn),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(24).int32(e.amount),null!=e.canResendBenefitEmail&&Object.hasOwnProperty.call(e,"canResendBenefitEmail")&&t.uint32(32).bool(e.canResendBenefitEmail),null!=e.resendBenefitEmailInfo&&Object.hasOwnProperty.call(e,"resendBenefitEmailInfo")&&l.Proto.ConsumptionInfo.ConsumptionMile.ResendBenefitEmailInfo.encode(e.resendBenefitEmailInfo,t.uint32(42).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ConsumptionInfo.ConsumptionMile;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.title=e.string();break;case 2:o.transactedOn=e.string();break;case 3:o.amount=e.int32();break;case 4:o.canResendBenefitEmail=e.bool();break;case 5:o.resendBenefitEmailInfo=l.Proto.ConsumptionInfo.ConsumptionMile.ResendBenefitEmailInfo.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},e.ResendBenefitEmailInfo=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.benefitUseId=s.Long?s.Long.fromBits(0,0,!0):0,e.prototype.benefitCode="",e.encode=function(e,t){return t||(t=i.create()),null!=e.benefitUseId&&Object.hasOwnProperty.call(e,"benefitUseId")&&t.uint32(8).uint64(e.benefitUseId),null!=e.benefitCode&&Object.hasOwnProperty.call(e,"benefitCode")&&t.uint32(18).string(e.benefitCode),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ConsumptionInfo.ConsumptionMile.ResendBenefitEmailInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.benefitUseId=e.uint64();break;case 2:o.benefitCode=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e}(),e.View=function(){let e={};
1return e.MileProgramDetailView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.benefit=null,e.encode=function(e,t){return t||(t=i.create()),null!=e.benefit&&Object.hasOwnProperty.call(e,"benefit")&&l.Proto.Model.Benefit.encode(e.benefit,t.uint32(10).fork()).ldelim(),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.View.MileProgramDetailView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.benefit=l.Proto.Model.Benefit.decode(e,e.uint32()):e.skipType(7&t)}return o},e}(),e}(),e.MovieViewerView=function(){function e(e){if(this.recommends=[],this.topics=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.date="",e.prototype.title="",e.prototype.description="",e.prototype.movieUrl="",e.prototype.nextChapter=null,e.prototype.recommends=s.emptyArray,e.prototype.sns=null,e.prototype.buttonDescription="",e.prototype.buttonTransitionUrl="",e.prototype.topics=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.date&&Object.hasOwnProperty.call(e,"date")&&t.uint32(10).string(e.date),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(18).string(e.title),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(26).string(e.description),null!=e.movieUrl&&Object.hasOwnProperty.call(e,"movieUrl")&&t.uint32(34).string(e.movieUrl),null!=e.nextChapter&&Object.hasOwnProperty.call(e,"nextChapter")&&l.Proto.MovieChapter.encode(e.nextChapter,t.uint32(42).fork()).ldelim(),null!=e.recommends&&e.recommends.length)for(let n=0;n<e.recommends.length;++n)l.Proto.Pickup.encode(e.recommends[n],t.uint32(50).fork()).ldelim();if(null!=e.sns&&Object.hasOwnProperty.call(e,"sns")&&l.Proto.Sns.encode(e.sns,t.uint32(58).fork()).ldelim(),null!=e.buttonDescription&&Object.hasOwnProperty.call(e,"buttonDescription")&&t.uint32(66).string(e.buttonDescription),null!=e.buttonTransitionUrl&&Object.hasOwnProperty.call(e,"buttonTransitionUrl")&&t.uint32(74).string(e.buttonTransitionUrl),null!=e.topics&&e.topics.length)for(let n=0;n<e.topics.length;++n)l.Proto.Topic.encode(e.topics[n],t.uint32(82).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewerView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.date=e.string();break;case 2:o.title=e.string();break;case 3:o.description=e.string();break;case 4:o.movieUrl=e.string();break;case 5:o.nextChapter=l.Proto.MovieChapter.decode(e,e.uint32());break;case 6:o.recommends&&o.recommends.length||(o.recommends=[]),o.recommends.push(l.Proto.Pickup.decode(e,e.uint32()));break;case 7:o.sns=l.Proto.Sns.decode(e,e.uint32());break;case 8:o.buttonDescription=e.string();break;case 9:o.buttonTransitionUrl=e.string();break;case 10:o.topics&&o.topics.length||(o.topics=[]),o.topics.push(l.Proto.Topic.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.PointHistoryView=function(){function e(e){if(this.logs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.logs=s.emptyArray,e.prototype.currentDatetime="",e.encode=function(e,t){if(t||(t=i.create()),null!=e.logs&&e.logs.length)for(let n=0;n<e.logs.length;++n)l.Proto.PointHistory.encode(e.logs[n],t.uint32(10).fork()).ldelim();return null!=e.currentDatetime&&Object.hasOwnProperty.call(e,"currentDatetime")&&t.uint32(18).string(e.currentDatetime),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PointHistoryView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.logs&&o.logs.length||(o.logs=[]),o.logs.push(l.Proto.PointHistory.decode(e,e.uint32()));break;case 2:o.currentDatetime=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.PointProgramView=function(){function e(e){if(this.benefits=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.wallet=null,e.prototype.benefits=s.emptyArray,e.prototype.hasWallet=!1,e.prototype.landingPageUrl="",e.encode=function(e,t){if(t||(t=i.create()),null!=e.wallet&&Ob
1ject.hasOwnProperty.call(e,"wallet")&&l.Proto.Wallet.encode(e.wallet,t.uint32(10).fork()).ldelim(),null!=e.benefits&&e.benefits.length)for(let n=0;n<e.benefits.length;++n)l.Proto.Benefit.encode(e.benefits[n],t.uint32(18).fork()).ldelim();return null!=e.hasWallet&&Object.hasOwnProperty.call(e,"hasWallet")&&t.uint32(24).bool(e.hasWallet),null!=e.landingPageUrl&&Object.hasOwnProperty.call(e,"landingPageUrl")&&t.uint32(34).string(e.landingPageUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.PointProgramView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.wallet=l.Proto.Wallet.decode(e,e.uint32());break;case 2:o.benefits&&o.benefits.length||(o.benefits=[]),o.benefits.push(l.Proto.Benefit.decode(e,e.uint32()));break;case 3:o.hasWallet=e.bool();break;case 4:o.landingPageUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.Benefit=function(){function e(e){if(this.notes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.code="",e.prototype.thumbnailUrl="",e.prototype.name="",e.prototype.description="",e.prototype.notes=s.emptyArray,e.prototype.requiredPoint=0,e.prototype.isSubscriptionOffer=!1,e.prototype.hasUsePermission=!1,e.prototype.numberOfWinners=0,e.prototype.numberOfEntries=0,e.prototype.lotteryMultiplier=0,e.prototype.isPublishEnded=!1,e.encode=function(e,t){if(t||(t=i.create()),null!=e.code&&Object.hasOwnProperty.call(e,"code")&&t.uint32(10).string(e.code),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(18).string(e.thumbnailUrl),null!=e.name&&Object.hasOwnProperty.call(e,"name")&&t.uint32(26).string(e.name),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(34).string(e.description),null!=e.notes&&e.notes.length)for(let n=0;n<e.notes.length;++n)t.uint32(42).string(e.notes[n]);return null!=e.requiredPoint&&Object.hasOwnProperty.call(e,"requiredPoint")&&t.uint32(48).uint32(e.requiredPoint),null!=e.isSubscriptionOffer&&Object.hasOwnProperty.call(e,"isSubscriptionOffer")&&t.uint32(56).bool(e.isSubscriptionOffer),null!=e.hasUsePermission&&Object.hasOwnProperty.call(e,"hasUsePermission")&&t.uint32(64).bool(e.hasUsePermission),null!=e.numberOfWinners&&Object.hasOwnProperty.call(e,"numberOfWinners")&&t.uint32(80).uint32(e.numberOfWinners),null!=e.numberOfEntries&&Object.hasOwnProperty.call(e,"numberOfEntries")&&t.uint32(88).uint32(e.numberOfEntries),null!=e.lotteryMultiplier&&Object.hasOwnProperty.call(e,"lotteryMultiplier")&&t.uint32(101).float(e.lotteryMultiplier),null!=e.isPublishEnded&&Object.hasOwnProperty.call(e,"isPublishEnded")&&t.uint32(104).bool(e.isPublishEnded),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Benefit;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.code=e.string();break;case 2:o.thumbnailUrl=e.string();break;case 3:o.name=e.string();break;case 4:o.description=e.string();break;case 5:o.notes&&o.notes.length||(o.notes=[]),o.notes.push(e.string());break;case 6:o.requiredPoint=e.uint32();break;case 7:o.isSubscriptionOffer=e.bool();break;case 8:o.hasUsePermission=e.bool();break;case 10:o.numberOfWinners=e.uint32();break;case 11:o.numberOfEntries=e.uint32();break;case 12:o.lotteryMultiplier=e.float();break;case 13:o.isPublishEnded=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e.ProgramView=function(){function e(e){if(this.sections=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.program=null,e.prototype.sections=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.program&&Object.hasOwnProperty.call(e,"program")&&l.Proto.Program.encode(e.program,t.uint32(10).fork()).ldelim(),null!=e.sections&&e.sections.length)for(let n=0;n<e.sections.length;++n)l.Proto.Section.encode(e.sections[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.ProgramView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.program=l.Proto.Program.decode(e,e.uint32());break;case 2:o.sections&&o.sections.length||(o.sections=[]),o.sections.push(l.Proto.Section.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.RankingView=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.period="",e.prototype.chapters=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.period&&Object.hasOwnProperty.call(e,"period")&&t.uint32(10).string(e.period),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.RankingView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.period=e.string();break;case 2:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.RegisterMembershipForExistingUserView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(8).uint32(e.userId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.RegisterMembershipForExistingUserView;for(;e.pos<n;){let t=e.uint32();t>>>
13==1?o.userId=e.uint32():e.skipType(7&t)}return o},e}(),e.SearchResultView=function(){function e(e){if(this.result=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seriesCount=0,e.prototype.result=s.emptyArray,e.prototype.title="",e.encode=function(e,t){if(t||(t=i.create()),null!=e.seriesCount&&Object.hasOwnProperty.call(e,"seriesCount")&&t.uint32(8).uint32(e.seriesCount),null!=e.result&&e.result.length)for(let n=0;n<e.result.length;++n)l.Proto.SearchResult.encode(e.result[n],t.uint32(18).fork()).ldelim();return null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(26).string(e.title),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SearchResultView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.seriesCount=e.uint32();break;case 2:o.result&&o.result.length||(o.result=[]),o.result.push(l.Proto.SearchResult.decode(e,e.uint32()));break;case 3:o.title=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.SearchResult=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.series=null,e.prototype.chapters=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.series&&Object.hasOwnProperty.call(e,"series")&&l.Proto.Series.encode(e.series,t.uint32(10).fork()).ldelim(),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SearchResult;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.series=l.Proto.Series.decode(e,e.uint32());break;case 2:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.SearchView=function(){function e(e){if(this.categories=[],this.histories=[],this.popularSearchWordTags=[],this.authorNameTags=[],this.articleTypeTags=[],this.mediaTypeTags=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.categories=s.emptyArray,e.prototype.histories=s.emptyArray,e.prototype.popularSearchWordTags=s.emptyArray,e.prototype.authorNameTags=s.emptyArray,e.prototype.articleTypeTags=s.emptyArray,e.prototype.mediaTypeTags=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.categories&&e.categories.length)for(let n=0;n<e.categories.length;++n)l.Proto.Category.encode(e.categories[n],t.uint32(10).fork()).ldelim();if(null!=e.histories&&e.histories.length)for(let n=0;n<e.histories.length;++n)t.uint32(18).string(e.histories[n]);if(null!=e.popularSearchWordTags&&e.popularSearchWordTags.length)for(let n=0;n<e.popularSearchWordTags.length;++n)l.Proto.SearchView.SearchTag.encode(e.popularSearchWordTags[n],t.uint32(26).fork()).ldelim();if(null!=e.authorNameTags&&e.authorNameTags.length)for(let n=0;n<e.authorNameTags.length;++n)l.Proto.SearchView.SearchTag.encode(e.authorNameTags[n],t.uint32(34).fork()).ldelim();if(null!=e.articleTypeTags&&e.articleTypeTags.length)for(let n=0;n<e.articleTypeTags.length;++n)l.Proto.SearchView.SearchTag.encode(e.articleTypeTags[n],t.uint32(42).fork()).ldelim();if(null!=e.mediaTypeTags&&e.mediaTypeTags.length)for(let n=0;n<e.mediaTypeTags.length;++n)l.Proto.SearchView.SearchTag.encode(e.mediaTypeTags[n],t.uint32(50).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SearchView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.categories&&o.categories.length||(o.categories=[]),o.categories.push(l.Proto.Category.decode(e,e.uint32()));break;case 2:o.histories&&o.histories.length||(o.histories=[]),o.histories.push(e.string());break;case 3:o.popularSearchWordTags&&o.popularSearchWordTags.length||(o.popularSearchWordTags=[]),o.popularSearchWordTags.push(l.Proto.SearchView.SearchTag.decode(e,e.uint32()));break;case 4:o.authorNameTags&&o.authorNameTags.length||(o.authorNameTags=[]),o.authorNameTags.push(l.Proto.SearchView.SearchTag.decode(e,e.uint32()));break;case 5:o.articleTypeTags&&o.articleTypeTags.length||(o.articleTypeTags=[]),o.articleTypeTags.push(l.Proto.SearchView.SearchTag.decode(e,e.uint32()));break;case 6:o.mediaTypeTags&&o.mediaTypeTags.length||(o.mediaTypeTags=[]),o.mediaTypeTags.push(l.Proto.SearchView.SearchTag.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.SearchTag=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.tag=null,e.prototype.seriesCount=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.tag&&Object.hasOwnProperty.call(e,"tag")&&l.Proto.Tag.encode(e.tag,t.uint32(10).fork()).ldelim(),null!=e.seriesCount&&Object.hasOwnProperty.call(e,"seriesCount")&&t.uint32(16).uint32(e.seriesCount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SearchView.SearchTag;
1for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.tag=l.Proto.Tag.decode(e,e.uint32());break;case 2:o.seriesCount=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.SendExitSurveyView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SendExitSurveyView;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.SeriesListView=function(){function e(e){if(this.series=[],this.recommends=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.series=s.emptyArray,e.prototype.recommends=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.series&&e.series.length)for(let n=0;n<e.series.length;++n)l.Proto.Series.encode(e.series[n],t.uint32(10).fork()).ldelim();if(null!=e.recommends&&e.recommends.length)for(let n=0;n<e.recommends.length;++n)l.Proto.Pickup.encode(e.recommends[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SeriesListView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.series&&o.series.length||(o.series=[]),o.series.push(l.Proto.Series.decode(e,e.uint32()));break;case 2:o.recommends&&o.recommends.length||(o.recommends=[]),o.recommends.push(l.Proto.Pickup.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.SeriesRankingView=function(){function e(e){if(this.series=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.period="",e.prototype.series=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.period&&Object.hasOwnProperty.call(e,"period")&&t.uint32(10).string(e.period),null!=e.series&&e.series.length)for(let n=0;n<e.series.length;++n)l.Proto.Series.encode(e.series[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SeriesRankingView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.period=e.string();break;case 2:o.series&&o.series.length||(o.series=[]),o.series.push(l.Proto.Series.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.SeriesTopView=function(){function e(e){if(this.tags=[],this.highlights=[],this.chapters=[],this.topics=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.status=0,e.prototype.seriesId=0,e.prototype.seriesName="",e.prototype.chaptersCount=0,e.prototype.lastReadChapterId=0,e.prototype.tags=s.emptyArray,e.prototype.highlights=s.emptyArray,e.prototype.navigationBarTitle="",e.prototype.sns=null,e.prototype.isBookmarked=!1,e.prototype.imageUrl="",e.prototype.shortDescription="",e.prototype.remainingChargeTime=0,e.prototype.chargeTime=0,e.prototype.chapters=s.emptyArray,e.prototype.topics=s.emptyArray,e.prototype.mediaType=0,e.prototype.userPoint=null,e.prototype.ticketStatus=0,e.prototype.isFirstVisit=!1,e.prototype.isEmptyHighlight=!1,e.encode=function(e,t){if(t||(t=i.create()),null!=e.status&&Object.hasOwnProperty.call(e,"status")&&t.uint32(8).int32(e.status),null!=e.userPoint&&Object.hasOwnProperty.call(e,"userPoint")&&l.Proto.UserPoint.encode(e.userPoint,t.uint32(18).fork()).ldelim(),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(24).uint32(e.seriesId),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(34).string(e.seriesName),null!=e.imageUrl&&Object.hasOwnProperty.call(e,"imageUrl")&&t.uint32(42).string(e.imageUrl),null!=e.chaptersCount&&Object.hasOwnProperty.call(e,"chaptersCount")&&t.uint32(48).uint32(e.chaptersCount),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(58).fork()).ldelim();if(null!=e.highlights&&e.highlights.length)for(let n=0;n<e.highlights.length;++n)l.Proto.Highlight.encode(e.highlights[n],t.uint32(66).fork()).ldelim();if(null!=e.isBookmarked&&Object.hasOwnProperty.call(e,"isBookmarked")&&t.uint32(72).bool(e.isBookmarked),null!=e.lastReadChapterId&&Object.hasOwnProperty.call(e,"lastReadChapterId")&&t.uint32(80).uint32(e.lastReadChapterId),null!=e.ticketStatus&&Object.hasOwnProperty.call(e,"ticketStatus")&&t.uint32(88).int32(e.ticketStatus),null!=e.remainingChargeTime&&Object.hasOwnProperty.call(e,"remainingChargeTime")&&t.uint32(96).uint32(e.remainingChargeTime),null!=e.chargeTime&&Object.hasOwnProperty.call(e,"chargeTime")&&t.uint32(104).uint32(e.chargeTime),null!=e.isFirstVisit&&Object.hasOwnProperty.call(e,"isFirstVisit")&&t.uint32(112).bool(e.isFirstVisit),null!=e.tags&&e.tags.length)for(let n=0;n<e.tags.length;++n)l.Proto.Tag.encode(e.tags[n],t.uint32(122).fork()).ldelim();if(null!=e.sns&&Object.hasOwnProperty.call(e,"sns")&&l.Proto.Sns.encode(e.sns,t.uint32(130).fork()).ldelim(),null!=e.shortDe
1scription&&Object.hasOwnProperty.call(e,"shortDescription")&&t.uint32(138).string(e.shortDescription),null!=e.isEmptyHighlight&&Object.hasOwnProperty.call(e,"isEmptyHighlight")&&t.uint32(144).bool(e.isEmptyHighlight),null!=e.navigationBarTitle&&Object.hasOwnProperty.call(e,"navigationBarTitle")&&t.uint32(154).string(e.navigationBarTitle),null!=e.topics&&e.topics.length)for(let n=0;n<e.topics.length;++n)l.Proto.Topic.encode(e.topics[n],t.uint32(162).fork()).ldelim();return null!=e.mediaType&&Object.hasOwnProperty.call(e,"mediaType")&&t.uint32(168).int32(e.mediaType),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SeriesTopView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.status=e.int32();break;case 3:o.seriesId=e.uint32();break;case 4:o.seriesName=e.string();break;case 6:o.chaptersCount=e.uint32();break;case 10:o.lastReadChapterId=e.uint32();break;case 15:o.tags&&o.tags.length||(o.tags=[]),o.tags.push(l.Proto.Tag.decode(e,e.uint32()));break;case 8:o.highlights&&o.highlights.length||(o.highlights=[]),o.highlights.push(l.Proto.Highlight.decode(e,e.uint32()));break;case 19:o.navigationBarTitle=e.string();break;case 16:o.sns=l.Proto.Sns.decode(e,e.uint32());break;case 9:o.isBookmarked=e.bool();break;case 5:o.imageUrl=e.string();break;case 17:o.shortDescription=e.string();break;case 12:o.remainingChargeTime=e.uint32();break;case 13:o.chargeTime=e.uint32();break;case 7:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;case 20:o.topics&&o.topics.length||(o.topics=[]),o.topics.push(l.Proto.Topic.decode(e,e.uint32()));break;case 21:o.mediaType=e.int32();break;case 2:o.userPoint=l.Proto.UserPoint.decode(e,e.uint32());break;case 11:o.ticketStatus=e.int32();break;case 14:o.isFirstVisit=e.bool();break;case 18:o.isEmptyHighlight=e.bool();break;default:e.skipType(7&t)}}return o},e.Status=function(){let e={},t=Object.create(e);return t[e[0]="SUCCESS"]=0,t[e[1]="CONTENT_NOT_FOUND"]=1,t}(),e}(),e.SettingView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userPoint=null,e.prototype.userInfo=null,e.prototype.isExpireSoon=!1,e.encode=function(e,t){return t||(t=i.create()),null!=e.userPoint&&Object.hasOwnProperty.call(e,"userPoint")&&l.Proto.UserPoint.encode(e.userPoint,t.uint32(10).fork()).ldelim(),null!=e.userInfo&&Object.hasOwnProperty.call(e,"userInfo")&&l.Proto.UserInfo.encode(e.userInfo,t.uint32(18).fork()).ldelim(),null!=e.isExpireSoon&&Object.hasOwnProperty.call(e,"isExpireSoon")&&t.uint32(24).bool(e.isExpireSoon),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.SettingView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.userPoint=l.Proto.UserPoint.decode(e,e.uint32());break;case 2:o.userInfo=l.Proto.UserInfo.decode(e,e.uint32());break;case 3:o.isExpireSoon=e.bool();break;default:e.skipType(7&t)}}return o},e}(),e.UseBenefitView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.encode=function(e,t){return t||(t=i.create()),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.UseBenefitView;for(;e.pos<n;){let t=e.uint32();e.skipType(7&t)}return o},e}(),e.UsePromotionView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.amount=s.Long?s.Long.fromBits(0,0,!1):0,e.encode=function(e,t){return t||(t=i.create()),null!=e.amount&&Object.hasOwnProperty.call(e,"amount")&&t.uint32(8).int64(e.amount),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.UsePromotionView;for(;e.pos<n;){let t=e.uint32();t>>>3==1?o.amount=e.int64():e.skipType(7&t)}return o},e}(),e.FeatureList2View=function(){let e;function t(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return t.prototype.series=null,t.prototype.chapter=null,Object.defineProperty(t.prototype,"contents",{get:s.oneOfGetter(e=["series","chapter"]),set:s.oneOfSetter(e)}),t.encode=function(e,t){return t||(t=i.create()),null!=e.series&&Object.hasOwnProperty.call(e,"series")&&l.Proto.FeatureList2View.SeriesList.encode(e.series,t.uint32(10).fork()).ldelim(),null!=e.chapter&&Object.hasOwnProperty.call(e,"chapter")&&l.Proto.FeatureList2View.Chapter
1List.encode(e.chapter,t.uint32(18).fork()).ldelim(),t},t.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.FeatureList2View;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.series=l.Proto.FeatureList2View.SeriesList.decode(e,e.uint32());break;case 2:o.chapter=l.Proto.FeatureList2View.ChapterList.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},t.SeriesList=function(){function e(e){if(this.series=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.series=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.series&&e.series.length)for(let n=0;n<e.series.length;++n)l.Proto.Series.encode(e.series[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.FeatureList2View.SeriesList;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.series&&o.series.length||(o.series=[]),o.series.push(l.Proto.Series.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),t.ChapterList=function(){function e(e){if(this.chapter=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.chapter=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.chapter&&e.chapter.length)for(let n=0;n<e.chapter.length;++n)l.Proto.Chapter.encode(e.chapter[n],t.uint32(10).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.FeatureList2View.ChapterList;for(;e.pos<n;){let t=e.uint32();t>>>3==1?(o.chapter&&o.chapter.length||(o.chapter=[]),o.chapter.push(l.Proto.Chapter.decode(e,e.uint32()))):e.skipType(7&t)}return o},e}(),t}(),e.Home2View=function(){function e(e){if(this.sections=[],this.tutorialEpisodes=[],this.episodeAsProgram=[],this.viewingProgressEpisodes=[],this.recommendedEpisodes=[],this.categoryTabs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sections=s.emptyArray,e.prototype.showReview=!1,e.prototype.maintenanceMessage="",e.prototype.tutorialEpisodes=s.emptyArray,e.prototype.userId=0,e.prototype.productIdForIos="",e.prototype.productIdForAndroid="",e.prototype.planListInfo=null,e.prototype.membership=null,e.prototype.signUpBenefit=null,e.prototype.isLogin=!1,e.prototype.episodeAsProgram=s.emptyArray,e.prototype.wallet=null,e.prototype.hasWallet=!1,e.prototype.isMembershipMigrationRequired=!1,e.prototype.viewingProgressEpisodes=s.emptyArray,e.prototype.recommendedEpisodes=s.emptyArray,e.prototype.categoryTabs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.sections&&e.sections.length)for(let n=0;n<e.sections.length;++n)l.Proto.Home2View.Section.encode(e.sections[n],t.uint32(18).fork()).ldelim();if(null!=e.showReview&&Object.hasOwnProperty.call(e,"showReview")&&t.uint32(32).bool(e.showReview),null!=e.maintenanceMessage&&Object.hasOwnProperty.call(e,"maintenanceMessage")&&t.uint32(42).string(e.maintenanceMessage),null!=e.tutorialEpisodes&&e.tutorialEpisodes.length)for(let n=0;n<e.tutorialEpisodes.length;++n)l.Proto.Home2View.TutorialEpisode.encode(e.tutorialEpisodes[n],t.uint32(50).fork()).ldelim();if(null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(56).int32(e.userId),null!=e.productIdForIos&&Object.hasOwnProperty.call(e,"productIdForIos")&&t.uint32(66).string(e.productIdForIos),null!=e.productIdForAndroid&&Object.hasOwnProperty.call(e,"productIdForAndroid")&&t.uint32(74).string(e.productIdForAndroid),null!=e.planListInfo&&Object.hasOwnProperty.call(e,"planListInfo")&&l.Proto.PlanListInfo.encode(e.planListInfo,t.uint32(82).fork()).ldelim(),null!=e.membership&&Object.hasOwnProperty.call(e,"membership")&&l.Proto.Membership.encode(e.membership,t.uint32(90).fork()).ldelim(),null!=e.signUpBenefit&&Object.hasOwnProperty.call(e,"signUpBenefit")&&l.Proto.SignUpBenefit.encode(e.signUpBenefit,t.uint32(98).fork()).ldelim(),null!=e.isLogin&&Object.hasOwnProperty.call(e,"isLogin")&&t.uint32(104).bool(e.isLogin),null!=e.episodeAsProgram&&e.episodeAsProgram.length)for(let n=0;n<e.episodeAsProgram.length;++n)l.Proto.Home2View.EpisodeAsProgram.encode(e.episodeAsProgram[n],t.uint32(114).fork()).ldelim();
1if(null!=e.wallet&&Object.hasOwnProperty.call(e,"wallet")&&l.Proto.Wallet.encode(e.wallet,t.uint32(122).fork()).ldelim(),null!=e.hasWallet&&Object.hasOwnProperty.call(e,"hasWallet")&&t.uint32(128).bool(e.hasWallet),null!=e.isMembershipMigrationRequired&&Object.hasOwnProperty.call(e,"isMembershipMigrationRequired")&&t.uint32(136).bool(e.isMembershipMigrationRequired),null!=e.viewingProgressEpisodes&&e.viewingProgressEpisodes.length)for(let n=0;n<e.viewingProgressEpisodes.length;++n)l.Proto.Episode.encode(e.viewingProgressEpisodes[n],t.uint32(146).fork()).ldelim();if(null!=e.recommendedEpisodes&&e.recommendedEpisodes.length)for(let n=0;n<e.recommendedEpisodes.length;++n)l.Proto.Episode.encode(e.recommendedEpisodes[n],t.uint32(154).fork()).ldelim();if(null!=e.categoryTabs&&e.categoryTabs.length)for(let n=0;n<e.categoryTabs.length;++n)l.Proto.Model.Home.CategoryTab.encode(e.categoryTabs[n],t.uint32(162).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Home2View;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 2:o.sections&&o.sections.length||(o.sections=[]),o.sections.push(l.Proto.Home2View.Section.decode(e,e.uint32()));break;case 4:o.showReview=e.bool();break;case 5:o.maintenanceMessage=e.string();break;case 6:o.tutorialEpisodes&&o.tutorialEpisodes.length||(o.tutorialEpisodes=[]),o.tutorialEpisodes.push(l.Proto.Home2View.TutorialEpisode.decode(e,e.uint32()));break;case 7:o.userId=e.int32();break;case 8:o.productIdForIos=e.string();break;case 9:o.productIdForAndroid=e.string();break;case 10:o.planListInfo=l.Proto.PlanListInfo.decode(e,e.uint32());break;case 11:o.membership=l.Proto.Membership.decode(e,e.uint32());break;case 12:o.signUpBenefit=l.Proto.SignUpBenefit.decode(e,e.uint32());break;case 13:o.isLogin=e.bool();break;case 14:o.episodeAsProgram&&o.episodeAsProgram.length||(o.episodeAsProgram=[]),o.episodeAsProgram.push(l.Proto.Home2View.EpisodeAsProgram.decode(e,e.uint32()));break;case 15:o.wallet=l.Proto.Wallet.decode(e,e.uint32());break;case 16:o.hasWallet=e.bool();break;case 17:o.isMembershipMigrationRequired=e.bool();break;case 18:o.viewingProgressEpisodes&&o.viewingProgressEpisodes.length||(o.viewingProgressEpisodes=[]),o.viewingProgressEpisodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 19:o.recommendedEpisodes&&o.recommendedEpisodes.length||(o.recommendedEpisodes=[]),o.recommendedEpisodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 20:o.categoryTabs&&o.categoryTabs.length||(o.categoryTabs=[]),o.categoryTabs.push(l.Proto.Model.Home.CategoryTab.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.Section=function(){let e;function t(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return t.prototype.title="",t.prototype.largePanels=null,Object.defineProperty(t.prototype,"contents",{get:s.oneOfGetter(e=["largePanels"]),set:s.oneOfSetter(e)}),t.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.largePanels&&Object.hasOwnProperty.call(e,"largePanels")&&l.Proto.Home2View.LargePanels.encode(e.largePanels,t.uint32(18).fork()).ldelim(),t},t.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Home2View.Section;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.title=e.string();break;case 2:o.largePanels=l.Proto.Home2View.LargePanels.decode(e,e.uint32());break;default:e.skipType(7&t)}}return o},t}(),e.LargePanels=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.mediaType=0,e.prototype.chapters=s.emptyArray,e.prototype.tagId=0,e.prototype.destination=0,e.encode=function(e,t){if(t||(t=i.create()),null!=e.mediaType&&Object.hasOwnProperty.call(e,"mediaType")&&t.uint32(8).int32(e.mediaType),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(18).fork()).ldelim();return null!=e.tagId&&Object.hasOwnProperty.call(e,"tagId")&&t.uint32(24).uint32(e.tagId),null!=e.destination&&Object.hasOwnProperty.call(e,"destination")&&t.uint32(32).int32(e.destination),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Home2View.LargePanels;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.mediaType=e.int32();break;case 2:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;case 3:o.tagId=e.uint32();break;case 4:o.destination=e.int32();break;default:e.skipType(7&t)}}return o},e}(),e.Destination=function(){let e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="RANKING"]=1,t[e[2]="FEATURE"]=2,t}(),e.TutorialEpisode=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.thumbnailUrl="",e.prototype.seriesId=0,e.prototype.episodeId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(10).string(e.thumbnailUrl),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(16).uint32(e.seriesId),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(24).uint32(e.episodeId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Home2View.TutorialEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.thumbnailUrl=e.string();break;case 2:o.seriesId=e.uint32();break;case 3:o.episodeId=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.EpisodeAsProgram=function(){function e(e){if(this.videoStreams=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.logoBannerUrl="",e.prototype.episodeId=0,e.prototype.episodeName="",e.prototype.videoUrl="",e.prototype.videoStreams=s.emptyArray,e.prototype.thumbnailUrl="",e.prototype.logoMainUrl="",e.prototype.description="",e.encode=function(e,t){if(t||(t=i.create()),null!=e.logoBannerUrl&&Object.hasOwnProperty.call(e,"logoBannerUrl")&&t.uint32(10).string(e.logoBannerUrl),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(16).uint32(e.episodeId),null!=e.episodeName&&Object.hasOwnProperty.call(e,"episodeName")&&t.uint32(26).string(e.episodeName),null!=e.videoUrl&&Object.hasOwnProperty.call(e,"videoUrl")&&t.uint32(34).string(e.videoUrl),null!=e.videoStreams&&e.videoStreams.length)for(let n=0;n<e.videoStreams.length;++n)l.Proto.VideoStream.encode(e.videoStreams[n],t.uint32(42).fork()).ldelim();return null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(50).string(e.thumbnailUrl),null!=e.logoMainUrl&&Object.hasOwnProperty.call(e,"logoMainUrl")&&t.uint32(58).string(e.logoMainUrl),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(66).string(e.description),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.Home2View.EpisodeAsProgram;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.logoBannerUrl=e.string();break;case 2:o.episodeId=e.uint32();break;case 3:o.episodeName=e.string();break;case 4:o.videoUrl=e.string();break;case 5:o.videoStreams&&o.videoStreams.length||(o.videoStreams=[]),o.videoStreams.push(l.Proto.VideoStream.decode(e,e.uint32()));break;case 6:o.thumbnailUrl=e.string();break;case 7:o.logoMainUrl=e.string();break;case 8:o.description=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.MovieViewer2View=function(){function e(e){if(this.videoChapters=[],this.episodeListItems=[],this.sections=[],this.episodesOfSeries=[],this.videoStreams=[],this.tagEpisodes=[],this.tags=[],this.subtitles=[],this.casts=[],this.mcs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.videoUrl="",e.prototype.episodeTitle="",e.prototype.publishDate="",e.prototype.description="",e.prototype.isBookmarked=!1,e.prototype.videoChapters=s.emptyArray,e.prototype.nextEpisode=null,e.prototype.externalSiteItem=null,e.prototype.recommendSeriesSection=null,e.prototype.recommendEpisodeSection=null,e.prototype.sns=null,e.prototype.episodeListItems=s.emptyArray,e.prototype.ulizaAnalyticsInfo=null,e.prototype.publicationType=0,e.prototype.membership=null,e.prototype.isExpired=!1,e.prototype.expiresDetail=null,e.prototype.program=null,e.prototype.sections=s.emptyArray,e.prototype.episode=null,e.prototype.episodesOfSeries=s.emptyArray,e.prototype.cast="",e.prototype.videoStreams=s.emptyArray,e.prototype.tagEpisodes=s.emptyArray,e.prototype.adUnitTag="",e.prototype.audioStream=null,e.prototype.audioUrl="",e.prototype.articleUrl="",e.prototype.tags=s.emptyArray,e.prototype.commentCount=0,e.prototype.subtitles=s.emptyArray,e.prototype.casts=s.emptyArray,e.prototype.mcs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.videoUrl&&Object.hasOwnProperty.call(e,"videoUrl")&&t.uint32(10).string(e.videoUrl),null!=e.episodeTitle&&Object.hasOwnProperty.call(e,"episodeTitle")&&t.uint32(18).string(e.episodeTitle),null!=e.publishDate&&Object.hasOwnProperty.call(e,"publishDate")&&t.uint32(26).string(e.publishDate),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(34).string(e.description),null!=e.isBookmarked&&Object.hasOwnProperty.call(e,"isBookmarked")&&t.uint32(40).bool(e.isBookmarked),null!=e.videoChapters&&e.videoChapters.length)for(let n=0;n<e.videoChapters.length;++n)l.Proto.MovieViewer2View.VideoChapter.encode(e.videoChapters[n],t.uint32(50).fork()).ldelim();
1if(null!=e.nextEpisode&&Object.hasOwnProperty.call(e,"nextEpisode")&&l.Proto.MovieViewer2View.NextEpisode.encode(e.nextEpisode,t.uint32(58).fork()).ldelim(),null!=e.externalSiteItem&&Object.hasOwnProperty.call(e,"externalSiteItem")&&l.Proto.MovieViewer2View.ExternalSiteItem.encode(e.externalSiteItem,t.uint32(66).fork()).ldelim(),null!=e.recommendSeriesSection&&Object.hasOwnProperty.call(e,"recommendSeriesSection")&&l.Proto.MovieViewer2View.RecommendSeriesSection.encode(e.recommendSeriesSection,t.uint32(74).fork()).ldelim(),null!=e.recommendEpisodeSection&&Object.hasOwnProperty.call(e,"recommendEpisodeSection")&&l.Proto.MovieViewer2View.RecommendEpisodeSection.encode(e.recommendEpisodeSection,t.uint32(82).fork()).ldelim(),null!=e.sns&&Object.hasOwnProperty.call(e,"sns")&&l.Proto.Sns.encode(e.sns,t.uint32(90).fork()).ldelim(),null!=e.episodeListItems&&e.episodeListItems.length)for(let n=0;n<e.episodeListItems.length;++n)l.Proto.MovieViewer2View.EpisodeListItem.encode(e.episodeListItems[n],t.uint32(98).fork()).ldelim();if(null!=e.ulizaAnalyticsInfo&&Object.hasOwnProperty.call(e,"ulizaAnalyticsInfo")&&l.Proto.MovieViewer2View.UlizaAnalyticsInfo.encode(e.ulizaAnalyticsInfo,t.uint32(106).fork()).ldelim(),null!=e.publicationType&&Object.hasOwnProperty.call(e,"publicationType")&&t.uint32(112).int32(e.publicationType),null!=e.membership&&Object.hasOwnProperty.call(e,"membership")&&l.Proto.Membership.encode(e.membership,t.uint32(122).fork()).ldelim(),null!=e.isExpired&&Object.hasOwnProperty.call(e,"isExpired")&&t.uint32(128).bool(e.isExpired),null!=e.expiresDetail&&Object.hasOwnProperty.call(e,"expiresDetail")&&l.Proto.MovieViewer2View.ExpiresDetail.encode(e.expiresDetail,t.uint32(138).fork()).ldelim(),null!=e.program&&Object.hasOwnProperty.call(e,"program")&&l.Proto.Program.encode(e.program,t.uint32(146).fork()).ldelim(),null!=e.sections&&e.sections.length)for(let n=0;n<e.sections.length;++n)l.Proto.Section.encode(e.sections[n],t.uint32(154).fork()).ldelim();if(null!=e.episode&&Object.hasOwnProperty.call(e,"episode")&&l.Proto.Episode.encode(e.episode,t.uint32(162).fork()).ldelim(),null!=e.episodesOfSeries&&e.episodesOfSeries.length)for(let n=0;n<e.episodesOfSeries.length;++n)l.Proto.Episode.encode(e.episodesOfSeries[n],t.uint32(170).fork()).ldelim();if(null!=e.cast&&Object.hasOwnProperty.call(e,"cast")&&t.uint32(178).string(e.cast),null!=e.videoStreams&&e.videoStreams.length)for(let n=0;n<e.videoStreams.length;++n)l.Proto.VideoStream.encode(e.videoStreams[n],t.uint32(186).fork()).ldelim();if(null!=e.tagEpisodes&&e.tagEpisodes.length)for(let n=0;n<e.tagEpisodes.length;++n)l.Proto.TagEpisode.encode(e.tagEpisodes[n],t.uint32(194).fork()).ldelim();if(null!=e.adUnitTag&&Object.hasOwnProperty.call(e,"adUnitTag")&&t.uint32(202).string(e.adUnitTag),null!=e.audioStream&&Object.hasOwnProperty.call(e,"audioStream")&&l.Proto.Model.AudioStream.encode(e.audioStream,t.uint32(210).fork()).ldelim(),null!=e.audioUrl&&Object.hasOwnProperty.call(e,"audioUrl")&&t.uint32(218).string(e.audioUrl),null!=e.articleUrl&&Object.hasOwnProperty.call(e,"articleUrl")&&t.uint32(226).string(e.articleUrl),null!=e.tags&&e.tags.length)for(let n=0;n<e.tags.length;++n)l.Proto.CommonTag.encode(e.tags[n],t.uint32(234).fork()).ldelim();if(null!=e.commentCount&&Object.hasOwnProperty.call(e,"commentCount")&&t.uint32(240).uint32(e.commentCount),null!=e.subtitles&&e.subtitles.length)for(let n=0;n<e.subtitles.length;++n)l.Proto.MovieViewer2View.Subtitle.encode(e.subtitles[n],t.uint32(250).fork()).ldelim();if(null!=e.casts&&e.casts.length)for(let n=0;n<e.casts.length;++n)l.Proto.Cast.encode(e.casts[n],t.uint32(258).fork()).ldelim();if(null!=e.mcs&&e.mcs.length)for(let n=0;n<e.mcs.length;++n)l.Proto.MC.encode(e.mcs[n],t.uint32(274).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.videoUrl=e.string();break;case 2:o.episodeTitle=e.string();break;case 3:o.publishDate=e.string();break;case 4:o.description=e.string();break;case 5:o.isBookmarked=e.bool();break;case 6:o.videoChapters&&o.videoChapters.length||(o.videoChapters=[]),o.videoChapters.push(l.Proto.MovieViewer2View.VideoChapter.decode(e,e.uint32()));break;case 7:o.nextEpisode=l.Proto.MovieViewer2View.NextEpisode.decode(e,e.uint32());break;case 8:o.externalSiteItem=l.Proto.MovieViewer2View.ExternalSiteItem.decode(e,e.uint32());break;case 9:o.recommendSeriesSection=l.Proto.MovieViewer2View.RecommendSeriesSection.decode(e,e.uint32());break;case 10:o.recommendEpisodeSection=l.Proto.MovieViewer2View.RecommendEpisodeSection.decode(e,e.uint32());break;case 11:o.sns=l.Proto.Sns.decode(e,e.uint32());break;case 12:o.episodeListItems&&o.episodeListItems.length||(o.episodeListItems=[]),o.episodeListItems.push(l.Proto.MovieViewer2View.EpisodeListItem.decode(e,e.uint32()));break;case 13:o.ulizaAnalyticsInfo=l.Proto.MovieViewer2View.UlizaAnalyticsInfo.decode(e,e.uint32());break;case 14:o.publicationType=e.int32();break;case 15:o.membership=l.Proto.Membership.decode(e,e.uint32());break;case 16:o.isExpired=e.bool();break;case 17:o.expiresDetail=l.Proto.MovieViewer2View.ExpiresDetail.decode(e,e.uint32());break;case 18:o.program=l.Proto.Program.decode(e,e.uint32());break;case 19:o.sections&&o.sections.length||(o.sections=[]),o.sections.push(l.Proto.Section.decode(e,e.uint32()));break;case 20:o.episode=l.Proto.Episode.decode(e,e.uint32());break;case 21:o.episodesOfSeries&&o.episodesOfSeries.length||(o.episodesOfSeries=[]),o.episodesOfSeries.push(l.Proto.Episode.decode(e,e.uint32()));break;case 22:o.cast=e.string();break;case 23:o.videoStreams&&o.videoStreams.length||(o.videoStreams=[]),o.videoStreams.push(l.Proto.VideoStream.decode(e,e.uint32()));break;case 24:o.tagEpisodes&&o.tagEpisodes.length||(o.tagEpisodes=[]),o.tagEpisodes.push(l.Proto.TagEpisode.decode(e,e.uint32()));break;case 25:o.adUnitTag=e.string();break;case 26:o.audioStream=l.Proto.Model.AudioStream.decode(e,e.uint32());break;case 27:o.audioUrl=e.string();break;case 28:o.articleUrl=e.string();break;case 29:o.tags&&o.tags.length||(o.tags=[]),o.tags.push(l.Proto.CommonTag.decode(e,e.uint32()));break;case 30:o.commentCount=e.uint32();break;case 31:o.subtitles&&o.subtitles.length||(o.subtitles=[]),o.subtitles.push(l.Proto.MovieViewer2View.Subtitle.decode(e,e.uint32()));break;case 32:o.casts&&o.casts.length||(o.casts=[]),o.casts.push(l.Proto.Cast.decode(e,e.uint32()));break;case 34:o.mcs&&o.mcs.length||(o.mcs=[]),o.mcs.push(l.Proto.MC.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o}
vendor: 10,557 bytes, line 1
1,e.VideoChapter=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.startTime=0,e.prototype.title="",e.encode=function(e,t){return t||(t=i.create()),null!=e.startTime&&Object.hasOwnProperty.call(e,"startTime")&&t.uint32(8).uint32(e.startTime),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(18).string(e.title),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.VideoChapter;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.startTime=e.uint32();break;case 2:o.title=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.ExternalSiteItem=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.description="",e.prototype.transitionUrl="",e.encode=function(e,t){return t||(t=i.create()),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(10).string(e.description),null!=e.transitionUrl&&Object.hasOwnProperty.call(e,"transitionUrl")&&t.uint32(18).string(e.transitionUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.ExternalSiteItem;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.description=e.string();break;case 2:o.transitionUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.NextEpisode=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodeId=0,e.prototype.title="",e.encode=function(e,t){return t||(t=i.create()),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(8).uint32(e.episodeId),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(18).string(e.title),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.NextEpisode;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodeId=e.uint32();break;case 2:o.title=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.RecommendEpisodeSection=function(){function e(e){if(this.recommendEpisodeItems=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sectionTitle="",e.prototype.recommendEpisodeItems=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.sectionTitle&&Object.hasOwnProperty.call(e,"sectionTitle")&&t.uint32(10).string(e.sectionTitle),null!=e.recommendEpisodeItems&&e.recommendEpisodeItems.length)for(let n=0;n<e.recommendEpisodeItems.length;++n)l.Proto.MovieViewer2View.RecommendEpisodeItem.encode(e.recommendEpisodeItems[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.RecommendEpisodeSection;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.sectionTitle=e.string();break;case 2:o.recommendEpisodeItems&&o.recommendEpisodeItems.length||(o.recommendEpisodeItems=[]),o.recommendEpisodeItems.push(l.Proto.MovieViewer2View.RecommendEpisodeItem.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.RecommendEpisodeItem=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.thumbnailUrl="",e.prototype.seriesId=0,e.prototype.episodeId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(18).string(e.thumbnailUrl),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(24).uint32(e.seriesId),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(32).uint32(e.episodeId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.RecommendEpisodeItem;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.title=e.string();break;case 2:o.thumbnailUrl=e.string();break;case 3:o.seriesId=e.uint32();break;case 4:o.episodeId=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.RecommendSeriesSection=function(){function e(e){if(this.recommendSeriesItems=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sectionTitle="",e.prototype.recommendSeriesItems=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.sectionTitle&&Object.hasOwnProperty.call(e,"sectionTitle")&&t.uint32(10).string(e.sectionTitle),null!=e.recommendSeriesItems&&e.recommendSeriesItems.length)for(let n=0;n<e.recommendSeriesItems.length;++n)l.Proto.MovieViewer2View.RecommendSeriesItem.encode(e.recommendSeriesItems[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.RecommendSeriesSection;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.sectionTitle=e.string();break;case 2:o.recommendSeriesItems&&o.recommendSeriesItems.length||(o.recommendSeriesItems=[]),o.recommendSeriesItems.push(l.Proto.MovieViewer2View.RecommendSeriesItem.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.RecommendSeriesItem=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.title="",e.prototype.thumbnailUrl="",e.prototype.seriesId=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(10).string(e.title),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(18).string(e.thumbnailUrl),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(24).uint32(e.seriesId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.RecommendSeriesItem;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.title=e.string();break;case 2:o.thumbnailUrl=e.string();break;case 3:o.seriesId=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.EpisodeListItem=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.episodeId=0,e.prototype.title="",e.prototype.thumbnailUrl="",e.encode=function(e,t){return t||(t=i.create()),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(8).uint32(e.episodeId),null!=e.title&&Object.hasOwnProperty.call(e,"title")&&t.uint32(18).string(e.title),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(26).string(e.thumbnailUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.EpisodeListItem;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.episodeId=e.uint32();break;case 2:o.title=e.string();break;case 3:o.thumbnailUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.UlizaAnalyticsInfo=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.userId="",e.prototype.contentTitle="",e.prototype.contentCategory="",e.prototype.contentFormat=0,e.prototype.contentType=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(10).string(e.userId),null!=e.contentTitle&&Object.hasOwnProperty.call(e,"contentTitle")&&t.uint32(18).string(e.contentTitle),null!=e.contentCategory&&Object.hasOwnProperty.call(e,"contentCategory")&&t.uint32(26).string(e.contentCategory),null!=e.contentFormat&&Object.hasOwnProperty.call(e,"contentFormat")&&t.uint32(32).int32(e.contentFormat),null!=e.contentType&&Object.hasOwnProperty.call(e,"contentType")&&t.uint32(40).int32(e.contentType),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.UlizaAnalyticsInfo;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.userId=e.string();break;case 2:o.contentTitle=e.string();break;case 3:o.contentCategory=e.string();break;case 4:o.contentFormat=e.int32();break;case 5:o.contentType=e.int32();break;default:e.skipType(7&t)}}return o},e}(),e.ExpiresDetail=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.daysUntilExpiration=0,e.prototype.freeAccessDurationDays=0,e.prototype.freeSubsTrialDurationDays=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.daysUntilExpiration&&Object.hasOwnProperty.call(e,"daysUntilExpiration")&&t.uint32(8).uint32(e.daysUntilExpiration),null!=e.freeAccessDurationDays&&Object.hasOwnProperty.call(e,"freeAccessDurationDays")&&t.uint32(16).uint32(e.freeAccessDurationDays),null!=e.freeSubsTrialDurationDays&&Object.hasOwnProperty.call(e,"freeSubsTrialDurationDays")&&t.uint32(24).uint32(e.freeSubsTrialDurationDays),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.ExpiresDetail;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.daysUntilExpiration=e.uint32();break;case 2:o.freeAccessDurationDays=e.uint32();break;case 3:o.freeSubsTrialDurationDays=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.UlizaContentFormat=function(){let e={},t=Object.create(e);return t[e[0]="ULIZA_CONTENT_FORMAT_NONE"]=0,t[e[1]="ULIZA_CONTENT_FORMAT_DASH"]=1,t[e[2]="ULIZA_CONTENT_FORMAT_HLS"]=2,t[e[3]="ULIZA_CONTENT_FORMAT_MP4"]=3,t[e[4]="ULIZA_CONTENT_FORMAT_OTHER"]=4,t}(),e.UlizaContentType=function(){let e={},t=Object.create(e);return t[e[0]="ULIZA_CONTENT_TYPE_NONE"]=0,t[e[1]="ULIZA_CONTENT_TYPE_DVR"]=1,t[e[2]="ULIZA_CONTENT_TYPE_LIVE"]=2,t[e[3]="ULIZA_CONTENT_TYPE_VOD"]=3,t}(),e.Subtitle=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.format=0,e.prototype.language="",e.prototype.label="",e.prototype.url="",e.encode=function(e,t){return t||(t=i.create()),null!=e.format&&Object.hasOwnProperty.call(e,"format")&&t.uint32(8).int32(e.format),null!=e.language&&Object.hasOwnProperty.call(e,"language")&&t.uint32(18).string(e.language),null!=e.label&&Object.hasOwnProperty.call(e,"label")&&t.uint32(26).string(e.label),null!=e.url&&Object.hasOwnProperty.call(e,"url")&&t.uint32(34).string(e.url),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.MovieViewer2View.Subtitle;
1for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.format=e.int32();break;case 2:o.language=e.string();break;case 3:o.label=e.string();break;case 4:o.url=e.string();break;default:e.skipType(7&t)}}return o},e.Format=function(){let e={},t=Object.create(e);return t[e[0]="SUBTITLE_FORMAT_UNKNOWN"]=0,t[e[1]="SUBTITLE_FORMAT_WEBVTT"]=1,t[e[2]="SUBTITLE_FORMAT_SRT"]=2,t[e[3]="SUBTITLE_FORMAT_TTML"]=3,t[e[4]="SUBTITLE_FORMAT_JSON"]=4,t}(),e}(),e}(),e.WebArticleViewerView=function(){function e(e){if(this.seriesPopularHighlights=[],this.chapterList=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seriesName="",e.prototype.description="",e.prototype.seriesNumber="",e.prototype.chapterName="",e.prototype.date="",e.prototype.estimatedReadingTime=0,e.prototype.wordCount=0,e.prototype.highlightCount=0,e.prototype.mainHighlight=null,e.prototype.seriesPopularHighlights=s.emptyArray,e.prototype.thumbnailUrl="",e.prototype.authorNames="",e.prototype.articleHead="",e.prototype.article="",e.prototype.sns=null,e.prototype.isArticleLimited=!1,e.prototype.isWebtoon=!1,e.prototype.accountId="",e.prototype.footerImgUrl="",e.prototype.iosAppInstallUrl="",e.prototype.chapterList=s.emptyArray,e.prototype.isPreview=!1,e.prototype.isLogin=!1,e.prototype.nextChapter=null,e.prototype.recommendedSeries=null,e.prototype.seriesId=0,e.prototype.recommendedChapters=null,e.prototype.isBookmarked=!1,e.encode=function(e,t){if(t||(t=i.create()),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(10).string(e.seriesName),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(18).string(e.description),null!=e.seriesNumber&&Object.hasOwnProperty.call(e,"seriesNumber")&&t.uint32(26).string(e.seriesNumber),null!=e.chapterName&&Object.hasOwnProperty.call(e,"chapterName")&&t.uint32(34).string(e.chapterName),null!=e.date&&Object.hasOwnProperty.call(e,"date")&&t.uint32(42).string(e.date),null!=e.estimatedReadingTime&&Object.hasOwnProperty.call(e,"estimatedReadingTime")&&t.uint32(48).uint32(e.estimatedReadingTime),null!=e.wordCount&&Object.hasOwnProperty.call(e,"wordCount")&&t.uint32(56).uint32(e.wordCount),null!=e.highlightCount&&Object.hasOwnProperty.call(e,"highlightCount")&&t.uint32(64).uint32(e.highlightCount),null!=e.mainHighlight&&Object.hasOwnProperty.call(e,"mainHighlight")&&l.Proto.WebArt
vendor: 1,393 bytes, line 1
1icleViewerView.MainHighlight.encode(e.mainHighlight,t.uint32(74).fork()).ldelim(),null!=e.seriesPopularHighlights&&e.seriesPopularHighlights.length)for(let n=0;n<e.seriesPopularHighlights.length;++n)l.Proto.Highlight.encode(e.seriesPopularHighlights[n],t.uint32(82).fork()).ldelim();if(null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(90).string(e.thumbnailUrl),null!=e.authorNames&&Object.hasOwnProperty.call(e,"authorNames")&&t.uint32(98).string(e.authorNames),null!=e.articleHead&&Object.hasOwnProperty.call(e,"articleHead")&&t.uint32(106).string(e.articleHead),null!=e.article&&Object.hasOwnProperty.call(e,"article")&&t.uint32(114).string(e.article),null!=e.sns&&Object.hasOwnProperty.call(e,"sns")&&l.Proto.Sns.encode(e.sns,t.uint32(122).fork()).ldelim(),null!=e.isArticleLimited&&Object.hasOwnProperty.call(e,"isArticleLimited")&&t.uint32(128).bool(e.isArticleLimited),null!=e.isWebtoon&&Object.hasOwnProperty.call(e,"isWebtoon")&&t.uint32(136).bool(e.isWebtoon),null!=e.accountId&&Object.hasOwnProperty.call(e,"accountId")&&t.uint32(146).string(e.accountId),null!=e.footerImgUrl&&Object.hasOwnProperty.call(e,"footerImgUrl")&&t.uint32(154).string(e.footerImgUrl),null!=e.iosAppInstallUrl&&Object.hasOwnProperty.call(e,"iosAppInstallUrl")&&t.uint32(162).string(e.iosAppInstallUrl),null!=e.chapterList&&e.chapterList.length)for(let n=0;n<e.chapterList.length;
1++n)l.Proto.WebArticleViewerView.Chapter.encode(e.chapterList[n],t.uint32(170).fork()).ldelim();return null!=e.isPreview&&Object.hasOwnProperty.call(e,"isPreview")&&t.uint32(176).bool(e.isPreview),null!=e.isLogin&&Object.hasOwnProperty.call(e,"isLogin")&&t.uint32(184).bool(e.isLogin),null!=e.nextChapter&&Object.hasOwnProperty.call(e,"nextChapter")&&l.Proto.ChapterV2.encode(e.nextChapter,t.uint32(194).fork()).ldelim(),null!=e.recommendedSeries&&Object.hasOwnProperty.call(e,"recommendedSeries")&&l.Proto.WebArticleViewerView.RecommendedSeriesSection.encode(e.recommendedSeries,t.uint32(202).fork()).ldelim(),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(208).uint32(e.seriesId),null!=e.recommendedChapters&&Object.hasOwnProperty.call(e,"recommendedChapters")&&l.Proto.WebArticleViewerView.RecommendedChaptersSection.encode(e.recommendedChapters,t.uint32(218).fork()).ldelim(),null!=e.isBookmarked&&Object.hasOwnProperty.call(e,"isBookmarked")&&t.uint32(224).bool(e.isBookmarked),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));
1let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebArticleViewerView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.seriesName=e.string();break;case 2:o.description=e.string();break;case 3:o.seriesNumber=e.string();break;case 4:o.chapterName=e.string();break;case 5:o.date=e.string();break;case 6:o.estimatedReadingTime=e.uint32();break;case 7:o.wordCount=e.uint32();break;case 8:o.highlightCount=e.uint32();break;case 9:o.mainHighlight=l.Proto.WebArticleViewerView.MainHighlight.decode(e,e.uint32());break;case 10:o.seriesPopularHighlights&&o.seriesPopularHighlights.length||(o.seriesPopularHighlights=[]),o.seriesPopularHighlights.push(l.Proto.Highlight.decode(e,e.uint32()));break;case 11:o.thumbnailUrl=e.string();break;case 12:o.authorNames=e.string();break;case 13:o.articleHead=e.string();break;case 14:o.article=e.string();break;case 15:o.sns=l.Proto.Sns.decode(e,e.uint32());break;case 16:o.isArticleLimited=e.bool();break;case 17:o.isWebtoon=e.bool();break;case 18:o.accountId=e.string();break;case 19:o.footerImgUrl=e.string();break;case 20:o.iosAppInstallUrl=e.string();break;case 21:o.chapterList&&o.chapterList.length||(o.chapterList=[]),o.chapterList.push(l.Proto.WebArt
1icleViewerView.Chapter.decode(e,e.uint32()));break;case 22:o.isPreview=e.bool();break;case 23:o.isLogin=e.bool();break;case 24:o.nextChapter=l.Proto.ChapterV2.decode(e,e.uint32());break;case 25:o.recommendedSeries=l.Proto.WebArticleViewerView.RecommendedSeriesSection.decode(e,e.uint32());break;case 26:o.seriesId=e.uint32();break;case 27:o.recommendedChapters=l.Proto.WebArticleViewerView.RecommendedChaptersSection.decode(e,e.uint32());break;case 28:o.isBookmarked=e.bool();break;default:e.skipType(7&t)}}return o},e.RecommendedSeriesSection=function(){function e(e){if(this.series=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sectionName="",e.prototype.series=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.sectionName&&Object.hasOwnProperty.call(e,"sectionName")&&t.uint32(10).string(e.sectionName),null!=e.series&&e.series.length)for(let n=0;n<e.series.length;++n)l.Proto.Series.encode(e.series[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));
1let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebArticleViewerView.RecommendedSeriesSection;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.sectionName=e.string();break;case 2:o.series&&o.series.length||(o.series=[]),o.series.push(l.Proto.Series.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.RecommendedChaptersSection=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sectionName="",e.prototype.chapters=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.sectionName&&Object.hasOwnProperty.call(e,"sectionName")&&t.uint32(10).string(e.sectionName),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.ChapterV2.encode(e.chapters[n],t.uint32(18).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebArticleViewerView.RecommendedChaptersSection;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.sectionName=e.string();break;case 2:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.ChapterV2.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e}(),e.Chapter=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seriesNumber="",e.prototype.chapterName="",e.prototype.chapterUrl="",e.encode=function(e,t){return t||(t=i.create()),null!=e.seriesNumber&&Object.hasOwnProperty.call(e,"seriesNumber")&&t.uint32(10).string(e.seriesNumber),null!=e.chapterName&&Object.hasOwnProperty.call(e,"chapterName")&&t.uint32(18).string(e.chapterName),null!=e.chapterUrl&&Object.hasOwnProperty.call(e,"chapterUrl")&&t.uint32(26).string(e.chapterUrl),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));
1let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebArticleViewerView.Chapter;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.seriesNumber=e.string();break;case 2:o.chapterName=e.string();break;case 3:o.chapterUrl=e.string();break;default:e.skipType(7&t)}}return o},e}(),e.MainHighlight=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.mainHighlight=null,e.prototype.highlightBefore="",e.prototype.highlightAfter="",e.encode=function(e,t){return t||(t=i.create()),null!=e.mainHighlight&&Object.hasOwnProperty.call(e,"mainHighlight")&&l.Proto.Highlight.encode(e.mainHighlight,t.uint32(10).fork()).ldelim(),null!=e.highlightBefore&&Object.hasOwnProperty.call(e,"highlightBefore")&&t.uint32(18).string(e.highlightBefore),null!=e.highlightAfter&&Object.hasOwnProperty.call(e,"highlightAfter")&&t.uint32(26).string(e.highlightAfter),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebArticleViewerView.MainHighlight;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.mainHighlight=l.Proto.Highlight.decode(e,e.uint32());break;case 2:o.highlightBefore=e.string();break;case 3:o.highlightAfter=e.string();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.WebHomeView=function(){function e(e){if(this.movieSegment=[],this.episodeAsProgram=[],this.viewingProgressEpisodes=[],this.recommendedEpisodes=[],this.categoryTabs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.movieSegment=s.emptyArray,e.prototype.isLogin=!1,e.prototype.userId=0,e.prototype.signUpBenefit=null,e.prototype.episodeAsProgram=s.emptyArray,e.prototype.viewingProgressEpisodes=s.emptyArray,e.prototype.recommendedEpisodes=s.emptyArray,e.prototype.categoryTabs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.movieSegment&&e.movieSegment.length)for(let n=0;n<e.movieSegment.length;++n)l.Proto.WebHomeView.Section.encode(e.movieSegment[n],t.uint32(18).fork()).ldelim();if(null!=e.isLogin&&Object.hasOwnProperty.call(e,"isLogin")&&t.uint32(24).bool(e.isLogin),null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(40).int32(e.userId),null!=e.signUpBenefit&&Object.hasOwnProperty.call(e,"signUpBenefit")&&l.Proto.SignUpBenefit.encode(e.signUpBenefit,t.uint32(50).fork()).ldelim(),null!=e.episodeAsProgram&&e.episodeAsProgram.length)for(let n=0;n<e.episodeAsProgram.length;++n)l.Proto.WebHomeView.EpisodeAsProgram.encode(e.episodeAsProgram[n],t.uint32(58).fork()).ldelim();if(null!=e.viewingProgressEpisodes&&e.viewingProgressEpisodes.length)for(let n=0;n<e.viewingProgressEpisodes.length;++n)l.Proto.Episode.encode(e.viewingProgressEpisodes[n],t.uint32(74).fork()).ldelim();if(null!=e.recommendedEpisodes&&e.recommendedEpisodes.length)for(let n=0;n<e.recommendedEpisodes.length;++n)l.Proto.Episode.encode(e.recommendedEpisodes[n],t.uint32(82).fork()).ldelim();if(null!=e.categoryTabs&&e.categoryTabs.length)for(let n=0;n<e.categoryTabs.length;++n)l.Proto.Model.Home.CategoryTab.encode(e.categoryTabs[n],t.uint32(90).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebHomeView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 2:o.movieSegment&&o.movieSegment.length||(o.movieSegment=[]),o.movieSegment.push(l.Proto.WebHomeView.Section.decode(e,e.uint32()));break;case 3:o.isLogin=e.bool();break;case 5:o.userId=e.int32();break;case 6:o.signUpBenefit=l.Proto.SignUpBenefit.decode(e,e.uint32());break;case 7:o.episodeAsProgram&&o.episodeAsProgram.length||(o.episodeAsProgram=[]),o.episodeAsProgram.push(l.Proto.WebHomeView.EpisodeAsProgram.decode(e,e.uint32()));break;case 9:o.viewingProgressEpisodes&&o.viewingProgressEpisodes.length||(o.viewingProgressEpisodes=[]),o.viewingProgressEpisodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 10:o.recommendedEpisodes&&o.recommendedEpisodes.length||(o.recommendedEpisodes=[]),o.recommendedEpisodes.push(l.Proto.Episode.decode(e,e.uint32()));break;case 11:o.categoryTabs&&o.categoryTabs.length||(o.categoryTabs=[]),o.categoryTabs.push(l.Proto.Model.Home.CategoryTab.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.Section=function(){let e;function t(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return t.prototype.chapterSection=null,Object.defineProperty(t.prototype,"content",{get:s.oneOfGetter(e=["chapterSection"]),set:s.oneOfSetter(e)}),t.encode=function(e,t){return t||(t=i.create()),null!=e.chapterSection&&Object.hasOwnProperty.call(e,"chapterSection")&&l.Proto.WebHomeView.ChapterSection.encode(e.chapterSection,t.uint32(18).fork()).ldelim(),t},t.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebHomeView.Section;for(;e.pos<n;){let t=e.uint32();t>>>3==2?o.chapterSection=l.Proto.WebHomeView.ChapterSection.decode(e,e.uint32()):e.ski
1pType(7&t)}return o},t}(),e.ChapterSection=function(){function e(e){if(this.chapters=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.sectionName="",e.prototype.chapters=s.emptyArray,e.prototype.destination=0,e.prototype.tagId=0,e.encode=function(e,t){if(t||(t=i.create()),null!=e.sectionName&&Object.hasOwnProperty.call(e,"sectionName")&&t.uint32(10).string(e.sectionName),null!=e.chapters&&e.chapters.length)for(let n=0;n<e.chapters.length;++n)l.Proto.Chapter.encode(e.chapters[n],t.uint32(18).fork()).ldelim();return null!=e.destination&&Object.hasOwnProperty.call(e,"destination")&&t.uint32(24).int32(e.destination),null!=e.tagId&&Object.hasOwnProperty.call(e,"tagId")&&t.uint32(32).uint32(e.tagId),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebHomeView.ChapterSection;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.sectionName=e.string();break;case 2:o.chapters&&o.chapters.length||(o.chapters=[]),o.chapters.push(l.Proto.Chapter.decode(e,e.uint32()));break;case 3:o.destination=e.int32();break;case 4:o.tagId=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e.EpisodeAsProgram=function(){function e(e){if(this.categoryCodes=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.logoMainUrl="",e.prototype.logoBannerUrl="",e.prototype.episodeId=0,e.prototype.episodeName="",e.prototype.episodeDescription="",e.prototype.categoryCodes=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.logoMainUrl&&Object.hasOwnProperty.call(e,"logoMainUrl")&&t.uint32(10).string(e.logoMainUrl),null!=e.logoBannerUrl&&Object.hasOwnProperty.call(e,"logoBannerUrl")&&t.uint32(18).string(e.logoBannerUrl),null!=e.episodeId&&Object.hasOwnProperty.call(e,"episodeId")&&t.uint32(24).uint32(e.episodeId),null!=e.episodeName&&Object.hasOwnProperty.call(e,"episodeName")&&t.uint32(34).string(e.episodeName),null!=e.episodeDescription&&Object.hasOwnProperty.call(e,"episodeDescription")&&t.uint32(42).string(e.episodeDescription),null!=e.categoryCodes&&e.categoryCodes.length)for(let n=0;n<e.categoryCodes.length;++n)t.uint32(50).string(e.categoryCodes[n]);return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebHomeView.EpisodeAsProgram;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.logoMainUrl=e.string();break;case 2:o.logoBannerUrl=e.string();break;case 3:o.episodeId=e.uint32();break;case 4:o.episodeName=e.string();break;case 5:o.episodeDescription=e.string();break;case 6:o.categoryCodes&&o.categoryCodes.length||(o.categoryCodes=[]),o.categoryCodes.push(e.string());break;default:e.skipType(7&t)}}return o},e}(),e.Destination=function(){let e={},t=Object.create(e);return t[e[0]="NONE"]=0,t[e[1]="RANKING"]=1,t[e[2]="FEATURE"]=2,t}(),e}(),e.WebMovieViewerView=function(){function e(e){if(this.sections=[],this.episodesOfSeries=[],this.tagEpisodes=[],this.tags=[],this.casts=[],this.mcs=[],e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.chapterName="",e.prototype.publishDate="",e.prototype.description="",e.prototype.ulizaScript="",e.prototype.sns=null,e.prototype.nextChapter=null,e.prototype.seriesId=0,e.prototype.isLogin=!1,e.prototype.seriesName="",e.prototype.thumbnailUrl="",e.prototype.buttonDescription="",e.prototype.buttonTransitionUrl="",e.prototype.isBookmarked=!1,e.prototype.publicationType=0,e.prototype.membership=null,e.prototype.isExpired=!1,e.prototype.expiresDetail=null,e.prototype.program=null,e.prototype.sections=s.emptyArray,e.prototype.episodesOfSeries=s.emptyArray,e.prototype.episode=null,e.prototype.cast="",e.prototype.tagEpisodes=s.emptyArray,e.prototype.userId=0,e.prototype.adjustLinkToken="",e.prototype.articleUrl="",e.prototype.tags=s.emptyArray,e.prototype.commentCount=0,e.prototype.casts=s.emptyArray,e.prototype.mcs=s.emptyArray,e.encode=function(e,t){if(t||(t=i.create()),null!=e.chapterName&&Object.hasOwnProperty.call(e,"chapterName")&&t.uint32(10).string(e.chapterName),null!=e.publishDate&&Object.hasOwnProperty.call(e,"publishDate")&&t.uint32(26).string(e.publishDate),null!=e.description&&Object.hasOwnProperty.call(e,"description")&&t.uint32(34).string(e.description),null!=e.ulizaScript&&Object.hasOwnProperty.call(e,"ulizaScript")&&t.uint32(42).string(e.ulizaScript),null!=e.sns&&Object.hasOwnProperty.call(e,"sns")&&l.Proto.Sns.encode(e.sns,t.uint32(50).fork()).ldelim(),null!=e.nextChapter&&Object.hasOwnProperty.call(e,"nextChapter")&&l.Proto.ChapterV2.encode(e.nextChapter,t.uint32(58).fork()).ldelim(),null!=e.seriesId&&Object.hasOwnProperty.call(e,"seriesId")&&t.uint32(64).uint32(e.seriesId),null!=e.isLogin&&Object.hasOwnProperty.call(e,"isLogin")&&t.uint32(88).bool(e.isLogin),null!=e.seriesName&&Object.hasOwnProperty.call(e,"seriesName")&&t.uint32(106).string(e.seriesName),null!=e.thumbnailUrl&&Object.hasOwnProperty.call(e,"thumbnailUrl")&&t.uint32(114).string(e.thumbnailUrl),null!=e.buttonDescription&&Object.hasOwnProperty.call(e,"buttonDescription")&&t.uint32(122).string(e.buttonDescription),null!=e.buttonTransitionUrl&&Object.hasOwnProperty.call(e,"buttonTransitionUrl")&&t.uint32(130).string(e.buttonTransitionUrl),null!=e.isBookmarked&&Object.hasOwnProperty.call(e,"isBookmarked")&&t.uint32(136).bool(e.isBookmarked),null!=e.publicationType&&Object.hasOwnProperty.call(e,"publicationType")&&t.uint32(144).int32(e.publicationType),null!=e.membership&&Object.hasOwnProperty.call(e,"membership")&&l.Proto.Membership.encode(e.membership,t.uint32(154).fork()).ldelim(),null!=e.isExpired&&Object.hasOwnProperty.call(e,"isExpired")&&t.uint32(160).bool(e.isExpired),null!=e.expiresDetail&&Object.hasOwnProperty.call(e,"expiresDetail")&&l.Proto.WebMovieViewerView.ExpiresDetail.encode(e.expiresDetail,t.uint32(170).fork()).ldelim(),null!=e.program&&Object.hasOwnProperty.call(e,"program")&&l.Proto.Program.encode(e.program,t.uint32(178).fork()).ldelim(),null!=e.sections&&e.sections.length)for(let n=0;n<e.sections.length;++n)l.Proto.Section.encode(e.sections[n],t.uint32(186).fork()).ldelim();if(null!=e.episodesOfSeries&&e.episodesOfSeries.length)for(let n=0;n<e.episodesOfSeries.length;++n)l.Proto.Episode.encode(e.episodesOfSeries[n],t.uint32(194).fork()).ldelim();
1if(null!=e.episode&&Object.hasOwnProperty.call(e,"episode")&&l.Proto.Episode.encode(e.episode,t.uint32(202).fork()).ldelim(),null!=e.cast&&Object.hasOwnProperty.call(e,"cast")&&t.uint32(210).string(e.cast),null!=e.tagEpisodes&&e.tagEpisodes.length)for(let n=0;n<e.tagEpisodes.length;++n)l.Proto.TagEpisode.encode(e.tagEpisodes[n],t.uint32(218).fork()).ldelim();if(null!=e.userId&&Object.hasOwnProperty.call(e,"userId")&&t.uint32(224).uint32(e.userId),null!=e.adjustLinkToken&&Object.hasOwnProperty.call(e,"adjustLinkToken")&&t.uint32(234).string(e.adjustLinkToken),null!=e.articleUrl&&Object.hasOwnProperty.call(e,"articleUrl")&&t.uint32(242).string(e.articleUrl),null!=e.tags&&e.tags.length)for(let n=0;n<e.tags.length;++n)l.Proto.CommonTag.encode(e.tags[n],t.uint32(250).fork()).ldelim();if(null!=e.commentCount&&Object.hasOwnProperty.call(e,"commentCount")&&t.uint32(256).uint32(e.commentCount),null!=e.casts&&e.casts.length)for(let n=0;n<e.casts.length;++n)l.Proto.Cast.encode(e.casts[n],t.uint32(266).fork()).ldelim();if(null!=e.mcs&&e.mcs.length)for(let n=0;n<e.mcs.length;++n)l.Proto.MC.encode(e.mcs[n],t.uint32(274).fork()).ldelim();return t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebMovieViewerView;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.chapterName=e.string();break;case 3:o.publishDate=e.string();break;case 4:o.description=e.string();break;case 5:o.ulizaScript=e.string();break;case 6:o.sns=l.Proto.Sns.decode(e,e.uint32());break;case 7:o.nextChapter=l.Proto.ChapterV2.decode(e,e.uint32());break;case 8:o.seriesId=e.uint32();break;case 11:o.isLogin=e.bool();break;case 13:o.seriesName=e.string();break;case 14:o.thumbnailUrl=e.string();break;case 15:o.buttonDescription=e.string();break;case 16:o.buttonTransitionUrl=e.string();break;case 17:o.isBookmarked=e.bool();break;case 18:o.publicationType=e.int32();break;case 19:o.membership=l.Proto.Membership.decode(e,e.uint32());break;case 20:o.isExpired=e.bool();break;case 21:o.expiresDetail=l.Proto.WebMovieViewerView.ExpiresDetail.decode(e,e.uint32());break;case 22:o.program=l.Proto.Program.decode(e,e.uint32());break;case 23:o.sections&&o.sections.length||(o.sections=[]),o.sections.push(l.Proto.Section.decode(e,e.uint32()));break;case 24:o.episodesOfSeries&&o.episodesOfSeries.length||(o.episodesOfSeries=[]),o.episodesOfSeries.push(l.Proto.Episode.decode(e,e.uint32()));break;case 25:o.episode=l.Proto.Episode.decode(e,e.uint32());break;case 26:o.cast=e.string();break;case 27:o.tagEpisodes&&o.tagEpisodes.length||(o.tagEpisodes=[]),o.tagEpisodes.push(l.Proto.TagEpisode.decode(e,e.uint32()));break;case 28:o.userId=e.uint32();break;case 29:o.adjustLinkToken=e.string();break;case 30:o.articleUrl=e.string();break;case 31:o.tags&&o.tags.length||(o.tags=[]),o.tags.push(l.Proto.CommonTag.decode(e,e.uint32()));break;case 32:o.commentCount=e.uint32();break;case 33:o.casts&&o.casts.length||(o.casts=[]),o.casts.push(l.Proto.Cast.decode(e,e.uint32()));break;case 34:o.mcs&&o.mcs.length||(o.mcs=[]),o.mcs.push(l.Proto.MC.decode(e,e.uint32()));break;default:e.skipType(7&t)}}return o},e.ExpiresDetail=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.daysUntilExpiration=0,e.prototype.freeAccessDurationDays=0,e.prototype.freeSubsTrialDurationDays=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.daysUntilExpiration&&Object.hasOwnProperty.call(e,"daysUntilExpiration")&&t.uint32(8).uint32(e.daysUntilExpiration),null!=e.freeAccessDurationDays&&Object.hasOwnProperty.call(e,"freeAccessDurationDays")&&t.uint32(16).uint32(e.freeAccessDurationDays),null!=e.freeSubsTrialDurationDays&&Object.hasOwnProperty.call(e,"freeSubsTrialDurationDays")&&t.uint32(24).uint32(e.freeSubsTrialDurationDays),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebMovieViewerView.ExpiresDetail;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.daysUntilExpiration=e.uint32();break;case 2:o.freeAccessDurationDays=e.uint32();break;case 3:o.freeSubsTrialDurationDays=e.uint32();break;default:e.skipType(7&t)}}return o},e}(),e}(),e.WebPremiumRegistrationView=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.hasContractedBefore=!1,e.encode=function(e,t){return t||(t=i.create()),null!=e.hasContractedBefore&&Object.hasOwnProperty.call(e,"hasContractedBefore")&&t.uint32(8).bool(e.hasContractedBefore),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.Proto.WebPremiumRegistrationView;for(;e.pos<n;){let t=e.uint32();t>>>
13==1?o.hasContractedBefore=e.bool():e.skipType(7&t)}return o},e}(),e})();l.google=(()=>{let e={};return e.protobuf=function(){let e={};return e.Timestamp=function(){function e(e){if(e)for(let t=Object.keys(e),n=0;n<t.length;++n)null!=e[t[n]]&&(this[t[n]]=e[t[n]])}return e.prototype.seconds=s.Long?s.Long.fromBits(0,0,!1):0,e.prototype.nanos=0,e.encode=function(e,t){return t||(t=i.create()),null!=e.seconds&&Object.hasOwnProperty.call(e,"seconds")&&t.uint32(8).int64(e.seconds),null!=e.nanos&&Object.hasOwnProperty.call(e,"nanos")&&t.uint32(16).int32(e.nanos),t},e.decode=function(e,t){e instanceof r||(e=r.create(e));let n=void 0===t?e.len:e.pos+t,o=new l.google.protobuf.Timestamp;for(;e.pos<n;){let t=e.uint32();switch(t>>>3){case 1:o.seconds=e.int64();break;case 2:o.nanos=e.int32();break;default:e.skipType(7&t)}}return o},e}(),e}(),e})()}}]);

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.