"use strict";(()=>{vare={};e.id=2101,e.ids=[2101],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}}})},57164:(e,r,t)=>{t.r(r),t.d(r,{config:()=>m,default:()=>_,routeModule:()=>f});vars={};t.r(s),t.d(s,{default:()=>S});vara=t(89947),n=t(2706),o=t(96762),i=t(77538),l=t.n(i),c=t(6420),u=t.n(c),p=t(57638),d=t.n(p);asyncfunctionS(e,r){if("GET"!==e.method)returnr.json({msg:"Failed!"});lett=awaitu()(e,r);if(!t)returnr.json({success:!1,msg:"Unauthorized"});lets=e.query.table,a=e.query.db,n=e.query.field,o=String(e.query.term),i=e.query.operator;try{lete=`SELECT * FROM \`${s}\` WHERE LOWER(\`${n}\`) ${i?.toString()?.match(/equal/i)?"=":" LIKE "}? ORDER BY id DESC LIMIT 20`,t=[i?.toString()?.match(/equal/i)?o.toLowerCase():"%"+o.toLowerCase()+"%"],l=awaitd()({database:a?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e,queryValuesArray:t}),c=awaitd()({database:a?.toString()?.replace(/[^a-z0-9_]/g,""),queryString:e.replace(/\*/,"COUNT(id) AS count").replace(/ ORDER BY .*/,""),queryValuesArray:t});r.json({success:!0,result:l,count:c?.[0]?.count})}catch(e){l()({component:"/api/queryEntriesSearchTerm/main-catch-error",message:e.message,user:t}),r.json({success:!1,msg:"Failed!"})}}let_=(0,o.M)(s,"default"),m=(0,o.M)(s,"config"),f=newa.PagesAPIRouteModule({definition:{kind:n.A.PAGES_API,page:"/api/queryEntriesSearchTerm",pathname:"/api/queryEntriesSearchTerm",bundlePath:"",filename:""},userland:s})},77538:(e,r,t)=>{lets=t(29021),{IncomingMessage:a}=t(81630);e.exports=asyncfunction({user:e,message:r,component:t,noMail:a,req:n}){leto=newDate,i=(()=>{if(!n)returnnull;try{lete=n.headers["x-forwarded-for"],r=n.headers["x-real-ip"],t=n.headers["cf-connecting-ip"],s=Array.isArray(e)?e[0]:e?.split(",")[0],a=t||s||r||n.socket.remoteAddress;if(!a)returnnull;returnString(a)}catch(e){returnnull}})();try{leta=`🚀 SERVER ERROR ===========================