"use strict";(()=>{vare={};e.id=245,e.ids=[245],e.modules={39908:e=>{e.exports=require("@moduletrace/datasquirel/dist/users/user-auth")},75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},29021:e=>{e.exports=require("fs")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){returnfunctione(r,s){returnsinr?r[s]:"then"inr&&"function"==typeofr.then?r.then(r=>e(r,s)):"function"==typeofr&&"default"===s?r:void0}}})},37811:(e,r,s)=>{s.r(r),s.d(r,{config:()=>_,default:()=>c,routeModule:()=>p});vart={};s.r(t),s.d(t,{default:()=>d});vara=s(89947),n=s(2706),o=s(96762),i=s(69842),u=s(67619),l=s(48786);asyncfunctiond(e,r){if("GET"!==e.method)returnr.json({user:null,msg:"Registration Failed!"});lets=await(0,i.A)(e,r);if(!s)returnr.json({success:!1,msg:"Unauthorized"});lett=e.query.dbSlug,a=e.query.dbOwnerId,n=e.query.delegatedUserId;try{lete=await(0,l.A)("SELECT id FROM user_databases WHERE user_id=? AND db_slug=?",[a,t]);if(!e||!e[0])returnr.json({success:!1,msg:"Database not found"});lets=await(0,l.A)("SELECT table_name,table_slug FROM user_database_tables WHERE user_id=? AND db_id=?",[a,e[0].id]),o=await(0,l.A)("SELECT `database`,`table` FROM delegated_user_tables WHERE root_user_id=? AND delegated_user_id=?",[a,n]);r.json({success:!0,tables:s,accessed_tables:o})}catch(e){(0,u.A)({component:"/api/getDatabaseTables/main-catch-error",message:e.message,user:s}),r.json({success:!1})}}letc=(0,o.M)(t,"default"),_=(0,o.M)(t,"config"),p=newa.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/getDatabaseTables",pathname:"/api/getDatabaseTables",bundlePath:"",filename:""},userland:t})},69842:(e,r,s)=>{s.d(r,{A:()=>n});vart=s(39908),a=s.n(t);asyncfunctionn(e,r,s){lett=a()({req:e,level:s?"deep":void0});returnconsole.log(t),t.payload}},67619:(e,r,s)=>{s.d(r,{A:()=>n});vart=s(29021),a=s.n(t);asyncfunctionn({user:e,message:r,component:s,noMail:t,req:n}){leto=newDate,i=(()=>{if(!n)returnnull;try{lete=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],s=n.headers["cf-connecting-ip"],t=Array.isArray(e)?e[0]:e?.split(",")[0],a=s||t||r||n.socket.remoteAddress;if(!a)returnnull;returnString(a)}catch(e){returnnull}})();try{lett=`🚀 SERVER ERROR ===========================