"use strict";(()=>{vare={};e.id=5141,e.ids=[5141],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},29021:e=>{e.exports=require("fs")},33873:e=>{e.exports=require("path")},96762:(e,t)=>{Object.defineProperty(t,"M",{enumerable:!0,get:function(){returnfunctione(t,n){returnnint?t[n]:"then"int&&"function"==typeoft.then?t.then(t=>e(t,n)):"function"==typeoft&&"default"===n?t:void0}}})},33921:(e,t,n)=>{n.r(t),n.d(t,{config:()=>P,default:()=>f,routeModule:()=>c});varr={};n.r(r),n.d(r,{default:()=>p});vari=n(89947),a=n(2706),o=n(96762),u=n(33873),s=n.n(u);letd=n(29021);asyncfunctionp(e,t){if("GET"!==e.method)returnt.json({msg:"Invalid Request"});letn=s().resolve(process.cwd(),"./public/videos"),r=e.query.name;if(!r||"string"!=typeofr){t.status(400).end("No video name provided");return}leti=s().join(n,r);if(!d.existsSync(i)){t.status(400).end("Video not found");return}d.statSync(i).size,e.headers.range,d.createReadStream(i).pipe(t)}letf=(0,o.M)(r,"default"),P=(0,o.M)(r,"config"),c=newi.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/stream/[path]",pathname:"/api/stream/[path]",bundlePath:"",filename:""},userland:r})},2706:(e,t)=>{varn;Object.defineProperty(t,"A",{enumerable:!0,get:function(){returnn}}),function(e){e.PAGES="PAGES",e.PAGES_API="PAGES_API",e.APP_PAGE="APP_PAGE",e.APP_ROUTE="APP_ROUTE",e.IMAGE="IMAGE"}(n||(n={}))},89947:(e,t,n)=>{e.exports=n(75600)}};vart=require("../../../webpack-api-runtime.js");t.C(e);varn=t(t.s=33921);module.exports=n})();