lambdaorm
Version:
1 lines • 4.03 kB
JavaScript
'use strict';function a63y(s,y){const O=a63s();return a63y=function(D,g){D=D-0xf1;let M=O[D];return M;},a63y(s,y);}const a63p=a63y;(function(s,y){const o=a63y,g=s();while(!![]){try{const x=-parseInt(o(0x107))/0x1+-parseInt(o(0x120))/0x2+parseInt(o(0xf9))/0x3*(-parseInt(o(0x11b))/0x4)+parseInt(o(0x118))/0x5+-parseInt(o(0x113))/0x6+parseInt(o(0x10f))/0x7*(-parseInt(o(0xff))/0x8)+parseInt(o(0xf7))/0x9;if(x===y)break;else g['push'](g['shift']());}catch(m){g['push'](g['shift']());}}}(a63s,0x9c72e));Object[a63p(0x106)](exports,'__esModule',{'value':!![]}),exports[a63p(0x100)]=void 0x0;function a63s(){const s8=['getFunctionMetadata','others','composite','includes','1482530mHtfEs','solveComposite','other','4EeJpPA','LanguageError','_support','error\x20with\x20operator:\x20','_functions','696624QryCZr','startsWith','isReservedWord','replace','dbType','binary','support','ddl','dbTypes','types','_ddl','_dbTypes','36419850cAPmmZ','dml','2474229nBMEZY','addOperators','_types','getOperatorMetadata','../../domain','name','4217776UpLroM','DialectServiceImpl','reservedWords','toLowerCase','functions','operators','operator','defineProperty','761713wxkTPd','function','_operators','_reservedWords','string','_dml','_others','error\x20with\x20function:\x20','7dOUQVB','format','addFunctions','{name}','7442112MfPGTs'];a63s=function(){return s8;};return a63s();}const domain_1=require(a63p(0xfd));class DialectServiceImpl{constructor(s,y){const f=a63p;this['_operators']={},this[f(0x11f)]={},this[f(0x10d)]={},this['_support']={},this[f(0x10c)]={},this[f(0xf5)]={},this[f(0xf6)]={},this['_types']={},this[f(0x10a)]=[],this[f(0xfe)]=s,this['format']=y[f(0x110)],this[f(0x109)]={},this[f(0x11f)]={},this[f(0xfa)](y),this[f(0x111)](y);for(const g in y[f(0xf1)]){const x=y[f(0xf1)][g];this[f(0x11d)][g]=x;}for(const m in y[f(0x115)]){const w=y[f(0x115)][m];this['_others'][m]=w;}for(const t in y['dml']){const v=y[f(0xf8)][t];this['_dml'][t]=v;}for(const a in y['ddl']){const c=y[f(0xf2)][a];this[f(0xf5)][a]=c;}for(const k in y[f(0xf3)]){const r=y[f(0xf3)][k];this[f(0xf6)][k]=r;}for(const z in y[f(0xf4)]){const d=y['types'][z];this[f(0xfb)][z[f(0x102)]()]=d;}for(const i of y[f(0x101)]){this[f(0x10a)]['push'](i[f(0x102)]());}}['addOperators'](s){const q=a63p;for(const y in s[q(0x104)]){let g;y==='ternary'?g=0x3:g=y===q(0x125)?0x2:0x1;for(const x in s[q(0x104)][y]){const m=s[q(0x104)][y][x];if(!this['_operators'][x])this['_operators'][x]={};this['_operators'][x][g]=m;}}}[a63p(0x111)](s){const j=a63p;for(const y in s['functions']){const g=s[j(0x103)][y];for(const x in g){this[j(0x11f)][x]={'type':y,'template':g[x]};}}}get[a63p(0x119)](){const b=a63p;return this[b(0x11d)][b(0x116)]||![];}[a63p(0x122)](s){const l=a63p;return this['_reservedWords'][l(0x117)](s[l(0x102)]());}[a63p(0x105)](s,y){const u=a63p;return this[u(0x109)][s][y];}[a63p(0x108)](s){const e=a63p;return this[e(0x11f)][s];}['support'](s){const n=a63p;return this[n(0x11d)][s];}[a63p(0xf8)](s){const h=a63p;return this[h(0x10c)][s];}[a63p(0x11a)](s){const s0=a63p;return this[s0(0x10d)][s];}['ddl'](s){const s1=a63p;return this[s1(0xf5)][s];}[a63p(0x124)](s){const s2=a63p;return this[s2(0xf6)][s];}['type'](s){const s3=a63p,y=this[s3(0xfb)][s['toLowerCase']()];if(y===undefined)throw new domain_1['LanguageError']('error\x20with\x20type:\x20'+s);return y;}['delimiter'](s,y=![],g=![]){const s4=a63p;if(!y&&(!s[s4(0x121)]('_')||g)&&s['indexOf']('\x20')===-0x1&&s['indexOf']('.')===-0x1&&!this[s4(0x122)](s))return s;const x=this[s4(0x10d)]['delimiter'];return x[s4(0x123)](s4(0x112),s);}[a63p(0x10b)](s){const s5=a63p,y=this[s5(0x10d)][s5(0x10b)];return y[s5(0x123)](s5(0x112),s);}[a63p(0xfc)](s,y){const s6=a63p;try{if(this[s6(0x109)][s]){const g=this[s6(0x109)][s];if(g[y])return g[y];}return null;}catch(x){throw new domain_1[(s6(0x11c))](s6(0x11e)+s);}}[a63p(0x114)](s){const s7=a63p;try{if(this[s7(0x11f)][s])return this[s7(0x11f)][s];return null;}catch(y){throw new domain_1['LanguageError'](s7(0x10e)+s);}}}exports['DialectServiceImpl']=DialectServiceImpl;