"use strict";(()=>{vare={};e.id=6856,e.ids=[6856],e.modules={75600:e=>{e.exports=require("next/dist/compiled/next-server/pages-api.runtime.prod.js")},9973:e=>{e.exports=require("serverless-mysql")},79428:e=>{e.exports=require("buffer")},55511:e=>{e.exports=require("crypto")},29021:e=>{e.exports=require("fs")},81630:e=>{e.exports=require("http")},33873:e=>{e.exports=require("path")},96762:(e,r)=>{Object.defineProperty(r,"M",{enumerable:!0,get:function(){returnfunctione(r,t){returntinr?r[t]:"then"inr&&"function"==typeofr.then?r.then(r=>e(r,t)):"function"==typeofr&&"default"===t?r:void0}}})},43634:(e,r,t)=>{t.r(r),t.d(r,{config:()=>p,default:()=>u,routeModule:()=>d});vars={};t.r(s),t.d(s,{default:()=>l});varn=t(89947),a=t(2706),o=t(96762),c=t(57638),i=t.n(c);asyncfunctionl(e,r){if("GET"!==e.method)returnr.json({success:!1,msg:"Failed!"});let{type:t,value:s,tableName:n,dbFullName:a,userId:o,dbId:c,userType:l,database:u}=e.query,p=`SELECT \`${t}\` FROM \`${n}\` WHERE \`${t}\`=?`,d=[s];o&&(p+=" AND user_id=?",d.push(o)),c&&(p+=" AND db_id=?",d.push(c)),l&&(p+=" AND user_type=?",d.push(l)),u&&(p+=" AND `database`=?",d.push(u));let_=awaiti()({queryString:p,queryValuesArray:d,database:a&&"string"==typeofa?a.replace(/[^a-z0-9_]/g,""):"datasquirel"});r.json({result:!!_&&!!_[0]})}letu=(0,o.M)(s,"default"),p=(0,o.M)(s,"config"),d=newn.PagesAPIRouteModule({definition:{kind:a.A.PAGES_API,page:"/api/checkDuplicateData",pathname:"/api/checkDuplicateData",bundlePath:"",filename:""},userland:s})},30003:e=>{e.exports=/^id$|^uuid$|^date_created$|^date_created_code$|^date_created_timestamp$|^date_updated$|^date_updated_code$|^date_updated_timestamp$/},6061:(e,r,t)=>{lets=t(72835),n=t(30003);e.exports=asyncfunction({unparsedResults:e,tableSchema:r}){lett=[];try{for(leta=0;a<e.length;a++){leto=e[a],c=Object.keys(o);for(lete=0;e<c.length;e++){lett=c[e],a=r?.fields[e];if(t?.match(n))continue;leti=o[t];("number"==typeofi||i)&&a?.encrypted&&i?.match(/./)&&(o[t]=s({encryptedString:i}))}t.push(o)}returnt}catch(r){returnconsole.log("ERROR in parseDbResults Function =>",r.message),e}}},48225:(e,r,t)=>{lets=t(29021),{IncomingMessage:n}=t(81630);e.exports=asyncfunction({user:e,message:r,component:t,noMail:n,req:a}){leto=newDate,c=(()=>{if(!a)returnnull;try{lete=a.headers["x-forwarded-for"],r=a.headers["x-real-ip"],t=a.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],n=t||s||r||a.socket.remoteAddress;if(!n)returnnull;returnString(n)}catch(e){returnnull}})();try{letn=`🚀 SERVER ERROR ===========================