"use strict";var __defProp=Object.defineProperty,__getOwnPropDesc=Object.getOwnPropertyDescriptor,__getOwnPropNames=Object.getOwnPropertyNames,__hasOwnProp=Object.prototype.hasOwnProperty,__name=(target,value)=>__defProp(target,"name",{value:value,configurable:!0}),__export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:!0})},__copyProps=(to,from,except,desc)=>{if(from&&"object"==typeof from||"function"==typeof from)for(let key of __getOwnPropNames(from))__hasOwnProp.call(to,key)||key===except||__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable});return to},__toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:!0}),mod),__async=(__this,__arguments,generator)=>new Promise((resolve,reject)=>{var fulfilled=value=>{try{step(generator.next(value))}catch(e){reject(e)}},rejected=value=>{try{step(generator.throw(value))}catch(e){reject(e)}},step=x=>x.done?resolve(x.value):Promise.resolve(x.value).then(fulfilled,rejected);step((generator=generator.apply(__this,__arguments)).next())}),meta_exports={};__export(meta_exports,{getMeta:()=>getMeta});var getMeta=__name(function(_0){return __async(this,arguments,function*({link:link,providerContext:providerContext}){var _a,_b;try{const{axios:axios,cheerio:cheerio}=providerContext,baseUrl=null==link?void 0:link.split("/").slice(0,3).join("/"),url=link,data=(yield axios.get(url)).data,$=cheerio.load(data),title=(null==(_b=null==(_a=$(".directory").children().first().text().trim())?void 0:_a.split("/").pop())?void 0:_b.trim())||"",links=[];$('.directory-entry:not(:contains("Parent Directory"))').map((i,element)=>{const link2=$(element).attr("href");link2&&links.push({episodesLink:baseUrl+link2,title:$(element).text()})});const directLinks=[];return $('.file-entry:not(:contains("Parent Directory"))').map((i,element)=>{var _a2,_b2;const link2=$(element).attr("href");link2&&((null==(_a2=$(element).text())?void 0:_a2.includes(".mp4"))||(null==(_b2=$(element).text())?void 0:_b2.includes(".mkv")))&&directLinks.push({title:i+1+". "+$(element).text(),link:baseUrl+link2})}),directLinks.length>0&&links.push({title:title+" DL",directLinks:directLinks}),{title:title,synopsis:"",image:"",imdbId:"",type:"movie",linkList:links}}catch(err){return{title:"",synopsis:"",image:"",imdbId:"",type:"movie",linkList:[]}}})},"getMeta");exports.getMeta=getMeta;