(t, s)
| 2277 | function Env(t, s) { |
| 2278 | return new(class { |
| 2279 | constructor(t, s) { |
| 2280 | (this.name = t), |
| 2281 | (this.data = null), |
| 2282 | (this.dataFile = 'box.dat'), |
| 2283 | (this.logs = []), |
| 2284 | (this.logSeparator = '\n'), |
| 2285 | (this.startTime = new Date().getTime()), |
| 2286 | Object.assign(this, s), |
| 2287 | this.log('', `\ud83d\udd14${this.name}, \u5f00\u59cb!`); |
| 2288 | } |
| 2289 | isNode() { |
| 2290 | return 'undefined' != typeof module && !!module.exports; |
| 2291 | } |