var _0x4e675e=_0x138d;function _0x12ed(){var e=["7AduaRN","callback","object","1009112kchOPK","parent","getJSON","getDay","812669OlAysg","span.ts-ajax-cache[data-id='","attr","show_items","select#chapter","toString","removeClass",".epl-num","add_action","link","done","#sidebar .ts-wpop-nav-tabs li a[data-range='","length","prop","4187622Ppycru","add_filter","getTime","text","#sidebar ","31005139tWQaes","post","weekly","param","select#chapter option[value='']","?time=","title","click","#thememode input[type='checkbox']","actions",".wpop.wpop-weekly",".wpop.wpop-alltime","apply","priority","4MLRqgw","getItem","append","ts_ms_cnwpop","select#chapter option[data-id=","Chapter ","indexOf","src","lstimename","search","is_valid_range","removeItem","data-range","hide","closest","(((.+)+)+)+$","#sidebar .wpop","ranges","setItem","localStorage","filters","change","push","mscurrentChapterList","time","getLocalStorage","range_selectors","css","tslsc_","find","episode","parse","stringify",".logos img","395915rRRfXQ","removeLocalCache","824qriQxl","get_chapters","3180fSzdXJ","ajax","fail","#sidebar .ts-wpop-nav-tabs li","isSupported","do_action","darkmode","html",".eplister ul li","default","2475279VypPOX","alltime","thememode","remove_filter","lightmode","update_selector","unset","getCurrent","active","content","body","pop","splice",".epcur.epcurfirst","replace","10OSxIpX","setLocalStorage","currentChapterList",".epl-title","currentTime","constructor","selected","attach_events","addClass","url","href","forEach","cachePrefix"];return(_0x12ed=function(){return e})()}!function(e,t){for(var o=_0x138d,r=_0x12ed();;)try{if(549336===-parseInt(o(497))/1+parseInt(o(450))/2*(-parseInt(o(452))/3)+parseInt(o(530))/4*(parseInt(o(448))/5)+-parseInt(o(511))/6*(parseInt(o(490))/7)+-parseInt(o(493))/8+parseInt(o(462))/9*(-parseInt(o(477))/10)+parseInt(o(516))/11)break;r.push(r.shift())}catch(e){r.push(r.shift())}}();var _0x5d95f9=function(){var e=!0;return function(t,o){var r=e?function(){if(o){var e=o[_0x138d(528)](t,arguments);return o=null,e}}:function(){};return e=!1,r}}(),_0x40a502=_0x5d95f9(this,function(){var e=_0x138d;return _0x40a502.toString().search(e(545))[e(502)]()[e(482)](_0x40a502)[e(539)](e(545))});_0x40a502();var Hooks=Hooks||{};function pickSelected(){var e=_0x138d;jQuery(e(534)+chapter_id+"]").attr(e(483),e(483)),jQuery(e(520))[e(499)]("disabled","disabled")}function loadChList(){var e=_0x138d,t=e(553),o=(new Date).toISOString().split("T")[0];if("object"==typeof localStorage){var r=localStorage[e(531)](t);if(null!==r){if((r=JSON[e(561)](r)).id==post_id&&r.time==o)return $("select#chapter")[e(532)](r[e(459)]),void pickSelected();localStorage[e(541)](t),localStorage[e(541)](e(479))}}jQuery[e(453)]({url:ajaxurl,type:e(517),data:{action:e(451),id:post_id},success:function(r){var a=e;if($(a(501))[a(532)](r),a(492)==typeof localStorage)return localStorage[a(548)](t,JSON[a(446)]({id:post_id,html:r,time:o})),void pickSelected()}})}function ts_extract_epls(){var e=_0x138d,t=$(e(460));if(t[e(509)]<1)return[];var o=[];return t.each(function(t,r){var a=e;r=jQuery(r);var i={};i[a(560)]=r.find(a(504))[a(514)](),i[a(522)]=r.find(a(480)).text(),i.link=r[a(559)]("a").get(0)[a(487)],o[a(552)](i)}),o}function ts_set_first_ep(){var e=_0x138d,t=jQuery(e(475));if(!(t.length<1)){var o=ts_extract_epls();o.length<1||(o=o[e(473)](),t[e(494)]()[e(499)]("href",o[e(506)]),t[e(459)](e(535)+o[e(560)]))}}function _0x138d(e,t){var o=_0x12ed();return(_0x138d=function(e,t){return o[e-=446]})(e,t)}Hooks[_0x4e675e(525)]=Hooks[_0x4e675e(525)]||{},Hooks[_0x4e675e(550)]=Hooks.filters||{},Hooks[_0x4e675e(505)]=function(e,t,o){var r=_0x4e675e;void 0===o&&(o=10),Hooks[r(525)][e]=Hooks.actions[e]||[],Hooks.actions[e][r(552)]({priority:o,callback:t})},Hooks[_0x4e675e(512)]=function(e,t,o){var r=_0x4e675e;void 0===o&&(o=10),Hooks[r(550)][e]=Hooks.filters[e]||[],Hooks[r(550)][e].push({priority:o,callback:t})},Hooks.remove_action=function(e,t){var o=_0x4e675e;Hooks[o(525)][e]=Hooks[o(525)][e]||[],Hooks.actions[e][o(488)](function(r,a){var i=o;r[i(491)]===t&&Hooks[i(525)][e][i(474)](a,1)})},Hooks[_0x4e675e(465)]=function(e,t){var o=_0x4e675e;Hooks.filters[e]=Hooks[o(550)][e]||[],Hooks.filters[e][o(488)](function(r,a){var i=o;r[i(491)]===t&&Hooks[i(550)][e].splice(a,1)})},Hooks[_0x4e675e(457)]=function(e,t){var o=_0x4e675e,r=[];void 0!==Hooks.actions[e]&&Hooks[o(525)][e][o(509)]>0&&(Hooks[o(525)][e][o(488)](function(e){var t=o;r[e[t(529)]]=r[e[t(529)]]||[],r[e.priority].push(e.callback)}),r[o(488)](function(e){e[o(488)](function(e){e(t)})}))},Hooks.apply_filters=function(e,t,o){var r=_0x4e675e,a=[];return void 0!==Hooks[r(550)][e]&&Hooks[r(550)][e][r(509)]>0&&(Hooks[r(550)][e].forEach(function(e){var t=r;a[e[t(529)]]=a[e[t(529)]]||[],a[e[t(529)]][t(552)](e[t(491)])}),a[r(488)](function(e){e[r(488)](function(e){t=e(t,o)})})),t};var ts_localStorage={cachePrefix:_0x4e675e(558),isSupported:function(){var e=_0x4e675e;try{return e(549)in window&&null!==window[e(549)]}catch(e){return!1}},setLocalStorage:function(e,t){var o=_0x4e675e;if(!this[o(456)]())return!1;localStorage[o(548)](e,JSON.stringify(t))},getLocalStorage:function(e){var t=_0x4e675e;if(!this[t(456)]())return null;var o=localStorage[t(531)](e);return null===o?null:JSON[t(561)](o)},setLocalCache:function(e,t,o){var r=_0x4e675e,a={v:t,e:(new Date)[r(513)]()+1e3*o};this[r(478)](this[r(489)]+e,a)},getLocalCache:function(e){var t=_0x4e675e,o=this[t(555)](ts_localStorage[t(489)]+e);return o?"e"in o==0||isNaN(o.e)?(this.removeLocalCache(e),null):"v"in o==0?(this[t(449)](e),null):(new Date)[t(513)]()>o.e?(this[t(449)](e),null):o.v:null},removeLocalCache:function(e){localStorage[_0x4e675e(541)](this.cachePrefix+e)},removeAllCache:function(){var e=_0x4e675e;for(var t in localStorage)0===t[e(536)](this[e(489)])&&localStorage.removeItem(t)}},ts_darkmode={init:function(){var e=_0x4e675e;!1!==ts_localStorage[e(456)]()&&(null==localStorage[e(531)]("thememode")?e(466)==defaultTheme?jQuery(e(472))[e(485)]("lightmode"):jQuery(e(472))[e(503)](e(466)):e(466)==localStorage[e(531)]("thememode")?jQuery(e(472))[e(485)]("lightmode"):jQuery("body")[e(503)](e(466)))},listen:function(){var e=_0x4e675e;jQuery(e(524)).on(e(551),function(){var t=e;0==jQuery(t(524))[t(510)]("checked")?(jQuery(t(447)).attr(t(537),tsLogoLight),localStorage[t(548)]("thememode",t(466)),jQuery(t(472))[t(485)](t(466))):(jQuery(t(447))[t(499)]("src",tsLogoDark),localStorage[t(548)](t(464),t(458)),jQuery("body")[t(503)](t(466)))})}},ts_popular_widget={ranges:["monthly","weekly",_0x4e675e(463)],default:_0x4e675e(518),range_selectors:{weekly:_0x4e675e(526),monthly:".wpop.wpop-monthly",alltime:_0x4e675e(527)},update_selector:"#wpop-items",currentTime:null,lstimename:"ts_ms_cwpop",lswpopcont:_0x4e675e(533),is_valid_range:function(e){var t=_0x4e675e;return-1!==this[t(547)][t(536)](e)},run:function(e){var t=_0x4e675e;this[t(481)]=e,this.updateWidget(),this[t(500)](this[t(461)]),this[t(484)]()},show_items:function(e){var t=_0x4e675e;if(ts_popular_widget[t(540)](e)){jQuery(t(546))[t(543)]();var o=jQuery(t(515)+this[t(556)][e]);jQuery(t(455))[t(503)](t(470)),jQuery(t(508)+e+"']")[t(544)]("li").addClass("active"),o.show()}},getCurrent:function(){var e=_0x4e675e,t=jQuery(this[e(467)])[e(459)]();return t[e(476)](/[\n\r]/g,"")[e(476)](/\s\s+/g," ")},updateWidget:function(){var e=_0x4e675e,t=ts_localStorage[e(555)](this[e(538)]);if(isNaN(t))ts_localStorage[e(478)](this[e(538)],this[e(481)]),ts_localStorage[e(478)](this.lswpopcont,this[e(469)]);else{if(tthis.currentTime){var o=ts_localStorage[e(555)](this.lswpopcont);if(!o)return;return void jQuery(this.update_selector)[e(459)](o)}}},attach_events:function(){var e=_0x4e675e;jQuery(".ts-wpop-tab").on(e(523),function(){var t=e,o=jQuery(this).attr(t(542));ts_popular_widget[t(540)](o)&&ts_popular_widget[t(500)](o)})}},ts_ajax_cache_buster={param:{},run:function(e){this[_0x4e675e(519)]=e,ts_ajax_cache_buster.get()},get:function(){var e=_0x4e675e,t=new Date;jQuery[e(495)](this.param[e(486)]+e(521)+this[e(519)][e(554)]+t[e(496)]())[e(507)](function(t){var o=e;typeof t==typeof{}&&o(471)in t!=0&&jQuery(o(498)+t.self+"']")[o(459)](t.content)[o(557)]("visibility",o(468))})[e(454)](function(){})}};