"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__name=(e,t)=>__defProp(e,"name",{value:t,configurable:!0}),__export=(e,t)=>{for(var o in t)__defProp(e,o,{get:t[o],enumerable:!0})},__copyProps=(e,t,o,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let n of __getOwnPropNames(t))__hasOwnProp.call(e,n)||n===o||__defProp(e,n,{get:()=>t[n],enumerable:!(r=__getOwnPropDesc(t,n))||r.enumerable});return e},__toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:!0}),e),__async=(e,t,o)=>new Promise((r,n)=>{var s=e=>{try{_(o.next(e))}catch(e){n(e)}},p=e=>{try{_(o.throw(e))}catch(e){n(e)}},_=e=>e.done?r(e.value):Promise.resolve(e.value).then(s,p);_((o=o.apply(e,t)).next())}),episodes_exports={};__export(episodes_exports,{getEpisodes:()=>getEpisodes});var getEpisodes=__name(function(e){return __async(this,arguments,function*({url:e,providerContext:t}){const{axios:o,cheerio:r}=t;try{const t=null==e?void 0:e.split("/").slice(0,3).join("/"),n=(yield o.get(e)).data;let s=r.load(n);const p=[];return s('.file-entry:not(:contains("Parent Directory"))').map((e,o)=>{var r,n,_,i,l,a;const c=s(o).attr("href");c&&((null==(r=s(o).text())?void 0:r.includes(".mp4"))||(null==(n=s(o).text())?void 0:n.includes(".mkv")))&&p.push({title:(null==(l=null==(i=null==(_=s(o).text())?void 0:_.match(/E\d+/))?void 0:i[0])?void 0:l.replace("E","Episode "))||e+1+". "+(null==(a=s(o).text())?void 0:a.replace(".mkv","")),link:t+c})}),p}catch(e){return[]}})},"getEpisodes");exports.getEpisodes=getEpisodes;